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
@@ -148,7 +148,8 @@ module Google
148
148
  credentials: credentials,
149
149
  endpoint: @config.endpoint,
150
150
  channel_args: @config.channel_args,
151
- interceptors: @config.interceptors
151
+ interceptors: @config.interceptors,
152
+ channel_pool_config: @config.channel_pool
152
153
  )
153
154
  end
154
155
 
@@ -587,6 +588,14 @@ module Google
587
588
  end
588
589
  end
589
590
 
591
+ ##
592
+ # Configuration for the channel pool
593
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
594
+ #
595
+ def channel_pool
596
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
597
+ end
598
+
590
599
  ##
591
600
  # Configuration RPC class for the TagHolds API.
592
601
  #
@@ -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
  #
@@ -186,6 +186,29 @@ module Google
186
186
  # @return [::Gapic::Operation]
187
187
  #
188
188
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
189
+ #
190
+ # @example Basic example
191
+ # require "google/cloud/resource_manager/v3"
192
+ #
193
+ # # Create a client object. The client can be reused for multiple calls.
194
+ # client = Google::Cloud::ResourceManager::V3::TagHolds::Rest::Client.new
195
+ #
196
+ # # Create a request. To set request fields, pass in keyword arguments.
197
+ # request = Google::Cloud::ResourceManager::V3::CreateTagHoldRequest.new
198
+ #
199
+ # # Call the create_tag_hold method.
200
+ # result = client.create_tag_hold request
201
+ #
202
+ # # The returned object is of type Gapic::Operation. You can use it to
203
+ # # check the status of an operation, cancel it, or wait for results.
204
+ # # Here is how to wait for a response.
205
+ # result.wait_until_done! timeout: 60
206
+ # if result.response?
207
+ # p result.response
208
+ # else
209
+ # puts "No response received."
210
+ # end
211
+ #
189
212
  def create_tag_hold request, options = nil
190
213
  raise ::ArgumentError, "request must be provided" if request.nil?
191
214
 
@@ -253,6 +276,29 @@ module Google
253
276
  # @return [::Gapic::Operation]
254
277
  #
255
278
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
279
+ #
280
+ # @example Basic example
281
+ # require "google/cloud/resource_manager/v3"
282
+ #
283
+ # # Create a client object. The client can be reused for multiple calls.
284
+ # client = Google::Cloud::ResourceManager::V3::TagHolds::Rest::Client.new
285
+ #
286
+ # # Create a request. To set request fields, pass in keyword arguments.
287
+ # request = Google::Cloud::ResourceManager::V3::DeleteTagHoldRequest.new
288
+ #
289
+ # # Call the delete_tag_hold method.
290
+ # result = client.delete_tag_hold request
291
+ #
292
+ # # The returned object is of type Gapic::Operation. You can use it to
293
+ # # check the status of an operation, cancel it, or wait for results.
294
+ # # Here is how to wait for a response.
295
+ # result.wait_until_done! timeout: 60
296
+ # if result.response?
297
+ # p result.response
298
+ # else
299
+ # puts "No response received."
300
+ # end
301
+ #
256
302
  def delete_tag_hold request, options = nil
257
303
  raise ::ArgumentError, "request must be provided" if request.nil?
258
304
 
@@ -336,6 +382,26 @@ module Google
336
382
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceManager::V3::TagHold>]
337
383
  #
338
384
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
385
+ #
386
+ # @example Basic example
387
+ # require "google/cloud/resource_manager/v3"
388
+ #
389
+ # # Create a client object. The client can be reused for multiple calls.
390
+ # client = Google::Cloud::ResourceManager::V3::TagHolds::Rest::Client.new
391
+ #
392
+ # # Create a request. To set request fields, pass in keyword arguments.
393
+ # request = Google::Cloud::ResourceManager::V3::ListTagHoldsRequest.new
394
+ #
395
+ # # Call the list_tag_holds method.
396
+ # result = client.list_tag_holds request
397
+ #
398
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
399
+ # # over elements, and API calls will be issued to fetch pages as needed.
400
+ # result.each do |item|
401
+ # # Each element is of type ::Google::Cloud::ResourceManager::V3::TagHold.
402
+ # p item
403
+ # end
404
+ #
339
405
  def list_tag_holds request, options = nil
340
406
  raise ::ArgumentError, "request must be provided" if request.nil?
341
407
 
@@ -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
 
@@ -167,7 +167,8 @@ module Google
167
167
  credentials: credentials,
168
168
  endpoint: @config.endpoint,
169
169
  channel_args: @config.channel_args,
170
- interceptors: @config.interceptors
170
+ interceptors: @config.interceptors,
171
+ channel_pool_config: @config.channel_pool
171
172
  )
172
173
  end
173
174
 
@@ -1146,6 +1147,14 @@ module Google
1146
1147
  end
1147
1148
  end
1148
1149
 
