Class: Google::Apis::DriveV3::File::LabelInfo

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

Label information on the file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LabelInfo

Returns a new instance of LabelInfo.



2913
2914
2915
# File 'lib/google/apis/drive_v3/classes.rb', line 2913

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

Instance Attribute Details

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

Output only. 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

Returns:



2911
2912
2913
# File 'lib/google/apis/drive_v3/classes.rb', line 2911

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2918
2919
2920
# File 'lib/google/apis/drive_v3/classes.rb', line 2918

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