google-cloud-run-v2 0.10.1 → 0.11.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.
@@ -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
 
@@ -412,6 +487,29 @@ module Google
412
487
  # @return [::Gapic::Operation]
413
488
  #
414
489
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
490
+ #
491
+ # @example Basic example
492
+ # require "google/longrunning"
493
+ #
494
+ # # Create a client object. The client can be reused for multiple calls.
495
+ # client = Google::Longrunning::Operations::Rest::Client.new
496
+ #
497
+ # # Create a request. To set request fields, pass in keyword arguments.
498
+ # request = Google::Longrunning::WaitOperationRequest.new
499
+ #
500
+ # # Call the wait_operation method.
501
+ # result = client.wait_operation request
502
+ #
503
+ # # The returned object is of type Gapic::Operation. You can use it to
504
+ # # check the status of an operation, cancel it, or wait for results.
505
+ # # Here is how to wait for a response.
506
+ # result.wait_until_done! timeout: 60
507
+ # if result.response?
508
+ # p result.response
509
+ # else
510
+ # puts "No response received."
511
+ # end
512
+ #
415
513
  def wait_operation request, options = nil
416
514
  raise ::ArgumentError, "request must be provided" if request.nil?
417
515
 
@@ -151,7 +151,8 @@ module Google
151
151
  credentials: credentials,
152
152
  endpoint: @config.endpoint,
153
153
  channel_args: @config.channel_args,
154
- interceptors: @config.interceptors
154
+ interceptors: @config.interceptors,
155
+ channel_pool_config: @config.channel_pool
155
156
  )
156
157
  end
157
158
 
@@ -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 Revisions 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
@@ -709,6 +710,14 @@ module Google
709
710
  end
710
711
  end
711
712
 
713
+ ##
714
+ # Configuration for the channel pool
715
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
716
+ #
717
+ def channel_pool
718
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
719
+ end
720
+
712
721
  ##
713
722
  # Configuration RPC class for the Operations API.
714
723
  #
@@ -191,6 +191,22 @@ module Google
191
191
  # @return [::Google::Cloud::Run::V2::Revision]
192
192
  #
193
193
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
194
+ #
195
+ # @example Basic example
196
+ # require "google/cloud/run/v2"
197
+ #
198
+ # # Create a client object. The client can be reused for multiple calls.
199
+ # client = Google::Cloud::Run::V2::Revisions::Rest::Client.new
200
+ #
201
+ # # Create a request. To set request fields, pass in keyword arguments.
202
+ # request = Google::Cloud::Run::V2::GetRevisionRequest.new
203
+ #
204
+ # # Call the get_revision method.
205
+ # result = client.get_revision request
206
+ #
207
+ # # The returned object is of type Google::Cloud::Run::V2::Revision.
208
+ # p result
209
+ #
194
210
  def get_revision request, options = nil
195
211
  raise ::ArgumentError, "request must be provided" if request.nil?
196
212
 
@@ -263,6 +279,26 @@ module Google
263
279
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Run::V2::Revision>]
264
280
  #
265
281
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
282
+ #
283
+ # @example Basic example
284
+ # require "google/cloud/run/v2"
285
+ #
286
+ # # Create a client object. The client can be reused for multiple calls.
287
+ # client = Google::Cloud::Run::V2::Revisions::Rest::Client.new
288
+ #
289
+ # # Create a request. To set request fields, pass in keyword arguments.
290
+ # request = Google::Cloud::Run::V2::ListRevisionsRequest.new
291
+ #
292
+ # # Call the list_revisions method.
293
+ # result = client.list_revisions request
294
+ #
295
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
296
+ # # over elements, and API calls will be issued to fetch pages as needed.
297
+ # result.each do |item|
298
+ # # Each element is of type ::Google::Cloud::Run::V2::Revision.
299
+ # p item
300
+ # end
301
+ #
266
302
  def list_revisions request, options = nil
267
303
  raise ::ArgumentError, "request must be provided" if request.nil?
268
304
 
@@ -334,6 +370,29 @@ module Google
334
370
  # @return [::Gapic::Operation]
335
371
  #
336
372
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
373
+ #
374
+ # @example Basic example
375
+ # require "google/cloud/run/v2"
376
+ #
377
+ # # Create a client object. The client can be reused for multiple calls.
378
+ # client = Google::Cloud::Run::V2::Revisions::Rest::Client.new
379
+ #
380
+ # # Create a request. To set request fields, pass in keyword arguments.
381
+ # request = Google::Cloud::Run::V2::DeleteRevisionRequest.new
382
+ #
383
+ # # Call the delete_revision method.
384
+ # result = client.delete_revision request
385
+ #
386
+ # # The returned object is of type Gapic::Operation. You can use it to
387
+ # # check the status of an operation, cancel it, or wait for results.
388
+ # # Here is how to wait for a response.
389
+ # result.wait_until_done! timeout: 60
390
+ # if result.response?
391
+ # p result.response
392
+ # else
393
+ # puts "No response received."
394
+ # end
395
+ #
337
396
  def delete_revision request, options = nil
