google-cloud-secret_manager-v1 0.10.2 → 0.11.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 246b4d7aa90a677c68cea7fd96f6e2844a9d6be1e0689a6364ee3c443ece453b
4
- data.tar.gz: 358beba0cc3cf13193ca8764aaf284b064736e424ed3953a6ee96d925aed0f47
3
+ metadata.gz: 509d91190089f8d55689191ce5b9c1ca34a210191e18f99b9dd1008dd32c890b
4
+ data.tar.gz: 84eacdf1476b855da12c996738c6e9d1415d965a9465d813801d9448e8aaec89
5
5
  SHA512:
6
- metadata.gz: c2c9d1e1a99daa54773d35165b14d29a170909e5ded6277b950f6fba9b1160f243fa5b3127a0c3210fab86e0cfbb714e791aed8080a6a42768fd9abf2f933348
7
- data.tar.gz: 195e709756b96f93d22c38c508031fc616b65120ecba425a3b2a4a61feae94680f5101624f00d9d1c678d092608854a836e20338eb32d2c93d980ceae70a46d1
6
+ metadata.gz: 0b86b3b3604117fa09804c90748df2e07435cb83d475eee2e367b299ed29ac1d4ee2e6939e0d7cd5a72befd32952860a98fc346b874db47cbb1792484ecdd4a1
7
+ data.tar.gz: 35f5c461303a3b07374f39baa264b084bbc358f4e98057ffbdac72774707024457cfe27256e470689949021638fd3d27ec0b4f32eb4deed68f05a03fd416dafe
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Secret Manager V1 API
2
+ --title="Secret Manager V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
@@ -47,13 +47,12 @@ module Google
47
47
  # See {::Google::Cloud::SecretManager::V1::SecretManagerService::Client::Configuration}
48
48
  # for a description of the configuration fields.
49
49
  #
50
- # ## Example
50
+ # @example
51
51
  #
52
- # To modify the configuration for all SecretManagerService clients:
53
- #
54
- # ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.configure do |config|
55
- # config.timeout = 10.0
56
- # end
52
+ # # Modify the configuration for all SecretManagerService clients
53
+ # ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.configure do |config|
54
+ # config.timeout = 10.0
55
+ # end
57
56
  #
58
57
  # @yield [config] Configure the Client client.
59
58
  # @yieldparam config [Client::Configuration]
@@ -133,19 +132,15 @@ module Google
133
132
  ##
134
133
  # Create a new SecretManagerService client object.
135
134
  #
136
- # ## Examples
137
- #
138
- # To create a new SecretManagerService client with the default
139
- # configuration:
135
+ # @example
140
136
  #
141
- # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
137
+ # # Create a client using the default configuration
138
+ # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
142
139
  #
143
- # To create a new SecretManagerService client with a custom
144
- # configuration:
145
- #
146
- # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new do |config|
147
- # config.timeout = 10.0
148
- # end
140
+ # # Create a client using a custom configuration
141
+ # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new do |config|
142
+ # config.timeout = 10.0
143
+ # end
149
144
  #
150
145
  # @yield [config] Configure the SecretManagerService client.
151
146
  # @yieldparam config [Client::Configuration]
@@ -165,10 +160,9 @@ module Google
165
160
 
166
161
  # Create credentials
167
162
  credentials = @config.credentials
168
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
163
+ # Use self-signed JWT if the endpoint is unchanged from default,
169
164
  # but only if the default endpoint does not have a region prefix.
170
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
171
- @config.endpoint == Client.configure.endpoint &&
165
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
172
166
  !@config.endpoint.split(".").first.include?("-")
173
167
  credentials ||= Credentials.default scope: @config.scope,
174
168
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -202,7 +196,7 @@ module Google
202
196
  # @param options [::Gapic::CallOptions, ::Hash]
203
197
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
204
198
  #
205
- # @overload list_secrets(parent: nil, page_size: nil, page_token: nil)
199
+ # @overload list_secrets(parent: nil, page_size: nil, page_token: nil, filter: nil)
206
200
  # Pass arguments to `list_secrets` via keyword arguments. Note that at
207
201
  # least one keyword argument is required. To specify no parameters, or to keep all
208
202
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -217,6 +211,12 @@ module Google
217
211
  # @param page_token [::String]
218
212
  # Optional. Pagination token, returned earlier via
219
213
  # {::Google::Cloud::SecretManager::V1::ListSecretsResponse#next_page_token ListSecretsResponse.next_page_token}.
214
+ # @param filter [::String]
215
+ # Optional. Filter string, adhering to the rules in
216
+ # [List-operation
217
+ # filtering](https://cloud.google.com/secret-manager/docs/filtering). List
218
+ # only secrets matching the filter. If filter is empty, all secrets are
219
+ # listed.
220
220
  #
