google-apis-gmail_v1 0.49.0 → 0.50.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 67ad2f52dcabcfec8813c6a51386129488980cd879c35a10725058996b34c2c3
|
|
4
|
+
data.tar.gz: d0c1b920bac90bf273565f636808de25cb6782d03d29a670eacd8e2758461e01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36a8ae0559f8ddc280a0a2888172122e77330a3028f9adcf4fa1c80b5fed20099ca6e6434416766f2e085ec3c474dc262342edcdc7557a05917a0d9e96264984
|
|
7
|
+
data.tar.gz: 63ad60d7e0e5f0f0e338b024077b2a16c4f8049723494d58f39e11a59525499321c47e5a29037db09638621c89998b538c1c638a9422c28ede421dfdc54ca107
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
|
@@ -1281,7 +1299,9 @@ module Google
|
|
|
1281
1299
|
# schemas can be queried using the Google Drive Labels API. Each classification
|
|
1282
1300
|
# label ID must be unique. If duplicate IDs are provided, only one will be
|
|
1283
1301
|
# retained, and the selection is arbitrary. Only used for Google Workspace
|
|
1284
|
-
# accounts.
|
|
1302
|
+
# accounts. There's a limit of 20 Classification Label values per request. If
|
|
1303
|
+
# the Classification Label values exceeds the maximum allowed number, the
|
|
1304
|
+
# request fails.
|
|
1285
1305
|
# Corresponds to the JSON property `classificationLabelValues`
|
|
1286
1306
|
# @return [Array<Google::Apis::GmailV1::ClassificationLabelValue>]
|
|
1287
1307
|
attr_accessor :classification_label_values
|
|
@@ -1484,12 +1504,28 @@ module Google
|
|
|
1484
1504
|
class ModifyMessageRequest
|
|
1485
1505
|
include Google::Apis::Core::Hashable
|
|
1486
1506
|
|
|
1507
|
+
# A list of classification label values to add. If a Classification Label with
|
|
1508
|
+
# the same label ID is already applied to the message, fields with existing
|
|
1509
|
+
# field IDs will be updated and fields with new field IDs will be added. There's
|
|
1510
|
+
# a limit of 20 Classification Label values per request. If the message is
|
|
1511
|
+
# already classified and the final total number of Classification Label values
|
|
1512
|
+
# exceeds the maximum allowed number of Classification Label values per message,
|
|
1513
|
+
# the modification fails.
|
|
1514
|
+
# Corresponds to the JSON property `addClassificationLabels`
|
|
1515
|
+
# @return [Array<Google::Apis::GmailV1::ClassificationLabelValue>]
|
|
1516
|
+
attr_accessor :add_classification_labels
|
|
1517
|
+
|
|
1487
1518
|
# A list of IDs of labels to add to this message. You can add up to 100 labels
|
|
1488
1519
|
# with each update.
|
|
1489
1520
|
# Corresponds to the JSON property `addLabelIds`
|
|
1490
1521
|
# @return [Array<String>]
|
|
1491
1522
|
attr_accessor :add_label_ids
|
|
1492
1523
|
|
|
1524
|
+
# A list of Classification Label values to remove from this message.
|
|
1525
|
+
# Corresponds to the JSON property `removeClassificationLabelIds`
|
|
1526
|
+
# @return [Array<String>]
|
|
1527
|
+
attr_accessor :remove_classification_label_ids
|
|
1528
|
+
|
|
1493
1529
|
# A list IDs of labels to remove from this message. You can remove up to 100
|
|
1494
1530
|
# labels with each update.
|
|
1495
1531
|
# Corresponds to the JSON property `removeLabelIds`
|
|
@@ -1502,7 +1538,9 @@ module Google
|
|
|
1502
1538
|
|
|
1503
1539
|
# Update properties of this object
|
|
1504
1540
|
def update!(**args)
|
|
1541
|
+
@add_classification_labels = args[:add_classification_labels] if args.key?(:add_classification_labels)
|
|
1505
1542
|
@add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
|
|
1543
|
+
@remove_classification_label_ids = args[:remove_classification_label_ids] if args.key?(:remove_classification_label_ids)
|
|
1506
1544
|
@remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
|
|
1507
1545
|
end
|
|
1508
1546
|
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.
|
|
19
|
+
GEM_VERSION = "0.50.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 = "
|
|
25
|
+
REVISION = "20260511"
|
|
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
|
|
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
|
|
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.
|
|
4
|
+
version: 0.50.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.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-gmail_v1/v0.50.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:
|