Class: Google::Apis::DriveV3::Label
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::Label
- 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
Representation of a label and its fields.
Instance Attribute Summary collapse
-
#fields ⇒ Hash<String,Google::Apis::DriveV3::LabelField>
A map of the label's fields keyed by the field ID.
-
#id ⇒ String
The ID of the label.
-
#kind ⇒ String
This is always drive#label Corresponds to the JSON property
kind. -
#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.
2253 2254 2255 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2253 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ Hash<String,Google::Apis::DriveV3::LabelField>
A map of the label's fields keyed by the field ID.
Corresponds to the JSON property fields
2236 2237 2238 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2236 def fields @fields end |
#id ⇒ String
The ID of the label.
Corresponds to the JSON property id
2241 2242 2243 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2241 def id @id end |
#kind ⇒ String
This is always drive#label
Corresponds to the JSON property kind
2246 2247 2248 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2246 def kind @kind end |
#revision_id ⇒ String
The revision ID of the label.
Corresponds to the JSON property revisionId
2251 2252 2253 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2251 def revision_id @revision_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2258 2259 2260 2261 2262 2263 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2258 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 |