google-cloud-resource_manager-v3 0.6.2 → 0.7.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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/resource_manager/v3/folders/client.rb +10 -1
  3. data/lib/google/cloud/resource_manager/v3/folders/operations.rb +10 -1
  4. data/lib/google/cloud/resource_manager/v3/folders/rest/client.rb +219 -0
  5. data/lib/google/cloud/resource_manager/v3/folders/rest/operations.rb +75 -0
  6. data/lib/google/cloud/resource_manager/v3/organizations/client.rb +10 -1
  7. data/lib/google/cloud/resource_manager/v3/organizations/rest/client.rb +84 -0
  8. data/lib/google/cloud/resource_manager/v3/projects/client.rb +10 -1
  9. data/lib/google/cloud/resource_manager/v3/projects/operations.rb +10 -1
  10. data/lib/google/cloud/resource_manager/v3/projects/rest/client.rb +219 -0
  11. data/lib/google/cloud/resource_manager/v3/projects/rest/operations.rb +75 -0
  12. data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +10 -1
  13. data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +10 -1
  14. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/client.rb +86 -0
  15. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/operations.rb +75 -0
  16. data/lib/google/cloud/resource_manager/v3/tag_holds/client.rb +10 -1
  17. data/lib/google/cloud/resource_manager/v3/tag_holds/operations.rb +10 -1
  18. data/lib/google/cloud/resource_manager/v3/tag_holds/rest/client.rb +66 -0
  19. data/lib/google/cloud/resource_manager/v3/tag_holds/rest/operations.rb +75 -0
  20. data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +10 -1
  21. data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +10 -1
  22. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/client.rb +169 -0
  23. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/operations.rb +75 -0
  24. data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +10 -1
  25. data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +10 -1
  26. data/lib/google/cloud/resource_manager/v3/tag_values/rest/client.rb +169 -0
  27. data/lib/google/cloud/resource_manager/v3/tag_values/rest/operations.rb +75 -0
  28. data/lib/google/cloud/resource_manager/v3/version.rb +1 -1
  29. data/proto_docs/google/api/field_behavior.rb +14 -0
  30. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1791641f3839a604a8d8e2359c17e79a9ed1db5e47653fd09440bc1ce9ca9e9b
4
- data.tar.gz: e0f36aeebbd0d99f32dc3dea2a0f3969f4bf7dcb692a30c8224a889472d6200c
3
+ metadata.gz: c2a4f2c27230d996ef2765cba70c99d32d426fe4e33bc4c919ba7dc67fea613c
4
+ data.tar.gz: '09f0c45b06ded6556bab3f8ab18567c0c541dc51884eae9f171d082e8f11d8d1'
5
5
  SHA512:
6
- metadata.gz: 678fc8c19c6fcfa8e5de72838f103b43e800c87d8c030db885d9068ac828980d49ca150bf2d86e87ba7bb03dabdfdb339d52e26b5fb579345c4d38373cadb37e
7
- data.tar.gz: 8a3921d5cbebceb91151d3c18825eecf732838f178cb31b3530e5a959b0d27d744dc94767f3a19ec91a8dbbff0097a4bbb2b106663d2e532cd510bcef7ca279a
6
+ metadata.gz: 6c08cbe706fcd00e6f53e7b9b95cde400a44f70350fca1a6155c122d6948883bf5c315f2f39b6821bf8faecbcd1e94db54008f9e53fa60910bd2dd20b5d2a6ac
7
+ data.tar.gz: 53d2303f0a5d778bd506c3d0307e4070b55230c13eef550203fddfb53b1e75b809eb1bdf6a2824646fff8ecc183764895df1692592a7e710c4d9ab04d70139a9
@@ -175,7 +175,8 @@ module Google
175
175
  credentials: credentials,
176
176
  endpoint: @config.endpoint,
177
177
  channel_args: @config.channel_args,
178
- interceptors: @config.interceptors
178
+ interceptors: @config.interceptors,
179
+ channel_pool_config: @config.channel_pool
179
180
  )
180
181
  end
181
182
 
@@ -1464,6 +1465,14 @@ module Google
1464
1465
  end
1465
1466
  end
1466
1467
 
1468
+ ##
1469
+ # Configuration for the channel pool
1470
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1471
+ #
1472
+ def channel_pool
1473
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1474
+ end
1475
+
1467
1476
  ##