1150
+ ##
1151
+ # Configuration for the channel pool
1152
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1153
+ #
1154
+ def channel_pool
1155
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1156
+ end
1157
+
1149
1158
  ##
1150
1159
  # Configuration RPC class for the TagKeys API.
1151
1160
  #
@@ -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
  #
@@ -207,6 +207,26 @@ module Google
207
207
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceManager::V3::TagKey>]
208
208
  #
209
209
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
210
+ #
211
+ # @example Basic example
212
+ # require "google/cloud/resource_manager/v3"
213
+ #
214
+ # # Create a client object. The client can be reused for multiple calls.
215
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
216
+ #
217
+ # # Create a request. To set request fields, pass in keyword arguments.
218
+ # request = Google::Cloud::ResourceManager::V3::ListTagKeysRequest.new
219
+ #
220
+ # # Call the list_tag_keys method.
221
+ # result = client.list_tag_keys request
222
+ #
223
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
224
+ # # over elements, and API calls will be issued to fetch pages as needed.
225
+ # result.each do |item|
226
+ # # Each element is of type ::Google::Cloud::ResourceManager::V3::TagKey.
227
+ # p item
228
+ # end
229
+ #
210
230
  def list_tag_keys request, options = nil
211
231
  raise ::ArgumentError, "request must be provided" if request.nil?
212
232
 
@@ -272,6 +292,22 @@ module Google
272
292
  # @return [::Google::Cloud::ResourceManager::V3::TagKey]
273
293
  #
274
294
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
295
+ #
296
+ # @example Basic example
297
+ # require "google/cloud/resource_manager/v3"
298
+ #
299
+ # # Create a client object. The client can be reused for multiple calls.
300
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
301
+ #
302
+ # # Create a request. To set request fields, pass in keyword arguments.
303
+ # request = Google::Cloud::ResourceManager::V3::GetTagKeyRequest.new
304
+ #
305
+ # # Call the get_tag_key method.
306
+ # result = client.get_tag_key request
307
+ #
308
+ # # The returned object is of type Google::Cloud::ResourceManager::V3::TagKey.
309
+ # p result
310
+ #
275
311
  def get_tag_key request, options = nil
276
312
  raise ::ArgumentError, "request must be provided" if request.nil?
277
313
 
@@ -339,6 +375,22 @@ module Google
339
375
  # @return [::Google::Cloud::ResourceManager::V3::TagKey]
340
376
  #
341
377
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
378
+ #
379
+ # @example Basic example
380
+ # require "google/cloud/resource_manager/v3"
381
+ #
382
+ # # Create a client object. The client can be reused for multiple calls.
383
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
384
+ #
385
+ # # Create a request. To set request fields, pass in keyword arguments.
386
+ # request = Google::Cloud::ResourceManager::V3::GetNamespacedTagKeyRequest.new
387
+ #
388
+ # # Call the get_namespaced_tag_key method.
389
+ # result = client.get_namespaced_tag_key request
390
+ #
391
+ # # The returned object is of type Google::Cloud::ResourceManager::V3::TagKey.
392
+ # p result
393
+ #
342
394
  def get_namespaced_tag_key request, options = nil
343
395
  raise ::ArgumentError, "request must be provided" if request.nil?
344
396
 
@@ -408,6 +460,29 @@ module Google
408
460
  # @return [::Gapic::Operation]
409
461
  #
410
462
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
463
+ #
464
+ # @example Basic example
465
+ # require "google/cloud/resource_manager/v3"
466
+ #
467
+ # # Create a client object. The client can be reused for multiple calls.
468
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
469
+ #
470
+ # # Create a request. To set request fields, pass in keyword arguments.
471
+ # request = Google::Cloud::ResourceManager::V3::CreateTagKeyRequest.new
472
+ #
473
+ # # Call the create_tag_key method.
474
+ # result = client.create_tag_key request
475
+ #
476
+ # # The returned object is of type Gapic::Operation. You can use it to
477
+ # # check the status of an operation, cancel it, or wait for results.
478
+ # # Here is how to wait for a response.
479
+ # result.wait_until_done! timeout: 60
480
+ # if result.response?
481
+ # p result.response
482
+ # else
483
+ # puts "No response received."
484
+ # end
485
+ #
411
486
  def create_tag_key request, options = nil
412
487
  raise ::ArgumentError, "request must be provided" if request.nil?
413
488
 
@@ -481,6 +556,29 @@ module Google
481
556
  # @return [::Gapic::Operation]
482
557
  #
