google-cloud-secret_manager-v1 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2eb6c991083ef7f67c7f9ab36f4e5a7dab838278f369d8a0975656980fc0f426
4
- data.tar.gz: 7d4ffe06d12bf5c389061a25b8c5e051a79e8ab8995b88dc5947dfc50f2ee773
3
+ metadata.gz: 31b50012a4e87ec9242bb4859299764f0fcaab0ebe0632e038e6f5494308e4e6
4
+ data.tar.gz: f632a4a2c2dd7c3b9cccf9c22e1b46a7b0a46e2e85515130c5516e4c79269786
5
5
  SHA512:
6
- metadata.gz: 489b0d3cb99db2a8d44ac778f7f7bf5727c159f624a2ebfe1e6fc5a0f193a00709eaa794cba5f2981f36e5f1bc4bed67da4c803471a003fda6294c4a0b57eb75
7
- data.tar.gz: 2a611bba6b9434a542e596b7dd8b8f97f69e1fff0fe3e94fcf9668e0a46e6ab1f40d09014482c8c45165c78ac5a401b94185648a2da4d3ba2be591e38a958479
6
+ metadata.gz: 6e6d89c3debdf55e52a7904700a91efcc44cb62c32efa9710376f927288e04d119d049d6ccb11f1b02384d5fb520e33192ee4c2d543a7fa45bd0e5c4cd70723b
7
+ data.tar.gz: a89d4dbfef88d55b94999f20e099b674fbf74b3b11d7c851743850c5b6f4a7a6a95887684f810c9457726e3c7fd5e3b232db401efb6643fc7c03b92ba3319197
@@ -90,9 +90,9 @@ module Google
90
90
  default_config.rpcs.access_secret_version.timeout = 60.0
91
91
  default_config.rpcs.access_secret_version.retry_policy = {
92
92
  initial_delay: 1.0,
93
- max_delay: 60.0,
94
- multiplier: 1.3,
95
- retry_codes: [14, 2]
93
+ max_delay: 60.0,
94
+ multiplier: 1.3,
95
+ retry_codes: [14, 2]
96
96
  }
97
97
 
98
98
  default_config.rpcs.disable_secret_version.timeout = 60.0
@@ -559,7 +559,7 @@ module Google
559
559
  # @param options [::Gapic::CallOptions, ::Hash]
560
560
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
561
561
  #
562
- # @overload delete_secret(name: nil)
562
+ # @overload delete_secret(name: nil, etag: nil)
563
563
  # Pass arguments to `delete_secret` via keyword arguments. Note that at
564
564
  # least one keyword argument is required. To specify no parameters, or to keep all
565
565
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -567,6 +567,10 @@ module Google
567
567
  # @param name [::String]
568
568
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret} to delete in the format
569
569
  # `projects/*/secrets/*`.
570
+ # @param etag [::String]
571
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::Secret Secret}. The request succeeds if it matches
572
+ # the etag of the currently stored secret object. If the etag is omitted,
573
+ # the request succeeds.
570
574
  #
571
575
  # @yield [response, operation] Access the result along with the RPC operation
572
576
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -693,8 +697,8 @@ module Google
693
697
  ##
694
698
  # Gets metadata for a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
695
699
  #
696
- # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
697
- # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
700
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
701
+ # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
698
702
  #
699
703
  # @overload get_secret_version(request, options = nil)
700
704
  # Pass arguments to `get_secret_version` via a request object, either of type
@@ -714,8 +718,9 @@ module Google
714
718
  # @param name [::String]
715
719
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
716
720
  # `projects/*/secrets/*/versions/*`.
717
- # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
718
- # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
721
+ #
722
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
723
+ # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
719
724
  #
720
725
  # @yield [response, operation] Access the result along with the RPC operation
721
726
  # @yieldparam response [::Google::Cloud::SecretManager::V1::SecretVersion]
@@ -765,8 +770,8 @@ module Google
765
770
  ##
766
771
  # Accesses a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. This call returns the secret data.
