google-apis-run_v2 0.10.0 → 0.13.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.
@@ -52,6 +52,542 @@ module Google
52
52
  @batch_path = 'batch'
53
53
  end
54
54
 
55
+ # Create a Job.
56
+ # @param [String] parent
57
+ # Required. The location and project in which this Job should be created. Format:
58
+ # projects/`projectnumber`/locations/`location`
59
+ # @param [Google::Apis::RunV2::GoogleCloudRunV2Job] google_cloud_run_v2_job_object
60
+ # @param [String] job_id
61
+ # Required. The unique identifier for the Job. The name of the job becomes `
62
+ # parent`/jobs/`job_id`.
63
+ # @param [Boolean] validate_only
64
+ # Indicates that the request should be validated and default values populated,
65
+ # without persisting the request or creating any resources.
66
+ # @param [String] fields
67
+ # Selector specifying which fields to include in a partial response.
68
+ # @param [String] quota_user
69
+ # Available to use for quota purposes for server-side applications. Can be any
70
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
71
+ # @param [Google::Apis::RequestOptions] options
72
+ # Request-specific options
73
+ #
74
+ # @yield [result, err] Result & error if block supplied
75
+ # @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
76
+ # @yieldparam err [StandardError] error object if request failed
77
+ #
78
+ # @return [Google::Apis::RunV2::GoogleLongrunningOperation]
79
+ #
80
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
81
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
82
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
83
+ def create_project_location_job(parent, google_cloud_run_v2_job_object = nil, job_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
84
+ command = make_simple_command(:post, 'v2/{+parent}/jobs', options)
85
+ command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2Job::Representation
86
+ command.request_object = google_cloud_run_v2_job_object
87
+ command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
88
+ command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
89
+ command.params['parent'] = parent unless parent.nil?
90
+ command.query['jobId'] = job_id unless job_id.nil?
91
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
92
+ command.query['fields'] = fields unless fields.nil?
93
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
94
+ execute_or_queue_command(command, &block)
95
+ end
96
+
97
+ # Deletes a Job.
98
+ # @param [String] name
99
+ # Required. The full name of the Job. Format: projects/`projectnumber`/locations/
100
+ # `location`/jobs/`job`
101
+ # @param [String] etag
102
+ # A system-generated fingerprint for this version of the resource. May be used
103
+ # to detect modification conflict during updates.
104
+ # @param [Boolean] force
105
+ # If set to true, the Job and its Executions will be deleted no matter whether
106
+ # any Executions are still running or not. If set to false or unset, the Job and
107
+ # its Executions can only be deleted if there are no running Executions. Any
108
+ # running Execution will fail the deletion.
109
+ # @param [Boolean] validate_only
110
+ # Indicates that the request should be validated without actually deleting any
111
+ # resources.
112
+ # @param [String] fields
113
+ # Selector specifying which fields to include in a partial response.
114
+ # @param [String] quota_user
115
+ # Available to use for quota purposes for server-side applications. Can be any
116
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
117
+ # @param [Google::Apis::RequestOptions] options
118
+ # Request-specific options
119
+ #
120
+ # @yield [result, err] Result & error if block supplied
121
+ # @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
122
+ # @yieldparam err [StandardError] error object if request failed
123
+ #
124
+ # @return [Google::Apis::RunV2::GoogleLongrunningOperation]
125
+ #
126
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
127
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
128
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
129
+ def delete_project_location_job(name, etag: nil, force: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
130
+ command = make_simple_command(:delete, 'v2/{+name}', options)
131
+ command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
132
+ command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
133
+ command.params['name'] = name unless name.nil?
134
+ command.query['etag'] = etag unless etag.nil?
135
+ command.query['force'] = force unless force.nil?
136
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
137
+ command.query['fields'] = fields unless fields.nil?
138
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
139
+ execute_or_queue_command(command, &block)
140
+ end
141
+
142
+ # Gets information about a Job.
143
+ # @param [String] name
144
+ # Required. The full name of the Job. Format: projects/`projectnumber`/locations/
145
+ # `location`/jobs/`job`
146
+ # @param [String] fields
147
+ # Selector specifying which fields to include in a partial response.
148
+ # @param [String] quota_user
149
+ # Available to use for quota purposes for server-side applications. Can be any
150
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
151
+ # @param [Google::Apis::RequestOptions] options
152
+ # Request-specific options
153
+ #
154
+ # @yield [result, err] Result & error if block supplied
155
+ # @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2Job] parsed result object
156
+ # @yieldparam err [StandardError] error object if request failed
157
+ #
158
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2Job]
159
+ #
160
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
161
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
162
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
163
+ def get_project_location_job(name, fields: nil, quota_user: nil, options: nil, &block)
164
+ command = make_simple_command(:get, 'v2/{+name}', options)
165
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Job::Representation
166
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Job
167
+ command.params['name'] = name unless name.nil?
168
+ command.query['fields'] = fields unless fields.nil?
169
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
170
+ execute_or_queue_command(command, &block)
171
+ end
172
+
173
+ # Get the IAM Access Control policy currently in effect for the given Job. This
174
+ # result does not include any inherited policies.
175
+ # @param [String] resource
176
+ # REQUIRED: The resource for which the policy is being requested. See the
177
+ # operation documentation for the appropriate value for this field.
178
+ # @param [Fixnum] options_requested_policy_version
179
+ # Optional. The maximum policy version that will be used to format the policy.
180
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
181
+ # rejected. Requests for policies with any conditional role bindings must
182
+ # specify version 3. Policies with no conditional role bindings may specify any
183
+ # valid value or leave the field unset. The policy in the response might use the
184
+ # policy version that you specified, or it might use a lower policy version. For
185
+ # example, if you specify version 3, but the policy has no conditional role
186
+ # bindings, the response uses version 1. To learn which resources support
187
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
188
+ # google.com/iam/help/conditions/resource-policies).
189
+ # @param [String] fields
190
+ # Selector specifying which fields to include in a partial response.
191
+ # @param [String] quota_user
192
+ # Available to use for quota purposes for server-side applications. Can be any
193
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
194
+ # @param [Google::Apis::RequestOptions] options
195
+ # Request-specific options
196
+ #
197
+ # @yield [result, err] Result & error if block supplied
198
+ # @yieldparam result [Google::Apis::RunV2::GoogleIamV1Policy] parsed result object
199
+ # @yieldparam err [StandardError] error object if request failed
200
+ #
201
+ # @return [Google::Apis::RunV2::GoogleIamV1Policy]
202
+ #
203
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
204
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
205
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
206
+ def get_project_location_job_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
207
+ command = make_simple_command(:get, 'v2/{+resource}:getIamPolicy', options)
208
+ command.response_representation = Google::Apis::RunV2::GoogleIamV1Policy::Representation
209
+ command.response_class = Google::Apis::RunV2::GoogleIamV1Policy
210
+ command.params['resource'] = resource unless resource.nil?
211
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
212
+ command.query['fields'] = fields unless fields.nil?
213
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
214
+ execute_or_queue_command(command, &block)
215
+ end
216
+
217
+ # List Jobs.
218
+ # @param [String] parent
219
+ # Required. The location and project to list resources on. Format: projects/`
220
+ # projectnumber`/locations/`location`
221
+ # @param [Fixnum] page_size
222
+ # Maximum number of Jobs to return in this call.
223
+ # @param [String] page_token
224
+ # A page token received from a previous call to ListJobs. All other parameters
225
+ # must match.
226
+ # @param [Boolean] show_deleted
227
+ # If true, returns deleted (but unexpired) resources along with active ones.
228
+ # @param [String] fields
229
+ # Selector specifying which fields to include in a partial response.
230
+ # @param [String] quota_user
231
+ # Available to use for quota purposes for server-side applications. Can be any
232
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
233
+ # @param [Google::Apis::RequestOptions] options
234
+ # Request-specific options
235
+ #
236
+ # @yield [result, err] Result & error if block supplied
237
+ # @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ListJobsResponse] parsed result object
238
+ # @yieldparam err [StandardError] error object if request failed
239
+ #
240
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2ListJobsResponse]
241
+ #
242
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
243
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
244
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
245
+ def list_project_location_jobs(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
246
+ command = make_simple_command(:get, 'v2/{+parent}/jobs', options)
247
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListJobsResponse::Representation
248
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListJobsResponse
249
+ command.params['parent'] = parent unless parent.nil?
250
+ command.query['pageSize'] = page_size unless page_size.nil?
251
+ command.query['pageToken'] = page_token unless page_token.nil?
252
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
253
+ command.query['fields'] = fields unless fields.nil?
254
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
255
+ execute_or_queue_command(command, &block)
256
+ end
257
+
258
+ # Updates a Job.
259
+ # @param [String] name
260
+ # The fully qualified name of this Job. Format: projects/`project`/locations/`
261
+ # location`/jobs/`job`
262
+ # @param [Google::Apis::RunV2::GoogleCloudRunV2Job] google_cloud_run_v2_job_object
263
+ # @param [Boolean] allow_missing
264
+ # If set to true, and if the Job does not exist, it will create a new one.
265
+ # Caller must have both create and update permissions for this call if this is
266
+ # set to true.
267
+ # @param [Boolean] validate_only
268
+ # Indicates that the request should be validated and default values populated,
269
+ # without persisting the request or updating any resources.
270
+ # @param [String] fields
271
+ # Selector specifying which fields to include in a partial response.
272
+ # @param [String] quota_user
273
+ # Available to use for quota purposes for server-side applications. Can be any
274
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
275
+ # @param [Google::Apis::RequestOptions] options
276
+ # Request-specific options
277
+ #
278
+ # @yield [result, err] Result & error if block supplied
279
+ # @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
280
+ # @yieldparam err [StandardError] error object if request failed
281
+ #
282
+ # @return [Google::Apis::RunV2::GoogleLongrunningOperation]
283
+ #
284
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
285
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
286
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
287
+ def patch_project_location_job(name, google_cloud_run_v2_job_object = nil, allow_missing: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
288
+ command = make_simple_command(:patch, 'v2/{+name}', options)
289
+ command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2Job::Representation
290
+ command.request_object = google_cloud_run_v2_job_object
291
+ command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
292
+ command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
293
+ command.params['name'] = name unless name.nil?
294
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
295
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
296
+ command.query['fields'] = fields unless fields.nil?
297
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
298
+ execute_or_queue_command(command, &block)
299
+ end
300
+
301
+ # Triggers creation of a new Execution of this Job.
302
+ # @param [String] name
303
+ # Required. The full name of the Job. Format: projects/`projectnumber`/locations/
304
+ # `location`/jobs/`job`
305
+ # @param [Google::Apis::RunV2::GoogleCloudRunV2RunJobRequest] google_cloud_run_v2_run_job_request_object
306
+ # @param [String] fields
307
+ # Selector specifying which fields to include in a partial response.
308
+ # @param [String] quota_user
309
+ # Available to use for quota purposes for server-side applications. Can be any
310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
311
+ # @param [Google::Apis::RequestOptions] options
312
+ # Request-specific options
313
+ #
314
+ # @yield [result, err] Result & error if block supplied
315
+ # @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
316
+ # @yieldparam err [StandardError] error object if request failed
317
+ #
318
+ # @return [Google::Apis::RunV2::GoogleLongrunningOperation]
319
+ #
320
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
321
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
322
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
323
+ def run_project_location_job(name, google_cloud_run_v2_run_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
324
+ command = make_simple_command(:post, 'v2/{+name}:run', options)
325
+ command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2RunJobRequest::Representation
326
+ command.request_object = google_cloud_run_v2_run_job_request_object
327
+ command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
328
+ command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
329
+ command.params['name'] = name unless name.nil?
330
+ command.query['fields'] = fields unless fields.nil?
331
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
332
+ execute_or_queue_command(command, &block)
333
+ end
334
+
335
+ # Sets the IAM Access control policy for the specified Job. Overwrites any
336
+ # existing policy.
337
+ # @param [String] resource
338
+ # REQUIRED: The resource for which the policy is being specified. See the
339
+ # operation documentation for the appropriate value for this field.
340
+ # @param [Google::Apis::RunV2::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
341
+ # @param [String] fields
342
+ # Selector specifying which fields to include in a partial response.
343
+ # @param [String] quota_user
344
+ # Available to use for quota purposes for server-side applications. Can be any
345
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
346
+ # @param [Google::Apis::RequestOptions] options
347
+ # Request-specific options
348
+ #
349
+ # @yield [result, err] Result & error if block supplied
350
+ # @yieldparam result [Google::Apis::RunV2::GoogleIamV1Policy] parsed result object
351
+ # @yieldparam err [StandardError] error object if request failed
352
+ #
353
+ # @return [Google::Apis::RunV2::GoogleIamV1Policy]
354
+ #
355
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
356
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
357
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
358
+ def set_project_location_job_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
359
+ command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
360
+ command.request_representation = Google::Apis::RunV2::GoogleIamV1SetIamPolicyRequest::Representation
361
+ command.request_object = google_iam_v1_set_iam_policy_request_object
362
+ command.response_representation = Google::Apis::RunV2::GoogleIamV1Policy::Representation
363
+ command.response_class = Google::Apis::RunV2::GoogleIamV1Policy
364
+ command.params['resource'] = resource unless resource.nil?
365
+ command.query['fields'] = fields unless fields.nil?
366
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
367
+ execute_or_queue_command(command, &block)
368
+ end
369
+
370
+ # Returns permissions that a caller has on the specified Project. There are no
371
+ # permissions required for making this API call.
372
+ # @param [String] resource
373
+ # REQUIRED: The resource for which the policy detail is being requested. See the
374
+ # operation documentation for the appropriate value for this field.
375
+ # @param [Google::Apis::RunV2::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
376
+ # @param [String] fields
377
+ # Selector specifying which fields to include in a partial response.
378
+ # @param [String] quota_user
379
+ # Available to use for quota purposes for server-side applications. Can be any
380
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
381
+ # @param [Google::Apis::RequestOptions] options
382
+ # Request-specific options
383
+ #
384
+ # @yield [result, err] Result & error if block supplied
385
+ # @yieldparam result [Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse] parsed result object
386
+ # @yieldparam err [StandardError] error object if request failed
387
+ #
388
+ # @return [Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse]
389
+ #
390
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
393
+ def test_project_location_job_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
394
+ command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
395
+ command.request_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsRequest::Representation
396
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
397
+ command.response_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse::Representation
398
+ command.response_class = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse
399
+ command.params['resource'] = resource unless resource.nil?
400
+ command.query['fields'] = fields unless fields.nil?
401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
402
+ execute_or_queue_command(command, &block)
403
+ end
404
+
405
+ # Delete an Execution.
406
+ # @param [String] name
407
+ # Required. The name of the Execution to delete. Format: projects/`project`/
408
+ # locations/`location`/jobs/`job`/executions/`execution`
409
+ # @param [String] etag
410
+ # A system-generated fingerprint for this version of the resource. This may be
411
+ # used to detect modification conflict during updates.
412
+ # @param [Boolean] validate_only
413
+ # Indicates that the request should be validated without actually deleting any
414
+ # resources.
415
+ # @param [String] fields
416
+ # Selector specifying which fields to include in a partial response.
417
+ # @param [String] quota_user
418
+ # Available to use for quota purposes for server-side applications. Can be any
419
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
420
+ # @param [Google::Apis::RequestOptions] options
421
+ # Request-specific options
422
+ #
423
+ # @yield [result, err] Result & error if block supplied
424
+ # @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
425
+ # @yieldparam err [StandardError] error object if request failed
426
+ #
427
+ # @return [Google::Apis::RunV2::GoogleLongrunningOperation]
428
+ #
429
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
430
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
431
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
432
+ def delete_project_location_job_execution(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
433
+ command = make_simple_command(:delete, 'v2/{+name}', options)
434
+ command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
435
+ command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
436
+ command.params['name'] = name unless name.nil?
437
+ command.query['etag'] = etag unless etag.nil?
438
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
439
+ command.query['fields'] = fields unless fields.nil?
440
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
441
+ execute_or_queue_command(command, &block)
442
+ end
443
+
444
+ # Gets information about a Execution.
445
+ # @param [String] name
446
+ # Required. The full name of the Execution. Format: projects/`project`/locations/
447
+ # `location`/jobs/`job`/executions/`execution`
448
+ # @param [String] fields
449
+ # Selector specifying which fields to include in a partial response.
450
+ # @param [String] quota_user
451
+ # Available to use for quota purposes for server-side applications. Can be any
452
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
453
+ # @param [Google::Apis::RequestOptions] options
454
+ # Request-specific options
455
+ #
456
+ # @yield [result, err] Result & error if block supplied
457
+ # @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2Execution] parsed result object
458
+ # @yieldparam err [StandardError] error object if request failed
459
+ #
460
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2Execution]
461
+ #
462
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
463
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
464
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
465
+ def get_project_location_job_execution(name, fields: nil, quota_user: nil, options: nil, &block)
466
+ command = make_simple_command(:get, 'v2/{+name}', options)
467
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Execution::Representation
468
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Execution
469
+ command.params['name'] = name unless name.nil?
470
+ command.query['fields'] = fields unless fields.nil?
471
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
472
+ execute_or_queue_command(command, &block)
473
+ end
474
+
475
+ # List Executions from a Job.
476
+ # @param [String] parent
477
+ # Required. The Execution from which the Executions should be listed. To list
478
+ # all Executions across Jobs, use "-" instead of Job name. Format: projects/`
479
+ # project`/locations/`location`/jobs/`job`
480
+ # @param [Fixnum] page_size
481
+ # Maximum number of Executions to return in this call.
482
+ # @param [String] page_token
483
+ # A page token received from a previous call to ListExecutions. All other
484
+ # parameters must match.
485
+ # @param [Boolean] show_deleted
486
+ # If true, returns deleted (but unexpired) resources along with active ones.
487
+ # @param [String] fields
488
+ # Selector specifying which fields to include in a partial response.
489
+ # @param [String] quota_user
490
+ # Available to use for quota purposes for server-side applications. Can be any
491
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
492
+ # @param [Google::Apis::RequestOptions] options
493
+ # Request-specific options
494
+ #
495
+ # @yield [result, err] Result & error if block supplied
496
+ # @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse] parsed result object
497
+ # @yieldparam err [StandardError] error object if request failed
498
+ #
499
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse]
500
+ #
501
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
502
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
503
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
504
+ def list_project_location_job_executions(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
505
+ command = make_simple_command(:get, 'v2/{+parent}/executions', options)
506
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse::Representation
507
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse
508
+ command.params['parent'] = parent unless parent.nil?
509
+ command.query['pageSize'] = page_size unless page_size.nil?
510
+ command.query['pageToken'] = page_token unless page_token.nil?
511
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
512
+ command.query['fields'] = fields unless fields.nil?
513
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
514
+ execute_or_queue_command(command, &block)
515
+ end
516
+
517
+ # Gets information about a Task.
518
+ # @param [String] name
519
+ # Required. The full name of the Task. Format: projects/`project`/locations/`
520
+ # location`/jobs/`job`/executions/`execution`/tasks/`task`
521
+ # @param [String] fields
522
+ # Selector specifying which fields to include in a partial response.
523
+ # @param [String] quota_user
524
+ # Available to use for quota purposes for server-side applications. Can be any
525
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
526
+ # @param [Google::Apis::RequestOptions] options
527
+ # Request-specific options
528
+ #
529
+ # @yield [result, err] Result & error if block supplied
530
+ # @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2Task] parsed result object
531
+ # @yieldparam err [StandardError] error object if request failed
532
+ #
533
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2Task]
534
+ #
535
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
536
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
537
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
538
+ def get_project_location_job_execution_task(name, fields: nil, quota_user: nil, options: nil, &block)
539
+ command = make_simple_command(:get, 'v2/{+name}', options)
540
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Task::Representation
541
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Task
542
+ command.params['name'] = name unless name.nil?
543
+ command.query['fields'] = fields unless fields.nil?
544
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
545
+ execute_or_queue_command(command, &block)
546
+ end
547
+
548
+ # List Tasks from an Execution of a Job.
549
+ # @param [String] parent
550
+ # Required. The Execution from which the Tasks should be listed. To list all
551
+ # Tasks across Executions of a Job, use "-" instead of Execution name. To list
552
+ # all Tasks across Jobs, use "-" instead of Job name. Format: projects/`project`/
553
+ # locations/`location`/jobs/`job`/executions/`execution`
554
+ # @param [Fixnum] page_size
555
+ # Maximum number of Tasks to return in this call.
556
+ # @param [String] page_token
557
+ # A page token received from a previous call to ListTasks. All other parameters
558
+ # must match.
559
+ # @param [Boolean] show_deleted
560
+ # If true, returns deleted (but unexpired) resources along with active ones.
561
+ # @param [String] fields
562
+ # Selector specifying which fields to include in a partial response.
563
+ # @param [String] quota_user
564
+ # Available to use for quota purposes for server-side applications. Can be any
565
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
566
+ # @param [Google::Apis::RequestOptions] options
567
+ # Request-specific options
568
+ #
569
+ # @yield [result, err] Result & error if block supplied
570
+ # @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse] parsed result object
571
+ # @yieldparam err [StandardError] error object if request failed
572
+ #
573
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse]
574
+ #
575
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
576
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
577
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
578
+ def list_project_location_job_execution_tasks(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
579
+ command = make_simple_command(:get, 'v2/{+parent}/tasks', options)
580
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse::Representation
581
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse
582
+ command.params['parent'] = parent unless parent.nil?
583
+ command.query['pageSize'] = page_size unless page_size.nil?
584
+ command.query['pageToken'] = page_token unless page_token.nil?
585
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
586
+ command.query['fields'] = fields unless fields.nil?
587
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
588
+ execute_or_queue_command(command, &block)
589
+ end
590
+
55
591
  # Deletes a long-running operation. This method indicates that the client is no
56
592
  # longer interested in the operation result. It does not cancel the operation.
57
593
  # If the server doesn't support this method, it returns `google.rpc.Code.
@@ -378,8 +914,6 @@ module Google
378
914
  # If set to true, and if the Service does not exist, it will create a new one.
379
915
  # Caller must have both create and update permissions for this call if this is
380
916
  # set to true.
381
- # @param [String] update_mask
382
- # The list of fields to be updated.
383
917
  # @param [Boolean] validate_only
384
918
  # Indicates that the request should be validated and default values populated,
385
919
  # without persisting the request or updating any resources.
@@ -400,7 +934,7 @@ module Google
400
934
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
401
935
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
402
936
  # @raise [Google::Apis::AuthorizationError] Authorization is required
403
- def patch_project_location_service(name, google_cloud_run_v2_service_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
937
+ def patch_project_location_service(name, google_cloud_run_v2_service_object = nil, allow_missing: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
404
938
  command = make_simple_command(:patch, 'v2/{+name}', options)
405
939
  command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2Service::Representation
406
940
  command.request_object = google_cloud_run_v2_service_object
@@ -408,7 +942,6 @@ module Google
408
942
  command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
409
943
  command.params['name'] = name unless name.nil?
410
944
  command.query['allowMissing'] = allow_missing unless allow_missing.nil?
411
- command.query['updateMask'] = update_mask unless update_mask.nil?
412
945
  command.query['validateOnly'] = validate_only unless validate_only.nil?
413
946
  command.query['fields'] = fields unless fields.nil?
414
947
  command.query['quotaUser'] = quota_user unless quota_user.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-run_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-18 00:00:00.000000000 Z
11
+ date: 2022-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.13.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v2
63
63
  post_install_message:
64
64
  rdoc_options: []