Class: Google::Apis::StorageV1beta1::BucketAccessControl

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/storage_v1beta1/classes.rb,
generated/google/apis/storage_v1beta1/representations.rb,
generated/google/apis/storage_v1beta1/representations.rb

Overview

An access-control entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BucketAccessControl


211
212
213
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 211

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bucketString

The name of the bucket. Corresponds to the JSON property bucket


157
158
159
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 157

def bucket
  @bucket
end

#domainString

The domain associated with the entity, if any. Corresponds to the JSON property domain


162
163
164
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 162

def domain
  @domain
end

#emailString

The email address associated with the entity, if any. Corresponds to the JSON property email


167
168
169
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 167

def email
  @email
end

#entityString

The entity holding the permission, in one of the following forms:

  • user-userId
  • user-email
  • group-groupId
  • group-email
  • domain-domain
  • allUsers
  • allAuthenticatedUsers Examples:
  • The user [email protected] would be [email protected].
  • The group [email protected] would be [email protected].
  • 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

183
184
185
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 183

def entity
  @entity
end

#entity_idString

The ID for the entity, if any. Corresponds to the JSON property entityId


188
189
190
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 188

def entity_id
  @entity_id
end

#idString

The ID of the access-control entry. Corresponds to the JSON property id


193
194
195
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 193

def id
  @id
end

#kindString

The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl. Corresponds to the JSON property kind


199
200
201
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 199

def kind
  @kind
end

#roleString

The access permission for the entity. Can be READER, WRITER, or OWNER. Corresponds to the JSON property role


204
205
206
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 204

def role
  @role
end

The link to this access-control entry. Corresponds to the JSON property selfLink


209
210
211
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 209

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


216
217
218
219
220
221
222
223
224
225
226
# File 'generated/google/apis/storage_v1beta1/classes.rb', line 216

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)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @role = args[:role] if args.key?(:role)
  @self_link = args[:self_link] if args.key?(:self_link)
end