google-cloud-secret_manager-v1beta1 0.8.3 → 0.8.4

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: 83b05eba8c2d655afe44472ddf44e3ea9fffca5b6865e2faf96fed47ca393b61
4
- data.tar.gz: 73df41c92d9a05672e24a355abd058fcdde110892e8488cb51a630f4cb452384
3
+ metadata.gz: 5fccd0b0229c4202e236ff59e731bc833e05ca1c6177d05515295cd21e7e4ba0
4
+ data.tar.gz: 31dbaa200f03f18c0f79896ba5c880265e381440873ca3e5ccac849449b32db6
5
5
  SHA512:
6
- metadata.gz: 62baaf204c712f0a249fa24f041c64dc21aa10add8dedca9fa4d1ad95a8b01fbd9834ac00a138697c84310946899f85aa10190230836ef59f697e41ec8d1f83c
7
- data.tar.gz: 305b41311fa228d555529e3714ad1a2c6cb59bd98693c5e9180396223a91f0d2e74068d0b35aadae6a3aa4b417212f9becad8d5cb0eb70373a2f288ab2ce57ab
6
+ metadata.gz: f5be5cdc2829c9465306160ce56721057268edca1bad00d10bacdd9495e56cec25ddd83e72165320f14464c1b68023ba681632de160d8f9b099e765263cfde8b
7
+ data.tar.gz: 797fbcbf7140e87ab62a548906176cdb2cb87e202b6a19e963138454f756a424cb9434dee10d8f1fde8277ba6b88a7c9b6bdaa67ccf2cfc7a58ee12b8bd15be7
@@ -220,6 +220,27 @@ module Google
220
220
  #
221
221
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
222
222
  #
223
+ # @example Basic example
224
+ # require "google/cloud/secret_manager/v1beta1"
225
+ #
226
+ # # Create a client object. The client can be reused for multiple calls.
227
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
228
+ #
229
+ # # Create a request. To set request fields, pass in keyword arguments.
230
+ # request = Google::Cloud::SecretManager::V1beta1::ListSecretsRequest.new
231
+ #
232
+ # # Call the list_secrets method.
233
+ # result = client.list_secrets request
234
+ #
235
+ # # The returned object is of type Gapic::PagedEnumerable. You can
236
+ # # iterate over all elements by calling #each, and the enumerable
237
+ # # will lazily make API calls to fetch subsequent pages. Other
238
+ # # methods are also available for managing paging directly.
239
+ # result.each do |response|
240
+ # # Each element is of type ::Google::Cloud::SecretManager::V1beta1::Secret.
241
+ # p response
242
+ # end
243
+ #
223
244
  def list_secrets request, options = nil
224
245
  raise ::ArgumentError, "request must be provided" if request.nil?
225
246
 
@@ -237,9 +258,11 @@ module Google
237
258
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
238
259
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
239
260
 
240
- header_params = {
241
- "parent" => request.parent
242
- }
261
+ header_params = {}
262
+ if request.parent
263
+ header_params["parent"] = request.parent
264
+ end
265
+
243
266
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
244
267
  metadata[:"x-goog-request-params"] ||= request_params_header
245
268
 
@@ -298,6 +321,21 @@ module Google
298
321
  #
299
322
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
300
323
  #
324
+ # @example Basic example
325
+ # require "google/cloud/secret_manager/v1beta1"
326
+ #
327
+ # # Create a client object. The client can be reused for multiple calls.
328
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
329
+ #
330
+ # # Create a request. To set request fields, pass in keyword arguments.
331
+ # request = Google::Cloud::SecretManager::V1beta1::CreateSecretRequest.new
332
+ #
333
+ # # Call the create_secret method.
334
+ # result = client.create_secret request
335
+ #
336
+ # # The returned object is of type Google::Cloud::SecretManager::V1beta1::Secret.
337
+ # p result
338
+ #
301
339
  def create_secret request, options = nil
302
340
  raise ::ArgumentError, "request must be provided" if request.nil?
303
341
 
@@ -315,9 +353,11 @@ module Google
315
353
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
316
354
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
317
355
 
318
- header_params = {
319
- "parent" => request.parent
320
- }
356
+ header_params = {}
357
+ if request.parent
358
+ header_params["parent"] = request.parent
359
+ end
360
+
321
361
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
322
362
  metadata[:"x-goog-request-params"] ||= request_params_header
323
363
 
