google-iam-v1beta 0.3.4 → 0.3.5

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: 4420ddee301813abfa2926262ffa5bee0eb36f6319d1741d85d8cd30618dc83e
4
- data.tar.gz: a43ae15b5f262cdf85458a1915ef6f06569e5b5a62257c1890e244db96338bd4
3
+ metadata.gz: 66e7361ac291c89c50863ca1863be98150509e0adbed3d6f99ad9893fdbd7234
4
+ data.tar.gz: c08f24cc5aaa2672ca27a8044b17e26d60f0ed32a998f7620b74c81b0ec8a22f
5
5
  SHA512:
6
- metadata.gz: 2ad4de686d86eaca65a30bc683acf4d99c276f3afdcdc85b6658fd8700950e10c4d9705047833bb31aad3696f3468faf3a9b5a86d6fb4386990957816257e6c0
7
- data.tar.gz: 1da394b251fd0f113751fce6fdada37872228c5b7ae8e6db3adae9143a579fa2d9e71ab86fbf1467fa76d24f7ece6913c6bd9b235b4a311400d75d245f5acb91
6
+ metadata.gz: 7c8188f5c7acb0f632207113cdb3d830ef2b796c4ee5b745fe6ea1c00e31559be52cd1bb240770f642a3f47719aca701873673759562bc36b103fa75607bb592
7
+ data.tar.gz: 7550bcea26bdc387578a018d0a2b7bd4ad79dd5d6b62b85e417f673ea62900938081cb1678df6f2c28d36dceeaecd7123d84db1f5ba0733c10aa19ddde40d3a4
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Iam
22
22
  module V1beta
23
- VERSION = "0.3.4"
23
+ VERSION = "0.3.5"
24
24
  end
25
25
  end
26
26
  end
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/iam/v1beta/workload_identity_pool.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'
9
7
  require 'google/api/resource_pb'
10
8
  require 'google/longrunning/operations_pb'
11
9
  require 'google/protobuf/field_mask_pb'
10
+ require 'google/protobuf'
11
+
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/iam/v1beta/workload_identity_pool.proto", :syntax => :proto3) do
14
14
  add_message "google.iam.v1beta.WorkloadIdentityPool" do
@@ -26,7 +26,7 @@ module Google
26
26
  # Manages WorkloadIdentityPools.
27
27
  class Service
28
28
 
29
- include GRPC::GenericService
29
+ include ::GRPC::GenericService
30
30
 
31
31
  self.marshal_class_method = :encode
32
32
  self.unmarshal_class_method = :decode
@@ -256,6 +256,27 @@ module Google
256
256
  #
257
257
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
258
258
  #
259
+ # @example Basic example
260
+ # require "google/iam/v1beta"
261
+ #
262
+ # # Create a client object. The client can be reused for multiple calls.
263
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
264
+ #
265
+ # # Create a request. To set request fields, pass in keyword arguments.
266
+ # request = Google::Iam::V1beta::ListWorkloadIdentityPoolsRequest.new
267
+ #
268
+ # # Call the list_workload_identity_pools method.
269
+ # result = client.list_workload_identity_pools request
270
+ #
271
+ # # The returned object is of type Gapic::PagedEnumerable. You can
272
+ # # iterate over all elements by calling #each, and the enumerable
273
+ # # will lazily make API calls to fetch subsequent pages. Other
274
+ # # methods are also available for managing paging directly.
275
+ # result.each do |response|
276
+ # # Each element is of type ::Google::Iam::V1beta::WorkloadIdentityPool.
277
+ # p response
278
+ # end
279
+ #
259
280
  def list_workload_identity_pools request, options = nil
260
281
  raise ::ArgumentError, "request must be provided" if request.nil?
261
282
 
@@ -273,9 +294,11 @@ module Google
273
294
  gapic_version: ::Google::Iam::V1beta::VERSION
274
295
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
275
296
 
276
- header_params = {
277
- "parent" => request.parent
278
- }
297
+ header_params = {}
298
+ if request.parent
299
+ header_params["parent"] = request.parent
300
+ end
301
+
279
302
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
280
303
  metadata[:"x-goog-request-params"] ||= request_params_header
