Class: Google::Apis::DriveV3::ModifyLabelsResponse

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

Response to a ModifyLabels request. This contains only those labels which were added or updated by the request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ModifyLabelsResponse

Returns a new instance of ModifyLabelsResponse.



2582
2583
2584
# File 'lib/google/apis/drive_v3/classes.rb', line 2582

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


2575
2576
2577
# File 'lib/google/apis/drive_v3/classes.rb', line 2575

def kind
  @kind
end

#modified_labelsArray<Google::Apis::DriveV3::Label>

The list of labels which were added or updated by the request. Corresponds to the JSON property modifiedLabels

Returns:



2580
2581
2582
# File 'lib/google/apis/drive_v3/classes.rb', line 2580

def modified_labels
  @modified_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2587
2588
2589
2590
# File 'lib/google/apis/drive_v3/classes.rb', line 2587

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