1468
1477
  # Configuration RPC class for the Folders API.
1469
1478
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -211,6 +211,22 @@ module Google
211
211
  # @return [::Google::Cloud::ResourceManager::V3::Folder]
212
212
  #
213
213
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
214
+ #
215
+ # @example Basic example
216
+ # require "google/cloud/resource_manager/v3"
217
+ #
218
+ # # Create a client object. The client can be reused for multiple calls.
219
+ # client = Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
220
+ #
221
+ # # Create a request. To set request fields, pass in keyword arguments.
222
+ # request = Google::Cloud::ResourceManager::V3::GetFolderRequest.new
223
+ #
224
+ # # Call the get_folder method.
225
+ # result = client.get_folder request
226
+ #
227
+ # # The returned object is of type Google::Cloud::ResourceManager::V3::Folder.
228
+ # p result
229
+ #
214
230
  def get_folder request, options = nil
215
231
  raise ::ArgumentError, "request must be provided" if request.nil?
216
232
 
@@ -298,6 +314,26 @@ module Google
298
314
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceManager::V3::Folder>]
299
315
  #
300
316
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
317
+ #
318
+ # @example Basic example
319
+ # require "google/cloud/resource_manager/v3"
320
+ #
321
+ # # Create a client object. The client can be reused for multiple calls.
322
+ # client = Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
323
+ #
324
+ # # Create a request. To set request fields, pass in keyword arguments.
325
+ # request = Google::Cloud::ResourceManager::V3::ListFoldersRequest.new
326
+ #
327
+ # # Call the list_folders method.
328
+ # result = client.list_folders request
329
+ #
330
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
331
+ # # over elements, and API calls will be issued to fetch pages as needed.
332
+ # result.each do |item|
333
+ # # Each element is of type ::Google::Cloud::ResourceManager::V3::Folder.
334
+ # p item
335
+ # end
336
+ #
301
337
  def list_folders request, options = nil
302
338
  raise ::ArgumentError, "request must be provided" if request.nil?
303
339
 
@@ -403,6 +439,26 @@ module Google
403
439
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceManager::V3::Folder>]
404
440
  #
405
441
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
442
+ #
443
+ # @example Basic example
444
+ # require "google/cloud/resource_manager/v3"
445
+ #
446
+ # # Create a client object. The client can be reused for multiple calls.
447
+ # client = Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
448
+ #
449
+ # # Create a request. To set request fields, pass in keyword arguments.
450
+ # request = Google::Cloud::ResourceManager::V3::SearchFoldersRequest.new
451
+ #
452
+ # # Call the search_folders method.
453
+ # result = client.search_folders request
454
+ #
455
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
456
+ # # over elements, and API calls will be issued to fetch pages as needed.
457
+ # result.each do |item|
458
+ # # Each element is of type ::Google::Cloud::ResourceManager::V3::Folder.
459
+ # p item
460
+ # end
461
+ #
406
462
  def search_folders request, options = nil
407
463
  raise ::ArgumentError, "request must be provided" if request.nil?
408
464
 
@@ -493,6 +549,29 @@ module Google
493
549
  # @return [::Gapic::Operation]
494
550
  #
495
551
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
552
+ #
553
+ # @example Basic example
554
+ # require "google/cloud/resource_manager/v3"
555
+ #
556
+ # # Create a client object. The client can be reused for multiple calls.
557
+ # client = Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
558
+ #
559
+ # # Create a request. To set request fields, pass in keyword arguments.
560
+ # request = Google::Cloud::ResourceManager::V3::CreateFolderRequest.new
561
+ #
562
+ # # Call the create_folder method.
563
+ # result = client.create_folder request
564
+ #
565
+ # # The returned object is of type Gapic::Operation. You can use it to
566
+ # # check the status of an operation, cancel it, or wait for results.
567
+ # # Here is how to wait for a response.
568
+ # result.wait_until_done! timeout: 60
569
+ # if result.response?
570
+ # p result.response
571
+ # else
572
+ # puts "No response received."
573
+ # end
574
+ #
496
575
  def create_folder request, options = nil
497
576
  raise ::ArgumentError, "request must be provided" if request.nil?
498
577
 
@@ -576,6 +655,29 @@ module Google
576
655
  # @return [::Gapic::Operation]
577
656
  #