281
304
 
@@ -326,6 +349,21 @@ module Google
326
349
  #
327
350
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
328
351
  #
352
+ # @example Basic example
353
+ # require "google/iam/v1beta"
354
+ #
355
+ # # Create a client object. The client can be reused for multiple calls.
356
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
357
+ #
358
+ # # Create a request. To set request fields, pass in keyword arguments.
359
+ # request = Google::Iam::V1beta::GetWorkloadIdentityPoolRequest.new
360
+ #
361
+ # # Call the get_workload_identity_pool method.
362
+ # result = client.get_workload_identity_pool request
363
+ #
364
+ # # The returned object is of type Google::Iam::V1beta::WorkloadIdentityPool.
365
+ # p result
366
+ #
329
367
  def get_workload_identity_pool request, options = nil
330
368
  raise ::ArgumentError, "request must be provided" if request.nil?
331
369
 
@@ -343,9 +381,11 @@ module Google
343
381
  gapic_version: ::Google::Iam::V1beta::VERSION
344
382
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
345
383
 
346
- header_params = {
347
- "name" => request.name
348
- }
384
+ header_params = {}
385
+ if request.name
386
+ header_params["name"] = request.name
387
+ end
388
+
349
389
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
350
390
  metadata[:"x-goog-request-params"] ||= request_params_header
351
391
 
@@ -405,6 +445,28 @@ module Google
405
445
  #
406
446
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
407
447
  #
448
+ # @example Basic example
449
+ # require "google/iam/v1beta"
450
+ #
451
+ # # Create a client object. The client can be reused for multiple calls.
452
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
453
+ #
454
+ # # Create a request. To set request fields, pass in keyword arguments.
455
+ # request = Google::Iam::V1beta::CreateWorkloadIdentityPoolRequest.new
456
+ #
457
+ # # Call the create_workload_identity_pool method.
458
+ # result = client.create_workload_identity_pool request
459
+ #
460
+ # # The returned object is of type Gapic::Operation. You can use this
461
+ # # object to check the status of an operation, cancel it, or wait
462
+ # # for results. Here is how to block until completion:
463
+ # result.wait_until_done! timeout: 60
464
+ # if result.response?
465
+ # p result.response
466
+ # else
467
+ # puts "Error!"
468
+ # end
469
+ #
408
470
  def create_workload_identity_pool request, options = nil
409
471
  raise ::ArgumentError, "request must be provided" if request.nil?
410
472
 
@@ -422,9 +484,11 @@ module Google
422
484
  gapic_version: ::Google::Iam::V1beta::VERSION
423
485
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
424
486
 
425
- header_params = {
426
- "parent" => request.parent
427
- }
487
+ header_params = {}
488
+ if request.parent
489
+ header_params["parent"] = request.parent
490
+ end
491
+
428
492
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
429
493
  metadata[:"x-goog-request-params"] ||= request_params_header
430
494
 
@@ -477,6 +541,28 @@ module Google
477
541
  #
478
542
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
479
543
  #
544
+ # @example Basic example
545
+ # require "google/iam/v1beta"
546
+ #
547
+ # # Create a client object. The client can be reused for multiple calls.
548
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
549
+ #
550
+ # # Create a request. To set request fields, pass in keyword arguments.
551
+ # request = Google::Iam::V1beta::UpdateWorkloadIdentityPoolRequest.new
552
+ #
553
+ # # Call the update_workload_identity_pool method.
554
+ # result = client.update_workload_identity_pool request
555
+ #
556
+ # # The returned object is of type Gapic::Operation. You can use this
557
+ # # object to check the status of an operation, cancel it, or wait
558
+ # # for results. Here is how to block until completion:
559
+ # result.wait_until_done! timeout: 60
560
+ # if result.response?
561
+ # p result.response
562
+ # else
563
+ # puts "Error!"
564
+ # end
565
+ #
480
566
  def update_workload_identity_pool request, options = nil
481
567
  raise ::ArgumentError, "request must be provided" if request.nil?
482
568
 