221
221
  # @yield [response, operation] Access the result along with the RPC operation
222
222
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecretManager::V1::Secret>]
@@ -226,6 +226,27 @@ module Google
226
226
  #
227
227
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
228
228
  #
229
+ # @example Basic example
230
+ # require "google/cloud/secret_manager/v1"
231
+ #
232
+ # # Create a client object. The client can be reused for multiple calls.
233
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
234
+ #
235
+ # # Create a request. To set request fields, pass in keyword arguments.
236
+ # request = Google::Cloud::SecretManager::V1::ListSecretsRequest.new
237
+ #
238
+ # # Call the list_secrets method.
239
+ # result = client.list_secrets request
240
+ #
241
+ # # The returned object is of type Gapic::PagedEnumerable. You can
242
+ # # iterate over all elements by calling #each, and the enumerable
243
+ # # will lazily make API calls to fetch subsequent pages. Other
244
+ # # methods are also available for managing paging directly.
245
+ # result.each do |response|
246
+ # # Each element is of type ::Google::Cloud::SecretManager::V1::Secret.
247
+ # p response
248
+ # end
249
+ #
229
250
  def list_secrets request, options = nil
230
251
  raise ::ArgumentError, "request must be provided" if request.nil?
231
252
 
@@ -243,16 +264,20 @@ module Google
243
264
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
244
265
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
245
266
 
246
- header_params = {
247
- "parent" => request.parent
248
- }
267
+ header_params = {}
268
+ if request.parent
269
+ header_params["parent"] = request.parent
270
+ end
271
+
249
272
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
250
273
  metadata[:"x-goog-request-params"] ||= request_params_header
251
274
 
252
275
  options.apply_defaults timeout: @config.rpcs.list_secrets.timeout,
253
276
  metadata: metadata,
254
277
  retry_policy: @config.rpcs.list_secrets.retry_policy
255
- options.apply_defaults metadata: @config.metadata,
278
+
279
+ options.apply_defaults timeout: @config.timeout,
280
+ metadata: @config.metadata,
256
281
  retry_policy: @config.retry_policy
257
282
 
258
283
  @secret_manager_service_stub.call_rpc :list_secrets, request, options: options do |response, operation|
@@ -302,6 +327,21 @@ module Google
302
327
  #
303
328
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
304
329
  #
330
+ # @example Basic example
331
+ # require "google/cloud/secret_manager/v1"
332
+ #
333
+ # # Create a client object. The client can be reused for multiple calls.
334
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
335
+ #
336
+ # # Create a request. To set request fields, pass in keyword arguments.
337
+ # request = Google::Cloud::SecretManager::V1::CreateSecretRequest.new
338
+ #
339
+ # # Call the create_secret method.
340
+ # result = client.create_secret request
341
+ #
342
+ # # The returned object is of type Google::Cloud::SecretManager::V1::Secret.
343
+ # p result
344
+ #
305
345
  def create_secret request, options = nil
306
346
  raise ::ArgumentError, "request must be provided" if request.nil?
307
347
 
@@ -319,16 +359,20 @@ module Google
319
359
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
320
360
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
321
361
 
322
- header_params = {
323
- "parent" => request.parent
324
- }
362
+ header_params = {}
363
+ if request.parent
364
+ header_params["parent"] = request.parent
365
+ end
366
+
325
367
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
326
368
  metadata[:"x-goog-request-params"] ||= request_params_header
327
369
 
328
370
  options.apply_defaults timeout: @config.rpcs.create_secret.timeout,
329
371
  metadata: metadata,
330
372
  retry_policy: @config.rpcs.create_secret.retry_policy
331
- options.apply_defaults metadata: @config.metadata,
373
+
374
+ options.apply_defaults timeout: @config.timeout,
375
+ metadata: @config.metadata,
332
376
  retry_policy: @config.retry_policy
333
377
 
334
378
  @secret_manager_service_stub.call_rpc :create_secret, request, options: options do |response, operation|
@@ -372,6 +416,21 @@ module Google
372
416
  #
373
417
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
374
418
  #
419
+ # @example Basic example
420
+ # require "google/cloud/secret_manager/v1"
421
+ #
422
+ # # Create a client object. The client can be reused for multiple calls.
423
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
424
+ #
425
+ # # Create a request. To set request fields, pass in keyword arguments.
426
+ # request = Google::Cloud::SecretManager::V1::AddSecretVersionRequest.new
427
+ #
428
+ # # Call the add_secret_version method.
429
+ # result = client.add_secret_version request
430
+ #
431
+ # # The returned object is of type Google::Cloud::SecretManager::V1::SecretVersion.
432
+ # p result
433
+ #
375
434
  def add_secret_version request, options = nil
376
435
  raise ::ArgumentError, "request must be provided" if request.nil?
377
436
 
