google-apis-secretmanager_v1 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 SecretmanagerV1
18
+ # Version of the google-apis-secretmanager_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 = "20201106"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,479 @@
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 SecretmanagerV1
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 Secret
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class SecretPayload
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class SecretVersion
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class SetIamPolicyRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class TestIamPermissionsRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class TestIamPermissionsResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class UserManaged
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class UserManagedStatus
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class AccessSecretVersionResponse
212
+ # @private
213
+ class Representation < Google::Apis::Core::JsonRepresentation
214
+ property :name, as: 'name'
215
+ property :payload, as: 'payload', class: Google::Apis::SecretmanagerV1::SecretPayload, decorator: Google::Apis::SecretmanagerV1::SecretPayload::Representation
216
+
217
+ end
218
+ end
219
+
220
+ class AddSecretVersionRequest
221
+ # @private
222
+ class Representation < Google::Apis::Core::JsonRepresentation
223
+ property :payload, as: 'payload', class: Google::Apis::SecretmanagerV1::SecretPayload, decorator: Google::Apis::SecretmanagerV1::SecretPayload::Representation
224
+
225
+ end
226
+ end
227
+
228
+ class AuditConfig
229
+ # @private
230
+ class Representation < Google::Apis::Core::JsonRepresentation
231
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::SecretmanagerV1::AuditLogConfig, decorator: Google::Apis::SecretmanagerV1::AuditLogConfig::Representation
232
+
233
+ property :service, as: 'service'
234
+ end
235
+ end
236
+
237
+ class AuditLogConfig
238
+ # @private
239
+ class Representation < Google::Apis::Core::JsonRepresentation
240
+ collection :exempted_members, as: 'exemptedMembers'
241
+ property :log_type, as: 'logType'
242
+ end
243
+ end
244
+
245
+ class Automatic
246
+ # @private
247
+ class Representation < Google::Apis::Core::JsonRepresentation
248
+ property :customer_managed_encryption, as: 'customerManagedEncryption', class: Google::Apis::SecretmanagerV1::CustomerManagedEncryption, decorator: Google::Apis::SecretmanagerV1::CustomerManagedEncryption::Representation
249
+
250
+ end
251
+ end
252
+
253
+ class AutomaticStatus
254
+ # @private
255
+ class Representation < Google::Apis::Core::JsonRepresentation
256
+ property :customer_managed_encryption, as: 'customerManagedEncryption', class: Google::Apis::SecretmanagerV1::CustomerManagedEncryptionStatus, decorator: Google::Apis::SecretmanagerV1::CustomerManagedEncryptionStatus::Representation
257
+
258
+ end
259
+ end
260
+
261
+ class Binding
262
+ # @private
263
+ class Representation < Google::Apis::Core::JsonRepresentation
264
+ property :condition, as: 'condition', class: Google::Apis::SecretmanagerV1::Expr, decorator: Google::Apis::SecretmanagerV1::Expr::Representation
265
+
266
+ collection :members, as: 'members'
267
+ property :role, as: 'role'
268
+ end
269
+ end
270
+
271
+ class CustomerManagedEncryption
272
+ # @private
273
+ class Representation < Google::Apis::Core::JsonRepresentation
274
+ property :kms_key_name, as: 'kmsKeyName'
275
+ end
276
+ end
277
+
278
+ class CustomerManagedEncryptionStatus
279
+ # @private
280
+ class Representation < Google::Apis::Core::JsonRepresentation
281
+ property :kms_key_version_name, as: 'kmsKeyVersionName'
282
+ end
283
+ end
284
+
285
+ class DestroySecretVersionRequest
286
+ # @private
287
+ class Representation < Google::Apis::Core::JsonRepresentation
288
+ end
289
+ end
290
+
291
+ class DisableSecretVersionRequest
292
+ # @private
293
+ class Representation < Google::Apis::Core::JsonRepresentation
294
+ end
295
+ end
296
+
297
+ class Empty
298
+ # @private
299
+ class Representation < Google::Apis::Core::JsonRepresentation
300
+ end
301
+ end
302
+
303
+ class EnableSecretVersionRequest
304
+ # @private
305
+ class Representation < Google::Apis::Core::JsonRepresentation
306
+ end
307
+ end
308
+
309
+ class Expr
310
+ # @private
311
+ class Representation < Google::Apis::Core::JsonRepresentation
312
+ property :description, as: 'description'
313
+ property :expression, as: 'expression'
314
+ property :location, as: 'location'
315
+ property :title, as: 'title'
316
+ end
317
+ end
318
+
319
+ class ListLocationsResponse
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ collection :locations, as: 'locations', class: Google::Apis::SecretmanagerV1::Location, decorator: Google::Apis::SecretmanagerV1::Location::Representation
323
+
324
+ property :next_page_token, as: 'nextPageToken'
325
+ end
326
+ end
327
+
328
+ class ListSecretVersionsResponse
329
+ # @private
330
+ class Representation < Google::Apis::Core::JsonRepresentation
331
+ property :next_page_token, as: 'nextPageToken'
332
+ property :total_size, as: 'totalSize'
333
+ collection :versions, as: 'versions', class: Google::Apis::SecretmanagerV1::SecretVersion, decorator: Google::Apis::SecretmanagerV1::SecretVersion::Representation
334
+
335
+ end
336
+ end
337
+
338
+ class ListSecretsResponse
339
+ # @private
340
+ class Representation < Google::Apis::Core::JsonRepresentation
341
+ property :next_page_token, as: 'nextPageToken'
342
+ collection :secrets, as: 'secrets', class: Google::Apis::SecretmanagerV1::Secret, decorator: Google::Apis::SecretmanagerV1::Secret::Representation
343
+
344
+ property :total_size, as: 'totalSize'
345
+ end
346
+ end
347
+
348
+ class Location
349
+ # @private
350
+ class Representation < Google::Apis::Core::JsonRepresentation
351
+ property :display_name, as: 'displayName'
352
+ hash :labels, as: 'labels'
353
+ property :location_id, as: 'locationId'
354
+ hash :metadata, as: 'metadata'
355
+ property :name, as: 'name'
356
+ end
357
+ end
358
+
359
+ class Policy
360
+ # @private
361
+ class Representation < Google::Apis::Core::JsonRepresentation
362
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::SecretmanagerV1::AuditConfig, decorator: Google::Apis::SecretmanagerV1::AuditConfig::Representation
363
+
364
+ collection :bindings, as: 'bindings', class: Google::Apis::SecretmanagerV1::Binding, decorator: Google::Apis::SecretmanagerV1::Binding::Representation
365
+
366
+ property :etag, :base64 => true, as: 'etag'
367
+ property :version, as: 'version'
368
+ end
369
+ end
370
+
371
+ class Replica
372
+ # @private
373
+ class Representation < Google::Apis::Core::JsonRepresentation
374
+ property :customer_managed_encryption, as: 'customerManagedEncryption', class: Google::Apis::SecretmanagerV1::CustomerManagedEncryption, decorator: Google::Apis::SecretmanagerV1::CustomerManagedEncryption::Representation
375
+
376
+ property :location, as: 'location'
377
+ end
378
+ end
379
+
380
+ class ReplicaStatus
381
+ # @private
382
+ class Representation < Google::Apis::Core::JsonRepresentation
383
+ property :customer_managed_encryption, as: 'customerManagedEncryption', class: Google::Apis::SecretmanagerV1::CustomerManagedEncryptionStatus, decorator: Google::Apis::SecretmanagerV1::CustomerManagedEncryptionStatus::Representation
384
+
385
+ property :location, as: 'location'
386
+ end
387
+ end
388
+
389
+ class Replication
390
+ # @private
391
+ class Representation < Google::Apis::Core::JsonRepresentation
392
+ property :automatic, as: 'automatic', class: Google::Apis::SecretmanagerV1::Automatic, decorator: Google::Apis::SecretmanagerV1::Automatic::Representation
393
+
394
+ property :user_managed, as: 'userManaged', class: Google::Apis::SecretmanagerV1::UserManaged, decorator: Google::Apis::SecretmanagerV1::UserManaged::Representation
395
+
396
+ end
397
+ end
398
+
399
+ class ReplicationStatus
400
+ # @private
401
+ class Representation < Google::Apis::Core::JsonRepresentation
402
+ property :automatic, as: 'automatic', class: Google::Apis::SecretmanagerV1::AutomaticStatus, decorator: Google::Apis::SecretmanagerV1::AutomaticStatus::Representation
403
+
404
+ property :user_managed, as: 'userManaged', class: Google::Apis::SecretmanagerV1::UserManagedStatus, decorator: Google::Apis::SecretmanagerV1::UserManagedStatus::Representation
405
+
406
+ end
407
+ end
408
+
409
+ class Secret
410
+ # @private
411
+ class Representation < Google::Apis::Core::JsonRepresentation
412
+ property :create_time, as: 'createTime'
413
+ hash :labels, as: 'labels'
414
+ property :name, as: 'name'
415
+ property :replication, as: 'replication', class: Google::Apis::SecretmanagerV1::Replication, decorator: Google::Apis::SecretmanagerV1::Replication::Representation
416
+
417
+ end
418
+ end
419
+
420
+ class SecretPayload
421
+ # @private
422
+ class Representation < Google::Apis::Core::JsonRepresentation
423
+ property :data, :base64 => true, as: 'data'
424
+ end
425
+ end
426
+
427
+ class SecretVersion
428
+ # @private
429
+ class Representation < Google::Apis::Core::JsonRepresentation
430
+ property :create_time, as: 'createTime'
431
+ property :destroy_time, as: 'destroyTime'
432
+ property :name, as: 'name'
433
+ property :replication_status, as: 'replicationStatus', class: Google::Apis::SecretmanagerV1::ReplicationStatus, decorator: Google::Apis::SecretmanagerV1::ReplicationStatus::Representation
434
+
435
+ property :state, as: 'state'
436
+ end
437
+ end
438
+
439
+ class SetIamPolicyRequest
440
+ # @private
441
+ class Representation < Google::Apis::Core::JsonRepresentation
442
+ property :policy, as: 'policy', class: Google::Apis::SecretmanagerV1::Policy, decorator: Google::Apis::SecretmanagerV1::Policy::Representation
443
+
444
+ property :update_mask, as: 'updateMask'
445
+ end
446
+ end
447
+
448
+ class TestIamPermissionsRequest
449
+ # @private
450
+ class Representation < Google::Apis::Core::JsonRepresentation
451
+ collection :permissions, as: 'permissions'
452
+ end
453
+ end
454
+
455
+ class TestIamPermissionsResponse
456
+ # @private
457
+ class Representation < Google::Apis::Core::JsonRepresentation
458
+ collection :permissions, as: 'permissions'
459
+ end
460
+ end
461
+
462
+ class UserManaged
463
+ # @private
464
+ class Representation < Google::Apis::Core::JsonRepresentation
465
+ collection :replicas, as: 'replicas', class: Google::Apis::SecretmanagerV1::Replica, decorator: Google::Apis::SecretmanagerV1::Replica::Representation
466
+
467
+ end
468
+ end
469
+
470
+ class UserManagedStatus
471
+ # @private
472
+ class Representation < Google::Apis::Core::JsonRepresentation
473
+ collection :replicas, as: 'replicas', class: Google::Apis::SecretmanagerV1::ReplicaStatus, decorator: Google::Apis::SecretmanagerV1::ReplicaStatus::Representation
474
+
475
+ end
476
+ end
477
+ end
478
+ end
479
+ end