google-apis-secretmanager_v1 0.4.0 → 0.9.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 +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/secretmanager_v1.rb +1 -1
- data/lib/google/apis/secretmanager_v1/classes.rb +78 -2
- data/lib/google/apis/secretmanager_v1/gem_version.rb +3 -3
- data/lib/google/apis/secretmanager_v1/representations.rb +21 -0
- data/lib/google/apis/secretmanager_v1/service.rb +19 -8
- 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: 514fe0acc300910bb35b084e1c856dcd49a7206a0e9c95090cc82ecc2ca376b9
|
4
|
+
data.tar.gz: ca3509b4c52ab88459cae9a5c6d15908bcbcb2fcf806b63ae067d7ea786648f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 740855417312e537b7be83a5d3c6fa04680175621693db47229b70c75ff6086ffb18088e8bc440b3362cb03c02cbd5b80608b73fcee50156c14f7f5605f42d24
|
7
|
+
data.tar.gz: 97c0a5c51aad82d205110410d68bdf5bba247fc91bf2837bd2b344768e585cba5776a9d1a9084ccbc27860b69877858e6d831507c2fc9e7f28e8bd6c127e998f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-secretmanager_v1
|
2
2
|
|
3
|
+
### v0.9.0 (2021-05-20)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.8.0 (2021-05-11)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210429
|
10
|
+
|
11
|
+
### v0.7.0 (2021-03-26)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210319
|
14
|
+
|
15
|
+
### v0.6.0 (2021-03-20)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210315
|
18
|
+
|
19
|
+
### v0.5.0 (2021-03-13)
|
20
|
+
|
21
|
+
* Regenerated from discovery document revision 20210308
|
22
|
+
* Regenerated using generator version 0.2.0
|
23
|
+
|
3
24
|
### v0.4.0 (2021-03-04)
|
4
25
|
|
5
26
|
* Unspecified changes
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1'
|
32
32
|
|
33
|
-
#
|
33
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
end
|
36
36
|
end
|
@@ -302,12 +302,20 @@ module Google
|
|
302
302
|
class DestroySecretVersionRequest
|
303
303
|
include Google::Apis::Core::Hashable
|
304
304
|
|
305
|
+
# Optional. Etag of the SecretVersion. The request succeeds if it matches the
|
306
|
+
# etag of the currently stored secret version object. If the etag is omitted,
|
307
|
+
# the request succeeds.
|
308
|
+
# Corresponds to the JSON property `etag`
|
309
|
+
# @return [String]
|
310
|
+
attr_accessor :etag
|
311
|
+
|
305
312
|
def initialize(**args)
|
306
313
|
update!(**args)
|
307
314
|
end
|
308
315
|
|
309
316
|
# Update properties of this object
|
310
317
|
def update!(**args)
|
318
|
+
@etag = args[:etag] if args.key?(:etag)
|
311
319
|
end
|
312
320
|
end
|
313
321
|
|
@@ -315,12 +323,20 @@ module Google
|
|
315
323
|
class DisableSecretVersionRequest
|
316
324
|
include Google::Apis::Core::Hashable
|
317
325
|
|
326
|
+
# Optional. Etag of the SecretVersion. The request succeeds if it matches the
|
327
|
+
# etag of the currently stored secret version object. If the etag is omitted,
|
328
|
+
# the request succeeds.
|
329
|
+
# Corresponds to the JSON property `etag`
|
330
|
+
# @return [String]
|
331
|
+
attr_accessor :etag
|
332
|
+
|
318
333
|
def initialize(**args)
|
319
334
|
update!(**args)
|
320
335
|
end
|
321
336
|
|
322
337
|
# Update properties of this object
|
323
338
|
def update!(**args)
|
339
|
+
@etag = args[:etag] if args.key?(:etag)
|
324
340
|
end
|
325
341
|
end
|
326
342
|
|
@@ -345,12 +361,20 @@ module Google
|
|
345
361
|
class EnableSecretVersionRequest
|
346
362
|
include Google::Apis::Core::Hashable
|
347
363
|
|
364
|
+
# Optional. Etag of the SecretVersion. The request succeeds if it matches the
|
365
|
+
# etag of the currently stored secret version object. If the etag is omitted,
|
366
|
+
# the request succeeds.
|
367
|
+
# Corresponds to the JSON property `etag`
|
368
|
+
# @return [String]
|
369
|
+
attr_accessor :etag
|
370
|
+
|
348
371
|
def initialize(**args)
|
349
372
|
update!(**args)
|
350
373
|
end
|
351
374
|
|
352
375
|
# Update properties of this object
|
353
376
|
def update!(**args)
|
377
|
+
@etag = args[:etag] if args.key?(:etag)
|
354
378
|
end
|
355
379
|
end
|
356
380
|
|
@@ -740,6 +764,38 @@ module Google
|
|
740
764
|
end
|
741
765
|
end
|
742
766
|
|
767
|
+
# The rotation time and period for a Secret. At next_rotation_time, Secret
|
768
|
+
# Manager will send a Pub/Sub notification to the topics configured on the
|
769
|
+
# Secret. Secret.topics must be set to configure rotation.
|
770
|
+
class Rotation
|
771
|
+
include Google::Apis::Core::Hashable
|
772
|
+
|
773
|
+
# Optional. Timestamp in UTC at which the Secret is scheduled to rotate.
|
774
|
+
# next_rotation_time MUST be set if rotation_period is set.
|
775
|
+
# Corresponds to the JSON property `nextRotationTime`
|
776
|
+
# @return [String]
|
777
|
+
attr_accessor :next_rotation_time
|
778
|
+
|
779
|
+
# Input only. The Duration between rotation notifications. Must be in seconds
|
780
|
+
# and at least 3600s (1h) and at most 3153600000s (100 years). If
|
781
|
+
# rotation_period is set, next_rotation_time must be set. next_rotation_time
|
782
|
+
# will be advanced by this period when the service automatically sends rotation
|
783
|
+
# notifications.
|
784
|
+
# Corresponds to the JSON property `rotationPeriod`
|
785
|
+
# @return [String]
|
786
|
+
attr_accessor :rotation_period
|
787
|
+
|
788
|
+
def initialize(**args)
|
789
|
+
update!(**args)
|
790
|
+
end
|
791
|
+
|
792
|
+
# Update properties of this object
|
793
|
+
def update!(**args)
|
794
|
+
@next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
|
795
|
+
@rotation_period = args[:rotation_period] if args.key?(:rotation_period)
|
796
|
+
end
|
797
|
+
end
|
798
|
+
|
743
799
|
# A Secret is a logical secret whose value and versions can be accessed. A
|
744
800
|
# Secret is made up of zero or more SecretVersions that represent the secret
|
745
801
|
# data.
|
@@ -751,6 +807,11 @@ module Google
|
|
751
807
|
# @return [String]
|
752
808
|
attr_accessor :create_time
|
753
809
|
|
810
|
+
# Optional. Etag of the currently stored Secret.
|
811
|
+
# Corresponds to the JSON property `etag`
|
812
|
+
# @return [String]
|
813
|
+
attr_accessor :etag
|
814
|
+
|
754
815
|
# Optional. Timestamp in UTC when the Secret is scheduled to expire. This is
|
755
816
|
# always provided on output, regardless of what was sent on input.
|
756
817
|
# Corresponds to the JSON property `expireTime`
|
@@ -778,6 +839,13 @@ module Google
|
|
778
839
|
# @return [Google::Apis::SecretmanagerV1::Replication]
|
779
840
|
attr_accessor :replication
|
780
841
|
|
842
|
+
# The rotation time and period for a Secret. At next_rotation_time, Secret
|
843
|
+
# Manager will send a Pub/Sub notification to the topics configured on the
|
844
|
+
# Secret. Secret.topics must be set to configure rotation.
|
845
|
+
# Corresponds to the JSON property `rotation`
|
846
|
+
# @return [Google::Apis::SecretmanagerV1::Rotation]
|
847
|
+
attr_accessor :rotation
|
848
|
+
|
781
849
|
# Optional. A list of up to 10 Pub/Sub topics to which messages are published
|
782
850
|
# when control plane operations are called on the secret or its versions.
|
783
851
|
# Corresponds to the JSON property `topics`
|
@@ -796,10 +864,12 @@ module Google
|
|
796
864
|
# Update properties of this object
|
797
865
|
def update!(**args)
|
798
866
|
@create_time = args[:create_time] if args.key?(:create_time)
|
867
|
+
@etag = args[:etag] if args.key?(:etag)
|
799
868
|
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
800
869
|
@labels = args[:labels] if args.key?(:labels)
|
801
870
|
@name = args[:name] if args.key?(:name)
|
802
871
|
@replication = args[:replication] if args.key?(:replication)
|
872
|
+
@rotation = args[:rotation] if args.key?(:rotation)
|
803
873
|
@topics = args[:topics] if args.key?(:topics)
|
804
874
|
@ttl = args[:ttl] if args.key?(:ttl)
|
805
875
|
end
|
@@ -841,6 +911,11 @@ module Google
|
|
841
911
|
# @return [String]
|
842
912
|
attr_accessor :destroy_time
|
843
913
|
|
914
|
+
# Output only. Etag of the currently stored SecretVersion.
|
915
|
+
# Corresponds to the JSON property `etag`
|
916
|
+
# @return [String]
|
917
|
+
attr_accessor :etag
|
918
|
+
|
844
919
|
# Output only. The resource name of the SecretVersion in the format `projects/*/
|
845
920
|
# secrets/*/versions/*`. SecretVersion IDs in a Secret start at 1 and are
|
846
921
|
# incremented for each subsequent version of the secret.
|
@@ -866,6 +941,7 @@ module Google
|
|
866
941
|
def update!(**args)
|
867
942
|
@create_time = args[:create_time] if args.key?(:create_time)
|
868
943
|
@destroy_time = args[:destroy_time] if args.key?(:destroy_time)
|
944
|
+
@etag = args[:etag] if args.key?(:etag)
|
869
945
|
@name = args[:name] if args.key?(:name)
|
870
946
|
@replication_status = args[:replication_status] if args.key?(:replication_status)
|
871
947
|
@state = args[:state] if args.key?(:state)
|
@@ -965,8 +1041,8 @@ module Google
|
|
965
1041
|
end
|
966
1042
|
end
|
967
1043
|
|
968
|
-
# A Pub/Sub topic which
|
969
|
-
# this secret.
|
1044
|
+
# A Pub/Sub topic which Secret Manager will publish to when control plane events
|
1045
|
+
# occur on this secret.
|
970
1046
|
class Topic
|
971
1047
|
include Google::Apis::Core::Hashable
|
972
1048
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SecretmanagerV1
|
18
18
|
# Version of the google-apis-secretmanager_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.9.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210429"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -160,6 +160,12 @@ module Google
|
|
160
160
|
include Google::Apis::Core::JsonObjectSupport
|
161
161
|
end
|
162
162
|
|
163
|
+
class Rotation
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
163
169
|
class Secret
|
164
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
171
|
|
@@ -291,12 +297,14 @@ module Google
|
|
291
297
|
class DestroySecretVersionRequest
|
292
298
|
# @private
|
293
299
|
class Representation < Google::Apis::Core::JsonRepresentation
|
300
|
+
property :etag, as: 'etag'
|
294
301
|
end
|
295
302
|
end
|
296
303
|
|
297
304
|
class DisableSecretVersionRequest
|
298
305
|
# @private
|
299
306
|
class Representation < Google::Apis::Core::JsonRepresentation
|
307
|
+
property :etag, as: 'etag'
|
300
308
|
end
|
301
309
|
end
|
302
310
|
|
@@ -309,6 +317,7 @@ module Google
|
|
309
317
|
class EnableSecretVersionRequest
|
310
318
|
# @private
|
311
319
|
class Representation < Google::Apis::Core::JsonRepresentation
|
320
|
+
property :etag, as: 'etag'
|
312
321
|
end
|
313
322
|
end
|
314
323
|
|
@@ -412,15 +421,26 @@ module Google
|
|
412
421
|
end
|
413
422
|
end
|
414
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
|
+
|
415
432
|
class Secret
|
416
433
|
# @private
|
417
434
|
class Representation < Google::Apis::Core::JsonRepresentation
|
418
435
|
property :create_time, as: 'createTime'
|
436
|
+
property :etag, as: 'etag'
|
419
437
|
property :expire_time, as: 'expireTime'
|
420
438
|
hash :labels, as: 'labels'
|
421
439
|
property :name, as: 'name'
|
422
440
|
property :replication, as: 'replication', class: Google::Apis::SecretmanagerV1::Replication, decorator: Google::Apis::SecretmanagerV1::Replication::Representation
|
423
441
|
|
442
|
+
property :rotation, as: 'rotation', class: Google::Apis::SecretmanagerV1::Rotation, decorator: Google::Apis::SecretmanagerV1::Rotation::Representation
|
443
|
+
|
424
444
|
collection :topics, as: 'topics', class: Google::Apis::SecretmanagerV1::Topic, decorator: Google::Apis::SecretmanagerV1::Topic::Representation
|
425
445
|
|
426
446
|
property :ttl, as: 'ttl'
|
@@ -439,6 +459,7 @@ module Google
|
|
439
459
|
class Representation < Google::Apis::Core::JsonRepresentation
|
440
460
|
property :create_time, as: 'createTime'
|
441
461
|
property :destroy_time, as: 'destroyTime'
|
462
|
+
property :etag, as: 'etag'
|
442
463
|
property :name, as: 'name'
|
443
464
|
property :replication_status, as: 'replicationStatus', class: Google::Apis::SecretmanagerV1::ReplicationStatus, decorator: Google::Apis::SecretmanagerV1::ReplicationStatus::Representation
|
444
465
|
|
@@ -84,11 +84,15 @@ module Google
|
|
84
84
|
# @param [String] name
|
85
85
|
# The resource that owns the locations collection, if applicable.
|
86
86
|
# @param [String] filter
|
87
|
-
#
|
87
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
88
|
+
# accepts strings like "displayName=tokyo", and is documented in more detail in [
|
89
|
+
# AIP-160](https://google.aip.dev/160).
|
88
90
|
# @param [Fixnum] page_size
|
89
|
-
# The
|
91
|
+
# The maximum number of results to return. If not set, the service selects a
|
92
|
+
# default.
|
90
93
|
# @param [String] page_token
|
91
|
-
#
|
94
|
+
# A page token received from the `next_page_token` field in the response. Send
|
95
|
+
# that page token to receive the subsequent page.
|
92
96
|
# @param [String] fields
|
93
97
|
# Selector specifying which fields to include in a partial response.
|
94
98
|
# @param [String] quota_user
|
@@ -197,6 +201,10 @@ module Google
|
|
197
201
|
# @param [String] name
|
198
202
|
# Required. The resource name of the Secret to delete in the format `projects/*/
|
199
203
|
# secrets/*`.
|
204
|
+
# @param [String] etag
|
205
|
+
# Optional. Etag of the Secret. The request succeeds if it matches the etag of
|
206
|
+
# the currently stored secret object. If the etag is omitted, the request
|
207
|
+
# succeeds.
|
200
208
|
# @param [String] fields
|
201
209
|
# Selector specifying which fields to include in a partial response.
|
202
210
|
# @param [String] quota_user
|
@@ -214,11 +222,12 @@ module Google
|
|
214
222
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
215
223
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
216
224
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
217
|
-
def delete_project_secret(name, fields: nil, quota_user: nil, options: nil, &block)
|
225
|
+
def delete_project_secret(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
|
218
226
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
219
227
|
command.response_representation = Google::Apis::SecretmanagerV1::Empty::Representation
|
220
228
|
command.response_class = Google::Apis::SecretmanagerV1::Empty
|
221
229
|
command.params['name'] = name unless name.nil?
|
230
|
+
command.query['etag'] = etag unless etag.nil?
|
222
231
|
command.query['fields'] = fields unless fields.nil?
|
223
232
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
224
233
|
execute_or_queue_command(command, &block)
|
@@ -448,10 +457,12 @@ module Google
|
|
448
457
|
end
|
449
458
|
|
450
459
|
# Accesses a SecretVersion. This call returns the secret data. `projects/*/
|
451
|
-
# secrets/*/versions/latest` is an alias to the
|
460
|
+
# secrets/*/versions/latest` is an alias to the most recently created
|
461
|
+
# SecretVersion.
|
452
462
|
# @param [String] name
|
453
463
|
# Required. The resource name of the SecretVersion in the format `projects/*/
|
454
|
-
# secrets/*/versions/*`.
|
464
|
+
# secrets/*/versions/*`. `projects/*/secrets/*/versions/latest` is an alias to
|
465
|
+
# the most recently created SecretVersion.
|
455
466
|
# @param [String] fields
|
456
467
|
# Selector specifying which fields to include in a partial response.
|
457
468
|
# @param [String] quota_user
|
@@ -583,11 +594,11 @@ module Google
|
|
583
594
|
end
|
584
595
|
|
585
596
|
# Gets metadata for a SecretVersion. `projects/*/secrets/*/versions/latest` is
|
586
|
-
# an alias to the
|
597
|
+
# an alias to the most recently created SecretVersion.
|
587
598
|
# @param [String] name
|
588
599
|
# Required. The resource name of the SecretVersion in the format `projects/*/
|
589
600
|
# secrets/*/versions/*`. `projects/*/secrets/*/versions/latest` is an alias to
|
590
|
-
# the
|
601
|
+
# the most recently created SecretVersion.
|
591
602
|
# @param [String] fields
|
592
603
|
# Selector specifying which fields to include in a partial response.
|
593
604
|
# @param [String] quota_user
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-secretmanager_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.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: 2021-
|
11
|
+
date: 2021-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-secretmanager_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-secretmanager_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-secretmanager_v1/v0.9.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-secretmanager_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Secret Manager API V1
|