google-apis-gmail_v1 0.40.0 → 0.42.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: 5f69e2385d8634b27ec8f2a91f2c73104de9a3c5aefab96354b245a7d7c1df64
4
- data.tar.gz: e53d6061600dcada1e2798338cae42198e5a341f944c8fe38f1b77ebb2333866
3
+ metadata.gz: 70a9d5028ff66b4e93d734cc55b5921a155f6236580803f98ec9f33c36b34679
4
+ data.tar.gz: a79fafd0823f8e9af2ab66fd4ca426cfec12dbaec8c11cd4e67ea8cc8ea76ac7
5
5
  SHA512:
6
- metadata.gz: e39980880e01128feac83c434df29317903b6560736eb9ff63e4d37a10b732e9168273003840312982c4ad6b7683fc2dae04b1b88f5789b09a3ec0ca852ad6d5
7
- data.tar.gz: 456965f1985ab5a84d7f6c6ead8fb2691ee4c2c6e99feff2958fa917dc1a5c5d2933e1e80f4c7e829dd4c12be86bfb9c4b1b4f50c408f450b5f57fcf355b666f
6
+ metadata.gz: 41ec0d6984aa6467831f36543fa6a6bc1fe7b9ab36a1421b0616b1758591f9cd989ef3662c4fd818929b5c816f9947a1368abf90cbb248a00eba441716ca6222
7
+ data.tar.gz: 5f2f516f008fcd1b9d4f6de6782f2742516f3967be0cef11d8ba65619361e44bf5e71b78d2ae38f6fcb57fe67c241524082e2ebbf20c2c8a84bd29148a338ba9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-gmail_v1
2
2
 
3
+ ### v0.42.0 (2025-04-06)
4
+
5
+ * Regenerated from discovery document revision 20250331
6
+ * Regenerated using generator version 0.16.0
7
+
8
+ ### v0.41.0 (2024-05-26)
9
+
10
+ * Regenerated from discovery document revision 20240520
11
+ * Regenerated using generator version 0.15.0
12
+
3
13
  ### v0.40.0 (2024-04-28)
4
14
 
5
15
  * Regenerated from discovery document revision 20240422
data/OVERVIEW.md CHANGED
@@ -79,7 +79,7 @@ Gem names for modern clients are often of the form `google-cloud-<service_name>`
79
79
 
80
80
  **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
81
 
