google-apis-run_v1alpha1 0.2.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,3394 +50,11 @@ module Google
50
50
  @batch_path = 'batch'
51
51
  end
52
52
 
53
- # RPC to list authorized domains.
54
- # @param [String] parent
55
- # Name of the parent Application resource. Example: `apps/myapp`.
56
- # @param [Fixnum] page_size
57
- # Maximum results to return per page.
58
- # @param [String] page_token
59
- # Continuation token for fetching the next page of results.
60
- # @param [String] fields
61
- # Selector specifying which fields to include in a partial response.
62
- # @param [String] quota_user
63
- # Available to use for quota purposes for server-side applications. Can be any
64
- # arbitrary string assigned to a user, but should not exceed 40 characters.
65
- # @param [Google::Apis::RequestOptions] options
66
- # Request-specific options
67
- #
68
- # @yield [result, err] Result & error if block supplied
69
- # @yieldparam result [Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse] parsed result object
70
- # @yieldparam err [StandardError] error object if request failed
71
- #
72
- # @return [Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse]
73
- #
74
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
- # @raise [Google::Apis::AuthorizationError] Authorization is required
77
- def list_namespace_authorizeddomains(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
78
- command = make_simple_command(:get, 'apis/domains.cloudrun.com/v1alpha1/{+parent}/authorizeddomains', options)
79
- command.response_representation = Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse::Representation
80
- command.response_class = Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse
81
- command.params['parent'] = parent unless parent.nil?
82
- command.query['pageSize'] = page_size unless page_size.nil?
83
- command.query['pageToken'] = page_token unless page_token.nil?
84
- command.query['fields'] = fields unless fields.nil?
85
- command.query['quotaUser'] = quota_user unless quota_user.nil?
86
- execute_or_queue_command(command, &block)
87
- end
88
-
89
- # Creates a new cloudauditlogssource.
90
- # @param [String] parent
91
- # The project ID or project number in which this cloudauditlogssource should be
92
- # created.
93
- # @param [Google::Apis::RunV1alpha1::CloudAuditLogsSource] cloud_audit_logs_source_object
94
- # @param [String] fields
95
- # Selector specifying which fields to include in a partial response.
96
- # @param [String] quota_user
97
- # Available to use for quota purposes for server-side applications. Can be any
98
- # arbitrary string assigned to a user, but should not exceed 40 characters.
99
- # @param [Google::Apis::RequestOptions] options
100
- # Request-specific options
101
- #
102
- # @yield [result, err] Result & error if block supplied
103
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLogsSource] parsed result object
104
- # @yieldparam err [StandardError] error object if request failed
105
- #
106
- # @return [Google::Apis::RunV1alpha1::CloudAuditLogsSource]
107
- #
108
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
- # @raise [Google::Apis::AuthorizationError] Authorization is required
111
- def create_namespace_cloudauditlogssource(parent, cloud_audit_logs_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
112
- command = make_simple_command(:post, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources', options)
113
- command.request_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation
114
- command.request_object = cloud_audit_logs_source_object
115
- command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation
116
- command.response_class = Google::Apis::RunV1alpha1::CloudAuditLogsSource
117
- command.params['parent'] = parent unless parent.nil?
118
- command.query['fields'] = fields unless fields.nil?
119
- command.query['quotaUser'] = quota_user unless quota_user.nil?
120
- execute_or_queue_command(command, &block)
121
- end
122
-
123
- # Rpc to delete a cloudauditlogssource.
124
- # @param [String] name
125
- # The name of the cloudauditlogssource being deleted. If needed, replace `
126
- # namespace_id` with the project ID.
127
- # @param [String] api_version
128
- # Cloud Run currently ignores this parameter.
129
- # @param [String] kind
130
- # Cloud Run currently ignores this parameter.
131
- # @param [String] propagation_policy
132
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
133
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
134
- # workloads/controllers/garbage-collection/ for more information.
135
- # @param [String] fields
136
- # Selector specifying which fields to include in a partial response.
137
- # @param [String] quota_user
138
- # Available to use for quota purposes for server-side applications. Can be any
139
- # arbitrary string assigned to a user, but should not exceed 40 characters.
140
- # @param [Google::Apis::RequestOptions] options
141
- # Request-specific options
142
- #
143
- # @yield [result, err] Result & error if block supplied
144
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
145
- # @yieldparam err [StandardError] error object if request failed
146
- #
147
- # @return [Google::Apis::RunV1alpha1::Empty]
148
- #
149
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
150
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
151
- # @raise [Google::Apis::AuthorizationError] Authorization is required
152
- def delete_namespace_cloudauditlogssource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
153
- command = make_simple_command(:delete, 'apis/events.cloud.google.com/v1alpha1/{+name}', options)
154
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
155
- command.response_class = Google::Apis::RunV1alpha1::Empty
156
- command.params['name'] = name unless name.nil?
157
- command.query['apiVersion'] = api_version unless api_version.nil?
158
- command.query['kind'] = kind unless kind.nil?
159
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
160
- command.query['fields'] = fields unless fields.nil?
161
- command.query['quotaUser'] = quota_user unless quota_user.nil?
162
- execute_or_queue_command(command, &block)
163
- end
164
-
165
- # Rpc to get information about a cloudauditlogssource.
166
- # @param [String] name
167
- # The name of the cloudauditlogssource being retrieved. If needed, replace `
168
- # namespace_id` with the project ID.
169
- # @param [String] fields
170
- # Selector specifying which fields to include in a partial response.
171
- # @param [String] quota_user
172
- # Available to use for quota purposes for server-side applications. Can be any
173
- # arbitrary string assigned to a user, but should not exceed 40 characters.
174
- # @param [Google::Apis::RequestOptions] options
175
- # Request-specific options
176
- #
177
- # @yield [result, err] Result & error if block supplied
178
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLogsSource] parsed result object
179
- # @yieldparam err [StandardError] error object if request failed
180
- #
181
- # @return [Google::Apis::RunV1alpha1::CloudAuditLogsSource]
182
- #
183
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
184
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
- # @raise [Google::Apis::AuthorizationError] Authorization is required
186
- def get_namespace_cloudauditlogssource(name, fields: nil, quota_user: nil, options: nil, &block)
187
- command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+name}', options)
188
- command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation
189
- command.response_class = Google::Apis::RunV1alpha1::CloudAuditLogsSource
190
- command.params['name'] = name unless name.nil?
191
- command.query['fields'] = fields unless fields.nil?
192
- command.query['quotaUser'] = quota_user unless quota_user.nil?
193
- execute_or_queue_command(command, &block)
194
- end
195
-
196
- # Rpc to list cloudauditlogssources.
197
- # @param [String] parent
198
- # The project ID or project number from which the cloudauditlogssources should
199
- # be listed.
200
- # @param [String] continue
201
- # Optional encoded string to continue paging.
202
- # @param [String] field_selector
203
- # Allows to filter resources based on a specific value for a field name. Send
204
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
205
- # used by Cloud Run.
206
- # @param [Boolean] include_uninitialized
207
- # Not currently used by Cloud Run.
208
- # @param [String] label_selector
209
- # Allows to filter resources based on a label. Supported operations are =, !=,
210
- # exists, in, and notIn.
211
- # @param [Fixnum] limit
212
- # The maximum number of records that should be returned.
213
- # @param [String] resource_version
214
- # The baseline resource version from which the list or watch operation should
215
- # start. Not currently used by Cloud Run.
216
- # @param [Boolean] watch
217
- # Flag that indicates that the client expects to watch this resource as well.
218
- # Not currently used by Cloud Run.
219
- # @param [String] fields
220
- # Selector specifying which fields to include in a partial response.
221
- # @param [String] quota_user
222
- # Available to use for quota purposes for server-side applications. Can be any
223
- # arbitrary string assigned to a user, but should not exceed 40 characters.
224
- # @param [Google::Apis::RequestOptions] options
225
- # Request-specific options
226
- #
227
- # @yield [result, err] Result & error if block supplied
228
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse] parsed result object
229
- # @yieldparam err [StandardError] error object if request failed
230
- #
231
- # @return [Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse]
232
- #
233
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
234
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
235
- # @raise [Google::Apis::AuthorizationError] Authorization is required
236
- def list_namespace_cloudauditlogssources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
237
- command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources', options)
238
- command.response_representation = Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse::Representation
239
- command.response_class = Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse
240
- command.params['parent'] = parent unless parent.nil?
241
- command.query['continue'] = continue unless continue.nil?
242
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
243
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
244
- command.query['labelSelector'] = label_selector unless label_selector.nil?
245
- command.query['limit'] = limit unless limit.nil?
246
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
247
- command.query['watch'] = watch unless watch.nil?
248
- command.query['fields'] = fields unless fields.nil?
249
- command.query['quotaUser'] = quota_user unless quota_user.nil?
250
- execute_or_queue_command(command, &block)
251
- end
252
-
253
- # Creates a new cloudpubsubsource.
254
- # @param [String] parent
255
- # The project ID or project number in which this cloudpubsubsource should be
256
- # created.
257
- # @param [Google::Apis::RunV1alpha1::CloudPubSubSource] cloud_pub_sub_source_object
258
- # @param [String] fields
259
- # Selector specifying which fields to include in a partial response.
260
- # @param [String] quota_user
261
- # Available to use for quota purposes for server-side applications. Can be any
262
- # arbitrary string assigned to a user, but should not exceed 40 characters.
263
- # @param [Google::Apis::RequestOptions] options
264
- # Request-specific options
265
- #
266
- # @yield [result, err] Result & error if block supplied
267
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudPubSubSource] parsed result object
268
- # @yieldparam err [StandardError] error object if request failed
269
- #
270
- # @return [Google::Apis::RunV1alpha1::CloudPubSubSource]
271
- #
272
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
273
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
274
- # @raise [Google::Apis::AuthorizationError] Authorization is required
275
- def create_namespace_cloudpubsubsource(parent, cloud_pub_sub_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
276
- command = make_simple_command(:post, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources', options)
277
- command.request_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation
278
- command.request_object = cloud_pub_sub_source_object
279
- command.response_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation
280
- command.response_class = Google::Apis::RunV1alpha1::CloudPubSubSource
281
- command.params['parent'] = parent unless parent.nil?
282
- command.query['fields'] = fields unless fields.nil?
283
- command.query['quotaUser'] = quota_user unless quota_user.nil?
284
- execute_or_queue_command(command, &block)
285
- end
286
-
287
- # Rpc to delete a cloudpubsubsource.
288
- # @param [String] name
289
- # The name of the cloudpubsubsource being deleted. If needed, replace `
290
- # namespace_id` with the project ID.
291
- # @param [String] api_version
292
- # Cloud Run currently ignores this parameter.
293
- # @param [String] kind
294
- # Cloud Run currently ignores this parameter.
295
- # @param [String] propagation_policy
296
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
297
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
298
- # workloads/controllers/garbage-collection/ for more information.
299
- # @param [String] fields
300
- # Selector specifying which fields to include in a partial response.
301
- # @param [String] quota_user
302
- # Available to use for quota purposes for server-side applications. Can be any
303
- # arbitrary string assigned to a user, but should not exceed 40 characters.
304
- # @param [Google::Apis::RequestOptions] options
305
- # Request-specific options
306
- #
307
- # @yield [result, err] Result & error if block supplied
308
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
309
- # @yieldparam err [StandardError] error object if request failed
310
- #
311
- # @return [Google::Apis::RunV1alpha1::Empty]
312
- #
313
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
- # @raise [Google::Apis::AuthorizationError] Authorization is required
316
- def delete_namespace_cloudpubsubsource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
317
- command = make_simple_command(:delete, 'apis/events.cloud.google.com/v1alpha1/{+name}', options)
318
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
319
- command.response_class = Google::Apis::RunV1alpha1::Empty
320
- command.params['name'] = name unless name.nil?
321
- command.query['apiVersion'] = api_version unless api_version.nil?
322
- command.query['kind'] = kind unless kind.nil?
323
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
324
- command.query['fields'] = fields unless fields.nil?
325
- command.query['quotaUser'] = quota_user unless quota_user.nil?
326
- execute_or_queue_command(command, &block)
327
- end
328
-
329
- # Rpc to get information about a cloudpubsubsource.
330
- # @param [String] name
331
- # The name of the cloudpubsubsource being retrieved. If needed, replace `
332
- # namespace_id` with the project ID.
333
- # @param [String] fields
334
- # Selector specifying which fields to include in a partial response.
335
- # @param [String] quota_user
336
- # Available to use for quota purposes for server-side applications. Can be any
337
- # arbitrary string assigned to a user, but should not exceed 40 characters.
338
- # @param [Google::Apis::RequestOptions] options
339
- # Request-specific options
340
- #
341
- # @yield [result, err] Result & error if block supplied
342
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudPubSubSource] parsed result object
343
- # @yieldparam err [StandardError] error object if request failed
344
- #
345
- # @return [Google::Apis::RunV1alpha1::CloudPubSubSource]
346
- #
347
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
348
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
349
- # @raise [Google::Apis::AuthorizationError] Authorization is required
350
- def get_namespace_cloudpubsubsource(name, fields: nil, quota_user: nil, options: nil, &block)
351
- command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+name}', options)
352
- command.response_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation
353
- command.response_class = Google::Apis::RunV1alpha1::CloudPubSubSource
354
- command.params['name'] = name unless name.nil?
355
- command.query['fields'] = fields unless fields.nil?
356
- command.query['quotaUser'] = quota_user unless quota_user.nil?
357
- execute_or_queue_command(command, &block)
358
- end
359
-
360
- # Rpc to list cloudpubsubsources.
361
- # @param [String] parent
362
- # The project ID or project number from which the cloudpubsubsources should be
363
- # listed.
364
- # @param [String] continue
365
- # Optional encoded string to continue paging.
366
- # @param [String] field_selector
367
- # Allows to filter resources based on a specific value for a field name. Send
368
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
369
- # used by Cloud Run.
370
- # @param [Boolean] include_uninitialized
371
- # Not currently used by Cloud Run.
372
- # @param [String] label_selector
373
- # Allows to filter resources based on a label. Supported operations are =, !=,
374
- # exists, in, and notIn.
375
- # @param [Fixnum] limit
376
- # The maximum number of records that should be returned.
377
- # @param [String] resource_version
378
- # The baseline resource version from which the list or watch operation should
379
- # start. Not currently used by Cloud Run.
380
- # @param [Boolean] watch
381
- # Flag that indicates that the client expects to watch this resource as well.
382
- # Not currently used by Cloud Run.
383
- # @param [String] fields
384
- # Selector specifying which fields to include in a partial response.
385
- # @param [String] quota_user
386
- # Available to use for quota purposes for server-side applications. Can be any
387
- # arbitrary string assigned to a user, but should not exceed 40 characters.
388
- # @param [Google::Apis::RequestOptions] options
389
- # Request-specific options
390
- #
391
- # @yield [result, err] Result & error if block supplied
392
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse] parsed result object
393
- # @yieldparam err [StandardError] error object if request failed
394
- #
395
- # @return [Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse]
396
- #
397
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
398
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
399
- # @raise [Google::Apis::AuthorizationError] Authorization is required
400
- def list_namespace_cloudpubsubsources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
401
- command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources', options)
402
- command.response_representation = Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse::Representation
403
- command.response_class = Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse
404
- command.params['parent'] = parent unless parent.nil?
405
- command.query['continue'] = continue unless continue.nil?
406
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
407
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
408
- command.query['labelSelector'] = label_selector unless label_selector.nil?
409
- command.query['limit'] = limit unless limit.nil?
410
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
411
- command.query['watch'] = watch unless watch.nil?
412
- command.query['fields'] = fields unless fields.nil?
413
- command.query['quotaUser'] = quota_user unless quota_user.nil?
414
- execute_or_queue_command(command, &block)
415
- end
416
-
417
- # Creates a new cloudschedulersource.
418
- # @param [String] parent
419
- # Required. The project ID or project number in which this cloudschedulersource
420
- # should be created.
421
- # @param [Google::Apis::RunV1alpha1::CloudSchedulerSource] cloud_scheduler_source_object
422
- # @param [String] fields
423
- # Selector specifying which fields to include in a partial response.
424
- # @param [String] quota_user
425
- # Available to use for quota purposes for server-side applications. Can be any
426
- # arbitrary string assigned to a user, but should not exceed 40 characters.
427
- # @param [Google::Apis::RequestOptions] options
428
- # Request-specific options
429
- #
430
- # @yield [result, err] Result & error if block supplied
431
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudSchedulerSource] parsed result object
432
- # @yieldparam err [StandardError] error object if request failed
433
- #
434
- # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource]
435
- #
436
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
437
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
438
- # @raise [Google::Apis::AuthorizationError] Authorization is required
439
- def create_namespace_cloudschedulersource(parent, cloud_scheduler_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
440
- command = make_simple_command(:post, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources', options)
441
- command.request_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
442
- command.request_object = cloud_scheduler_source_object
443
- command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
444
- command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource
445
- command.params['parent'] = parent unless parent.nil?
446
- command.query['fields'] = fields unless fields.nil?
447
- command.query['quotaUser'] = quota_user unless quota_user.nil?
448
- execute_or_queue_command(command, &block)
449
- end
450
-
451
- # Rpc to delete a cloudschedulersource.
452
- # @param [String] name
453
- # Required. The name of the cloudschedulersource being deleted. If needed,
454
- # replace `namespace_id` with the project ID.
455
- # @param [String] api_version
456
- # Cloud Run currently ignores this parameter.
457
- # @param [String] kind
458
- # Cloud Run currently ignores this parameter.
459
- # @param [String] propagation_policy
460
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
461
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
462
- # workloads/controllers/garbage-collection/ for more information.
463
- # @param [String] fields
464
- # Selector specifying which fields to include in a partial response.
465
- # @param [String] quota_user
466
- # Available to use for quota purposes for server-side applications. Can be any
467
- # arbitrary string assigned to a user, but should not exceed 40 characters.
468
- # @param [Google::Apis::RequestOptions] options
469
- # Request-specific options
470
- #
471
- # @yield [result, err] Result & error if block supplied
472
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
473
- # @yieldparam err [StandardError] error object if request failed
474
- #
475
- # @return [Google::Apis::RunV1alpha1::Empty]
476
- #
477
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
478
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
479
- # @raise [Google::Apis::AuthorizationError] Authorization is required
480
- def delete_namespace_cloudschedulersource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
481
- command = make_simple_command(:delete, 'apis/events.cloud.google.com/v1alpha1/{+name}', options)
482
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
483
- command.response_class = Google::Apis::RunV1alpha1::Empty
484
- command.params['name'] = name unless name.nil?
485
- command.query['apiVersion'] = api_version unless api_version.nil?
486
- command.query['kind'] = kind unless kind.nil?
487
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
488
- command.query['fields'] = fields unless fields.nil?
489
- command.query['quotaUser'] = quota_user unless quota_user.nil?
490
- execute_or_queue_command(command, &block)
491
- end
492
-
493
- # Rpc to get information about a cloudschedulersource.
494
- # @param [String] name
495
- # Required. The name of the cloudschedulersource being retrieved. If needed,
496
- # replace `namespace_id` with the project ID.
497
- # @param [String] fields
498
- # Selector specifying which fields to include in a partial response.
499
- # @param [String] quota_user
500
- # Available to use for quota purposes for server-side applications. Can be any
501
- # arbitrary string assigned to a user, but should not exceed 40 characters.
502
- # @param [Google::Apis::RequestOptions] options
503
- # Request-specific options
504
- #
505
- # @yield [result, err] Result & error if block supplied
506
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudSchedulerSource] parsed result object
507
- # @yieldparam err [StandardError] error object if request failed
508
- #
509
- # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource]
510
- #
511
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
512
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
513
- # @raise [Google::Apis::AuthorizationError] Authorization is required
514
- def get_namespace_cloudschedulersource(name, fields: nil, quota_user: nil, options: nil, &block)
515
- command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+name}', options)
516
- command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
517
- command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource
518
- command.params['name'] = name unless name.nil?
519
- command.query['fields'] = fields unless fields.nil?
520
- command.query['quotaUser'] = quota_user unless quota_user.nil?
521
- execute_or_queue_command(command, &block)
522
- end
523
-
524
- # Rpc to list cloudschedulersources.
525
- # @param [String] parent
526
- # Required. The project ID or project number from which the
527
- # cloudschedulersources should be listed.
528
- # @param [String] continue
529
- # Optional encoded string to continue paging.
530
- # @param [String] field_selector
531
- # Allows to filter resources based on a specific value for a field name. Send
532
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
533
- # used by Cloud Run.
534
- # @param [Boolean] include_uninitialized
535
- # Not currently used by Cloud Run.
536
- # @param [String] label_selector
537
- # Allows to filter resources based on a label. Supported operations are =, !=,
538
- # exists, in, and notIn.
539
- # @param [Fixnum] limit
540
- # The maximum number of records that should be returned.
541
- # @param [String] resource_version
542
- # The baseline resource version from which the list or watch operation should
543
- # start. Not currently used by Cloud Run.
544
- # @param [Boolean] watch
545
- # Flag that indicates that the client expects to watch this resource as well.
546
- # Not currently used by Cloud Run.
547
- # @param [String] fields
548
- # Selector specifying which fields to include in a partial response.
549
- # @param [String] quota_user
550
- # Available to use for quota purposes for server-side applications. Can be any
551
- # arbitrary string assigned to a user, but should not exceed 40 characters.
552
- # @param [Google::Apis::RequestOptions] options
553
- # Request-specific options
554
- #
555
- # @yield [result, err] Result & error if block supplied
556
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse] parsed result object
557
- # @yieldparam err [StandardError] error object if request failed
558
- #
559
- # @return [Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse]
560
- #
561
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
562
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
563
- # @raise [Google::Apis::AuthorizationError] Authorization is required
564
- def list_namespace_cloudschedulersources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
565
- command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources', options)
566
- command.response_representation = Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse::Representation
567
- command.response_class = Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse
568
- command.params['parent'] = parent unless parent.nil?
569
- command.query['continue'] = continue unless continue.nil?
570
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
571
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
572
- command.query['labelSelector'] = label_selector unless label_selector.nil?
573
- command.query['limit'] = limit unless limit.nil?
574
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
575
- command.query['watch'] = watch unless watch.nil?
576
- command.query['fields'] = fields unless fields.nil?
577
- command.query['quotaUser'] = quota_user unless quota_user.nil?
578
- execute_or_queue_command(command, &block)
579
- end
580
-
581
- # Rpc to replace a cloudschedulersource. Only the spec and metadata labels and
582
- # annotations are modifiable. After the Update request, Cloud Run will work to
583
- # make the 'status' match the requested 'spec'. May provide metadata.
584
- # resourceVersion to enforce update from last read for optimistic concurrency
585
- # control.
586
- # @param [String] name
587
- # Required. The name of the cloudschedulersource being retrieved. If needed,
588
- # replace `namespace_id` with the project ID.
589
- # @param [Google::Apis::RunV1alpha1::CloudSchedulerSource] cloud_scheduler_source_object
590
- # @param [String] fields
591
- # Selector specifying which fields to include in a partial response.
592
- # @param [String] quota_user
593
- # Available to use for quota purposes for server-side applications. Can be any
594
- # arbitrary string assigned to a user, but should not exceed 40 characters.
595
- # @param [Google::Apis::RequestOptions] options
596
- # Request-specific options
597
- #
598
- # @yield [result, err] Result & error if block supplied
599
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudSchedulerSource] parsed result object
600
- # @yieldparam err [StandardError] error object if request failed
601
- #
602
- # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource]
603
- #
604
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
605
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
- # @raise [Google::Apis::AuthorizationError] Authorization is required
607
- def replace_namespace_cloudschedulersource_cloud_scheduler_source(name, cloud_scheduler_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
608
- command = make_simple_command(:put, 'apis/events.cloud.google.com/v1alpha1/{+name}', options)
609
- command.request_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
610
- command.request_object = cloud_scheduler_source_object
611
- command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
612
- command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource
613
- command.params['name'] = name unless name.nil?
614
- command.query['fields'] = fields unless fields.nil?
615
- command.query['quotaUser'] = quota_user unless quota_user.nil?
616
- execute_or_queue_command(command, &block)
617
- end
618
-
619
- # Creates a new cloudstoragesource.
620
- # @param [String] parent
621
- # Required. The project ID or project number in which this cloudstoragesource
622
- # should be created.
623
- # @param [Google::Apis::RunV1alpha1::CloudStorageSource] cloud_storage_source_object
624
- # @param [String] fields
625
- # Selector specifying which fields to include in a partial response.
626
- # @param [String] quota_user
627
- # Available to use for quota purposes for server-side applications. Can be any
628
- # arbitrary string assigned to a user, but should not exceed 40 characters.
629
- # @param [Google::Apis::RequestOptions] options
630
- # Request-specific options
631
- #
632
- # @yield [result, err] Result & error if block supplied
633
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudStorageSource] parsed result object
634
- # @yieldparam err [StandardError] error object if request failed
635
- #
636
- # @return [Google::Apis::RunV1alpha1::CloudStorageSource]
637
- #
638
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
639
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
640
- # @raise [Google::Apis::AuthorizationError] Authorization is required
641
- def create_namespace_cloudstoragesource(parent, cloud_storage_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
642
- command = make_simple_command(:post, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources', options)
643
- command.request_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
644
- command.request_object = cloud_storage_source_object
645
- command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
646
- command.response_class = Google::Apis::RunV1alpha1::CloudStorageSource
647
- command.params['parent'] = parent unless parent.nil?
648
- command.query['fields'] = fields unless fields.nil?
649
- command.query['quotaUser'] = quota_user unless quota_user.nil?
650
- execute_or_queue_command(command, &block)
651
- end
652
-
653
- # Rpc to delete a cloudstoragesource.
654
- # @param [String] name
655
- # Required. The name of the cloudstoragesource being deleted. If needed, replace
656
- # `namespace_id` with the project ID.
657
- # @param [String] api_version
658
- # Cloud Run currently ignores this parameter.
659
- # @param [String] kind
660
- # Cloud Run currently ignores this parameter.
661
- # @param [String] propagation_policy
662
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
663
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
664
- # workloads/controllers/garbage-collection/ for more information.
665
- # @param [String] fields
666
- # Selector specifying which fields to include in a partial response.
667
- # @param [String] quota_user
668
- # Available to use for quota purposes for server-side applications. Can be any
669
- # arbitrary string assigned to a user, but should not exceed 40 characters.
670
- # @param [Google::Apis::RequestOptions] options
671
- # Request-specific options
672
- #
673
- # @yield [result, err] Result & error if block supplied
674
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
675
- # @yieldparam err [StandardError] error object if request failed
676
- #
677
- # @return [Google::Apis::RunV1alpha1::Empty]
678
- #
679
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
680
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
681
- # @raise [Google::Apis::AuthorizationError] Authorization is required
682
- def delete_namespace_cloudstoragesource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
683
- command = make_simple_command(:delete, 'apis/events.cloud.google.com/v1alpha1/{+name}', options)
684
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
685
- command.response_class = Google::Apis::RunV1alpha1::Empty
686
- command.params['name'] = name unless name.nil?
687
- command.query['apiVersion'] = api_version unless api_version.nil?
688
- command.query['kind'] = kind unless kind.nil?
689
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
690
- command.query['fields'] = fields unless fields.nil?
691
- command.query['quotaUser'] = quota_user unless quota_user.nil?
692
- execute_or_queue_command(command, &block)
693
- end
694
-
695
- # Rpc to get information about a cloudstoragesource.
696
- # @param [String] name
697
- # Required. The name of the cloudstoragesource being retrieved. If needed,
698
- # replace `namespace_id` with the project ID.
699
- # @param [String] fields
700
- # Selector specifying which fields to include in a partial response.
701
- # @param [String] quota_user
702
- # Available to use for quota purposes for server-side applications. Can be any
703
- # arbitrary string assigned to a user, but should not exceed 40 characters.
704
- # @param [Google::Apis::RequestOptions] options
705
- # Request-specific options
706
- #
707
- # @yield [result, err] Result & error if block supplied
708
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudStorageSource] parsed result object
709
- # @yieldparam err [StandardError] error object if request failed
710
- #
711
- # @return [Google::Apis::RunV1alpha1::CloudStorageSource]
712
- #
713
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
714
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
715
- # @raise [Google::Apis::AuthorizationError] Authorization is required
716
- def get_namespace_cloudstoragesource(name, fields: nil, quota_user: nil, options: nil, &block)
717
- command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+name}', options)
718
- command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
719
- command.response_class = Google::Apis::RunV1alpha1::CloudStorageSource
720
- command.params['name'] = name unless name.nil?
721
- command.query['fields'] = fields unless fields.nil?
722
- command.query['quotaUser'] = quota_user unless quota_user.nil?
723
- execute_or_queue_command(command, &block)
724
- end
725
-
726
- # Rpc to list cloudstoragesources.
727
- # @param [String] parent
728
- # Required. The project ID or project number from which the cloudstoragesources
729
- # should be listed.
730
- # @param [String] continue
731
- # Optional encoded string to continue paging.
732
- # @param [String] field_selector
733
- # Allows to filter resources based on a specific value for a field name. Send
734
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
735
- # used by Cloud Run.
736
- # @param [Boolean] include_uninitialized
737
- # Not currently used by Cloud Run.
738
- # @param [String] label_selector
739
- # Allows to filter resources based on a label. Supported operations are =, !=,
740
- # exists, in, and notIn.
741
- # @param [Fixnum] limit
742
- # The maximum number of records that should be returned.
743
- # @param [String] resource_version
744
- # The baseline resource version from which the list or watch operation should
745
- # start. Not currently used by Cloud Run.
746
- # @param [Boolean] watch
747
- # Flag that indicates that the client expects to watch this resource as well.
748
- # Not currently used by Cloud Run.
749
- # @param [String] fields
750
- # Selector specifying which fields to include in a partial response.
751
- # @param [String] quota_user
752
- # Available to use for quota purposes for server-side applications. Can be any
753
- # arbitrary string assigned to a user, but should not exceed 40 characters.
754
- # @param [Google::Apis::RequestOptions] options
755
- # Request-specific options
756
- #
757
- # @yield [result, err] Result & error if block supplied
758
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse] parsed result object
759
- # @yieldparam err [StandardError] error object if request failed
760
- #
761
- # @return [Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse]
762
- #
763
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
764
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
765
- # @raise [Google::Apis::AuthorizationError] Authorization is required
766
- def list_namespace_cloudstoragesources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
767
- command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources', options)
768
- command.response_representation = Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse::Representation
769
- command.response_class = Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse
770
- command.params['parent'] = parent unless parent.nil?
771
- command.query['continue'] = continue unless continue.nil?
772
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
773
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
774
- command.query['labelSelector'] = label_selector unless label_selector.nil?
775
- command.query['limit'] = limit unless limit.nil?
776
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
777
- command.query['watch'] = watch unless watch.nil?
778
- command.query['fields'] = fields unless fields.nil?
779
- command.query['quotaUser'] = quota_user unless quota_user.nil?
780
- execute_or_queue_command(command, &block)
781
- end
782
-
783
- # Rpc to replace a cloudstoragesource. Only the spec and metadata labels and
784
- # annotations are modifiable. After the Update request, Cloud Run will work to
785
- # make the 'status' match the requested 'spec'. May provide metadata.
786
- # resourceVersion to enforce update from last read for optimistic concurrency
787
- # control.
788
- # @param [String] name
789
- # Required. The name of the cloudstoragesource being retrieved. If needed,
790
- # replace `namespace_id` with the project ID.
791
- # @param [Google::Apis::RunV1alpha1::CloudStorageSource] cloud_storage_source_object
792
- # @param [String] fields
793
- # Selector specifying which fields to include in a partial response.
794
- # @param [String] quota_user
795
- # Available to use for quota purposes for server-side applications. Can be any
796
- # arbitrary string assigned to a user, but should not exceed 40 characters.
797
- # @param [Google::Apis::RequestOptions] options
798
- # Request-specific options
799
- #
800
- # @yield [result, err] Result & error if block supplied
801
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudStorageSource] parsed result object
802
- # @yieldparam err [StandardError] error object if request failed
803
- #
804
- # @return [Google::Apis::RunV1alpha1::CloudStorageSource]
805
- #
806
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
807
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
808
- # @raise [Google::Apis::AuthorizationError] Authorization is required
809
- def replace_namespace_cloudstoragesource_cloud_storage_source(name, cloud_storage_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
810
- command = make_simple_command(:put, 'apis/events.cloud.google.com/v1alpha1/{+name}', options)
811
- command.request_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
812
- command.request_object = cloud_storage_source_object
813
- command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
814
- command.response_class = Google::Apis::RunV1alpha1::CloudStorageSource
815
- command.params['name'] = name unless name.nil?
816
- command.query['fields'] = fields unless fields.nil?
817
- command.query['quotaUser'] = quota_user unless quota_user.nil?
818
- execute_or_queue_command(command, &block)
819
- end
820
-
821
- # Rpc to get information about a configuration.
822
- # @param [String] name
823
- # The name of the configuration being retrieved. If needed, replace `
824
- # namespace_id` with the project ID.
825
- # @param [String] fields
826
- # Selector specifying which fields to include in a partial response.
827
- # @param [String] quota_user
828
- # Available to use for quota purposes for server-side applications. Can be any
829
- # arbitrary string assigned to a user, but should not exceed 40 characters.
830
- # @param [Google::Apis::RequestOptions] options
831
- # Request-specific options
832
- #
833
- # @yield [result, err] Result & error if block supplied
834
- # @yieldparam result [Google::Apis::RunV1alpha1::Configuration] parsed result object
835
- # @yieldparam err [StandardError] error object if request failed
836
- #
837
- # @return [Google::Apis::RunV1alpha1::Configuration]
838
- #
839
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
840
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
841
- # @raise [Google::Apis::AuthorizationError] Authorization is required
842
- def get_namespace_configuration(name, fields: nil, quota_user: nil, options: nil, &block)
843
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
844
- command.response_representation = Google::Apis::RunV1alpha1::Configuration::Representation
845
- command.response_class = Google::Apis::RunV1alpha1::Configuration
846
- command.params['name'] = name unless name.nil?
847
- command.query['fields'] = fields unless fields.nil?
848
- command.query['quotaUser'] = quota_user unless quota_user.nil?
849
- execute_or_queue_command(command, &block)
850
- end
851
-
852
- # Rpc to list configurations.
853
- # @param [String] parent
854
- # The project ID or project number from which the configurations should be
855
- # listed.
856
- # @param [String] continue
857
- # Optional encoded string to continue paging.
858
- # @param [String] field_selector
859
- # Allows to filter resources based on a specific value for a field name. Send
860
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
861
- # used by Cloud Run.
862
- # @param [Boolean] include_uninitialized
863
- # Not currently used by Cloud Run.
864
- # @param [String] label_selector
865
- # Allows to filter resources based on a label. Supported operations are =, !=,
866
- # exists, in, and notIn.
867
- # @param [Fixnum] limit
868
- # The maximum number of records that should be returned.
869
- # @param [String] resource_version
870
- # The baseline resource version from which the list or watch operation should
871
- # start. Not currently used by Cloud Run.
872
- # @param [Boolean] watch
873
- # Flag that indicates that the client expects to watch this resource as well.
874
- # Not currently used by Cloud Run.
875
- # @param [String] fields
876
- # Selector specifying which fields to include in a partial response.
877
- # @param [String] quota_user
878
- # Available to use for quota purposes for server-side applications. Can be any
879
- # arbitrary string assigned to a user, but should not exceed 40 characters.
880
- # @param [Google::Apis::RequestOptions] options
881
- # Request-specific options
882
- #
883
- # @yield [result, err] Result & error if block supplied
884
- # @yieldparam result [Google::Apis::RunV1alpha1::ListConfigurationsResponse] parsed result object
885
- # @yieldparam err [StandardError] error object if request failed
886
- #
887
- # @return [Google::Apis::RunV1alpha1::ListConfigurationsResponse]
888
- #
889
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
890
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
891
- # @raise [Google::Apis::AuthorizationError] Authorization is required
892
- def list_namespace_configurations(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
893
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/configurations', options)
894
- command.response_representation = Google::Apis::RunV1alpha1::ListConfigurationsResponse::Representation
895
- command.response_class = Google::Apis::RunV1alpha1::ListConfigurationsResponse
896
- command.params['parent'] = parent unless parent.nil?
897
- command.query['continue'] = continue unless continue.nil?
898
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
899
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
900
- command.query['labelSelector'] = label_selector unless label_selector.nil?
901
- command.query['limit'] = limit unless limit.nil?
902
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
903
- command.query['watch'] = watch unless watch.nil?
904
- command.query['fields'] = fields unless fields.nil?
905
- command.query['quotaUser'] = quota_user unless quota_user.nil?
906
- execute_or_queue_command(command, &block)
907
- end
908
-
909
- # Creates a new domain mapping.
910
- # @param [String] parent
911
- # The project ID or project number in which this domain mapping should be
912
- # created.
913
- # @param [Google::Apis::RunV1alpha1::DomainMapping] domain_mapping_object
914
- # @param [String] fields
915
- # Selector specifying which fields to include in a partial response.
916
- # @param [String] quota_user
917
- # Available to use for quota purposes for server-side applications. Can be any
918
- # arbitrary string assigned to a user, but should not exceed 40 characters.
919
- # @param [Google::Apis::RequestOptions] options
920
- # Request-specific options
921
- #
922
- # @yield [result, err] Result & error if block supplied
923
- # @yieldparam result [Google::Apis::RunV1alpha1::DomainMapping] parsed result object
924
- # @yieldparam err [StandardError] error object if request failed
925
- #
926
- # @return [Google::Apis::RunV1alpha1::DomainMapping]
927
- #
928
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
929
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
930
- # @raise [Google::Apis::AuthorizationError] Authorization is required
931
- def create_namespace_domainmapping(parent, domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block)
932
- command = make_simple_command(:post, 'apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings', options)
933
- command.request_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
934
- command.request_object = domain_mapping_object
935
- command.response_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
936
- command.response_class = Google::Apis::RunV1alpha1::DomainMapping
937
- command.params['parent'] = parent unless parent.nil?
938
- command.query['fields'] = fields unless fields.nil?
939
- command.query['quotaUser'] = quota_user unless quota_user.nil?
940
- execute_or_queue_command(command, &block)
941
- end
942
-
943
- # Rpc to delete a domain mapping.
944
- # @param [String] name
945
- # The name of the domain mapping being deleted. If needed, replace `namespace_id`
946
- # with the project ID.
947
- # @param [String] api_version
948
- # Cloud Run currently ignores this parameter.
949
- # @param [String] kind
950
- # Cloud Run currently ignores this parameter.
951
- # @param [Boolean] orphan_dependents
952
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
953
- # cascading behavior, so this must be false. This attribute is deprecated, and
954
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
955
- # kubernetes/issues/46659 for more info.
956
- # @param [String] propagation_policy
957
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
958
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
959
- # workloads/controllers/garbage-collection/ for more information.
960
- # @param [String] fields
961
- # Selector specifying which fields to include in a partial response.
962
- # @param [String] quota_user
963
- # Available to use for quota purposes for server-side applications. Can be any
964
- # arbitrary string assigned to a user, but should not exceed 40 characters.
965
- # @param [Google::Apis::RequestOptions] options
966
- # Request-specific options
967
- #
968
- # @yield [result, err] Result & error if block supplied
969
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
970
- # @yieldparam err [StandardError] error object if request failed
971
- #
972
- # @return [Google::Apis::RunV1alpha1::Empty]
973
- #
974
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
975
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
976
- # @raise [Google::Apis::AuthorizationError] Authorization is required
977
- def delete_namespace_domainmapping(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
978
- command = make_simple_command(:delete, 'apis/domains.cloudrun.com/v1alpha1/{+name}', options)
979
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
980
- command.response_class = Google::Apis::RunV1alpha1::Empty
981
- command.params['name'] = name unless name.nil?
982
- command.query['apiVersion'] = api_version unless api_version.nil?
983
- command.query['kind'] = kind unless kind.nil?
984
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
985
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
986
- command.query['fields'] = fields unless fields.nil?
987
- command.query['quotaUser'] = quota_user unless quota_user.nil?
988
- execute_or_queue_command(command, &block)
989
- end
990
-
991
- # Rpc to get information about a domain mapping.
992
- # @param [String] name
993
- # The name of the domain mapping being retrieved. If needed, replace `
994
- # namespace_id` with the project ID.
995
- # @param [String] fields
996
- # Selector specifying which fields to include in a partial response.
997
- # @param [String] quota_user
998
- # Available to use for quota purposes for server-side applications. Can be any
999
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1000
- # @param [Google::Apis::RequestOptions] options
1001
- # Request-specific options
1002
- #
1003
- # @yield [result, err] Result & error if block supplied
1004
- # @yieldparam result [Google::Apis::RunV1alpha1::DomainMapping] parsed result object
1005
- # @yieldparam err [StandardError] error object if request failed
1006
- #
1007
- # @return [Google::Apis::RunV1alpha1::DomainMapping]
1008
- #
1009
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1010
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1011
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1012
- def get_namespace_domainmapping(name, fields: nil, quota_user: nil, options: nil, &block)
1013
- command = make_simple_command(:get, 'apis/domains.cloudrun.com/v1alpha1/{+name}', options)
1014
- command.response_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
1015
- command.response_class = Google::Apis::RunV1alpha1::DomainMapping
1016
- command.params['name'] = name unless name.nil?
1017
- command.query['fields'] = fields unless fields.nil?
1018
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1019
- execute_or_queue_command(command, &block)
1020
- end
1021
-
1022
- # Rpc to list domain mappings.
1023
- # @param [String] parent
1024
- # The project ID or project number from which the domain mappings should be
1025
- # listed.
1026
- # @param [String] continue
1027
- # Optional encoded string to continue paging.
1028
- # @param [String] field_selector
1029
- # Allows to filter resources based on a specific value for a field name. Send
1030
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1031
- # used by Cloud Run.
1032
- # @param [Boolean] include_uninitialized
1033
- # Not currently used by Cloud Run.
1034
- # @param [String] label_selector
1035
- # Allows to filter resources based on a label. Supported operations are =, !=,
1036
- # exists, in, and notIn.
1037
- # @param [Fixnum] limit
1038
- # The maximum number of records that should be returned.
1039
- # @param [String] resource_version
1040
- # The baseline resource version from which the list or watch operation should
1041
- # start. Not currently used by Cloud Run.
1042
- # @param [Boolean] watch
1043
- # Flag that indicates that the client expects to watch this resource as well.
1044
- # Not currently used by Cloud Run.
1045
- # @param [String] fields
1046
- # Selector specifying which fields to include in a partial response.
1047
- # @param [String] quota_user
1048
- # Available to use for quota purposes for server-side applications. Can be any
1049
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1050
- # @param [Google::Apis::RequestOptions] options
1051
- # Request-specific options
1052
- #
1053
- # @yield [result, err] Result & error if block supplied
1054
- # @yieldparam result [Google::Apis::RunV1alpha1::ListDomainMappingsResponse] parsed result object
1055
- # @yieldparam err [StandardError] error object if request failed
1056
- #
1057
- # @return [Google::Apis::RunV1alpha1::ListDomainMappingsResponse]
1058
- #
1059
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1060
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1061
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1062
- def list_namespace_domainmappings(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
1063
- command = make_simple_command(:get, 'apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings', options)
1064
- command.response_representation = Google::Apis::RunV1alpha1::ListDomainMappingsResponse::Representation
1065
- command.response_class = Google::Apis::RunV1alpha1::ListDomainMappingsResponse
1066
- command.params['parent'] = parent unless parent.nil?
1067
- command.query['continue'] = continue unless continue.nil?
1068
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1069
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1070
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1071
- command.query['limit'] = limit unless limit.nil?
1072
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1073
- command.query['watch'] = watch unless watch.nil?
1074
- command.query['fields'] = fields unless fields.nil?
1075
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1076
- execute_or_queue_command(command, &block)
1077
- end
1078
-
1079
- # Create a job.
1080
- # @param [String] parent
1081
- # Required. The namespace in which the job should be created. Replace `
1082
- # namespace_id` with the project ID or number.
1083
- # @param [Google::Apis::RunV1alpha1::Job] job_object
1084
- # @param [String] fields
1085
- # Selector specifying which fields to include in a partial response.
1086
- # @param [String] quota_user
1087
- # Available to use for quota purposes for server-side applications. Can be any
1088
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1089
- # @param [Google::Apis::RequestOptions] options
1090
- # Request-specific options
1091
- #
1092
- # @yield [result, err] Result & error if block supplied
1093
- # @yieldparam result [Google::Apis::RunV1alpha1::Job] parsed result object
1094
- # @yieldparam err [StandardError] error object if request failed
1095
- #
1096
- # @return [Google::Apis::RunV1alpha1::Job]
1097
- #
1098
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1099
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1100
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1101
- def create_namespace_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1102
- command = make_simple_command(:post, 'apis/run.googleapis.com/v1alpha1/{+parent}/jobs', options)
1103
- command.request_representation = Google::Apis::RunV1alpha1::Job::Representation
1104
- command.request_object = job_object
1105
- command.response_representation = Google::Apis::RunV1alpha1::Job::Representation
1106
- command.response_class = Google::Apis::RunV1alpha1::Job
1107
- command.params['parent'] = parent unless parent.nil?
1108
- command.query['fields'] = fields unless fields.nil?
1109
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1110
- execute_or_queue_command(command, &block)
1111
- end
1112
-
1113
- # Delete a job.
1114
- # @param [String] name
1115
- # Required. The name of the job to delete. For Cloud Run (fully managed),
1116
- # replace `namespace_id` with the project ID or number.
1117
- # @param [String] api_version
1118
- # Optional. Cloud Run currently ignores this parameter.
1119
- # @param [String] kind
1120
- # Optional. Cloud Run currently ignores this parameter.
1121
- # @param [String] propagation_policy
1122
- # Optional. Specifies the propagation policy of delete. Cloud Run currently
1123
- # ignores this setting, and deletes in the background. Please see kubernetes.io/
1124
- # docs/concepts/workloads/controllers/garbage-collection/ for more information.
1125
- # @param [String] fields
1126
- # Selector specifying which fields to include in a partial response.
1127
- # @param [String] quota_user
1128
- # Available to use for quota purposes for server-side applications. Can be any
1129
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1130
- # @param [Google::Apis::RequestOptions] options
1131
- # Request-specific options
1132
- #
1133
- # @yield [result, err] Result & error if block supplied
1134
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
1135
- # @yieldparam err [StandardError] error object if request failed
1136
- #
1137
- # @return [Google::Apis::RunV1alpha1::Empty]
1138
- #
1139
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1140
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1141
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1142
- def delete_namespace_job(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
1143
- command = make_simple_command(:delete, 'apis/run.googleapis.com/v1alpha1/{+name}', options)
1144
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
1145
- command.response_class = Google::Apis::RunV1alpha1::Empty
1146
- command.params['name'] = name unless name.nil?
1147
- command.query['apiVersion'] = api_version unless api_version.nil?
1148
- command.query['kind'] = kind unless kind.nil?
1149
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1150
- command.query['fields'] = fields unless fields.nil?
1151
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1152
- execute_or_queue_command(command, &block)
1153
- end
1154
-
1155
- # Get information about a job.
1156
- # @param [String] name
1157
- # Required. The name of the job to retrieve. For Cloud Run (fully managed),
1158
- # replace `namespace_id` with the project ID or number.
1159
- # @param [String] fields
1160
- # Selector specifying which fields to include in a partial response.
1161
- # @param [String] quota_user
1162
- # Available to use for quota purposes for server-side applications. Can be any
1163
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1164
- # @param [Google::Apis::RequestOptions] options
1165
- # Request-specific options
1166
- #
1167
- # @yield [result, err] Result & error if block supplied
1168
- # @yieldparam result [Google::Apis::RunV1alpha1::Job] parsed result object
1169
- # @yieldparam err [StandardError] error object if request failed
1170
- #
1171
- # @return [Google::Apis::RunV1alpha1::Job]
1172
- #
1173
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1174
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1175
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1176
- def get_namespace_job(name, fields: nil, quota_user: nil, options: nil, &block)
1177
- command = make_simple_command(:get, 'apis/run.googleapis.com/v1alpha1/{+name}', options)
1178
- command.response_representation = Google::Apis::RunV1alpha1::Job::Representation
1179
- command.response_class = Google::Apis::RunV1alpha1::Job
1180
- command.params['name'] = name unless name.nil?
1181
- command.query['fields'] = fields unless fields.nil?
1182
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1183
- execute_or_queue_command(command, &block)
1184
- end
1185
-
1186
- # List jobs.
1187
- # @param [String] parent
1188
- # Required. The namespace from which the jobs should be listed. Replace `
1189
- # namespace_id` with the project ID or number.
1190
- # @param [String] continue
1191
- # Optional. Optional encoded string to continue paging.
1192
- # @param [String] field_selector
1193
- # Optional. Allows to filter resources based on a specific value for a field
1194
- # name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not
1195
- # currently used by Cloud Run.
1196
- # @param [Boolean] include_uninitialized
1197
- # Optional. Not currently used by Cloud Run.
1198
- # @param [String] label_selector
1199
- # Optional. Allows to filter resources based on a label. Supported operations
1200
- # are =, !=, exists, in, and notIn.
1201
- # @param [Fixnum] limit
1202
- # Optional. The maximum number of records that should be returned.
1203
- # @param [String] resource_version
1204
- # Optional. The baseline resource version from which the list or watch operation
1205
- # should start. Not currently used by Cloud Run.
1206
- # @param [Boolean] watch
1207
- # Optional. Flag that indicates that the client expects to watch this resource
1208
- # as well. Not currently used by Cloud Run.
1209
- # @param [String] fields
1210
- # Selector specifying which fields to include in a partial response.
1211
- # @param [String] quota_user
1212
- # Available to use for quota purposes for server-side applications. Can be any
1213
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1214
- # @param [Google::Apis::RequestOptions] options
1215
- # Request-specific options
1216
- #
1217
- # @yield [result, err] Result & error if block supplied
1218
- # @yieldparam result [Google::Apis::RunV1alpha1::ListJobsResponse] parsed result object
1219
- # @yieldparam err [StandardError] error object if request failed
1220
- #
1221
- # @return [Google::Apis::RunV1alpha1::ListJobsResponse]
1222
- #
1223
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1224
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1225
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1226
- def list_namespace_jobs(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
1227
- command = make_simple_command(:get, 'apis/run.googleapis.com/v1alpha1/{+parent}/jobs', options)
1228
- command.response_representation = Google::Apis::RunV1alpha1::ListJobsResponse::Representation
1229
- command.response_class = Google::Apis::RunV1alpha1::ListJobsResponse
1230
- command.params['parent'] = parent unless parent.nil?
1231
- command.query['continue'] = continue unless continue.nil?
1232
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1233
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1234
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1235
- command.query['limit'] = limit unless limit.nil?
1236
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1237
- command.query['watch'] = watch unless watch.nil?
1238
- command.query['fields'] = fields unless fields.nil?
1239
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1240
- execute_or_queue_command(command, &block)
1241
- end
1242
-
1243
- # Rpc to delete a revision.
1244
- # @param [String] name
1245
- # The name of the revision being deleted. If needed, replace `namespace_id` with
1246
- # the project ID.
1247
- # @param [String] api_version
1248
- # Cloud Run currently ignores this parameter.
1249
- # @param [String] kind
1250
- # Cloud Run currently ignores this parameter.
1251
- # @param [Boolean] orphan_dependents
1252
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
1253
- # cascading behavior, so this must be false. This attribute is deprecated, and
1254
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
1255
- # kubernetes/issues/46659 for more info.
1256
- # @param [String] propagation_policy
1257
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
1258
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1259
- # workloads/controllers/garbage-collection/ for more information.
1260
- # @param [String] fields
1261
- # Selector specifying which fields to include in a partial response.
1262
- # @param [String] quota_user
1263
- # Available to use for quota purposes for server-side applications. Can be any
1264
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1265
- # @param [Google::Apis::RequestOptions] options
1266
- # Request-specific options
1267
- #
1268
- # @yield [result, err] Result & error if block supplied
1269
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
1270
- # @yieldparam err [StandardError] error object if request failed
1271
- #
1272
- # @return [Google::Apis::RunV1alpha1::Empty]
1273
- #
1274
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1275
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1276
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1277
- def delete_namespace_revision(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
1278
- command = make_simple_command(:delete, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
1279
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
1280
- command.response_class = Google::Apis::RunV1alpha1::Empty
1281
- command.params['name'] = name unless name.nil?
1282
- command.query['apiVersion'] = api_version unless api_version.nil?
1283
- command.query['kind'] = kind unless kind.nil?
1284
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
1285
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1286
- command.query['fields'] = fields unless fields.nil?
1287
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1288
- execute_or_queue_command(command, &block)
1289
- end
1290
-
1291
- # Rpc to get information about a revision.
1292
- # @param [String] name
1293
- # The name of the revision being retrieved. If needed, replace `namespace_id`
1294
- # with the project ID.
1295
- # @param [String] fields
1296
- # Selector specifying which fields to include in a partial response.
1297
- # @param [String] quota_user
1298
- # Available to use for quota purposes for server-side applications. Can be any
1299
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1300
- # @param [Google::Apis::RequestOptions] options
1301
- # Request-specific options
1302
- #
1303
- # @yield [result, err] Result & error if block supplied
1304
- # @yieldparam result [Google::Apis::RunV1alpha1::Revision] parsed result object
1305
- # @yieldparam err [StandardError] error object if request failed
1306
- #
1307
- # @return [Google::Apis::RunV1alpha1::Revision]
1308
- #
1309
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1310
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1311
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1312
- def get_namespace_revision(name, fields: nil, quota_user: nil, options: nil, &block)
1313
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
1314
- command.response_representation = Google::Apis::RunV1alpha1::Revision::Representation
1315
- command.response_class = Google::Apis::RunV1alpha1::Revision
1316
- command.params['name'] = name unless name.nil?
1317
- command.query['fields'] = fields unless fields.nil?
1318
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1319
- execute_or_queue_command(command, &block)
1320
- end
1321
-
1322
- # Rpc to list revisions.
1323
- # @param [String] parent
1324
- # The project ID or project number from which the revisions should be listed.
1325
- # @param [String] continue
1326
- # Optional encoded string to continue paging.
1327
- # @param [String] field_selector
1328
- # Allows to filter resources based on a specific value for a field name. Send
1329
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1330
- # used by Cloud Run.
1331
- # @param [Boolean] include_uninitialized
1332
- # Not currently used by Cloud Run.
1333
- # @param [String] label_selector
1334
- # Allows to filter resources based on a label. Supported operations are =, !=,
1335
- # exists, in, and notIn.
1336
- # @param [Fixnum] limit
1337
- # The maximum number of records that should be returned.
1338
- # @param [String] resource_version
1339
- # The baseline resource version from which the list or watch operation should
1340
- # start. Not currently used by Cloud Run.
1341
- # @param [Boolean] watch
1342
- # Flag that indicates that the client expects to watch this resource as well.
1343
- # Not currently used by Cloud Run.
1344
- # @param [String] fields
1345
- # Selector specifying which fields to include in a partial response.
1346
- # @param [String] quota_user
1347
- # Available to use for quota purposes for server-side applications. Can be any
1348
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1349
- # @param [Google::Apis::RequestOptions] options
1350
- # Request-specific options
1351
- #
1352
- # @yield [result, err] Result & error if block supplied
1353
- # @yieldparam result [Google::Apis::RunV1alpha1::ListRevisionsResponse] parsed result object
1354
- # @yieldparam err [StandardError] error object if request failed
1355
- #
1356
- # @return [Google::Apis::RunV1alpha1::ListRevisionsResponse]
1357
- #
1358
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1359
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1360
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1361
- def list_namespace_revisions(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
1362
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/revisions', options)
1363
- command.response_representation = Google::Apis::RunV1alpha1::ListRevisionsResponse::Representation
1364
- command.response_class = Google::Apis::RunV1alpha1::ListRevisionsResponse
1365
- command.params['parent'] = parent unless parent.nil?
1366
- command.query['continue'] = continue unless continue.nil?
1367
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1368
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1369
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1370
- command.query['limit'] = limit unless limit.nil?
1371
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1372
- command.query['watch'] = watch unless watch.nil?
1373
- command.query['fields'] = fields unless fields.nil?
1374
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1375
- execute_or_queue_command(command, &block)
1376
- end
1377
-
1378
- # Rpc to get information about a route.
1379
- # @param [String] name
1380
- # The name of the route being retrieved. If needed, replace `namespace_id` with
1381
- # the project ID.
1382
- # @param [String] fields
1383
- # Selector specifying which fields to include in a partial response.
1384
- # @param [String] quota_user
1385
- # Available to use for quota purposes for server-side applications. Can be any
1386
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1387
- # @param [Google::Apis::RequestOptions] options
1388
- # Request-specific options
1389
- #
1390
- # @yield [result, err] Result & error if block supplied
1391
- # @yieldparam result [Google::Apis::RunV1alpha1::Route] parsed result object
1392
- # @yieldparam err [StandardError] error object if request failed
1393
- #
1394
- # @return [Google::Apis::RunV1alpha1::Route]
1395
- #
1396
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1397
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1398
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1399
- def get_namespace_route(name, fields: nil, quota_user: nil, options: nil, &block)
1400
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
1401
- command.response_representation = Google::Apis::RunV1alpha1::Route::Representation
1402
- command.response_class = Google::Apis::RunV1alpha1::Route
1403
- command.params['name'] = name unless name.nil?
1404
- command.query['fields'] = fields unless fields.nil?
1405
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1406
- execute_or_queue_command(command, &block)
1407
- end
1408
-
1409
- # Rpc to list routes.
1410
- # @param [String] parent
1411
- # The project ID or project number from which the routes should be listed.
1412
- # @param [String] continue
1413
- # Optional encoded string to continue paging.
1414
- # @param [String] field_selector
1415
- # Allows to filter resources based on a specific value for a field name. Send
1416
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1417
- # used by Cloud Run.
1418
- # @param [Boolean] include_uninitialized
1419
- # Not currently used by Cloud Run.
1420
- # @param [String] label_selector
1421
- # Allows to filter resources based on a label. Supported operations are =, !=,
1422
- # exists, in, and notIn.
1423
- # @param [Fixnum] limit
1424
- # The maximum number of records that should be returned.
1425
- # @param [String] resource_version
1426
- # The baseline resource version from which the list or watch operation should
1427
- # start. Not currently used by Cloud Run.
1428
- # @param [Boolean] watch
1429
- # Flag that indicates that the client expects to watch this resource as well.
1430
- # Not currently used by Cloud Run.
1431
- # @param [String] fields
1432
- # Selector specifying which fields to include in a partial response.
1433
- # @param [String] quota_user
1434
- # Available to use for quota purposes for server-side applications. Can be any
1435
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1436
- # @param [Google::Apis::RequestOptions] options
1437
- # Request-specific options
1438
- #
1439
- # @yield [result, err] Result & error if block supplied
1440
- # @yieldparam result [Google::Apis::RunV1alpha1::ListRoutesResponse] parsed result object
1441
- # @yieldparam err [StandardError] error object if request failed
1442
- #
1443
- # @return [Google::Apis::RunV1alpha1::ListRoutesResponse]
1444
- #
1445
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1446
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1447
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1448
- def list_namespace_routes(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
1449
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/routes', options)
1450
- command.response_representation = Google::Apis::RunV1alpha1::ListRoutesResponse::Representation
1451
- command.response_class = Google::Apis::RunV1alpha1::ListRoutesResponse
1452
- command.params['parent'] = parent unless parent.nil?
1453
- command.query['continue'] = continue unless continue.nil?
1454
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1455
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1456
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1457
- command.query['limit'] = limit unless limit.nil?
1458
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1459
- command.query['watch'] = watch unless watch.nil?
1460
- command.query['fields'] = fields unless fields.nil?
1461
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1462
- execute_or_queue_command(command, &block)
1463
- end
1464
-
1465
- # Rpc to create a service.
1466
- # @param [String] parent
1467
- # The project ID or project number in which this service should be created.
1468
- # @param [Google::Apis::RunV1alpha1::Service] service_object
1469
- # @param [String] fields
1470
- # Selector specifying which fields to include in a partial response.
1471
- # @param [String] quota_user
1472
- # Available to use for quota purposes for server-side applications. Can be any
1473
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1474
- # @param [Google::Apis::RequestOptions] options
1475
- # Request-specific options
1476
- #
1477
- # @yield [result, err] Result & error if block supplied
1478
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
1479
- # @yieldparam err [StandardError] error object if request failed
1480
- #
1481
- # @return [Google::Apis::RunV1alpha1::Service]
1482
- #
1483
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1484
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1485
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1486
- def create_namespace_service(parent, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1487
- command = make_simple_command(:post, 'apis/serving.knative.dev/v1alpha1/{+parent}/services', options)
1488
- command.request_representation = Google::Apis::RunV1alpha1::Service::Representation
1489
- command.request_object = service_object
1490
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
1491
- command.response_class = Google::Apis::RunV1alpha1::Service
1492
- command.params['parent'] = parent unless parent.nil?
1493
- command.query['fields'] = fields unless fields.nil?
1494
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1495
- execute_or_queue_command(command, &block)
1496
- end
1497
-
1498
- # Rpc to delete a service. This will cause the Service to stop serving traffic
1499
- # and will delete the child entities like Routes, Configurations and Revisions.
1500
- # @param [String] name
1501
- # The name of the service being deleted. If needed, replace `namespace_id` with
1502
- # the project ID.
1503
- # @param [String] api_version
1504
- # Cloud Run currently ignores this parameter.
1505
- # @param [String] kind
1506
- # Cloud Run currently ignores this parameter.
1507
- # @param [Boolean] orphan_dependents
1508
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
1509
- # cascading behavior, so this must be false. This attribute is deprecated, and
1510
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
1511
- # kubernetes/issues/46659 for more info.
1512
- # @param [String] propagation_policy
1513
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
1514
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1515
- # workloads/controllers/garbage-collection/ for more information.
1516
- # @param [String] fields
1517
- # Selector specifying which fields to include in a partial response.
1518
- # @param [String] quota_user
1519
- # Available to use for quota purposes for server-side applications. Can be any
1520
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1521
- # @param [Google::Apis::RequestOptions] options
1522
- # Request-specific options
1523
- #
1524
- # @yield [result, err] Result & error if block supplied
1525
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
1526
- # @yieldparam err [StandardError] error object if request failed
1527
- #
1528
- # @return [Google::Apis::RunV1alpha1::Empty]
1529
- #
1530
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1531
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1532
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1533
- def delete_namespace_service(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
1534
- command = make_simple_command(:delete, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
1535
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
1536
- command.response_class = Google::Apis::RunV1alpha1::Empty
1537
- command.params['name'] = name unless name.nil?
1538
- command.query['apiVersion'] = api_version unless api_version.nil?
1539
- command.query['kind'] = kind unless kind.nil?
1540
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
1541
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1542
- command.query['fields'] = fields unless fields.nil?
1543
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1544
- execute_or_queue_command(command, &block)
1545
- end
1546
-
1547
- # Rpc to get information about a service.
1548
- # @param [String] name
1549
- # The name of the service being retrieved. If needed, replace `namespace_id`
1550
- # with the project ID.
1551
- # @param [String] fields
1552
- # Selector specifying which fields to include in a partial response.
1553
- # @param [String] quota_user
1554
- # Available to use for quota purposes for server-side applications. Can be any
1555
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1556
- # @param [Google::Apis::RequestOptions] options
1557
- # Request-specific options
1558
- #
1559
- # @yield [result, err] Result & error if block supplied
1560
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
1561
- # @yieldparam err [StandardError] error object if request failed
1562
- #
1563
- # @return [Google::Apis::RunV1alpha1::Service]
1564
- #
1565
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1566
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1567
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1568
- def get_namespace_service(name, fields: nil, quota_user: nil, options: nil, &block)
1569
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
1570
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
1571
- command.response_class = Google::Apis::RunV1alpha1::Service
1572
- command.params['name'] = name unless name.nil?
1573
- command.query['fields'] = fields unless fields.nil?
1574
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1575
- execute_or_queue_command(command, &block)
1576
- end
1577
-
1578
- # Rpc to list services.
1579
- # @param [String] parent
1580
- # The project ID or project number from which the services should be listed.
1581
- # @param [String] continue
1582
- # Optional encoded string to continue paging.
1583
- # @param [String] field_selector
1584
- # Allows to filter resources based on a specific value for a field name. Send
1585
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1586
- # used by Cloud Run.
1587
- # @param [Boolean] include_uninitialized
1588
- # Not currently used by Cloud Run.
1589
- # @param [String] label_selector
1590
- # Allows to filter resources based on a label. Supported operations are =, !=,
1591
- # exists, in, and notIn.
1592
- # @param [Fixnum] limit
1593
- # The maximum number of records that should be returned.
1594
- # @param [String] resource_version
1595
- # The baseline resource version from which the list or watch operation should
1596
- # start. Not currently used by Cloud Run.
1597
- # @param [Boolean] watch
1598
- # Flag that indicates that the client expects to watch this resource as well.
1599
- # Not currently used by Cloud Run.
1600
- # @param [String] fields
1601
- # Selector specifying which fields to include in a partial response.
1602
- # @param [String] quota_user
1603
- # Available to use for quota purposes for server-side applications. Can be any
1604
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1605
- # @param [Google::Apis::RequestOptions] options
1606
- # Request-specific options
1607
- #
1608
- # @yield [result, err] Result & error if block supplied
1609
- # @yieldparam result [Google::Apis::RunV1alpha1::ListServicesResponse] parsed result object
1610
- # @yieldparam err [StandardError] error object if request failed
1611
- #
1612
- # @return [Google::Apis::RunV1alpha1::ListServicesResponse]
1613
- #
1614
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1615
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1616
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1617
- def list_namespace_services(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
1618
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/services', options)
1619
- command.response_representation = Google::Apis::RunV1alpha1::ListServicesResponse::Representation
1620
- command.response_class = Google::Apis::RunV1alpha1::ListServicesResponse
1621
- command.params['parent'] = parent unless parent.nil?
1622
- command.query['continue'] = continue unless continue.nil?
1623
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1624
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1625
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1626
- command.query['limit'] = limit unless limit.nil?
1627
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1628
- command.query['watch'] = watch unless watch.nil?
1629
- command.query['fields'] = fields unless fields.nil?
1630
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1631
- execute_or_queue_command(command, &block)
1632
- end
1633
-
1634
- # Rpc to replace a service. Only the spec and metadata labels and annotations
1635
- # are modifiable. After the Update request, Cloud Run will work to make the '
1636
- # status' match the requested 'spec'. May provide metadata.resourceVersion to
1637
- # enforce update from last read for optimistic concurrency control.
1638
- # @param [String] name
1639
- # The name of the service being replaced. If needed, replace `namespace_id` with
1640
- # the project ID.
1641
- # @param [Google::Apis::RunV1alpha1::Service] service_object
1642
- # @param [String] fields
1643
- # Selector specifying which fields to include in a partial response.
1644
- # @param [String] quota_user
1645
- # Available to use for quota purposes for server-side applications. Can be any
1646
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1647
- # @param [Google::Apis::RequestOptions] options
1648
- # Request-specific options
1649
- #
1650
- # @yield [result, err] Result & error if block supplied
1651
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
1652
- # @yieldparam err [StandardError] error object if request failed
1653
- #
1654
- # @return [Google::Apis::RunV1alpha1::Service]
1655
- #
1656
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1657
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1658
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1659
- def replace_namespace_service_service(name, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1660
- command = make_simple_command(:put, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
1661
- command.request_representation = Google::Apis::RunV1alpha1::Service::Representation
1662
- command.request_object = service_object
1663
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
1664
- command.response_class = Google::Apis::RunV1alpha1::Service
1665
- command.params['name'] = name unless name.nil?
1666
- command.query['fields'] = fields unless fields.nil?
1667
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1668
- execute_or_queue_command(command, &block)
1669
- end
1670
-
1671
- # Creates a new trigger.
1672
- # @param [String] parent
1673
- # The project ID or project number in which this trigger should be created.
1674
- # @param [Google::Apis::RunV1alpha1::Trigger] trigger_object
1675
- # @param [String] fields
1676
- # Selector specifying which fields to include in a partial response.
1677
- # @param [String] quota_user
1678
- # Available to use for quota purposes for server-side applications. Can be any
1679
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1680
- # @param [Google::Apis::RequestOptions] options
1681
- # Request-specific options
1682
- #
1683
- # @yield [result, err] Result & error if block supplied
1684
- # @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
1685
- # @yieldparam err [StandardError] error object if request failed
1686
- #
1687
- # @return [Google::Apis::RunV1alpha1::Trigger]
1688
- #
1689
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1690
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1691
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1692
- def create_namespace_trigger(parent, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1693
- command = make_simple_command(:post, 'apis/eventing.knative.dev/v1alpha1/{+parent}/triggers', options)
1694
- command.request_representation = Google::Apis::RunV1alpha1::Trigger::Representation
1695
- command.request_object = trigger_object
1696
- command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
1697
- command.response_class = Google::Apis::RunV1alpha1::Trigger
1698
- command.params['parent'] = parent unless parent.nil?
1699
- command.query['fields'] = fields unless fields.nil?
1700
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1701
- execute_or_queue_command(command, &block)
1702
- end
1703
-
1704
- # Rpc to delete a trigger.
1705
- # @param [String] name
1706
- # The name of the trigger being deleted. If needed, replace `namespace_id` with
1707
- # the project ID.
1708
- # @param [String] api_version
1709
- # Cloud Run currently ignores this parameter.
1710
- # @param [String] kind
1711
- # Cloud Run currently ignores this parameter.
1712
- # @param [String] propagation_policy
1713
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
1714
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1715
- # workloads/controllers/garbage-collection/ for more information.
1716
- # @param [String] fields
1717
- # Selector specifying which fields to include in a partial response.
1718
- # @param [String] quota_user
1719
- # Available to use for quota purposes for server-side applications. Can be any
1720
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1721
- # @param [Google::Apis::RequestOptions] options
1722
- # Request-specific options
1723
- #
1724
- # @yield [result, err] Result & error if block supplied
1725
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
1726
- # @yieldparam err [StandardError] error object if request failed
1727
- #
1728
- # @return [Google::Apis::RunV1alpha1::Empty]
1729
- #
1730
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1731
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1732
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1733
- def delete_namespace_trigger(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
1734
- command = make_simple_command(:delete, 'apis/eventing.knative.dev/v1alpha1/{+name}', options)
1735
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
1736
- command.response_class = Google::Apis::RunV1alpha1::Empty
1737
- command.params['name'] = name unless name.nil?
1738
- command.query['apiVersion'] = api_version unless api_version.nil?
1739
- command.query['kind'] = kind unless kind.nil?
1740
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1741
- command.query['fields'] = fields unless fields.nil?
1742
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1743
- execute_or_queue_command(command, &block)
1744
- end
1745
-
1746
- # Rpc to get information about a trigger.
1747
- # @param [String] name
1748
- # The name of the trigger being retrieved. If needed, replace `namespace_id`
1749
- # with the project ID.
1750
- # @param [String] fields
1751
- # Selector specifying which fields to include in a partial response.
1752
- # @param [String] quota_user
1753
- # Available to use for quota purposes for server-side applications. Can be any
1754
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1755
- # @param [Google::Apis::RequestOptions] options
1756
- # Request-specific options
1757
- #
1758
- # @yield [result, err] Result & error if block supplied
1759
- # @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
1760
- # @yieldparam err [StandardError] error object if request failed
1761
- #
1762
- # @return [Google::Apis::RunV1alpha1::Trigger]
1763
- #
1764
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1765
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1766
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1767
- def get_namespace_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
1768
- command = make_simple_command(:get, 'apis/eventing.knative.dev/v1alpha1/{+name}', options)
1769
- command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
1770
- command.response_class = Google::Apis::RunV1alpha1::Trigger
1771
- command.params['name'] = name unless name.nil?
1772
- command.query['fields'] = fields unless fields.nil?
1773
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1774
- execute_or_queue_command(command, &block)
1775
- end
1776
-
1777
- # Rpc to list triggers.
1778
- # @param [String] parent
1779
- # The project ID or project number from which the triggers should be listed.
1780
- # @param [String] continue
1781
- # Optional. Encoded string to continue paging.
1782
- # @param [String] field_selector
1783
- # Allows to filter resources based on a specific value for a field name. Send
1784
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1785
- # used by Cloud Run.
1786
- # @param [Boolean] include_uninitialized
1787
- # Not currently used by Cloud Run.
1788
- # @param [String] label_selector
1789
- # Allows to filter resources based on a label. Supported operations are =, !=,
1790
- # exists, in, and notIn.
1791
- # @param [Fixnum] limit
1792
- # The maximum number of records that should be returned.
1793
- # @param [String] resource_version
1794
- # The baseline resource version from which the list or watch operation should
1795
- # start. Not currently used by Cloud Run.
1796
- # @param [Boolean] watch
1797
- # Flag that indicates that the client expects to watch this resource as well.
1798
- # Not currently used by Cloud Run.
1799
- # @param [String] fields
1800
- # Selector specifying which fields to include in a partial response.
1801
- # @param [String] quota_user
1802
- # Available to use for quota purposes for server-side applications. Can be any
1803
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1804
- # @param [Google::Apis::RequestOptions] options
1805
- # Request-specific options
1806
- #
1807
- # @yield [result, err] Result & error if block supplied
1808
- # @yieldparam result [Google::Apis::RunV1alpha1::ListTriggersResponse] parsed result object
1809
- # @yieldparam err [StandardError] error object if request failed
1810
- #
1811
- # @return [Google::Apis::RunV1alpha1::ListTriggersResponse]
1812
- #
1813
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1814
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1815
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1816
- def list_namespace_triggers(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
1817
- command = make_simple_command(:get, 'apis/eventing.knative.dev/v1alpha1/{+parent}/triggers', options)
1818
- command.response_representation = Google::Apis::RunV1alpha1::ListTriggersResponse::Representation
1819
- command.response_class = Google::Apis::RunV1alpha1::ListTriggersResponse
1820
- command.params['parent'] = parent unless parent.nil?
1821
- command.query['continue'] = continue unless continue.nil?
1822
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1823
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1824
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1825
- command.query['limit'] = limit unless limit.nil?
1826
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1827
- command.query['watch'] = watch unless watch.nil?
1828
- command.query['fields'] = fields unless fields.nil?
1829
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1830
- execute_or_queue_command(command, &block)
1831
- end
1832
-
1833
- # Lists information about the supported locations for this service.
1834
- # @param [String] name
1835
- # The resource that owns the locations collection, if applicable.
1836
- # @param [String] filter
1837
- # The standard list filter.
1838
- # @param [Fixnum] page_size
1839
- # The standard list page size.
1840
- # @param [String] page_token
1841
- # The standard list page token.
1842
- # @param [String] fields
1843
- # Selector specifying which fields to include in a partial response.
1844
- # @param [String] quota_user
1845
- # Available to use for quota purposes for server-side applications. Can be any
1846
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1847
- # @param [Google::Apis::RequestOptions] options
1848
- # Request-specific options
1849
- #
1850
- # @yield [result, err] Result & error if block supplied
1851
- # @yieldparam result [Google::Apis::RunV1alpha1::ListLocationsResponse] parsed result object
1852
- # @yieldparam err [StandardError] error object if request failed
1853
- #
1854
- # @return [Google::Apis::RunV1alpha1::ListLocationsResponse]
1855
- #
1856
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1857
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1858
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1859
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1860
- command = make_simple_command(:get, 'v1alpha1/{+name}/locations', options)
1861
- command.response_representation = Google::Apis::RunV1alpha1::ListLocationsResponse::Representation
1862
- command.response_class = Google::Apis::RunV1alpha1::ListLocationsResponse
1863
- command.params['name'] = name unless name.nil?
1864
- command.query['filter'] = filter unless filter.nil?
1865
- command.query['pageSize'] = page_size unless page_size.nil?
1866
- command.query['pageToken'] = page_token unless page_token.nil?
1867
- command.query['fields'] = fields unless fields.nil?
1868
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1869
- execute_or_queue_command(command, &block)
1870
- end
1871
-
1872
- # RPC to list authorized domains.
1873
- # @param [String] parent
1874
- # Name of the parent Application resource. Example: `apps/myapp`.
1875
- # @param [Fixnum] page_size
1876
- # Maximum results to return per page.
1877
- # @param [String] page_token
1878
- # Continuation token for fetching the next page of results.
1879
- # @param [String] fields
1880
- # Selector specifying which fields to include in a partial response.
1881
- # @param [String] quota_user
1882
- # Available to use for quota purposes for server-side applications. Can be any
1883
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1884
- # @param [Google::Apis::RequestOptions] options
1885
- # Request-specific options
1886
- #
1887
- # @yield [result, err] Result & error if block supplied
1888
- # @yieldparam result [Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse] parsed result object
1889
- # @yieldparam err [StandardError] error object if request failed
1890
- #
1891
- # @return [Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse]
1892
- #
1893
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1894
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1895
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1896
- def list_project_location_authorizeddomains(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1897
- command = make_simple_command(:get, 'v1alpha1/{+parent}/authorizeddomains', options)
1898
- command.response_representation = Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse::Representation
1899
- command.response_class = Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse
1900
- command.params['parent'] = parent unless parent.nil?
1901
- command.query['pageSize'] = page_size unless page_size.nil?
1902
- command.query['pageToken'] = page_token unless page_token.nil?
1903
- command.query['fields'] = fields unless fields.nil?
1904
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1905
- execute_or_queue_command(command, &block)
1906
- end
1907
-
1908
- # Creates a new cloudauditlogssource.
1909
- # @param [String] parent
1910
- # The project ID or project number in which this cloudauditlogssource should be
1911
- # created.
1912
- # @param [Google::Apis::RunV1alpha1::CloudAuditLogsSource] cloud_audit_logs_source_object
1913
- # @param [String] fields
1914
- # Selector specifying which fields to include in a partial response.
1915
- # @param [String] quota_user
1916
- # Available to use for quota purposes for server-side applications. Can be any
1917
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1918
- # @param [Google::Apis::RequestOptions] options
1919
- # Request-specific options
1920
- #
1921
- # @yield [result, err] Result & error if block supplied
1922
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLogsSource] parsed result object
1923
- # @yieldparam err [StandardError] error object if request failed
1924
- #
1925
- # @return [Google::Apis::RunV1alpha1::CloudAuditLogsSource]
1926
- #
1927
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1928
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1929
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1930
- def create_project_location_cloudauditlogssource(parent, cloud_audit_logs_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1931
- command = make_simple_command(:post, 'v1alpha1/{+parent}/cloudauditlogssources', options)
1932
- command.request_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation
1933
- command.request_object = cloud_audit_logs_source_object
1934
- command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation
1935
- command.response_class = Google::Apis::RunV1alpha1::CloudAuditLogsSource
1936
- command.params['parent'] = parent unless parent.nil?
1937
- command.query['fields'] = fields unless fields.nil?
1938
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1939
- execute_or_queue_command(command, &block)
1940
- end
1941
-
1942
- # Rpc to delete a cloudauditlogssource.
1943
- # @param [String] name
1944
- # The name of the cloudauditlogssource being deleted. If needed, replace `
1945
- # namespace_id` with the project ID.
1946
- # @param [String] api_version
1947
- # Cloud Run currently ignores this parameter.
1948
- # @param [String] kind
1949
- # Cloud Run currently ignores this parameter.
1950
- # @param [String] propagation_policy
1951
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
1952
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1953
- # workloads/controllers/garbage-collection/ for more information.
1954
- # @param [String] fields
1955
- # Selector specifying which fields to include in a partial response.
1956
- # @param [String] quota_user
1957
- # Available to use for quota purposes for server-side applications. Can be any
1958
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1959
- # @param [Google::Apis::RequestOptions] options
1960
- # Request-specific options
1961
- #
1962
- # @yield [result, err] Result & error if block supplied
1963
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
1964
- # @yieldparam err [StandardError] error object if request failed
1965
- #
1966
- # @return [Google::Apis::RunV1alpha1::Empty]
1967
- #
1968
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1969
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1970
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1971
- def delete_project_location_cloudauditlogssource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
1972
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
1973
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
1974
- command.response_class = Google::Apis::RunV1alpha1::Empty
1975
- command.params['name'] = name unless name.nil?
1976
- command.query['apiVersion'] = api_version unless api_version.nil?
1977
- command.query['kind'] = kind unless kind.nil?
1978
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1979
- command.query['fields'] = fields unless fields.nil?
1980
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1981
- execute_or_queue_command(command, &block)
1982
- end
1983
-
1984
- # Rpc to get information about a cloudauditlogssource.
1985
- # @param [String] name
1986
- # The name of the cloudauditlogssource being retrieved. If needed, replace `
1987
- # namespace_id` with the project ID.
1988
- # @param [String] fields
1989
- # Selector specifying which fields to include in a partial response.
1990
- # @param [String] quota_user
1991
- # Available to use for quota purposes for server-side applications. Can be any
1992
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1993
- # @param [Google::Apis::RequestOptions] options
1994
- # Request-specific options
1995
- #
1996
- # @yield [result, err] Result & error if block supplied
1997
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLogsSource] parsed result object
1998
- # @yieldparam err [StandardError] error object if request failed
1999
- #
2000
- # @return [Google::Apis::RunV1alpha1::CloudAuditLogsSource]
2001
- #
2002
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2003
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2004
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2005
- def get_project_location_cloudauditlogssource(name, fields: nil, quota_user: nil, options: nil, &block)
2006
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
2007
- command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation
2008
- command.response_class = Google::Apis::RunV1alpha1::CloudAuditLogsSource
2009
- command.params['name'] = name unless name.nil?
2010
- command.query['fields'] = fields unless fields.nil?
2011
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2012
- execute_or_queue_command(command, &block)
2013
- end
2014
-
2015
- # Rpc to list cloudauditlogssources.
2016
- # @param [String] parent
2017
- # The project ID or project number from which the cloudauditlogssources should
2018
- # be listed.
2019
- # @param [String] continue
2020
- # Optional encoded string to continue paging.
2021
- # @param [String] field_selector
2022
- # Allows to filter resources based on a specific value for a field name. Send
2023
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
2024
- # used by Cloud Run.
2025
- # @param [Boolean] include_uninitialized
2026
- # Not currently used by Cloud Run.
2027
- # @param [String] label_selector
2028
- # Allows to filter resources based on a label. Supported operations are =, !=,
2029
- # exists, in, and notIn.
2030
- # @param [Fixnum] limit
2031
- # The maximum number of records that should be returned.
2032
- # @param [String] resource_version
2033
- # The baseline resource version from which the list or watch operation should
2034
- # start. Not currently used by Cloud Run.
2035
- # @param [Boolean] watch
2036
- # Flag that indicates that the client expects to watch this resource as well.
2037
- # Not currently used by Cloud Run.
2038
- # @param [String] fields
2039
- # Selector specifying which fields to include in a partial response.
2040
- # @param [String] quota_user
2041
- # Available to use for quota purposes for server-side applications. Can be any
2042
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2043
- # @param [Google::Apis::RequestOptions] options
2044
- # Request-specific options
2045
- #
2046
- # @yield [result, err] Result & error if block supplied
2047
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse] parsed result object
2048
- # @yieldparam err [StandardError] error object if request failed
2049
- #
2050
- # @return [Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse]
2051
- #
2052
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2053
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2054
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2055
- def list_project_location_cloudauditlogssources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
2056
- command = make_simple_command(:get, 'v1alpha1/{+parent}/cloudauditlogssources', options)
2057
- command.response_representation = Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse::Representation
2058
- command.response_class = Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse
2059
- command.params['parent'] = parent unless parent.nil?
2060
- command.query['continue'] = continue unless continue.nil?
2061
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
2062
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
2063
- command.query['labelSelector'] = label_selector unless label_selector.nil?
2064
- command.query['limit'] = limit unless limit.nil?
2065
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
2066
- command.query['watch'] = watch unless watch.nil?
2067
- command.query['fields'] = fields unless fields.nil?
2068
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2069
- execute_or_queue_command(command, &block)
2070
- end
2071
-
2072
- # Creates a new cloudpubsubsource.
2073
- # @param [String] parent
2074
- # The project ID or project number in which this cloudpubsubsource should be
2075
- # created.
2076
- # @param [Google::Apis::RunV1alpha1::CloudPubSubSource] cloud_pub_sub_source_object
2077
- # @param [String] fields
2078
- # Selector specifying which fields to include in a partial response.
2079
- # @param [String] quota_user
2080
- # Available to use for quota purposes for server-side applications. Can be any
2081
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2082
- # @param [Google::Apis::RequestOptions] options
2083
- # Request-specific options
2084
- #
2085
- # @yield [result, err] Result & error if block supplied
2086
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudPubSubSource] parsed result object
2087
- # @yieldparam err [StandardError] error object if request failed
2088
- #
2089
- # @return [Google::Apis::RunV1alpha1::CloudPubSubSource]
2090
- #
2091
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2092
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2093
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2094
- def create_project_location_cloudpubsubsource(parent, cloud_pub_sub_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2095
- command = make_simple_command(:post, 'v1alpha1/{+parent}/cloudpubsubsources', options)
2096
- command.request_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation
2097
- command.request_object = cloud_pub_sub_source_object
2098
- command.response_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation
2099
- command.response_class = Google::Apis::RunV1alpha1::CloudPubSubSource
2100
- command.params['parent'] = parent unless parent.nil?
2101
- command.query['fields'] = fields unless fields.nil?
2102
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2103
- execute_or_queue_command(command, &block)
2104
- end
2105
-
2106
- # Rpc to delete a cloudpubsubsource.
2107
- # @param [String] name
2108
- # The name of the cloudpubsubsource being deleted. If needed, replace `
2109
- # namespace_id` with the project ID.
2110
- # @param [String] api_version
2111
- # Cloud Run currently ignores this parameter.
2112
- # @param [String] kind
2113
- # Cloud Run currently ignores this parameter.
2114
- # @param [String] propagation_policy
2115
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
2116
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
2117
- # workloads/controllers/garbage-collection/ for more information.
2118
- # @param [String] fields
2119
- # Selector specifying which fields to include in a partial response.
2120
- # @param [String] quota_user
2121
- # Available to use for quota purposes for server-side applications. Can be any
2122
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2123
- # @param [Google::Apis::RequestOptions] options
2124
- # Request-specific options
2125
- #
2126
- # @yield [result, err] Result & error if block supplied
2127
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
2128
- # @yieldparam err [StandardError] error object if request failed
2129
- #
2130
- # @return [Google::Apis::RunV1alpha1::Empty]
2131
- #
2132
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2133
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2134
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2135
- def delete_project_location_cloudpubsubsource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
2136
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
2137
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
2138
- command.response_class = Google::Apis::RunV1alpha1::Empty
2139
- command.params['name'] = name unless name.nil?
2140
- command.query['apiVersion'] = api_version unless api_version.nil?
2141
- command.query['kind'] = kind unless kind.nil?
2142
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
2143
- command.query['fields'] = fields unless fields.nil?
2144
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2145
- execute_or_queue_command(command, &block)
2146
- end
2147
-
2148
- # Rpc to get information about a cloudpubsubsource.
2149
- # @param [String] name
2150
- # The name of the cloudpubsubsource being retrieved. If needed, replace `
2151
- # namespace_id` with the project ID.
2152
- # @param [String] fields
2153
- # Selector specifying which fields to include in a partial response.
2154
- # @param [String] quota_user
2155
- # Available to use for quota purposes for server-side applications. Can be any
2156
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2157
- # @param [Google::Apis::RequestOptions] options
2158
- # Request-specific options
2159
- #
2160
- # @yield [result, err] Result & error if block supplied
2161
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudPubSubSource] parsed result object
2162
- # @yieldparam err [StandardError] error object if request failed
2163
- #
2164
- # @return [Google::Apis::RunV1alpha1::CloudPubSubSource]
2165
- #
2166
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2167
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2168
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2169
- def get_project_location_cloudpubsubsource(name, fields: nil, quota_user: nil, options: nil, &block)
2170
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
2171
- command.response_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation
2172
- command.response_class = Google::Apis::RunV1alpha1::CloudPubSubSource
2173
- command.params['name'] = name unless name.nil?
2174
- command.query['fields'] = fields unless fields.nil?
2175
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2176
- execute_or_queue_command(command, &block)
2177
- end
2178
-
2179
- # Rpc to list cloudpubsubsources.
2180
- # @param [String] parent
2181
- # The project ID or project number from which the cloudpubsubsources should be
2182
- # listed.
2183
- # @param [String] continue
2184
- # Optional encoded string to continue paging.
2185
- # @param [String] field_selector
2186
- # Allows to filter resources based on a specific value for a field name. Send
2187
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
2188
- # used by Cloud Run.
2189
- # @param [Boolean] include_uninitialized
2190
- # Not currently used by Cloud Run.
2191
- # @param [String] label_selector
2192
- # Allows to filter resources based on a label. Supported operations are =, !=,
2193
- # exists, in, and notIn.
2194
- # @param [Fixnum] limit
2195
- # The maximum number of records that should be returned.
2196
- # @param [String] resource_version
2197
- # The baseline resource version from which the list or watch operation should
2198
- # start. Not currently used by Cloud Run.
2199
- # @param [Boolean] watch
2200
- # Flag that indicates that the client expects to watch this resource as well.
2201
- # Not currently used by Cloud Run.
2202
- # @param [String] fields
2203
- # Selector specifying which fields to include in a partial response.
2204
- # @param [String] quota_user
2205
- # Available to use for quota purposes for server-side applications. Can be any
2206
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2207
- # @param [Google::Apis::RequestOptions] options
2208
- # Request-specific options
2209
- #
2210
- # @yield [result, err] Result & error if block supplied
2211
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse] parsed result object
2212
- # @yieldparam err [StandardError] error object if request failed
2213
- #
2214
- # @return [Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse]
2215
- #
2216
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2217
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2218
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2219
- def list_project_location_cloudpubsubsources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
2220
- command = make_simple_command(:get, 'v1alpha1/{+parent}/cloudpubsubsources', options)
2221
- command.response_representation = Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse::Representation
2222
- command.response_class = Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse
2223
- command.params['parent'] = parent unless parent.nil?
2224
- command.query['continue'] = continue unless continue.nil?
2225
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
2226
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
2227
- command.query['labelSelector'] = label_selector unless label_selector.nil?
2228
- command.query['limit'] = limit unless limit.nil?
2229
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
2230
- command.query['watch'] = watch unless watch.nil?
2231
- command.query['fields'] = fields unless fields.nil?
2232
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2233
- execute_or_queue_command(command, &block)
2234
- end
2235
-
2236
- # Creates a new cloudschedulersource.
2237
- # @param [String] parent
2238
- # Required. The project ID or project number in which this cloudschedulersource
2239
- # should be created.
2240
- # @param [Google::Apis::RunV1alpha1::CloudSchedulerSource] cloud_scheduler_source_object
2241
- # @param [String] fields
2242
- # Selector specifying which fields to include in a partial response.
2243
- # @param [String] quota_user
2244
- # Available to use for quota purposes for server-side applications. Can be any
2245
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2246
- # @param [Google::Apis::RequestOptions] options
2247
- # Request-specific options
2248
- #
2249
- # @yield [result, err] Result & error if block supplied
2250
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudSchedulerSource] parsed result object
2251
- # @yieldparam err [StandardError] error object if request failed
2252
- #
2253
- # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource]
2254
- #
2255
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2256
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2257
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2258
- def create_project_location_cloudschedulersource(parent, cloud_scheduler_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2259
- command = make_simple_command(:post, 'v1alpha1/{+parent}/cloudschedulersources', options)
2260
- command.request_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
2261
- command.request_object = cloud_scheduler_source_object
2262
- command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
2263
- command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource
2264
- command.params['parent'] = parent unless parent.nil?
2265
- command.query['fields'] = fields unless fields.nil?
2266
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2267
- execute_or_queue_command(command, &block)
2268
- end
2269
-
2270
- # Rpc to delete a cloudschedulersource.
2271
- # @param [String] name
2272
- # Required. The name of the cloudschedulersource being deleted. If needed,
2273
- # replace `namespace_id` with the project ID.
2274
- # @param [String] api_version
2275
- # Cloud Run currently ignores this parameter.
2276
- # @param [String] kind
2277
- # Cloud Run currently ignores this parameter.
2278
- # @param [String] propagation_policy
2279
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
2280
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
2281
- # workloads/controllers/garbage-collection/ for more information.
2282
- # @param [String] fields
2283
- # Selector specifying which fields to include in a partial response.
2284
- # @param [String] quota_user
2285
- # Available to use for quota purposes for server-side applications. Can be any
2286
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2287
- # @param [Google::Apis::RequestOptions] options
2288
- # Request-specific options
2289
- #
2290
- # @yield [result, err] Result & error if block supplied
2291
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
2292
- # @yieldparam err [StandardError] error object if request failed
2293
- #
2294
- # @return [Google::Apis::RunV1alpha1::Empty]
2295
- #
2296
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2297
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2298
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2299
- def delete_project_location_cloudschedulersource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
2300
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
2301
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
2302
- command.response_class = Google::Apis::RunV1alpha1::Empty
2303
- command.params['name'] = name unless name.nil?
2304
- command.query['apiVersion'] = api_version unless api_version.nil?
2305
- command.query['kind'] = kind unless kind.nil?
2306
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
2307
- command.query['fields'] = fields unless fields.nil?
2308
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2309
- execute_or_queue_command(command, &block)
2310
- end
2311
-
2312
- # Rpc to get information about a cloudschedulersource.
2313
- # @param [String] name
2314
- # Required. The name of the cloudschedulersource being retrieved. If needed,
2315
- # replace `namespace_id` with the project ID.
2316
- # @param [String] fields
2317
- # Selector specifying which fields to include in a partial response.
2318
- # @param [String] quota_user
2319
- # Available to use for quota purposes for server-side applications. Can be any
2320
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2321
- # @param [Google::Apis::RequestOptions] options
2322
- # Request-specific options
2323
- #
2324
- # @yield [result, err] Result & error if block supplied
2325
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudSchedulerSource] parsed result object
2326
- # @yieldparam err [StandardError] error object if request failed
2327
- #
2328
- # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource]
2329
- #
2330
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2331
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2332
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2333
- def get_project_location_cloudschedulersource(name, fields: nil, quota_user: nil, options: nil, &block)
2334
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
2335
- command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
2336
- command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource
2337
- command.params['name'] = name unless name.nil?
2338
- command.query['fields'] = fields unless fields.nil?
2339
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2340
- execute_or_queue_command(command, &block)
2341
- end
2342
-
2343
- # Rpc to list cloudschedulersources.
2344
- # @param [String] parent
2345
- # Required. The project ID or project number from which the
2346
- # cloudschedulersources should be listed.
2347
- # @param [String] continue
2348
- # Optional encoded string to continue paging.
2349
- # @param [String] field_selector
2350
- # Allows to filter resources based on a specific value for a field name. Send
2351
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
2352
- # used by Cloud Run.
2353
- # @param [Boolean] include_uninitialized
2354
- # Not currently used by Cloud Run.
2355
- # @param [String] label_selector
2356
- # Allows to filter resources based on a label. Supported operations are =, !=,
2357
- # exists, in, and notIn.
2358
- # @param [Fixnum] limit
2359
- # The maximum number of records that should be returned.
2360
- # @param [String] resource_version
2361
- # The baseline resource version from which the list or watch operation should
2362
- # start. Not currently used by Cloud Run.
2363
- # @param [Boolean] watch
2364
- # Flag that indicates that the client expects to watch this resource as well.
2365
- # Not currently used by Cloud Run.
2366
- # @param [String] fields
2367
- # Selector specifying which fields to include in a partial response.
2368
- # @param [String] quota_user
2369
- # Available to use for quota purposes for server-side applications. Can be any
2370
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2371
- # @param [Google::Apis::RequestOptions] options
2372
- # Request-specific options
2373
- #
2374
- # @yield [result, err] Result & error if block supplied
2375
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse] parsed result object
2376
- # @yieldparam err [StandardError] error object if request failed
2377
- #
2378
- # @return [Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse]
2379
- #
2380
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2381
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2382
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2383
- def list_project_location_cloudschedulersources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
2384
- command = make_simple_command(:get, 'v1alpha1/{+parent}/cloudschedulersources', options)
2385
- command.response_representation = Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse::Representation
2386
- command.response_class = Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse
2387
- command.params['parent'] = parent unless parent.nil?
2388
- command.query['continue'] = continue unless continue.nil?
2389
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
2390
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
2391
- command.query['labelSelector'] = label_selector unless label_selector.nil?
2392
- command.query['limit'] = limit unless limit.nil?
2393
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
2394
- command.query['watch'] = watch unless watch.nil?
2395
- command.query['fields'] = fields unless fields.nil?
2396
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2397
- execute_or_queue_command(command, &block)
2398
- end
2399
-
2400
- # Rpc to replace a cloudschedulersource. Only the spec and metadata labels and
2401
- # annotations are modifiable. After the Update request, Cloud Run will work to
2402
- # make the 'status' match the requested 'spec'. May provide metadata.
2403
- # resourceVersion to enforce update from last read for optimistic concurrency
2404
- # control.
2405
- # @param [String] name
2406
- # Required. The name of the cloudschedulersource being retrieved. If needed,
2407
- # replace `namespace_id` with the project ID.
2408
- # @param [Google::Apis::RunV1alpha1::CloudSchedulerSource] cloud_scheduler_source_object
2409
- # @param [String] fields
2410
- # Selector specifying which fields to include in a partial response.
2411
- # @param [String] quota_user
2412
- # Available to use for quota purposes for server-side applications. Can be any
2413
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2414
- # @param [Google::Apis::RequestOptions] options
2415
- # Request-specific options
2416
- #
2417
- # @yield [result, err] Result & error if block supplied
2418
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudSchedulerSource] parsed result object
2419
- # @yieldparam err [StandardError] error object if request failed
2420
- #
2421
- # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource]
2422
- #
2423
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2424
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2425
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2426
- def replace_project_location_cloudschedulersource_cloud_scheduler_source(name, cloud_scheduler_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2427
- command = make_simple_command(:put, 'v1alpha1/{+name}', options)
2428
- command.request_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
2429
- command.request_object = cloud_scheduler_source_object
2430
- command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
2431
- command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource
2432
- command.params['name'] = name unless name.nil?
2433
- command.query['fields'] = fields unless fields.nil?
2434
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2435
- execute_or_queue_command(command, &block)
2436
- end
2437
-
2438
- # Creates a new cloudstoragesource.
2439
- # @param [String] parent
2440
- # Required. The project ID or project number in which this cloudstoragesource
2441
- # should be created.
2442
- # @param [Google::Apis::RunV1alpha1::CloudStorageSource] cloud_storage_source_object
2443
- # @param [String] fields
2444
- # Selector specifying which fields to include in a partial response.
2445
- # @param [String] quota_user
2446
- # Available to use for quota purposes for server-side applications. Can be any
2447
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2448
- # @param [Google::Apis::RequestOptions] options
2449
- # Request-specific options
2450
- #
2451
- # @yield [result, err] Result & error if block supplied
2452
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudStorageSource] parsed result object
2453
- # @yieldparam err [StandardError] error object if request failed
2454
- #
2455
- # @return [Google::Apis::RunV1alpha1::CloudStorageSource]
2456
- #
2457
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2458
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2459
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2460
- def create_project_location_cloudstoragesource(parent, cloud_storage_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2461
- command = make_simple_command(:post, 'v1alpha1/{+parent}/cloudstoragesources', options)
2462
- command.request_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
2463
- command.request_object = cloud_storage_source_object
2464
- command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
2465
- command.response_class = Google::Apis::RunV1alpha1::CloudStorageSource
2466
- command.params['parent'] = parent unless parent.nil?
2467
- command.query['fields'] = fields unless fields.nil?
2468
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2469
- execute_or_queue_command(command, &block)
2470
- end
2471
-
2472
- # Rpc to delete a cloudstoragesource.
2473
- # @param [String] name
2474
- # Required. The name of the cloudstoragesource being deleted. If needed, replace
2475
- # `namespace_id` with the project ID.
2476
- # @param [String] api_version
2477
- # Cloud Run currently ignores this parameter.
2478
- # @param [String] kind
2479
- # Cloud Run currently ignores this parameter.
2480
- # @param [String] propagation_policy
2481
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
2482
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
2483
- # workloads/controllers/garbage-collection/ for more information.
2484
- # @param [String] fields
2485
- # Selector specifying which fields to include in a partial response.
2486
- # @param [String] quota_user
2487
- # Available to use for quota purposes for server-side applications. Can be any
2488
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2489
- # @param [Google::Apis::RequestOptions] options
2490
- # Request-specific options
2491
- #
2492
- # @yield [result, err] Result & error if block supplied
2493
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
2494
- # @yieldparam err [StandardError] error object if request failed
2495
- #
2496
- # @return [Google::Apis::RunV1alpha1::Empty]
2497
- #
2498
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2499
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2500
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2501
- def delete_project_location_cloudstoragesource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
2502
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
2503
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
2504
- command.response_class = Google::Apis::RunV1alpha1::Empty
2505
- command.params['name'] = name unless name.nil?
2506
- command.query['apiVersion'] = api_version unless api_version.nil?
2507
- command.query['kind'] = kind unless kind.nil?
2508
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
2509
- command.query['fields'] = fields unless fields.nil?
2510
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2511
- execute_or_queue_command(command, &block)
2512
- end
2513
-
2514
- # Rpc to get information about a cloudstoragesource.
2515
- # @param [String] name
2516
- # Required. The name of the cloudstoragesource being retrieved. If needed,
2517
- # replace `namespace_id` with the project ID.
2518
- # @param [String] fields
2519
- # Selector specifying which fields to include in a partial response.
2520
- # @param [String] quota_user
2521
- # Available to use for quota purposes for server-side applications. Can be any
2522
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2523
- # @param [Google::Apis::RequestOptions] options
2524
- # Request-specific options
2525
- #
2526
- # @yield [result, err] Result & error if block supplied
2527
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudStorageSource] parsed result object
2528
- # @yieldparam err [StandardError] error object if request failed
2529
- #
2530
- # @return [Google::Apis::RunV1alpha1::CloudStorageSource]
2531
- #
2532
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2533
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2534
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2535
- def get_project_location_cloudstoragesource(name, fields: nil, quota_user: nil, options: nil, &block)
2536
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
2537
- command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
2538
- command.response_class = Google::Apis::RunV1alpha1::CloudStorageSource
2539
- command.params['name'] = name unless name.nil?
2540
- command.query['fields'] = fields unless fields.nil?
2541
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2542
- execute_or_queue_command(command, &block)
2543
- end
2544
-
2545
- # Rpc to list cloudstoragesources.
2546
- # @param [String] parent
2547
- # Required. The project ID or project number from which the cloudstoragesources
2548
- # should be listed.
2549
- # @param [String] continue
2550
- # Optional encoded string to continue paging.
2551
- # @param [String] field_selector
2552
- # Allows to filter resources based on a specific value for a field name. Send
2553
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
2554
- # used by Cloud Run.
2555
- # @param [Boolean] include_uninitialized
2556
- # Not currently used by Cloud Run.
2557
- # @param [String] label_selector
2558
- # Allows to filter resources based on a label. Supported operations are =, !=,
2559
- # exists, in, and notIn.
2560
- # @param [Fixnum] limit
2561
- # The maximum number of records that should be returned.
2562
- # @param [String] resource_version
2563
- # The baseline resource version from which the list or watch operation should
2564
- # start. Not currently used by Cloud Run.
2565
- # @param [Boolean] watch
2566
- # Flag that indicates that the client expects to watch this resource as well.
2567
- # Not currently used by Cloud Run.
2568
- # @param [String] fields
2569
- # Selector specifying which fields to include in a partial response.
2570
- # @param [String] quota_user
2571
- # Available to use for quota purposes for server-side applications. Can be any
2572
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2573
- # @param [Google::Apis::RequestOptions] options
2574
- # Request-specific options
2575
- #
2576
- # @yield [result, err] Result & error if block supplied
2577
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse] parsed result object
2578
- # @yieldparam err [StandardError] error object if request failed
2579
- #
2580
- # @return [Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse]
2581
- #
2582
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2583
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2584
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2585
- def list_project_location_cloudstoragesources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
2586
- command = make_simple_command(:get, 'v1alpha1/{+parent}/cloudstoragesources', options)
2587
- command.response_representation = Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse::Representation
2588
- command.response_class = Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse
2589
- command.params['parent'] = parent unless parent.nil?
2590
- command.query['continue'] = continue unless continue.nil?
2591
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
2592
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
2593
- command.query['labelSelector'] = label_selector unless label_selector.nil?
2594
- command.query['limit'] = limit unless limit.nil?
2595
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
2596
- command.query['watch'] = watch unless watch.nil?
2597
- command.query['fields'] = fields unless fields.nil?
2598
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2599
- execute_or_queue_command(command, &block)
2600
- end
2601
-
2602
- # Rpc to replace a cloudstoragesource. Only the spec and metadata labels and
2603
- # annotations are modifiable. After the Update request, Cloud Run will work to
2604
- # make the 'status' match the requested 'spec'. May provide metadata.
2605
- # resourceVersion to enforce update from last read for optimistic concurrency
2606
- # control.
2607
- # @param [String] name
2608
- # Required. The name of the cloudstoragesource being retrieved. If needed,
2609
- # replace `namespace_id` with the project ID.
2610
- # @param [Google::Apis::RunV1alpha1::CloudStorageSource] cloud_storage_source_object
2611
- # @param [String] fields
2612
- # Selector specifying which fields to include in a partial response.
2613
- # @param [String] quota_user
2614
- # Available to use for quota purposes for server-side applications. Can be any
2615
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2616
- # @param [Google::Apis::RequestOptions] options
2617
- # Request-specific options
2618
- #
2619
- # @yield [result, err] Result & error if block supplied
2620
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudStorageSource] parsed result object
2621
- # @yieldparam err [StandardError] error object if request failed
2622
- #
2623
- # @return [Google::Apis::RunV1alpha1::CloudStorageSource]
2624
- #
2625
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2626
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2627
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2628
- def replace_project_location_cloudstoragesource_cloud_storage_source(name, cloud_storage_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2629
- command = make_simple_command(:put, 'v1alpha1/{+name}', options)
2630
- command.request_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
2631
- command.request_object = cloud_storage_source_object
2632
- command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
2633
- command.response_class = Google::Apis::RunV1alpha1::CloudStorageSource
2634
- command.params['name'] = name unless name.nil?
2635
- command.query['fields'] = fields unless fields.nil?
2636
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2637
- execute_or_queue_command(command, &block)
2638
- end
2639
-
2640
- # Rpc to get information about a configuration.
2641
- # @param [String] name
2642
- # The name of the configuration being retrieved. If needed, replace `
2643
- # namespace_id` with the project ID.
2644
- # @param [String] fields
2645
- # Selector specifying which fields to include in a partial response.
2646
- # @param [String] quota_user
2647
- # Available to use for quota purposes for server-side applications. Can be any
2648
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2649
- # @param [Google::Apis::RequestOptions] options
2650
- # Request-specific options
2651
- #
2652
- # @yield [result, err] Result & error if block supplied
2653
- # @yieldparam result [Google::Apis::RunV1alpha1::Configuration] parsed result object
2654
- # @yieldparam err [StandardError] error object if request failed
2655
- #
2656
- # @return [Google::Apis::RunV1alpha1::Configuration]
2657
- #
2658
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2659
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2660
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2661
- def get_project_location_configuration(name, fields: nil, quota_user: nil, options: nil, &block)
2662
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
2663
- command.response_representation = Google::Apis::RunV1alpha1::Configuration::Representation
2664
- command.response_class = Google::Apis::RunV1alpha1::Configuration
2665
- command.params['name'] = name unless name.nil?
2666
- command.query['fields'] = fields unless fields.nil?
2667
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2668
- execute_or_queue_command(command, &block)
2669
- end
2670
-
2671
- # Rpc to list configurations.
2672
- # @param [String] parent
2673
- # The project ID or project number from which the configurations should be
2674
- # listed.
2675
- # @param [String] continue
2676
- # Optional encoded string to continue paging.
2677
- # @param [String] field_selector
2678
- # Allows to filter resources based on a specific value for a field name. Send
2679
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
2680
- # used by Cloud Run.
2681
- # @param [Boolean] include_uninitialized
2682
- # Not currently used by Cloud Run.
2683
- # @param [String] label_selector
2684
- # Allows to filter resources based on a label. Supported operations are =, !=,
2685
- # exists, in, and notIn.
2686
- # @param [Fixnum] limit
2687
- # The maximum number of records that should be returned.
2688
- # @param [String] resource_version
2689
- # The baseline resource version from which the list or watch operation should
2690
- # start. Not currently used by Cloud Run.
2691
- # @param [Boolean] watch
2692
- # Flag that indicates that the client expects to watch this resource as well.
2693
- # Not currently used by Cloud Run.
2694
- # @param [String] fields
2695
- # Selector specifying which fields to include in a partial response.
2696
- # @param [String] quota_user
2697
- # Available to use for quota purposes for server-side applications. Can be any
2698
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2699
- # @param [Google::Apis::RequestOptions] options
2700
- # Request-specific options
2701
- #
2702
- # @yield [result, err] Result & error if block supplied
2703
- # @yieldparam result [Google::Apis::RunV1alpha1::ListConfigurationsResponse] parsed result object
2704
- # @yieldparam err [StandardError] error object if request failed
2705
- #
2706
- # @return [Google::Apis::RunV1alpha1::ListConfigurationsResponse]
2707
- #
2708
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2709
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2710
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2711
- def list_project_location_configurations(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
2712
- command = make_simple_command(:get, 'v1alpha1/{+parent}/configurations', options)
2713
- command.response_representation = Google::Apis::RunV1alpha1::ListConfigurationsResponse::Representation
2714
- command.response_class = Google::Apis::RunV1alpha1::ListConfigurationsResponse
2715
- command.params['parent'] = parent unless parent.nil?
2716
- command.query['continue'] = continue unless continue.nil?
2717
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
2718
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
2719
- command.query['labelSelector'] = label_selector unless label_selector.nil?
2720
- command.query['limit'] = limit unless limit.nil?
2721
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
2722
- command.query['watch'] = watch unless watch.nil?
2723
- command.query['fields'] = fields unless fields.nil?
2724
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2725
- execute_or_queue_command(command, &block)
2726
- end
2727
-
2728
- # Creates a new domain mapping.
2729
- # @param [String] parent
2730
- # The project ID or project number in which this domain mapping should be
2731
- # created.
2732
- # @param [Google::Apis::RunV1alpha1::DomainMapping] domain_mapping_object
2733
- # @param [String] fields
2734
- # Selector specifying which fields to include in a partial response.
2735
- # @param [String] quota_user
2736
- # Available to use for quota purposes for server-side applications. Can be any
2737
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2738
- # @param [Google::Apis::RequestOptions] options
2739
- # Request-specific options
2740
- #
2741
- # @yield [result, err] Result & error if block supplied
2742
- # @yieldparam result [Google::Apis::RunV1alpha1::DomainMapping] parsed result object
2743
- # @yieldparam err [StandardError] error object if request failed
2744
- #
2745
- # @return [Google::Apis::RunV1alpha1::DomainMapping]
2746
- #
2747
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2748
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2749
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2750
- def create_project_location_domainmapping(parent, domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2751
- command = make_simple_command(:post, 'v1alpha1/{+parent}/domainmappings', options)
2752
- command.request_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
2753
- command.request_object = domain_mapping_object
2754
- command.response_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
2755
- command.response_class = Google::Apis::RunV1alpha1::DomainMapping
2756
- command.params['parent'] = parent unless parent.nil?
2757
- command.query['fields'] = fields unless fields.nil?
2758
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2759
- execute_or_queue_command(command, &block)
2760
- end
2761
-
2762
- # Rpc to delete a domain mapping.
2763
- # @param [String] name
2764
- # The name of the domain mapping being deleted. If needed, replace `namespace_id`
2765
- # with the project ID.
2766
- # @param [String] api_version
2767
- # Cloud Run currently ignores this parameter.
2768
- # @param [String] kind
2769
- # Cloud Run currently ignores this parameter.
2770
- # @param [Boolean] orphan_dependents
2771
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
2772
- # cascading behavior, so this must be false. This attribute is deprecated, and
2773
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
2774
- # kubernetes/issues/46659 for more info.
2775
- # @param [String] propagation_policy
2776
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
2777
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
2778
- # workloads/controllers/garbage-collection/ for more information.
2779
- # @param [String] fields
2780
- # Selector specifying which fields to include in a partial response.
2781
- # @param [String] quota_user
2782
- # Available to use for quota purposes for server-side applications. Can be any
2783
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2784
- # @param [Google::Apis::RequestOptions] options
2785
- # Request-specific options
2786
- #
2787
- # @yield [result, err] Result & error if block supplied
2788
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
2789
- # @yieldparam err [StandardError] error object if request failed
2790
- #
2791
- # @return [Google::Apis::RunV1alpha1::Empty]
2792
- #
2793
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2794
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2795
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2796
- def delete_project_location_domainmapping(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
2797
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
2798
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
2799
- command.response_class = Google::Apis::RunV1alpha1::Empty
2800
- command.params['name'] = name unless name.nil?
2801
- command.query['apiVersion'] = api_version unless api_version.nil?
2802
- command.query['kind'] = kind unless kind.nil?
2803
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
2804
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
2805
- command.query['fields'] = fields unless fields.nil?
2806
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2807
- execute_or_queue_command(command, &block)
2808
- end
2809
-
2810
- # Rpc to get information about a domain mapping.
2811
- # @param [String] name
2812
- # The name of the domain mapping being retrieved. If needed, replace `
2813
- # namespace_id` with the project ID.
2814
- # @param [String] fields
2815
- # Selector specifying which fields to include in a partial response.
2816
- # @param [String] quota_user
2817
- # Available to use for quota purposes for server-side applications. Can be any
2818
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2819
- # @param [Google::Apis::RequestOptions] options
2820
- # Request-specific options
2821
- #
2822
- # @yield [result, err] Result & error if block supplied
2823
- # @yieldparam result [Google::Apis::RunV1alpha1::DomainMapping] parsed result object
2824
- # @yieldparam err [StandardError] error object if request failed
2825
- #
2826
- # @return [Google::Apis::RunV1alpha1::DomainMapping]
2827
- #
2828
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2829
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2830
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2831
- def get_project_location_domainmapping(name, fields: nil, quota_user: nil, options: nil, &block)
2832
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
2833
- command.response_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
2834
- command.response_class = Google::Apis::RunV1alpha1::DomainMapping
2835
- command.params['name'] = name unless name.nil?
2836
- command.query['fields'] = fields unless fields.nil?
2837
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2838
- execute_or_queue_command(command, &block)
2839
- end
2840
-
2841
- # Rpc to list domain mappings.
2842
- # @param [String] parent
2843
- # The project ID or project number from which the domain mappings should be
2844
- # listed.
2845
- # @param [String] continue
2846
- # Optional encoded string to continue paging.
2847
- # @param [String] field_selector
2848
- # Allows to filter resources based on a specific value for a field name. Send
2849
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
2850
- # used by Cloud Run.
2851
- # @param [Boolean] include_uninitialized
2852
- # Not currently used by Cloud Run.
2853
- # @param [String] label_selector
2854
- # Allows to filter resources based on a label. Supported operations are =, !=,
2855
- # exists, in, and notIn.
2856
- # @param [Fixnum] limit
2857
- # The maximum number of records that should be returned.
2858
- # @param [String] resource_version
2859
- # The baseline resource version from which the list or watch operation should
2860
- # start. Not currently used by Cloud Run.
2861
- # @param [Boolean] watch
2862
- # Flag that indicates that the client expects to watch this resource as well.
2863
- # Not currently used by Cloud Run.
2864
- # @param [String] fields
2865
- # Selector specifying which fields to include in a partial response.
2866
- # @param [String] quota_user
2867
- # Available to use for quota purposes for server-side applications. Can be any
2868
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2869
- # @param [Google::Apis::RequestOptions] options
2870
- # Request-specific options
2871
- #
2872
- # @yield [result, err] Result & error if block supplied
2873
- # @yieldparam result [Google::Apis::RunV1alpha1::ListDomainMappingsResponse] parsed result object
2874
- # @yieldparam err [StandardError] error object if request failed
2875
- #
2876
- # @return [Google::Apis::RunV1alpha1::ListDomainMappingsResponse]
2877
- #
2878
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2879
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2880
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2881
- def list_project_location_domainmappings(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
2882
- command = make_simple_command(:get, 'v1alpha1/{+parent}/domainmappings', options)
2883
- command.response_representation = Google::Apis::RunV1alpha1::ListDomainMappingsResponse::Representation
2884
- command.response_class = Google::Apis::RunV1alpha1::ListDomainMappingsResponse
2885
- command.params['parent'] = parent unless parent.nil?
2886
- command.query['continue'] = continue unless continue.nil?
2887
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
2888
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
2889
- command.query['labelSelector'] = label_selector unless label_selector.nil?
2890
- command.query['limit'] = limit unless limit.nil?
2891
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
2892
- command.query['watch'] = watch unless watch.nil?
2893
- command.query['fields'] = fields unless fields.nil?
2894
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2895
- execute_or_queue_command(command, &block)
2896
- end
2897
-
2898
- # Rpc to delete a revision.
2899
- # @param [String] name
2900
- # The name of the revision being deleted. If needed, replace `namespace_id` with
2901
- # the project ID.
2902
- # @param [String] api_version
2903
- # Cloud Run currently ignores this parameter.
2904
- # @param [String] kind
2905
- # Cloud Run currently ignores this parameter.
2906
- # @param [Boolean] orphan_dependents
2907
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
2908
- # cascading behavior, so this must be false. This attribute is deprecated, and
2909
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
2910
- # kubernetes/issues/46659 for more info.
2911
- # @param [String] propagation_policy
2912
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
2913
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
2914
- # workloads/controllers/garbage-collection/ for more information.
2915
- # @param [String] fields
2916
- # Selector specifying which fields to include in a partial response.
2917
- # @param [String] quota_user
2918
- # Available to use for quota purposes for server-side applications. Can be any
2919
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2920
- # @param [Google::Apis::RequestOptions] options
2921
- # Request-specific options
2922
- #
2923
- # @yield [result, err] Result & error if block supplied
2924
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
2925
- # @yieldparam err [StandardError] error object if request failed
2926
- #
2927
- # @return [Google::Apis::RunV1alpha1::Empty]
2928
- #
2929
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2930
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2931
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2932
- def delete_project_location_revision(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
2933
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
2934
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
2935
- command.response_class = Google::Apis::RunV1alpha1::Empty
2936
- command.params['name'] = name unless name.nil?
2937
- command.query['apiVersion'] = api_version unless api_version.nil?
2938
- command.query['kind'] = kind unless kind.nil?
2939
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
2940
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
2941
- command.query['fields'] = fields unless fields.nil?
2942
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2943
- execute_or_queue_command(command, &block)
2944
- end
2945
-
2946
- # Rpc to get information about a revision.
2947
- # @param [String] name
2948
- # The name of the revision being retrieved. If needed, replace `namespace_id`
2949
- # with the project ID.
2950
- # @param [String] fields
2951
- # Selector specifying which fields to include in a partial response.
2952
- # @param [String] quota_user
2953
- # Available to use for quota purposes for server-side applications. Can be any
2954
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2955
- # @param [Google::Apis::RequestOptions] options
2956
- # Request-specific options
2957
- #
2958
- # @yield [result, err] Result & error if block supplied
2959
- # @yieldparam result [Google::Apis::RunV1alpha1::Revision] parsed result object
2960
- # @yieldparam err [StandardError] error object if request failed
2961
- #
2962
- # @return [Google::Apis::RunV1alpha1::Revision]
2963
- #
2964
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2965
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2966
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2967
- def get_project_location_revision(name, fields: nil, quota_user: nil, options: nil, &block)
2968
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
2969
- command.response_representation = Google::Apis::RunV1alpha1::Revision::Representation
2970
- command.response_class = Google::Apis::RunV1alpha1::Revision
2971
- command.params['name'] = name unless name.nil?
2972
- command.query['fields'] = fields unless fields.nil?
2973
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2974
- execute_or_queue_command(command, &block)
2975
- end
2976
-
2977
- # Rpc to list revisions.
2978
- # @param [String] parent
2979
- # The project ID or project number from which the revisions should be listed.
2980
- # @param [String] continue
2981
- # Optional encoded string to continue paging.
2982
- # @param [String] field_selector
2983
- # Allows to filter resources based on a specific value for a field name. Send
2984
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
2985
- # used by Cloud Run.
2986
- # @param [Boolean] include_uninitialized
2987
- # Not currently used by Cloud Run.
2988
- # @param [String] label_selector
2989
- # Allows to filter resources based on a label. Supported operations are =, !=,
2990
- # exists, in, and notIn.
2991
- # @param [Fixnum] limit
2992
- # The maximum number of records that should be returned.
2993
- # @param [String] resource_version
2994
- # The baseline resource version from which the list or watch operation should
2995
- # start. Not currently used by Cloud Run.
2996
- # @param [Boolean] watch
2997
- # Flag that indicates that the client expects to watch this resource as well.
2998
- # Not currently used by Cloud Run.
2999
- # @param [String] fields
3000
- # Selector specifying which fields to include in a partial response.
3001
- # @param [String] quota_user
3002
- # Available to use for quota purposes for server-side applications. Can be any
3003
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3004
- # @param [Google::Apis::RequestOptions] options
3005
- # Request-specific options
3006
- #
3007
- # @yield [result, err] Result & error if block supplied
3008
- # @yieldparam result [Google::Apis::RunV1alpha1::ListRevisionsResponse] parsed result object
3009
- # @yieldparam err [StandardError] error object if request failed
3010
- #
3011
- # @return [Google::Apis::RunV1alpha1::ListRevisionsResponse]
3012
- #
3013
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3014
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3015
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3016
- def list_project_location_revisions(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
3017
- command = make_simple_command(:get, 'v1alpha1/{+parent}/revisions', options)
3018
- command.response_representation = Google::Apis::RunV1alpha1::ListRevisionsResponse::Representation
3019
- command.response_class = Google::Apis::RunV1alpha1::ListRevisionsResponse
3020
- command.params['parent'] = parent unless parent.nil?
3021
- command.query['continue'] = continue unless continue.nil?
3022
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
3023
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
3024
- command.query['labelSelector'] = label_selector unless label_selector.nil?
3025
- command.query['limit'] = limit unless limit.nil?
3026
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
3027
- command.query['watch'] = watch unless watch.nil?
3028
- command.query['fields'] = fields unless fields.nil?
3029
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3030
- execute_or_queue_command(command, &block)
3031
- end
3032
-
3033
- # Rpc to get information about a route.
3034
- # @param [String] name
3035
- # The name of the route being retrieved. If needed, replace `namespace_id` with
3036
- # the project ID.
3037
- # @param [String] fields
3038
- # Selector specifying which fields to include in a partial response.
3039
- # @param [String] quota_user
3040
- # Available to use for quota purposes for server-side applications. Can be any
3041
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3042
- # @param [Google::Apis::RequestOptions] options
3043
- # Request-specific options
3044
- #
3045
- # @yield [result, err] Result & error if block supplied
3046
- # @yieldparam result [Google::Apis::RunV1alpha1::Route] parsed result object
3047
- # @yieldparam err [StandardError] error object if request failed
3048
- #
3049
- # @return [Google::Apis::RunV1alpha1::Route]
3050
- #
3051
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3052
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3053
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3054
- def get_project_location_route(name, fields: nil, quota_user: nil, options: nil, &block)
3055
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
3056
- command.response_representation = Google::Apis::RunV1alpha1::Route::Representation
3057
- command.response_class = Google::Apis::RunV1alpha1::Route
3058
- command.params['name'] = name unless name.nil?
3059
- command.query['fields'] = fields unless fields.nil?
3060
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3061
- execute_or_queue_command(command, &block)
3062
- end
3063
-
3064
- # Rpc to list routes.
3065
- # @param [String] parent
3066
- # The project ID or project number from which the routes should be listed.
3067
- # @param [String] continue
3068
- # Optional encoded string to continue paging.
3069
- # @param [String] field_selector
3070
- # Allows to filter resources based on a specific value for a field name. Send
3071
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
3072
- # used by Cloud Run.
3073
- # @param [Boolean] include_uninitialized
3074
- # Not currently used by Cloud Run.
3075
- # @param [String] label_selector
3076
- # Allows to filter resources based on a label. Supported operations are =, !=,
3077
- # exists, in, and notIn.
3078
- # @param [Fixnum] limit
3079
- # The maximum number of records that should be returned.
3080
- # @param [String] resource_version
3081
- # The baseline resource version from which the list or watch operation should
3082
- # start. Not currently used by Cloud Run.
3083
- # @param [Boolean] watch
3084
- # Flag that indicates that the client expects to watch this resource as well.
3085
- # Not currently used by Cloud Run.
3086
- # @param [String] fields
3087
- # Selector specifying which fields to include in a partial response.
3088
- # @param [String] quota_user
3089
- # Available to use for quota purposes for server-side applications. Can be any
3090
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3091
- # @param [Google::Apis::RequestOptions] options
3092
- # Request-specific options
3093
- #
3094
- # @yield [result, err] Result & error if block supplied
3095
- # @yieldparam result [Google::Apis::RunV1alpha1::ListRoutesResponse] parsed result object
3096
- # @yieldparam err [StandardError] error object if request failed
3097
- #
3098
- # @return [Google::Apis::RunV1alpha1::ListRoutesResponse]
3099
- #
3100
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3101
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3102
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3103
- def list_project_location_routes(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
3104
- command = make_simple_command(:get, 'v1alpha1/{+parent}/routes', options)
3105
- command.response_representation = Google::Apis::RunV1alpha1::ListRoutesResponse::Representation
3106
- command.response_class = Google::Apis::RunV1alpha1::ListRoutesResponse
3107
- command.params['parent'] = parent unless parent.nil?
3108
- command.query['continue'] = continue unless continue.nil?
3109
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
3110
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
3111
- command.query['labelSelector'] = label_selector unless label_selector.nil?
3112
- command.query['limit'] = limit unless limit.nil?
3113
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
3114
- command.query['watch'] = watch unless watch.nil?
3115
- command.query['fields'] = fields unless fields.nil?
3116
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3117
- execute_or_queue_command(command, &block)
3118
- end
3119
-
3120
- # Rpc to create a service.
3121
- # @param [String] parent
3122
- # The project ID or project number in which this service should be created.
3123
- # @param [Google::Apis::RunV1alpha1::Service] service_object
3124
- # @param [String] fields
3125
- # Selector specifying which fields to include in a partial response.
3126
- # @param [String] quota_user
3127
- # Available to use for quota purposes for server-side applications. Can be any
3128
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3129
- # @param [Google::Apis::RequestOptions] options
3130
- # Request-specific options
3131
- #
3132
- # @yield [result, err] Result & error if block supplied
3133
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
3134
- # @yieldparam err [StandardError] error object if request failed
3135
- #
3136
- # @return [Google::Apis::RunV1alpha1::Service]
3137
- #
3138
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3139
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3140
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3141
- def create_project_location_service(parent, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3142
- command = make_simple_command(:post, 'v1alpha1/{+parent}/services', options)
3143
- command.request_representation = Google::Apis::RunV1alpha1::Service::Representation
3144
- command.request_object = service_object
3145
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
3146
- command.response_class = Google::Apis::RunV1alpha1::Service
3147
- command.params['parent'] = parent unless parent.nil?
3148
- command.query['fields'] = fields unless fields.nil?
3149
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3150
- execute_or_queue_command(command, &block)
3151
- end
3152
-
3153
- # Rpc to delete a service. This will cause the Service to stop serving traffic
3154
- # and will delete the child entities like Routes, Configurations and Revisions.
3155
- # @param [String] name
3156
- # The name of the service being deleted. If needed, replace `namespace_id` with
3157
- # the project ID.
3158
- # @param [String] api_version
3159
- # Cloud Run currently ignores this parameter.
3160
- # @param [String] kind
3161
- # Cloud Run currently ignores this parameter.
3162
- # @param [Boolean] orphan_dependents
3163
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
3164
- # cascading behavior, so this must be false. This attribute is deprecated, and
3165
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
3166
- # kubernetes/issues/46659 for more info.
3167
- # @param [String] propagation_policy
3168
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
3169
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
3170
- # workloads/controllers/garbage-collection/ for more information.
3171
- # @param [String] fields
3172
- # Selector specifying which fields to include in a partial response.
3173
- # @param [String] quota_user
3174
- # Available to use for quota purposes for server-side applications. Can be any
3175
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3176
- # @param [Google::Apis::RequestOptions] options
3177
- # Request-specific options
3178
- #
3179
- # @yield [result, err] Result & error if block supplied
3180
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
3181
- # @yieldparam err [StandardError] error object if request failed
3182
- #
3183
- # @return [Google::Apis::RunV1alpha1::Empty]
3184
- #
3185
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3186
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3187
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3188
- def delete_project_location_service(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
3189
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
3190
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
3191
- command.response_class = Google::Apis::RunV1alpha1::Empty
3192
- command.params['name'] = name unless name.nil?
3193
- command.query['apiVersion'] = api_version unless api_version.nil?
3194
- command.query['kind'] = kind unless kind.nil?
3195
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
3196
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
3197
- command.query['fields'] = fields unless fields.nil?
3198
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3199
- execute_or_queue_command(command, &block)
3200
- end
3201
-
3202
- # Rpc to get information about a service.
3203
- # @param [String] name
3204
- # The name of the service being retrieved. If needed, replace `namespace_id`
3205
- # with the project ID.
3206
- # @param [String] fields
3207
- # Selector specifying which fields to include in a partial response.
3208
- # @param [String] quota_user
3209
- # Available to use for quota purposes for server-side applications. Can be any
3210
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3211
- # @param [Google::Apis::RequestOptions] options
3212
- # Request-specific options
3213
- #
3214
- # @yield [result, err] Result & error if block supplied
3215
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
3216
- # @yieldparam err [StandardError] error object if request failed
3217
- #
3218
- # @return [Google::Apis::RunV1alpha1::Service]
3219
- #
3220
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3221
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3222
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3223
- def get_project_location_service(name, fields: nil, quota_user: nil, options: nil, &block)
3224
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
3225
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
3226
- command.response_class = Google::Apis::RunV1alpha1::Service
3227
- command.params['name'] = name unless name.nil?
3228
- command.query['fields'] = fields unless fields.nil?
3229
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3230
- execute_or_queue_command(command, &block)
3231
- end
3232
-
3233
- # Get the IAM Access Control policy currently in effect for the given Cloud Run
3234
- # service. This result does not include any inherited policies.
3235
- # @param [String] resource
3236
- # REQUIRED: The resource for which the policy is being requested. See the
3237
- # operation documentation for the appropriate value for this field.
3238
- # @param [Fixnum] options_requested_policy_version
3239
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
3240
- # 3. Requests specifying an invalid value will be rejected. Requests for
3241
- # policies with any conditional bindings must specify version 3. Policies
3242
- # without any conditional bindings may specify any valid value or leave the
3243
- # field unset. To learn which resources support conditions in their IAM policies,
3244
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
3245
- # resource-policies).
3246
- # @param [String] fields
3247
- # Selector specifying which fields to include in a partial response.
3248
- # @param [String] quota_user
3249
- # Available to use for quota purposes for server-side applications. Can be any
3250
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3251
- # @param [Google::Apis::RequestOptions] options
3252
- # Request-specific options
3253
- #
3254
- # @yield [result, err] Result & error if block supplied
3255
- # @yieldparam result [Google::Apis::RunV1alpha1::Policy] parsed result object
3256
- # @yieldparam err [StandardError] error object if request failed
3257
- #
3258
- # @return [Google::Apis::RunV1alpha1::Policy]
3259
- #
3260
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3261
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3262
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3263
- def get_project_location_service_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
3264
- command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
3265
- command.response_representation = Google::Apis::RunV1alpha1::Policy::Representation
3266
- command.response_class = Google::Apis::RunV1alpha1::Policy
3267
- command.params['resource'] = resource unless resource.nil?
3268
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
3269
- command.query['fields'] = fields unless fields.nil?
3270
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3271
- execute_or_queue_command(command, &block)
3272
- end
3273
-
3274
- # Rpc to list services.
3275
- # @param [String] parent
3276
- # The project ID or project number from which the services should be listed.
3277
- # @param [String] continue
3278
- # Optional encoded string to continue paging.
3279
- # @param [String] field_selector
3280
- # Allows to filter resources based on a specific value for a field name. Send
3281
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
3282
- # used by Cloud Run.
3283
- # @param [Boolean] include_uninitialized
3284
- # Not currently used by Cloud Run.
3285
- # @param [String] label_selector
3286
- # Allows to filter resources based on a label. Supported operations are =, !=,
3287
- # exists, in, and notIn.
3288
- # @param [Fixnum] limit
3289
- # The maximum number of records that should be returned.
3290
- # @param [String] resource_version
3291
- # The baseline resource version from which the list or watch operation should
3292
- # start. Not currently used by Cloud Run.
3293
- # @param [Boolean] watch
3294
- # Flag that indicates that the client expects to watch this resource as well.
3295
- # Not currently used by Cloud Run.
3296
- # @param [String] fields
3297
- # Selector specifying which fields to include in a partial response.
3298
- # @param [String] quota_user
3299
- # Available to use for quota purposes for server-side applications. Can be any
3300
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3301
- # @param [Google::Apis::RequestOptions] options
3302
- # Request-specific options
3303
- #
3304
- # @yield [result, err] Result & error if block supplied
3305
- # @yieldparam result [Google::Apis::RunV1alpha1::ListServicesResponse] parsed result object
3306
- # @yieldparam err [StandardError] error object if request failed
3307
- #
3308
- # @return [Google::Apis::RunV1alpha1::ListServicesResponse]
3309
- #
3310
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3311
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3312
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3313
- def list_project_location_services(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
3314
- command = make_simple_command(:get, 'v1alpha1/{+parent}/services', options)
3315
- command.response_representation = Google::Apis::RunV1alpha1::ListServicesResponse::Representation
3316
- command.response_class = Google::Apis::RunV1alpha1::ListServicesResponse
3317
- command.params['parent'] = parent unless parent.nil?
3318
- command.query['continue'] = continue unless continue.nil?
3319
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
3320
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
3321
- command.query['labelSelector'] = label_selector unless label_selector.nil?
3322
- command.query['limit'] = limit unless limit.nil?
3323
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
3324
- command.query['watch'] = watch unless watch.nil?
3325
- command.query['fields'] = fields unless fields.nil?
3326
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3327
- execute_or_queue_command(command, &block)
3328
- end
3329
-
3330
- # Rpc to replace a service. Only the spec and metadata labels and annotations
3331
- # are modifiable. After the Update request, Cloud Run will work to make the '
3332
- # status' match the requested 'spec'. May provide metadata.resourceVersion to
3333
- # enforce update from last read for optimistic concurrency control.
3334
- # @param [String] name
3335
- # The name of the service being replaced. If needed, replace `namespace_id` with
3336
- # the project ID.
3337
- # @param [Google::Apis::RunV1alpha1::Service] service_object
3338
- # @param [String] fields
3339
- # Selector specifying which fields to include in a partial response.
3340
- # @param [String] quota_user
3341
- # Available to use for quota purposes for server-side applications. Can be any
3342
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3343
- # @param [Google::Apis::RequestOptions] options
3344
- # Request-specific options
3345
- #
3346
- # @yield [result, err] Result & error if block supplied
3347
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
3348
- # @yieldparam err [StandardError] error object if request failed
3349
- #
3350
- # @return [Google::Apis::RunV1alpha1::Service]
3351
- #
3352
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3353
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3354
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3355
- def replace_project_location_service_service(name, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3356
- command = make_simple_command(:put, 'v1alpha1/{+name}', options)
3357
- command.request_representation = Google::Apis::RunV1alpha1::Service::Representation
3358
- command.request_object = service_object
3359
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
3360
- command.response_class = Google::Apis::RunV1alpha1::Service
3361
- command.params['name'] = name unless name.nil?
3362
- command.query['fields'] = fields unless fields.nil?
3363
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3364
- execute_or_queue_command(command, &block)
3365
- end
3366
-
3367
- # Sets the IAM Access control policy for the specified Service. Overwrites any
3368
- # existing policy.
3369
- # @param [String] resource
3370
- # REQUIRED: The resource for which the policy is being specified. See the
3371
- # operation documentation for the appropriate value for this field.
3372
- # @param [Google::Apis::RunV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
3373
- # @param [String] fields
3374
- # Selector specifying which fields to include in a partial response.
3375
- # @param [String] quota_user
3376
- # Available to use for quota purposes for server-side applications. Can be any
3377
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3378
- # @param [Google::Apis::RequestOptions] options
3379
- # Request-specific options
3380
- #
3381
- # @yield [result, err] Result & error if block supplied
3382
- # @yieldparam result [Google::Apis::RunV1alpha1::Policy] parsed result object
3383
- # @yieldparam err [StandardError] error object if request failed
3384
- #
3385
- # @return [Google::Apis::RunV1alpha1::Policy]
3386
- #
3387
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3388
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3389
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3390
- def set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3391
- command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
3392
- command.request_representation = Google::Apis::RunV1alpha1::SetIamPolicyRequest::Representation
3393
- command.request_object = set_iam_policy_request_object
3394
- command.response_representation = Google::Apis::RunV1alpha1::Policy::Representation
3395
- command.response_class = Google::Apis::RunV1alpha1::Policy
3396
- command.params['resource'] = resource unless resource.nil?
3397
- command.query['fields'] = fields unless fields.nil?
3398
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3399
- execute_or_queue_command(command, &block)
3400
- end
3401
-
3402
- # Returns permissions that a caller has on the specified Project. There are no
3403
- # permissions required for making this API call.
3404
- # @param [String] resource
3405
- # REQUIRED: The resource for which the policy detail is being requested. See the
3406
- # operation documentation for the appropriate value for this field.
3407
- # @param [Google::Apis::RunV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
3408
- # @param [String] fields
3409
- # Selector specifying which fields to include in a partial response.
3410
- # @param [String] quota_user
3411
- # Available to use for quota purposes for server-side applications. Can be any
3412
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3413
- # @param [Google::Apis::RequestOptions] options
3414
- # Request-specific options
3415
- #
3416
- # @yield [result, err] Result & error if block supplied
3417
- # @yieldparam result [Google::Apis::RunV1alpha1::TestIamPermissionsResponse] parsed result object
3418
- # @yieldparam err [StandardError] error object if request failed
3419
- #
3420
- # @return [Google::Apis::RunV1alpha1::TestIamPermissionsResponse]
3421
- #
3422
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3423
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3424
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3425
- def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3426
- command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
3427
- command.request_representation = Google::Apis::RunV1alpha1::TestIamPermissionsRequest::Representation
3428
- command.request_object = test_iam_permissions_request_object
3429
- command.response_representation = Google::Apis::RunV1alpha1::TestIamPermissionsResponse::Representation
3430
- command.response_class = Google::Apis::RunV1alpha1::TestIamPermissionsResponse
3431
- command.params['resource'] = resource unless resource.nil?
3432
- command.query['fields'] = fields unless fields.nil?
3433
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3434
- execute_or_queue_command(command, &block)
3435
- end
3436
-
3437
- # Creates a new trigger.
53
+ # Create a job.
3438
54
  # @param [String] parent
3439
- # The project ID or project number in which this trigger should be created.
3440
- # @param [Google::Apis::RunV1alpha1::Trigger] trigger_object
55
+ # Required. The namespace in which the job should be created. Replace `
56
+ # namespace_id` with the project ID or number.
57
+ # @param [Google::Apis::RunV1alpha1::Job] job_object
3441
58
  # @param [String] fields
3442
59
  # Selector specifying which fields to include in a partial response.
3443
60
  # @param [String] quota_user
@@ -3447,38 +64,38 @@ module Google
3447
64
  # Request-specific options
3448
65
  #
3449
66
  # @yield [result, err] Result & error if block supplied
3450
- # @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
67
+ # @yieldparam result [Google::Apis::RunV1alpha1::Job] parsed result object
3451
68
  # @yieldparam err [StandardError] error object if request failed
3452
69
  #
3453
- # @return [Google::Apis::RunV1alpha1::Trigger]
70
+ # @return [Google::Apis::RunV1alpha1::Job]
3454
71
  #
3455
72
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3456
73
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3457
74
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3458
- def create_project_location_trigger(parent, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3459
- command = make_simple_command(:post, 'v1alpha1/{+parent}/triggers', options)
3460
- command.request_representation = Google::Apis::RunV1alpha1::Trigger::Representation
3461
- command.request_object = trigger_object
3462
- command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
3463
- command.response_class = Google::Apis::RunV1alpha1::Trigger
75
+ def create_namespace_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:post, 'apis/run.googleapis.com/v1alpha1/{+parent}/jobs', options)
77
+ command.request_representation = Google::Apis::RunV1alpha1::Job::Representation
78
+ command.request_object = job_object
79
+ command.response_representation = Google::Apis::RunV1alpha1::Job::Representation
80
+ command.response_class = Google::Apis::RunV1alpha1::Job
3464
81
  command.params['parent'] = parent unless parent.nil?
3465
82
  command.query['fields'] = fields unless fields.nil?
3466
83
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3467
84
  execute_or_queue_command(command, &block)
3468
85
  end
3469
86
 
3470
- # Rpc to delete a trigger.
87
+ # Delete a job.
3471
88
  # @param [String] name
3472
- # The name of the trigger being deleted. If needed, replace `namespace_id` with
3473
- # the project ID.
89
+ # Required. The name of the job to delete. For Cloud Run (fully managed),
90
+ # replace `namespace_id` with the project ID or number.
3474
91
  # @param [String] api_version
3475
- # Cloud Run currently ignores this parameter.
92
+ # Optional. Cloud Run currently ignores this parameter.
3476
93
  # @param [String] kind
3477
- # Cloud Run currently ignores this parameter.
94
+ # Optional. Cloud Run currently ignores this parameter.
3478
95
  # @param [String] propagation_policy
3479
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
3480
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
3481
- # workloads/controllers/garbage-collection/ for more information.
96
+ # Optional. Specifies the propagation policy of delete. Cloud Run currently
97
+ # ignores this setting, and deletes in the background. Please see kubernetes.io/
98
+ # docs/concepts/workloads/controllers/garbage-collection/ for more information.
3482
99
  # @param [String] fields
3483
100
  # Selector specifying which fields to include in a partial response.
3484
101
  # @param [String] quota_user
@@ -3496,8 +113,8 @@ module Google
3496
113
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3497
114
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3498
115
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3499
- def delete_project_location_trigger(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
3500
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
116
+ def delete_namespace_job(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:delete, 'apis/run.googleapis.com/v1alpha1/{+name}', options)
3501
118
  command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
3502
119
  command.response_class = Google::Apis::RunV1alpha1::Empty
3503
120
  command.params['name'] = name unless name.nil?
@@ -3509,10 +126,10 @@ module Google
3509
126
  execute_or_queue_command(command, &block)
3510
127
  end
3511
128
 
3512
- # Rpc to get information about a trigger.
129
+ # Get information about a job.
3513
130
  # @param [String] name
3514
- # The name of the trigger being retrieved. If needed, replace `namespace_id`
3515
- # with the project ID.
131
+ # Required. The name of the job to retrieve. For Cloud Run (fully managed),
132
+ # replace `namespace_id` with the project ID or number.
3516
133
  # @param [String] fields
3517
134
  # Selector specifying which fields to include in a partial response.
3518
135
  # @param [String] quota_user
@@ -3522,46 +139,47 @@ module Google
3522
139
  # Request-specific options
3523
140
  #
3524
141
  # @yield [result, err] Result & error if block supplied
3525
- # @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
142
+ # @yieldparam result [Google::Apis::RunV1alpha1::Job] parsed result object
3526
143
  # @yieldparam err [StandardError] error object if request failed
3527
144
  #
3528
- # @return [Google::Apis::RunV1alpha1::Trigger]
145
+ # @return [Google::Apis::RunV1alpha1::Job]
3529
146
  #
3530
147
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3531
148
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3532
149
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3533
- def get_project_location_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
3534
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
3535
- command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
3536
- command.response_class = Google::Apis::RunV1alpha1::Trigger
150
+ def get_namespace_job(name, fields: nil, quota_user: nil, options: nil, &block)
151
+ command = make_simple_command(:get, 'apis/run.googleapis.com/v1alpha1/{+name}', options)
152
+ command.response_representation = Google::Apis::RunV1alpha1::Job::Representation
153
+ command.response_class = Google::Apis::RunV1alpha1::Job
3537
154
  command.params['name'] = name unless name.nil?
3538
155
  command.query['fields'] = fields unless fields.nil?
3539
156
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3540
157
  execute_or_queue_command(command, &block)
3541
158
  end
3542
159
 
3543
- # Rpc to list triggers.
160
+ # List jobs.
3544
161
  # @param [String] parent
3545
- # The project ID or project number from which the triggers should be listed.
162
+ # Required. The namespace from which the jobs should be listed. Replace `
163
+ # namespace_id` with the project ID or number.
3546
164
  # @param [String] continue
3547
- # Optional. Encoded string to continue paging.
165
+ # Optional. Optional encoded string to continue paging.
3548
166
  # @param [String] field_selector
3549
- # Allows to filter resources based on a specific value for a field name. Send
3550
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
3551
- # used by Cloud Run.
167
+ # Optional. Allows to filter resources based on a specific value for a field
168
+ # name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not
169
+ # currently used by Cloud Run.
3552
170
  # @param [Boolean] include_uninitialized
3553
- # Not currently used by Cloud Run.
171
+ # Optional. Not currently used by Cloud Run.
3554
172
  # @param [String] label_selector
3555
- # Allows to filter resources based on a label. Supported operations are =, !=,
3556
- # exists, in, and notIn.
173
+ # Optional. Allows to filter resources based on a label. Supported operations
174
+ # are =, !=, exists, in, and notIn.
3557
175
  # @param [Fixnum] limit
3558
- # The maximum number of records that should be returned.
176
+ # Optional. The maximum number of records that should be returned.
3559
177
  # @param [String] resource_version
3560
- # The baseline resource version from which the list or watch operation should
3561
- # start. Not currently used by Cloud Run.
178
+ # Optional. The baseline resource version from which the list or watch operation
179
+ # should start. Not currently used by Cloud Run.
3562
180
  # @param [Boolean] watch
3563
- # Flag that indicates that the client expects to watch this resource as well.
3564
- # Not currently used by Cloud Run.
181
+ # Optional. Flag that indicates that the client expects to watch this resource
182
+ # as well. Not currently used by Cloud Run.
3565
183
  # @param [String] fields
3566
184
  # Selector specifying which fields to include in a partial response.
3567
185
  # @param [String] quota_user
@@ -3571,18 +189,18 @@ module Google
3571
189
  # Request-specific options
3572
190
  #
3573
191
  # @yield [result, err] Result & error if block supplied
3574
- # @yieldparam result [Google::Apis::RunV1alpha1::ListTriggersResponse] parsed result object
192
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListJobsResponse] parsed result object
3575
193
  # @yieldparam err [StandardError] error object if request failed
3576
194
  #
3577
- # @return [Google::Apis::RunV1alpha1::ListTriggersResponse]
195
+ # @return [Google::Apis::RunV1alpha1::ListJobsResponse]
3578
196
  #
3579
197
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3580
198
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3581
199
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3582
- def list_project_location_triggers(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
3583
- command = make_simple_command(:get, 'v1alpha1/{+parent}/triggers', options)
3584
- command.response_representation = Google::Apis::RunV1alpha1::ListTriggersResponse::Representation
3585
- command.response_class = Google::Apis::RunV1alpha1::ListTriggersResponse
200
+ def list_namespace_jobs(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
201
+ command = make_simple_command(:get, 'apis/run.googleapis.com/v1alpha1/{+parent}/jobs', options)
202
+ command.response_representation = Google::Apis::RunV1alpha1::ListJobsResponse::Representation
203
+ command.response_class = Google::Apis::RunV1alpha1::ListJobsResponse
3586
204
  command.params['parent'] = parent unless parent.nil?
3587
205
  command.query['continue'] = continue unless continue.nil?
3588
206
  command.query['fieldSelector'] = field_selector unless field_selector.nil?