@@ -389,16 +448,20 @@ module Google
389
448
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
390
449
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
391
450
 
392
- header_params = {
393
- "parent" => request.parent
394
- }
451
+ header_params = {}
452
+ if request.parent
453
+ header_params["parent"] = request.parent
454
+ end
455
+
395
456
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
396
457
  metadata[:"x-goog-request-params"] ||= request_params_header
397
458
 
398
459
  options.apply_defaults timeout: @config.rpcs.add_secret_version.timeout,
399
460
  metadata: metadata,
400
461
  retry_policy: @config.rpcs.add_secret_version.retry_policy
401
- options.apply_defaults metadata: @config.metadata,
462
+
463
+ options.apply_defaults timeout: @config.timeout,
464
+ metadata: @config.metadata,
402
465
  retry_policy: @config.retry_policy
403
466
 
404
467
  @secret_manager_service_stub.call_rpc :add_secret_version, request, options: options do |response, operation|
@@ -438,6 +501,21 @@ module Google
438
501
  #
439
502
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
440
503
  #
504
+ # @example Basic example
505
+ # require "google/cloud/secret_manager/v1"
506
+ #
507
+ # # Create a client object. The client can be reused for multiple calls.
508
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
509
+ #
510
+ # # Create a request. To set request fields, pass in keyword arguments.
511
+ # request = Google::Cloud::SecretManager::V1::GetSecretRequest.new
512
+ #
513
+ # # Call the get_secret method.
514
+ # result = client.get_secret request
515
+ #
516
+ # # The returned object is of type Google::Cloud::SecretManager::V1::Secret.
517
+ # p result
518
+ #
441
519
  def get_secret request, options = nil
442
520
  raise ::ArgumentError, "request must be provided" if request.nil?
443
521
 
@@ -455,16 +533,20 @@ module Google
455
533
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
456
534
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
457
535
 
458
- header_params = {
459
- "name" => request.name
460
- }
536
+ header_params = {}
537
+ if request.name
538
+ header_params["name"] = request.name
539
+ end
540
+
461
541
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
462
542
  metadata[:"x-goog-request-params"] ||= request_params_header
463
543
 
464
544
  options.apply_defaults timeout: @config.rpcs.get_secret.timeout,
465
545
  metadata: metadata,
466
546
  retry_policy: @config.rpcs.get_secret.retry_policy
467
- options.apply_defaults metadata: @config.metadata,
547
+
548
+ options.apply_defaults timeout: @config.timeout,
549
+ metadata: @config.metadata,
468
550
  retry_policy: @config.retry_policy
469
551
 
470
552
  @secret_manager_service_stub.call_rpc :get_secret, request, options: options do |response, operation|
@@ -506,6 +588,21 @@ module Google
506
588
  #
507
589
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
508
590
  #
591
+ # @example Basic example
592
+ # require "google/cloud/secret_manager/v1"
593
+ #
594
+ # # Create a client object. The client can be reused for multiple calls.
595
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
596
+ #
597
+ # # Create a request. To set request fields, pass in keyword arguments.
598
+ # request = Google::Cloud::SecretManager::V1::UpdateSecretRequest.new
599
+ #
600
+ # # Call the update_secret method.
601
+ # result = client.update_secret request
602
+ #
603
+ # # The returned object is of type Google::Cloud::SecretManager::V1::Secret.
604
+ # p result
605
+ #
509
606
  def update_secret request, options = nil
510
607
  raise ::ArgumentError, "request must be provided" if request.nil?
511
608
 
@@ -523,16 +620,20 @@ module Google
523
620
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
524
621
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
525
622
 
526
- header_params = {
527
- "secret.name" => request.secret.name
528
- }
623
+ header_params = {}
624
+ if request.secret&.name
625
+ header_params["secret.name"] = request.secret.name
626
+ end
627
+
529
628
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
530
629
  metadata[:"x-goog-request-params"] ||= request_params_header
531
630
 
532
631
  options.apply_defaults timeout: @config.rpcs.update_secret.timeout,
533
632
  metadata: metadata,
534
633
  retry_policy: @config.rpcs.update_secret.retry_policy
535
- options.apply_defaults metadata: @config.metadata,
634
+
635
+ options.apply_defaults timeout: @config.timeout,
636
+ metadata: @config.metadata,
536
637
  retry_policy: @config.retry_policy
537
638
 
538
639
  @secret_manager_service_stub.call_rpc :update_secret, request, options: options do |response, operation|
@@ -577,6 +678,21 @@ module Google
577
678
  #
578
679
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
579
680
  #
