google-apis-gmail_v1 0.49.0 → 0.51.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: a72fab0ec7b552b5c619e7fab68689e25fdee096fa7245ae81c89c54d7ac6edd
4
- data.tar.gz: 82865444e57ae03358556bbab1fff9c9becee828b7a500fe620c951d07479ab4
3
+ metadata.gz: aa9972365b73e6e8bf95afe519dfd9b4f000f0331579fa92baba27881b22ea76
4
+ data.tar.gz: 53b97a3bace5d66b320479279cc6c06d59fdb3fba77f872ff963ddbfef059f6e
5
5
  SHA512:
6
- metadata.gz: 2a3b0c6cecfe7fa8ae343e616c4973c40660349f56d710b34e8dad22041767987bc193424e6690407dd0364a7baa0e28676d3457092b24c5ed848946162ef50e
7
- data.tar.gz: 4d287fe279eb484858c74905c4a1a1a255e20e21a4339a7f2ead3261ac6d76fcea52e7bcf89adfa724236c5a6619d00aa555706d5dc8b819a4a12c50f054710c
6
+ metadata.gz: a094d16fae95854c48f559b434be786f94f5ac0997f9543d15920e30c93f7332d0a0e9e43fe184509be829a31359fd73b2c1562da3c02578268fb49029f93b35
7
+ data.tar.gz: 59c6db63dfe7c1349ddde1ff8cbc4b58f206277a39afe9c8b5e91c66355c4cfffaac83b4ab378d3407b9c63b45b7da4e9ea4ddd74b53f01f1bc19efba44facbd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-gmail_v1
2
2
 
3
+ ### v0.51.0 (2026-05-31)
4
+
5
+ * Regenerated from discovery document revision 20260525
6
+
7
+ ### v0.50.0 (2026-05-17)
8
+
9
+ * Regenerated from discovery document revision 20260511
10
+
3
11
  ### v0.49.0 (2026-05-03)
4
12
 
5
13
  * Regenerated from discovery document revision 20260427
@@ -78,6 +78,17 @@ module Google
78
78
  class BatchModifyMessagesRequest
79
79
  include Google::Apis::Core::Hashable
80
80
 
81
+ # A list of Classification Label values to add. If a Classification Label with
82
+ # the same label ID is already applied to the message, fields with existing
83
+ # field IDs will be updated and fields with new field IDs will be added. There's
84
+ # a limit of 20 Classification Label values per request. If the message is
85
+ # already classified and the final total number of Classification Label values
86
+ # exceeds the maximum allowed number of Classification Label values per message,
87
+ # the modification fails.
88
+ # Corresponds to the JSON property `addClassificationLabels`
89
+ # @return [Array<Google::Apis::GmailV1::ClassificationLabelValue>]
90
+ attr_accessor :add_classification_labels
91
+
81
92
  # A list of label IDs to add to messages.
82
93
  # Corresponds to the JSON property `addLabelIds`
83
94
  # @return [Array<String>]
@@ -88,6 +99,11 @@ module Google
88
99
  # @return [Array<String>]
89
100
  attr_accessor :ids
90
101
 
102
+ # A list of Classification Label values to remove from messages.
103
+ # Corresponds to the JSON property `removeClassificationLabelIds`
104
+ # @return [Array<String>]
105
+ attr_accessor :remove_classification_label_ids
106
+
91
107
  # A list of label IDs to remove from messages.
92
108
  # Corresponds to the JSON property `removeLabelIds`
93
109
  # @return [Array<String>]
@@ -99,8 +115,10 @@ module Google
99
115
 
100
116
  # Update properties of this object
101
117
  def update!(**args)
118
+ @add_classification_labels = args[:add_classification_labels] if args.key?(:add_classification_labels)
102
119
  @add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
103
120
  @ids = args[:ids] if args.key?(:ids)
121
+ @remove_classification_label_ids = args[:remove_classification_label_ids] if args.key?(:remove_classification_label_ids)
104
122
  @remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
105
123
  end