@@ -370,6 +410,21 @@ module Google
370
410
  #
371
411
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
372
412
  #
413
+ # @example Basic example
414
+ # require "google/cloud/secret_manager/v1beta1"
415
+ #
416
+ # # Create a client object. The client can be reused for multiple calls.
417
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
418
+ #
419
+ # # Create a request. To set request fields, pass in keyword arguments.
420
+ # request = Google::Cloud::SecretManager::V1beta1::AddSecretVersionRequest.new
421
+ #
422
+ # # Call the add_secret_version method.
423
+ # result = client.add_secret_version request
424
+ #
425
+ # # The returned object is of type Google::Cloud::SecretManager::V1beta1::SecretVersion.
426
+ # p result
427
+ #
373
428
  def add_secret_version request, options = nil
374
429
  raise ::ArgumentError, "request must be provided" if request.nil?
375
430
 
@@ -387,9 +442,11 @@ module Google
387
442
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
388
443
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
389
444
 
390
- header_params = {
391
- "parent" => request.parent
392
- }
445
+ header_params = {}
446
+ if request.parent
447
+ header_params["parent"] = request.parent
448
+ end
449
+
393
450
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
394
451
  metadata[:"x-goog-request-params"] ||= request_params_header
395
452
 
@@ -438,6 +495,21 @@ module Google
438
495
  #
439
496
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
440
497
  #
498
+ # @example Basic example
499
+ # require "google/cloud/secret_manager/v1beta1"
500
+ #
501
+ # # Create a client object. The client can be reused for multiple calls.
502
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
503
+ #
504
+ # # Create a request. To set request fields, pass in keyword arguments.
505
+ # request = Google::Cloud::SecretManager::V1beta1::GetSecretRequest.new
506
+ #
507
+ # # Call the get_secret method.
508
+ # result = client.get_secret request
509
+ #
510
+ # # The returned object is of type Google::Cloud::SecretManager::V1beta1::Secret.
511
+ # p result
512
+ #
441
513
  def get_secret request, options = nil
442
514
  raise ::ArgumentError, "request must be provided" if request.nil?
443
515
 
@@ -455,9 +527,11 @@ module Google
455
527
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
456
528
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
457
529
 
458
- header_params = {
459
- "name" => request.name
460
- }
530
+ header_params = {}
531
+ if request.name
532
+ header_params["name"] = request.name
533
+ end
534
+
461
535
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
462
536
  metadata[:"x-goog-request-params"] ||= request_params_header
463
537
 
@@ -508,6 +582,21 @@ module Google
508
582
  #
509
583
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
510
584
  #
585
+ # @example Basic example
586
+ # require "google/cloud/secret_manager/v1beta1"
587
+ #
588
+ # # Create a client object. The client can be reused for multiple calls.
589
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
590
+ #
591
+ # # Create a request. To set request fields, pass in keyword arguments.
592
+ # request = Google::Cloud::SecretManager::V1beta1::UpdateSecretRequest.new
593
+ #
594
+ # # Call the update_secret method.
595
+ # result = client.update_secret request
596
+ #
597
+ # # The returned object is of type Google::Cloud::SecretManager::V1beta1::Secret.
598
+ # p result
599
+ #
511
600
  def update_secret request, options = nil
512
601
  raise ::ArgumentError, "request must be provided" if request.nil?
513
602
 
@@ -525,9 +614,11 @@ module Google
525
614
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
526
615
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
527
616
 
528
- header_params = {
529
- "secret.name" => request.secret.name
530
- }
617
+ header_params = {}
618
+ if request.secret&.name
619
+ header_params["secret.name"] = request.secret.name
620
+ end
621
+
531
622
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
532
623
  metadata[:"x-goog-request-params"] ||= request_params_header
533
624
 
@@ -577,6 +668,21 @@ module Google
577
668
  #
578
669
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
579
670
  #
671
+ # @example Basic example
672
+ # require "google/cloud/secret_manager/v1beta1"
673
+ #
674
+ # # Create a client object. The client can be reused for multiple calls.
675
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
676
+ #
677
+ # # Create a request. To set request fields, pass in keyword arguments.
678
+ # request = Google::Cloud::SecretManager::V1beta1::DeleteSecretRequest.new
679
+ #
680
+ # # Call the delete_secret method.
681
+ # result = client.delete_secret request
682
+ #
683
+ # # The returned object is of type Google::Protobuf::Empty.
684
+ # p result
685
+ #
580
686
  def delete_secret request, options = nil
