The DefaultObjectAccessControls resources represent the Access Control Lists (ACLs) applied to a new object within Cloud Storage when no ACL was provided for that object. ACLs let you specify who has access to your data and to what extent.
There are two roles that can be assigned to an entity:
-
READERs can get an object, though theaclproperty will not be revealed. -
OWNERs areREADERs, and they can get theaclproperty, update an object, and call all objectAccessControls methods on the object.
READER
and OWNER
instead of READ
and FULL_CONTROL
. To try out the methods for this resource, see Methods .
Resource representations
{ "kind": "storage#objectAccessControl", "entity": string , "role": string , "email": string , "entityId": string , "domain": string , "projectTeam": { "projectNumber": string , "team": string }, "etag": string }
domain
string
email
string
entity
string
-
user- email -
group- groupId -
group- email -
domain- domain -
project- team - projectId -
allUsers -
allAuthenticatedUsers
- The user
liz@example.comwould beuser-liz@example.com. - The group
example@googlegroups.comwould begroup-example@googlegroups.com. - To refer to all members of the domain
example.com, the entity would bedomain-example.com.
entityId
string
kind
string
storage#objectAccessControl
.projectTeam
object
projectTeam.projectNumber
string
projectTeam.team
string
Acceptable values are:
- "
editors" - "
owners" - "
viewers"
role
string
Acceptable values are:
- "
OWNER" - "
READER"
Methods
Buckets in Cloud Storage have an optional default object Access Control List. The methods for working with a bucket's default object access controls are as follows:
- delete
- Permanently deletes the default object ACL entry for the specified entity on the specified bucket .
- get
- Returns the default object ACL entry for the specified entity on the specified bucket .
- insert
- Creates a new default object ACL entry on the specified bucket .
- list
- Retrieves default object ACL entries on the specified bucket .
- patch
- Updates a default object ACL entry on the specified bucket . This method supports patch semantics.
- update
- Updates a default object ACL entry on the specified bucket .