@@ -494,9 +580,11 @@ module Google
494
580
  gapic_version: ::Google::Iam::V1beta::VERSION
495
581
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
496
582
 
497
- header_params = {
498
- "workload_identity_pool.name" => request.workload_identity_pool.name
499
- }
583
+ header_params = {}
584
+ if request.workload_identity_pool&.name
585
+ header_params["workload_identity_pool.name"] = request.workload_identity_pool.name
586
+ end
587
+
500
588
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
501
589
  metadata[:"x-goog-request-params"] ||= request_params_header
502
590
 
@@ -557,6 +645,28 @@ module Google
557
645
  #
558
646
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
559
647
  #
648
+ # @example Basic example
649
+ # require "google/iam/v1beta"
650
+ #
651
+ # # Create a client object. The client can be reused for multiple calls.
652
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
653
+ #
654
+ # # Create a request. To set request fields, pass in keyword arguments.
655
+ # request = Google::Iam::V1beta::DeleteWorkloadIdentityPoolRequest.new
656
+ #
657
+ # # Call the delete_workload_identity_pool method.
658
+ # result = client.delete_workload_identity_pool request
659
+ #
660
+ # # The returned object is of type Gapic::Operation. You can use this
661
+ # # object to check the status of an operation, cancel it, or wait
662
+ # # for results. Here is how to block until completion:
663
+ # result.wait_until_done! timeout: 60
664
+ # if result.response?
665
+ # p result.response
666
+ # else
667
+ # puts "Error!"
668
+ # end
669
+ #
560
670
  def delete_workload_identity_pool request, options = nil
561
671
  raise ::ArgumentError, "request must be provided" if request.nil?
562
672
 
@@ -574,9 +684,11 @@ module Google
574
684
  gapic_version: ::Google::Iam::V1beta::VERSION
575
685
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
576
686
 
577
- header_params = {
578
- "name" => request.name
579
- }
687
+ header_params = {}
688
+ if request.name
689
+ header_params["name"] = request.name
690
+ end
691
+
580
692
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
581
693
  metadata[:"x-goog-request-params"] ||= request_params_header
582
694
 
@@ -627,6 +739,28 @@ module Google
627
739
  #
628
740
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
629
741
  #
742
+ # @example Basic example
743
+ # require "google/iam/v1beta"
744
+ #
745
+ # # Create a client object. The client can be reused for multiple calls.
746
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
747
+ #
748
+ # # Create a request. To set request fields, pass in keyword arguments.
749
+ # request = Google::Iam::V1beta::UndeleteWorkloadIdentityPoolRequest.new
750
+ #
751
+ # # Call the undelete_workload_identity_pool method.
752
+ # result = client.undelete_workload_identity_pool request
753
+ #
754
+ # # The returned object is of type Gapic::Operation. You can use this
755
+ # # object to check the status of an operation, cancel it, or wait
756
+ # # for results. Here is how to block until completion:
757
+ # result.wait_until_done! timeout: 60
758
+ # if result.response?
759
+ # p result.response
760
+ # else
761
+ # puts "Error!"
762
+ # end
763
+ #
630
764
  def undelete_workload_identity_pool request, options = nil
631
765
  raise ::ArgumentError, "request must be provided" if request.nil?
632
766
 
@@ -644,9 +778,11 @@ module Google
644
778
  gapic_version: ::Google::Iam::V1beta::VERSION
645
779
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
646
780
 
647
- header_params = {
648
- "name" => request.name
649
- }
781
+ header_params = {}
782
+ if request.name
783
+ header_params["name"] = request.name
784
+ end
785
+
650
786
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
651
787
  metadata[:"x-goog-request-params"] ||= request_params_header
652
788
 
@@ -709,6 +845,27 @@ module Google
709
845
  #
710
846
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
711
847
  #
