google-iam-v1beta 0.3.4 → 0.4.0

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: 4420ddee301813abfa2926262ffa5bee0eb36f6319d1741d85d8cd30618dc83e
4
- data.tar.gz: a43ae15b5f262cdf85458a1915ef6f06569e5b5a62257c1890e244db96338bd4
3
+ metadata.gz: 10fd17da7ed08367b8017e45af4a1211acfe012e890768663adc830afc74aa15
4
+ data.tar.gz: 4ca4282fcb46f3bef0e1a02fc67249910c40a4691f957fbb83d82b4d1d1be712
5
5
  SHA512:
6
- metadata.gz: 2ad4de686d86eaca65a30bc683acf4d99c276f3afdcdc85b6658fd8700950e10c4d9705047833bb31aad3696f3468faf3a9b5a86d6fb4386990957816257e6c0
7
- data.tar.gz: 1da394b251fd0f113751fce6fdada37872228c5b7ae8e6db3adae9143a579fa2d9e71ab86fbf1467fa76d24f7ece6913c6bd9b235b4a311400d75d245f5acb91
6
+ metadata.gz: 585b4cf8addcd2b8715add19d33218a39e62cac765da5d2ece2ac7502fbd1e75cdb547f05b6e8b462cf2adc58559844089677c56bf7f5f40e9b4f34d458cb617
7
+ data.tar.gz: ee45141dc215fae1ef9af5d7fcdbadf9a5986cec9c99488f235a79d406c44362726c017afbad4d3da4ac372a6214b0db833d6d71afa60e58f27e207049d4f937
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Google IAM V1beta API
2
+ --title="Google IAM V1beta 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.
data/README.md CHANGED
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Iam
22
22
  module V1beta
23
- VERSION = "0.3.4"
23
+ VERSION = "0.4.0"
24
24
  end
25
25
  end
26
26
  end
@@ -9,6 +9,7 @@ require 'google/api/field_behavior_pb'
9
9
  require 'google/api/resource_pb'
10
10
  require 'google/longrunning/operations_pb'
11
11
  require 'google/protobuf/field_mask_pb'
12
+
12
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  add_file("google/iam/v1beta/workload_identity_pool.proto", :syntax => :proto3) do
14
15
  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
@@ -194,6 +194,7 @@ module Google
194
194
 
195
195
  @operations_client = Operations.new do |config|
196
196
  config.credentials = credentials
197
+ config.quota_project = @quota_project_id
197
198
  config.endpoint = @config.endpoint
198
199
  end
199
200
 
@@ -256,6 +257,27 @@ module Google
256
257
  #
257
258
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
258
259
  #
260
+ # @example Basic example
261
+ # require "google/iam/v1beta"
262
+ #
263
+ # # Create a client object. The client can be reused for multiple calls.
264
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
265
+ #
266
+ # # Create a request. To set request fields, pass in keyword arguments.
267
+ # request = Google::Iam::V1beta::ListWorkloadIdentityPoolsRequest.new
268
+ #
269
+ # # Call the list_workload_identity_pools method.
270
+ # result = client.list_workload_identity_pools request
271
+ #
272
+ # # The returned object is of type Gapic::PagedEnumerable. You can
273
+ # # iterate over all elements by calling #each, and the enumerable
274
+ # # will lazily make API calls to fetch subsequent pages. Other
275
+ # # methods are also available for managing paging directly.
276
+ # result.each do |response|
277
+ # # Each element is of type ::Google::Iam::V1beta::WorkloadIdentityPool.
278
+ # p response
279
+ # end
280
+ #
259
281
  def list_workload_identity_pools request, options = nil
260
282
  raise ::ArgumentError, "request must be provided" if request.nil?
261
283
 
@@ -273,9 +295,11 @@ module Google
273
295
  gapic_version: ::Google::Iam::V1beta::VERSION
274
296
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
275
297
 
276
- header_params = {
277
- "parent" => request.parent
278
- }
298
+ header_params = {}
299
+ if request.parent
300
+ header_params["parent"] = request.parent
301
+ end
302
+
279
303
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
280
304
  metadata[:"x-goog-request-params"] ||= request_params_header
281
305
 
@@ -326,6 +350,21 @@ module Google
326
350
  #
327
351
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
328
352
  #