681
+ # @example Basic example
682
+ # require "google/cloud/secret_manager/v1"
683
+ #
684
+ # # Create a client object. The client can be reused for multiple calls.
685
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
686
+ #
687
+ # # Create a request. To set request fields, pass in keyword arguments.
688
+ # request = Google::Cloud::SecretManager::V1::DeleteSecretRequest.new
689
+ #
690
+ # # Call the delete_secret method.
691
+ # result = client.delete_secret request
692
+ #
693
+ # # The returned object is of type Google::Protobuf::Empty.
694
+ # p result
695
+ #
580
696
  def delete_secret request, options = nil
581
697
  raise ::ArgumentError, "request must be provided" if request.nil?
582
698
 
@@ -594,16 +710,20 @@ module Google
594
710
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
595
711
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
596
712
 
597
- header_params = {
598
- "name" => request.name
599
- }
713
+ header_params = {}
714
+ if request.name
715
+ header_params["name"] = request.name
716
+ end
717
+
600
718
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
601
719
  metadata[:"x-goog-request-params"] ||= request_params_header
602
720
 
603
721
  options.apply_defaults timeout: @config.rpcs.delete_secret.timeout,
604
722
  metadata: metadata,
605
723
  retry_policy: @config.rpcs.delete_secret.retry_policy
606
- options.apply_defaults metadata: @config.metadata,
724
+
725
+ options.apply_defaults timeout: @config.timeout,
726
+ metadata: @config.metadata,
607
727
  retry_policy: @config.retry_policy
608
728
 
609
729
  @secret_manager_service_stub.call_rpc :delete_secret, request, options: options do |response, operation|
@@ -628,7 +748,7 @@ module Google
628
748
  # @param options [::Gapic::CallOptions, ::Hash]
629
749
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
630
750
  #
631
- # @overload list_secret_versions(parent: nil, page_size: nil, page_token: nil)
751
+ # @overload list_secret_versions(parent: nil, page_size: nil, page_token: nil, filter: nil)
632
752
  # Pass arguments to `list_secret_versions` via keyword arguments. Note that at
633
753
  # least one keyword argument is required. To specify no parameters, or to keep all
634
754
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -644,6 +764,12 @@ module Google
644
764
  # @param page_token [::String]
645
765
  # Optional. Pagination token, returned earlier via
646
766
  # ListSecretVersionsResponse.next_page_token][].
767
+ # @param filter [::String]
768
+ # Optional. Filter string, adhering to the rules in
769
+ # [List-operation
770
+ # filtering](https://cloud.google.com/secret-manager/docs/filtering). List
771
+ # only secret versions matching the filter. If filter is empty, all secret
772
+ # versions are listed.
647
773
  #
648
774
  # @yield [response, operation] Access the result along with the RPC operation
649
775
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecretManager::V1::SecretVersion>]
@@ -653,6 +779,27 @@ module Google
653
779
  #
654
780
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
655
781
  #
782
+ # @example Basic example
783
+ # require "google/cloud/secret_manager/v1"
784
+ #
785
+ # # Create a client object. The client can be reused for multiple calls.
786
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
787
+ #
788
+ # # Create a request. To set request fields, pass in keyword arguments.
789
+ # request = Google::Cloud::SecretManager::V1::ListSecretVersionsRequest.new
790
+ #
791
+ # # Call the list_secret_versions method.
792
+ # result = client.list_secret_versions request
793
+ #
794
+ # # The returned object is of type Gapic::PagedEnumerable. You can
795
+ # # iterate over all elements by calling #each, and the enumerable
796
+ # # will lazily make API calls to fetch subsequent pages. Other
797
+ # # methods are also available for managing paging directly.
798
+ # result.each do |response|
799
+ # # Each element is of type ::Google::Cloud::SecretManager::V1::SecretVersion.
800
+ # p response
801
+ # end
802
+ #
656
803
  def list_secret_versions request, options = nil
657
804
  raise ::ArgumentError, "request must be provided" if request.nil?
658
805
 
@@ -670,16 +817,20 @@ module Google
670
817
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
671
818
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
672
819
 
673
- header_params = {
674
- "parent" => request.parent
675
- }
820
+ header_params = {}
821
+ if request.parent
822
+ header_params["parent"] = request.parent
823
+ end
824
+
676
825
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
677
826
  metadata[:"x-goog-request-params"] ||= request_params_header
678
827
 
679
828
  options.apply_defaults timeout: @config.rpcs.list_secret_versions.timeout,
680
829
  metadata: metadata,
681
830
  retry_policy: @config.rpcs.list_secret_versions.retry_policy
682
- options.apply_defaults metadata: @config.metadata,
831
+
832
+ options.apply_defaults timeout: @config.timeout,
833
+ metadata: @config.metadata,
683
834
  retry_policy: @config.retry_policy
684
835
 
685
836
  @secret_manager_service_stub.call_rpc :list_secret_versions, request, options: options do |response, operation|
@@ -727,6 +878,21 @@ module Google
727
878
  #
728
879
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
729
880
  #
