google-cloud-secret_manager-v1 0.11.1 → 0.11.2

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: 65ef5dc2c962faeea9eb0ac377b65a01df19a17c2b83d4774da90aedd61421eb
4
- data.tar.gz: 887d171eb7f4f35245332df81c5ea60a84d20c339b8e9726b791d14ed331f778
3
+ metadata.gz: 2685e82086688b8d65db8c15d6e7d12b9dc32c6f8dbaa083a6f67bf12ca8fe7c
4
+ data.tar.gz: 887672bed1f240653d2aa3058955dd1192b9640501fe4444c822e48da12a9503
5
5
  SHA512:
6
- metadata.gz: 00fbb7e81f11f579e0f0c405146bc9050cd8f3a5bb573538bc163953cd3fdeb80ad7bce9b64b670c0b260a12c34e133e008c2c4499eb53b9056395388f7fdd1a
7
- data.tar.gz: 1a8a1bb780e5fba6502d0896857d449cd0ebd342b8f2855188820e7ff27f6ade73604050fbb8c9548804846e64e486df2e35056d896ec6f304848ea7f222654d
6
+ metadata.gz: dc832bbe3d3527d229d6f2701f1c6a84b82df6653fcf7b4496b217af2374449403dbb2b3e47edc339e58e4788be7bd8285cc8474c184c4fa0db07661771a077d
7
+ data.tar.gz: efc4f8ff06bcdcb84304059f405c3be42406bc8e552e17ca879fa5f913a3f3a2a2678bba3f61bf33ef07e93013bcdcbea3406e12467c87a6ca77efc88e7d357d
@@ -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,9 +264,11 @@ 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
 
@@ -304,6 +327,21 @@ module Google
304
327
  #
305
328
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
306
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
+ #
307
345
  def create_secret request, options = nil
308
346
  raise ::ArgumentError, "request must be provided" if request.nil?
309
347
 
@@ -321,9 +359,11 @@ module Google
321
359
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
322
360
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
323
361
 
324
- header_params = {
325
- "parent" => request.parent
326
- }
362
+ header_params = {}
363
+ if request.parent
364
+ header_params["parent"] = request.parent
365
+ end
366
+
327
367
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
328
368
  metadata[:"x-goog-request-params"] ||= request_params_header
329
369
 
@@ -376,6 +416,21 @@ module Google
376
416
  #
377
417
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
378
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
+ #
379
434
  def add_secret_version request, options = nil
380
435
  raise ::ArgumentError, "request must be provided" if request.nil?
381
436
 
@@ -393,9 +448,11 @@ module Google
393
448
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
394
449
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
395
450
 
396
- header_params = {
397
- "parent" => request.parent
398
- }
451
+ header_params = {}
452
+ if request.parent
453
+ header_params["parent"] = request.parent
454
+ end
455
+
399
456
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
400
457
  metadata[:"x-goog-request-params"] ||= request_params_header
401
458
 
@@ -444,6 +501,21 @@ module Google
444
501
  #
445
502
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
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
+ #
447
519
  def get_secret request, options = nil
448
520
  raise ::ArgumentError, "request must be provided" if request.nil?
449
521
 
@@ -461,9 +533,11 @@ module Google
461
533
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
462
534
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
463
535
 
464
- header_params = {
465
- "name" => request.name
466
- }
536
+ header_params = {}
537
+ if request.name
538
+ header_params["name"] = request.name
539
+ end
540
+
467
541
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
468
542
  metadata[:"x-goog-request-params"] ||= request_params_header
469
543
 
@@ -514,6 +588,21 @@ module Google
514
588
  #
515
589
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
516
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
+ #
517
606
  def update_secret request, options = nil
518
607
  raise ::ArgumentError, "request must be provided" if request.nil?
519
608
 
@@ -531,9 +620,11 @@ module Google
531
620
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
532
621
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
533
622
 
534
- header_params = {
535
- "secret.name" => request.secret.name
536
- }
623
+ header_params = {}
624
+ if request.secret&.name
625
+ header_params["secret.name"] = request.secret.name
626
+ end
627
+
537
628
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
538
629
  metadata[:"x-goog-request-params"] ||= request_params_header
539
630
 
@@ -587,6 +678,21 @@ module Google
587
678
  #
588
679
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
589
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
+ #
590
696
  def delete_secret request, options = nil
591
697
  raise ::ArgumentError, "request must be provided" if request.nil?
592
698
 
@@ -604,9 +710,11 @@ module Google
604
710
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
605
711
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
606
712
 
607
- header_params = {
608
- "name" => request.name
609
- }
713
+ header_params = {}
714
+ if request.name
715
+ header_params["name"] = request.name
716
+ end
717
+
610
718
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
611
719
  metadata[:"x-goog-request-params"] ||= request_params_header
612
720
 
@@ -671,6 +779,27 @@ module Google
671
779
  #
672
780
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
673
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
+ #
674
803
  def list_secret_versions request, options = nil
675
804
  raise ::ArgumentError, "request must be provided" if request.nil?
676
805
 
@@ -688,9 +817,11 @@ module Google
688
817
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
689
818
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
690
819
 
691
- header_params = {
692
- "parent" => request.parent
693
- }
820
+ header_params = {}
821
+ if request.parent
822
+ header_params["parent"] = request.parent
823
+ end
824
+
694
825
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
695
826
  metadata[:"x-goog-request-params"] ||= request_params_header
696
827
 
@@ -747,6 +878,21 @@ module Google
747
878
  #
748
879
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
749
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
+ #
750
896
  def get_secret_version request, options = nil
