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.
- checksums.yaml +4 -4
- data/lib/google/cloud/run/v2/executions/client.rb +10 -1
- data/lib/google/cloud/run/v2/executions/operations.rb +10 -1
- data/lib/google/cloud/run/v2/executions/rest/client.rb +59 -0
- data/lib/google/cloud/run/v2/executions/rest/operations.rb +98 -0
- data/lib/google/cloud/run/v2/jobs/client.rb +10 -1
- data/lib/google/cloud/run/v2/jobs/operations.rb +10 -1
- data/lib/google/cloud/run/v2/jobs/rest/client.rb +176 -0
- data/lib/google/cloud/run/v2/jobs/rest/operations.rb +98 -0
- data/lib/google/cloud/run/v2/revisions/client.rb +10 -1
- data/lib/google/cloud/run/v2/revisions/operations.rb +10 -1
- data/lib/google/cloud/run/v2/revisions/rest/client.rb +59 -0
- data/lib/google/cloud/run/v2/revisions/rest/operations.rb +98 -0
- data/lib/google/cloud/run/v2/services/client.rb +10 -1
- data/lib/google/cloud/run/v2/services/operations.rb +10 -1
- data/lib/google/cloud/run/v2/services/rest/client.rb +153 -0
- data/lib/google/cloud/run/v2/services/rest/operations.rb +98 -0
- data/lib/google/cloud/run/v2/tasks/client.rb +10 -1
- data/lib/google/cloud/run/v2/tasks/rest/client.rb +36 -0
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3a72140af8bcdf1af15abb18c107a4c25b1ca513dcf18cb5f450896c7491791
|
4
|
+
data.tar.gz: b1f3f31c471e1057d014bc3d1a2371589eb5f9f123405235397245ad84d9df53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a43efd3c4f10c1a273e89a1224b2f9330f37706e7f25676a61f599126c7413ce1e7f44d295f0668fea35ae089868b0f15d210a320840c61c7e48a7faf8d2e1a2
|
7
|
+
data.tar.gz: 41b610e598584a0a03aa2f474e2cadddd415ff38ea93d1bc490ad5cda179fc75113d8a45154dc0bd53f952c81636adbea87bed85ae997b7014629eb4fe4b145b
|
@@ -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
|
|
@@ -580,6 +581,14 @@ module Google
|
|
580
581
|
end
|
581
582
|
end
|
582
583
|
|
584
|
+
##
|
585
|
+
# Configuration for the channel pool
|
586
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
587
|
+
#
|
588
|
+
def channel_pool
|
589
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
590
|
+
end
|
591
|
+
|
583
592
|
##
|
584
593
|
# Configuration RPC class for the Executions API.
|
585
594
|
#
|
@@ -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
|
#
|
@@ -192,6 +192,22 @@ module Google
|
|
192
192
|
# @return [::Google::Cloud::Run::V2::Execution]
|
193
193
|
#
|
194
194
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
195
|
+
#
|
196
|
+
# @example Basic example
|
197
|
+
# require "google/cloud/run/v2"
|
198
|
+
#
|
199
|
+
# # Create a client object. The client can be reused for multiple calls.
|
200
|
+
# client = Google::Cloud::Run::V2::Executions::Rest::Client.new
|
201
|
+
#
|
202
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
203
|
+
# request = Google::Cloud::Run::V2::GetExecutionRequest.new
|
204
|
+
#
|
205
|
+
# # Call the get_execution method.
|
206
|
+
# result = client.get_execution request
|
207
|
+
#
|
208
|
+
# # The returned object is of type Google::Cloud::Run::V2::Execution.
|
209
|
+
# p result
|
210
|
+
#
|
195
211
|
def get_execution request, options = nil
|
196
212
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
197
213
|
|
@@ -264,6 +280,26 @@ module Google
|
|
264
280
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Run::V2::Execution>]
|
265
281
|
#
|
266
282
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
283
|
+
#
|
284
|
+
# @example Basic example
|
285
|
+
# require "google/cloud/run/v2"
|
286
|
+
#
|
287
|
+
# # Create a client object. The client can be reused for multiple calls.
|
288
|
+
# client = Google::Cloud::Run::V2::Executions::Rest::Client.new
|
289
|
+
#
|
290
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
291
|
+
# request = Google::Cloud::Run::V2::ListExecutionsRequest.new
|
292
|
+
#
|
293
|
+
# # Call the list_executions method.
|
294
|
+
# result = client.list_executions request
|
295
|
+
#
|
296
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
297
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
298
|
+
# result.each do |item|
|
299
|
+
# # Each element is of type ::Google::Cloud::Run::V2::Execution.
|
300
|
+
# p item
|
301
|
+
# end
|
302
|
+
#
|
267
303
|
def list_executions request, options = nil
|
268
304
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
269
305
|
|
@@ -336,6 +372,29 @@ module Google
|
|
336
372
|
# @return [::Gapic::Operation]
|
337
373
|
#
|
338
374
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
375
|
+
#
|
376
|
+
# @example Basic example
|
377
|
+
# require "google/cloud/run/v2"
|
378
|
+
#
|
379
|
+
# # Create a client object. The client can be reused for multiple calls.
|
380
|
+
# client = Google::Cloud::Run::V2::Executions::Rest::Client.new
|
381
|
+
#
|
382
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
383
|
+
# request = Google::Cloud::Run::V2::DeleteExecutionRequest.new
|
384
|
+
#
|
385
|
+
# # Call the delete_execution method.
|
386
|
+
# result = client.delete_execution request
|
387
|
+
#
|
388
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
389
|
+
# # check the status of an operation, cancel it, or wait for results.
|
390
|
+
# # Here is how to wait for a response.
|
391
|
+
# result.wait_until_done! timeout: 60
|
392
|
+
# if result.response?
|
393
|
+
# p result.response
|
394
|
+
# else
|
395
|
+
# puts "No response received."
|
396
|
+
# end
|
397
|
+
#
|
339
398
|
def delete_execution request, options = nil
|
340
399
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
341
400
|
|
@@ -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
|
|
@@ -1162,6 +1163,14 @@ module Google
|
|
1162
1163
|
end
|
1163
1164
|
end
|
1164
1165
|
|
1166
|
+
##
|
1167
|
+
# Configuration for the channel pool
|
1168
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1169
|
+
#
|
1170
|
+
def channel_pool
|
1171
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1172
|
+
end
|
1173
|
+
|
1165
1174
|
##
|
1166
1175
|
# Configuration RPC class for the Jobs API.
|
1167
1176
|
#
|
@@ -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
|
#
|
@@ -199,6 +199,29 @@ module Google
|
|
199
199
|
# @return [::Gapic::Operation]
|
200
200
|
#
|
201
201
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
202
|
+
#
|
203
|
+
# @example Basic example
|
204
|
+
# require "google/cloud/run/v2"
|
205
|
+
#
|
206
|
+
# # Create a client object. The client can be reused for multiple calls.
|
207
|
+
# client = Google::Cloud::Run::V2::Jobs::Rest::Client.new
|
208
|
+
#
|
209
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
210
|
+
# request = Google::Cloud::Run::V2::CreateJobRequest.new
|
211
|
+
#
|
212
|
+
# # Call the create_job method.
|
213
|
+
# result = client.create_job request
|
214
|
+
#
|
215
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
216
|
+
# # check the status of an operation, cancel it, or wait for results.
|
217
|
+
# # Here is how to wait for a response.
|
218
|
+
# result.wait_until_done! timeout: 60
|
219
|
+
# if result.response?
|
220
|
+
# p result.response
|
221
|
+
# else
|
222
|
+
# puts "No response received."
|
223
|
+
# end
|
224
|
+
#
|
202
225
|
def create_job request, options = nil
|
203
226
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
204
227
|
|
@@ -264,6 +287,22 @@ module Google
|
|
264
287
|
# @return [::Google::Cloud::Run::V2::Job]
|
265
288
|
#
|
266
289
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
290
|
+
#
|
291
|
+
# @example Basic example
|
292
|
+
# require "google/cloud/run/v2"
|
293
|
+
#
|
294
|
+
# # Create a client object. The client can be reused for multiple calls.
|
295
|
+
# client = Google::Cloud::Run::V2::Jobs::Rest::Client.new
|
296
|
+
#
|
297
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
298
|
+
# request = Google::Cloud::Run::V2::GetJobRequest.new
|
299
|
+
#
|
300
|
+
# # Call the get_job method.
|
301
|
+
# result = client.get_job request
|
302
|
+
#
|
303
|
+
# # The returned object is of type Google::Cloud::Run::V2::Job.
|
304
|
+
# p result
|
305
|
+
#
|
267
306
|
def get_job request, options = nil
|
268
307
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
269
308
|
|
@@ -335,6 +374,26 @@ module Google
|
|
335
374
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Run::V2::Job>]
|
336
375
|
#
|
337
376
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
377
|
+
#
|
378
|
+
# @example Basic example
|
379
|
+
# require "google/cloud/run/v2"
|
380
|
+
#
|
381
|
+
# # Create a client object. The client can be reused for multiple calls.
|
382
|
+
# client = Google::Cloud::Run::V2::Jobs::Rest::Client.new
|
383
|
+
#
|
384
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
385
|
+
# request = Google::Cloud::Run::V2::ListJobsRequest.new
|
386
|
+
#
|
387
|
+
# # Call the list_jobs method.
|
388
|
+
# result = client.list_jobs request
|
389
|
+
#
|
390
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
391
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
392
|
+
# result.each do |item|
|
393
|
+
# # Each element is of type ::Google::Cloud::Run::V2::Job.
|
394
|
+
# p item
|
395
|
+
# end
|
396
|
+
#
|
338
397
|
def list_jobs request, options = nil
|
339
398
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
340
399
|
|
@@ -405,6 +464,29 @@ module Google
|
|
405
464
|
# @return [::Gapic::Operation]
|
406
465
|
#
|
407
466
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
467
|
+
#
|
468
|
+
# @example Basic example
|
469
|
+
# require "google/cloud/run/v2"
|
470
|
+
#
|
471
|
+
# # Create a client object. The client can be reused for multiple calls.
|
472
|
+
# client = Google::Cloud::Run::V2::Jobs::Rest::Client.new
|
473
|
+
#
|
474
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
475
|
+
# request = Google::Cloud::Run::V2::UpdateJobRequest.new
|
476
|
+
#
|
477
|
+
# # Call the update_job method.
|
478
|
+
# result = client.update_job request
|
479
|
+
#
|
480
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
481
|
+
# # check the status of an operation, cancel it, or wait for results.
|
482
|
+
# # Here is how to wait for a response.
|
483
|
+
# result.wait_until_done! timeout: 60
|
484
|
+
# if result.response?
|
485
|
+
# p result.response
|
486
|
+
# else
|
487
|
+
# puts "No response received."
|
488
|
+
# end
|
489
|
+
#
|
408
490
|
def update_job request, options = nil
|
409
491
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
410
492
|
|
@@ -476,6 +558,29 @@ module Google
|
|
476
558
|
# @return [::Gapic::Operation]
|
477
559
|
#
|
478
560
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
561
|
+
#
|
562
|
+
# @example Basic example
|
563
|
+
# require "google/cloud/run/v2"
|
564
|
+
#
|
565
|
+
# # Create a client object. The client can be reused for multiple calls.
|
566
|
+
# client = Google::Cloud::Run::V2::Jobs::Rest::Client.new
|
567
|
+
#
|
568
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
569
|
+
# request = Google::Cloud::Run::V2::DeleteJobRequest.new
|
570
|
+
#
|
571
|
+
# # Call the delete_job method.
|
572
|
+
# result = client.delete_job request
|
573
|
+
#
|
574
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
575
|
+
# # check the status of an operation, cancel it, or wait for results.
|
576
|
+
# # Here is how to wait for a response.
|
577
|
+
# result.wait_until_done! timeout: 60
|
578
|
+
# if result.response?
|
579
|
+
# p result.response
|
580
|
+
# else
|
581
|
+
# puts "No response received."
|
582
|
+
# end
|
583
|
+
#
|
479
584
|
def delete_job request, options = nil
|
480
585
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
481
586
|
|
@@ -547,6 +652,29 @@ module Google
|
|
547
652
|
# @return [::Gapic::Operation]
|
548
653
|
#
|
549
654
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
655
|
+
#
|
656
|
+
# @example Basic example
|
657
|
+
# require "google/cloud/run/v2"
|
658
|
+
#
|
659
|
+
# # Create a client object. The client can be reused for multiple calls.
|
660
|
+
# client = Google::Cloud::Run::V2::Jobs::Rest::Client.new
|
661
|
+
#
|
662
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
663
|
+
# request = Google::Cloud::Run::V2::RunJobRequest.new
|
664
|
+
#
|
665
|
+
# # Call the run_job method.
|
666
|
+
# result = client.run_job request
|
667
|
+
#
|
668
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
669
|
+
# # check the status of an operation, cancel it, or wait for results.
|
670
|
+
# # Here is how to wait for a response.
|
671
|
+
# result.wait_until_done! timeout: 60
|
672
|
+
# if result.response?
|
673
|
+
# p result.response
|
674
|
+
# else
|
675
|
+
# puts "No response received."
|
676
|
+
# end
|
677
|
+
#
|
550
678
|
def run_job request, options = nil
|
551
679
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
552
680
|
|
@@ -615,6 +743,22 @@ module Google
|
|
615
743
|
# @return [::Google::Iam::V1::Policy]
|
616
744
|
#
|
617
745
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
746
|
+
#
|
747
|
+
# @example Basic example
|
748
|
+
# require "google/cloud/run/v2"
|
749
|
+
#
|
750
|
+
# # Create a client object. The client can be reused for multiple calls.
|
751
|
+
# client = Google::Cloud::Run::V2::Jobs::Rest::Client.new
|
752
|
+
#
|
753
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
754
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
755
|
+
#
|
756
|
+
# # Call the get_iam_policy method.
|
757
|
+
# result = client.get_iam_policy request
|
758
|
+
#
|
759
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
760
|
+
# p result
|
761
|
+
#
|
618
762
|
def get_iam_policy request, options = nil
|
619
763
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
620
764
|
|
@@ -690,6 +834,22 @@ module Google
|
|
690
834
|
# @return [::Google::Iam::V1::Policy]
|
691
835
|
#
|
692
836
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
837
|
+
#
|
838
|
+
# @example Basic example
|
839
|
+
# require "google/cloud/run/v2"
|
840
|
+
#
|
841
|
+
# # Create a client object. The client can be reused for multiple calls.
|
842
|
+
# client = Google::Cloud::Run::V2::Jobs::Rest::Client.new
|
843
|
+
#
|
844
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
845
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
846
|
+
#
|
847
|
+
# # Call the set_iam_policy method.
|
848
|
+
# result = client.set_iam_policy request
|
849
|
+
#
|
850
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
851
|
+
# p result
|
852
|
+
#
|
693
853
|
def set_iam_policy request, options = nil
|
694
854
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
695
855
|
|
@@ -760,6 +920,22 @@ module Google
|
|
760
920
|
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
761
921
|
#
|
762
922
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
923
|
+
#
|
924
|
+
# @example Basic example
|
925
|
+
# require "google/cloud/run/v2"
|
926
|
+
#
|
927
|
+
# # Create a client object. The client can be reused for multiple calls.
|
928
|
+
# client = Google::Cloud::Run::V2::Jobs::Rest::Client.new
|
929
|
+
#
|
930
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
931
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
932
|
+
#
|
933
|
+
# # Call the test_iam_permissions method.
|
934
|
+
# result = client.test_iam_permissions request
|
935
|
+
#
|
936
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
937
|
+
# p result
|
938
|
+
#
|
763
939
|
def test_iam_permissions request, options = nil
|
764
940
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
765
941
|
|