767
772
  #
768
- # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
769
- # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
773
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
774
+ # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
770
775
  #
771
776
  # @overload access_secret_version(request, options = nil)
772
777
  # Pass arguments to `access_secret_version` via a request object, either of type
@@ -787,6 +792,9 @@ module Google
787
792
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
788
793
  # `projects/*/secrets/*/versions/*`.
789
794
  #
795
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
796
+ # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
797
+ #
790
798
  # @yield [response, operation] Access the result along with the RPC operation
791
799
  # @yieldparam response [::Google::Cloud::SecretManager::V1::AccessSecretVersionResponse]
792
800
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
@@ -848,7 +856,7 @@ module Google
848
856
  # @param options [::Gapic::CallOptions, ::Hash]
849
857
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
850
858
  #
851
- # @overload disable_secret_version(name: nil)
859
+ # @overload disable_secret_version(name: nil, etag: nil)
852
860
  # Pass arguments to `disable_secret_version` via keyword arguments. Note that at
853
861
  # least one keyword argument is required. To specify no parameters, or to keep all
854
862
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -856,6 +864,10 @@ module Google
856
864
  # @param name [::String]
857
865
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to disable in the format
858
866
  # `projects/*/secrets/*/versions/*`.
867
+ # @param etag [::String]
868
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
869
+ # the etag of the currently stored secret version object. If the etag is
870
+ # omitted, the request succeeds.
859
871
  #
860
872
  # @yield [response, operation] Access the result along with the RPC operation
861
873
  # @yieldparam response [::Google::Cloud::SecretManager::V1::SecretVersion]
@@ -918,7 +930,7 @@ module Google
918
930
  # @param options [::Gapic::CallOptions, ::Hash]
919
931
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
920
932
  #
921
- # @overload enable_secret_version(name: nil)
933
+ # @overload enable_secret_version(name: nil, etag: nil)
922
934
  # Pass arguments to `enable_secret_version` via keyword arguments. Note that at
923
935
  # least one keyword argument is required. To specify no parameters, or to keep all
924
936
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -926,6 +938,10 @@ module Google
926
938
  # @param name [::String]
927
939
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to enable in the format
928
940
  # `projects/*/secrets/*/versions/*`.
941
+ # @param etag [::String]
942
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
943
+ # the etag of the currently stored secret version object. If the etag is
944
+ # omitted, the request succeeds.
929
945
  #
930
946
  # @yield [response, operation] Access the result along with the RPC operation
931
947
  # @yieldparam response [::Google::Cloud::SecretManager::V1::SecretVersion]
@@ -989,7 +1005,7 @@ module Google
989
1005
  # @param options [::Gapic::CallOptions, ::Hash]
990
1006
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
991
1007
  #
992
- # @overload destroy_secret_version(name: nil)
1008
+ # @overload destroy_secret_version(name: nil, etag: nil)
993
1009
  # Pass arguments to `destroy_secret_version` via keyword arguments. Note that at
994
1010
  # least one keyword argument is required. To specify no parameters, or to keep all
995
1011
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -997,6 +1013,10 @@ module Google
997
1013
  # @param name [::String]
998
1014
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to destroy in the format
999
1015
  # `projects/*/secrets/*/versions/*`.
1016
+ # @param etag [::String]
1017
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
1018
+ # the etag of the currently stored secret version object. If the etag is
1019
+ # omitted, the request succeeds.
1000
1020
  #
1001
1021
  # @yield [response, operation] Access the result along with the RPC operation
1002
1022
  # @yieldparam response [::Google::Cloud::SecretManager::V1::SecretVersion]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1
24
- VERSION = "0.9.0"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -16,6 +16,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  optional :create_time, :message, 3, "google.protobuf.Timestamp"
17
17
  map :labels, :string, :string, 4
18
18
  repeated :topics, :message, 5, "google.cloud.secretmanager.v1.Topic"
19
+ optional :etag, :string, 8
19
20
  optional :rotation, :message, 9, "google.cloud.secretmanager.v1.Rotation"
