class Google::Apis::StorageV1::BucketAccessControl

An access-control entry.

Attributes

bucket[RW]

The name of the bucket. Corresponds to the JSON property `bucket` @return [String]

domain[RW]

The domain associated with the entity, if any. Corresponds to the JSON property `domain` @return [String]

email[RW]

The email address associated with the entity, if any. Corresponds to the JSON property `email` @return [String]

entity[RW]

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]

entity_id[RW]

The ID for the entity, if any. Corresponds to the JSON property `entityId` @return [String]

etag[RW]

HTTP 1.1 Entity tag for the access-control entry. Corresponds to the JSON property `etag` @return [String]

id[RW]

The ID of the access-control entry. Corresponds to the JSON property `id` @return [String]

kind[RW]

The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl. Corresponds to the JSON property `kind` @return [String]

project_team[RW]

The project team associated with the entity, if any. Corresponds to the JSON property `projectTeam` @return [Google::Apis::StorageV1::BucketAccessControl::ProjectTeam]

role[RW]

The access permission for the entity. Corresponds to the JSON property `role` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/storage_v1/classes.rb, line 809
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/storage_v1/classes.rb, line 814
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)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @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