Class: Google::Apis::GmailV1::ClassificationLabelFieldValue
- Inherits:
-
Object
- Object
- Google::Apis::GmailV1::ClassificationLabelFieldValue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gmail_v1/classes.rb,
lib/google/apis/gmail_v1/representations.rb,
lib/google/apis/gmail_v1/representations.rb
Overview
Field values for a classification label.
Instance Attribute Summary collapse
-
#field_id ⇒ String
Required.
-
#selection ⇒ String
Selection choice ID for the selection option.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClassificationLabelFieldValue
constructor
A new instance of ClassificationLabelFieldValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClassificationLabelFieldValue
Returns a new instance of ClassificationLabelFieldValue.
143 144 145 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 143 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field_id ⇒ String
Required. The field ID for the Classification Label Value. Maps to the ID
field of the Google Drive Label.Field object.
Corresponds to the JSON property fieldId
134 135 136 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 134 def field_id @field_id end |
#selection ⇒ String
Selection choice ID for the selection option. Should only be set if the field
type is SELECTION in the Google Drive Label.Field object. Maps to the id
field of the Google Drive Label.Field.SelectionOptions resource.
Corresponds to the JSON property selection
141 142 143 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 141 def selection @selection end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
148 149 150 151 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 148 def update!(**args) @field_id = args[:field_id] if args.key?(:field_id) @selection = args[:selection] if args.key?(:selection) end |