google-cloud-secret_manager-v1 0.14.0 → 0.15.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: 87acc7c733648f00809db4d878642ad3a187e746579bcc8f2ba56f826d783a91
4
- data.tar.gz: 9dff5b0a6dc83d87d35a467e3ab33aee755440a83cad015f63e40190b569d82f
3
+ metadata.gz: 4d52cd63e39a2a4743e94a1faa9547c763a1c80ca397b7403fa290b8f95f1f1e
4
+ data.tar.gz: 9c7dae3f1d823552ccf9616506acc7ba6e50c37f0dae4c3d6e0ece433215145d
5
5
  SHA512:
6
- metadata.gz: fa95f5daa2d95ef9636f796828e27b5c4de3e1f16518244b312ae2031ca2edf60c2c539903e129b04068099266d2eea854d7787ac957a48c5b43bcbf36cc28a7
7
- data.tar.gz: fd5715bad04f657b591e0605026cf7abd3952343b1f308d396721c7df4f22f368f9f18fd2ff96d2d0e0a57b7a2c2daf4508b61ed14ecc89abbd4d2afa637a1fe
6
+ metadata.gz: 453c50f4e75859fa45cb49ecfad9e1c884932fccf2b0631e2d9ab74e2750a49fbd295c1c773ad378bec5923751ac788220f10f477cdb56ad2a9446cd3a822ca0
7
+ data.tar.gz: 8b20644a98b1e984e270dc7df71a8a452c0a5f0667f1fa5f7562abd66fdf91f861a5e1d821cd8cd9ee2432382988dd2ffb837b43f4980ad352eca3e9fda64375
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -39,7 +39,7 @@ module Google
39
39
  # * {::Google::Cloud::SecretManager::V1::Secret Secret}
40
40
  # * {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}
41
41
  #
42
- # To load this service and instantiate a client:
42
+ # @example Load this service and instantiate a gRPC client
43
43
  #
44
44
  # require "google/cloud/secret_manager/v1/secret_manager_service"
45
45
  # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1
24
- VERSION = "0.14.0"
24
+ VERSION = "0.15.0"
25
25
  end
26
26
  end
27
27
  end
@@ -23,9 +23,9 @@ module Google
23
23
  module Cloud
24
24
  module SecretManager
25
25
  ##
26
- # To load this package, including all its services, and instantiate a client:
26
+ # API client module.
27
27
  #
28
- # @example
28
+ # @example Load this package, including all its services, and instantiate a gRPC client
29
29
  #
30
30
  # require "google/cloud/secret_manager/v1"
31
31
  # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
@@ -3,7 +3,6 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/field_behavior_pb'
8
7
  require 'google/api/resource_pb'
9
8
  require 'google/protobuf/duration_pb'
@@ -20,6 +19,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
20
19
  optional :etag, :string, 8
21
20
  optional :rotation, :message, 9, "google.cloud.secretmanager.v1.Rotation"
22
21
  map :version_aliases, :string, :int64, 11
22
+ map :annotations, :string, :string, 13
23
23
  oneof :expiration do
24
24
  optional :expire_time, :message, 6, "google.protobuf.Timestamp"
25
25
  optional :ttl, :message, 7, "google.protobuf.Duration"
