Class: Google::Apis::GmailV1::ClassificationLabelValue

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClassificationLabelValue

Returns a new instance of ClassificationLabelValue.



154
155
156
# File 'lib/google/apis/gmail_v1/classes.rb', line 154

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fieldsArray<Google::Apis::GmailV1::ClassificationLabelFieldValue>

Field values for the given classification label ID. Corresponds to the JSON property fields



146
147
148
# File 'lib/google/apis/gmail_v1/classes.rb', line 146

def fields
  @fields
end

#label_idString

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

Returns:

  • (String)


152
153
154
# File 'lib/google/apis/gmail_v1/classes.rb', line 152

def label_id
  @label_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



159
160
161
162
# File 'lib/google/apis/gmail_v1/classes.rb', line 159

def update!(**args)
  @fields = args[:fields] if args.key?(:fields)
  @label_id = args[:label_id] if args.key?(:label_id)
end