338
397
  raise ::ArgumentError, "request must be provided" if request.nil?
339
398
 
@@ -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
 
@@ -412,6 +487,29 @@ module Google
412
487
  # @return [::Gapic::Operation]
413
488
  #
414
489
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
490
+ #
491
+ # @example Basic example
492
+ # require "google/longrunning"
493
+ #
494
+ # # Create a client object. The client can be reused for multiple calls.
495
+ # client = Google::Longrunning::Operations::Rest::Client.new
496
+ #
497
+ # # Create a request. To set request fields, pass in keyword arguments.
498
+ # request = Google::Longrunning::WaitOperationRequest.new
499
+ #
500
+ # # Call the wait_operation method.
501
+ # result = client.wait_operation request
502
+ #
503
+ # # The returned object is of type Gapic::Operation. You can use it to
504
+ # # check the status of an operation, cancel it, or wait for results.
505
+ # # Here is how to wait for a response.
506
+ # result.wait_until_done! timeout: 60
507
+ # if result.response?
508
+ # p result.response
509
+ # else
510
+ # puts "No response received."
511
+ # end
512
+ #
415
513
  def wait_operation request, options = nil
416
514
  raise ::ArgumentError, "request must be provided" if request.nil?
417
515
 
@@ -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
 
@@ -1096,6 +1097,14 @@ module Google
1096
1097
  end
1097
1098
  end
1098
1099
 
1100
+ ##
1101
+ # Configuration for the channel pool
1102
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1103
+ #
1104
+ def channel_pool
1105
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1106
+ end
1107
+
1099
1108
  ##
1100
1109
  # Configuration RPC class for the Services API.
1101
1110
  #
@@ -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
@@ -709,6 +710,14 @@ module Google
709
710
  end
710
711
  end
711
712
 
713
+ ##
714
+ # Configuration for the channel pool
715
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
716
+ #
717
+ def channel_pool
718
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
719
+ end
720
+
712
721
  ##
713
722
  # Configuration RPC class for the Operations API.
714
723
  #
@@ -216,6 +216,29 @@ module Google
216
216
  # @return [::Gapic::Operation]
217
217
  #
218
218
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
219
+ #
220
+ # @example Basic example
221
+ # require "google/cloud/run/v2"
222
+ #
223
+ # # Create a client object. The client can be reused for multiple calls.
224
+ # client = Google::Cloud::Run::V2::Services::Rest::Client.new
225
+ #
226
+ # # Create a request. To set request fields, pass in keyword arguments.
227
+ # request = Google::Cloud::Run::V2::CreateServiceRequest.new
228
+ #
229
+ # # Call the create_service method.
230
+ # result = client.create_service request
231
+ #
232
+ # # The returned object is of type Gapic::Operation. You can use it to
233
+ # # check the status of an operation, cancel it, or wait for results.
234
+ # # Here is how to wait for a response.
235
+ # result.wait_until_done! timeout: 60
236
+ # if result.response?
237
+ # p result.response
238
+ # else
239
+ # puts "No response received."
240
+ # end
241
+ #
219
242
  def create_service request, options = nil
220
243
  raise ::ArgumentError, "request must be provided" if request.nil?
221
244
 
@@ -281,6 +304,22 @@ module Google
281
304
  # @return [::Google::Cloud::Run::V2::Service]
282
305
  #
283
306
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
307
+ #
308
+ # @example Basic example
309
+ # require "google/cloud/run/v2"
310
+ #
311
+ # # Create a client object. The client can be reused for multiple calls.
312
+ # client = Google::Cloud::Run::V2::Services::Rest::Client.new
313
+ #
314
+ # # Create a request. To set request fields, pass in keyword arguments.
315
+ # request = Google::Cloud::Run::V2::GetServiceRequest.new
316
+ #
317
+ # # Call the get_service method.
318
+ # result = client.get_service request
319
+ #
320
+ # # The returned object is of type Google::Cloud::Run::V2::Service.
321
+ # p result
322
+ #
284
323
  def get_service request, options = nil
285
324
  raise ::ArgumentError, "request must be provided" if request.nil?
286
325
 
@@ -353,6 +392,26 @@ module Google
353
392
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Run::V2::Service>]
354
393
  #
355
394
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
395
+ #
396
+ # @example Basic example
397
+ # require "google/cloud/run/v2"
398
+ #
399
+ # # Create a client object. The client can be reused for multiple calls.
400
+ # client = Google::Cloud::Run::V2::Services::Rest::Client.new
401
+ #
402
+ # # Create a request. To set request fields, pass in keyword arguments.
403
+ # request = Google::Cloud::Run::V2::ListServicesRequest.new
404
+ #
405
+ # # Call the list_services method.
406
+ # result = client.list_services request
407
+ #
408
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
409
+ # # over elements, and API calls will be issued to fetch pages as needed.
410
+ # result.each do |item|
411
+ # # Each element is of type ::Google::Cloud::Run::V2::Service.
412
+ # p item
413
+ # end
414
+ #
356
415
  def list_services request, options = nil
