Class: Google::Apis::StoragebatchoperationsV1::ObjectAccessControl
- Inherits:
-
Object
- Object
- Google::Apis::StoragebatchoperationsV1::ObjectAccessControl
- 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
-
#entity ⇒ String
Required.
-
#role ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ObjectAccessControl
constructor
A new instance of ObjectAccessControl.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#entity ⇒ String
Required. The entity holding the permission, in one of the following forms: *
allUsers * allAuthenticatedUsers
Corresponds to the JSON property entity
894 895 896 |
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 894 def entity @entity end |
#role ⇒ String
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
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 |