@@ -0,0 +1,318 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Api
22
+ # Required information for every language.
23
+ # @!attribute [rw] reference_docs_uri
24
+ # @return [::String]
25
+ # Link to automatically generated reference documentation. Example:
26
+ # https://cloud.google.com/nodejs/docs/reference/asset/latest
27
+ # @!attribute [rw] destinations
28
+ # @return [::Array<::Google::Api::ClientLibraryDestination>]
29
+ # The destination where API teams want this client library to be published.
30
+ class CommonLanguageSettings
31
+ include ::Google::Protobuf::MessageExts
32
+ extend ::Google::Protobuf::MessageExts::ClassMethods
33
+ end
34
+
35
+ # Details about how and where to publish client libraries.
36
+ # @!attribute [rw] version
37
+ # @return [::String]
38
+ # Version of the API to apply these settings to.
39
+ # @!attribute [rw] launch_stage
40
+ # @return [::Google::Api::LaunchStage]
41
+ # Launch stage of this version of the API.
42
+ # @!attribute [rw] rest_numeric_enums
43
+ # @return [::Boolean]
44
+ # When using transport=rest, the client request will encode enums as
45
+ # numbers rather than strings.
46
+ # @!attribute [rw] java_settings
47
+ # @return [::Google::Api::JavaSettings]
48
+ # Settings for legacy Java features, supported in the Service YAML.
49
+ # @!attribute [rw] cpp_settings
50
+ # @return [::Google::Api::CppSettings]
51
+ # Settings for C++ client libraries.
52
+ # @!attribute [rw] php_settings
53
+ # @return [::Google::Api::PhpSettings]
54
+ # Settings for PHP client libraries.
55
+ # @!attribute [rw] python_settings
56
+ # @return [::Google::Api::PythonSettings]
57
+ # Settings for Python client libraries.
58
+ # @!attribute [rw] node_settings
59
+ # @return [::Google::Api::NodeSettings]
60
+ # Settings for Node client libraries.
61
+ # @!attribute [rw] dotnet_settings
62
+ # @return [::Google::Api::DotnetSettings]
63
+ # Settings for .NET client libraries.
64
+ # @!attribute [rw] ruby_settings
65
+ # @return [::Google::Api::RubySettings]
66
+ # Settings for Ruby client libraries.
67
+ # @!attribute [rw] go_settings
68
+ # @return [::Google::Api::GoSettings]
69
+ # Settings for Go client libraries.
70
+ class ClientLibrarySettings
71
+ include ::Google::Protobuf::MessageExts
72
+ extend ::Google::Protobuf::MessageExts::ClassMethods
73
+ end
74
+
75
+ # This message configures the settings for publishing [Google Cloud Client
76
+ # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
77
+ # generated from the service config.
78
+ # @!attribute [rw] method_settings
79
+ # @return [::Array<::Google::Api::MethodSettings>]
80
+ # A list of API method settings, e.g. the behavior for methods that use the
81
+ # long-running operation pattern.
82
+ # @!attribute [rw] new_issue_uri
83
+ # @return [::String]
84
+ # Link to a place that API users can report issues. Example:
85
+ # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
+ # @!attribute [rw] documentation_uri
87
+ # @return [::String]
88
+ # Link to product home page. Example:
89
+ # https://cloud.google.com/asset-inventory/docs/overview
90
+ # @!attribute [rw] api_short_name
91
+ # @return [::String]
92
+ # Used as a tracking tag when collecting data about the APIs developer
93
+ # relations artifacts like docs, packages delivered to package managers,
94
+ # etc. Example: "speech".
95
+ # @!attribute [rw] github_label
96
+ # @return [::String]
97
+ # GitHub label to apply to issues and pull requests opened for this API.
98
+ # @!attribute [rw] codeowner_github_teams
99
+ # @return [::Array<::String>]
100
+ # GitHub teams to be added to CODEOWNERS in the directory in GitHub
101
+ # containing source code for the client libraries for this API.
102
+ # @!attribute [rw] doc_tag_prefix
103
+ # @return [::String]
104
+ # A prefix used in sample code when demarking regions to be included in
105
+ # documentation.
106
+ # @!attribute [rw] organization
107
+ # @return [::Google::Api::ClientLibraryOrganization]
108
+ # For whom the client library is being published.
109
+ # @!attribute [rw] library_settings
110
+ # @return [::Array<::Google::Api::ClientLibrarySettings>]
111
+ # Client library settings. If the same version string appears multiple
112
+ # times in this list, then the last one wins. Settings from earlier
113
+ # settings with the same version string are discarded.
114
+ class Publishing
115
+ include ::Google::Protobuf::MessageExts
116
+ extend ::Google::Protobuf::MessageExts::ClassMethods
117
+ end
118
+
119
+ # Settings for Java client libraries.
120
+ # @!attribute [rw] library_package
121
+ # @return [::String]
122
+ # The package name to use in Java. Clobbers the java_package option
123
+ # set in the protobuf. This should be used **only** by APIs
124
+ # who have already set the language_settings.java.package_name" field
125
+ # in gapic.yaml. API teams should use the protobuf java_package option
126
+ # where possible.
127
+ #
128
+ # Example of a YAML configuration::
129
+ #
130
+ # publishing:
131
+ # java_settings:
132
+ # library_package: com.google.cloud.pubsub.v1
133
+ # @!attribute [rw] service_class_names
134
+ # @return [::Google::Protobuf::Map{::String => ::String}]
135
+ # Configure the Java class name to use instead of the service's for its
136
+ # corresponding generated GAPIC client. Keys are fully-qualified
137
+ # service names as they appear in the protobuf (including the full
138
+ # the language_settings.java.interface_names" field in gapic.yaml. API
139
+ # teams should otherwise use the service name as it appears in the
140
+ # protobuf.
141
+ #
142
+ # Example of a YAML configuration::
143
+ #
144
+ # publishing:
145
+ # java_settings:
146
+ # service_class_names:
147
+ # - google.pubsub.v1.Publisher: TopicAdmin
148
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
149
+ # @!attribute [rw] common
150
+ # @return [::Google::Api::CommonLanguageSettings]
151
+ # Some settings.
152
+ class JavaSettings
153
+ include ::Google::Protobuf::MessageExts
154
+ extend ::Google::Protobuf::MessageExts::ClassMethods
155
+
156
+ # @!attribute [rw] key
157
+ # @return [::String]
158
+ # @!attribute [rw] value
159
+ # @return [::String]
160
+ class ServiceClassNamesEntry
161
+ include ::Google::Protobuf::MessageExts
162
+ extend ::Google::Protobuf::MessageExts::ClassMethods
163
+ end
164
+ end
165
+
166
+ # Settings for C++ client libraries.
167
+ # @!attribute [rw] common
168
+ # @return [::Google::Api::CommonLanguageSettings]
169
+ # Some settings.
170
+ class CppSettings
171
+ include ::Google::Protobuf::MessageExts
172
+ extend ::Google::Protobuf::MessageExts::ClassMethods
173
+ end
174
+
175
+ # Settings for Php client libraries.
176
+ # @!attribute [rw] common
177
+ # @return [::Google::Api::CommonLanguageSettings]
178
+ # Some settings.
179
+ class PhpSettings
180
+ include ::Google::Protobuf::MessageExts
181
+ extend ::Google::Protobuf::MessageExts::ClassMethods
182
+ end
183
+
184
+ # Settings for Python client libraries.
185
+ # @!attribute [rw] common
186
+ # @return [::Google::Api::CommonLanguageSettings]
187
+ # Some settings.
188
+ class PythonSettings
189
+ include ::Google::Protobuf::MessageExts
190
+ extend ::Google::Protobuf::MessageExts::ClassMethods
191
+ end
192
+
193
+ # Settings for Node client libraries.
194
+ # @!attribute [rw] common
195
+ # @return [::Google::Api::CommonLanguageSettings]
196
+ # Some settings.
197
+ class NodeSettings
198
+ include ::Google::Protobuf::MessageExts
199
+ extend ::Google::Protobuf::MessageExts::ClassMethods
200
+ end
201
+
202
+ # Settings for Dotnet client libraries.
203
+ # @!attribute [rw] common
204
+ # @return [::Google::Api::CommonLanguageSettings]
205
+ # Some settings.
206
+ class DotnetSettings
207
+ include ::Google::Protobuf::MessageExts
208
+ extend ::Google::Protobuf::MessageExts::ClassMethods
209
+ end
210
+
211
+ # Settings for Ruby client libraries.
212
+ # @!attribute [rw] common
213
+ # @return [::Google::Api::CommonLanguageSettings]
214
+ # Some settings.
215
+ class RubySettings
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
219
+
220
+ # Settings for Go client libraries.
221
+ # @!attribute [rw] common
222
+ # @return [::Google::Api::CommonLanguageSettings]
223
+ # Some settings.
224
+ class GoSettings
225
+ include ::Google::Protobuf::MessageExts
226
+ extend ::Google::Protobuf::MessageExts::ClassMethods
227
+ end
228
+
229
+ # Describes the generator configuration for a method.
230
+ # @!attribute [rw] selector
231
+ # @return [::String]
232
+ # The fully qualified name of the method, for which the options below apply.
233
+ # This is used to find the method to apply the options.
234
+ # @!attribute [rw] long_running
235
+ # @return [::Google::Api::MethodSettings::LongRunning]
236
+ # Describes settings to use for long-running operations when generating
237
+ # API methods for RPCs. Complements RPCs that use the annotations in
238
+ # google/longrunning/operations.proto.
239
+ #
240
+ # Example of a YAML configuration::
241
+ #
242
+ # publishing:
243
+ # method_behavior:
244
+ # - selector: CreateAdDomain
245
+ # long_running:
246
+ # initial_poll_delay:
247
+ # seconds: 60 # 1 minute
248
+ # poll_delay_multiplier: 1.5
249
+ # max_poll_delay:
250
+ # seconds: 360 # 6 minutes
251
+ # total_poll_timeout:
252
+ # seconds: 54000 # 90 minutes
253
+ class MethodSettings
254
+ include ::Google::Protobuf::MessageExts
255
+ extend ::Google::Protobuf::MessageExts::ClassMethods
256
+
257
+ # Describes settings to use when generating API methods that use the
258
+ # long-running operation pattern.
259
+ # All default values below are from those used in the client library
260
+ # generators (e.g.
261
+ # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
262
+ # @!attribute [rw] initial_poll_delay
263
+ # @return [::Google::Protobuf::Duration]
264
+ # Initial delay after which the first poll request will be made.
265
+ # Default value: 5 seconds.
266
+ # @!attribute [rw] poll_delay_multiplier
267
+ # @return [::Float]
268
+ # Multiplier to gradually increase delay between subsequent polls until it
269
+ # reaches max_poll_delay.
270
+ # Default value: 1.5.
271
+ # @!attribute [rw] max_poll_delay
272
+ # @return [::Google::Protobuf::Duration]
273
+ # Maximum time between two subsequent poll requests.
274
+ # Default value: 45 seconds.
275
+ # @!attribute [rw] total_poll_timeout
276
+ # @return [::Google::Protobuf::Duration]
277
+ # Total polling timeout.
278
+ # Default value: 5 minutes.
279
+ class LongRunning
280
+ include ::Google::Protobuf::MessageExts
281
+ extend ::Google::Protobuf::MessageExts::ClassMethods
282
+ end
283
+ end
284
+
285
+ # The organization for which the client libraries are being published.
286
+ # Affects the url where generated docs are published, etc.
287
+ module ClientLibraryOrganization
288
+ # Not useful.
289
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0
290
+
291
+ # Google Cloud Platform Org.
292
+ CLOUD = 1
293
+
294
+ # Ads (Advertising) Org.
295
+ ADS = 2
296
+
297
+ # Photos Org.
298
+ PHOTOS = 3
299
+
300
+ # Street View Org.
301
+ STREET_VIEW = 4
302
+ end
303
+
304
+ # To where should client libraries be published?
305
+ module ClientLibraryDestination
306
+ # Client libraries will neither be generated nor published to package
307
+ # managers.
308
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0
309
+
310
+ # Generate the client library in a repo under github.com/googleapis,
311
+ # but don't publish it to package managers.
312
+ GITHUB = 10
313
+
314
+ # Publish the library to package managers like nuget.org and npmjs.com.
315
+ PACKAGE_MANAGER = 20
316
+ end
317
+ end
318
+ end
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Api
22
+ # The launch stage as defined by [Google Cloud Platform
23
+ # Launch Stages](https://cloud.google.com/terms/launch-stages).
24
+ module LaunchStage
25
+ # Do not use this default value.
26
+ LAUNCH_STAGE_UNSPECIFIED = 0
27
+
28
+ # The feature is not yet implemented. Users can not use it.
29
+ UNIMPLEMENTED = 6
30
+
31
+ # Prelaunch features are hidden from users and are only visible internally.
32
+ PRELAUNCH = 7
33
+
34
+ # Early Access features are limited to a closed group of testers. To use
35
+ # these features, you must sign up in advance and sign a Trusted Tester
36
+ # agreement (which includes confidentiality provisions). These features may
37
+ # be unstable, changed in backward-incompatible ways, and are not
38
+ # guaranteed to be released.
39
+ EARLY_ACCESS = 1
40
+
41
+ # Alpha is a limited availability test for releases before they are cleared
42
+ # for widespread use. By Alpha, all significant design issues are resolved
43
+ # and we are in the process of verifying functionality. Alpha customers
44
+ # need to apply for access, agree to applicable terms, and have their
45
+ # projects allowlisted. Alpha releases don't have to be feature complete,
46
+ # no SLAs are provided, and there are no technical support obligations, but
47
+ # they will be far enough along that customers can actually use them in
48
+ # test environments or for limited-use tests -- just like they would in
49
+ # normal production cases.
50
+ ALPHA = 2
51
+
52
+ # Beta is the point at which we are ready to open a release for any
53
+ # customer to use. There are no SLA or technical support obligations in a
54
+ # Beta release. Products will be complete from a feature perspective, but
55
+ # may have some open outstanding issues. Beta releases are suitable for
56
+ # limited production use cases.
57
+ BETA = 3
58
+
59
+ # GA features are open to all developers and are considered stable and
60
+ # fully qualified for production use.
61
+ GA = 4
62
+
63
+ # Deprecated features are scheduled to be shut down and removed. For more
64
+ # information, see the "Deprecation Policy" section of our [Terms of
65
+ # Service](https://cloud.google.com/terms/)
66
+ # and the [Google Cloud Platform Subject to the Deprecation
67
+ # Policy](https://cloud.google.com/terms/deprecation) documentation.
68
+ DEPRECATED = 5
69
+ end
70
+ end
71
+ end
@@ -21,22 +21,27 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1
24
- # A {::Google::Cloud::SecretManager::V1::Secret Secret} is a logical secret whose value and versions can
25
- # be accessed.
24
+ # A {::Google::Cloud::SecretManager::V1::Secret Secret} is a logical secret whose
25
+ # value and versions can be accessed.
26
26
  #
