Class: Google::Apis::DriveV3::ModifyLabelsRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/google/apis/drive_v3/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ModifyLabelsRequest

Returns a new instance of ModifyLabelsRequest.



2468
2469
2470
# File 'lib/google/apis/drive_v3/classes.rb', line 2468

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

Instance Attribute Details

#kindString

This is always drive#modifyLabelsRequest Corresponds to the JSON property kind

Returns:

  • (String)


2461
2462
2463
# File 'lib/google/apis/drive_v3/classes.rb', line 2461

def kind
  @kind
end

#label_modificationsArray<Google::Apis::DriveV3::LabelModification>

The list of modifications to apply to the labels on the file. Corresponds to the JSON property labelModifications



2466
2467
2468
# File 'lib/google/apis/drive_v3/classes.rb', line 2466

def label_modifications
  @label_modifications
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2473
2474
2475
2476
# File 'lib/google/apis/drive_v3/classes.rb', line 2473

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