881
+ # @example Basic example
882
+ # require "google/cloud/secret_manager/v1"
883
+ #
884
+ # # Create a client object. The client can be reused for multiple calls.
885
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
886
+ #
887
+ # # Create a request. To set request fields, pass in keyword arguments.
888
+ # request = Google::Cloud::SecretManager::V1::GetSecretVersionRequest.new
889
+ #
890
+ # # Call the get_secret_version method.
891
+ # result = client.get_secret_version request
892
+ #
893
+ # # The returned object is of type Google::Cloud::SecretManager::V1::SecretVersion.
894
+ # p result
895
+ #
730
896
  def get_secret_version request, options = nil
731
897
  raise ::ArgumentError, "request must be provided" if request.nil?
732
898
 
@@ -744,16 +910,20 @@ module Google
744
910
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
745
911
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
746
912
 
747
- header_params = {
748
- "name" => request.name
749
- }
913
+ header_params = {}
914
+ if request.name
915
+ header_params["name"] = request.name
916
+ end
917
+
750
918
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
751
919
  metadata[:"x-goog-request-params"] ||= request_params_header
752
920
 
753
921
  options.apply_defaults timeout: @config.rpcs.get_secret_version.timeout,
754
922
  metadata: metadata,
755
923
  retry_policy: @config.rpcs.get_secret_version.retry_policy
756
- options.apply_defaults metadata: @config.metadata,
924
+
925
+ options.apply_defaults timeout: @config.timeout,
926
+ metadata: @config.metadata,
757
927
  retry_policy: @config.retry_policy
758
928
 
759
929
  @secret_manager_service_stub.call_rpc :get_secret_version, request, options: options do |response, operation|
@@ -800,6 +970,21 @@ module Google
800
970
  #
801
971
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
802
972
  #
973
+ # @example Basic example
974
+ # require "google/cloud/secret_manager/v1"
975
+ #
976
+ # # Create a client object. The client can be reused for multiple calls.
977
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
978
+ #
979
+ # # Create a request. To set request fields, pass in keyword arguments.
980
+ # request = Google::Cloud::SecretManager::V1::AccessSecretVersionRequest.new
981
+ #
982
+ # # Call the access_secret_version method.
983
+ # result = client.access_secret_version request
984
+ #
985
+ # # The returned object is of type Google::Cloud::SecretManager::V1::AccessSecretVersionResponse.
986
+ # p result
987
+ #
803
988
  def access_secret_version request, options = nil
804
989
  raise ::ArgumentError, "request must be provided" if request.nil?
805
990
 
@@ -817,16 +1002,20 @@ module Google
817
1002
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
818
1003
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
819
1004
 
820
- header_params = {
821
- "name" => request.name
822
- }
1005
+ header_params = {}
1006
+ if request.name
1007
+ header_params["name"] = request.name
1008
+ end
1009
+
823
1010
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
824
1011
  metadata[:"x-goog-request-params"] ||= request_params_header
825
1012
 
826
1013
  options.apply_defaults timeout: @config.rpcs.access_secret_version.timeout,
827
1014
  metadata: metadata,
828
1015
  retry_policy: @config.rpcs.access_secret_version.retry_policy
829
- options.apply_defaults metadata: @config.metadata,
1016
+
1017
+ options.apply_defaults timeout: @config.timeout,
1018
+ metadata: @config.metadata,
830
1019
  retry_policy: @config.retry_policy
831
1020
 
832
1021
  @secret_manager_service_stub.call_rpc :access_secret_version, request, options: options do |response, operation|
@@ -874,6 +1063,21 @@ module Google
874
1063
  #
875
1064
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
876
1065
  #
1066
+ # @example Basic example
1067
+ # require "google/cloud/secret_manager/v1"
1068
+ #
1069
+ # # Create a client object. The client can be reused for multiple calls.
1070
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
1071
+ #
1072
+ # # Create a request. To set request fields, pass in keyword arguments.
1073
+ # request = Google::Cloud::SecretManager::V1::DisableSecretVersionRequest.new
1074
+ #
1075
+ # # Call the disable_secret_version method.
1076
+ # result = client.disable_secret_version request
1077
+ #
1078
+ # # The returned object is of type Google::Cloud::SecretManager::V1::SecretVersion.
1079
+ # p result
1080
+ #
877
1081
  def disable_secret_version request, options = nil
878
1082
  raise ::ArgumentError, "request must be provided" if request.nil?
879
1083
 
@@ -891,16 +1095,20 @@ module Google
891
1095
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
892
1096
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
893
1097
 
894
- header_params = {
895
- "name" => request.name
896
- }
1098
+ header_params = {}
1099
+ if request.name
1100
+ header_params["name"] = request.name
1101
+ end
1102
+
897
1103
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
898
1104
  metadata[:"x-goog-request-params"] ||= request_params_header
899
1105
 