27
- # A {::Google::Cloud::SecretManager::V1::Secret Secret} is made up of zero or more {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} that
28
- # represent the secret data.
27
+ # A {::Google::Cloud::SecretManager::V1::Secret Secret} is made up of zero or more
28
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} that represent
29
+ # the secret data.
29
30
  # @!attribute [r] name
30
31
  # @return [::String]
31
- # Output only. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret} in the format `projects/*/secrets/*`.
32
+ # Output only. The resource name of the
33
+ # {::Google::Cloud::SecretManager::V1::Secret Secret} in the format
34
+ # `projects/*/secrets/*`.
32
35
  # @!attribute [rw] replication
33
36
  # @return [::Google::Cloud::SecretManager::V1::Replication]
34
- # Required. Immutable. The replication policy of the secret data attached to the {::Google::Cloud::SecretManager::V1::Secret Secret}.
37
+ # Required. Immutable. The replication policy of the secret data attached to
38
+ # the {::Google::Cloud::SecretManager::V1::Secret Secret}.
35
39
  #
36
40
  # The replication policy cannot be changed after the Secret has been created.
37
41
  # @!attribute [r] create_time
38
42
  # @return [::Google::Protobuf::Timestamp]
39
- # Output only. The time at which the {::Google::Cloud::SecretManager::V1::Secret Secret} was created.
43
+ # Output only. The time at which the
44
+ # {::Google::Cloud::SecretManager::V1::Secret Secret} was created.
40
45
  # @!attribute [rw] labels