353
+ # @example Basic example
354
+ # require "google/iam/v1beta"
355
+ #
356
+ # # Create a client object. The client can be reused for multiple calls.
357
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
358
+ #
359
+ # # Create a request. To set request fields, pass in keyword arguments.
360
+ # request = Google::Iam::V1beta::GetWorkloadIdentityPoolRequest.new
361
+ #
362
+ # # Call the get_workload_identity_pool method.
363
+ # result = client.get_workload_identity_pool request
364
+ #
365
+ # # The returned object is of type Google::Iam::V1beta::WorkloadIdentityPool.
366
+ # p result
367
+ #
329
368
  def get_workload_identity_pool request, options = nil
330
369
  raise ::ArgumentError, "request must be provided" if request.nil?
331
370
 
@@ -343,9 +382,11 @@ module Google
343
382
  gapic_version: ::Google::Iam::V1beta::VERSION
344
383
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
345
384
 
346
- header_params = {
347
- "name" => request.name
348
- }
385
+ header_params = {}
386
+ if request.name
387
+ header_params["name"] = request.name
388
+ end
389
+
349
390
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
350
391
  metadata[:"x-goog-request-params"] ||= request_params_header
351
392
 
@@ -405,6 +446,28 @@ module Google
405
446
  #
406
447
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
407
448
  #
449
+ # @example Basic example
450
+ # require "google/iam/v1beta"
451
+ #
452
+ # # Create a client object. The client can be reused for multiple calls.
453
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
454
+ #
455
+ # # Create a request. To set request fields, pass in keyword arguments.
456
+ # request = Google::Iam::V1beta::CreateWorkloadIdentityPoolRequest.new
457
+ #
458
+ # # Call the create_workload_identity_pool method.
459
+ # result = client.create_workload_identity_pool request
460
+ #
461
+ # # The returned object is of type Gapic::Operation. You can use this
462
+ # # object to check the status of an operation, cancel it, or wait
463
+ # # for results. Here is how to block until completion:
464
+ # result.wait_until_done! timeout: 60
465
+ # if result.response?
466
+ # p result.response
467
+ # else
468
+ # puts "Error!"
469
+ # end
470
+ #
408
471
  def create_workload_identity_pool request, options = nil
409
472
  raise ::ArgumentError, "request must be provided" if request.nil?
410
473
 
@@ -422,9 +485,11 @@ module Google
422
485
  gapic_version: ::Google::Iam::V1beta::VERSION
423
486
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
424
487
 
425
- header_params = {
426
- "parent" => request.parent
427
- }
488
+ header_params = {}
489
+ if request.parent
490
+ header_params["parent"] = request.parent
491
+ end
492
+
428
493
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
429
494
  metadata[:"x-goog-request-params"] ||= request_params_header
430
495
 
@@ -477,6 +542,28 @@ module Google
477
542
  #
478
543
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
479
544
  #
545
+ # @example Basic example
546
+ # require "google/iam/v1beta"
547
+ #
548
+ # # Create a client object. The client can be reused for multiple calls.
549
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
550
+ #
551
+ # # Create a request. To set request fields, pass in keyword arguments.
552
+ # request = Google::Iam::V1beta::UpdateWorkloadIdentityPoolRequest.new
553
+ #
554
+ # # Call the update_workload_identity_pool method.
555
+ # result = client.update_workload_identity_pool request
556
+ #
557
+ # # The returned object is of type Gapic::Operation. You can use this
558
+ # # object to check the status of an operation, cancel it, or wait
559
+ # # for results. Here is how to block until completion:
560
+ # result.wait_until_done! timeout: 60
561
+ # if result.response?
562
+ # p result.response
563
+ # else
564
+ # puts "Error!"
565
+ # end
566
+ #
480
567
  def update_workload_identity_pool request, options = nil
481
568
  raise ::ArgumentError, "request must be provided" if request.nil?
482
569
 
@@ -494,9 +581,11 @@ module Google
494
581
  gapic_version: ::Google::Iam::V1beta::VERSION
495
582
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
496
583
 
497
- header_params = {
498
- "workload_identity_pool.name" => request.workload_identity_pool.name
499
- }
584
+ header_params = {}
585
+ if request.workload_identity_pool&.name
586
+ header_params["workload_identity_pool.name"] = request.workload_identity_pool.name
587
+ end
588
+
500
589
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
501
590
  metadata[:"x-goog-request-params"] ||= request_params_header