578
657
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
658
+ #
659
+ # @example Basic example
660
+ # require "google/cloud/resource_manager/v3"
661
+ #
662
+ # # Create a client object. The client can be reused for multiple calls.
663
+ # client = Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
664
+ #
665
+ # # Create a request. To set request fields, pass in keyword arguments.
666
+ # request = Google::Cloud::ResourceManager::V3::UpdateFolderRequest.new
667
+ #
668
+ # # Call the update_folder method.
669
+ # result = client.update_folder request
670
+ #
671
+ # # The returned object is of type Gapic::Operation. You can use it to
672
+ # # check the status of an operation, cancel it, or wait for results.
673
+ # # Here is how to wait for a response.
674
+ # result.wait_until_done! timeout: 60
675
+ # if result.response?
676
+ # p result.response
677
+ # else
678
+ # puts "No response received."
679
+ # end
680
+ #
579
681
  def update_folder request, options = nil
580
682
  raise ::ArgumentError, "request must be provided" if request.nil?
581
683
 
@@ -660,6 +762,29 @@ module Google
660
762
  # @return [::Gapic::Operation]
661
763
  #
662
764
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
765
+ #
766
+ # @example Basic example
767
+ # require "google/cloud/resource_manager/v3"
768
+ #
769
+ # # Create a client object. The client can be reused for multiple calls.
770
+ # client = Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
771
+ #
772
+ # # Create a request. To set request fields, pass in keyword arguments.
773
+ # request = Google::Cloud::ResourceManager::V3::MoveFolderRequest.new
774
+ #
775
+ # # Call the move_folder method.
776
+ # result = client.move_folder request
777
+ #
778
+ # # The returned object is of type Gapic::Operation. You can use it to
779
+ # # check the status of an operation, cancel it, or wait for results.
780
+ # # Here is how to wait for a response.
781
+ # result.wait_until_done! timeout: 60
782
+ # if result.response?
783
+ # p result.response
784
+ # else
785
+ # puts "No response received."
786
+ # end
787
+ #
663
788
  def move_folder request, options = nil
664
789
  raise ::ArgumentError, "request must be provided" if request.nil?
665
790
 
@@ -734,6 +859,29 @@ module Google
734
859
  # @return [::Gapic::Operation]
735
860
  #
736
861
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
862
+ #
863
+ # @example Basic example
864
+ # require "google/cloud/resource_manager/v3"
865
+ #
866
+ # # Create a client object. The client can be reused for multiple calls.
867
+ # client = Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
868
+ #
869
+ # # Create a request. To set request fields, pass in keyword arguments.
870
+ # request = Google::Cloud::ResourceManager::V3::DeleteFolderRequest.new
871
+ #
872
+ # # Call the delete_folder method.
873
+ # result = client.delete_folder request
874
+ #
875
+ # # The returned object is of type Gapic::Operation. You can use it to
876
+ # # check the status of an operation, cancel it, or wait for results.
877
+ # # Here is how to wait for a response.
878
+ # result.wait_until_done! timeout: 60
879
+ # if result.response?
880
+ # p result.response
881
+ # else
882
+ # puts "No response received."
883
+ # end
884
+ #
737
885
  def delete_folder request, options = nil
738
886
  raise ::ArgumentError, "request must be provided" if request.nil?
739
887
 
@@ -808,6 +956,29 @@ module Google
808
956
  # @return [::Gapic::Operation]
809
957
  #
810
958
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
959
+ #
960
+ # @example Basic example
961
+ # require "google/cloud/resource_manager/v3"
962
+ #
963
+ # # Create a client object. The client can be reused for multiple calls.
964
+ # client = Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
965
+ #
966
+ # # Create a request. To set request fields, pass in keyword arguments.
967
+ # request = Google::Cloud::ResourceManager::V3::UndeleteFolderRequest.new
968
+ #
969
+ # # Call the undelete_folder method.
970
+ # result = client.undelete_folder request
971
+ #
972
+ # # The returned object is of type Gapic::Operation. You can use it to
973
+ # # check the status of an operation, cancel it, or wait for results.
974
+ # # Here is how to wait for a response.
975
+ # result.wait_until_done! timeout: 60
976
+ # if result.response?
977
+ # p result.response
978
+ # else
979
+ # puts "No response received."
980
+ # end
981
+ #
811
982
  def undelete_folder request, options = nil
812
983
  raise ::ArgumentError, "request must be provided" if request.nil?
813
984
 