41
46
  # @return [::Google::Protobuf::Map{::String => ::String}]
42
47
  # The labels assigned to this Secret.
@@ -52,22 +57,26 @@ module Google
52
57
  # No more than 64 labels can be assigned to a given resource.
53
58
  # @!attribute [rw] topics
54
59
  # @return [::Array<::Google::Cloud::SecretManager::V1::Topic>]
55
- # Optional. A list of up to 10 Pub/Sub topics to which messages are published when
56
- # control plane operations are called on the secret or its versions.
60
+ # Optional. A list of up to 10 Pub/Sub topics to which messages are published
61
+ # when control plane operations are called on the secret or its versions.
57
62
  # @!attribute [rw] expire_time
58
63
  # @return [::Google::Protobuf::Timestamp]
59
- # Optional. Timestamp in UTC when the {::Google::Cloud::SecretManager::V1::Secret Secret} is scheduled to expire. This is
60
- # always provided on output, regardless of what was sent on input.
64
+ # Optional. Timestamp in UTC when the
65
+ # {::Google::Cloud::SecretManager::V1::Secret Secret} is scheduled to expire.
66
+ # This is always provided on output, regardless of what was sent on input.
61
67
  # @!attribute [rw] ttl
62
68
  # @return [::Google::Protobuf::Duration]
63
- # Input only. The TTL for the {::Google::Cloud::SecretManager::V1::Secret Secret}.
69
+ # Input only. The TTL for the
70
+ # {::Google::Cloud::SecretManager::V1::Secret Secret}.
64
71
  # @!attribute [rw] etag
65
72
  # @return [::String]
66
- # Optional. Etag of the currently stored {::Google::Cloud::SecretManager::V1::Secret Secret}.
73
+ # Optional. Etag of the currently stored
74
+ # {::Google::Cloud::SecretManager::V1::Secret Secret}.
67
75
  # @!attribute [rw] rotation
68
76
  # @return [::Google::Cloud::SecretManager::V1::Rotation]
69
- # Optional. Rotation policy attached to the {::Google::Cloud::SecretManager::V1::Secret Secret}. May be excluded if there is no
70
- # rotation policy.
77
+ # Optional. Rotation policy attached to the
78
+ # {::Google::Cloud::SecretManager::V1::Secret Secret}. May be excluded if there is
79
+ # no rotation policy.
71
80
  # @!attribute [rw] version_aliases
72
81
  # @return [::Google::Protobuf::Map{::String => ::Integer}]
73
82
  # Optional. Mapping from version alias to version name.
@@ -81,6 +90,20 @@ module Google
81
90
  # Version-Alias pairs will be viewable via GetSecret and modifiable via
82
91
  # UpdateSecret. At launch access by alias will only be supported on
83
92
  # GetSecretVersion and AccessSecretVersion.