900
1106
  options.apply_defaults timeout: @config.rpcs.disable_secret_version.timeout,
901
1107
  metadata: metadata,
902
1108
  retry_policy: @config.rpcs.disable_secret_version.retry_policy
903
- options.apply_defaults metadata: @config.metadata,
1109
+
1110
+ options.apply_defaults timeout: @config.timeout,
1111
+ metadata: @config.metadata,
904
1112
  retry_policy: @config.retry_policy
905
1113
 
906
1114
  @secret_manager_service_stub.call_rpc :disable_secret_version, request, options: options do |response, operation|
@@ -948,6 +1156,21 @@ module Google
948
1156
  #
949
1157
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
950
1158
  #
1159
+ # @example Basic example
1160
+ # require "google/cloud/secret_manager/v1"
1161
+ #
1162
+ # # Create a client object. The client can be reused for multiple calls.
1163
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
1164
+ #
1165
+ # # Create a request. To set request fields, pass in keyword arguments.
1166
+ # request = Google::Cloud::SecretManager::V1::EnableSecretVersionRequest.new
1167
+ #
1168
+ # # Call the enable_secret_version method.
1169
+ # result = client.enable_secret_version request
1170
+ #
1171
+ # # The returned object is of type Google::Cloud::SecretManager::V1::SecretVersion.
1172
+ # p result
1173
+ #
951
1174
  def enable_secret_version request, options = nil
952
1175
  raise ::ArgumentError, "request must be provided" if request.nil?
953
1176
 
@@ -965,16 +1188,20 @@ module Google
965
1188
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
966
1189
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
967
1190
 
968
- header_params = {
969
- "name" => request.name
970
- }
1191
+ header_params = {}
1192
+ if request.name
1193
+ header_params["name"] = request.name
1194
+ end
1195
+
971
1196
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
972
1197
  metadata[:"x-goog-request-params"] ||= request_params_header
973
1198
 
974
1199
  options.apply_defaults timeout: @config.rpcs.enable_secret_version.timeout,
975
1200
  metadata: metadata,
976
1201
  retry_policy: @config.rpcs.enable_secret_version.retry_policy
977
- options.apply_defaults metadata: @config.metadata,
1202
+
1203
+ options.apply_defaults timeout: @config.timeout,
1204
+ metadata: @config.metadata,
978
1205
  retry_policy: @config.retry_policy
979
1206
 
980
1207
  @secret_manager_service_stub.call_rpc :enable_secret_version, request, options: options do |response, operation|
@@ -1023,6 +1250,21 @@ module Google
1023
1250
  #
1024
1251
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1025
1252
  #
1253
+ # @example Basic example
1254
+ # require "google/cloud/secret_manager/v1"
1255
+ #
1256
+ # # Create a client object. The client can be reused for multiple calls.
1257
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
1258
+ #
1259
+ # # Create a request. To set request fields, pass in keyword arguments.
1260
+ # request = Google::Cloud::SecretManager::V1::DestroySecretVersionRequest.new
1261
+ #
1262
+ # # Call the destroy_secret_version method.
1263
+ # result = client.destroy_secret_version request
1264
+ #
1265
+ # # The returned object is of type Google::Cloud::SecretManager::V1::SecretVersion.
1266
+ # p result
1267
+ #
1026
1268
  def destroy_secret_version request, options = nil
1027
1269
  raise ::ArgumentError, "request must be provided" if request.nil?
1028
1270
 
@@ -1040,16 +1282,20 @@ module Google
1040
1282
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
1041
1283
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1042
1284
 
1043
- header_params = {
1044
- "name" => request.name
1045
- }
1285
+ header_params = {}
1286
+ if request.name
1287
+ header_params["name"] = request.name
1288
+ end
1289
+
1046
1290
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1047
1291
  metadata[:"x-goog-request-params"] ||= request_params_header
1048
1292
 
1049
1293
  options.apply_defaults timeout: @config.rpcs.destroy_secret_version.timeout,
1050
1294
  metadata: metadata,
1051
1295
  retry_policy: @config.rpcs.destroy_secret_version.retry_policy
1052
- options.apply_defaults metadata: @config.metadata,
1296
+
1297
+ options.apply_defaults timeout: @config.timeout,
1298
+ metadata: @config.metadata,
1053
1299
  retry_policy: @config.retry_policy
1054
1300
 
1055
1301
  @secret_manager_service_stub.call_rpc :destroy_secret_version, request, options: options do |response, operation|
@@ -1099,6 +1345,21 @@ module Google
1099
1345
  #
1100
1346
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1101
1347
  #