751
897
  raise ::ArgumentError, "request must be provided" if request.nil?
752
898
 
@@ -764,9 +910,11 @@ module Google
764
910
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
765
911
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
766
912
 
767
- header_params = {
768
- "name" => request.name
769
- }
913
+ header_params = {}
914
+ if request.name
915
+ header_params["name"] = request.name
916
+ end
917
+
770
918
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
771
919
  metadata[:"x-goog-request-params"] ||= request_params_header
772
920
 
@@ -822,6 +970,21 @@ module Google
822
970
  #
823
971
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
824
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
+ #
825
988
  def access_secret_version request, options = nil
826
989
  raise ::ArgumentError, "request must be provided" if request.nil?
827
990
 
@@ -839,9 +1002,11 @@ module Google
839
1002
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
840
1003
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
841
1004
 
842
- header_params = {
843
- "name" => request.name
844
- }
1005
+ header_params = {}
1006
+ if request.name
1007
+ header_params["name"] = request.name
1008
+ end
1009
+
845
1010
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
846
1011
  metadata[:"x-goog-request-params"] ||= request_params_header
847
1012
 
@@ -898,6 +1063,21 @@ module Google
898
1063
  #
899
1064
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
900
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
+ #
901
1081
  def disable_secret_version request, options = nil
902
1082
  raise ::ArgumentError, "request must be provided" if request.nil?
903
1083
 
@@ -915,9 +1095,11 @@ module Google
915
1095
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
916
1096
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
917
1097
 
918
- header_params = {
919
- "name" => request.name
920
- }
1098
+ header_params = {}
1099
+ if request.name
1100
+ header_params["name"] = request.name
1101
+ end
1102
+
921
1103
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
922
1104
  metadata[:"x-goog-request-params"] ||= request_params_header
923
1105
 
@@ -974,6 +1156,21 @@ module Google
974
1156
  #
975
1157
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
976
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
+ #
977
1174
  def enable_secret_version request, options = nil
978
1175
  raise ::ArgumentError, "request must be provided" if request.nil?
979
1176
 
@@ -991,9 +1188,11 @@ module Google
991
1188
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
992
1189
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
993
1190
 
994
- header_params = {
995
- "name" => request.name
996
- }
1191
+ header_params = {}
1192
+ if request.name
1193
+ header_params["name"] = request.name
1194
+ end
1195
+
997
1196
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
998
1197
  metadata[:"x-goog-request-params"] ||= request_params_header
999
1198
 
@@ -1051,6 +1250,21 @@ module Google
1051
1250
  #
1052
1251
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1053
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
+ #
1054
1268
  def destroy_secret_version request, options = nil
1055
1269
  raise ::ArgumentError, "request must be provided" if request.nil?
1056
1270
 
@@ -1068,9 +1282,11 @@ module Google
1068
1282
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
1069
1283
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1070
1284
 
1071
- header_params = {
1072
- "name" => request.name
1073
- }
1285
+ header_params = {}
1286
+ if request.name
1287
+ header_params["name"] = request.name
1288
+ end
1289
+
1074
1290
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1075
1291
  metadata[:"x-goog-request-params"] ||= request_params_header
1076
1292
 
@@ -1129,6 +1345,21 @@ module Google
1129
1345
  #
1130
1346
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1131
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
+ #
1132
1363
  def set_iam_policy request, options = nil
1133
1364
  raise ::ArgumentError, "request must be provided" if request.nil?
1134
1365
 
@@ -1146,9 +1377,11 @@ module Google
1146
1377
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
1147
1378
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1148
1379
 
1149
- header_params = {
1150
- "resource" => request.resource
1151
- }
1380
+ header_params = {}
1381
+ if request.resource
1382
+ header_params["resource"] = request.resource
1383
+ end
1384
+
1152
1385
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1153
1386
  metadata[:"x-goog-request-params"] ||= request_params_header
1154
1387
 
@@ -1202,6 +1435,21 @@ module Google
1202
1435
  #
1203
1436
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1204
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
+ #
1205
1453
  def get_iam_policy request, options = nil
1206
1454
  raise ::ArgumentError, "request must be provided" if request.nil?
1207
1455
 
@@ -1219,9 +1467,11 @@ module Google
1219
1467
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
1220
1468
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1221
1469
 
1222
- header_params = {
1223
- "resource" => request.resource
1224
- }
1470
+ header_params = {}
1471
+ if request.resource
1472
+ header_params["resource"] = request.resource
1473
+ end
1474
+
1225
1475
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1226
1476
  metadata[:"x-goog-request-params"] ||= request_params_header
1227
1477
 
@@ -1282,6 +1532,21 @@ module Google
1282
1532
  #
1283
1533
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1284
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
+ #
1285
1550
  def test_iam_permissions request, options = nil
1286
1551
  raise ::ArgumentError, "request must be provided" if request.nil?
1287
1552
 
@@ -1299,9 +1564,11 @@ module Google
1299
1564
  gapic_version: ::Google::Cloud::SecretManager::V1::VERSION
1300
1565
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1301
1566
 
1302
- header_params = {
1303
- "resource" => request.resource
1304
- }
1567
+ header_params = {}
1568
+ if request.resource
1569
+ header_params["resource"] = request.resource
1570
+ end
1571
+
1305
1572
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1306
1573
  metadata[:"x-goog-request-params"] ||= request_params_header
1307
1574
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1
24
- VERSION = "0.11.1"
24
+ VERSION = "0.11.2"
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,6 +10,8 @@ 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
@@ -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
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.11.1
4
+ version: 0.11.2
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-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common