Class: Google::Apis::DriveV2::ModifyLabelsResponse
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::ModifyLabelsResponse
- 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
Response to a ModifyLabels request. This contains only those labels which were added or updated by the request.
Instance Attribute Summary collapse
-
#kind ⇒ String
This is always drive#modifyLabelsResponse Corresponds to the JSON property
kind. -
#modified_labels ⇒ Array<Google::Apis::DriveV2::Label>
The list of labels which were added or updated by the request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ModifyLabelsResponse
constructor
A new instance of ModifyLabelsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ModifyLabelsResponse
Returns a new instance of ModifyLabelsResponse.
3418 3419 3420 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3418 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
This is always drive#modifyLabelsResponse
Corresponds to the JSON property kind
3411 3412 3413 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3411 def kind @kind end |
#modified_labels ⇒ Array<Google::Apis::DriveV2::Label>
The list of labels which were added or updated by the request.
Corresponds to the JSON property modifiedLabels
3416 3417 3418 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3416 def modified_labels @modified_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3423 3424 3425 3426 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3423 def update!(**args) @kind = args[:kind] if args.key?(:kind) @modified_labels = args[:modified_labels] if args.key?(:modified_labels) end |