[Documentation Issue] Document and provide code snippets for setting the ACL on an object #1414
Labels
api: storage
Issues related to the Cloud Storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
Page Name: storage-acl
Release: 0.8.0
Please add an explanation and code snippet to illustrate how to set the ACL for an object. The referenced page only talks about setting bucket-level permissions, and it isn't easy to find whether a blob object also has the
acl
property, and whether it works the same way as it does with buckets. I would suggest a code snippet such as the one below, which uploads a new blob and sets its ACL to "public read". It's also important to note that the blob needs to be uploaded before its ACL can be set (i.e. if I move theupload_from_string()
command belowacl.save()
, the latter will not have any effect, nor will it fail with any errors).The text was updated successfully, but these errors were encountered: