google-apis-gmail_v1 0.45.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ef38e603649f989c49270e28749446dc49ece7d7935b4d5ef3fb7f997b08058
4
- data.tar.gz: 99661ab03e9824af222588e71aa58e91466fcdee9470e69a8e1aa6883fa24ad2
3
+ metadata.gz: 21f474372e39827cc468cffeced87cd08ac3be96f7c051c275e745420e225818
4
+ data.tar.gz: 61cf4f187a095fc1838d98564b7fdd12fad2b558459aba6b71e3577f91fdfd17
5
5
  SHA512:
6
- metadata.gz: 47d29b9fe0df3cd9f29a9529a76887179fb4e4fa98c3f4894faa37320f185106e9cfe285e236cd6901288f489fdc1cb927a20393924118e99ac4b2ef105e074d
7
- data.tar.gz: 12a3c69afbbbb971e73a06a8641f0c5630b06413fda0d527d96a94a9dc49a8253894a60e8a3a98145013454ed9681dda0d6b9b3b0de9d546d7e304918d576ccd
6
+ metadata.gz: c088d7b7607b14f5c1ff1b5f0411b695823851d1a535c6fb91569382388a1638db6166e477d4bf6e28c31f82b216fae0172123229c8debfc23d83aea5b34e05e
7
+ data.tar.gz: cdf44576d199d832b15d61714c105e927c4dcf831780d5c636e552543c1e677d3771eb0c1a9f6ddffd7eeaa50e9f755cb0f5a3410687fd677e6a96d254132a09
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-gmail_v1
2
2
 
3
+ ### v0.46.0 (2025-11-16)
4
+
5
+ * Regenerated from discovery document revision 20251110
6
+
3
7
  ### v0.45.0 (2025-07-06)
4
8
 
5
9
  * Regenerated from discovery document revision 20250630
@@ -105,6 +105,63 @@ module Google
105
105
  end
106
106
  end
107
107
 
108
+ # Field values for a classification label.
109
+ class ClassificationLabelFieldValue
110
+ include Google::Apis::Core::Hashable
111
+
112
+ # Required. The field ID for the Classification Label Value. Maps to the ID
113
+ # field of the Google Drive `Label.Field` object.
114
+ # Corresponds to the JSON property `fieldId`
115
+ # @return [String]
116
+ attr_accessor :field_id
117
+
118
+ # Selection choice ID for the selection option. Should only be set if the field
119
+ # type is `SELECTION` in the Google Drive `Label.Field` object. Maps to the id
120
+ # field of the Google Drive `Label.Field.SelectionOptions` resource.
121
+ # Corresponds to the JSON property `selection`
122
+ # @return [String]
123
+ attr_accessor :selection
124
+
125
+ def initialize(**args)
126
+ update!(**args)
127
+ end
128
+
129
+ # Update properties of this object
130
+ def update!(**args)
131
+ @field_id = args[:field_id] if args.key?(:field_id)
132
+ @selection = args[:selection] if args.key?(:selection)
133
+ end
134
+ end
135
+
136
+ # Classification Labels applied to the email message. Classification Labels are
137
+ # different from Gmail inbox labels. Only used for Google Workspace accounts. [
138
+ # Learn more about classification labels](https://support.google.com/a/answer/
139
+ # 9292382).
140
+ class ClassificationLabelValue
141
+ include Google::Apis::Core::Hashable
142
+
143
+ # Field values for the given classification label ID.
144
+ # Corresponds to the JSON property `fields`
145
+ # @return [Array<Google::Apis::GmailV1::ClassificationLabelFieldValue>]
146
+ attr_accessor :fields
147
+
148
+ # Required. The canonical or raw alphanumeric classification label ID. Maps to
149
+ # the ID field of the Google Drive Label resource.
150
+ # Corresponds to the JSON property `labelId`
151
+ # @return [String]
152
+ attr_accessor :label_id
153
+
154
+ def initialize(**args)
155
+ update!(**args)
156
+ end
157
+
158
+ # Update properties of this object
159
+ def update!(**args)
160
+ @fields = args[:fields] if args.key?(:fields)
161
+ @label_id = args[:label_id] if args.key?(:label_id)
162
+ end
163
+ end
164
+
108
165
  # The client-side encryption (CSE) configuration for the email address of an