581
687
  raise ::ArgumentError, "request must be provided" if request.nil?
582
688
 
@@ -594,9 +700,11 @@ module Google
594
700
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
595
701
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
596
702
 
597
- header_params = {
598
- "name" => request.name
599
- }
703
+ header_params = {}
704
+ if request.name
705
+ header_params["name"] = request.name
706
+ end
707
+
600
708
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
601
709
  metadata[:"x-goog-request-params"] ||= request_params_header
602
710
 
@@ -655,6 +763,27 @@ module Google
655
763
  #
656
764
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
657
765
  #
766
+ # @example Basic example
767
+ # require "google/cloud/secret_manager/v1beta1"
768
+ #
769
+ # # Create a client object. The client can be reused for multiple calls.
770
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
771
+ #
772
+ # # Create a request. To set request fields, pass in keyword arguments.
773
+ # request = Google::Cloud::SecretManager::V1beta1::ListSecretVersionsRequest.new
774
+ #
775
+ # # Call the list_secret_versions method.
776
+ # result = client.list_secret_versions request
777
+ #
778
+ # # The returned object is of type Gapic::PagedEnumerable. You can
779
+ # # iterate over all elements by calling #each, and the enumerable
780
+ # # will lazily make API calls to fetch subsequent pages. Other
781
+ # # methods are also available for managing paging directly.
782
+ # result.each do |response|
783
+ # # Each element is of type ::Google::Cloud::SecretManager::V1beta1::SecretVersion.
784
+ # p response
785
+ # end
786
+ #
658
787
  def list_secret_versions request, options = nil
659
788
  raise ::ArgumentError, "request must be provided" if request.nil?
660
789
 
@@ -672,9 +801,11 @@ module Google
672
801
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
673
802
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
674
803
 
675
- header_params = {
676
- "parent" => request.parent
677
- }
804
+ header_params = {}
805
+ if request.parent
806
+ header_params["parent"] = request.parent
807
+ end
808
+
678
809
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
679
810
  metadata[:"x-goog-request-params"] ||= request_params_header
680
811
 
@@ -730,6 +861,21 @@ module Google
730
861
  #
731
862
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
732
863
  #
864
+ # @example Basic example
865
+ # require "google/cloud/secret_manager/v1beta1"
866
+ #
867
+ # # Create a client object. The client can be reused for multiple calls.
868
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
869
+ #
870
+ # # Create a request. To set request fields, pass in keyword arguments.
871
+ # request = Google::Cloud::SecretManager::V1beta1::GetSecretVersionRequest.new
872
+ #
873
+ # # Call the get_secret_version method.
874
+ # result = client.get_secret_version request
875
+ #
876
+ # # The returned object is of type Google::Cloud::SecretManager::V1beta1::SecretVersion.
877
+ # p result
878
+ #
733
879
  def get_secret_version request, options = nil
734
880
  raise ::ArgumentError, "request must be provided" if request.nil?
735
881
 
@@ -747,9 +893,11 @@ module Google
747
893
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
748
894
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
749
895
 
750
- header_params = {
751
- "name" => request.name
752
- }
896
+ header_params = {}
897
+ if request.name
898
+ header_params["name"] = request.name
899
+ end
900
+
753
901
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
754
902
  metadata[:"x-goog-request-params"] ||= request_params_header
755
903
 
@@ -802,6 +950,21 @@ module Google
802
950
  #
803
951
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
804
952
  #
953
+ # @example Basic example
954
+ # require "google/cloud/secret_manager/v1beta1"
955
+ #
956
+ # # Create a client object. The client can be reused for multiple calls.
957
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
958
+ #
959
+ # # Create a request. To set request fields, pass in keyword arguments.
960
+ # request = Google::Cloud::SecretManager::V1beta1::AccessSecretVersionRequest.new
961
+ #
962
+ # # Call the access_secret_version method.
963
+ # result = client.access_secret_version request
964
+ #
965
+ # # The returned object is of type Google::Cloud::SecretManager::V1beta1::AccessSecretVersionResponse.
966
+ # p result
967
+ #
805
968
  def access_secret_version request, options = nil
806
969
  raise ::ArgumentError, "request must be provided" if request.nil?
807
970
 
@@ -819,9 +982,11 @@ module Google
819
982
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
820
983
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
821
984
 
