google-apis-secretmanager_v1 0.2.0 → 0.7.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 +22 -0
- data/lib/google/apis/secretmanager_v1.rb +1 -1
- data/lib/google/apis/secretmanager_v1/classes.rb +69 -0
- data/lib/google/apis/secretmanager_v1/gem_version.rb +3 -3
- data/lib/google/apis/secretmanager_v1/representations.rb +31 -0
- data/lib/google/apis/secretmanager_v1/service.rb +7 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bb1e24b9f66c932a1b5b325eabe5f08e1b70ebc032630bf676e5830771b388b
|
4
|
+
data.tar.gz: 5e487e30c1309f422ad56b4c98868305eb26e8fadef5231e0b6e8d2f333a1be2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c64ef0b34147ec623fc99a19b81be020e5de04d013b2d0f6a342c7640d4f63bd612a576daa29cb5faa2d174053c00c500b406be1e5eb330d025c1293b7d4bf9
|
7
|
+
data.tar.gz: bc93d21698b479bcd19f521b86c126180e1b22c22f494c1f3ec0a3562534a0cfa4f3f8ba8ebf79c8870854bd818b026440b7ded850f042849a3d96d51454b21d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-secretmanager_v1
|
2
2
|
|
3
|
+
### v0.7.0 (2021-03-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210319
|
6
|
+
|
7
|
+
### v0.6.0 (2021-03-20)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210315
|
10
|
+
|
11
|
+
### v0.5.0 (2021-03-13)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210308
|
14
|
+
* Regenerated using generator version 0.2.0
|
15
|
+
|
16
|
+
### v0.4.0 (2021-03-04)
|
17
|
+
|
18
|
+
* Unspecified changes
|
19
|
+
|
20
|
+
### v0.3.0 (2021-02-12)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210205
|
23
|
+
* Regenerated using generator version 0.1.2
|
24
|
+
|
3
25
|
### v0.2.0 (2021-01-15)
|
4
26
|
|
5
27
|
* Regenerated from discovery document revision 20210108
|
@@ -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
|
@@ -740,6 +740,38 @@ module Google
|
|
740
740
|
end
|
741
741
|
end
|
742
742
|
|
743
|
+
# The rotation time and period for a Secret. At next_rotation_time, Secret
|
744
|
+
# Manager will send a Pub/Sub notification to the topics configured on the
|
745
|
+
# Secret. Secret.topics must be set to configure rotation.
|
746
|
+
class Rotation
|
747
|
+
include Google::Apis::Core::Hashable
|
748
|
+
|
749
|
+
# Optional. Timestamp in UTC at which the Secret is scheduled to rotate.
|
750
|
+
# next_rotation_time MUST be set if rotation_period is set.
|
751
|
+
# Corresponds to the JSON property `nextRotationTime`
|
752
|
+
# @return [String]
|
753
|
+
attr_accessor :next_rotation_time
|
754
|
+
|
755
|
+
# Input only. The Duration between rotation notifications. Must be in seconds
|
756
|
+
# and at least 3600s (1h) and at most 3153600000s (100 years). If
|
757
|
+
# rotation_period is set, next_rotation_time must be set. next_rotation_time
|
758
|
+
# will be advanced by this period when the service automatically sends rotation
|
759
|
+
# notifications.
|
760
|
+
# Corresponds to the JSON property `rotationPeriod`
|
761
|
+
# @return [String]
|
762
|
+
attr_accessor :rotation_period
|
763
|
+
|
764
|
+
def initialize(**args)
|
765
|
+
update!(**args)
|
766
|
+
end
|
767
|
+
|
768
|
+
# Update properties of this object
|
769
|
+
def update!(**args)
|
770
|
+
@next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
|
771
|
+
@rotation_period = args[:rotation_period] if args.key?(:rotation_period)
|
772
|
+
end
|
773
|
+
end
|
774
|
+
|
743
775
|
# A Secret is a logical secret whose value and versions can be accessed. A
|
744
776
|
# Secret is made up of zero or more SecretVersions that represent the secret
|
745
777
|
# data.
|
@@ -778,6 +810,19 @@ module Google
|
|
778
810
|
# @return [Google::Apis::SecretmanagerV1::Replication]
|
779
811
|
attr_accessor :replication
|
780
812
|
|
813
|
+
# The rotation time and period for a Secret. At next_rotation_time, Secret
|
814
|
+
# Manager will send a Pub/Sub notification to the topics configured on the
|
815
|
+
# Secret. Secret.topics must be set to configure rotation.
|
816
|
+
# Corresponds to the JSON property `rotation`
|
817
|
+
# @return [Google::Apis::SecretmanagerV1::Rotation]
|
818
|
+
attr_accessor :rotation
|
819
|
+
|
820
|
+
# Optional. A list of up to 10 Pub/Sub topics to which messages are published
|
821
|
+
# when control plane operations are called on the secret or its versions.
|
822
|
+
# Corresponds to the JSON property `topics`
|
823
|
+
# @return [Array<Google::Apis::SecretmanagerV1::Topic>]
|
824
|
+
attr_accessor :topics
|
825
|
+
|
781
826
|
# Input only. The TTL for the Secret.
|
782
827
|
# Corresponds to the JSON property `ttl`
|
783
828
|
# @return [String]
|
@@ -794,6 +839,8 @@ module Google
|
|
794
839
|
@labels = args[:labels] if args.key?(:labels)
|
795
840
|
@name = args[:name] if args.key?(:name)
|
796
841
|
@replication = args[:replication] if args.key?(:replication)
|
842
|
+
@rotation = args[:rotation] if args.key?(:rotation)
|
843
|
+
@topics = args[:topics] if args.key?(:topics)
|
797
844
|
@ttl = args[:ttl] if args.key?(:ttl)
|
798
845
|
end
|
799
846
|
end
|
@@ -958,6 +1005,28 @@ module Google
|
|
958
1005
|
end
|
959
1006
|
end
|
960
1007
|
|
1008
|
+
# A Pub/Sub topic which Secret Manager will publish to when control plane events
|
1009
|
+
# occur on this secret.
|
1010
|
+
class Topic
|
1011
|
+
include Google::Apis::Core::Hashable
|
1012
|
+
|
1013
|
+
# Required. The resource name of the Pub/Sub topic that will be published to, in
|
1014
|
+
# the following format: `projects/*/topics/*`. For publication to succeed, the
|
1015
|
+
# Secret Manager P4SA must have `pubsub.publisher` permissions on the topic.
|
1016
|
+
# Corresponds to the JSON property `name`
|
1017
|
+
# @return [String]
|
1018
|
+
attr_accessor :name
|
1019
|
+
|
1020
|
+
def initialize(**args)
|
1021
|
+
update!(**args)
|
1022
|
+
end
|
1023
|
+
|
1024
|
+
# Update properties of this object
|
1025
|
+
def update!(**args)
|
1026
|
+
@name = args[:name] if args.key?(:name)
|
1027
|
+
end
|
1028
|
+
end
|
1029
|
+
|
961
1030
|
# A replication policy that replicates the Secret payload into the locations
|
962
1031
|
# specified in Secret.replication.user_managed.replicas
|
963
1032
|
class UserManaged
|
@@ -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.7.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 = "20210319"
|
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
|
|
@@ -196,6 +202,12 @@ module Google
|
|
196
202
|
include Google::Apis::Core::JsonObjectSupport
|
197
203
|
end
|
198
204
|
|
205
|
+
class Topic
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
199
211
|
class UserManaged
|
200
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
213
|
|
@@ -406,6 +418,14 @@ module Google
|
|
406
418
|
end
|
407
419
|
end
|
408
420
|
|
421
|
+
class Rotation
|
422
|
+
# @private
|
423
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
424
|
+
property :next_rotation_time, as: 'nextRotationTime'
|
425
|
+
property :rotation_period, as: 'rotationPeriod'
|
426
|
+
end
|
427
|
+
end
|
428
|
+
|
409
429
|
class Secret
|
410
430
|
# @private
|
411
431
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -415,6 +435,10 @@ module Google
|
|
415
435
|
property :name, as: 'name'
|
416
436
|
property :replication, as: 'replication', class: Google::Apis::SecretmanagerV1::Replication, decorator: Google::Apis::SecretmanagerV1::Replication::Representation
|
417
437
|
|
438
|
+
property :rotation, as: 'rotation', class: Google::Apis::SecretmanagerV1::Rotation, decorator: Google::Apis::SecretmanagerV1::Rotation::Representation
|
439
|
+
|
440
|
+
collection :topics, as: 'topics', class: Google::Apis::SecretmanagerV1::Topic, decorator: Google::Apis::SecretmanagerV1::Topic::Representation
|
441
|
+
|
418
442
|
property :ttl, as: 'ttl'
|
419
443
|
end
|
420
444
|
end
|
@@ -461,6 +485,13 @@ module Google
|
|
461
485
|
end
|
462
486
|
end
|
463
487
|
|
488
|
+
class Topic
|
489
|
+
# @private
|
490
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
491
|
+
property :name, as: 'name'
|
492
|
+
end
|
493
|
+
end
|
494
|
+
|
464
495
|
class UserManaged
|
465
496
|
# @private
|
466
497
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -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 will select 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
|
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.7.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-03-29 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.7.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: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.13
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Secret Manager API V1
|