502
591
 
@@ -557,6 +646,28 @@ module Google
557
646
  #
558
647
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
559
648
  #
649
+ # @example Basic example
650
+ # require "google/iam/v1beta"
651
+ #
652
+ # # Create a client object. The client can be reused for multiple calls.
653
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
654
+ #
655
+ # # Create a request. To set request fields, pass in keyword arguments.
656
+ # request = Google::Iam::V1beta::DeleteWorkloadIdentityPoolRequest.new
657
+ #
658
+ # # Call the delete_workload_identity_pool method.
659
+ # result = client.delete_workload_identity_pool request
660
+ #
661
+ # # The returned object is of type Gapic::Operation. You can use this
662
+ # # object to check the status of an operation, cancel it, or wait
663
+ # # for results. Here is how to block until completion:
664
+ # result.wait_until_done! timeout: 60
665
+ # if result.response?
666
+ # p result.response
667
+ # else
668
+ # puts "Error!"
669
+ # end
670
+ #
560
671
  def delete_workload_identity_pool request, options = nil
561
672
  raise ::ArgumentError, "request must be provided" if request.nil?
562
673
 
@@ -574,9 +685,11 @@ module Google
574
685
  gapic_version: ::Google::Iam::V1beta::VERSION
575
686
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
576
687
 
577
- header_params = {
578
- "name" => request.name
579
- }
688
+ header_params = {}
689
+ if request.name
690
+ header_params["name"] = request.name
691
+ end
692
+
580
693
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
581
694
  metadata[:"x-goog-request-params"] ||= request_params_header
582
695
 
@@ -627,6 +740,28 @@ module Google
627
740
  #
628
741
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
629
742
  #
743
+ # @example Basic example
744
+ # require "google/iam/v1beta"
745
+ #
746
+ # # Create a client object. The client can be reused for multiple calls.
747
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
748
+ #
749
+ # # Create a request. To set request fields, pass in keyword arguments.
750
+ # request = Google::Iam::V1beta::UndeleteWorkloadIdentityPoolRequest.new
751
+ #
752
+ # # Call the undelete_workload_identity_pool method.
753
+ # result = client.undelete_workload_identity_pool request
754
+ #
755
+ # # The returned object is of type Gapic::Operation. You can use this
756
+ # # object to check the status of an operation, cancel it, or wait
757
+ # # for results. Here is how to block until completion:
758
+ # result.wait_until_done! timeout: 60
759
+ # if result.response?
760
+ # p result.response
761
+ # else
762
+ # puts "Error!"
763
+ # end
764
+ #
630
765
  def undelete_workload_identity_pool request, options = nil
631
766
  raise ::ArgumentError, "request must be provided" if request.nil?
632
767
 
@@ -644,9 +779,11 @@ module Google
644
779
  gapic_version: ::Google::Iam::V1beta::VERSION
645
780
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
646
781
 
647
- header_params = {
648
- "name" => request.name
649
- }
782
+ header_params = {}
783
+ if request.name
784
+ header_params["name"] = request.name
785
+ end
786
+
650
787
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
651
788
  metadata[:"x-goog-request-params"] ||= request_params_header
652
789
 
@@ -709,6 +846,27 @@ module Google
709
846
  #
710
847
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
711
848
  #
849
+ # @example Basic example
850
+ # require "google/iam/v1beta"
851
+ #
852
+ # # Create a client object. The client can be reused for multiple calls.
853
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
854
+ #
855
+ # # Create a request. To set request fields, pass in keyword arguments.
856
+ # request = Google::Iam::V1beta::ListWorkloadIdentityPoolProvidersRequest.new
857
+ #
858
+ # # Call the list_workload_identity_pool_providers method.
859
+ # result = client.list_workload_identity_pool_providers request
860
+ #
861
+ # # The returned object is of type Gapic::PagedEnumerable. You can
862
+ # # iterate over all elements by calling #each, and the enumerable
863
+ # # will lazily make API calls to fetch subsequent pages. Other
864
+ # # methods are also available for managing paging directly.
865
+ # result.each do |response|
866
+ # # Each element is of type ::Google::Iam::V1beta::WorkloadIdentityPoolProvider.
867
+ # p response
868
+ # end
869
+ #
712
870
  def list_workload_identity_pool_providers request, options = nil