357
416
  raise ::ArgumentError, "request must be provided" if request.nil?
358
417
 
@@ -423,6 +482,29 @@ module Google
423
482
  # @return [::Gapic::Operation]
424
483
  #
425
484
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
485
+ #
486
+ # @example Basic example
487
+ # require "google/cloud/run/v2"
488
+ #
489
+ # # Create a client object. The client can be reused for multiple calls.
490
+ # client = Google::Cloud::Run::V2::Services::Rest::Client.new
491
+ #
492
+ # # Create a request. To set request fields, pass in keyword arguments.
493
+ # request = Google::Cloud::Run::V2::UpdateServiceRequest.new
494
+ #
495
+ # # Call the update_service method.
496
+ # result = client.update_service request
497
+ #
498
+ # # The returned object is of type Gapic::Operation. You can use it to
499
+ # # check the status of an operation, cancel it, or wait for results.
500
+ # # Here is how to wait for a response.
501
+ # result.wait_until_done! timeout: 60
502
+ # if result.response?
503
+ # p result.response
504
+ # else
505
+ # puts "No response received."
506
+ # end
507
+ #
426
508
  def update_service request, options = nil
427
509
  raise ::ArgumentError, "request must be provided" if request.nil?
428
510
 
@@ -496,6 +578,29 @@ module Google
496
578
  # @return [::Gapic::Operation]
497
579
  #
498
580
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
581
+ #
582
+ # @example Basic example
583
+ # require "google/cloud/run/v2"
584
+ #
585
+ # # Create a client object. The client can be reused for multiple calls.
586
+ # client = Google::Cloud::Run::V2::Services::Rest::Client.new
587
+ #
588
+ # # Create a request. To set request fields, pass in keyword arguments.
589
+ # request = Google::Cloud::Run::V2::DeleteServiceRequest.new
590
+ #
591
+ # # Call the delete_service method.
592
+ # result = client.delete_service request
593
+ #
594
+ # # The returned object is of type Gapic::Operation. You can use it to
595
+ # # check the status of an operation, cancel it, or wait for results.
596
+ # # Here is how to wait for a response.
597
+ # result.wait_until_done! timeout: 60
598
+ # if result.response?
599
+ # p result.response
600
+ # else
601
+ # puts "No response received."
602
+ # end
603
+ #
499
604
  def delete_service request, options = nil
500
605
  raise ::ArgumentError, "request must be provided" if request.nil?
501
606
 
@@ -564,6 +669,22 @@ module Google
564
669
  # @return [::Google::Iam::V1::Policy]
565
670
  #
566
671
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
672
+ #
673
+ # @example Basic example
674
+ # require "google/cloud/run/v2"
675
+ #
676
+ # # Create a client object. The client can be reused for multiple calls.
677
+ # client = Google::Cloud::Run::V2::Services::Rest::Client.new
678
+ #
679
+ # # Create a request. To set request fields, pass in keyword arguments.
680
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
681
+ #
682
+ # # Call the get_iam_policy method.
683
+ # result = client.get_iam_policy request
684
+ #
685
+ # # The returned object is of type Google::Iam::V1::Policy.
686
+ # p result
687
+ #
567
688
  def get_iam_policy request, options = nil
568
689
  raise ::ArgumentError, "request must be provided" if request.nil?
569
690
 
@@ -639,6 +760,22 @@ module Google
639
760
  # @return [::Google::Iam::V1::Policy]
640
761
  #
641
762
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
763
+ #
764
+ # @example Basic example
765
+ # require "google/cloud/run/v2"
766
+ #
767
+ # # Create a client object. The client can be reused for multiple calls.
768
+ # client = Google::Cloud::Run::V2::Services::Rest::Client.new
769
+ #
770
+ # # Create a request. To set request fields, pass in keyword arguments.
771
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
772
+ #
773
+ # # Call the set_iam_policy method.
774
+ # result = client.set_iam_policy request
775
+ #
776
+ # # The returned object is of type Google::Iam::V1::Policy.
777
+ # p result
778
+ #
642
779
  def set_iam_policy request, options = nil
643
780
  raise ::ArgumentError, "request must be provided" if request.nil?
644
781
 
@@ -709,6 +846,22 @@ module Google
709
846
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
710
847
  #
711
848
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
849
+ #
850
+ # @example Basic example
851
+ # require "google/cloud/run/v2"
852
+ #
853
+ # # Create a client object. The client can be reused for multiple calls.
854
+ # client = Google::Cloud::Run::V2::Services::Rest::Client.new
855
+ #
856
+ # # Create a request. To set request fields, pass in keyword arguments.
857
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
858
+ #
859
+ # # Call the test_iam_permissions method.
860
+ # result = client.test_iam_permissions request
861
+ #
862
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
863
+ # p result
864
+ #
712
865
  def test_iam_permissions request, options = nil
713
866
  raise ::ArgumentError, "request must be provided" if request.nil?
714
867