106
124
  end
@@ -902,7 +920,8 @@ module Google
902
920
  # f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5, \#594c05, #fbe983, #684e07, #
903
921
  # fdedc1, #0b4f30, #b3efd3, #04502e, #a2dcc1, \#c2c2c2, #4986e7, #2da2bb, #
904
922
  # b99aff, #994a64, #f691b2, #ff7537, #ffad46, \#662e37, #ebdbde, #cca6ac, #
905
- # 094228, #42d692, #16a765
923
+ # 094228, #42d692, #16a765, #757575, #1e53b8, \#007286, #7858c3, #c2185b, #
924
+ # d93025, #54240e, #633e04, #521d28, #202124, \#083018
906
925
  # Corresponds to the JSON property `backgroundColor`
907
926
  # @return [String]
908
927
  attr_accessor :background_color
@@ -922,7 +941,8 @@ module Google
922
941
  # ffc8af, #7a4706, #ffdeb5, \#594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #
923
942
  # b3efd3, #04502e, #a2dcc1, \#c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #
924
943
  # f691b2, #ff7537, #ffad46, \#662e37, #ebdbde, #cca6ac, #094228, #42d692, #
925
- # 16a765
944
+ # 16a765, #757575, #1e53b8, \#007286, #7858c3, #c2185b, #d93025, #54240e, #
945
+ # 633e04, #521d28, #202124, \#083018
926
946
  # Corresponds to the JSON property `textColor`
927
947
  # @return [String]
928
948
  attr_accessor :text_color
@@ -1281,7 +1301,9 @@ module Google
1281
1301
  # schemas can be queried using the Google Drive Labels API. Each classification
1282
1302
  # label ID must be unique. If duplicate IDs are provided, only one will be
1283
1303
  # retained, and the selection is arbitrary. Only used for Google Workspace
1284
- # accounts.
1304
+ # accounts. There's a limit of 20 Classification Label values per request. If
1305
+ # the Classification Label values exceeds the maximum allowed number, the
1306
+ # request fails.
1285
1307
  # Corresponds to the JSON property `classificationLabelValues`
1286
1308
  # @return [Array<Google::Apis::GmailV1::ClassificationLabelValue>]
1287
1309
  attr_accessor :classification_label_values
@@ -1317,7 +1339,8 @@ module Google
1317
1339
 
1318
1340
  # The entire email message in an RFC 2822 formatted and base64url encoded string.
1319
1341
  # Returned in `messages.get` and `drafts.get` responses when the `format=RAW`
1320
- # parameter is supplied.
1342
+ # parameter is supplied. @required gmail.users.drafts.create gmail.users.drafts.
1343
+ # update
1321
1344
  # Corresponds to the JSON property `raw`
1322
1345
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
1323
1346
  # @return [String]
@@ -1484,12 +1507,28 @@ module Google
1484
1507
  class ModifyMessageRequest
1485
1508
  include Google::Apis::Core::Hashable
1486
1509
 
1510
+ # A list of classification label values to add. If a Classification Label with
1511
+ # the same label ID is already applied to the message, fields with existing
1512
+ # field IDs will be updated and fields with new field IDs will be added. There's
1513
+ # a limit of 20 Classification Label values per request. If the message is
1514
+ # already classified and the final total number of Classification Label values
1515
+ # exceeds the maximum allowed number of Classification Label values per message,
1516
+ # the modification fails.
1517
+ # Corresponds to the JSON property `addClassificationLabels`
1518
+ # @return [Array<Google::Apis::GmailV1::ClassificationLabelValue>]
1519
+ attr_accessor :add_classification_labels
1520
+
1487
1521
  # A list of IDs of labels to add to this message. You can add up to 100 labels
1488
1522
  # with each update.
1489
1523
  # Corresponds to the JSON property `addLabelIds`
1490
1524
  # @return [Array<String>]
1491
1525
  attr_accessor :add_label_ids
1492
1526
 