20
21
  oneof :expiration do
21
22
  optional :expire_time, :message, 6, "google.protobuf.Timestamp"
@@ -28,6 +29,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
28
29
  optional :destroy_time, :message, 3, "google.protobuf.Timestamp"
29
30
  optional :state, :enum, 4, "google.cloud.secretmanager.v1.SecretVersion.State"
30
31
  optional :replication_status, :message, 5, "google.cloud.secretmanager.v1.ReplicationStatus"
32
+ optional :etag, :string, 6
31
33
  end
32
34
  add_enum "google.cloud.secretmanager.v1.SecretVersion.State" do
33
35
  value :STATE_UNSPECIFIED, 0
@@ -62,15 +62,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
62
62
  end
63
63
  add_message "google.cloud.secretmanager.v1.DeleteSecretRequest" do
64
64
  optional :name, :string, 1
65
+ optional :etag, :string, 2
65
66
  end
66
67
  add_message "google.cloud.secretmanager.v1.DisableSecretVersionRequest" do
67
68
  optional :name, :string, 1
69
+ optional :etag, :string, 2
68
70
  end
69
71
  add_message "google.cloud.secretmanager.v1.EnableSecretVersionRequest" do
70
72
  optional :name, :string, 1
73
+ optional :etag, :string, 2
71
74
  end
72
75
  add_message "google.cloud.secretmanager.v1.DestroySecretVersionRequest" do
73
76
  optional :name, :string, 1
77
+ optional :etag, :string, 2
74
78
  end
75
79
  end
76
80
  end
@@ -33,7 +33,7 @@ module Google
33
33
  # * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
34
34
  class Service
35
35
 
36
- include GRPC::GenericService
36
+ include ::GRPC::GenericService
37
37
 
38
38
  self.marshal_class_method = :encode
39
39
  self.unmarshal_class_method = :decode
@@ -57,13 +57,13 @@ module Google
57
57
  rpc :ListSecretVersions, ::Google::Cloud::SecretManager::V1::ListSecretVersionsRequest, ::Google::Cloud::SecretManager::V1::ListSecretVersionsResponse
58
58
  # Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
59
59
  #
60
- # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
61
- # [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
60
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
61
+ # created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
62
62
  rpc :GetSecretVersion, ::Google::Cloud::SecretManager::V1::GetSecretVersionRequest, ::Google::Cloud::SecretManager::V1::SecretVersion
63
63
  # Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
64
64
  #
65
- # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
66
- # [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
65
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
66
+ # created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
67
67
  rpc :AccessSecretVersion, ::Google::Cloud::SecretManager::V1::AccessSecretVersionRequest, ::Google::Cloud::SecretManager::V1::AccessSecretVersionResponse
68
68
  # Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
69
69
  #
@@ -61,6 +61,9 @@ module Google
61
61
  # @!attribute [rw] ttl
62
62
  # @return [::Google::Protobuf::Duration]
63
63
  # Input only. The TTL for the {::Google::Cloud::SecretManager::V1::Secret Secret}.
64
+ # @!attribute [rw] etag
65
+ # @return [::String]
66
+ # Optional. Etag of the currently stored {::Google::Cloud::SecretManager::V1::Secret Secret}.
64
67
  # @!attribute [rw] rotation
65
68
  # @return [::Google::Cloud::SecretManager::V1::Rotation]
66
69
  # Optional. Rotation policy attached to the {::Google::Cloud::SecretManager::V1::Secret Secret}. May be excluded if there is no
@@ -101,6 +104,9 @@ module Google
101
104
  # @!attribute [rw] replication_status
102
105
  # @return [::Google::Cloud::SecretManager::V1::ReplicationStatus]
103
106
  # The replication status of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
107
+ # @!attribute [r] etag
108
+ # @return [::String]
109
+ # Output only. Etag of the currently stored {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
104
110
  class SecretVersion
105
111
  include ::Google::Protobuf::MessageExts