@@ -879,6 +1050,22 @@ module Google
879
1050
  # @return [::Google::Iam::V1::Policy]
880
1051
  #
881
1052
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1053
+ #
1054
+ # @example Basic example
1055
+ # require "google/cloud/resource_manager/v3"
1056
+ #
1057
+ # # Create a client object. The client can be reused for multiple calls.
1058
+ # client = Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
1059
+ #
1060
+ # # Create a request. To set request fields, pass in keyword arguments.
1061
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
1062
+ #
1063
+ # # Call the get_iam_policy method.
1064
+ # result = client.get_iam_policy request
1065
+ #
1066
+ # # The returned object is of type Google::Iam::V1::Policy.
1067
+ # p result
1068
+ #
882
1069
  def get_iam_policy request, options = nil
883
1070
  raise ::ArgumentError, "request must be provided" if request.nil?
884
1071
 
@@ -957,6 +1144,22 @@ module Google
957
1144
  # @return [::Google::Iam::V1::Policy]
958
1145
  #
959
1146
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1147
+ #
1148
+ # @example Basic example
1149
+ # require "google/cloud/resource_manager/v3"
1150
+ #
1151
+ # # Create a client object. The client can be reused for multiple calls.
1152
+ # client = Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
1153
+ #
1154
+ # # Create a request. To set request fields, pass in keyword arguments.
1155
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
1156
+ #
1157
+ # # Call the set_iam_policy method.
1158
+ # result = client.set_iam_policy request
1159
+ #
1160
+ # # The returned object is of type Google::Iam::V1::Policy.
1161
+ # p result
1162
+ #
960
1163
  def set_iam_policy request, options = nil
961
1164
  raise ::ArgumentError, "request must be provided" if request.nil?
962
1165
 
@@ -1029,6 +1232,22 @@ module Google
1029
1232
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
1030
1233
  #
1031
1234
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1235
+ #
1236
+ # @example Basic example
1237
+ # require "google/cloud/resource_manager/v3"
1238
+ #
1239
+ # # Create a client object. The client can be reused for multiple calls.
1240
+ # client = Google::Cloud::ResourceManager::V3::Folders::Rest::Client.new
1241
+ #
1242
+ # # Create a request. To set request fields, pass in keyword arguments.
1243
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
1244
+ #
1245
+ # # Call the test_iam_permissions method.
1246
+ # result = client.test_iam_permissions request
1247
+ #
1248
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
1249
+ # p result
1250
+ #
1032
1251
  def test_iam_permissions request, options = nil
1033
1252
  raise ::ArgumentError, "request must be provided" if request.nil?
1034
1253
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -152,7 +152,8 @@ module Google
152
152
  credentials: credentials,
153
153
  endpoint: @config.endpoint,
154
154
  channel_args: @config.channel_args,
155
- interceptors: @config.interceptors
155
+ interceptors: @config.interceptors,
156
+ channel_pool_config: @config.channel_pool
156
157
  )
157
158
  end
158
159
 
@@ -768,6 +769,14 @@ module Google
768
769
  end
769
770
  end
770
771
 
772
+ ##
773
+ # Configuration for the channel pool
774
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
775
+ #
776
+ def channel_pool
777
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
778
+ end
779
+
771
780
  ##
772
781
  # Configuration RPC class for the Organizations API.
773
782
  #
@@ -178,6 +178,22 @@ module Google
178
178
  # @return [::Google::Cloud::ResourceManager::V3::Organization]
179
179
  #
180
180
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
181
+ #
182
+ # @example Basic example
183
+ # require "google/cloud/resource_manager/v3"
184
+ #
185
+ # # Create a client object. The client can be reused for multiple calls.
186
+ # client = Google::Cloud::ResourceManager::V3::Organizations::Rest::Client.new
187
+ #
188
+ # # Create a request. To set request fields, pass in keyword arguments.
189
+ # request = Google::Cloud::ResourceManager::V3::GetOrganizationRequest.new
190
+ #
191
+ # # Call the get_organization method.
192
+ # result = client.get_organization request
193
+ #
194
+ # # The returned object is of type Google::Cloud::ResourceManager::V3::Organization.
195
+ # p result
196
+ #
181
197
  def get_organization request, options = nil
182
198
  raise ::ArgumentError, "request must be provided" if request.nil?
183
199
 
@@ -271,6 +287,26 @@ module Google
271
287
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceManager::V3::Organization>]
272
288
  #