1527
+ # A list of Classification Label values to remove from this message.
1528
+ # Corresponds to the JSON property `removeClassificationLabelIds`
1529
+ # @return [Array<String>]
1530
+ attr_accessor :remove_classification_label_ids
1531
+
1493
1532
  # A list IDs of labels to remove from this message. You can remove up to 100
1494
1533
  # labels with each update.
1495
1534
  # Corresponds to the JSON property `removeLabelIds`
@@ -1502,7 +1541,9 @@ module Google
1502
1541
 
1503
1542
  # Update properties of this object
1504
1543
  def update!(**args)
1544
+ @add_classification_labels = args[:add_classification_labels] if args.key?(:add_classification_labels)
1505
1545
  @add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
1546
+ @remove_classification_label_ids = args[:remove_classification_label_ids] if args.key?(:remove_classification_label_ids)
1506
1547
  @remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
1507
1548
  end
1508
1549
  end
@@ -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.49.0"
19
+ GEM_VERSION = "0.51.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 = "20260427"
25
+ REVISION = "20260525"
26
26
  end
27
27
  end
28
28
  end
@@ -377,8 +377,11 @@ module Google
377
377
  class BatchModifyMessagesRequest
378
378
  # @private
379
379
  class Representation < Google::Apis::Core::JsonRepresentation
380
+ collection :add_classification_labels, as: 'addClassificationLabels', class: Google::Apis::GmailV1::ClassificationLabelValue, decorator: Google::Apis::GmailV1::ClassificationLabelValue::Representation
381
+
380
382
  collection :add_label_ids, as: 'addLabelIds'
381
383
  collection :ids, as: 'ids'
384
+ collection :remove_classification_label_ids, as: 'removeClassificationLabelIds'
382
385
  collection :remove_label_ids, as: 'removeLabelIds'
383
386
  end
384
387
  end
@@ -774,7 +777,10 @@ module Google
774
777
  class ModifyMessageRequest
775
778
  # @private
776
779
  class Representation < Google::Apis::Core::JsonRepresentation
780
+ collection :add_classification_labels, as: 'addClassificationLabels', class: Google::Apis::GmailV1::ClassificationLabelValue, decorator: Google::Apis::GmailV1::ClassificationLabelValue::Representation
781
+
777
782
  collection :add_label_ids, as: 'addLabelIds'
783
+ collection :remove_classification_label_ids, as: 'removeClassificationLabelIds'
778
784
  collection :remove_label_ids, as: 'removeLabelIds'
779
785
  end
780
786
  end
@@ -715,7 +715,13 @@ module Google
715
715
  execute_or_queue_command(command, &block)
716
716
  end
717
717
 
718
- # Modifies the labels on the specified messages.
718
+ # Modifies the labels and the Classification Label values on the specified
719
+ # messages. For administrators modifying messages for users in their
720
+ # organization, requests require authorization with a [service account](https://
721
+ # developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [
722
+ # domain-wide delegation authority](https://developers.google.com/identity/
723
+ # protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with
724
+ # the `https://www.googleapis.com/auth/gmail.modify.restricted` scope.
719
725
  # @param [String] user_id
720
726
  # The user's email address. The special value `me` can be used to indicate the
721
727
  # authenticated user.
@@ -995,7 +1001,13 @@ module Google
995
1001
  execute_or_queue_command(command, &block)
996
1002
  end
997
1003
 
998
- # Modifies the labels on the specified message.
1004
+ # Modifies the labels and the Classification Label values on the specified
1005
+ # message. For administrators modifying message for users in their organization,
1006
+ # requests require authorization with a [service account](https://developers.
1007
+ # google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide
1008
+ # delegation authority](https://developers.google.com/identity/protocols/
1009
+ # OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https:
1010
+ # //www.googleapis.com/auth/gmail.modify.restricted` scope.
999
1011
  # @param [String] user_id
1000
1012
  # The user's email address. The special value `me` can be used to indicate the
1001
1013
  # authenticated user.
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.49.0
4
+ version: 0.51.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.49.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gmail_v1/v0.51.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: