Class: Google::Apis::StoragebatchoperationsV1::ObjectAccessControl

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

Overview

Represents an access control entry on an object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ObjectAccessControl

Returns a new instance of ObjectAccessControl.



902
903
904
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 902

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

Instance Attribute Details

#entityString

Required. The entity holding the permission, in one of the following forms: * allUsers * allAuthenticatedUsers Corresponds to the JSON property entity

Returns:

  • (String)


894
895
896
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 894

def entity
  @entity
end

#roleString

Required. The role to grant. Acceptable values are: * READER - gives read access to the object. * OWNER - gives owner access to the object. Corresponds to the JSON property role

Returns:

  • (String)


900
901
902
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 900

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



907
908
909
910
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 907

def update!(**args)
  @entity = args[:entity] if args.key?(:entity)
  @role = args[:role] if args.key?(:role)
end