848
+ # @example Basic example
849
+ # require "google/iam/v1beta"
850
+ #
851
+ # # Create a client object. The client can be reused for multiple calls.
852
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
853
+ #
854
+ # # Create a request. To set request fields, pass in keyword arguments.
855
+ # request = Google::Iam::V1beta::ListWorkloadIdentityPoolProvidersRequest.new
856
+ #
857
+ # # Call the list_workload_identity_pool_providers method.
858
+ # result = client.list_workload_identity_pool_providers request
859
+ #
860
+ # # The returned object is of type Gapic::PagedEnumerable. You can
861
+ # # iterate over all elements by calling #each, and the enumerable
862
+ # # will lazily make API calls to fetch subsequent pages. Other
863
+ # # methods are also available for managing paging directly.
864
+ # result.each do |response|
865
+ # # Each element is of type ::Google::Iam::V1beta::WorkloadIdentityPoolProvider.
866
+ # p response
867
+ # end
868
+ #
712
869
  def list_workload_identity_pool_providers request, options = nil
713
870
  raise ::ArgumentError, "request must be provided" if request.nil?
714
871
 
@@ -726,9 +883,11 @@ module Google
726
883
  gapic_version: ::Google::Iam::V1beta::VERSION
727
884
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
728
885
 
729
- header_params = {
730
- "parent" => request.parent
731
- }
886
+ header_params = {}
887
+ if request.parent
888
+ header_params["parent"] = request.parent
889
+ end
890
+
732
891
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
733
892
  metadata[:"x-goog-request-params"] ||= request_params_header
734
893
 
@@ -779,6 +938,21 @@ module Google
779
938
  #
780
939
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
781
940
  #
941
+ # @example Basic example
942
+ # require "google/iam/v1beta"
943
+ #
944
+ # # Create a client object. The client can be reused for multiple calls.
945
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
946
+ #
947
+ # # Create a request. To set request fields, pass in keyword arguments.
948
+ # request = Google::Iam::V1beta::GetWorkloadIdentityPoolProviderRequest.new
949
+ #
950
+ # # Call the get_workload_identity_pool_provider method.
951
+ # result = client.get_workload_identity_pool_provider request
952
+ #
953
+ # # The returned object is of type Google::Iam::V1beta::WorkloadIdentityPoolProvider.
954
+ # p result
955
+ #
782
956
  def get_workload_identity_pool_provider request, options = nil
783
957
  raise ::ArgumentError, "request must be provided" if request.nil?
784
958
 
@@ -796,9 +970,11 @@ module Google
796
970
  gapic_version: ::Google::Iam::V1beta::VERSION
797
971
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
798
972
 
799
- header_params = {
800
- "name" => request.name
801
- }
973
+ header_params = {}
974
+ if request.name
975
+ header_params["name"] = request.name
976
+ end
977
+
802
978
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
803
979
  metadata[:"x-goog-request-params"] ||= request_params_header
804
980
 
@@ -859,6 +1035,28 @@ module Google
859
1035
  #
860
1036
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
861
1037
  #
1038
+ # @example Basic example
1039
+ # require "google/iam/v1beta"
1040
+ #
1041
+ # # Create a client object. The client can be reused for multiple calls.
1042
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
1043
+ #
1044
+ # # Create a request. To set request fields, pass in keyword arguments.
1045
+ # request = Google::Iam::V1beta::CreateWorkloadIdentityPoolProviderRequest.new
1046
+ #
1047
+ # # Call the create_workload_identity_pool_provider method.
1048
+ # result = client.create_workload_identity_pool_provider request
1049
+ #
1050
+ # # The returned object is of type Gapic::Operation. You can use this
1051
+ # # object to check the status of an operation, cancel it, or wait
1052
+ # # for results. Here is how to block until completion:
1053
+ # result.wait_until_done! timeout: 60
1054
+ # if result.response?
1055
+ # p result.response
1056
+ # else
1057
+ # puts "Error!"
1058
+ # end
1059
+ #
862
1060
  def create_workload_identity_pool_provider request, options = nil
863
1061
  raise ::ArgumentError, "request must be provided" if request.nil?
864
1062
 
@@ -876,9 +1074,11 @@ module Google
876
1074
  gapic_version: ::Google::Iam::V1beta::VERSION
877
1075
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
878
1076
 
