currently the ACL class is just a container and fetching the actual metadata is done with either the Bucket or the Key class, it would be nice to make the ACL class standalone.
Something like:
acl = storage.ACL('/path/to/bucket') # or /path/to/key
acl.grant(user_email='proppy@google.com', perm=ACL.READ)
# or
acl.grant['proppy@google.com'] = ACL.READ
acl.save()
print acl.get(user_email='proppy@googe.com')
# or
print acl['proppy@google.com']
Reactions are currently unavailable
currently the ACL class is just a container and fetching the actual metadata is done with either the Bucket or the Key class, it would be nice to make the ACL class standalone.
Something like:
acl = storage.ACL('/path/to/bucket') # or /path/to/key acl.grant(user_email='proppy@google.com', perm=ACL.READ) # or acl.grant['proppy@google.com'] = ACL.READ acl.save() print acl.get(user_email='proppy@googe.com') # or print acl['proppy@google.com']