822
- header_params = {
823
- "name" => request.name
824
- }
985
+ header_params = {}
986
+ if request.name
987
+ header_params["name"] = request.name
988
+ end
989
+
825
990
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
826
991
  metadata[:"x-goog-request-params"] ||= request_params_header
827
992
 
@@ -874,6 +1039,21 @@ module Google
874
1039
  #
875
1040
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
876
1041
  #
1042
+ # @example Basic example
1043
+ # require "google/cloud/secret_manager/v1beta1"
1044
+ #
1045
+ # # Create a client object. The client can be reused for multiple calls.
1046
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
1047
+ #
1048
+ # # Create a request. To set request fields, pass in keyword arguments.
1049
+ # request = Google::Cloud::SecretManager::V1beta1::DisableSecretVersionRequest.new
1050
+ #
1051
+ # # Call the disable_secret_version method.
1052
+ # result = client.disable_secret_version request
1053
+ #
1054
+ # # The returned object is of type Google::Cloud::SecretManager::V1beta1::SecretVersion.
1055
+ # p result
1056
+ #
877
1057
  def disable_secret_version request, options = nil
878
1058
  raise ::ArgumentError, "request must be provided" if request.nil?
879
1059
 
@@ -891,9 +1071,11 @@ module Google
891
1071
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
892
1072
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
893
1073
 
894
- header_params = {
895
- "name" => request.name
896
- }
1074
+ header_params = {}
1075
+ if request.name
1076
+ header_params["name"] = request.name
1077
+ end
1078
+
897
1079
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
898
1080
  metadata[:"x-goog-request-params"] ||= request_params_header
899
1081
 
@@ -946,6 +1128,21 @@ module Google
946
1128
  #
947
1129
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
948
1130
  #
1131
+ # @example Basic example
1132
+ # require "google/cloud/secret_manager/v1beta1"
1133
+ #
1134
+ # # Create a client object. The client can be reused for multiple calls.
1135
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
1136
+ #
1137
+ # # Create a request. To set request fields, pass in keyword arguments.
1138
+ # request = Google::Cloud::SecretManager::V1beta1::EnableSecretVersionRequest.new
1139
+ #
1140
+ # # Call the enable_secret_version method.
1141
+ # result = client.enable_secret_version request
1142
+ #
1143
+ # # The returned object is of type Google::Cloud::SecretManager::V1beta1::SecretVersion.
1144
+ # p result
1145
+ #
949
1146
  def enable_secret_version request, options = nil
950
1147
  raise ::ArgumentError, "request must be provided" if request.nil?
951
1148
 
@@ -963,9 +1160,11 @@ module Google
963
1160
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
964
1161
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
965
1162
 
966
- header_params = {
967
- "name" => request.name
968
- }
1163
+ header_params = {}
1164
+ if request.name
1165
+ header_params["name"] = request.name
1166
+ end
1167
+
969
1168
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
970
1169
  metadata[:"x-goog-request-params"] ||= request_params_header
971
1170
 
@@ -1019,6 +1218,21 @@ module Google
1019
1218
  #
1020
1219
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1021
1220
  #
1221
+ # @example Basic example
1222
+ # require "google/cloud/secret_manager/v1beta1"
1223
+ #
1224
+ # # Create a client object. The client can be reused for multiple calls.
1225
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
1226
+ #
1227
+ # # Create a request. To set request fields, pass in keyword arguments.
1228
+ # request = Google::Cloud::SecretManager::V1beta1::DestroySecretVersionRequest.new
1229
+ #
1230
+ # # Call the destroy_secret_version method.
1231
+ # result = client.destroy_secret_version request
1232
+ #
1233
+ # # The returned object is of type Google::Cloud::SecretManager::V1beta1::SecretVersion.
1234
+ # p result
1235
+ #
1022
1236
  def destroy_secret_version request, options = nil
1023
1237
  raise ::ArgumentError, "request must be provided" if request.nil?
1024
1238
 
@@ -1036,9 +1250,11 @@ module Google
1036
1250
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1037
1251
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1038
1252
 
1039
- header_params = {
1040
- "name" => request.name
1041
- }
1253
+ header_params = {}
1254
+ if request.name
1255
+ header_params["name"] = request.name
1256
+ end
1257
+
1042
1258
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1043
1259
  metadata[:"x-goog-request-params"] ||= request_params_header
1044
1260
 
@@ -1097,6 +1313,21 @@ module Google
1097
1313
  #
1098
1314
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1099
1315
  #
