Class: Google::Apis::DriveV2::ModifyLabelsRequest
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::ModifyLabelsRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drive_v2/classes.rb,
lib/google/apis/drive_v2/representations.rb,
lib/google/apis/drive_v2/representations.rb
Overview
A request to modify the set of labels on a file. This request may contain many modifications that will either all succeed or all fail transactionally.
Instance Attribute Summary collapse
-
#kind ⇒ String
This is always drive#modifyLabelsRequest Corresponds to the JSON property
kind. -
#label_modifications ⇒ Array<Google::Apis::DriveV2::LabelModification>
The list of modifications to apply to the labels on the file.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ModifyLabelsRequest
constructor
A new instance of ModifyLabelsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ModifyLabelsRequest
Returns a new instance of ModifyLabelsRequest.
3392 3393 3394 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3392 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
This is always drive#modifyLabelsRequest
Corresponds to the JSON property kind
3385 3386 3387 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3385 def kind @kind end |
#label_modifications ⇒ Array<Google::Apis::DriveV2::LabelModification>
The list of modifications to apply to the labels on the file.
Corresponds to the JSON property labelModifications
3390 3391 3392 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3390 def label_modifications @label_modifications end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3397 3398 3399 3400 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3397 def update!(**args) @kind = args[:kind] if args.key?(:kind) @label_modifications = args[:label_modifications] if args.key?(:label_modifications) end |