google-apis-gmail_v1 0.20.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/gmail_v1/classes.rb +242 -0
- data/lib/google/apis/gmail_v1/gem_version.rb +3 -3
- data/lib/google/apis/gmail_v1/representations.rb +129 -0
- data/lib/google/apis/gmail_v1/service.rb +413 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bca2633c63a33df0627aba3f6bca1966987b7471795938d061b9aa41544c9d44
|
4
|
+
data.tar.gz: c7b7bd906995ff34b567420a913d432ec461d7b69a225f4afc9e5e3b13880e2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9ffc7c7672af1696f58dade52af60011e40ef9b3c1272aa0bac402e50c5fb6acf54b011bdfc66e30432ca993b3dae9b8a3e016261a820a40b2625d21b16abad
|
7
|
+
data.tar.gz: de3c77ea62577f82b57f7f4102b920307978306fe318aae5cf9e341f44d94d9b8ed829f1b550ad6cec73c9e37189448cca057ee1a0c57cee213fc9b26e2fd623
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-gmail_v1
|
2
2
|
|
3
|
+
### v0.22.0 (2023-01-22)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230116
|
6
|
+
* Regenerated using generator version 0.11.1
|
7
|
+
|
8
|
+
### v0.21.0 (2022-12-22)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20221219
|
11
|
+
|
3
12
|
### v0.20.0 (2022-10-27)
|
4
13
|
|
5
14
|
* Regenerated using generator version 0.11.0
|
@@ -105,6 +105,127 @@ module Google
|
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
108
|
+
# The client-side encryption (CSE) configuration for the email address of an
|
109
|
+
# authenticated user. Gmail uses CSE configurations to save drafts of client-
|
110
|
+
# side encrypted email messages, and to sign and send encrypted email messages.
|
111
|
+
class CseIdentity
|
112
|
+
include Google::Apis::Core::Hashable
|
113
|
+
|
114
|
+
# The email address for the sending identity. The email address must be the
|
115
|
+
# primary email address of the authenticated user.
|
116
|
+
# Corresponds to the JSON property `emailAddress`
|
117
|
+
# @return [String]
|
118
|
+
attr_accessor :email_address
|
119
|
+
|
120
|
+
# If a key pair is associated, the identifier of the key pair, CseKeyPair.
|
121
|
+
# Corresponds to the JSON property `primaryKeyPairId`
|
122
|
+
# @return [String]
|
123
|
+
attr_accessor :primary_key_pair_id
|
124
|
+
|
125
|
+
def initialize(**args)
|
126
|
+
update!(**args)
|
127
|
+
end
|
128
|
+
|
129
|
+
# Update properties of this object
|
130
|
+
def update!(**args)
|
131
|
+
@email_address = args[:email_address] if args.key?(:email_address)
|
132
|
+
@primary_key_pair_id = args[:primary_key_pair_id] if args.key?(:primary_key_pair_id)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# A client-side encryption S/MIME key pair, which is comprised of a public key,
|
137
|
+
# its certificate chain, and metadata for its paired private key. Gmail uses the
|
138
|
+
# key pair to complete the following tasks: - Sign outgoing client-side
|
139
|
+
# encrypted messages. - Save and reopen drafts of client-side encrypted messages.
|
140
|
+
# - Save and reopen sent messages. - Decrypt incoming or archived S/MIME
|
141
|
+
# messages.
|
142
|
+
class CseKeyPair
|
143
|
+
include Google::Apis::Core::Hashable
|
144
|
+
|
145
|
+
# Output only. If a key pair is set to `DISABLED`, the time that the key pair's
|
146
|
+
# state changed from `ENABLED` to `DISABLED`. This field is present only when
|
147
|
+
# the key pair is in state `DISABLED`.
|
148
|
+
# Corresponds to the JSON property `disableTime`
|
149
|
+
# @return [String]
|
150
|
+
attr_accessor :disable_time
|
151
|
+
|
152
|
+
# Output only. The current state of the key pair.
|
153
|
+
# Corresponds to the JSON property `enablementState`
|
154
|
+
# @return [String]
|
155
|
+
attr_accessor :enablement_state
|
156
|
+
|
157
|
+
# Output only. The immutable ID for the client-side encryption S/MIME key pair.
|
158
|
+
# Corresponds to the JSON property `keyPairId`
|
159
|
+
# @return [String]
|
160
|
+
attr_accessor :key_pair_id
|
161
|
+
|
162
|
+
# Output only. The public key and its certificate chain, in [PEM](https://en.
|
163
|
+
# wikipedia.org/wiki/Privacy-Enhanced_Mail) format.
|
164
|
+
# Corresponds to the JSON property `pem`
|
165
|
+
# @return [String]
|
166
|
+
attr_accessor :pem
|
167
|
+
|
168
|
+
# Input only. The public key and its certificate chain. The chain must be in [
|
169
|
+
# PKCS#7](https://en.wikipedia.org/wiki/PKCS_7) format and use PEM encoding and
|
170
|
+
# ASCII armor.
|
171
|
+
# Corresponds to the JSON property `pkcs7`
|
172
|
+
# @return [String]
|
173
|
+
attr_accessor :pkcs7
|
174
|
+
|
175
|
+
# Metadata for instances of this key pair's private key.
|
176
|
+
# Corresponds to the JSON property `privateKeyMetadata`
|
177
|
+
# @return [Array<Google::Apis::GmailV1::CsePrivateKeyMetadata>]
|
178
|
+
attr_accessor :private_key_metadata
|
179
|
+
|
180
|
+
# Output only. The email address identities that are specified on the leaf
|
181
|
+
# certificate.
|
182
|
+
# Corresponds to the JSON property `subjectEmailAddresses`
|
183
|
+
# @return [Array<String>]
|
184
|
+
attr_accessor :subject_email_addresses
|
185
|
+
|
186
|
+
def initialize(**args)
|
187
|
+
update!(**args)
|
188
|
+
end
|
189
|
+
|
190
|
+
# Update properties of this object
|
191
|
+
def update!(**args)
|
192
|
+
@disable_time = args[:disable_time] if args.key?(:disable_time)
|
193
|
+
@enablement_state = args[:enablement_state] if args.key?(:enablement_state)
|
194
|
+
@key_pair_id = args[:key_pair_id] if args.key?(:key_pair_id)
|
195
|
+
@pem = args[:pem] if args.key?(:pem)
|
196
|
+
@pkcs7 = args[:pkcs7] if args.key?(:pkcs7)
|
197
|
+
@private_key_metadata = args[:private_key_metadata] if args.key?(:private_key_metadata)
|
198
|
+
@subject_email_addresses = args[:subject_email_addresses] if args.key?(:subject_email_addresses)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
# Metadata for a private key instance.
|
203
|
+
class CsePrivateKeyMetadata
|
204
|
+
include Google::Apis::Core::Hashable
|
205
|
+
|
206
|
+
# Metadata for private keys managed by an external key access control list
|
207
|
+
# service. For details about managing key access, see [Google Workspace CSE API
|
208
|
+
# Reference](https://developers.google.com/workspace/cse/reference).
|
209
|
+
# Corresponds to the JSON property `kaclsKeyMetadata`
|
210
|
+
# @return [Google::Apis::GmailV1::KaclsKeyMetadata]
|
211
|
+
attr_accessor :kacls_key_metadata
|
212
|
+
|
213
|
+
# Output only. The immutable ID for the private key metadata instance.
|
214
|
+
# Corresponds to the JSON property `privateKeyMetadataId`
|
215
|
+
# @return [String]
|
216
|
+
attr_accessor :private_key_metadata_id
|
217
|
+
|
218
|
+
def initialize(**args)
|
219
|
+
update!(**args)
|
220
|
+
end
|
221
|
+
|
222
|
+
# Update properties of this object
|
223
|
+
def update!(**args)
|
224
|
+
@kacls_key_metadata = args[:kacls_key_metadata] if args.key?(:kacls_key_metadata)
|
225
|
+
@private_key_metadata_id = args[:private_key_metadata_id] if args.key?(:private_key_metadata_id)
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
108
229
|
# Settings for a delegate. Delegates can read, send, and delete messages, as
|
109
230
|
# well as view and add contacts, for the delegator's account. See "Set up mail
|
110
231
|
# delegation" for more information about delegates.
|
@@ -133,6 +254,19 @@ module Google
|
|
133
254
|
end
|
134
255
|
end
|
135
256
|
|
257
|
+
# Requests to turn off a client-side encryption key pair.
|
258
|
+
class DisableCseKeyPairRequest
|
259
|
+
include Google::Apis::Core::Hashable
|
260
|
+
|
261
|
+
def initialize(**args)
|
262
|
+
update!(**args)
|
263
|
+
end
|
264
|
+
|
265
|
+
# Update properties of this object
|
266
|
+
def update!(**args)
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
136
270
|
# A draft email in the user's mailbox.
|
137
271
|
class Draft
|
138
272
|
include Google::Apis::Core::Hashable
|
@@ -158,6 +292,19 @@ module Google
|
|
158
292
|
end
|
159
293
|
end
|
160
294
|
|
295
|
+
# Requests to turn on a client-side encryption key pair.
|
296
|
+
class EnableCseKeyPairRequest
|
297
|
+
include Google::Apis::Core::Hashable
|
298
|
+
|
299
|
+
def initialize(**args)
|
300
|
+
update!(**args)
|
301
|
+
end
|
302
|
+
|
303
|
+
# Update properties of this object
|
304
|
+
def update!(**args)
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
161
308
|
# Resource definition for Gmail filters. Filters apply to specific messages
|
162
309
|
# instead of an entire email thread.
|
163
310
|
class Filter
|
@@ -509,6 +656,34 @@ module Google
|
|
509
656
|
end
|
510
657
|
end
|
511
658
|
|
659
|
+
# Metadata for private keys managed by an external key access control list
|
660
|
+
# service. For details about managing key access, see [Google Workspace CSE API
|
661
|
+
# Reference](https://developers.google.com/workspace/cse/reference).
|
662
|
+
class KaclsKeyMetadata
|
663
|
+
include Google::Apis::Core::Hashable
|
664
|
+
|
665
|
+
# Opaque data generated and used by the key access control list service. Maximum
|
666
|
+
# size: 8 KiB.
|
667
|
+
# Corresponds to the JSON property `kaclsData`
|
668
|
+
# @return [String]
|
669
|
+
attr_accessor :kacls_data
|
670
|
+
|
671
|
+
# The URI of the key access control list service that manages the private key.
|
672
|
+
# Corresponds to the JSON property `kaclsUri`
|
673
|
+
# @return [String]
|
674
|
+
attr_accessor :kacls_uri
|
675
|
+
|
676
|
+
def initialize(**args)
|
677
|
+
update!(**args)
|
678
|
+
end
|
679
|
+
|
680
|
+
# Update properties of this object
|
681
|
+
def update!(**args)
|
682
|
+
@kacls_data = args[:kacls_data] if args.key?(:kacls_data)
|
683
|
+
@kacls_uri = args[:kacls_uri] if args.key?(:kacls_uri)
|
684
|
+
end
|
685
|
+
end
|
686
|
+
|
512
687
|
# Labels are used to categorize messages and threads within the user's mailbox.
|
513
688
|
# The maximum number of labels supported for a user's mailbox is 10,000.
|
514
689
|
class Label
|
@@ -675,6 +850,60 @@ module Google
|
|
675
850
|
end
|
676
851
|
end
|
677
852
|
|
853
|
+
#
|
854
|
+
class ListCseIdentitiesResponse
|
855
|
+
include Google::Apis::Core::Hashable
|
856
|
+
|
857
|
+
# One page of the list of CSE identities configured for the user.
|
858
|
+
# Corresponds to the JSON property `cseIdentities`
|
859
|
+
# @return [Array<Google::Apis::GmailV1::CseIdentity>]
|
860
|
+
attr_accessor :cse_identities
|
861
|
+
|
862
|
+
# Pagination token to be passed to a subsequent ListCseIdentities call in order
|
863
|
+
# to retrieve the next page of identities. If this value is not returned or is
|
864
|
+
# the empty string, then no further pages remain.
|
865
|
+
# Corresponds to the JSON property `nextPageToken`
|
866
|
+
# @return [String]
|
867
|
+
attr_accessor :next_page_token
|
868
|
+
|
869
|
+
def initialize(**args)
|
870
|
+
update!(**args)
|
871
|
+
end
|
872
|
+
|
873
|
+
# Update properties of this object
|
874
|
+
def update!(**args)
|
875
|
+
@cse_identities = args[:cse_identities] if args.key?(:cse_identities)
|
876
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
877
|
+
end
|
878
|
+
end
|
879
|
+
|
880
|
+
#
|
881
|
+
class ListCseKeyPairsResponse
|
882
|
+
include Google::Apis::Core::Hashable
|
883
|
+
|
884
|
+
# One page of the list of CSE key pairs installed for the user.
|
885
|
+
# Corresponds to the JSON property `cseKeyPairs`
|
886
|
+
# @return [Array<Google::Apis::GmailV1::CseKeyPair>]
|
887
|
+
attr_accessor :cse_key_pairs
|
888
|
+
|
889
|
+
# Pagination token to be passed to a subsequent ListCseKeyPairs call in order to
|
890
|
+
# retrieve the next page of key pairs. If this value is not returned, then no
|
891
|
+
# further pages remain.
|
892
|
+
# Corresponds to the JSON property `nextPageToken`
|
893
|
+
# @return [String]
|
894
|
+
attr_accessor :next_page_token
|
895
|
+
|
896
|
+
def initialize(**args)
|
897
|
+
update!(**args)
|
898
|
+
end
|
899
|
+
|
900
|
+
# Update properties of this object
|
901
|
+
def update!(**args)
|
902
|
+
@cse_key_pairs = args[:cse_key_pairs] if args.key?(:cse_key_pairs)
|
903
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
904
|
+
end
|
905
|
+
end
|
906
|
+
|
678
907
|
# Response for the ListDelegates method.
|
679
908
|
class ListDelegatesResponse
|
680
909
|
include Google::Apis::Core::Hashable
|
@@ -1174,6 +1403,19 @@ module Google
|
|
1174
1403
|
end
|
1175
1404
|
end
|
1176
1405
|
|
1406
|
+
# Request to obliterate a CSE key pair.
|
1407
|
+
class ObliterateCseKeyPairRequest
|
1408
|
+
include Google::Apis::Core::Hashable
|
1409
|
+
|
1410
|
+
def initialize(**args)
|
1411
|
+
update!(**args)
|
1412
|
+
end
|
1413
|
+
|
1414
|
+
# Update properties of this object
|
1415
|
+
def update!(**args)
|
1416
|
+
end
|
1417
|
+
end
|
1418
|
+
|
1177
1419
|
# POP settings for an account.
|
1178
1420
|
class PopSettings
|
1179
1421
|
include Google::Apis::Core::Hashable
|
@@ -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.22.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.11.
|
22
|
+
GENERATOR_VERSION = "0.11.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230116"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -40,18 +40,48 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class CseIdentity
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class CseKeyPair
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class CsePrivateKeyMetadata
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
43
61
|
class Delegate
|
44
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
63
|
|
46
64
|
include Google::Apis::Core::JsonObjectSupport
|
47
65
|
end
|
48
66
|
|
67
|
+
class DisableCseKeyPairRequest
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
49
73
|
class Draft
|
50
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
75
|
|
52
76
|
include Google::Apis::Core::JsonObjectSupport
|
53
77
|
end
|
54
78
|
|
79
|
+
class EnableCseKeyPairRequest
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
55
85
|
class Filter
|
56
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
87
|
|
@@ -112,6 +142,12 @@ module Google
|
|
112
142
|
include Google::Apis::Core::JsonObjectSupport
|
113
143
|
end
|
114
144
|
|
145
|
+
class KaclsKeyMetadata
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
115
151
|
class Label
|
116
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
153
|
|
@@ -130,6 +166,18 @@ module Google
|
|
130
166
|
include Google::Apis::Core::JsonObjectSupport
|
131
167
|
end
|
132
168
|
|
169
|
+
class ListCseIdentitiesResponse
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
175
|
+
class ListCseKeyPairsResponse
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
133
181
|
class ListDelegatesResponse
|
134
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
183
|
|
@@ -226,6 +274,12 @@ module Google
|
|
226
274
|
include Google::Apis::Core::JsonObjectSupport
|
227
275
|
end
|
228
276
|
|
277
|
+
class ObliterateCseKeyPairRequest
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
229
283
|
class PopSettings
|
230
284
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
285
|
|
@@ -305,6 +359,37 @@ module Google
|
|
305
359
|
end
|
306
360
|
end
|
307
361
|
|
362
|
+
class CseIdentity
|
363
|
+
# @private
|
364
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
365
|
+
property :email_address, as: 'emailAddress'
|
366
|
+
property :primary_key_pair_id, as: 'primaryKeyPairId'
|
367
|
+
end
|
368
|
+
end
|
369
|
+
|
370
|
+
class CseKeyPair
|
371
|
+
# @private
|
372
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
373
|
+
property :disable_time, as: 'disableTime'
|
374
|
+
property :enablement_state, as: 'enablementState'
|
375
|
+
property :key_pair_id, as: 'keyPairId'
|
376
|
+
property :pem, as: 'pem'
|
377
|
+
property :pkcs7, as: 'pkcs7'
|
378
|
+
collection :private_key_metadata, as: 'privateKeyMetadata', class: Google::Apis::GmailV1::CsePrivateKeyMetadata, decorator: Google::Apis::GmailV1::CsePrivateKeyMetadata::Representation
|
379
|
+
|
380
|
+
collection :subject_email_addresses, as: 'subjectEmailAddresses'
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
384
|
+
class CsePrivateKeyMetadata
|
385
|
+
# @private
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
387
|
+
property :kacls_key_metadata, as: 'kaclsKeyMetadata', class: Google::Apis::GmailV1::KaclsKeyMetadata, decorator: Google::Apis::GmailV1::KaclsKeyMetadata::Representation
|
388
|
+
|
389
|
+
property :private_key_metadata_id, as: 'privateKeyMetadataId'
|
390
|
+
end
|
391
|
+
end
|
392
|
+
|
308
393
|
class Delegate
|
309
394
|
# @private
|
310
395
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -313,6 +398,12 @@ module Google
|
|
313
398
|
end
|
314
399
|
end
|
315
400
|
|
401
|
+
class DisableCseKeyPairRequest
|
402
|
+
# @private
|
403
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
316
407
|
class Draft
|
317
408
|
# @private
|
318
409
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -322,6 +413,12 @@ module Google
|
|
322
413
|
end
|
323
414
|
end
|
324
415
|
|
416
|
+
class EnableCseKeyPairRequest
|
417
|
+
# @private
|
418
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
325
422
|
class Filter
|
326
423
|
# @private
|
327
424
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -426,6 +523,14 @@ module Google
|
|
426
523
|
end
|
427
524
|
end
|
428
525
|
|
526
|
+
class KaclsKeyMetadata
|
527
|
+
# @private
|
528
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
529
|
+
property :kacls_data, as: 'kaclsData'
|
530
|
+
property :kacls_uri, as: 'kaclsUri'
|
531
|
+
end
|
532
|
+
end
|
533
|
+
|
429
534
|
class Label
|
430
535
|
# @private
|
431
536
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -458,6 +563,24 @@ module Google
|
|
458
563
|
end
|
459
564
|
end
|
460
565
|
|
566
|
+
class ListCseIdentitiesResponse
|
567
|
+
# @private
|
568
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
569
|
+
collection :cse_identities, as: 'cseIdentities', class: Google::Apis::GmailV1::CseIdentity, decorator: Google::Apis::GmailV1::CseIdentity::Representation
|
570
|
+
|
571
|
+
property :next_page_token, as: 'nextPageToken'
|
572
|
+
end
|
573
|
+
end
|
574
|
+
|
575
|
+
class ListCseKeyPairsResponse
|
576
|
+
# @private
|
577
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
578
|
+
collection :cse_key_pairs, as: 'cseKeyPairs', class: Google::Apis::GmailV1::CseKeyPair, decorator: Google::Apis::GmailV1::CseKeyPair::Representation
|
579
|
+
|
580
|
+
property :next_page_token, as: 'nextPageToken'
|
581
|
+
end
|
582
|
+
end
|
583
|
+
|
461
584
|
class ListDelegatesResponse
|
462
585
|
# @private
|
463
586
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -610,6 +733,12 @@ module Google
|
|
610
733
|
end
|
611
734
|
end
|
612
735
|
|
736
|
+
class ObliterateCseKeyPairRequest
|
737
|
+
# @private
|
738
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
739
|
+
end
|
740
|
+
end
|
741
|
+
|
613
742
|
class PopSettings
|
614
743
|
# @private
|
615
744
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1484,6 +1484,419 @@ module Google
|
|
1484
1484
|
execute_or_queue_command(command, &block)
|
1485
1485
|
end
|
1486
1486
|
|
1487
|
+
# Creates and configures a client-side encryption identity that's authorized to
|
1488
|
+
# send mail from the user account. Google publishes the S/MIME certificate to a
|
1489
|
+
# shared domain-wide directory so that people within a Google Workspace
|
1490
|
+
# organization can encrypt and send mail to the identity.
|
1491
|
+
# @param [String] user_id
|
1492
|
+
# The requester's primary email address. To indicate the authenticated user, you
|
1493
|
+
# can use the special value `me`.
|
1494
|
+
# @param [Google::Apis::GmailV1::CseIdentity] cse_identity_object
|
1495
|
+
# @param [String] fields
|
1496
|
+
# Selector specifying which fields to include in a partial response.
|
1497
|
+
# @param [String] quota_user
|
1498
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1499
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1500
|
+
# @param [Google::Apis::RequestOptions] options
|
1501
|
+
# Request-specific options
|
1502
|
+
#
|
1503
|
+
# @yield [result, err] Result & error if block supplied
|
1504
|
+
# @yieldparam result [Google::Apis::GmailV1::CseIdentity] parsed result object
|
1505
|
+
# @yieldparam err [StandardError] error object if request failed
|
1506
|
+
#
|
1507
|
+
# @return [Google::Apis::GmailV1::CseIdentity]
|
1508
|
+
#
|
1509
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1510
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1511
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1512
|
+
def create_user_setting_cse_identity(user_id, cse_identity_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1513
|
+
command = make_simple_command(:post, 'gmail/v1/users/{userId}/settings/cse/identities', options)
|
1514
|
+
command.request_representation = Google::Apis::GmailV1::CseIdentity::Representation
|
1515
|
+
command.request_object = cse_identity_object
|
1516
|
+
command.response_representation = Google::Apis::GmailV1::CseIdentity::Representation
|
1517
|
+
command.response_class = Google::Apis::GmailV1::CseIdentity
|
1518
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1519
|
+
command.query['fields'] = fields unless fields.nil?
|
1520
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1521
|
+
execute_or_queue_command(command, &block)
|
1522
|
+
end
|
1523
|
+
|
1524
|
+
# Deletes a client-side encryption identity. The authenticated user can no
|
1525
|
+
# longer use the identity to send encrypted messages. You cannot restore the
|
1526
|
+
# identity after you delete it. Instead, use the CreateCseIdentity method to
|
1527
|
+
# create another identity with the same configuration.
|
1528
|
+
# @param [String] user_id
|
1529
|
+
# The requester's primary email address. To indicate the authenticated user, you
|
1530
|
+
# can use the special value `me`.
|
1531
|
+
# @param [String] cse_email_address
|
1532
|
+
# The primary email address associated with the client-side encryption identity
|
1533
|
+
# configuration that's removed.
|
1534
|
+
# @param [String] fields
|
1535
|
+
# Selector specifying which fields to include in a partial response.
|
1536
|
+
# @param [String] quota_user
|
1537
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1538
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1539
|
+
# @param [Google::Apis::RequestOptions] options
|
1540
|
+
# Request-specific options
|
1541
|
+
#
|
1542
|
+
# @yield [result, err] Result & error if block supplied
|
1543
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1544
|
+
# @yieldparam err [StandardError] error object if request failed
|
1545
|
+
#
|
1546
|
+
# @return [void]
|
1547
|
+
#
|
1548
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1549
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1550
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1551
|
+
def delete_user_setting_cse_identity(user_id, cse_email_address, fields: nil, quota_user: nil, options: nil, &block)
|
1552
|
+
command = make_simple_command(:delete, 'gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}', options)
|
1553
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1554
|
+
command.params['cseEmailAddress'] = cse_email_address unless cse_email_address.nil?
|
1555
|
+
command.query['fields'] = fields unless fields.nil?
|
1556
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1557
|
+
execute_or_queue_command(command, &block)
|
1558
|
+
end
|
1559
|
+
|
1560
|
+
# Retrieves a client-side encryption identity configuration.
|
1561
|
+
# @param [String] user_id
|
1562
|
+
# The requester's primary email address. To indicate the authenticated user, you
|
1563
|
+
# can use the special value `me`.
|
1564
|
+
# @param [String] cse_email_address
|
1565
|
+
# The primary email address associated with the client-side encryption identity
|
1566
|
+
# configuration that's retrieved.
|
1567
|
+
# @param [String] fields
|
1568
|
+
# Selector specifying which fields to include in a partial response.
|
1569
|
+
# @param [String] quota_user
|
1570
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1571
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1572
|
+
# @param [Google::Apis::RequestOptions] options
|
1573
|
+
# Request-specific options
|
1574
|
+
#
|
1575
|
+
# @yield [result, err] Result & error if block supplied
|
1576
|
+
# @yieldparam result [Google::Apis::GmailV1::CseIdentity] parsed result object
|
1577
|
+
# @yieldparam err [StandardError] error object if request failed
|
1578
|
+
#
|
1579
|
+
# @return [Google::Apis::GmailV1::CseIdentity]
|
1580
|
+
#
|
1581
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1582
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1583
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1584
|
+
def get_user_setting_cse_identity(user_id, cse_email_address, fields: nil, quota_user: nil, options: nil, &block)
|
1585
|
+
command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}', options)
|
1586
|
+
command.response_representation = Google::Apis::GmailV1::CseIdentity::Representation
|
1587
|
+
command.response_class = Google::Apis::GmailV1::CseIdentity
|
1588
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1589
|
+
command.params['cseEmailAddress'] = cse_email_address unless cse_email_address.nil?
|
1590
|
+
command.query['fields'] = fields unless fields.nil?
|
1591
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1592
|
+
execute_or_queue_command(command, &block)
|
1593
|
+
end
|
1594
|
+
|
1595
|
+
# Lists the client-side encrypted identities for an authenticated user.
|
1596
|
+
# @param [String] user_id
|
1597
|
+
# The requester's primary email address. To indicate the authenticated user, you
|
1598
|
+
# can use the special value `me`.
|
1599
|
+
# @param [Fixnum] page_size
|
1600
|
+
# The number of identities to return. If not provided, the page size will
|
1601
|
+
# default to 20 entries.
|
1602
|
+
# @param [String] page_token
|
1603
|
+
# Pagination token indicating which page of identities to return. If the token
|
1604
|
+
# is not supplied, then the API will return the first page of results.
|
1605
|
+
# @param [String] fields
|
1606
|
+
# Selector specifying which fields to include in a partial response.
|
1607
|
+
# @param [String] quota_user
|
1608
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1609
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1610
|
+
# @param [Google::Apis::RequestOptions] options
|
1611
|
+
# Request-specific options
|
1612
|
+
#
|
1613
|
+
# @yield [result, err] Result & error if block supplied
|
1614
|
+
# @yieldparam result [Google::Apis::GmailV1::ListCseIdentitiesResponse] parsed result object
|
1615
|
+
# @yieldparam err [StandardError] error object if request failed
|
1616
|
+
#
|
1617
|
+
# @return [Google::Apis::GmailV1::ListCseIdentitiesResponse]
|
1618
|
+
#
|
1619
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1620
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1621
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1622
|
+
def list_user_setting_cse_identities(user_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1623
|
+
command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/cse/identities', options)
|
1624
|
+
command.response_representation = Google::Apis::GmailV1::ListCseIdentitiesResponse::Representation
|
1625
|
+
command.response_class = Google::Apis::GmailV1::ListCseIdentitiesResponse
|
1626
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1627
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1628
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1629
|
+
command.query['fields'] = fields unless fields.nil?
|
1630
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1631
|
+
execute_or_queue_command(command, &block)
|
1632
|
+
end
|
1633
|
+
|
1634
|
+
# Associates a different key pair with an existing client-side encryption
|
1635
|
+
# identity. The updated key pair must validate against Google's [S/MIME
|
1636
|
+
# certificate profiles](https://support.google.com/a/answer/7300887).
|
1637
|
+
# @param [String] user_id
|
1638
|
+
# The requester's primary email address. To indicate the authenticated user, you
|
1639
|
+
# can use the special value `me`.
|
1640
|
+
# @param [String] email_address
|
1641
|
+
# The email address of the client-side encryption identity to update.
|
1642
|
+
# @param [Google::Apis::GmailV1::CseIdentity] cse_identity_object
|
1643
|
+
# @param [String] fields
|
1644
|
+
# Selector specifying which fields to include in a partial response.
|
1645
|
+
# @param [String] quota_user
|
1646
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1647
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1648
|
+
# @param [Google::Apis::RequestOptions] options
|
1649
|
+
# Request-specific options
|
1650
|
+
#
|
1651
|
+
# @yield [result, err] Result & error if block supplied
|
1652
|
+
# @yieldparam result [Google::Apis::GmailV1::CseIdentity] parsed result object
|
1653
|
+
# @yieldparam err [StandardError] error object if request failed
|
1654
|
+
#
|
1655
|
+
# @return [Google::Apis::GmailV1::CseIdentity]
|
1656
|
+
#
|
1657
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1658
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1659
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1660
|
+
def patch_user_setting_cse_identity(user_id, email_address, cse_identity_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1661
|
+
command = make_simple_command(:patch, 'gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}', options)
|
1662
|
+
command.request_representation = Google::Apis::GmailV1::CseIdentity::Representation
|
1663
|
+
command.request_object = cse_identity_object
|
1664
|
+
command.response_representation = Google::Apis::GmailV1::CseIdentity::Representation
|
1665
|
+
command.response_class = Google::Apis::GmailV1::CseIdentity
|
1666
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1667
|
+
command.params['emailAddress'] = email_address unless email_address.nil?
|
1668
|
+
command.query['fields'] = fields unless fields.nil?
|
1669
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1670
|
+
execute_or_queue_command(command, &block)
|
1671
|
+
end
|
1672
|
+
|
1673
|
+
# Creates and uploads a client-side encryption S/MIME public key certificate
|
1674
|
+
# chain and private key metadata for the authenticated user.
|
1675
|
+
# @param [String] user_id
|
1676
|
+
# The requester's primary email address. To indicate the authenticated user, you
|
1677
|
+
# can use the special value `me`.
|
1678
|
+
# @param [Google::Apis::GmailV1::CseKeyPair] cse_key_pair_object
|
1679
|
+
# @param [String] fields
|
1680
|
+
# Selector specifying which fields to include in a partial response.
|
1681
|
+
# @param [String] quota_user
|
1682
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1683
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1684
|
+
# @param [Google::Apis::RequestOptions] options
|
1685
|
+
# Request-specific options
|
1686
|
+
#
|
1687
|
+
# @yield [result, err] Result & error if block supplied
|
1688
|
+
# @yieldparam result [Google::Apis::GmailV1::CseKeyPair] parsed result object
|
1689
|
+
# @yieldparam err [StandardError] error object if request failed
|
1690
|
+
#
|
1691
|
+
# @return [Google::Apis::GmailV1::CseKeyPair]
|
1692
|
+
#
|
1693
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1694
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1695
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1696
|
+
def create_user_setting_cse_keypair(user_id, cse_key_pair_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1697
|
+
command = make_simple_command(:post, 'gmail/v1/users/{userId}/settings/cse/keypairs', options)
|
1698
|
+
command.request_representation = Google::Apis::GmailV1::CseKeyPair::Representation
|
1699
|
+
command.request_object = cse_key_pair_object
|
1700
|
+
command.response_representation = Google::Apis::GmailV1::CseKeyPair::Representation
|
1701
|
+
command.response_class = Google::Apis::GmailV1::CseKeyPair
|
1702
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1703
|
+
command.query['fields'] = fields unless fields.nil?
|
1704
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1705
|
+
execute_or_queue_command(command, &block)
|
1706
|
+
end
|
1707
|
+
|
1708
|
+
# Turns off a client-side encryption key pair. The authenticated user can no
|
1709
|
+
# longer use the key pair to decrypt incoming CSE message texts or sign outgoing
|
1710
|
+
# CSE mail. To regain access, use the EnableCseKeyPair to turn on the key pair.
|
1711
|
+
# After 30 days, you can permanently delete the key pair by using the
|
1712
|
+
# ObliterateCseKeyPair method.
|
1713
|
+
# @param [String] user_id
|
1714
|
+
# The requester's primary email address. To indicate the authenticated user, you
|
1715
|
+
# can use the special value `me`.
|
1716
|
+
# @param [String] key_pair_id
|
1717
|
+
# The identifier of the key pair to turn off.
|
1718
|
+
# @param [Google::Apis::GmailV1::DisableCseKeyPairRequest] disable_cse_key_pair_request_object
|
1719
|
+
# @param [String] fields
|
1720
|
+
# Selector specifying which fields to include in a partial response.
|
1721
|
+
# @param [String] quota_user
|
1722
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1723
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1724
|
+
# @param [Google::Apis::RequestOptions] options
|
1725
|
+
# Request-specific options
|
1726
|
+
#
|
1727
|
+
# @yield [result, err] Result & error if block supplied
|
1728
|
+
# @yieldparam result [Google::Apis::GmailV1::CseKeyPair] parsed result object
|
1729
|
+
# @yieldparam err [StandardError] error object if request failed
|
1730
|
+
#
|
1731
|
+
# @return [Google::Apis::GmailV1::CseKeyPair]
|
1732
|
+
#
|
1733
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1734
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1735
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1736
|
+
def disable_keypair_cse_key_pair(user_id, key_pair_id, disable_cse_key_pair_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1737
|
+
command = make_simple_command(:post, 'gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable', options)
|
1738
|
+
command.request_representation = Google::Apis::GmailV1::DisableCseKeyPairRequest::Representation
|
1739
|
+
command.request_object = disable_cse_key_pair_request_object
|
1740
|
+
command.response_representation = Google::Apis::GmailV1::CseKeyPair::Representation
|
1741
|
+
command.response_class = Google::Apis::GmailV1::CseKeyPair
|
1742
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1743
|
+
command.params['keyPairId'] = key_pair_id unless key_pair_id.nil?
|
1744
|
+
command.query['fields'] = fields unless fields.nil?
|
1745
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1746
|
+
execute_or_queue_command(command, &block)
|
1747
|
+
end
|
1748
|
+
|
1749
|
+
# Turns on a client-side encryption key pair that was turned off. The key pair
|
1750
|
+
# becomes active again for any associated client-side encryption identities.
|
1751
|
+
# @param [String] user_id
|
1752
|
+
# The requester's primary email address. To indicate the authenticated user, you
|
1753
|
+
# can use the special value `me`.
|
1754
|
+
# @param [String] key_pair_id
|
1755
|
+
# The identifier of the key pair to turn on.
|
1756
|
+
# @param [Google::Apis::GmailV1::EnableCseKeyPairRequest] enable_cse_key_pair_request_object
|
1757
|
+
# @param [String] fields
|
1758
|
+
# Selector specifying which fields to include in a partial response.
|
1759
|
+
# @param [String] quota_user
|
1760
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1761
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1762
|
+
# @param [Google::Apis::RequestOptions] options
|
1763
|
+
# Request-specific options
|
1764
|
+
#
|
1765
|
+
# @yield [result, err] Result & error if block supplied
|
1766
|
+
# @yieldparam result [Google::Apis::GmailV1::CseKeyPair] parsed result object
|
1767
|
+
# @yieldparam err [StandardError] error object if request failed
|
1768
|
+
#
|
1769
|
+
# @return [Google::Apis::GmailV1::CseKeyPair]
|
1770
|
+
#
|
1771
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1772
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1773
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1774
|
+
def enable_keypair_cse_key_pair(user_id, key_pair_id, enable_cse_key_pair_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1775
|
+
command = make_simple_command(:post, 'gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable', options)
|
1776
|
+
command.request_representation = Google::Apis::GmailV1::EnableCseKeyPairRequest::Representation
|
1777
|
+
command.request_object = enable_cse_key_pair_request_object
|
1778
|
+
command.response_representation = Google::Apis::GmailV1::CseKeyPair::Representation
|
1779
|
+
command.response_class = Google::Apis::GmailV1::CseKeyPair
|
1780
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1781
|
+
command.params['keyPairId'] = key_pair_id unless key_pair_id.nil?
|
1782
|
+
command.query['fields'] = fields unless fields.nil?
|
1783
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1784
|
+
execute_or_queue_command(command, &block)
|
1785
|
+
end
|
1786
|
+
|
1787
|
+
# Retrieves an existing client-side encryption key pair.
|
1788
|
+
# @param [String] user_id
|
1789
|
+
# The requester's primary email address. To indicate the authenticated user, you
|
1790
|
+
# can use the special value `me`.
|
1791
|
+
# @param [String] key_pair_id
|
1792
|
+
# The identifier of the key pair to retrieve.
|
1793
|
+
# @param [String] fields
|
1794
|
+
# Selector specifying which fields to include in a partial response.
|
1795
|
+
# @param [String] quota_user
|
1796
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1797
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1798
|
+
# @param [Google::Apis::RequestOptions] options
|
1799
|
+
# Request-specific options
|
1800
|
+
#
|
1801
|
+
# @yield [result, err] Result & error if block supplied
|
1802
|
+
# @yieldparam result [Google::Apis::GmailV1::CseKeyPair] parsed result object
|
1803
|
+
# @yieldparam err [StandardError] error object if request failed
|
1804
|
+
#
|
1805
|
+
# @return [Google::Apis::GmailV1::CseKeyPair]
|
1806
|
+
#
|
1807
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1808
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1809
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1810
|
+
def get_user_setting_cse_keypair(user_id, key_pair_id, fields: nil, quota_user: nil, options: nil, &block)
|
1811
|
+
command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}', options)
|
1812
|
+
command.response_representation = Google::Apis::GmailV1::CseKeyPair::Representation
|
1813
|
+
command.response_class = Google::Apis::GmailV1::CseKeyPair
|
1814
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1815
|
+
command.params['keyPairId'] = key_pair_id unless key_pair_id.nil?
|
1816
|
+
command.query['fields'] = fields unless fields.nil?
|
1817
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1818
|
+
execute_or_queue_command(command, &block)
|
1819
|
+
end
|
1820
|
+
|
1821
|
+
# Lists client-side encryption key pairs for an authenticated user.
|
1822
|
+
# @param [String] user_id
|
1823
|
+
# The requester's primary email address. To indicate the authenticated user, you
|
1824
|
+
# can use the special value `me`.
|
1825
|
+
# @param [Fixnum] page_size
|
1826
|
+
# The number of key pairs to return. If not provided, the page size will default
|
1827
|
+
# to 20 entries.
|
1828
|
+
# @param [String] page_token
|
1829
|
+
# Pagination token indicating which page of key pairs to return. If the token is
|
1830
|
+
# not supplied, then the API will return the first page of results.
|
1831
|
+
# @param [String] fields
|
1832
|
+
# Selector specifying which fields to include in a partial response.
|
1833
|
+
# @param [String] quota_user
|
1834
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1835
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1836
|
+
# @param [Google::Apis::RequestOptions] options
|
1837
|
+
# Request-specific options
|
1838
|
+
#
|
1839
|
+
# @yield [result, err] Result & error if block supplied
|
1840
|
+
# @yieldparam result [Google::Apis::GmailV1::ListCseKeyPairsResponse] parsed result object
|
1841
|
+
# @yieldparam err [StandardError] error object if request failed
|
1842
|
+
#
|
1843
|
+
# @return [Google::Apis::GmailV1::ListCseKeyPairsResponse]
|
1844
|
+
#
|
1845
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1846
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1847
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1848
|
+
def list_user_setting_cse_keypairs(user_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1849
|
+
command = make_simple_command(:get, 'gmail/v1/users/{userId}/settings/cse/keypairs', options)
|
1850
|
+
command.response_representation = Google::Apis::GmailV1::ListCseKeyPairsResponse::Representation
|
1851
|
+
command.response_class = Google::Apis::GmailV1::ListCseKeyPairsResponse
|
1852
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1853
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1854
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1855
|
+
command.query['fields'] = fields unless fields.nil?
|
1856
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1857
|
+
execute_or_queue_command(command, &block)
|
1858
|
+
end
|
1859
|
+
|
1860
|
+
# Deletes a client-side encryption key pair permanently and immediately. You can
|
1861
|
+
# only permanently delete key pairs that have been turned off for more than 30
|
1862
|
+
# days. To turn off a key pair, use the DisableCseKeyPair method. Gmail can't
|
1863
|
+
# restore or decrypt any messages that were encrypted by an obliterated key.
|
1864
|
+
# Authenticated users and Google Workspace administrators lose access to reading
|
1865
|
+
# the encrypted messages.
|
1866
|
+
# @param [String] user_id
|
1867
|
+
# The requester's primary email address. To indicate the authenticated user, you
|
1868
|
+
# can use the special value `me`.
|
1869
|
+
# @param [String] key_pair_id
|
1870
|
+
# The identifier of the key pair to obliterate.
|
1871
|
+
# @param [Google::Apis::GmailV1::ObliterateCseKeyPairRequest] obliterate_cse_key_pair_request_object
|
1872
|
+
# @param [String] fields
|
1873
|
+
# Selector specifying which fields to include in a partial response.
|
1874
|
+
# @param [String] quota_user
|
1875
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1876
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1877
|
+
# @param [Google::Apis::RequestOptions] options
|
1878
|
+
# Request-specific options
|
1879
|
+
#
|
1880
|
+
# @yield [result, err] Result & error if block supplied
|
1881
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1882
|
+
# @yieldparam err [StandardError] error object if request failed
|
1883
|
+
#
|
1884
|
+
# @return [void]
|
1885
|
+
#
|
1886
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1887
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1888
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1889
|
+
def obliterate_keypair_cse_key_pair(user_id, key_pair_id, obliterate_cse_key_pair_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1890
|
+
command = make_simple_command(:post, 'gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate', options)
|
1891
|
+
command.request_representation = Google::Apis::GmailV1::ObliterateCseKeyPairRequest::Representation
|
1892
|
+
command.request_object = obliterate_cse_key_pair_request_object
|
1893
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1894
|
+
command.params['keyPairId'] = key_pair_id unless key_pair_id.nil?
|
1895
|
+
command.query['fields'] = fields unless fields.nil?
|
1896
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1897
|
+
execute_or_queue_command(command, &block)
|
1898
|
+
end
|
1899
|
+
|
1487
1900
|
# Adds a delegate with its verification status set directly to `accepted`,
|
1488
1901
|
# without sending any verification email. The delegate user must be a member of
|
1489
1902
|
# the same G Suite organization as the delegator user. Gmail imposes limitations
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-gmail_v1/v0.22.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gmail_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.4.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Gmail API V1
|