Class: Google::Apis::DriveV2::File::LabelInfo
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::File::LabelInfo
- 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
An overview of the labels on the file.
Instance Attribute Summary collapse
-
#labels ⇒ Array<Google::Apis::DriveV2::Label>
The set of labels on the file as requested by the label IDs in the includeLabels parameter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LabelInfo
constructor
A new instance of LabelInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LabelInfo
Returns a new instance of LabelInfo.
2849 2850 2851 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2849 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Array<Google::Apis::DriveV2::Label>
The set of labels on the file as requested by the label IDs in the
includeLabels parameter. By default, no labels are returned.
Corresponds to the JSON property labels
2847 2848 2849 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2847 def labels @labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2854 2855 2856 |
# File 'lib/google/apis/drive_v2/classes.rb', line 2854 def update!(**args) @labels = args[:labels] if args.key?(:labels) end |