109
166
  # authenticated user. Gmail uses CSE configurations to save drafts of client-
110
167
  # side encrypted email messages, and to sign and send encrypted email messages.
@@ -1217,6 +1274,15 @@ module Google
1217
1274
  class Message
1218
1275
  include Google::Apis::Core::Hashable
1219
1276
 
1277
+ # Classification Label values on the message. Available Classification Label
1278
+ # schemas can be queried using the Google Drive Labels API. Each classification
1279
+ # label ID must be unique. If duplicate IDs are provided, only one will be
1280
+ # retained, and the selection is arbitrary. Only used for Google Workspace
1281
+ # accounts.
1282
+ # Corresponds to the JSON property `classificationLabelValues`
1283
+ # @return [Array<Google::Apis::GmailV1::ClassificationLabelValue>]
1284
+ attr_accessor :classification_label_values
1285
+
1220
1286
  # The ID of the last history record that modified this message.
1221
1287
  # Corresponds to the JSON property `historyId`
1222
1288
  # @return [Fixnum]
@@ -1280,6 +1346,7 @@ module Google
1280
1346
 
1281
1347
  # Update properties of this object
1282
1348
  def update!(**args)
1349
+ @classification_label_values = args[:classification_label_values] if args.key?(:classification_label_values)
1283
1350
  @history_id = args[:history_id] if args.key?(:history_id)
1284
1351
  @id = args[:id] if args.key?(:id)
1285
1352
  @internal_date = args[:internal_date] if args.key?(:internal_date)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GmailV1
18
18
  # Version of the google-apis-gmail_v1 gem
19
- GEM_VERSION = "0.45.0"
19
+ GEM_VERSION = "0.46.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250630"
25
+ REVISION = "20251110"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,18 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class ClassificationLabelFieldValue
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ClassificationLabelValue
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
43
55
  class CseIdentity
44
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
57
 
@@ -371,6 +383,23 @@ module Google
371
383
  end
372
384
  end
373
385
 
386
+ class ClassificationLabelFieldValue
387
+ # @private
388
+ class Representation < Google::Apis::Core::JsonRepresentation
389
+ property :field_id, as: 'fieldId'
390
+ property :selection, as: 'selection'
391
+ end
392
+ end
393
+
394
+ class ClassificationLabelValue
395
+ # @private
396
+ class Representation < Google::Apis::Core::JsonRepresentation
397
+ collection :fields, as: 'fields', class: Google::Apis::GmailV1::ClassificationLabelFieldValue, decorator: Google::Apis::GmailV1::ClassificationLabelFieldValue::Representation
398
+
399
+ property :label_id, as: 'labelId'
400
+ end
401
+ end
402
+
374
403
  class CseIdentity
375
404
  # @private
376
405
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -695,6 +724,8 @@ module Google
695
724
  class Message
696
725
  # @private
697
726
  class Representation < Google::Apis::Core::JsonRepresentation
727
+ collection :classification_label_values, as: 'classificationLabelValues', class: Google::Apis::GmailV1::ClassificationLabelValue, decorator: Google::Apis::GmailV1::ClassificationLabelValue::Representation
728
+
698
729
  property :history_id, :numeric_string => true, as: 'historyId'
699
730
  property :id, as: 'id'
700
731
  property :internal_date, :numeric_string => true, as: 'internalDate'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gmail_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gmail_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-gmail_v1/v0.45.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gmail_v1/v0.46.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gmail_v1
62
62
  rdoc_options: []
63
63
  require_paths: