Class: Google::Apis::DriveV2::Label
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::Label
- 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
Representation of a label and label fields.
Instance Attribute Summary collapse
-
#fields ⇒ Hash<String,Google::Apis::DriveV2::LabelField>
A map of the fields on the label, keyed by the field's ID.
-
#id ⇒ String
The ID of the label.
-
#kind ⇒ String
This is always
drive#labelCorresponds to the JSON propertykind. -
#revision_id ⇒ String
The revision ID of the label.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Label
constructor
A new instance of Label.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Label
Returns a new instance of Label.
3169 3170 3171 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3169 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ Hash<String,Google::Apis::DriveV2::LabelField>
A map of the fields on the label, keyed by the field's ID.
Corresponds to the JSON property fields
3152 3153 3154 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3152 def fields @fields end |
#id ⇒ String
The ID of the label.
Corresponds to the JSON property id
3157 3158 3159 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3157 def id @id end |
#kind ⇒ String
This is always drive#label
Corresponds to the JSON property kind
3162 3163 3164 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3162 def kind @kind end |
#revision_id ⇒ String
The revision ID of the label.
Corresponds to the JSON property revisionId
3167 3168 3169 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3167 def revision_id @revision_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3174 3175 3176 3177 3178 3179 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3174 def update!(**args) @fields = args[:fields] if args.key?(:fields) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @revision_id = args[:revision_id] if args.key?(:revision_id) end |