1316
+ # @example Basic example
1317
+ # require "google/cloud/secret_manager/v1beta1"
1318
+ #
1319
+ # # Create a client object. The client can be reused for multiple calls.
1320
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
1321
+ #
1322
+ # # Create a request. To set request fields, pass in keyword arguments.
1323
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
1324
+ #
1325
+ # # Call the set_iam_policy method.
1326
+ # result = client.set_iam_policy request
1327
+ #
1328
+ # # The returned object is of type Google::Iam::V1::Policy.
1329
+ # p result
1330
+ #
1100
1331
  def set_iam_policy request, options = nil
1101
1332
  raise ::ArgumentError, "request must be provided" if request.nil?
1102
1333
 
@@ -1114,9 +1345,11 @@ module Google
1114
1345
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1115
1346
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1116
1347
 
1117
- header_params = {
1118
- "resource" => request.resource
1119
- }
1348
+ header_params = {}
1349
+ if request.resource
1350
+ header_params["resource"] = request.resource
1351
+ end
1352
+
1120
1353
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1121
1354
  metadata[:"x-goog-request-params"] ||= request_params_header
1122
1355
 
@@ -1170,6 +1403,21 @@ module Google
1170
1403
  #
1171
1404
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1172
1405
  #
1406
+ # @example Basic example
1407
+ # require "google/cloud/secret_manager/v1beta1"
1408
+ #
1409
+ # # Create a client object. The client can be reused for multiple calls.
1410
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
1411
+ #
1412
+ # # Create a request. To set request fields, pass in keyword arguments.
1413
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
1414
+ #
1415
+ # # Call the get_iam_policy method.
1416
+ # result = client.get_iam_policy request
1417
+ #
1418
+ # # The returned object is of type Google::Iam::V1::Policy.
1419
+ # p result
1420
+ #
1173
1421
  def get_iam_policy request, options = nil
1174
1422
  raise ::ArgumentError, "request must be provided" if request.nil?
1175
1423
 
@@ -1187,9 +1435,11 @@ module Google
1187
1435
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1188
1436
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1189
1437
 
1190
- header_params = {
1191
- "resource" => request.resource
1192
- }
1438
+ header_params = {}
1439
+ if request.resource
1440
+ header_params["resource"] = request.resource
1441
+ end
1442
+
1193
1443
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1194
1444
  metadata[:"x-goog-request-params"] ||= request_params_header
1195
1445
 
@@ -1250,6 +1500,21 @@ module Google
1250
1500
  #
1251
1501
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1252
1502
  #
1503
+ # @example Basic example
1504
+ # require "google/cloud/secret_manager/v1beta1"
1505
+ #
1506
+ # # Create a client object. The client can be reused for multiple calls.
1507
+ # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
1508
+ #
1509
+ # # Create a request. To set request fields, pass in keyword arguments.
1510
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
1511
+ #
1512
+ # # Call the test_iam_permissions method.
1513
+ # result = client.test_iam_permissions request
1514
+ #
1515
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
1516
+ # p result
1517
+ #
1253
1518
  def test_iam_permissions request, options = nil
1254
1519
  raise ::ArgumentError, "request must be provided" if request.nil?
1255
1520
 
@@ -1267,9 +1532,11 @@ module Google
1267
1532
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1268
1533
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1269
1534
 
1270
- header_params = {
1271
- "resource" => request.resource
1272
- }
1535
+ header_params = {}
1536
+ if request.resource
1537
+ header_params["resource"] = request.resource
1538
+ end
1539
+
1273
1540
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1274
1541
  metadata[:"x-goog-request-params"] ||= request_params_header
1275
1542
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1beta1
24
- VERSION = "0.8.3"
24
+ VERSION = "0.8.4"
25
25
  end
26
26
  end
27
27
  end
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/secrets/v1beta1/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/timestamp_pb'
9
7
  require 'google/api/annotations_pb'
8
+ require 'google/protobuf'
9
+
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/cloud/secrets/v1beta1/resources.proto", :syntax => :proto3) do
12
12
  add_message "google.cloud.secrets.v1beta1.Secret" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/secrets/v1beta1/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/secrets/v1beta1/service.proto", :syntax => :proto3) do
17
17
  add_message "google.cloud.secrets.v1beta1.ListSecretsRequest" do
@@ -33,7 +33,7 @@ module Google
33
33
  # * [SecretVersion][google.cloud.secrets.v1beta1.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-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
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