1348
+ # @example Basic example
1349
+ # require "google/cloud/secret_manager/v1"
1350
+ #
1351
+ # # Create a client object. The client can be reused for multiple calls.
1352
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
1353
+ #
1354
+ # # Create a request. To set request fields, pass in keyword arguments.
1355
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
1356
+ #
1357
+ # # Call the set_iam_policy method.
1358
+ # result = client.set_iam_policy request
1359
+ #
1360
+ # # The returned object is of type Google::Iam::V1::Policy.
1361
+ # p result
1362
+ #
1102
1363
  def set_iam_policy request, options = nil
1103
1364
  raise ::ArgumentError, "request must be provided" if request.nil?
1104
1365
 
@@ -1116,16 +1377,20 @@ module Google
1116
1377
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
1117
1378
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1118
1379
 
1119
- header_params = {
1120
- "resource" => request.resource
1121
- }
1380
+ header_params = {}
1381
+ if request.resource
1382
+ header_params["resource"] = request.resource
1383
+ end
1384
+
1122
1385
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1123
1386
  metadata[:"x-goog-request-params"] ||= request_params_header
1124
1387
 
1125
1388
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
1126
1389
  metadata: metadata,
1127
1390
  retry_policy: @config.rpcs.set_iam_policy.retry_policy
1128
- options.apply_defaults metadata: @config.metadata,
1391
+
1392
+ options.apply_defaults timeout: @config.timeout,
1393
+ metadata: @config.metadata,
1129
1394
  retry_policy: @config.retry_policy
1130
1395
 
1131
1396
  @secret_manager_service_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
@@ -1170,6 +1435,21 @@ module Google
1170
1435
  #
1171
1436
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1172
1437
  #
1438
+ # @example Basic example
1439
+ # require "google/cloud/secret_manager/v1"
1440
+ #
1441
+ # # Create a client object. The client can be reused for multiple calls.
1442
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
1443
+ #
1444
+ # # Create a request. To set request fields, pass in keyword arguments.
1445
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
1446
+ #
1447
+ # # Call the get_iam_policy method.
1448
+ # result = client.get_iam_policy request
1449
+ #
1450
+ # # The returned object is of type Google::Iam::V1::Policy.
1451
+ # p result
1452
+ #
1173
1453
  def get_iam_policy request, options = nil
1174
1454
  raise ::ArgumentError, "request must be provided" if request.nil?
1175
1455
 
@@ -1187,16 +1467,20 @@ module Google
1187
1467
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
1188
1468
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1189
1469
 
1190
- header_params = {
1191
- "resource" => request.resource
1192
- }
1470
+ header_params = {}
1471
+ if request.resource
1472
+ header_params["resource"] = request.resource
1473
+ end
1474
+
1193
1475
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1194
1476
  metadata[:"x-goog-request-params"] ||= request_params_header
1195
1477
 
1196
1478
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
1197
1479
  metadata: metadata,
1198
1480
  retry_policy: @config.rpcs.get_iam_policy.retry_policy
1199
- options.apply_defaults metadata: @config.metadata,
1481
+
1482
+ options.apply_defaults timeout: @config.timeout,
1483
+ metadata: @config.metadata,
1200
1484
  retry_policy: @config.retry_policy
1201
1485
 
1202
1486
  @secret_manager_service_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
@@ -1248,6 +1532,21 @@ module Google
1248
1532
  #
1249
1533
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1250
1534
  #
1535
+ # @example Basic example
1536
+ # require "google/cloud/secret_manager/v1"
1537
+ #
1538
+ # # Create a client object. The client can be reused for multiple calls.
1539
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
1540
+ #
1541
+ # # Create a request. To set request fields, pass in keyword arguments.
1542
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
1543
+ #
1544
+ # # Call the test_iam_permissions method.
1545
+ # result = client.test_iam_permissions request
1546
+ #
1547
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
1548
+ # p result
1549
+ #
1251
1550
  def test_iam_permissions request, options = nil
1252
1551
  raise ::ArgumentError, "request must be provided" if request.nil?
1253
1552
 
@@ -1265,16 +1564,20 @@ module Google
1265
1564
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
1266
1565
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1267
1566
 
1268
- header_params = {
1269
- "resource" => request.resource
1270
- }
1567
+ header_params = {}
1568
+ if request.resource
1569
+ header_params["resource"] = request.resource
1570
+ end
1571
+
1271
1572
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1272
1573
  metadata[:"x-goog-request-params"] ||= request_params_header
1273
1574
 
1274
1575
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
1275
1576
  metadata: metadata,
1276
1577
  retry_policy: @config.rpcs.test_iam_permissions.retry_policy
1277
- options.apply_defaults metadata: @config.metadata,
1578
+
1579
+ options.apply_defaults timeout: @config.timeout,
1580
+ metadata: @config.metadata,
1278
1581
  retry_policy: @config.retry_policy
1279
1582
 
1280
1583
  @secret_manager_service_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
@@ -1298,22 +1601,21 @@ module Google
1298
1601
  # Configuration can be applied globally to all clients, or to a single client
