google-apis-run_v2 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/run_v2/classes.rb +934 -13
- data/lib/google/apis/run_v2/gem_version.rb +2 -2
- data/lib/google/apis/run_v2/representations.rb +268 -0
- data/lib/google/apis/run_v2/service.rb +539 -0
- metadata +3 -3
@@ -52,6 +52,545 @@ 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 [String] update_mask
|
268
|
+
# The list of fields to be updated.
|
269
|
+
# @param [Boolean] validate_only
|
270
|
+
# Indicates that the request should be validated and default values populated,
|
271
|
+
# without persisting the request or updating any resources.
|
272
|
+
# @param [String] fields
|
273
|
+
# Selector specifying which fields to include in a partial response.
|
274
|
+
# @param [String] quota_user
|
275
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
276
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
277
|
+
# @param [Google::Apis::RequestOptions] options
|
278
|
+
# Request-specific options
|
279
|
+
#
|
280
|
+
# @yield [result, err] Result & error if block supplied
|
281
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
|
282
|
+
# @yieldparam err [StandardError] error object if request failed
|
283
|
+
#
|
284
|
+
# @return [Google::Apis::RunV2::GoogleLongrunningOperation]
|
285
|
+
#
|
286
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
287
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
288
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
289
|
+
def patch_project_location_job(name, google_cloud_run_v2_job_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
290
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
291
|
+
command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2Job::Representation
|
292
|
+
command.request_object = google_cloud_run_v2_job_object
|
293
|
+
command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
|
294
|
+
command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
|
295
|
+
command.params['name'] = name unless name.nil?
|
296
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
297
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
298
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
299
|
+
command.query['fields'] = fields unless fields.nil?
|
300
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
301
|
+
execute_or_queue_command(command, &block)
|
302
|
+
end
|
303
|
+
|
304
|
+
# Triggers creation of a new Execution of this Job.
|
305
|
+
# @param [String] name
|
306
|
+
# Required. The full name of the Job. Format: projects/`projectnumber`/locations/
|
307
|
+
# `location`/jobs/`job`
|
308
|
+
# @param [Google::Apis::RunV2::GoogleCloudRunV2RunJobRequest] google_cloud_run_v2_run_job_request_object
|
309
|
+
# @param [String] fields
|
310
|
+
# Selector specifying which fields to include in a partial response.
|
311
|
+
# @param [String] quota_user
|
312
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
313
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
314
|
+
# @param [Google::Apis::RequestOptions] options
|
315
|
+
# Request-specific options
|
316
|
+
#
|
317
|
+
# @yield [result, err] Result & error if block supplied
|
318
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
|
319
|
+
# @yieldparam err [StandardError] error object if request failed
|
320
|
+
#
|
321
|
+
# @return [Google::Apis::RunV2::GoogleLongrunningOperation]
|
322
|
+
#
|
323
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
324
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
325
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
326
|
+
def run_project_location_job(name, google_cloud_run_v2_run_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
327
|
+
command = make_simple_command(:post, 'v2/{+name}:run', options)
|
328
|
+
command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2RunJobRequest::Representation
|
329
|
+
command.request_object = google_cloud_run_v2_run_job_request_object
|
330
|
+
command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
|
331
|
+
command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
|
332
|
+
command.params['name'] = name unless name.nil?
|
333
|
+
command.query['fields'] = fields unless fields.nil?
|
334
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
335
|
+
execute_or_queue_command(command, &block)
|
336
|
+
end
|
337
|
+
|
338
|
+
# Sets the IAM Access control policy for the specified Job. Overwrites any
|
339
|
+
# existing policy.
|
340
|
+
# @param [String] resource
|
341
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
342
|
+
# operation documentation for the appropriate value for this field.
|
343
|
+
# @param [Google::Apis::RunV2::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
344
|
+
# @param [String] fields
|
345
|
+
# Selector specifying which fields to include in a partial response.
|
346
|
+
# @param [String] quota_user
|
347
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
348
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
349
|
+
# @param [Google::Apis::RequestOptions] options
|
350
|
+
# Request-specific options
|
351
|
+
#
|
352
|
+
# @yield [result, err] Result & error if block supplied
|
353
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleIamV1Policy] parsed result object
|
354
|
+
# @yieldparam err [StandardError] error object if request failed
|
355
|
+
#
|
356
|
+
# @return [Google::Apis::RunV2::GoogleIamV1Policy]
|
357
|
+
#
|
358
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
359
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
360
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
361
|
+
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)
|
362
|
+
command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
|
363
|
+
command.request_representation = Google::Apis::RunV2::GoogleIamV1SetIamPolicyRequest::Representation
|
364
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
365
|
+
command.response_representation = Google::Apis::RunV2::GoogleIamV1Policy::Representation
|
366
|
+
command.response_class = Google::Apis::RunV2::GoogleIamV1Policy
|
367
|
+
command.params['resource'] = resource unless resource.nil?
|
368
|
+
command.query['fields'] = fields unless fields.nil?
|
369
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
370
|
+
execute_or_queue_command(command, &block)
|
371
|
+
end
|
372
|
+
|
373
|
+
# Returns permissions that a caller has on the specified Project. There are no
|
374
|
+
# permissions required for making this API call.
|
375
|
+
# @param [String] resource
|
376
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
377
|
+
# operation documentation for the appropriate value for this field.
|
378
|
+
# @param [Google::Apis::RunV2::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
379
|
+
# @param [String] fields
|
380
|
+
# Selector specifying which fields to include in a partial response.
|
381
|
+
# @param [String] quota_user
|
382
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
383
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
384
|
+
# @param [Google::Apis::RequestOptions] options
|
385
|
+
# Request-specific options
|
386
|
+
#
|
387
|
+
# @yield [result, err] Result & error if block supplied
|
388
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
389
|
+
# @yieldparam err [StandardError] error object if request failed
|
390
|
+
#
|
391
|
+
# @return [Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse]
|
392
|
+
#
|
393
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
394
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
395
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
396
|
+
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)
|
397
|
+
command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
|
398
|
+
command.request_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsRequest::Representation
|
399
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
400
|
+
command.response_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse::Representation
|
401
|
+
command.response_class = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse
|
402
|
+
command.params['resource'] = resource unless resource.nil?
|
403
|
+
command.query['fields'] = fields unless fields.nil?
|
404
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
405
|
+
execute_or_queue_command(command, &block)
|
406
|
+
end
|
407
|
+
|
408
|
+
# Delete an Execution.
|
409
|
+
# @param [String] name
|
410
|
+
# Required. The name of the Execution to delete. Format: projects/`project`/
|
411
|
+
# locations/`location`/jobs/`job`/executions/`execution`
|
412
|
+
# @param [String] etag
|
413
|
+
# A system-generated fingerprint for this version of the resource. This may be
|
414
|
+
# used to detect modification conflict during updates.
|
415
|
+
# @param [Boolean] validate_only
|
416
|
+
# Indicates that the request should be validated without actually deleting any
|
417
|
+
# resources.
|
418
|
+
# @param [String] fields
|
419
|
+
# Selector specifying which fields to include in a partial response.
|
420
|
+
# @param [String] quota_user
|
421
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
422
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
423
|
+
# @param [Google::Apis::RequestOptions] options
|
424
|
+
# Request-specific options
|
425
|
+
#
|
426
|
+
# @yield [result, err] Result & error if block supplied
|
427
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
|
428
|
+
# @yieldparam err [StandardError] error object if request failed
|
429
|
+
#
|
430
|
+
# @return [Google::Apis::RunV2::GoogleLongrunningOperation]
|
431
|
+
#
|
432
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
433
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
434
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
435
|
+
def delete_project_location_job_execution(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
436
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
437
|
+
command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
|
438
|
+
command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
|
439
|
+
command.params['name'] = name unless name.nil?
|
440
|
+
command.query['etag'] = etag unless etag.nil?
|
441
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
442
|
+
command.query['fields'] = fields unless fields.nil?
|
443
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
444
|
+
execute_or_queue_command(command, &block)
|
445
|
+
end
|
446
|
+
|
447
|
+
# Gets information about a Execution.
|
448
|
+
# @param [String] name
|
449
|
+
# Required. The full name of the Execution. Format: projects/`project`/locations/
|
450
|
+
# `location`/jobs/`job`/executions/`execution`
|
451
|
+
# @param [String] fields
|
452
|
+
# Selector specifying which fields to include in a partial response.
|
453
|
+
# @param [String] quota_user
|
454
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
455
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
456
|
+
# @param [Google::Apis::RequestOptions] options
|
457
|
+
# Request-specific options
|
458
|
+
#
|
459
|
+
# @yield [result, err] Result & error if block supplied
|
460
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2Execution] parsed result object
|
461
|
+
# @yieldparam err [StandardError] error object if request failed
|
462
|
+
#
|
463
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2Execution]
|
464
|
+
#
|
465
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
466
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
467
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
468
|
+
def get_project_location_job_execution(name, fields: nil, quota_user: nil, options: nil, &block)
|
469
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
470
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Execution::Representation
|
471
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Execution
|
472
|
+
command.params['name'] = name unless name.nil?
|
473
|
+
command.query['fields'] = fields unless fields.nil?
|
474
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
475
|
+
execute_or_queue_command(command, &block)
|
476
|
+
end
|
477
|
+
|
478
|
+
# List Executions from a Job.
|
479
|
+
# @param [String] parent
|
480
|
+
# Required. The Execution from which the Executions should be listed. To list
|
481
|
+
# all Executions across Jobs, use "-" instead of Job name. Format: projects/`
|
482
|
+
# project`/locations/`location`/jobs/`job`
|
483
|
+
# @param [Fixnum] page_size
|
484
|
+
# Maximum number of Executions to return in this call.
|
485
|
+
# @param [String] page_token
|
486
|
+
# A page token received from a previous call to ListExecutions. All other
|
487
|
+
# parameters must match.
|
488
|
+
# @param [Boolean] show_deleted
|
489
|
+
# If true, returns deleted (but unexpired) resources along with active ones.
|
490
|
+
# @param [String] fields
|
491
|
+
# Selector specifying which fields to include in a partial response.
|
492
|
+
# @param [String] quota_user
|
493
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
494
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
495
|
+
# @param [Google::Apis::RequestOptions] options
|
496
|
+
# Request-specific options
|
497
|
+
#
|
498
|
+
# @yield [result, err] Result & error if block supplied
|
499
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse] parsed result object
|
500
|
+
# @yieldparam err [StandardError] error object if request failed
|
501
|
+
#
|
502
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse]
|
503
|
+
#
|
504
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
505
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
506
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
507
|
+
def list_project_location_job_executions(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
|
508
|
+
command = make_simple_command(:get, 'v2/{+parent}/executions', options)
|
509
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse::Representation
|
510
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse
|
511
|
+
command.params['parent'] = parent unless parent.nil?
|
512
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
513
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
514
|
+
command.query['showDeleted'] = show_deleted unless show_deleted.nil?
|
515
|
+
command.query['fields'] = fields unless fields.nil?
|
516
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
517
|
+
execute_or_queue_command(command, &block)
|
518
|
+
end
|
519
|
+
|
520
|
+
# Gets information about a Task.
|
521
|
+
# @param [String] name
|
522
|
+
# Required. The full name of the Task. Format: projects/`project`/locations/`
|
523
|
+
# location`/jobs/`job`/executions/`execution`/tasks/`task`
|
524
|
+
# @param [String] fields
|
525
|
+
# Selector specifying which fields to include in a partial response.
|
526
|
+
# @param [String] quota_user
|
527
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
528
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
529
|
+
# @param [Google::Apis::RequestOptions] options
|
530
|
+
# Request-specific options
|
531
|
+
#
|
532
|
+
# @yield [result, err] Result & error if block supplied
|
533
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2Task] parsed result object
|
534
|
+
# @yieldparam err [StandardError] error object if request failed
|
535
|
+
#
|
536
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2Task]
|
537
|
+
#
|
538
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
539
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
540
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
541
|
+
def get_project_location_job_execution_task(name, fields: nil, quota_user: nil, options: nil, &block)
|
542
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
543
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Task::Representation
|
544
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Task
|
545
|
+
command.params['name'] = name unless name.nil?
|
546
|
+
command.query['fields'] = fields unless fields.nil?
|
547
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
548
|
+
execute_or_queue_command(command, &block)
|
549
|
+
end
|
550
|
+
|
551
|
+
# List Tasks from an Execution of a Job.
|
552
|
+
# @param [String] parent
|
553
|
+
# Required. The Execution from which the Tasks should be listed. To list all
|
554
|
+
# Tasks across Executions of a Job, use "-" instead of Execution name. To list
|
555
|
+
# all Tasks across Jobs, use "-" instead of Job name. Format: projects/`project`/
|
556
|
+
# locations/`location`/jobs/`job`/executions/`execution`
|
557
|
+
# @param [Fixnum] page_size
|
558
|
+
# Maximum number of Tasks to return in this call.
|
559
|
+
# @param [String] page_token
|
560
|
+
# A page token received from a previous call to ListTasks. All other parameters
|
561
|
+
# must match.
|
562
|
+
# @param [Boolean] show_deleted
|
563
|
+
# If true, returns deleted (but unexpired) resources along with active ones.
|
564
|
+
# @param [String] fields
|
565
|
+
# Selector specifying which fields to include in a partial response.
|
566
|
+
# @param [String] quota_user
|
567
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
568
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
569
|
+
# @param [Google::Apis::RequestOptions] options
|
570
|
+
# Request-specific options
|
571
|
+
#
|
572
|
+
# @yield [result, err] Result & error if block supplied
|
573
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse] parsed result object
|
574
|
+
# @yieldparam err [StandardError] error object if request failed
|
575
|
+
#
|
576
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse]
|
577
|
+
#
|
578
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
579
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
580
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
581
|
+
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)
|
582
|
+
command = make_simple_command(:get, 'v2/{+parent}/tasks', options)
|
583
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse::Representation
|
584
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse
|
585
|
+
command.params['parent'] = parent unless parent.nil?
|
586
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
587
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
588
|
+
command.query['showDeleted'] = show_deleted unless show_deleted.nil?
|
589
|
+
command.query['fields'] = fields unless fields.nil?
|
590
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
591
|
+
execute_or_queue_command(command, &block)
|
592
|
+
end
|
593
|
+
|
55
594
|
# Deletes a long-running operation. This method indicates that the client is no
|
56
595
|
# longer interested in the operation result. It does not cancel the operation.
|
57
596
|
# If the server doesn't support this method, it returns `google.rpc.Code.
|
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.
|
4
|
+
version: 0.11.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-
|
11
|
+
date: 2022-04-25 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.11.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: []
|