106
112
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -290,7 +296,9 @@ module Google
290
296
  # Secret. {::Google::Cloud::SecretManager::V1::Secret#topics Secret.topics} must be set to configure rotation.
291
297
  # @!attribute [rw] next_rotation_time
292
298
  # @return [::Google::Protobuf::Timestamp]
293
- # Optional. Timestamp in UTC at which the {::Google::Cloud::SecretManager::V1::Secret Secret} is scheduled to rotate.
299
+ # Optional. Timestamp in UTC at which the {::Google::Cloud::SecretManager::V1::Secret Secret} is scheduled to rotate. Cannot be
300
+ # set to less than 300s (5 min) in the future and at most 3153600000s (100
301
+ # years).
294
302
  #
295
303
  # {::Google::Cloud::SecretManager::V1::Rotation#next_rotation_time next_rotation_time} MUST be set if {::Google::Cloud::SecretManager::V1::Rotation#rotation_period rotation_period} is set.
296
304
  # @!attribute [rw] rotation_period
@@ -141,8 +141,9 @@ module Google
141
141
  # @return [::String]
142
142
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
143
143
  # `projects/*/secrets/*/versions/*`.
144
- # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
145
- # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
144
+ #
145
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
146
+ # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
146
147
  class GetSecretVersionRequest
147
148
  include ::Google::Protobuf::MessageExts
148
149
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -165,6 +166,9 @@ module Google
165
166
  # @return [::String]
166
167
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
167
168
  # `projects/*/secrets/*/versions/*`.
169
+ #
170
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
171
+ # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
168
172
  class AccessSecretVersionRequest
169
173
  include ::Google::Protobuf::MessageExts
170
174
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -188,6 +192,11 @@ module Google
188
192
  # @return [::String]
189
193
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret} to delete in the format
190
194
  # `projects/*/secrets/*`.
195
+ # @!attribute [rw] etag
196
+ # @return [::String]
197
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::Secret Secret}. The request succeeds if it matches
198
+ # the etag of the currently stored secret object. If the etag is omitted,
199
+ # the request succeeds.
191
200
  class DeleteSecretRequest
192
201
  include ::Google::Protobuf::MessageExts
193
202
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -198,6 +207,11 @@ module Google
198
207
  # @return [::String]
199
208
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to disable in the format
200
209
  # `projects/*/secrets/*/versions/*`.
210
+ # @!attribute [rw] etag
211
+ # @return [::String]
212
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
213
+ # the etag of the currently stored secret version object. If the etag is
214
+ # omitted, the request succeeds.
201
215
  class DisableSecretVersionRequest
202
216
  include ::Google::Protobuf::MessageExts
203
217
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -208,6 +222,11 @@ module Google
208
222
  # @return [::String]
209
223
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to enable in the format
210
224
  # `projects/*/secrets/*/versions/*`.
225
+ # @!attribute [rw] etag
226
+ # @return [::String]
227
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
228
+ # the etag of the currently stored secret version object. If the etag is
229
+ # omitted, the request succeeds.
211
230
  class EnableSecretVersionRequest
212
231
  include ::Google::Protobuf::MessageExts
213
232
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -218,6 +237,11 @@ module Google
218
237
  # @return [::String]
219
238
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to destroy in the format
220
239
  # `projects/*/secrets/*/versions/*`.
240
+ # @!attribute [rw] etag
241
+ # @return [::String]
242
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
243
+ # the etag of the currently stored secret version object. If the etag is
244
+ # omitted, the request succeeds.
221
245
  class DestroySecretVersionRequest
222
246
  include ::Google::Protobuf::MessageExts
223
247
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-secret_manager-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.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-04-05 00:00:00.000000000 Z
11
+ date: 2021-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  - !ruby/object:Gem::Version
228
228
  version: '0'
229
229
  requirements: []
230
- rubygems_version: 3.2.13
230
+ rubygems_version: 3.2.17
231
231
  signing_key:
232
232
  specification_version: 4
233
233
  summary: API Client library for the Secret Manager V1 API