google-apis-cloudkms_v1 0.1.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 +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-cloudkms_v1.rb +15 -0
- data/lib/google/apis/cloudkms_v1.rb +40 -0
- data/lib/google/apis/cloudkms_v1/classes.rb +1677 -0
- data/lib/google/apis/cloudkms_v1/gem_version.rb +28 -0
- data/lib/google/apis/cloudkms_v1/representations.rb +620 -0
- data/lib/google/apis/cloudkms_v1/service.rb +1352 -0
- metadata +76 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
module Google
|
|
16
|
+
module Apis
|
|
17
|
+
module CloudkmsV1
|
|
18
|
+
# Version of the google-apis-cloudkms_v1 gem
|
|
19
|
+
GEM_VERSION = "0.1.0"
|
|
20
|
+
|
|
21
|
+
# Version of the code generator used to generate this client
|
|
22
|
+
GENERATOR_VERSION = "0.1.1"
|
|
23
|
+
|
|
24
|
+
# Revision of the discovery document this client was generated from
|
|
25
|
+
REVISION = "20201201"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,620 @@
|
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'date'
|
|
16
|
+
require 'google/apis/core/base_service'
|
|
17
|
+
require 'google/apis/core/json_representation'
|
|
18
|
+
require 'google/apis/core/hashable'
|
|
19
|
+
require 'google/apis/errors'
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Apis
|
|
23
|
+
module CloudkmsV1
|
|
24
|
+
|
|
25
|
+
class AsymmetricDecryptRequest
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
class AsymmetricDecryptResponse
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class AsymmetricSignRequest
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class AsymmetricSignResponse
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class AuditConfig
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class AuditLogConfig
|
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
+
|
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
class Binding
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
class CertificateChains
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class CryptoKey
|
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
+
|
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
class CryptoKeyVersion
|
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
|
+
|
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class CryptoKeyVersionTemplate
|
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
|
+
|
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
class DecryptRequest
|
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
|
+
|
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
class DecryptResponse
|
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
|
+
|
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
class DestroyCryptoKeyVersionRequest
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class Digest
|
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
|
+
|
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
class EncryptRequest
|
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
|
+
|
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
class EncryptResponse
|
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
123
|
+
|
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
class Expr
|
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
|
+
|
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
class ExternalProtectionLevelOptions
|
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
135
|
+
|
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
class ImportCryptoKeyVersionRequest
|
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
141
|
+
|
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
class ImportJob
|
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
|
+
|
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
class KeyOperationAttestation
|
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
153
|
+
|
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
class KeyRing
|
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
159
|
+
|
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
class ListCryptoKeyVersionsResponse
|
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
|
+
|
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
class ListCryptoKeysResponse
|
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
171
|
+
|
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
class ListImportJobsResponse
|
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
|
+
|
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
class ListKeyRingsResponse
|
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
|
+
|
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
class ListLocationsResponse
|
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
189
|
+
|
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
class Location
|
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
195
|
+
|
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
class LocationMetadata
|
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
201
|
+
|
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
class Policy
|
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
207
|
+
|
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
class PublicKey
|
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
213
|
+
|
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
class RestoreCryptoKeyVersionRequest
|
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
219
|
+
|
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
class SetIamPolicyRequest
|
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
225
|
+
|
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
class TestIamPermissionsRequest
|
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
231
|
+
|
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
class TestIamPermissionsResponse
|
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
237
|
+
|
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
class UpdateCryptoKeyPrimaryVersionRequest
|
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
243
|
+
|
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
class WrappingPublicKey
|
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
249
|
+
|
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
class AsymmetricDecryptRequest
|
|
254
|
+
# @private
|
|
255
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
256
|
+
property :ciphertext, :base64 => true, as: 'ciphertext'
|
|
257
|
+
property :ciphertext_crc32c, :numeric_string => true, as: 'ciphertextCrc32c'
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
class AsymmetricDecryptResponse
|
|
262
|
+
# @private
|
|
263
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
264
|
+
property :plaintext, :base64 => true, as: 'plaintext'
|
|
265
|
+
property :plaintext_crc32c, :numeric_string => true, as: 'plaintextCrc32c'
|
|
266
|
+
property :verified_ciphertext_crc32c, as: 'verifiedCiphertextCrc32c'
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
class AsymmetricSignRequest
|
|
271
|
+
# @private
|
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
273
|
+
property :digest, as: 'digest', class: Google::Apis::CloudkmsV1::Digest, decorator: Google::Apis::CloudkmsV1::Digest::Representation
|
|
274
|
+
|
|
275
|
+
property :digest_crc32c, :numeric_string => true, as: 'digestCrc32c'
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
class AsymmetricSignResponse
|
|
280
|
+
# @private
|
|
281
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
282
|
+
property :name, as: 'name'
|
|
283
|
+
property :signature, :base64 => true, as: 'signature'
|
|
284
|
+
property :signature_crc32c, :numeric_string => true, as: 'signatureCrc32c'
|
|
285
|
+
property :verified_digest_crc32c, as: 'verifiedDigestCrc32c'
|
|
286
|
+
end
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
class AuditConfig
|
|
290
|
+
# @private
|
|
291
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
292
|
+
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation
|
|
293
|
+
|
|
294
|
+
property :service, as: 'service'
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
class AuditLogConfig
|
|
299
|
+
# @private
|
|
300
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
301
|
+
collection :exempted_members, as: 'exemptedMembers'
|
|
302
|
+
property :log_type, as: 'logType'
|
|
303
|
+
end
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
class Binding
|
|
307
|
+
# @private
|
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
309
|
+
property :condition, as: 'condition', class: Google::Apis::CloudkmsV1::Expr, decorator: Google::Apis::CloudkmsV1::Expr::Representation
|
|
310
|
+
|
|
311
|
+
collection :members, as: 'members'
|
|
312
|
+
property :role, as: 'role'
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
class CertificateChains
|
|
317
|
+
# @private
|
|
318
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
319
|
+
collection :cavium_certs, as: 'caviumCerts'
|
|
320
|
+
collection :google_card_certs, as: 'googleCardCerts'
|
|
321
|
+
collection :google_partition_certs, as: 'googlePartitionCerts'
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
class CryptoKey
|
|
326
|
+
# @private
|
|
327
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
328
|
+
property :create_time, as: 'createTime'
|
|
329
|
+
hash :labels, as: 'labels'
|
|
330
|
+
property :name, as: 'name'
|
|
331
|
+
property :next_rotation_time, as: 'nextRotationTime'
|
|
332
|
+
property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
|
333
|
+
|
|
334
|
+
property :purpose, as: 'purpose'
|
|
335
|
+
property :rotation_period, as: 'rotationPeriod'
|
|
336
|
+
property :version_template, as: 'versionTemplate', class: Google::Apis::CloudkmsV1::CryptoKeyVersionTemplate, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersionTemplate::Representation
|
|
337
|
+
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
class CryptoKeyVersion
|
|
342
|
+
# @private
|
|
343
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
344
|
+
property :algorithm, as: 'algorithm'
|
|
345
|
+
property :attestation, as: 'attestation', class: Google::Apis::CloudkmsV1::KeyOperationAttestation, decorator: Google::Apis::CloudkmsV1::KeyOperationAttestation::Representation
|
|
346
|
+
|
|
347
|
+
property :create_time, as: 'createTime'
|
|
348
|
+
property :destroy_event_time, as: 'destroyEventTime'
|
|
349
|
+
property :destroy_time, as: 'destroyTime'
|
|
350
|
+
property :external_protection_level_options, as: 'externalProtectionLevelOptions', class: Google::Apis::CloudkmsV1::ExternalProtectionLevelOptions, decorator: Google::Apis::CloudkmsV1::ExternalProtectionLevelOptions::Representation
|
|
351
|
+
|
|
352
|
+
property :generate_time, as: 'generateTime'
|
|
353
|
+
property :import_failure_reason, as: 'importFailureReason'
|
|
354
|
+
property :import_job, as: 'importJob'
|
|
355
|
+
property :import_time, as: 'importTime'
|
|
356
|
+
property :name, as: 'name'
|
|
357
|
+
property :protection_level, as: 'protectionLevel'
|
|
358
|
+
property :state, as: 'state'
|
|
359
|
+
end
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
class CryptoKeyVersionTemplate
|
|
363
|
+
# @private
|
|
364
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
365
|
+
property :algorithm, as: 'algorithm'
|
|
366
|
+
property :protection_level, as: 'protectionLevel'
|
|
367
|
+
end
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
class DecryptRequest
|
|
371
|
+
# @private
|
|
372
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
373
|
+
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
|
|
374
|
+
property :additional_authenticated_data_crc32c, :numeric_string => true, as: 'additionalAuthenticatedDataCrc32c'
|
|
375
|
+
property :ciphertext, :base64 => true, as: 'ciphertext'
|
|
376
|
+
property :ciphertext_crc32c, :numeric_string => true, as: 'ciphertextCrc32c'
|
|
377
|
+
end
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
class DecryptResponse
|
|
381
|
+
# @private
|
|
382
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
383
|
+
property :plaintext, :base64 => true, as: 'plaintext'
|
|
384
|
+
property :plaintext_crc32c, :numeric_string => true, as: 'plaintextCrc32c'
|
|
385
|
+
end
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
class DestroyCryptoKeyVersionRequest
|
|
389
|
+
# @private
|
|
390
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
391
|
+
end
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
class Digest
|
|
395
|
+
# @private
|
|
396
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
397
|
+
property :sha256, :base64 => true, as: 'sha256'
|
|
398
|
+
property :sha384, :base64 => true, as: 'sha384'
|
|
399
|
+
property :sha512, :base64 => true, as: 'sha512'
|
|
400
|
+
end
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
class EncryptRequest
|
|
404
|
+
# @private
|
|
405
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
406
|
+
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
|
|
407
|
+
property :additional_authenticated_data_crc32c, :numeric_string => true, as: 'additionalAuthenticatedDataCrc32c'
|
|
408
|
+
property :plaintext, :base64 => true, as: 'plaintext'
|
|
409
|
+
property :plaintext_crc32c, :numeric_string => true, as: 'plaintextCrc32c'
|
|
410
|
+
end
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
class EncryptResponse
|
|
414
|
+
# @private
|
|
415
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
416
|
+
property :ciphertext, :base64 => true, as: 'ciphertext'
|
|
417
|
+
property :ciphertext_crc32c, :numeric_string => true, as: 'ciphertextCrc32c'
|
|
418
|
+
property :name, as: 'name'
|
|
419
|
+
property :verified_additional_authenticated_data_crc32c, as: 'verifiedAdditionalAuthenticatedDataCrc32c'
|
|
420
|
+
property :verified_plaintext_crc32c, as: 'verifiedPlaintextCrc32c'
|
|
421
|
+
end
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
class Expr
|
|
425
|
+
# @private
|
|
426
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
427
|
+
property :description, as: 'description'
|
|
428
|
+
property :expression, as: 'expression'
|
|
429
|
+
property :location, as: 'location'
|
|
430
|
+
property :title, as: 'title'
|
|
431
|
+
end
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
class ExternalProtectionLevelOptions
|
|
435
|
+
# @private
|
|
436
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
437
|
+
property :external_key_uri, as: 'externalKeyUri'
|
|
438
|
+
end
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
class ImportCryptoKeyVersionRequest
|
|
442
|
+
# @private
|
|
443
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
444
|
+
property :algorithm, as: 'algorithm'
|
|
445
|
+
property :import_job, as: 'importJob'
|
|
446
|
+
property :rsa_aes_wrapped_key, :base64 => true, as: 'rsaAesWrappedKey'
|
|
447
|
+
end
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
class ImportJob
|
|
451
|
+
# @private
|
|
452
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
453
|
+
property :attestation, as: 'attestation', class: Google::Apis::CloudkmsV1::KeyOperationAttestation, decorator: Google::Apis::CloudkmsV1::KeyOperationAttestation::Representation
|
|
454
|
+
|
|
455
|
+
property :create_time, as: 'createTime'
|
|
456
|
+
property :expire_event_time, as: 'expireEventTime'
|
|
457
|
+
property :expire_time, as: 'expireTime'
|
|
458
|
+
property :generate_time, as: 'generateTime'
|
|
459
|
+
property :import_method, as: 'importMethod'
|
|
460
|
+
property :name, as: 'name'
|
|
461
|
+
property :protection_level, as: 'protectionLevel'
|
|
462
|
+
property :public_key, as: 'publicKey', class: Google::Apis::CloudkmsV1::WrappingPublicKey, decorator: Google::Apis::CloudkmsV1::WrappingPublicKey::Representation
|
|
463
|
+
|
|
464
|
+
property :state, as: 'state'
|
|
465
|
+
end
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
class KeyOperationAttestation
|
|
469
|
+
# @private
|
|
470
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
471
|
+
property :cert_chains, as: 'certChains', class: Google::Apis::CloudkmsV1::CertificateChains, decorator: Google::Apis::CloudkmsV1::CertificateChains::Representation
|
|
472
|
+
|
|
473
|
+
property :content, :base64 => true, as: 'content'
|
|
474
|
+
property :format, as: 'format'
|
|
475
|
+
end
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
class KeyRing
|
|
479
|
+
# @private
|
|
480
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
481
|
+
property :create_time, as: 'createTime'
|
|
482
|
+
property :name, as: 'name'
|
|
483
|
+
end
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
class ListCryptoKeyVersionsResponse
|
|
487
|
+
# @private
|
|
488
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
489
|
+
collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
|
490
|
+
|
|
491
|
+
property :next_page_token, as: 'nextPageToken'
|
|
492
|
+
property :total_size, as: 'totalSize'
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
class ListCryptoKeysResponse
|
|
497
|
+
# @private
|
|
498
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
499
|
+
collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::CloudkmsV1::CryptoKey, decorator: Google::Apis::CloudkmsV1::CryptoKey::Representation
|
|
500
|
+
|
|
501
|
+
property :next_page_token, as: 'nextPageToken'
|
|
502
|
+
property :total_size, as: 'totalSize'
|
|
503
|
+
end
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
class ListImportJobsResponse
|
|
507
|
+
# @private
|
|
508
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
509
|
+
collection :import_jobs, as: 'importJobs', class: Google::Apis::CloudkmsV1::ImportJob, decorator: Google::Apis::CloudkmsV1::ImportJob::Representation
|
|
510
|
+
|
|
511
|
+
property :next_page_token, as: 'nextPageToken'
|
|
512
|
+
property :total_size, as: 'totalSize'
|
|
513
|
+
end
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
class ListKeyRingsResponse
|
|
517
|
+
# @private
|
|
518
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
519
|
+
collection :key_rings, as: 'keyRings', class: Google::Apis::CloudkmsV1::KeyRing, decorator: Google::Apis::CloudkmsV1::KeyRing::Representation
|
|
520
|
+
|
|
521
|
+
property :next_page_token, as: 'nextPageToken'
|
|
522
|
+
property :total_size, as: 'totalSize'
|
|
523
|
+
end
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
class ListLocationsResponse
|
|
527
|
+
# @private
|
|
528
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
529
|
+
collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
|
|
530
|
+
|
|
531
|
+
property :next_page_token, as: 'nextPageToken'
|
|
532
|
+
end
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
class Location
|
|
536
|
+
# @private
|
|
537
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
538
|
+
property :display_name, as: 'displayName'
|
|
539
|
+
hash :labels, as: 'labels'
|
|
540
|
+
property :location_id, as: 'locationId'
|
|
541
|
+
hash :metadata, as: 'metadata'
|
|
542
|
+
property :name, as: 'name'
|
|
543
|
+
end
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
class LocationMetadata
|
|
547
|
+
# @private
|
|
548
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
549
|
+
property :ekm_available, as: 'ekmAvailable'
|
|
550
|
+
property :hsm_available, as: 'hsmAvailable'
|
|
551
|
+
end
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
class Policy
|
|
555
|
+
# @private
|
|
556
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
557
|
+
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation
|
|
558
|
+
|
|
559
|
+
collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation
|
|
560
|
+
|
|
561
|
+
property :etag, :base64 => true, as: 'etag'
|
|
562
|
+
property :version, as: 'version'
|
|
563
|
+
end
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
class PublicKey
|
|
567
|
+
# @private
|
|
568
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
569
|
+
property :algorithm, as: 'algorithm'
|
|
570
|
+
property :name, as: 'name'
|
|
571
|
+
property :pem, as: 'pem'
|
|
572
|
+
property :pem_crc32c, :numeric_string => true, as: 'pemCrc32c'
|
|
573
|
+
end
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
class RestoreCryptoKeyVersionRequest
|
|
577
|
+
# @private
|
|
578
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
579
|
+
end
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
class SetIamPolicyRequest
|
|
583
|
+
# @private
|
|
584
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
585
|
+
property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation
|
|
586
|
+
|
|
587
|
+
property :update_mask, as: 'updateMask'
|
|
588
|
+
end
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
class TestIamPermissionsRequest
|
|
592
|
+
# @private
|
|
593
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
594
|
+
collection :permissions, as: 'permissions'
|
|
595
|
+
end
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
class TestIamPermissionsResponse
|
|
599
|
+
# @private
|
|
600
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
601
|
+
collection :permissions, as: 'permissions'
|
|
602
|
+
end
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
class UpdateCryptoKeyPrimaryVersionRequest
|
|
606
|
+
# @private
|
|
607
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
608
|
+
property :crypto_key_version_id, as: 'cryptoKeyVersionId'
|
|
609
|
+
end
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
class WrappingPublicKey
|
|
613
|
+
# @private
|
|
614
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
615
|
+
property :pem, as: 'pem'
|
|
616
|
+
end
|
|
617
|
+
end
|
|
618
|
+
end
|
|
619
|
+
end
|
|
620
|
+
end
|