82
- The [product documentation](https://developers.google.com/gmail/api/) may provide guidance regarding the preferred client library to use.
82
+ The [product documentation](https://developers.google.com/workspace/gmail/api/) may provide guidance regarding the preferred client library to use.
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
@@ -862,11 +862,12 @@ module Google
862
862
  # example `en-GB`, `fr` or `ja` for British English, French, or Japanese
863
863
  # respectively). The set of languages supported by Gmail evolves over time, so
864
864
  # please refer to the "Language" dropdown in the Gmail settings for all
865
- # available options, as described in the language settings help article. A table
866
- # of sample values is also provided in the Managing Language Settings guide Not
867
- # all Gmail clients can display the same set of languages. In the case that a
868
- # user's display language is not available for use on a particular client, said
869
- # client automatically chooses to display in the closest supported variant (or a
865
+ # available options, as described in the language settings help article. For a
866
+ # table of sample values, see [Manage language settings](https://developers.
867
+ # google.com/workspace/gmail/api/guides/language-settings). Not all Gmail
868
+ # clients can display the same set of languages. In the case that a user's
869
+ # display language is not available for use on a particular client, said client
870
+ # automatically chooses to display in the closest supported variant (or a
870
871
  # reasonable default).
871
872
  # Corresponds to the JSON property `displayLanguage`
872
873
  # @return [String]
@@ -961,8 +962,9 @@ module Google
961
962
  include Google::Apis::Core::Hashable
962
963
 
963
964
  # List of drafts. Note that the `Message` property in each `Draft` resource only
964
- # contains an `id` and a `threadId`. The messages.get method can fetch
965
- # additional message details.
965
+ # contains an `id` and a `threadId`. The [`messages.get`](https://developers.
966
+ # google.com/workspace/gmail/api/v1/reference/users/messages/get) method can
967
+ # fetch additional message details.
966
968
  # Corresponds to the JSON property `drafts`
967
969
  # @return [Array<Google::Apis::GmailV1::Draft>]
968
970
  attr_accessor :drafts
@@ -1064,8 +1066,9 @@ module Google
1064
1066
  include Google::Apis::Core::Hashable
1065
1067
 
1066
1068
  # List of labels. Note that each label resource only contains an `id`, `name`, `
1067
- # messageListVisibility`, `labelListVisibility`, and `type`. The labels.get
1068
- # method can fetch additional label details.
1069
+ # messageListVisibility`, `labelListVisibility`, and `type`. The [`labels.get`](
1070
+ # https://developers.google.com/workspace/gmail/api/v1/reference/users/labels/
1071
+ # get) method can fetch additional label details.
1069
1072
  # Corresponds to the JSON property `labels`
1070
1073
  # @return [Array<Google::Apis::GmailV1::Label>]
1071
1074
  attr_accessor :labels
@@ -1166,8 +1169,9 @@ module Google
1166
1169
  attr_accessor :result_size_estimate
1167
1170
 
1168
1171
  # List of threads. Note that each thread resource does not contain a list of `
1169
- # messages`. The list of `messages` for a given thread can be fetched using the
1170
- # threads.get method.
1172
+ # messages`. The list of `messages` for a given thread can be fetched using the [
1173
+ # `threads.get`](https://developers.google.com/workspace/gmail/api/v1/reference/
1174
+ # users/threads/get) method.
1171
1175
  # Corresponds to the JSON property `threads`
1172
1176
  # @return [Array<Google::Apis::GmailV1::Thread>]
1173
1177
  attr_accessor :threads
@@ -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.40.0"
19
+ GEM_VERSION = "0.42.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.14.0"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240422"
25
+ REVISION = "20250331"
26
26
  end
27
27
  end
28
28
  end
@@ -31,7 +31,7 @@ module Google
31
31
  # Gmail = Google::Apis::GmailV1 # Alias the module
32
32
  # service = Gmail::GmailService.new
33
33
  #
34
- # @see https://developers.google.com/gmail/api/
34
+ # @see https://developers.google.com/workspace/gmail/api/
35
35
  class GmailService < Google::Apis::Core::BaseService
36
36
  DEFAULT_ENDPOINT_TEMPLATE = "https://gmail.$UNIVERSE_DOMAIN$/"
37
37
 
@@ -56,7 +56,6 @@ module Google
56
56
  # @param [String] user_id
57
57
  # The user's email address. The special value `me` can be used to indicate the
58
58
  # authenticated user.
59
- # @param [Boolean] temporary_eecc_bypass
60
59
  # @param [String] fields
61
60
  # Selector specifying which fields to include in a partial response.
62
61
  # @param [String] quota_user
@@ -74,12 +73,11 @@ module Google
74
73
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
74
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
75
  # @raise [Google::Apis::AuthorizationError] Authorization is required
77
- def get_user_profile(user_id, temporary_eecc_bypass: nil, fields: nil, quota_user: nil, options: nil, &block)
76
+ def get_user_profile(user_id, fields: nil, quota_user: nil, options: nil, &block)
78
77
  command = make_simple_command(:get, 'gmail/v1/users/{userId}/profile', options)
79
78
  command.response_representation = Google::Apis::GmailV1::Profile::Representation
80
79
  command.response_class = Google::Apis::GmailV1::Profile
81
80
  command.params['userId'] = user_id unless user_id.nil?
82
- command.query['temporaryEeccBypass'] = temporary_eecc_bypass unless temporary_eecc_bypass.nil?
83
81
  command.query['fields'] = fields unless fields.nil?
84
82
  command.query['quotaUser'] = quota_user unless quota_user.nil?
85
83
  execute_or_queue_command(command, &block)
@@ -773,7 +771,6 @@ module Google
773
771
  # The format to return the message in.
774
772
  # @param [Array<String>, String] metadata_headers
775
773
  # When given and format is `METADATA`, only include headers specified.
776
- # @param [Boolean] temporary_eecc_bypass
777
774
  # @param [String] fields
778
775
  # Selector specifying which fields to include in a partial response.
779
776
  # @param [String] quota_user
@@ -791,7 +788,7 @@ module Google
791
788
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
792
789
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
793
790
  # @raise [Google::Apis::AuthorizationError] Authorization is required
794
- def get_user_message(user_id, id, format: nil, metadata_headers: nil, temporary_eecc_bypass: nil, fields: nil, quota_user: nil, options: nil, &block)
791
+ def get_user_message(user_id, id, format: nil, metadata_headers: nil, fields: nil, quota_user: nil, options: nil, &block)
795
792
  command = make_simple_command(:get, 'gmail/v1/users/{userId}/messages/{id}', options)
796
793
  command.response_representation = Google::Apis::GmailV1::Message::Representation
797
794
  command.response_class = Google::Apis::GmailV1::Message
@@ -799,7 +796,6 @@ module Google
799
796
  command.params['id'] = id unless id.nil?
800
797
  command.query['format'] = format unless format.nil?
801
798
  command.query['metadataHeaders'] = metadata_headers unless metadata_headers.nil?
802
- command.query['temporaryEeccBypass'] = temporary_eecc_bypass unless temporary_eecc_bypass.nil?
803
799
  command.query['fields'] = fields unless fields.nil?
804
800
  command.query['quotaUser'] = quota_user unless quota_user.nil?
805
801
  execute_or_queue_command(command, &block)
@@ -929,7 +925,7 @@ module Google
929
925
  # Only return messages with labels that match all of the specified label IDs.
930
926
  # Messages in a thread might have labels that other messages in the same thread
931
927
  # don't have. To learn more, see [Manage labels on messages and threads](https://
932
- # developers.google.com/gmail/api/guides/labels#
928
+ # developers.google.com/workspace/gmail/api/guides/labels#
933
929
  # manage_labels_on_messages_threads).
934
930
  # @param [Fixnum] max_results
935
931
  # Maximum number of messages to return. This field defaults to 100. The maximum
@@ -941,7 +937,6 @@ module Google
941
937
  # format as the Gmail search box. For example, `"from:someuser@example.com
942
938
  # rfc822msgid: is:unread"`. Parameter cannot be used when accessing the api
943
939
  # using the gmail.metadata scope.
944
- # @param [Boolean] temporary_eecc_bypass
945
940
  # @param [String] fields
946
941
  # Selector specifying which fields to include in a partial response.
947
942
  # @param [String] quota_user
@@ -959,7 +954,7 @@ module Google
959
954
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
960
955
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
961
956
  # @raise [Google::Apis::AuthorizationError] Authorization is required
962
- def list_user_messages(user_id, include_spam_trash: nil, label_ids: nil, max_results: nil, page_token: nil, q: nil, temporary_eecc_bypass: nil, fields: nil, quota_user: nil, options: nil, &block)
957
+ def list_user_messages(user_id, include_spam_trash: nil, label_ids: nil, max_results: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, options: nil, &block)
963
958
  command = make_simple_command(:get, 'gmail/v1/users/{userId}/messages', options)
964
959
  command.response_representation = Google::Apis::GmailV1::ListMessagesResponse::Representation
965
960
  command.response_class = Google::Apis::GmailV1::ListMessagesResponse
@@ -969,7 +964,6 @@ module Google
969
964
  command.query['maxResults'] = max_results unless max_results.nil?
970
965
  command.query['pageToken'] = page_token unless page_token.nil?
971
966
  command.query['q'] = q unless q.nil?
972
- command.query['temporaryEeccBypass'] = temporary_eecc_bypass unless temporary_eecc_bypass.nil?
973
967
  command.query['fields'] = fields unless fields.nil?
974
968
  command.query['quotaUser'] = quota_user unless quota_user.nil?
975
969
  execute_or_queue_command(command, &block)
@@ -1014,7 +1008,7 @@ module Google
1014
1008
 
1015
1009
  # Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc`
1016
1010
  # headers. For example usage, see [Sending email](https://developers.google.com/
1017
- # gmail/api/guides/sending).
1011
+ # workspace/gmail/api/guides/sending).
1018
1012
  # @param [String] user_id
1019
1013
  # The user's email address. The special value `me` can be used to indicate the
1020
1014
  # authenticated user.
@@ -1134,7 +1128,6 @@ module Google
1134
1128
  # The ID of the message containing the attachment.
1135
1129
  # @param [String] id
1136
1130
  # The ID of the attachment.
1137
- # @param [Boolean] temporary_eecc_bypass
1138
1131
  # @param [String] fields
1139
1132
  # Selector specifying which fields to include in a partial response.
1140
1133
  # @param [String] quota_user
@@ -1152,14 +1145,13 @@ module Google
1152
1145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1153
1146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1154
1147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1155
- def get_user_message_attachment(user_id, message_id, id, temporary_eecc_bypass: nil, fields: nil, quota_user: nil, options: nil, &block)
1148
+ def get_user_message_attachment(user_id, message_id, id, fields: nil, quota_user: nil, options: nil, &block)
1156
1149
  command = make_simple_command(:get, 'gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}', options)
1157
1150
  command.response_representation = Google::Apis::GmailV1::MessagePartBody::Representation
1158
1151
  command.response_class = Google::Apis::GmailV1::MessagePartBody
1159
1152
  command.params['userId'] = user_id unless user_id.nil?
1160
1153
  command.params['messageId'] = message_id unless message_id.nil?
1161
1154
  command.params['id'] = id unless id.nil?
1162
- command.query['temporaryEeccBypass'] = temporary_eecc_bypass unless temporary_eecc_bypass.nil?
1163
1155
  command.query['fields'] = fields unless fields.nil?
1164
1156
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1165
1157
  execute_or_queue_command(command, &block)
@@ -2810,7 +2802,6 @@ module Google
2810
2802
  # The format to return the messages in.
2811
2803
  # @param [Array<String>, String] metadata_headers
2812
2804
  # When given and format is METADATA, only include headers specified.
2813
- # @param [Boolean] temporary_eecc_bypass
2814
2805
  # @param [String] fields
2815
2806
  # Selector specifying which fields to include in a partial response.
2816
2807
  # @param [String] quota_user
@@ -2828,7 +2819,7 @@ module Google
2828
2819
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2829
2820
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2830
2821
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2831
- def get_user_thread(user_id, id, format: nil, metadata_headers: nil, temporary_eecc_bypass: nil, fields: nil, quota_user: nil, options: nil, &block)
2822
+ def get_user_thread(user_id, id, format: nil, metadata_headers: nil, fields: nil, quota_user: nil, options: nil, &block)
2832
2823
  command = make_simple_command(:get, 'gmail/v1/users/{userId}/threads/{id}', options)
2833
2824
  command.response_representation = Google::Apis::GmailV1::Thread::Representation
2834
2825
  command.response_class = Google::Apis::GmailV1::Thread
@@ -2836,7 +2827,6 @@ module Google
2836
2827
  command.params['id'] = id unless id.nil?
2837
2828
  command.query['format'] = format unless format.nil?
2838
2829
  command.query['metadataHeaders'] = metadata_headers unless metadata_headers.nil?
2839
- command.query['temporaryEeccBypass'] = temporary_eecc_bypass unless temporary_eecc_bypass.nil?
2840
2830
  command.query['fields'] = fields unless fields.nil?
2841
2831
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2842
2832
  execute_or_queue_command(command, &block)
@@ -2860,7 +2850,6 @@ module Google
2860
2850
  # format as the Gmail search box. For example, `"from:someuser@example.com
2861
2851
  # rfc822msgid: is:unread"`. Parameter cannot be used when accessing the api
2862
2852
  # using the gmail.metadata scope.
2863
- # @param [Boolean] temporary_eecc_bypass
2864
2853
  # @param [String] fields
2865
2854
  # Selector specifying which fields to include in a partial response.
2866
2855
  # @param [String] quota_user
@@ -2878,7 +2867,7 @@ module Google
2878
2867
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2879
2868
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2880
2869
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2881
- def list_user_threads(user_id, include_spam_trash: nil, label_ids: nil, max_results: nil, page_token: nil, q: nil, temporary_eecc_bypass: nil, fields: nil, quota_user: nil, options: nil, &block)
2870
+ def list_user_threads(user_id, include_spam_trash: nil, label_ids: nil, max_results: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, options: nil, &block)
2882
2871
  command = make_simple_command(:get, 'gmail/v1/users/{userId}/threads', options)
2883
2872
  command.response_representation = Google::Apis::GmailV1::ListThreadsResponse::Representation
2884
2873
  command.response_class = Google::Apis::GmailV1::ListThreadsResponse
@@ -2888,7 +2877,6 @@ module Google
2888
2877
  command.query['maxResults'] = max_results unless max_results.nil?
2889
2878
  command.query['pageToken'] = page_token unless page_token.nil?
2890
2879
  command.query['q'] = q unless q.nil?
2891
- command.query['temporaryEeccBypass'] = temporary_eecc_bypass unless temporary_eecc_bypass.nil?
2892
2880
  command.query['fields'] = fields unless fields.nil?
2893
2881
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2894
2882
  execute_or_queue_command(command, &block)
@@ -24,7 +24,7 @@ module Google
24
24
  # The Gmail API lets you view and manage Gmail mailbox data like threads,
25
25
  # messages, and labels.
26
26
  #
27
- # @see https://developers.google.com/gmail/api/
27
+ # @see https://developers.google.com/workspace/gmail/api/
28
28
  module GmailV1
29
29
  # Version of the Gmail API this client connects to.
30
30
  # This is NOT the gem version.
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gmail_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.40.0
4
+ version: 0.42.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-04-28 00:00:00.000000000 Z
10
+ date: 2025-04-16 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.14.0
18
+ version: 0.15.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.14.0
28
+ version: 0.15.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gmail_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gmail_v1/v0.40.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gmail_v1/v0.42.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gmail_v1
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.6
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Gmail API V1
82
79
  test_files: []