879
- header_params = {
880
- "parent" => request.parent
881
- }
1077
+ header_params = {}
1078
+ if request.parent
1079
+ header_params["parent"] = request.parent
1080
+ end
1081
+
882
1082
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
883
1083
  metadata[:"x-goog-request-params"] ||= request_params_header
884
1084
 
@@ -931,6 +1131,28 @@ module Google
931
1131
  #
932
1132
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
933
1133
  #
1134
+ # @example Basic example
1135
+ # require "google/iam/v1beta"
1136
+ #
1137
+ # # Create a client object. The client can be reused for multiple calls.
1138
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
1139
+ #
1140
+ # # Create a request. To set request fields, pass in keyword arguments.
1141
+ # request = Google::Iam::V1beta::UpdateWorkloadIdentityPoolProviderRequest.new
1142
+ #
1143
+ # # Call the update_workload_identity_pool_provider method.
1144
+ # result = client.update_workload_identity_pool_provider request
1145
+ #
1146
+ # # The returned object is of type Gapic::Operation. You can use this
1147
+ # # object to check the status of an operation, cancel it, or wait
1148
+ # # for results. Here is how to block until completion:
1149
+ # result.wait_until_done! timeout: 60
1150
+ # if result.response?
1151
+ # p result.response
1152
+ # else
1153
+ # puts "Error!"
1154
+ # end
1155
+ #
934
1156
  def update_workload_identity_pool_provider request, options = nil
935
1157
  raise ::ArgumentError, "request must be provided" if request.nil?
936
1158
 
@@ -948,9 +1170,11 @@ module Google
948
1170
  gapic_version: ::Google::Iam::V1beta::VERSION
949
1171
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
950
1172
 
951
- header_params = {
952
- "workload_identity_pool_provider.name" => request.workload_identity_pool_provider.name
953
- }
1173
+ header_params = {}
1174
+ if request.workload_identity_pool_provider&.name
1175
+ header_params["workload_identity_pool_provider.name"] = request.workload_identity_pool_provider.name
1176
+ end
1177
+
954
1178
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
955
1179
  metadata[:"x-goog-request-params"] ||= request_params_header
956
1180
 
@@ -1006,6 +1230,28 @@ module Google
1006
1230
  #
1007
1231
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1008
1232
  #
1233
+ # @example Basic example
1234
+ # require "google/iam/v1beta"
1235
+ #
1236
+ # # Create a client object. The client can be reused for multiple calls.
1237
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
1238
+ #
1239
+ # # Create a request. To set request fields, pass in keyword arguments.
1240
+ # request = Google::Iam::V1beta::DeleteWorkloadIdentityPoolProviderRequest.new
1241
+ #
1242
+ # # Call the delete_workload_identity_pool_provider method.
1243
+ # result = client.delete_workload_identity_pool_provider request
1244
+ #
1245
+ # # The returned object is of type Gapic::Operation. You can use this
1246
+ # # object to check the status of an operation, cancel it, or wait
1247
+ # # for results. Here is how to block until completion:
1248
+ # result.wait_until_done! timeout: 60
1249
+ # if result.response?
1250
+ # p result.response
1251
+ # else
1252
+ # puts "Error!"
1253
+ # end
1254
+ #
1009
1255
  def delete_workload_identity_pool_provider request, options = nil
1010
1256
  raise ::ArgumentError, "request must be provided" if request.nil?
1011
1257
 
@@ -1023,9 +1269,11 @@ module Google
1023
1269
  gapic_version: ::Google::Iam::V1beta::VERSION
1024
1270
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1025
1271
 
1026
- header_params = {
1027
- "name" => request.name
1028
- }
1272
+ header_params = {}
1273
+ if request.name
1274
+ header_params["name"] = request.name
1275
+ end
1276
+
1029
1277
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1030
1278
  metadata[:"x-goog-request-params"] ||= request_params_header
1031
1279
 
@@ -1077,6 +1325,28 @@ module Google
1077
1325
  #
1078
1326
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1079
1327
  #
