Class: Google::Apis::StoragebatchoperationsV1::AccessControlsUpdates
- Inherits:
-
Object
- Object
- Google::Apis::StoragebatchoperationsV1::AccessControlsUpdates
- 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 updates to existing access-control entries on an object.
Instance Attribute Summary collapse
-
#grants ⇒ Array<Google::Apis::StoragebatchoperationsV1::ObjectAccessControl>
Optional.
-
#remove_entities ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccessControlsUpdates
constructor
A new instance of AccessControlsUpdates.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccessControlsUpdates
Returns a new instance of AccessControlsUpdates.
41 42 43 |
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 41 def initialize(**args) update!(**args) end |
Instance Attribute Details
#grants ⇒ Array<Google::Apis::StoragebatchoperationsV1::ObjectAccessControl>
Optional. Grants to add or update. If a grant for same entity exists, its role
is updated.
Corresponds to the JSON property grants
33 34 35 |
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 33 def grants @grants end |
#remove_entities ⇒ Array<String>
Optional. Entities for which all grants should be removed. An entity can't be
in both grants and remove_entities.
Corresponds to the JSON property removeEntities
39 40 41 |
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 39 def remove_entities @remove_entities end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
46 47 48 49 |
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 46 def update!(**args) @grants = args[:grants] if args.key?(:grants) @remove_entities = args[:remove_entities] if args.key?(:remove_entities) end |