273
289
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
290
+ #
291
+ # @example Basic example
292
+ # require "google/cloud/resource_manager/v3"
293
+ #
294
+ # # Create a client object. The client can be reused for multiple calls.
295
+ # client = Google::Cloud::ResourceManager::V3::Organizations::Rest::Client.new
296
+ #
297
+ # # Create a request. To set request fields, pass in keyword arguments.
298
+ # request = Google::Cloud::ResourceManager::V3::SearchOrganizationsRequest.new
299
+ #
300
+ # # Call the search_organizations method.
301
+ # result = client.search_organizations request
302
+ #
303
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
304
+ # # over elements, and API calls will be issued to fetch pages as needed.
305
+ # result.each do |item|
306
+ # # Each element is of type ::Google::Cloud::ResourceManager::V3::Organization.
307
+ # p item
308
+ # end
309
+ #
274
310
  def search_organizations request, options = nil
275
311
  raise ::ArgumentError, "request must be provided" if request.nil?
276
312
 
@@ -343,6 +379,22 @@ module Google
343
379
  # @return [::Google::Iam::V1::Policy]
344
380
  #
345
381
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
382
+ #
383
+ # @example Basic example
384
+ # require "google/cloud/resource_manager/v3"
385
+ #
386
+ # # Create a client object. The client can be reused for multiple calls.
387
+ # client = Google::Cloud::ResourceManager::V3::Organizations::Rest::Client.new
388
+ #
389
+ # # Create a request. To set request fields, pass in keyword arguments.
390
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
391
+ #
392
+ # # Call the get_iam_policy method.
393
+ # result = client.get_iam_policy request
394
+ #
395
+ # # The returned object is of type Google::Iam::V1::Policy.
396
+ # p result
397
+ #
346
398
  def get_iam_policy request, options = nil
347
399
  raise ::ArgumentError, "request must be provided" if request.nil?
348
400
 
@@ -422,6 +474,22 @@ module Google
422
474
  # @return [::Google::Iam::V1::Policy]
423
475
  #
424
476
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
477
+ #
478
+ # @example Basic example
479
+ # require "google/cloud/resource_manager/v3"
480
+ #
481
+ # # Create a client object. The client can be reused for multiple calls.
482
+ # client = Google::Cloud::ResourceManager::V3::Organizations::Rest::Client.new
483
+ #
484
+ # # Create a request. To set request fields, pass in keyword arguments.
485
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
486
+ #
487
+ # # Call the set_iam_policy method.
488
+ # result = client.set_iam_policy request
489
+ #
490
+ # # The returned object is of type Google::Iam::V1::Policy.
491
+ # p result
492
+ #
425
493
  def set_iam_policy request, options = nil
426
494
  raise ::ArgumentError, "request must be provided" if request.nil?
427
495
 
@@ -494,6 +562,22 @@ module Google
494
562
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
495
563
  #
496
564
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
565
+ #
566
+ # @example Basic example
567
+ # require "google/cloud/resource_manager/v3"
568
+ #
569
+ # # Create a client object. The client can be reused for multiple calls.
570
+ # client = Google::Cloud::ResourceManager::V3::Organizations::Rest::Client.new
571
+ #
572
+ # # Create a request. To set request fields, pass in keyword arguments.
573
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
574
+ #
575
+ # # Call the test_iam_permissions method.
576
+ # result = client.test_iam_permissions request
577
+ #
578
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
579
+ # p result
580
+ #
497
581
  def test_iam_permissions request, options = nil
498
582
  raise ::ArgumentError, "request must be provided" if request.nil?
499
583
 
@@ -173,7 +173,8 @@ module Google
173
173
  credentials: credentials,
174
174
  endpoint: @config.endpoint,
175
175
  channel_args: @config.channel_args,
176
- interceptors: @config.interceptors
176
+ interceptors: @config.interceptors,
177
+ channel_pool_config: @config.channel_pool
177
178
  )
178
179
  end
179
180
 
@@ -1481,6 +1482,14 @@ module Google
1481
1482
  end
1482
1483
  end
1483
1484
 
1485
+ ##
1486
+ # Configuration for the channel pool
1487
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1488
+ #
1489
+ def channel_pool
1490
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1491
+ end
1492
+
1484
1493
  ##
1485
1494
  # Configuration RPC class for the Projects API.
1486
1495
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #