Class: Google::Apis::GmailV1::ClassificationLabelValue
- Inherits:
-
Object
- Object
- Google::Apis::GmailV1::ClassificationLabelValue
- 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
Classification Labels applied to the email message. Classification Labels are different from Gmail inbox labels. Only used for Google Workspace accounts. Learn more about classification labels.
Instance Attribute Summary collapse
-
#fields ⇒ Array<Google::Apis::GmailV1::ClassificationLabelFieldValue>
Field values for the given classification label ID.
-
#label_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClassificationLabelValue
constructor
A new instance of ClassificationLabelValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClassificationLabelValue
Returns a new instance of ClassificationLabelValue.
172 173 174 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 172 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ Array<Google::Apis::GmailV1::ClassificationLabelFieldValue>
Field values for the given classification label ID.
Corresponds to the JSON property fields
164 165 166 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 164 def fields @fields end |
#label_id ⇒ String
Required. The canonical or raw alphanumeric classification label ID. Maps to
the ID field of the Google Drive Label resource.
Corresponds to the JSON property labelId
170 171 172 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 170 def label_id @label_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
177 178 179 180 |
# File 'lib/google/apis/gmail_v1/classes.rb', line 177 def update!(**args) @fields = args[:fields] if args.key?(:fields) @label_id = args[:label_id] if args.key?(:label_id) end |