93
+ # @!attribute [rw] annotations
94
+ # @return [::Google::Protobuf::Map{::String => ::String}]
95
+ # Optional. Custom metadata about the secret.
96
+ #
97
+ # Annotations are distinct from various forms of labels.
98
+ # Annotations exist to allow client tools to store their own state
99
+ # information without requiring a database.
100
+ #
101
+ # Annotation keys must be between 1 and 63 characters long, have a UTF-8
102
+ # encoding of maximum 128 bytes, begin and end with an alphanumeric character
103
+ # ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and
104
+ # alphanumerics in between these symbols.
105
+ #
106
+ # The total size of annotation keys and values must be less than 16KiB.
84
107
  class Secret
85
108
  include ::Google::Protobuf::MessageExts
86
109
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -102,57 +125,83 @@ module Google
102
125
  include ::Google::Protobuf::MessageExts
103
126
  extend ::Google::Protobuf::MessageExts::ClassMethods
104
127
  end
128
+
129
+ # @!attribute [rw] key
130
+ # @return [::String]
131
+ # @!attribute [rw] value
132
+ # @return [::String]
133
+ class AnnotationsEntry
134
+ include ::Google::Protobuf::MessageExts
135
+ extend ::Google::Protobuf::MessageExts::ClassMethods
136
+ end
105
137
  end
106
138
 
107
139
  # A secret version resource in the Secret Manager API.
108
140
  # @!attribute [r] name
109
141
  # @return [::String]
110
- # Output only. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the
111
- # format `projects/*/secrets/*/versions/*`.
142
+ # Output only. The resource name of the
143
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
144
+ # `projects/*/secrets/*/versions/*`.
112
145
  #
113
- # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} IDs in a {::Google::Cloud::SecretManager::V1::Secret Secret} start at 1 and
114
- # are incremented for each subsequent version of the secret.
146
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} IDs in a
147
+ # {::Google::Cloud::SecretManager::V1::Secret Secret} start at 1 and are
148
+ # incremented for each subsequent version of the secret.
115
149
  # @!attribute [r] create_time
116
150
  # @return [::Google::Protobuf::Timestamp]
117
- # Output only. The time at which the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} was created.
151
+ # Output only. The time at which the
152
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} was created.
118
153
  # @!attribute [r] destroy_time
119
154
  # @return [::Google::Protobuf::Timestamp]
120
- # Output only. The time this {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} was destroyed.
121
- # Only present if {::Google::Cloud::SecretManager::V1::SecretVersion#state state} is
155
+ # Output only. The time this
156
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} was destroyed.
157
+ # Only present if {::Google::Cloud::SecretManager::V1::SecretVersion#state state}
158
+ # is
122
159
  # {::Google::Cloud::SecretManager::V1::SecretVersion::State::DESTROYED DESTROYED}.
123
160
  # @!attribute [r] state
124
161
  # @return [::Google::Cloud::SecretManager::V1::SecretVersion::State]
125
- # Output only. The current state of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
162
+ # Output only. The current state of the
163
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
126
164
  # @!attribute [rw] replication_status
127
165
  # @return [::Google::Cloud::SecretManager::V1::ReplicationStatus]
128
- # The replication status of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
166
+ # The replication status of the
167
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
129
168
  # @!attribute [r] etag
130
169
  # @return [::String]
131
- # Output only. Etag of the currently stored {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
170
+ # Output only. Etag of the currently stored
171
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
132
172
  # @!attribute [r] client_specified_payload_checksum
133
173
  # @return [::Boolean]
134
- # Output only. True if payload checksum specified in {::Google::Cloud::SecretManager::V1::SecretPayload SecretPayload} object has been
135
- # received by {::Google::Cloud::SecretManager::V1::SecretManagerService::Client SecretManagerService} on
174
+ # Output only. True if payload checksum specified in
175
+ # {::Google::Cloud::SecretManager::V1::SecretPayload SecretPayload} object has
176
+ # been received by
177
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client SecretManagerService}
178
+ # on
136
179
  # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version SecretManagerService.AddSecretVersion}.
137
180
  class SecretVersion
138
181
  include ::Google::Protobuf::MessageExts
139
182
  extend ::Google::Protobuf::MessageExts::ClassMethods
140
183
 
141
- # The state of a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}, indicating if it can be accessed.
184
+ # The state of a
185
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}, indicating if
186
+ # it can be accessed.
142
187
  module State
143
188
  # Not specified. This value is unused and invalid.
144
189
  STATE_UNSPECIFIED = 0
145
190
 
146
- # The {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} may be accessed.
191
+ # The {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} may be
192
+ # accessed.
147
193
  ENABLED = 1
148
194
 
149
- # The {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} may not be accessed, but the secret data
150
- # is still available and can be placed back into the {::Google::Cloud::SecretManager::V1::SecretVersion::State::ENABLED ENABLED}
195
+ # The {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} may not
196
+ # be accessed, but the secret data is still available and can be placed
197
+ # back into the
198
+ # {::Google::Cloud::SecretManager::V1::SecretVersion::State::ENABLED ENABLED}
151
199
  # state.
152
200
  DISABLED = 2
153
201
 
154
- # The {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} is destroyed and the secret data is no longer
155
- # stored. A version may not leave this state once entered.
202
+ # The {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} is
203
+ # destroyed and the secret data is no longer stored. A version may not
204
+ # leave this state once entered.
156
205
  DESTROYED = 3
157
206
  end
158
207
  end
@@ -160,54 +209,65 @@ module Google
160
209
  # A policy that defines the replication and encryption configuration of data.
161
210
  # @!attribute [rw] automatic
162
211
  # @return [::Google::Cloud::SecretManager::V1::Replication::Automatic]
163
- # The {::Google::Cloud::SecretManager::V1::Secret Secret} will automatically be replicated without any restrictions.
212
+ # The {::Google::Cloud::SecretManager::V1::Secret Secret} will automatically be
213
+ # replicated without any restrictions.
164
214
  # @!attribute [rw] user_managed
165
215
  # @return [::Google::Cloud::SecretManager::V1::Replication::UserManaged]
