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.
125 126 127 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 125 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
116 117 118 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 116 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
123 124 125 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 123 def selection @selection end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
130 131 132 133 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 130 def update!(**args) @field_id = args[:field_id] if args.key?(:field_id) @selection = args[:selection] if args.key?(:selection) end |