1328
+ # @example Basic example
1329
+ # require "google/iam/v1beta"
1330
+ #
1331
+ # # Create a client object. The client can be reused for multiple calls.
1332
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
1333
+ #
1334
+ # # Create a request. To set request fields, pass in keyword arguments.
1335
+ # request = Google::Iam::V1beta::UndeleteWorkloadIdentityPoolProviderRequest.new
1336
+ #
1337
+ # # Call the undelete_workload_identity_pool_provider method.
1338
+ # result = client.undelete_workload_identity_pool_provider request
1339
+ #
1340
+ # # The returned object is of type Gapic::Operation. You can use this
1341
+ # # object to check the status of an operation, cancel it, or wait
1342
+ # # for results. Here is how to block until completion:
1343
+ # result.wait_until_done! timeout: 60
1344
+ # if result.response?
1345
+ # p result.response
1346
+ # else
1347
+ # puts "Error!"
1348
+ # end
1349
+ #
1080
1350
  def undelete_workload_identity_pool_provider request, options = nil
1081
1351
  raise ::ArgumentError, "request must be provided" if request.nil?
1082
1352
 
@@ -1094,9 +1364,11 @@ module Google
1094
1364
  gapic_version: ::Google::Iam::V1beta::VERSION
1095
1365
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1096
1366
 
1097
- header_params = {
1098
- "name" => request.name
1099
- }
1367
+ header_params = {}
1368
+ if request.name
1369
+ header_params["name"] = request.name
1370
+ end
1371
+
1100
1372
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1101
1373
  metadata[:"x-goog-request-params"] ||= request_params_header
1102
1374
 
@@ -142,6 +142,27 @@ module Google
142
142
  #
143
143
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
144
144
  #
145
+ # @example Basic example
146
+ # require "google/longrunning"
147
+ #
148
+ # # Create a client object. The client can be reused for multiple calls.
149
+ # client = Google::Longrunning::Operations::Client.new
150
+ #
151
+ # # Create a request. To set request fields, pass in keyword arguments.
152
+ # request = Google::Longrunning::ListOperationsRequest.new
153
+ #
154
+ # # Call the list_operations method.
155
+ # result = client.list_operations request
156
+ #
157
+ # # The returned object is of type Gapic::PagedEnumerable. You can
158
+ # # iterate over all elements by calling #each, and the enumerable
159
+ # # will lazily make API calls to fetch subsequent pages. Other
160
+ # # methods are also available for managing paging directly.
161
+ # result.each do |response|
162
+ # # Each element is of type ::Google::Longrunning::Operation.
163
+ # p response
164
+ # end
165
+ #
145
166
  def list_operations request, options = nil
146
167
  raise ::ArgumentError, "request must be provided" if request.nil?
147
168
 
@@ -159,9 +180,11 @@ module Google
159
180
  gapic_version: ::Google::Iam::V1beta::VERSION
160
181
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
161
182
 
162
- header_params = {
163
- "name" => request.name
164
- }
183
+ header_params = {}
184
+ if request.name
185
+ header_params["name"] = request.name
186
+ end
187
+
165
188
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
166
189
  metadata[:"x-goog-request-params"] ||= request_params_header
167
190
 
@@ -214,6 +237,28 @@ module Google
214
237
  #
215
238
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
216
239
  #
240
+ # @example Basic example
241
+ # require "google/longrunning"
242
+ #
243
+ # # Create a client object. The client can be reused for multiple calls.
244
+ # client = Google::Longrunning::Operations::Client.new
245
+ #
246
+ # # Create a request. To set request fields, pass in keyword arguments.
247
+ # request = Google::Longrunning::GetOperationRequest.new
248
+ #
249
+ # # Call the get_operation method.
250
+ # result = client.get_operation request
251
+ #
252
+ # # The returned object is of type Gapic::Operation. You can use this
253
+ # # object to check the status of an operation, cancel it, or wait
254
+ # # for results. Here is how to block until completion:
255
+ # result.wait_until_done! timeout: 60
256
+ # if result.response?
257
+ # p result.response
258
+ # else
259
+ # puts "Error!"
260
+ # end
261
+ #
217
262
  def get_operation request, options = nil
218
263
  raise ::ArgumentError, "request must be provided" if request.nil?
