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='[email protected]', perm=ACL.READ)
# or
acl.grant['[email protected]'] = ACL.READ
acl.save()
print acl.get(user_email='[email protected]')
# or
print acl['[email protected]']
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: