class Google::Apis::StorageV1::ObjectAccessControl
An access-control entry.
Attributes
The name of the bucket. Corresponds to the JSON property `bucket` @return [String]
The domain associated with the entity, if any. Corresponds to the JSON property `domain` @return [String]
The email address associated with the entity, if any. Corresponds to the JSON property `email` @return [String]
The entity holding the permission, in one of the following forms:
-
user-userId
-
user-email
-
group-groupId
-
group-email
-
domain-domain
-
project-team-projectId
-
allUsers
-
allAuthenticatedUsers Examples:
-
The user liz@example.com would be user-liz@example.com.
-
The group example@googlegroups.com would be group-example@googlegroups.com.
-
To refer to all members of the
Google
Apps for Business domain example.com,
the entity would be domain-example.com. Corresponds to the JSON property `entity` @return [String]
The ID for the entity, if any. Corresponds to the JSON property `entityId` @return [String]
HTTP 1.1 Entity tag for the access-control entry. Corresponds to the JSON property `etag` @return [String]
The content generation of the object, if applied to an object. Corresponds to the JSON property `generation` @return [Fixnum]
The ID of the access-control entry. Corresponds to the JSON property `id` @return [String]
The kind of item this is. For object access control entries, this is always storage#objectAccessControl. Corresponds to the JSON property `kind` @return [String]
The name of the object, if applied to an object. Corresponds to the JSON property `object` @return [String]
The project team associated with the entity, if any. Corresponds to the JSON property `projectTeam` @return [Google::Apis::StorageV1::ObjectAccessControl::ProjectTeam]
The access permission for the entity. Corresponds to the JSON property `role` @return [String]
The link to this access-control entry. Corresponds to the JSON property `selfLink` @return [String]
Public Class Methods
# File lib/google/apis/storage_v1/classes.rb, line 1726 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/storage_v1/classes.rb, line 1731 def update!(**args) @bucket = args[:bucket] if args.key?(:bucket) @domain = args[:domain] if args.key?(:domain) @email = args[:email] if args.key?(:email) @entity = args[:entity] if args.key?(:entity) @entity_id = args[:entity_id] if args.key?(:entity_id) @etag = args[:etag] if args.key?(:etag) @generation = args[:generation] if args.key?(:generation) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @object = args[:object] if args.key?(:object) @project_team = args[:project_team] if args.key?(:project_team) @role = args[:role] if args.key?(:role) @self_link = args[:self_link] if args.key?(:self_link) end