219
264
 
@@ -231,9 +276,11 @@ module Google
231
276
  gapic_version: ::Google::Iam::V1beta::VERSION
232
277
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
233
278
 
234
- header_params = {
235
- "name" => request.name
236
- }
279
+ header_params = {}
280
+ if request.name
281
+ header_params["name"] = request.name
282
+ end
283
+
237
284
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
238
285
  metadata[:"x-goog-request-params"] ||= request_params_header
239
286
 
@@ -286,6 +333,21 @@ module Google
286
333
  #
287
334
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
288
335
  #
336
+ # @example Basic example
337
+ # require "google/longrunning"
338
+ #
339
+ # # Create a client object. The client can be reused for multiple calls.
340
+ # client = Google::Longrunning::Operations::Client.new
341
+ #
342
+ # # Create a request. To set request fields, pass in keyword arguments.
343
+ # request = Google::Longrunning::DeleteOperationRequest.new
344
+ #
345
+ # # Call the delete_operation method.
346
+ # result = client.delete_operation request
347
+ #
348
+ # # The returned object is of type Google::Protobuf::Empty.
349
+ # p result
350
+ #
289
351
  def delete_operation request, options = nil
290
352
  raise ::ArgumentError, "request must be provided" if request.nil?
291
353
 
@@ -303,9 +365,11 @@ module Google
303
365
  gapic_version: ::Google::Iam::V1beta::VERSION
304
366
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
305
367
 
306
- header_params = {
307
- "name" => request.name
308
- }
368
+ header_params = {}
369
+ if request.name
370
+ header_params["name"] = request.name
371
+ end
372
+
309
373
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
310
374
  metadata[:"x-goog-request-params"] ||= request_params_header
311
375
 
@@ -363,6 +427,21 @@ module Google
363
427
  #
364
428
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
365
429
  #
430
+ # @example Basic example
431
+ # require "google/longrunning"
432
+ #
433
+ # # Create a client object. The client can be reused for multiple calls.
434
+ # client = Google::Longrunning::Operations::Client.new
435
+ #
436
+ # # Create a request. To set request fields, pass in keyword arguments.
437
+ # request = Google::Longrunning::CancelOperationRequest.new
438
+ #
439
+ # # Call the cancel_operation method.
440
+ # result = client.cancel_operation request
441
+ #
442
+ # # The returned object is of type Google::Protobuf::Empty.
443
+ # p result
444
+ #
366
445
  def cancel_operation request, options = nil
367
446
  raise ::ArgumentError, "request must be provided" if request.nil?
368
447
 
@@ -380,9 +459,11 @@ module Google
380
459
  gapic_version: ::Google::Iam::V1beta::VERSION
381
460
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
382
461
 
383
- header_params = {
384
- "name" => request.name
385
- }
462
+ header_params = {}
463
+ if request.name
464
+ header_params["name"] = request.name
465
+ end
466
+
386
467
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
387
468
  metadata[:"x-goog-request-params"] ||= request_params_header
388
469
 
@@ -443,6 +524,28 @@ module Google
443
524
  #
444
525
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
445
526
  #
527
+ # @example Basic example
528
+ # require "google/longrunning"
529
+ #
530
+ # # Create a client object. The client can be reused for multiple calls.
531
+ # client = Google::Longrunning::Operations::Client.new
532
+ #
533
+ # # Create a request. To set request fields, pass in keyword arguments.
534
+ # request = Google::Longrunning::WaitOperationRequest.new
535
+ #
536
+ # # Call the wait_operation method.
537
+ # result = client.wait_operation request
538
+ #
539
+ # # The returned object is of type Gapic::Operation. You can use this
540
+ # # object to check the status of an operation, cancel it, or wait
541
+ # # for results. Here is how to block until completion:
542
+ # result.wait_until_done! timeout: 60
543
+ # if result.response?
544
+ # p result.response
545
+ # else
546
+ # puts "Error!"
547
+ # end
548
+ #
446
549
  def wait_operation request, options = nil
447
550
  raise ::ArgumentError, "request must be provided" if request.nil?
448
551
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-iam-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
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