483
558
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
559
+ #
560
+ # @example Basic example
561
+ # require "google/cloud/resource_manager/v3"
562
+ #
563
+ # # Create a client object. The client can be reused for multiple calls.
564
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
565
+ #
566
+ # # Create a request. To set request fields, pass in keyword arguments.
567
+ # request = Google::Cloud::ResourceManager::V3::UpdateTagKeyRequest.new
568
+ #
569
+ # # Call the update_tag_key method.
570
+ # result = client.update_tag_key request
571
+ #
572
+ # # The returned object is of type Gapic::Operation. You can use it to
573
+ # # check the status of an operation, cancel it, or wait for results.
574
+ # # Here is how to wait for a response.
575
+ # result.wait_until_done! timeout: 60
576
+ # if result.response?
577
+ # p result.response
578
+ # else
579
+ # puts "No response received."
580
+ # end
581
+ #
484
582
  def update_tag_key request, options = nil
485
583
  raise ::ArgumentError, "request must be provided" if request.nil?
486
584
 
@@ -553,6 +651,29 @@ module Google
553
651
  # @return [::Gapic::Operation]
554
652
  #
555
653
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
654
+ #
655
+ # @example Basic example
656
+ # require "google/cloud/resource_manager/v3"
657
+ #
658
+ # # Create a client object. The client can be reused for multiple calls.
659
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
660
+ #
661
+ # # Create a request. To set request fields, pass in keyword arguments.
662
+ # request = Google::Cloud::ResourceManager::V3::DeleteTagKeyRequest.new
663
+ #
664
+ # # Call the delete_tag_key method.
665
+ # result = client.delete_tag_key request
666
+ #
667
+ # # The returned object is of type Gapic::Operation. You can use it to
668
+ # # check the status of an operation, cancel it, or wait for results.
669
+ # # Here is how to wait for a response.
670
+ # result.wait_until_done! timeout: 60
671
+ # if result.response?
672
+ # p result.response
673
+ # else
674
+ # puts "No response received."
675
+ # end
676
+ #
556
677
  def delete_tag_key request, options = nil
557
678
  raise ::ArgumentError, "request must be provided" if request.nil?
558
679
 
@@ -625,6 +746,22 @@ module Google
625
746
  # @return [::Google::Iam::V1::Policy]
626
747
  #
627
748
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
749
+ #
750
+ # @example Basic example
751
+ # require "google/cloud/resource_manager/v3"
752
+ #
753
+ # # Create a client object. The client can be reused for multiple calls.
754
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
755
+ #
756
+ # # Create a request. To set request fields, pass in keyword arguments.
757
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
758
+ #
759
+ # # Call the get_iam_policy method.
760
+ # result = client.get_iam_policy request
761
+ #
762
+ # # The returned object is of type Google::Iam::V1::Policy.
763
+ # p result
764
+ #
628
765
  def get_iam_policy request, options = nil
629
766
  raise ::ArgumentError, "request must be provided" if request.nil?
630
767
 
@@ -703,6 +840,22 @@ module Google
703
840
  # @return [::Google::Iam::V1::Policy]
704
841
  #
705
842
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
843
+ #
844
+ # @example Basic example
845
+ # require "google/cloud/resource_manager/v3"
846
+ #
847
+ # # Create a client object. The client can be reused for multiple calls.
848
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
849
+ #
850
+ # # Create a request. To set request fields, pass in keyword arguments.
851
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
852
+ #
853
+ # # Call the set_iam_policy method.
854
+ # result = client.set_iam_policy request
855
+ #
856
+ # # The returned object is of type Google::Iam::V1::Policy.
857
+ # p result
858
+ #
706
859
  def set_iam_policy request, options = nil
707
860
  raise ::ArgumentError, "request must be provided" if request.nil?
708
861
 
@@ -775,6 +928,22 @@ module Google
775
928
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
776
929
  #
777
930
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
931
+ #
932
+ # @example Basic example
933
+ # require "google/cloud/resource_manager/v3"
934
+ #
935
+ # # Create a client object. The client can be reused for multiple calls.
936
+ # client = Google::Cloud::ResourceManager::V3::TagKeys::Rest::Client.new
937
+ #
938
+ # # Create a request. To set request fields, pass in keyword arguments.
939
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
940
+ #
941
+ # # Call the test_iam_permissions method.
942
+ # result = client.test_iam_permissions request
943
+ #
944
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
945
+ # p result
946
+ #
778
947
  def test_iam_permissions request, options = nil
779
948
  raise ::ArgumentError, "request must be provided" if request.nil?
780
949
 
@@ -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
 
@@ -167,7 +167,8 @@ module Google
167
167
  credentials: credentials,
168
168
  endpoint: @config.endpoint,
169
169
  channel_args: @config.channel_args,
170
- interceptors: @config.interceptors
170
+ interceptors: @config.interceptors,
171
+ channel_pool_config: @config.channel_pool
171
172
  )
172
173
  end
173
174
 
@@ -1146,6 +1147,14 @@ module Google
1146
1147
  end
1147
1148
  end
1148
1149
 
1150
+ ##
1151
+ # Configuration for the channel pool
1152
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1153
+ #
1154
+ def channel_pool
1155
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1156
+ end
1157
+
1149
1158
  ##
1150
1159
  # Configuration RPC class for the TagValues API.
1151
1160
  #
@@ -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
  #