713
871
  raise ::ArgumentError, "request must be provided" if request.nil?
714
872
 
@@ -726,9 +884,11 @@ module Google
726
884
  gapic_version: ::Google::Iam::V1beta::VERSION
727
885
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
728
886
 
729
- header_params = {
730
- "parent" => request.parent
731
- }
887
+ header_params = {}
888
+ if request.parent
889
+ header_params["parent"] = request.parent
890
+ end
891
+
732
892
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
733
893
  metadata[:"x-goog-request-params"] ||= request_params_header
734
894
 
@@ -779,6 +939,21 @@ module Google
779
939
  #
780
940
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
781
941
  #
942
+ # @example Basic example
943
+ # require "google/iam/v1beta"
944
+ #
945
+ # # Create a client object. The client can be reused for multiple calls.
946
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
947
+ #
948
+ # # Create a request. To set request fields, pass in keyword arguments.
949
+ # request = Google::Iam::V1beta::GetWorkloadIdentityPoolProviderRequest.new
950
+ #
951
+ # # Call the get_workload_identity_pool_provider method.
952
+ # result = client.get_workload_identity_pool_provider request
953
+ #
954
+ # # The returned object is of type Google::Iam::V1beta::WorkloadIdentityPoolProvider.
955
+ # p result
956
+ #
782
957
  def get_workload_identity_pool_provider request, options = nil
783
958
  raise ::ArgumentError, "request must be provided" if request.nil?
784
959
 
@@ -796,9 +971,11 @@ module Google
796
971
  gapic_version: ::Google::Iam::V1beta::VERSION
797
972
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
798
973
 
799
- header_params = {
800
- "name" => request.name
801
- }
974
+ header_params = {}
975
+ if request.name
976
+ header_params["name"] = request.name
977
+ end
978
+
802
979
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
803
980
  metadata[:"x-goog-request-params"] ||= request_params_header
804
981
 
@@ -859,6 +1036,28 @@ module Google
859
1036
  #
860
1037
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
861
1038
  #
1039
+ # @example Basic example
1040
+ # require "google/iam/v1beta"
1041
+ #
1042
+ # # Create a client object. The client can be reused for multiple calls.
1043
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
1044
+ #
1045
+ # # Create a request. To set request fields, pass in keyword arguments.
1046
+ # request = Google::Iam::V1beta::CreateWorkloadIdentityPoolProviderRequest.new
1047
+ #
1048
+ # # Call the create_workload_identity_pool_provider method.
1049
+ # result = client.create_workload_identity_pool_provider request
1050
+ #
1051
+ # # The returned object is of type Gapic::Operation. You can use this
1052
+ # # object to check the status of an operation, cancel it, or wait
1053
+ # # for results. Here is how to block until completion:
1054
+ # result.wait_until_done! timeout: 60
1055
+ # if result.response?
1056
+ # p result.response
1057
+ # else
1058
+ # puts "Error!"
1059
+ # end
1060
+ #
862
1061
  def create_workload_identity_pool_provider request, options = nil
863
1062
  raise ::ArgumentError, "request must be provided" if request.nil?
864
1063
 
@@ -876,9 +1075,11 @@ module Google
876
1075
  gapic_version: ::Google::Iam::V1beta::VERSION
877
1076
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
878
1077
 
879
- header_params = {
880
- "parent" => request.parent
881
- }
1078
+ header_params = {}
1079
+ if request.parent
1080
+ header_params["parent"] = request.parent
1081
+ end
1082
+
882
1083
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
883
1084
  metadata[:"x-goog-request-params"] ||= request_params_header
884
1085
 
@@ -931,6 +1132,28 @@ module Google
931
1132
  #
932
1133
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
933
1134
  #
1135
+ # @example Basic example
1136
+ # require "google/iam/v1beta"
1137
+ #
1138
+ # # Create a client object. The client can be reused for multiple calls.
1139
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
1140
+ #
1141
+ # # Create a request. To set request fields, pass in keyword arguments.
1142
+ # request = Google::Iam::V1beta::UpdateWorkloadIdentityPoolProviderRequest.new
1143
+ #
1144
+ # # Call the update_workload_identity_pool_provider method.
1145
+ # result = client.update_workload_identity_pool_provider request
1146
+ #
1147
+ # # The returned object is of type Gapic::Operation. You can use this
1148
+ # # object to check the status of an operation, cancel it, or wait
1149
+ # # for results. Here is how to block until completion:
1150
+ # result.wait_until_done! timeout: 60
1151
+ # if result.response?
1152
+ # p result.response
1153
+ # else
1154
+ # puts "Error!"
1155
+ # end
1156
+ #
934
1157
  def update_workload_identity_pool_provider request, options = nil
935
1158
  raise ::ArgumentError, "request must be provided" if request.nil?
936
1159
 
@@ -948,9 +1171,11 @@ module Google
948
1171
  gapic_version: ::Google::Iam::V1beta::VERSION
949
1172
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
950
1173
 
951
- header_params = {
952
- "workload_identity_pool_provider.name" => request.workload_identity_pool_provider.name
953
- }
1174
+ header_params = {}
1175
+ if request.workload_identity_pool_provider&.name
1176
+ header_params["workload_identity_pool_provider.name"] = request.workload_identity_pool_provider.name
1177
+ end
1178
+
954
1179
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
955
1180
  metadata[:"x-goog-request-params"] ||= request_params_header
956
1181
 
@@ -1006,6 +1231,28 @@ module Google
1006
1231
  #
1007
1232
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1008
1233
  #
1234
+ # @example Basic example
1235
+ # require "google/iam/v1beta"
1236
+ #
1237
+ # # Create a client object. The client can be reused for multiple calls.
1238
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
1239
+ #
1240
+ # # Create a request. To set request fields, pass in keyword arguments.
1241
+ # request = Google::Iam::V1beta::DeleteWorkloadIdentityPoolProviderRequest.new
1242
+ #
1243
+ # # Call the delete_workload_identity_pool_provider method.
1244
+ # result = client.delete_workload_identity_pool_provider request
1245
+ #
1246
+ # # The returned object is of type Gapic::Operation. You can use this
1247
+ # # object to check the status of an operation, cancel it, or wait
1248
+ # # for results. Here is how to block until completion:
1249
+ # result.wait_until_done! timeout: 60
1250
+ # if result.response?
1251
+ # p result.response
1252
+ # else
1253
+ # puts "Error!"
1254
+ # end
1255
+ #
1009
1256
  def delete_workload_identity_pool_provider request, options = nil
1010
1257
  raise ::ArgumentError, "request must be provided" if request.nil?
1011
1258
 
@@ -1023,9 +1270,11 @@ module Google
1023
1270
  gapic_version: ::Google::Iam::V1beta::VERSION
1024
1271
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1025
1272
 
1026
- header_params = {
1027
- "name" => request.name
1028
- }
1273
+ header_params = {}
1274
+ if request.name
1275
+ header_params["name"] = request.name
1276
+ end
1277
+
1029
1278
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1030
1279
  metadata[:"x-goog-request-params"] ||= request_params_header
1031
1280
 
@@ -1077,6 +1326,28 @@ module Google
1077
1326
  #
1078
1327
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1079
1328
  #
1329
+ # @example Basic example
1330
+ # require "google/iam/v1beta"
1331
+ #
1332
+ # # Create a client object. The client can be reused for multiple calls.
1333
+ # client = Google::Iam::V1beta::WorkloadIdentityPools::Client.new
1334
+ #
1335
+ # # Create a request. To set request fields, pass in keyword arguments.
1336
+ # request = Google::Iam::V1beta::UndeleteWorkloadIdentityPoolProviderRequest.new
1337
+ #
1338
+ # # Call the undelete_workload_identity_pool_provider method.
1339
+ # result = client.undelete_workload_identity_pool_provider request
1340
+ #
1341
+ # # The returned object is of type Gapic::Operation. You can use this
1342
+ # # object to check the status of an operation, cancel it, or wait
1343
+ # # for results. Here is how to block until completion:
1344
+ # result.wait_until_done! timeout: 60
1345
+ # if result.response?
1346
+ # p result.response
1347
+ # else
1348
+ # puts "Error!"
1349
+ # end
1350
+ #
1080
1351
  def undelete_workload_identity_pool_provider request, options = nil
1081
1352
  raise ::ArgumentError, "request must be provided" if request.nil?
1082
1353
 
@@ -1094,9 +1365,11 @@ module Google
1094
1365
  gapic_version: ::Google::Iam::V1beta::VERSION
1095
1366
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1096
1367
 
1097
- header_params = {
1098
- "name" => request.name
1099
- }
1368
+ header_params = {}
1369
+ if request.name
1370
+ header_params["name"] = request.name
1371
+ end
1372
+
1100
1373
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1101
1374
  metadata[:"x-goog-request-params"] ||= request_params_header
1102
1375
 
@@ -94,6 +94,9 @@ module Google
94
94
  channel_args: @config.channel_args,
95
95
  interceptors: @config.interceptors
96
96
  )
97
+
98
+ # Used by an LRO wrapper for some methods of this service
99
+ @operations_client = self
97
100
  end
98
101
 
99
102
  # Service calls
@@ -142,6 +145,27 @@ module Google
142
145
  #
143
146
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
144
147
  #
148
+ # @example Basic example
149
+ # require "google/longrunning"
150
+ #
151
+ # # Create a client object. The client can be reused for multiple calls.
152
+ # client = Google::Longrunning::Operations::Client.new
153
+ #
154
+ # # Create a request. To set request fields, pass in keyword arguments.
155
+ # request = Google::Longrunning::ListOperationsRequest.new
156
+ #
157
+ # # Call the list_operations method.
158
+ # result = client.list_operations request
159
+ #
160
+ # # The returned object is of type Gapic::PagedEnumerable. You can
161
+ # # iterate over all elements by calling #each, and the enumerable
162
+ # # will lazily make API calls to fetch subsequent pages. Other
163
+ # # methods are also available for managing paging directly.
164
+ # result.each do |response|
165
+ # # Each element is of type ::Google::Longrunning::Operation.
166
+ # p response
167
+ # end
168
+ #
145
169
  def list_operations request, options = nil
146
170
  raise ::ArgumentError, "request must be provided" if request.nil?
147
171
 
@@ -159,9 +183,11 @@ module Google
159
183
  gapic_version: ::Google::Iam::V1beta::VERSION
160
184
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
161
185
 
162
- header_params = {
163
- "name" => request.name
164
- }
186
+ header_params = {}
187
+ if request.name
188
+ header_params["name"] = request.name
189
+ end
190
+
165
191
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
166
192
  metadata[:"x-goog-request-params"] ||= request_params_header
167
193
 
@@ -214,6 +240,28 @@ module Google
214
240
  #
215
241
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
216
242
  #
243
+ # @example Basic example
244
+ # require "google/longrunning"
245
+ #
246
+ # # Create a client object. The client can be reused for multiple calls.
247
+ # client = Google::Longrunning::Operations::Client.new
248
+ #
249
+ # # Create a request. To set request fields, pass in keyword arguments.
250
+ # request = Google::Longrunning::GetOperationRequest.new
251
+ #
252
+ # # Call the get_operation method.
253
+ # result = client.get_operation request
254
+ #
255
+ # # The returned object is of type Gapic::Operation. You can use this
256
+ # # object to check the status of an operation, cancel it, or wait
257
+ # # for results. Here is how to block until completion:
258
+ # result.wait_until_done! timeout: 60
259
+ # if result.response?
260
+ # p result.response
261
+ # else
262
+ # puts "Error!"
263
+ # end
264
+ #
217
265
  def get_operation request, options = nil
218
266
  raise ::ArgumentError, "request must be provided" if request.nil?
219
267
 
@@ -231,9 +279,11 @@ module Google
231
279
  gapic_version: ::Google::Iam::V1beta::VERSION
232
280
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
233
281
 
234
- header_params = {
235
- "name" => request.name
236
- }
282
+ header_params = {}
283
+ if request.name
284
+ header_params["name"] = request.name
285
+ end
286
+
237
287
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
238
288
  metadata[:"x-goog-request-params"] ||= request_params_header
239
289
 
@@ -286,6 +336,21 @@ module Google
286
336
  #
287
337
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
288
338
  #
339
+ # @example Basic example
340
+ # require "google/longrunning"
341
+ #
342
+ # # Create a client object. The client can be reused for multiple calls.
343
+ # client = Google::Longrunning::Operations::Client.new
344
+ #
345
+ # # Create a request. To set request fields, pass in keyword arguments.
346
+ # request = Google::Longrunning::DeleteOperationRequest.new
347
+ #
348
+ # # Call the delete_operation method.
349
+ # result = client.delete_operation request
350
+ #
351
+ # # The returned object is of type Google::Protobuf::Empty.
352
+ # p result
353
+ #
289
354
  def delete_operation request, options = nil
290
355
  raise ::ArgumentError, "request must be provided" if request.nil?
291
356
 
@@ -303,9 +368,11 @@ module Google
303
368
  gapic_version: ::Google::Iam::V1beta::VERSION
304
369
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
305
370
 
306
- header_params = {
307
- "name" => request.name
308
- }
371
+ header_params = {}
372
+ if request.name
373
+ header_params["name"] = request.name
374
+ end
375
+
309
376
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
310
377
  metadata[:"x-goog-request-params"] ||= request_params_header
311
378
 
@@ -363,6 +430,21 @@ module Google
363
430
  #
364
431
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
365
432
  #
433
+ # @example Basic example
434
+ # require "google/longrunning"
435
+ #
436
+ # # Create a client object. The client can be reused for multiple calls.
437
+ # client = Google::Longrunning::Operations::Client.new
438
+ #
439
+ # # Create a request. To set request fields, pass in keyword arguments.
440
+ # request = Google::Longrunning::CancelOperationRequest.new
441
+ #
442
+ # # Call the cancel_operation method.
443
+ # result = client.cancel_operation request
444
+ #
445
+ # # The returned object is of type Google::Protobuf::Empty.
446
+ # p result
447
+ #
366
448
  def cancel_operation request, options = nil
367
449
  raise ::ArgumentError, "request must be provided" if request.nil?
368
450
 
@@ -380,9 +462,11 @@ module Google
380
462
  gapic_version: ::Google::Iam::V1beta::VERSION
381
463
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
382
464
 
383
- header_params = {
384
- "name" => request.name
385
- }
465
+ header_params = {}
466
+ if request.name
467
+ header_params["name"] = request.name
468
+ end
469
+
386
470
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
387
471
  metadata[:"x-goog-request-params"] ||= request_params_header
388
472
 
@@ -443,6 +527,28 @@ module Google
443
527
  #
444
528
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
445
529
  #
530
+ # @example Basic example
531
+ # require "google/longrunning"
532
+ #
533
+ # # Create a client object. The client can be reused for multiple calls.
534
+ # client = Google::Longrunning::Operations::Client.new
535
+ #
536
+ # # Create a request. To set request fields, pass in keyword arguments.
537
+ # request = Google::Longrunning::WaitOperationRequest.new
538
+ #
539
+ # # Call the wait_operation method.
540
+ # result = client.wait_operation request
541
+ #
542
+ # # The returned object is of type Gapic::Operation. You can use this
543
+ # # object to check the status of an operation, cancel it, or wait
544
+ # # for results. Here is how to block until completion:
545
+ # result.wait_until_done! timeout: 60
546
+ # if result.response?
547
+ # p result.response
548
+ # else
549
+ # puts "Error!"
550
+ # end
551
+ #
446
552
  def wait_operation request, options = nil
447
553
  raise ::ArgumentError, "request must be provided" if request.nil?
448
554
 
@@ -24,6 +24,8 @@ module Google
24
24
  ##
25
25
  # To load this package, including all its services, and instantiate a client:
26
26
  #
27
+ # @example
28
+ #
27
29
  # require "google/iam/v1beta"
28
30
  # client = ::Google::Iam::V1beta::WorkloadIdentityPools::Client.new
29
31
  #
@@ -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
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
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.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2022-07-08 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.7'
19
+ version: '0.10'
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.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -200,14 +200,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
200
200
  requirements:
201
201
  - - ">="
202
202
  - !ruby/object:Gem::Version
203
- version: '2.5'
203
+ version: '2.6'
204
204
  required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  requirements: []
210
- rubygems_version: 3.2.17
210
+ rubygems_version: 3.3.14
211
211
  signing_key:
212
212
  specification_version: 4
213
213
  summary: API Client library for the Google IAM V1beta API