166
- # The {::Google::Cloud::SecretManager::V1::Secret Secret} will only be replicated into the locations specified.
216
+ # The {::Google::Cloud::SecretManager::V1::Secret Secret} will only be
217
+ # replicated into the locations specified.
167
218
  class Replication
168
219
  include ::Google::Protobuf::MessageExts
169
220
  extend ::Google::Protobuf::MessageExts::ClassMethods
170
221
 
171
- # A replication policy that replicates the {::Google::Cloud::SecretManager::V1::Secret Secret} payload without any
222
+ # A replication policy that replicates the
223
+ # {::Google::Cloud::SecretManager::V1::Secret Secret} payload without any
172
224
  # restrictions.
173
225
  # @!attribute [rw] customer_managed_encryption
174
226
  # @return [::Google::Cloud::SecretManager::V1::CustomerManagedEncryption]
175
- # Optional. The customer-managed encryption configuration of the {::Google::Cloud::SecretManager::V1::Secret Secret}. If no
176
- # configuration is provided, Google-managed default encryption is used.
227
+ # Optional. The customer-managed encryption configuration of the
228
+ # {::Google::Cloud::SecretManager::V1::Secret Secret}. If no configuration is
229
+ # provided, Google-managed default encryption is used.
177
230
  #
178
- # Updates to the {::Google::Cloud::SecretManager::V1::Secret Secret} encryption configuration only apply to
179
- # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} added afterwards. They do not apply
180
- # retroactively to existing {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions}.
231
+ # Updates to the {::Google::Cloud::SecretManager::V1::Secret Secret} encryption
232
+ # configuration only apply to
233
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} added
234
+ # afterwards. They do not apply retroactively to existing
235
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions}.
181
236
  class Automatic
182
237
  include ::Google::Protobuf::MessageExts
183
238
  extend ::Google::Protobuf::MessageExts::ClassMethods
184
239
  end
185
240
 
186
- # A replication policy that replicates the {::Google::Cloud::SecretManager::V1::Secret Secret} payload into the
187
- # locations specified in [Secret.replication.user_managed.replicas][]
241
+ # A replication policy that replicates the
242
+ # {::Google::Cloud::SecretManager::V1::Secret Secret} payload into the locations
243
+ # specified in [Secret.replication.user_managed.replicas][]
188
244
  # @!attribute [rw] replicas
189
245
  # @return [::Array<::Google::Cloud::SecretManager::V1::Replication::UserManaged::Replica>]
190
- # Required. The list of Replicas for this {::Google::Cloud::SecretManager::V1::Secret Secret}.
246
+ # Required. The list of Replicas for this
247
+ # {::Google::Cloud::SecretManager::V1::Secret Secret}.
191
248
  #
192
249
  # Cannot be empty.
193
250
  class UserManaged
194
251
  include ::Google::Protobuf::MessageExts
195
252
  extend ::Google::Protobuf::MessageExts::ClassMethods
196
253
 
197
- # Represents a Replica for this {::Google::Cloud::SecretManager::V1::Secret Secret}.
254
+ # Represents a Replica for this
255
+ # {::Google::Cloud::SecretManager::V1::Secret Secret}.
198
256
  # @!attribute [rw] location
199
257
  # @return [::String]
200
258
  # The canonical IDs of the location to replicate data.
201
259
  # For example: `"us-east1"`.
202
260
  # @!attribute [rw] customer_managed_encryption
203
261
  # @return [::Google::Cloud::SecretManager::V1::CustomerManagedEncryption]
204
- # Optional. The customer-managed encryption configuration of the [User-Managed
205
- # Replica][Replication.UserManaged.Replica]. If no configuration is
206
- # provided, Google-managed default encryption is used.
262
+ # Optional. The customer-managed encryption configuration of the
263
+ # [User-Managed Replica][Replication.UserManaged.Replica]. If no
264
+ # configuration is provided, Google-managed default encryption is used.
207
265
  #
208
- # Updates to the {::Google::Cloud::SecretManager::V1::Secret Secret} encryption configuration only apply to
209
- # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} added afterwards. They do not apply
210
- # retroactively to existing {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions}.
266
+ # Updates to the {::Google::Cloud::SecretManager::V1::Secret Secret}
267
+ # encryption configuration only apply to
268
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} added
269
+ # afterwards. They do not apply retroactively to existing
270
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions}.
211
271
  class Replica
212
272
  include ::Google::Protobuf::MessageExts
213
273
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -219,15 +279,17 @@ module Google
219
279
  # encryption keys (CMEK).
220
280
  # @!attribute [rw] kms_key_name
221
281
  # @return [::String]
222
- # Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret
223
- # payloads.
282
+ # Required. The resource name of the Cloud KMS CryptoKey used to encrypt
283
+ # secret payloads.
224
284
  #
225
- # For secrets using the {::Google::Cloud::SecretManager::V1::Replication::UserManaged UserManaged} replication
226
- # policy type, Cloud KMS CryptoKeys must reside in the same location as the
227
- # [replica location][Secret.UserManaged.Replica.location].
285
+ # For secrets using the
286
+ # {::Google::Cloud::SecretManager::V1::Replication::UserManaged UserManaged}
287
+ # replication policy type, Cloud KMS CryptoKeys must reside in the same
288
+ # location as the [replica location][Secret.UserManaged.Replica.location].
228
289
  #
229
- # For secrets using the {::Google::Cloud::SecretManager::V1::Replication::Automatic Automatic} replication policy
230
- # type, Cloud KMS CryptoKeys must reside in `global`.
290
+ # For secrets using the
291
+ # {::Google::Cloud::SecretManager::V1::Replication::Automatic Automatic}
292
+ # replication policy type, Cloud KMS CryptoKeys must reside in `global`.
231
293
  #
232
294
  # The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
233
295
  class CustomerManagedEncryption
@@ -235,58 +297,70 @@ module Google
235
297
  extend ::Google::Protobuf::MessageExts::ClassMethods
236
298
  end
237
299
 
238
- # The replication status of a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
300
+ # The replication status of a
301
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
239
302
  # @!attribute [rw] automatic
240
303
  # @return [::Google::Cloud::SecretManager::V1::ReplicationStatus::AutomaticStatus]
241
- # Describes the replication status of a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} with
304
+ # Describes the replication status of a
305
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} with
242
306
  # automatic replication.
243
307
  #
244
- # Only populated if the parent {::Google::Cloud::SecretManager::V1::Secret Secret} has an automatic replication
245
- # policy.
308
+ # Only populated if the parent
309
+ # {::Google::Cloud::SecretManager::V1::Secret Secret} has an automatic
310
+ # replication policy.
246
311
  # @!attribute [rw] user_managed
247
312
  # @return [::Google::Cloud::SecretManager::V1::ReplicationStatus::UserManagedStatus]
248
- # Describes the replication status of a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} with
313
+ # Describes the replication status of a
314
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} with
249
315
  # user-managed replication.
250
316
  #
251
- # Only populated if the parent {::Google::Cloud::SecretManager::V1::Secret Secret} has a user-managed replication
252
- # policy.
317
+ # Only populated if the parent
318
+ # {::Google::Cloud::SecretManager::V1::Secret Secret} has a user-managed
319
+ # replication policy.
253
320
  class ReplicationStatus
254
321
  include ::Google::Protobuf::MessageExts
255
322
  extend ::Google::Protobuf::MessageExts::ClassMethods
256
323
 
257
- # The replication status of a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} using automatic replication.
324
+ # The replication status of a
325
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} using
326
+ # automatic replication.
258
327
  #
259
- # Only populated if the parent {::Google::Cloud::SecretManager::V1::Secret Secret} has an automatic replication
260
- # policy.
328
+ # Only populated if the parent {::Google::Cloud::SecretManager::V1::Secret Secret}
329
+ # has an automatic replication policy.
261
330
  # @!attribute [r] customer_managed_encryption
262
331
  # @return [::Google::Cloud::SecretManager::V1::CustomerManagedEncryptionStatus]
263
- # Output only. The customer-managed encryption status of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. Only
332
+ # Output only. The customer-managed encryption status of the
333
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. Only
264
334
  # populated if customer-managed encryption is used.
265
335
  class AutomaticStatus
266
336
  include ::Google::Protobuf::MessageExts
267
337
  extend ::Google::Protobuf::MessageExts::ClassMethods
268
338
  end
269
339
 
270
- # The replication status of a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} using user-managed
271
- # replication.
340
+ # The replication status of a
341
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} using
342
+ # user-managed replication.
272
343
  #
273
- # Only populated if the parent {::Google::Cloud::SecretManager::V1::Secret Secret} has a user-managed replication
274
- # policy.
344
+ # Only populated if the parent {::Google::Cloud::SecretManager::V1::Secret Secret}
345
+ # has a user-managed replication policy.
275
346
  # @!attribute [r] replicas
276
347
  # @return [::Array<::Google::Cloud::SecretManager::V1::ReplicationStatus::UserManagedStatus::ReplicaStatus>]
277
- # Output only. The list of replica statuses for the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
348
+ # Output only. The list of replica statuses for the
349
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
278
350
  class UserManagedStatus
279
351
  include ::Google::Protobuf::MessageExts
280
352
  extend ::Google::Protobuf::MessageExts::ClassMethods
281
353
 
282
- # Describes the status of a user-managed replica for the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
354
+ # Describes the status of a user-managed replica for the
355
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
283
356
  # @!attribute [r] location
284
357
  # @return [::String]
285
358
  # Output only. The canonical ID of the replica location.
286
359
  # For example: `"us-east1"`.
287
360
  # @!attribute [r] customer_managed_encryption
288
361
  # @return [::Google::Cloud::SecretManager::V1::CustomerManagedEncryptionStatus]
289
- # Output only. The customer-managed encryption status of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. Only
362
+ # Output only. The customer-managed encryption status of the
363
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. Only
290
364
  # populated if customer-managed encryption is used.
291
365
  class ReplicaStatus
292
366
  include ::Google::Protobuf::MessageExts
@@ -298,8 +372,8 @@ module Google
298
372
  # Describes the status of customer-managed encryption.
299
373
  # @!attribute [rw] kms_key_version_name
300
374
  # @return [::String]
301
- # Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the
302
- # secret payload, in the following format:
375
+ # Required. The resource name of the Cloud KMS CryptoKeyVersion used to
376
+ # encrypt the secret payload, in the following format:
303
377
  # `projects/*/locations/*/keyRings/*/cryptoKeys/*/versions/*`.
304
378
  class CustomerManagedEncryptionStatus
305
379
  include ::Google::Protobuf::MessageExts
@@ -310,50 +384,69 @@ module Google
310
384
  # events occur on this secret.
311
385
  # @!attribute [rw] name
312
386
  # @return [::String]
313
- # Required. The resource name of the Pub/Sub topic that will be published to, in the
314
- # following format: `projects/*/topics/*`. For publication to succeed, the
315
- # Secret Manager P4SA must have `pubsub.publisher` permissions on the topic.
387
+ # Required. The resource name of the Pub/Sub topic that will be published to,
388
+ # in the following format: `projects/*/topics/*`. For publication to succeed,
389
+ # the Secret Manager P4SA must have `pubsub.publisher` permissions on the
390
+ # topic.
316
391
  class Topic
317
392
  include ::Google::Protobuf::MessageExts
318
393
  extend ::Google::Protobuf::MessageExts::ClassMethods
319
394
  end
320
395
 
321
- # The rotation time and period for a {::Google::Cloud::SecretManager::V1::Secret Secret}. At next_rotation_time, Secret
396
+ # The rotation time and period for a
397
+ # {::Google::Cloud::SecretManager::V1::Secret Secret}. At next_rotation_time, Secret
322
398
  # Manager will send a Pub/Sub notification to the topics configured on the
323
- # Secret. {::Google::Cloud::SecretManager::V1::Secret#topics Secret.topics} must be set to configure rotation.
399
+ # Secret. {::Google::Cloud::SecretManager::V1::Secret#topics Secret.topics} must be
400
+ # set to configure rotation.
324
401
  # @!attribute [rw] next_rotation_time
325
402
  # @return [::Google::Protobuf::Timestamp]
326
- # Optional. Timestamp in UTC at which the {::Google::Cloud::SecretManager::V1::Secret Secret} is scheduled to rotate. Cannot be
327
- # set to less than 300s (5 min) in the future and at most 3153600000s (100
328
- # years).
403
+ # Optional. Timestamp in UTC at which the
404
+ # {::Google::Cloud::SecretManager::V1::Secret Secret} is scheduled to rotate.
405
+ # Cannot be set to less than 300s (5 min) in the future and at most
406
+ # 3153600000s (100 years).
329
407
  #
330
- # {::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.
408
+ # {::Google::Cloud::SecretManager::V1::Rotation#next_rotation_time next_rotation_time}
409
+ # MUST be set if
410
+ # {::Google::Cloud::SecretManager::V1::Rotation#rotation_period rotation_period}
411
+ # is set.
331
412
  # @!attribute [rw] rotation_period
332
413
  # @return [::Google::Protobuf::Duration]
333
414
  # Input only. The Duration between rotation notifications. Must be in seconds
334
415
  # and at least 3600s (1h) and at most 3153600000s (100 years).
335
416
  #
336
- # If {::Google::Cloud::SecretManager::V1::Rotation#rotation_period rotation_period} is set, {::Google::Cloud::SecretManager::V1::Rotation#next_rotation_time next_rotation_time} must be set.
337
- # {::Google::Cloud::SecretManager::V1::Rotation#next_rotation_time next_rotation_time} will be advanced by this period when the service
338
- # automatically sends rotation notifications.
417
+ # If
418
+ # {::Google::Cloud::SecretManager::V1::Rotation#rotation_period rotation_period}
419
+ # is set,
420
+ # {::Google::Cloud::SecretManager::V1::Rotation#next_rotation_time next_rotation_time}
421
+ # must be set.
422
+ # {::Google::Cloud::SecretManager::V1::Rotation#next_rotation_time next_rotation_time}
423
+ # will be advanced by this period when the service automatically sends
424
+ # rotation notifications.
339
425
  class Rotation
340
426
  include ::Google::Protobuf::MessageExts
341
427
  extend ::Google::Protobuf::MessageExts::ClassMethods
342
428
  end
343
429
 
344
430
  # A secret payload resource in the Secret Manager API. This contains the
345
- # sensitive secret payload that is associated with a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
431
+ # sensitive secret payload that is associated with a
432
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
346
433
  # @!attribute [rw] data
347
434
  # @return [::String]
348
435
  # The secret data. Must be no larger than 64KiB.
349
436
  # @!attribute [rw] data_crc32c
350
437
  # @return [::Integer]
351
- # Optional. If specified, {::Google::Cloud::SecretManager::V1::SecretManagerService::Client SecretManagerService} will verify the integrity of the
352
- # received {::Google::Cloud::SecretManager::V1::SecretPayload#data data} on {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version SecretManagerService.AddSecretVersion} calls using
353
- # the crc32c checksum and store it to include in future
354
- # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion} responses. If a checksum is
355
- # not provided in the {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version SecretManagerService.AddSecretVersion} request, the
356
- # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client SecretManagerService} will generate and store one for you.
438
+ # Optional. If specified,
439
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client SecretManagerService}
440
+ # will verify the integrity of the received
441
+ # {::Google::Cloud::SecretManager::V1::SecretPayload#data data} on
442
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version SecretManagerService.AddSecretVersion}
443
+ # calls using the crc32c checksum and store it to include in future
444
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion}
445
+ # responses. If a checksum is not provided in the
446
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version SecretManagerService.AddSecretVersion}
447
+ # request, the
448
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client SecretManagerService}
449
+ # will generate and store one for you.
357
450
  #
358
451
  # The CRC32C value is encoded as a Int64 for compatibility, and can be
359
452
  # safely downconverted to uint32 in languages that support this type.
@@ -26,8 +26,6 @@ module Google
26
26
  # service Foo {
27
27
  # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
28
  # }
29
- #
30
- # The JSON representation for `Empty` is empty JSON object `{}`.
31
29
  class Empty
32
30
  include ::Google::Protobuf::MessageExts
33
31
  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.14.0
4
+ version: 0.15.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: 2022-07-08 00:00:00.000000000 Z
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.10'
19
+ version: 0.16.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.10'
29
+ version: 0.16.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -196,7 +196,9 @@ files:
196
196
  - lib/google/cloud/secretmanager/v1/service_pb.rb
197
197
  - lib/google/cloud/secretmanager/v1/service_services_pb.rb
198
198
  - proto_docs/README.md
199
+ - proto_docs/google/api/client.rb
199
200
  - proto_docs/google/api/field_behavior.rb
201
+ - proto_docs/google/api/launch_stage.rb
200
202
  - proto_docs/google/api/resource.rb
201
203
  - proto_docs/google/cloud/secretmanager/v1/resources.rb
202
204
  - proto_docs/google/cloud/secretmanager/v1/service.rb