google-apis-secretmanager_v1beta2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 SecretmanagerV1beta2
18
+ # Version of the google-apis-secretmanager_v1beta2 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.14.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20240309"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,527 @@
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 SecretmanagerV1beta2
24
+
25
+ class AccessSecretVersionResponse
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AddSecretVersionRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AuditConfig
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class AuditLogConfig
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Automatic
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class AutomaticStatus
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 CustomerManagedEncryption
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class CustomerManagedEncryptionStatus
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class DestroySecretVersionRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class DisableSecretVersionRequest
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Empty
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class EnableSecretVersionRequest
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class Expr
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListLocationsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListSecretVersionsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListSecretsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Location
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class Policy
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Replica
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ReplicaStatus
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Replication
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class ReplicationStatus
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Rotation
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Secret
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class SecretPayload
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class SecretVersion
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class SetIamPolicyRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class TestIamPermissionsRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class TestIamPermissionsResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class Topic
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class UserManaged
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class UserManagedStatus
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class AccessSecretVersionResponse
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ property :name, as: 'name'
227
+ property :payload, as: 'payload', class: Google::Apis::SecretmanagerV1beta2::SecretPayload, decorator: Google::Apis::SecretmanagerV1beta2::SecretPayload::Representation
228
+
229
+ end
230
+ end
231
+
232
+ class AddSecretVersionRequest
233
+ # @private
234
+ class Representation < Google::Apis::Core::JsonRepresentation
235
+ property :payload, as: 'payload', class: Google::Apis::SecretmanagerV1beta2::SecretPayload, decorator: Google::Apis::SecretmanagerV1beta2::SecretPayload::Representation
236
+
237
+ end
238
+ end
239
+
240
+ class AuditConfig
241
+ # @private
242
+ class Representation < Google::Apis::Core::JsonRepresentation
243
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::SecretmanagerV1beta2::AuditLogConfig, decorator: Google::Apis::SecretmanagerV1beta2::AuditLogConfig::Representation
244
+
245
+ property :service, as: 'service'
246
+ end
247
+ end
248
+
249
+ class AuditLogConfig
250
+ # @private
251
+ class Representation < Google::Apis::Core::JsonRepresentation
252
+ collection :exempted_members, as: 'exemptedMembers'
253
+ property :log_type, as: 'logType'
254
+ end
255
+ end
256
+
257
+ class Automatic
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ property :customer_managed_encryption, as: 'customerManagedEncryption', class: Google::Apis::SecretmanagerV1beta2::CustomerManagedEncryption, decorator: Google::Apis::SecretmanagerV1beta2::CustomerManagedEncryption::Representation
261
+
262
+ end
263
+ end
264
+
265
+ class AutomaticStatus
266
+ # @private
267
+ class Representation < Google::Apis::Core::JsonRepresentation
268
+ property :customer_managed_encryption, as: 'customerManagedEncryption', class: Google::Apis::SecretmanagerV1beta2::CustomerManagedEncryptionStatus, decorator: Google::Apis::SecretmanagerV1beta2::CustomerManagedEncryptionStatus::Representation
269
+
270
+ end
271
+ end
272
+
273
+ class Binding
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ property :condition, as: 'condition', class: Google::Apis::SecretmanagerV1beta2::Expr, decorator: Google::Apis::SecretmanagerV1beta2::Expr::Representation
277
+
278
+ collection :members, as: 'members'
279
+ property :role, as: 'role'
280
+ end
281
+ end
282
+
283
+ class CustomerManagedEncryption
284
+ # @private
285
+ class Representation < Google::Apis::Core::JsonRepresentation
286
+ property :kms_key_name, as: 'kmsKeyName'
287
+ end
288
+ end
289
+
290
+ class CustomerManagedEncryptionStatus
291
+ # @private
292
+ class Representation < Google::Apis::Core::JsonRepresentation
293
+ property :kms_key_version_name, as: 'kmsKeyVersionName'
294
+ end
295
+ end
296
+
297
+ class DestroySecretVersionRequest
298
+ # @private
299
+ class Representation < Google::Apis::Core::JsonRepresentation
300
+ property :etag, as: 'etag'
301
+ end
302
+ end
303
+
304
+ class DisableSecretVersionRequest
305
+ # @private
306
+ class Representation < Google::Apis::Core::JsonRepresentation
307
+ property :etag, as: 'etag'
308
+ end
309
+ end
310
+
311
+ class Empty
312
+ # @private
313
+ class Representation < Google::Apis::Core::JsonRepresentation
314
+ end
315
+ end
316
+
317
+ class EnableSecretVersionRequest
318
+ # @private
319
+ class Representation < Google::Apis::Core::JsonRepresentation
320
+ property :etag, as: 'etag'
321
+ end
322
+ end
323
+
324
+ class Expr
325
+ # @private
326
+ class Representation < Google::Apis::Core::JsonRepresentation
327
+ property :description, as: 'description'
328
+ property :expression, as: 'expression'
329
+ property :location, as: 'location'
330
+ property :title, as: 'title'
331
+ end
332
+ end
333
+
334
+ class ListLocationsResponse
335
+ # @private
336
+ class Representation < Google::Apis::Core::JsonRepresentation
337
+ collection :locations, as: 'locations', class: Google::Apis::SecretmanagerV1beta2::Location, decorator: Google::Apis::SecretmanagerV1beta2::Location::Representation
338
+
339
+ property :next_page_token, as: 'nextPageToken'
340
+ end
341
+ end
342
+
343
+ class ListSecretVersionsResponse
344
+ # @private
345
+ class Representation < Google::Apis::Core::JsonRepresentation
346
+ property :next_page_token, as: 'nextPageToken'
347
+ property :total_size, as: 'totalSize'
348
+ collection :versions, as: 'versions', class: Google::Apis::SecretmanagerV1beta2::SecretVersion, decorator: Google::Apis::SecretmanagerV1beta2::SecretVersion::Representation
349
+
350
+ end
351
+ end
352
+
353
+ class ListSecretsResponse
354
+ # @private
355
+ class Representation < Google::Apis::Core::JsonRepresentation
356
+ property :next_page_token, as: 'nextPageToken'
357
+ collection :secrets, as: 'secrets', class: Google::Apis::SecretmanagerV1beta2::Secret, decorator: Google::Apis::SecretmanagerV1beta2::Secret::Representation
358
+
359
+ property :total_size, as: 'totalSize'
360
+ end
361
+ end
362
+
363
+ class Location
364
+ # @private
365
+ class Representation < Google::Apis::Core::JsonRepresentation
366
+ property :display_name, as: 'displayName'
367
+ hash :labels, as: 'labels'
368
+ property :location_id, as: 'locationId'
369
+ hash :metadata, as: 'metadata'
370
+ property :name, as: 'name'
371
+ end
372
+ end
373
+
374
+ class Policy
375
+ # @private
376
+ class Representation < Google::Apis::Core::JsonRepresentation
377
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::SecretmanagerV1beta2::AuditConfig, decorator: Google::Apis::SecretmanagerV1beta2::AuditConfig::Representation
378
+
379
+ collection :bindings, as: 'bindings', class: Google::Apis::SecretmanagerV1beta2::Binding, decorator: Google::Apis::SecretmanagerV1beta2::Binding::Representation
380
+
381
+ property :etag, :base64 => true, as: 'etag'
382
+ property :version, as: 'version'
383
+ end
384
+ end
385
+
386
+ class Replica
387
+ # @private
388
+ class Representation < Google::Apis::Core::JsonRepresentation
389
+ property :customer_managed_encryption, as: 'customerManagedEncryption', class: Google::Apis::SecretmanagerV1beta2::CustomerManagedEncryption, decorator: Google::Apis::SecretmanagerV1beta2::CustomerManagedEncryption::Representation
390
+
391
+ property :location, as: 'location'
392
+ end
393
+ end
394
+
395
+ class ReplicaStatus
396
+ # @private
397
+ class Representation < Google::Apis::Core::JsonRepresentation
398
+ property :customer_managed_encryption, as: 'customerManagedEncryption', class: Google::Apis::SecretmanagerV1beta2::CustomerManagedEncryptionStatus, decorator: Google::Apis::SecretmanagerV1beta2::CustomerManagedEncryptionStatus::Representation
399
+
400
+ property :location, as: 'location'
401
+ end
402
+ end
403
+
404
+ class Replication
405
+ # @private
406
+ class Representation < Google::Apis::Core::JsonRepresentation
407
+ property :automatic, as: 'automatic', class: Google::Apis::SecretmanagerV1beta2::Automatic, decorator: Google::Apis::SecretmanagerV1beta2::Automatic::Representation
408
+
409
+ property :user_managed, as: 'userManaged', class: Google::Apis::SecretmanagerV1beta2::UserManaged, decorator: Google::Apis::SecretmanagerV1beta2::UserManaged::Representation
410
+
411
+ end
412
+ end
413
+
414
+ class ReplicationStatus
415
+ # @private
416
+ class Representation < Google::Apis::Core::JsonRepresentation
417
+ property :automatic, as: 'automatic', class: Google::Apis::SecretmanagerV1beta2::AutomaticStatus, decorator: Google::Apis::SecretmanagerV1beta2::AutomaticStatus::Representation
418
+
419
+ property :user_managed, as: 'userManaged', class: Google::Apis::SecretmanagerV1beta2::UserManagedStatus, decorator: Google::Apis::SecretmanagerV1beta2::UserManagedStatus::Representation
420
+
421
+ end
422
+ end
423
+
424
+ class Rotation
425
+ # @private
426
+ class Representation < Google::Apis::Core::JsonRepresentation
427
+ property :next_rotation_time, as: 'nextRotationTime'
428
+ property :rotation_period, as: 'rotationPeriod'
429
+ end
430
+ end
431
+
432
+ class Secret
433
+ # @private
434
+ class Representation < Google::Apis::Core::JsonRepresentation
435
+ hash :annotations, as: 'annotations'
436
+ property :create_time, as: 'createTime'
437
+ property :customer_managed_encryption, as: 'customerManagedEncryption', class: Google::Apis::SecretmanagerV1beta2::CustomerManagedEncryption, decorator: Google::Apis::SecretmanagerV1beta2::CustomerManagedEncryption::Representation
438
+
439
+ property :etag, as: 'etag'
440
+ property :expire_time, as: 'expireTime'
441
+ hash :labels, as: 'labels'
442
+ property :name, as: 'name'
443
+ property :replication, as: 'replication', class: Google::Apis::SecretmanagerV1beta2::Replication, decorator: Google::Apis::SecretmanagerV1beta2::Replication::Representation
444
+
445
+ property :rotation, as: 'rotation', class: Google::Apis::SecretmanagerV1beta2::Rotation, decorator: Google::Apis::SecretmanagerV1beta2::Rotation::Representation
446
+
447
+ collection :topics, as: 'topics', class: Google::Apis::SecretmanagerV1beta2::Topic, decorator: Google::Apis::SecretmanagerV1beta2::Topic::Representation
448
+
449
+ property :ttl, as: 'ttl'
450
+ hash :version_aliases, as: 'versionAliases'
451
+ property :version_destroy_ttl, as: 'versionDestroyTtl'
452
+ end
453
+ end
454
+
455
+ class SecretPayload
456
+ # @private
457
+ class Representation < Google::Apis::Core::JsonRepresentation
458
+ property :data, :base64 => true, as: 'data'
459
+ property :data_crc32c, :numeric_string => true, as: 'dataCrc32c'
460
+ end
461
+ end
462
+
463
+ class SecretVersion
464
+ # @private
465
+ class Representation < Google::Apis::Core::JsonRepresentation
466
+ property :client_specified_payload_checksum, as: 'clientSpecifiedPayloadChecksum'
467
+ property :create_time, as: 'createTime'
468
+ property :customer_managed_encryption, as: 'customerManagedEncryption', class: Google::Apis::SecretmanagerV1beta2::CustomerManagedEncryptionStatus, decorator: Google::Apis::SecretmanagerV1beta2::CustomerManagedEncryptionStatus::Representation
469
+
470
+ property :destroy_time, as: 'destroyTime'
471
+ property :etag, as: 'etag'
472
+ property :name, as: 'name'
473
+ property :replication_status, as: 'replicationStatus', class: Google::Apis::SecretmanagerV1beta2::ReplicationStatus, decorator: Google::Apis::SecretmanagerV1beta2::ReplicationStatus::Representation
474
+
475
+ property :scheduled_destroy_time, as: 'scheduledDestroyTime'
476
+ property :state, as: 'state'
477
+ end
478
+ end
479
+
480
+ class SetIamPolicyRequest
481
+ # @private
482
+ class Representation < Google::Apis::Core::JsonRepresentation
483
+ property :policy, as: 'policy', class: Google::Apis::SecretmanagerV1beta2::Policy, decorator: Google::Apis::SecretmanagerV1beta2::Policy::Representation
484
+
485
+ property :update_mask, as: 'updateMask'
486
+ end
487
+ end
488
+
489
+ class TestIamPermissionsRequest
490
+ # @private
491
+ class Representation < Google::Apis::Core::JsonRepresentation
492
+ collection :permissions, as: 'permissions'
493
+ end
494
+ end
495
+
496
+ class TestIamPermissionsResponse
497
+ # @private
498
+ class Representation < Google::Apis::Core::JsonRepresentation
499
+ collection :permissions, as: 'permissions'
500
+ end
501
+ end
502
+
503
+ class Topic
504
+ # @private
505
+ class Representation < Google::Apis::Core::JsonRepresentation
506
+ property :name, as: 'name'
507
+ end
508
+ end
509
+
510
+ class UserManaged
511
+ # @private
512
+ class Representation < Google::Apis::Core::JsonRepresentation
513
+ collection :replicas, as: 'replicas', class: Google::Apis::SecretmanagerV1beta2::Replica, decorator: Google::Apis::SecretmanagerV1beta2::Replica::Representation
514
+
515
+ end
516
+ end
517
+
518
+ class UserManagedStatus
519
+ # @private
520
+ class Representation < Google::Apis::Core::JsonRepresentation
521
+ collection :replicas, as: 'replicas', class: Google::Apis::SecretmanagerV1beta2::ReplicaStatus, decorator: Google::Apis::SecretmanagerV1beta2::ReplicaStatus::Representation
522
+
523
+ end
524
+ end
525
+ end
526
+ end
527
+ end