1299
1602
  # on construction.
1300
1603
  #
1301
- # # Examples
1302
- #
1303
- # To modify the global config, setting the timeout for list_secrets
1304
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1305
- #
1306
- # ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.configure do |config|
1307
- # config.timeout = 10.0
1308
- # config.rpcs.list_secrets.timeout = 20.0
1309
- # end
1310
- #
1311
- # To apply the above configuration only to a new client:
1312
- #
1313
- # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new do |config|
1314
- # config.timeout = 10.0
1315
- # config.rpcs.list_secrets.timeout = 20.0
1316
- # end
1604
+ # @example
1605
+ #
1606
+ # # Modify the global config, setting the timeout for
1607
+ # # list_secrets to 20 seconds,
1608
+ # # and all remaining timeouts to 10 seconds.
1609
+ # ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.configure do |config|
1610
+ # config.timeout = 10.0
1611
+ # config.rpcs.list_secrets.timeout = 20.0
1612
+ # end
1613
+ #
1614
+ # # Apply the above configuration only to a new client.
1615
+ # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new do |config|
1616
+ # config.timeout = 10.0
1617
+ # config.rpcs.list_secrets.timeout = 20.0
1618
+ # end
1317
1619
  #
1318
1620
  # @!attribute [rw] endpoint
1319
1621
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1
24
- VERSION = "0.10.2"
24
+ VERSION = "0.11.3"
25
25
  end
26
26
  end
27
27
  end
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/secretmanager/v1/resources.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/protobuf/duration_pb'
9
7
  require 'google/protobuf/timestamp_pb'
10
8
  require 'google/api/annotations_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/secretmanager/v1/resources.proto", :syntax => :proto3) do
13
13
  add_message "google.cloud.secretmanager.v1.Secret" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/secretmanager/v1/service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -12,12 +10,15 @@ require 'google/iam/v1/iam_policy_pb'
12
10
  require 'google/iam/v1/policy_pb'
13
11
  require 'google/protobuf/empty_pb'
14
12
  require 'google/protobuf/field_mask_pb'
13
+ require 'google/protobuf'
14
+
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/cloud/secretmanager/v1/service.proto", :syntax => :proto3) do
17
17
  add_message "google.cloud.secretmanager.v1.ListSecretsRequest" do
18
18
  optional :parent, :string, 1
19
19
  optional :page_size, :int32, 2
20
20
  optional :page_token, :string, 3
21
+ optional :filter, :string, 4
21
22
  end
22
23
  add_message "google.cloud.secretmanager.v1.ListSecretsResponse" do
23
24
  repeated :secrets, :message, 1, "google.cloud.secretmanager.v1.Secret"
@@ -40,6 +41,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
40
41
  optional :parent, :string, 1
41
42
  optional :page_size, :int32, 2
42
43
  optional :page_token, :string, 3
44
+ optional :filter, :string, 4
43
45
  end
44
46
  add_message "google.cloud.secretmanager.v1.ListSecretVersionsResponse" do
45
47
  repeated :versions, :message, 1, "google.cloud.secretmanager.v1.SecretVersion"
@@ -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
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -35,6 +35,13 @@ module Google
35
35
  # @return [::String]
36
36
  # Optional. Pagination token, returned earlier via
37
37
  # {::Google::Cloud::SecretManager::V1::ListSecretsResponse#next_page_token ListSecretsResponse.next_page_token}.
38
+ # @!attribute [rw] filter
39
+ # @return [::String]
40
+ # Optional. Filter string, adhering to the rules in
41
+ # [List-operation
42
+ # filtering](https://cloud.google.com/secret-manager/docs/filtering). List
43
+ # only secrets matching the filter. If filter is empty, all secrets are
44
+ # listed.
38
45
  class ListSecretsRequest
39
46
  include ::Google::Protobuf::MessageExts
40
47
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -114,6 +121,13 @@ module Google
114
121
  # @return [::String]
115
122
  # Optional. Pagination token, returned earlier via
116
123
  # ListSecretVersionsResponse.next_page_token][].
124
+ # @!attribute [rw] filter
125
+ # @return [::String]
126
+ # Optional. Filter string, adhering to the rules in
127
+ # [List-operation
128
+ # filtering](https://cloud.google.com/secret-manager/docs/filtering). List
129
+ # only secret versions matching the filter. If filter is empty, all secret
130
+ # versions are listed.
117
131
  class ListSecretVersionsRequest
118
132
  include ::Google::Protobuf::MessageExts
119
133
  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.10.2
4
+ version: 0.11.3
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-07-12 00:00:00.000000000 Z
11
+ date: 2022-01-11 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.5'
19
+ version: '0.7'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.2.17
236
+ rubygems_version: 3.3.4
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: API Client library for the Secret Manager V1 API