google-apis-run_v1alpha1 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -86,85 +86,9 @@ module Google
86
86
  execute_or_queue_command(command, &block)
87
87
  end
88
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.
89
+ # Rpc to get information about a configuration.
166
90
  # @param [String] name
167
- # The name of the cloudauditlogssource being retrieved. If needed, replace `
91
+ # The name of the configuration being retrieved. If needed, replace `
168
92
  # namespace_id` with the project ID.
169
93
  # @param [String] fields
170
94
  # Selector specifying which fields to include in a partial response.
@@ -175,28 +99,28 @@ module Google
175
99
  # Request-specific options
176
100
  #
177
101
  # @yield [result, err] Result & error if block supplied
178
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLogsSource] parsed result object
102
+ # @yieldparam result [Google::Apis::RunV1alpha1::Configuration] parsed result object
179
103
  # @yieldparam err [StandardError] error object if request failed
180
104
  #
181
- # @return [Google::Apis::RunV1alpha1::CloudAuditLogsSource]
105
+ # @return [Google::Apis::RunV1alpha1::Configuration]
182
106
  #
183
107
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
184
108
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
109
  # @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
110
+ def get_namespace_configuration(name, fields: nil, quota_user: nil, options: nil, &block)
111
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
112
+ command.response_representation = Google::Apis::RunV1alpha1::Configuration::Representation
113
+ command.response_class = Google::Apis::RunV1alpha1::Configuration
190
114
  command.params['name'] = name unless name.nil?
191
115
  command.query['fields'] = fields unless fields.nil?
192
116
  command.query['quotaUser'] = quota_user unless quota_user.nil?
193
117
  execute_or_queue_command(command, &block)
194
118
  end
195
119
 
196
- # Rpc to list cloudauditlogssources.
120
+ # Rpc to list configurations.
197
121
  # @param [String] parent
198
- # The project ID or project number from which the cloudauditlogssources should
199
- # be listed.
122
+ # The project ID or project number from which the configurations should be
123
+ # listed.
200
124
  # @param [String] continue
201
125
  # Optional encoded string to continue paging.
202
126
  # @param [String] field_selector
@@ -225,18 +149,18 @@ module Google
225
149
  # Request-specific options
226
150
  #
227
151
  # @yield [result, err] Result & error if block supplied
228
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse] parsed result object
152
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListConfigurationsResponse] parsed result object
229
153
  # @yieldparam err [StandardError] error object if request failed
230
154
  #
231
- # @return [Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse]
155
+ # @return [Google::Apis::RunV1alpha1::ListConfigurationsResponse]
232
156
  #
233
157
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
234
158
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
235
159
  # @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
160
+ 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)
161
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/configurations', options)
162
+ command.response_representation = Google::Apis::RunV1alpha1::ListConfigurationsResponse::Representation
163
+ command.response_class = Google::Apis::RunV1alpha1::ListConfigurationsResponse
240
164
  command.params['parent'] = parent unless parent.nil?
241
165
  command.query['continue'] = continue unless continue.nil?
242
166
  command.query['fieldSelector'] = field_selector unless field_selector.nil?
@@ -250,11 +174,11 @@ module Google
250
174
  execute_or_queue_command(command, &block)
251
175
  end
252
176
 
253
- # Creates a new cloudpubsubsource.
177
+ # Creates a new domain mapping.
254
178
  # @param [String] parent
255
- # The project ID or project number in which this cloudpubsubsource should be
179
+ # The project ID or project number in which this domain mapping should be
256
180
  # created.
257
- # @param [Google::Apis::RunV1alpha1::CloudPubSubSource] cloud_pub_sub_source_object
181
+ # @param [Google::Apis::RunV1alpha1::DomainMapping] domain_mapping_object
258
182
  # @param [String] fields
259
183
  # Selector specifying which fields to include in a partial response.
260
184
  # @param [String] quota_user
@@ -264,34 +188,39 @@ module Google
264
188
  # Request-specific options
265
189
  #
266
190
  # @yield [result, err] Result & error if block supplied
267
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudPubSubSource] parsed result object
191
+ # @yieldparam result [Google::Apis::RunV1alpha1::DomainMapping] parsed result object
268
192
  # @yieldparam err [StandardError] error object if request failed
269
193
  #
270
- # @return [Google::Apis::RunV1alpha1::CloudPubSubSource]
194
+ # @return [Google::Apis::RunV1alpha1::DomainMapping]
271
195
  #
272
196
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
273
197
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
274
198
  # @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
199
+ def create_namespace_domainmapping(parent, domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block)
200
+ command = make_simple_command(:post, 'apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings', options)
201
+ command.request_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
202
+ command.request_object = domain_mapping_object
203
+ command.response_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
204
+ command.response_class = Google::Apis::RunV1alpha1::DomainMapping
281
205
  command.params['parent'] = parent unless parent.nil?
282
206
  command.query['fields'] = fields unless fields.nil?
283
207
  command.query['quotaUser'] = quota_user unless quota_user.nil?
284
208
  execute_or_queue_command(command, &block)
285
209
  end
286
210
 
287
- # Rpc to delete a cloudpubsubsource.
211
+ # Rpc to delete a domain mapping.
288
212
  # @param [String] name
289
- # The name of the cloudpubsubsource being deleted. If needed, replace `
290
- # namespace_id` with the project ID.
213
+ # The name of the domain mapping being deleted. If needed, replace `namespace_id`
214
+ # with the project ID.
291
215
  # @param [String] api_version
292
216
  # Cloud Run currently ignores this parameter.
293
217
  # @param [String] kind
294
218
  # Cloud Run currently ignores this parameter.
219
+ # @param [Boolean] orphan_dependents
220
+ # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
221
+ # cascading behavior, so this must be false. This attribute is deprecated, and
222
+ # is now replaced with PropagationPolicy See https://github.com/kubernetes/
223
+ # kubernetes/issues/46659 for more info.
295
224
  # @param [String] propagation_policy
296
225
  # Specifies the propagation policy of delete. Cloud Run currently ignores this
297
226
  # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
@@ -313,22 +242,23 @@ module Google
313
242
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
243
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
244
  # @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)
245
+ def delete_namespace_domainmapping(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
246
+ command = make_simple_command(:delete, 'apis/domains.cloudrun.com/v1alpha1/{+name}', options)
318
247
  command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
319
248
  command.response_class = Google::Apis::RunV1alpha1::Empty
320
249
  command.params['name'] = name unless name.nil?
321
250
  command.query['apiVersion'] = api_version unless api_version.nil?
322
251
  command.query['kind'] = kind unless kind.nil?
252
+ command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
323
253
  command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
324
254
  command.query['fields'] = fields unless fields.nil?
325
255
  command.query['quotaUser'] = quota_user unless quota_user.nil?
326
256
  execute_or_queue_command(command, &block)
327
257
  end
328
258
 
329
- # Rpc to get information about a cloudpubsubsource.
259
+ # Rpc to get information about a domain mapping.
330
260
  # @param [String] name
331
- # The name of the cloudpubsubsource being retrieved. If needed, replace `
261
+ # The name of the domain mapping being retrieved. If needed, replace `
332
262
  # namespace_id` with the project ID.
333
263
  # @param [String] fields
334
264
  # Selector specifying which fields to include in a partial response.
@@ -339,27 +269,27 @@ module Google
339
269
  # Request-specific options
340
270
  #
341
271
  # @yield [result, err] Result & error if block supplied
342
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudPubSubSource] parsed result object
272
+ # @yieldparam result [Google::Apis::RunV1alpha1::DomainMapping] parsed result object
343
273
  # @yieldparam err [StandardError] error object if request failed
344
274
  #
345
- # @return [Google::Apis::RunV1alpha1::CloudPubSubSource]
275
+ # @return [Google::Apis::RunV1alpha1::DomainMapping]
346
276
  #
347
277
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
348
278
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
349
279
  # @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
280
+ def get_namespace_domainmapping(name, fields: nil, quota_user: nil, options: nil, &block)
281
+ command = make_simple_command(:get, 'apis/domains.cloudrun.com/v1alpha1/{+name}', options)
282
+ command.response_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
283
+ command.response_class = Google::Apis::RunV1alpha1::DomainMapping
354
284
  command.params['name'] = name unless name.nil?
355
285
  command.query['fields'] = fields unless fields.nil?
356
286
  command.query['quotaUser'] = quota_user unless quota_user.nil?
357
287
  execute_or_queue_command(command, &block)
358
288
  end
359
289
 
360
- # Rpc to list cloudpubsubsources.
290
+ # Rpc to list domain mappings.
361
291
  # @param [String] parent
362
- # The project ID or project number from which the cloudpubsubsources should be
292
+ # The project ID or project number from which the domain mappings should be
363
293
  # listed.
364
294
  # @param [String] continue
365
295
  # Optional encoded string to continue paging.
@@ -389,18 +319,18 @@ module Google
389
319
  # Request-specific options
390
320
  #
391
321
  # @yield [result, err] Result & error if block supplied
392
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse] parsed result object
322
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListDomainMappingsResponse] parsed result object
393
323
  # @yieldparam err [StandardError] error object if request failed
394
324
  #
395
- # @return [Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse]
325
+ # @return [Google::Apis::RunV1alpha1::ListDomainMappingsResponse]
396
326
  #
397
327
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
398
328
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
399
329
  # @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
330
+ 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)
331
+ command = make_simple_command(:get, 'apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings', options)
332
+ command.response_representation = Google::Apis::RunV1alpha1::ListDomainMappingsResponse::Representation
333
+ command.response_class = Google::Apis::RunV1alpha1::ListDomainMappingsResponse
404
334
  command.params['parent'] = parent unless parent.nil?
405
335
  command.query['continue'] = continue unless continue.nil?
406
336
  command.query['fieldSelector'] = field_selector unless field_selector.nil?
@@ -414,11 +344,11 @@ module Google
414
344
  execute_or_queue_command(command, &block)
415
345
  end
416
346
 
417
- # Creates a new cloudschedulersource.
347
+ # Create a job.
418
348
  # @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
349
+ # Required. The namespace in which the job should be created. Replace `
350
+ # namespace_id` with the project ID or number.
351
+ # @param [Google::Apis::RunV1alpha1::Job] job_object
422
352
  # @param [String] fields
423
353
  # Selector specifying which fields to include in a partial response.
424
354
  # @param [String] quota_user
@@ -428,38 +358,38 @@ module Google
428
358
  # Request-specific options
429
359
  #
430
360
  # @yield [result, err] Result & error if block supplied
431
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudSchedulerSource] parsed result object
361
+ # @yieldparam result [Google::Apis::RunV1alpha1::Job] parsed result object
432
362
  # @yieldparam err [StandardError] error object if request failed
433
363
  #
434
- # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource]
364
+ # @return [Google::Apis::RunV1alpha1::Job]
435
365
  #
436
366
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
437
367
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
438
368
  # @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
369
+ def create_namespace_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
370
+ command = make_simple_command(:post, 'apis/run.googleapis.com/v1alpha1/{+parent}/jobs', options)
371
+ command.request_representation = Google::Apis::RunV1alpha1::Job::Representation
372
+ command.request_object = job_object
373
+ command.response_representation = Google::Apis::RunV1alpha1::Job::Representation
374
+ command.response_class = Google::Apis::RunV1alpha1::Job
445
375
  command.params['parent'] = parent unless parent.nil?
446
376
  command.query['fields'] = fields unless fields.nil?
447
377
  command.query['quotaUser'] = quota_user unless quota_user.nil?
448
378
  execute_or_queue_command(command, &block)
449
379
  end
450
380
 
451
- # Rpc to delete a cloudschedulersource.
381
+ # Delete a job.
452
382
  # @param [String] name
453
- # Required. The name of the cloudschedulersource being deleted. If needed,
454
- # replace `namespace_id` with the project ID.
383
+ # Required. The name of the job to delete. For Cloud Run (fully managed),
384
+ # replace `namespace_id` with the project ID or number.
455
385
  # @param [String] api_version
456
- # Cloud Run currently ignores this parameter.
386
+ # Optional. Cloud Run currently ignores this parameter.
457
387
  # @param [String] kind
458
- # Cloud Run currently ignores this parameter.
388
+ # Optional. Cloud Run currently ignores this parameter.
459
389
  # @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.
390
+ # Optional. Specifies the propagation policy of delete. Cloud Run currently
391
+ # ignores this setting, and deletes in the background. Please see kubernetes.io/
392
+ # docs/concepts/workloads/controllers/garbage-collection/ for more information.
463
393
  # @param [String] fields
464
394
  # Selector specifying which fields to include in a partial response.
465
395
  # @param [String] quota_user
@@ -477,8 +407,8 @@ module Google
477
407
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
478
408
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
479
409
  # @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)
410
+ def delete_namespace_job(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
411
+ command = make_simple_command(:delete, 'apis/run.googleapis.com/v1alpha1/{+name}', options)
482
412
  command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
483
413
  command.response_class = Google::Apis::RunV1alpha1::Empty
484
414
  command.params['name'] = name unless name.nil?
@@ -490,10 +420,10 @@ module Google
490
420
  execute_or_queue_command(command, &block)
491
421
  end
492
422
 
493
- # Rpc to get information about a cloudschedulersource.
423
+ # Get information about a job.
494
424
  # @param [String] name
495
- # Required. The name of the cloudschedulersource being retrieved. If needed,
496
- # replace `namespace_id` with the project ID.
425
+ # Required. The name of the job to retrieve. For Cloud Run (fully managed),
426
+ # replace `namespace_id` with the project ID or number.
497
427
  # @param [String] fields
498
428
  # Selector specifying which fields to include in a partial response.
499
429
  # @param [String] quota_user
@@ -503,47 +433,47 @@ module Google
503
433
  # Request-specific options
504
434
  #
505
435
  # @yield [result, err] Result & error if block supplied
506
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudSchedulerSource] parsed result object
436
+ # @yieldparam result [Google::Apis::RunV1alpha1::Job] parsed result object
507
437
  # @yieldparam err [StandardError] error object if request failed
508
438
  #
509
- # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource]
439
+ # @return [Google::Apis::RunV1alpha1::Job]
510
440
  #
511
441
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
512
442
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
513
443
  # @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
444
+ def get_namespace_job(name, fields: nil, quota_user: nil, options: nil, &block)
445
+ command = make_simple_command(:get, 'apis/run.googleapis.com/v1alpha1/{+name}', options)
446
+ command.response_representation = Google::Apis::RunV1alpha1::Job::Representation
447
+ command.response_class = Google::Apis::RunV1alpha1::Job
518
448
  command.params['name'] = name unless name.nil?
519
449
  command.query['fields'] = fields unless fields.nil?
520
450
  command.query['quotaUser'] = quota_user unless quota_user.nil?
521
451
  execute_or_queue_command(command, &block)
522
452
  end
523
453
 
524
- # Rpc to list cloudschedulersources.
454
+ # List jobs.
525
455
  # @param [String] parent
526
- # Required. The project ID or project number from which the
527
- # cloudschedulersources should be listed.
456
+ # Required. The namespace from which the jobs should be listed. Replace `
457
+ # namespace_id` with the project ID or number.
528
458
  # @param [String] continue
529
- # Optional encoded string to continue paging.
459
+ # Optional. Optional encoded string to continue paging.
530
460
  # @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.
461
+ # Optional. Allows to filter resources based on a specific value for a field
462
+ # name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not
463
+ # currently used by Cloud Run.
534
464
  # @param [Boolean] include_uninitialized
535
- # Not currently used by Cloud Run.
465
+ # Optional. Not currently used by Cloud Run.
536
466
  # @param [String] label_selector
537
- # Allows to filter resources based on a label. Supported operations are =, !=,
538
- # exists, in, and notIn.
467
+ # Optional. Allows to filter resources based on a label. Supported operations
468
+ # are =, !=, exists, in, and notIn.
539
469
  # @param [Fixnum] limit
540
- # The maximum number of records that should be returned.
470
+ # Optional. The maximum number of records that should be returned.
541
471
  # @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.
472
+ # Optional. The baseline resource version from which the list or watch operation
473
+ # should start. Not currently used by Cloud Run.
544
474
  # @param [Boolean] watch
545
- # Flag that indicates that the client expects to watch this resource as well.
546
- # Not currently used by Cloud Run.
475
+ # Optional. Flag that indicates that the client expects to watch this resource
476
+ # as well. Not currently used by Cloud Run.
547
477
  # @param [String] fields
548
478
  # Selector specifying which fields to include in a partial response.
549
479
  # @param [String] quota_user
@@ -553,18 +483,18 @@ module Google
553
483
  # Request-specific options
554
484
  #
555
485
  # @yield [result, err] Result & error if block supplied
556
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse] parsed result object
486
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListJobsResponse] parsed result object
557
487
  # @yieldparam err [StandardError] error object if request failed
558
488
  #
559
- # @return [Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse]
489
+ # @return [Google::Apis::RunV1alpha1::ListJobsResponse]
560
490
  #
561
491
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
562
492
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
563
493
  # @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
494
+ 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)
495
+ command = make_simple_command(:get, 'apis/run.googleapis.com/v1alpha1/{+parent}/jobs', options)
496
+ command.response_representation = Google::Apis::RunV1alpha1::ListJobsResponse::Representation
497
+ command.response_class = Google::Apis::RunV1alpha1::ListJobsResponse
568
498
  command.params['parent'] = parent unless parent.nil?
569
499
  command.query['continue'] = continue unless continue.nil?
570
500
  command.query['fieldSelector'] = field_selector unless field_selector.nil?
@@ -578,86 +508,19 @@ module Google
578
508
  execute_or_queue_command(command, &block)
579
509
  end
580
510
 
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.
511
+ # Rpc to delete a revision.
654
512
  # @param [String] name
655
- # Required. The name of the cloudstoragesource being deleted. If needed, replace
656
- # `namespace_id` with the project ID.
513
+ # The name of the revision being deleted. If needed, replace `namespace_id` with
514
+ # the project ID.
657
515
  # @param [String] api_version
658
516
  # Cloud Run currently ignores this parameter.
659
517
  # @param [String] kind
660
518
  # Cloud Run currently ignores this parameter.
519
+ # @param [Boolean] orphan_dependents
520
+ # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
521
+ # cascading behavior, so this must be false. This attribute is deprecated, and
522
+ # is now replaced with PropagationPolicy See https://github.com/kubernetes/
523
+ # kubernetes/issues/46659 for more info.
661
524
  # @param [String] propagation_policy
662
525
  # Specifies the propagation policy of delete. Cloud Run currently ignores this
663
526
  # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
@@ -679,23 +542,24 @@ module Google
679
542
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
680
543
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
681
544
  # @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)
545
+ def delete_namespace_revision(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
546
+ command = make_simple_command(:delete, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
684
547
  command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
685
548
  command.response_class = Google::Apis::RunV1alpha1::Empty
686
549
  command.params['name'] = name unless name.nil?
687
550
  command.query['apiVersion'] = api_version unless api_version.nil?
688
551
  command.query['kind'] = kind unless kind.nil?
552
+ command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
689
553
  command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
690
554
  command.query['fields'] = fields unless fields.nil?
691
555
  command.query['quotaUser'] = quota_user unless quota_user.nil?
692
556
  execute_or_queue_command(command, &block)
693
557
  end
694
558
 
695
- # Rpc to get information about a cloudstoragesource.
559
+ # Rpc to get information about a revision.
696
560
  # @param [String] name
697
- # Required. The name of the cloudstoragesource being retrieved. If needed,
698
- # replace `namespace_id` with the project ID.
561
+ # The name of the revision being retrieved. If needed, replace `namespace_id`
562
+ # with the project ID.
699
563
  # @param [String] fields
700
564
  # Selector specifying which fields to include in a partial response.
701
565
  # @param [String] quota_user
@@ -705,28 +569,27 @@ module Google
705
569
  # Request-specific options
706
570
  #
707
571
  # @yield [result, err] Result & error if block supplied
708
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudStorageSource] parsed result object
572
+ # @yieldparam result [Google::Apis::RunV1alpha1::Revision] parsed result object
709
573
  # @yieldparam err [StandardError] error object if request failed
710
574
  #
711
- # @return [Google::Apis::RunV1alpha1::CloudStorageSource]
575
+ # @return [Google::Apis::RunV1alpha1::Revision]
712
576
  #
713
577
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
714
578
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
715
579
  # @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
580
+ def get_namespace_revision(name, fields: nil, quota_user: nil, options: nil, &block)
581
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
582
+ command.response_representation = Google::Apis::RunV1alpha1::Revision::Representation
583
+ command.response_class = Google::Apis::RunV1alpha1::Revision
720
584
  command.params['name'] = name unless name.nil?
721
585
  command.query['fields'] = fields unless fields.nil?
722
586
  command.query['quotaUser'] = quota_user unless quota_user.nil?
723
587
  execute_or_queue_command(command, &block)
724
588
  end
725
589
 
726
- # Rpc to list cloudstoragesources.
590
+ # Rpc to list revisions.
727
591
  # @param [String] parent
728
- # Required. The project ID or project number from which the cloudstoragesources
729
- # should be listed.
592
+ # The project ID or project number from which the revisions should be listed.
730
593
  # @param [String] continue
731
594
  # Optional encoded string to continue paging.
732
595
  # @param [String] field_selector
@@ -755,1471 +618,18 @@ module Google
755
618
  # Request-specific options
756
619
  #
757
620
  # @yield [result, err] Result & error if block supplied
758
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse] parsed result object
621
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListRevisionsResponse] parsed result object
759
622
  # @yieldparam err [StandardError] error object if request failed
760
623
  #
761
- # @return [Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse]
624
+ # @return [Google::Apis::RunV1alpha1::ListRevisionsResponse]
762
625
  #
763
626
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
764
627
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
765
628
  # @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
629
+ 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)
630
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/revisions', options)
631
+ command.response_representation = Google::Apis::RunV1alpha1::ListRevisionsResponse::Representation
632
+ command.response_class = Google::Apis::RunV1alpha1::ListRevisionsResponse
2223
633
  command.params['parent'] = parent unless parent.nil?
2224
634
  command.query['continue'] = continue unless continue.nil?
2225
635
  command.query['fieldSelector'] = field_selector unless field_selector.nil?
@@ -2233,86 +643,10 @@ module Google
2233
643
  execute_or_queue_command(command, &block)
2234
644
  end
2235
645
 
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.
646
+ # Rpc to get information about a route.
2313
647
  # @param [String] name
2314
- # Required. The name of the cloudschedulersource being retrieved. If needed,
2315
- # replace `namespace_id` with the project ID.
648
+ # The name of the route being retrieved. If needed, replace `namespace_id` with
649
+ # the project ID.
2316
650
  # @param [String] fields
2317
651
  # Selector specifying which fields to include in a partial response.
2318
652
  # @param [String] quota_user
@@ -2322,28 +656,27 @@ module Google
2322
656
  # Request-specific options
2323
657
  #
2324
658
  # @yield [result, err] Result & error if block supplied
2325
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudSchedulerSource] parsed result object
659
+ # @yieldparam result [Google::Apis::RunV1alpha1::Route] parsed result object
2326
660
  # @yieldparam err [StandardError] error object if request failed
2327
661
  #
2328
- # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource]
662
+ # @return [Google::Apis::RunV1alpha1::Route]
2329
663
  #
2330
664
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2331
665
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2332
666
  # @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
667
+ def get_namespace_route(name, fields: nil, quota_user: nil, options: nil, &block)
668
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
669
+ command.response_representation = Google::Apis::RunV1alpha1::Route::Representation
670
+ command.response_class = Google::Apis::RunV1alpha1::Route
2337
671
  command.params['name'] = name unless name.nil?
2338
672
  command.query['fields'] = fields unless fields.nil?
2339
673
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2340
674
  execute_or_queue_command(command, &block)
2341
675
  end
2342
676
 
2343
- # Rpc to list cloudschedulersources.
677
+ # Rpc to list routes.
2344
678
  # @param [String] parent
2345
- # Required. The project ID or project number from which the
2346
- # cloudschedulersources should be listed.
679
+ # The project ID or project number from which the routes should be listed.
2347
680
  # @param [String] continue
2348
681
  # Optional encoded string to continue paging.
2349
682
  # @param [String] field_selector
@@ -2372,18 +705,18 @@ module Google
2372
705
  # Request-specific options
2373
706
  #
2374
707
  # @yield [result, err] Result & error if block supplied
2375
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse] parsed result object
708
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListRoutesResponse] parsed result object
2376
709
  # @yieldparam err [StandardError] error object if request failed
2377
710
  #
2378
- # @return [Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse]
711
+ # @return [Google::Apis::RunV1alpha1::ListRoutesResponse]
2379
712
  #
2380
713
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2381
714
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2382
715
  # @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
716
+ 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)
717
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/routes', options)
718
+ command.response_representation = Google::Apis::RunV1alpha1::ListRoutesResponse::Representation
719
+ command.response_class = Google::Apis::RunV1alpha1::ListRoutesResponse
2387
720
  command.params['parent'] = parent unless parent.nil?
2388
721
  command.query['continue'] = continue unless continue.nil?
2389
722
  command.query['fieldSelector'] = field_selector unless field_selector.nil?
@@ -2397,49 +730,10 @@ module Google
2397
730
  execute_or_queue_command(command, &block)
2398
731
  end
2399
732
 
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.
733
+ # Rpc to create a service.
2439
734
  # @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
735
+ # The project ID or project number in which this service should be created.
736
+ # @param [Google::Apis::RunV1alpha1::Service] service_object
2443
737
  # @param [String] fields
2444
738
  # Selector specifying which fields to include in a partial response.
2445
739
  # @param [String] quota_user
@@ -2449,34 +743,40 @@ module Google
2449
743
  # Request-specific options
2450
744
  #
2451
745
  # @yield [result, err] Result & error if block supplied
2452
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudStorageSource] parsed result object
746
+ # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
2453
747
  # @yieldparam err [StandardError] error object if request failed
2454
748
  #
2455
- # @return [Google::Apis::RunV1alpha1::CloudStorageSource]
749
+ # @return [Google::Apis::RunV1alpha1::Service]
2456
750
  #
2457
751
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2458
752
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2459
753
  # @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
754
+ def create_namespace_service(parent, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
755
+ command = make_simple_command(:post, 'apis/serving.knative.dev/v1alpha1/{+parent}/services', options)
756
+ command.request_representation = Google::Apis::RunV1alpha1::Service::Representation
757
+ command.request_object = service_object
758
+ command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
759
+ command.response_class = Google::Apis::RunV1alpha1::Service
2466
760
  command.params['parent'] = parent unless parent.nil?
2467
761
  command.query['fields'] = fields unless fields.nil?
2468
762
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2469
763
  execute_or_queue_command(command, &block)
2470
764
  end
2471
765
 
2472
- # Rpc to delete a cloudstoragesource.
766
+ # Rpc to delete a service. This will cause the Service to stop serving traffic
767
+ # and will delete the child entities like Routes, Configurations and Revisions.
2473
768
  # @param [String] name
2474
- # Required. The name of the cloudstoragesource being deleted. If needed, replace
2475
- # `namespace_id` with the project ID.
769
+ # The name of the service being deleted. If needed, replace `namespace_id` with
770
+ # the project ID.
2476
771
  # @param [String] api_version
2477
772
  # Cloud Run currently ignores this parameter.
2478
773
  # @param [String] kind
2479
774
  # Cloud Run currently ignores this parameter.
775
+ # @param [Boolean] orphan_dependents
776
+ # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
777
+ # cascading behavior, so this must be false. This attribute is deprecated, and
778
+ # is now replaced with PropagationPolicy See https://github.com/kubernetes/
779
+ # kubernetes/issues/46659 for more info.
2480
780
  # @param [String] propagation_policy
2481
781
  # Specifies the propagation policy of delete. Cloud Run currently ignores this
2482
782
  # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
@@ -2498,23 +798,24 @@ module Google
2498
798
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2499
799
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2500
800
  # @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)
801
+ def delete_namespace_service(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
802
+ command = make_simple_command(:delete, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
2503
803
  command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
2504
804
  command.response_class = Google::Apis::RunV1alpha1::Empty
2505
805
  command.params['name'] = name unless name.nil?
2506
806
  command.query['apiVersion'] = api_version unless api_version.nil?
2507
807
  command.query['kind'] = kind unless kind.nil?
808
+ command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
2508
809
  command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
2509
810
  command.query['fields'] = fields unless fields.nil?
2510
811
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2511
812
  execute_or_queue_command(command, &block)
2512
813
  end
2513
814
 
2514
- # Rpc to get information about a cloudstoragesource.
815
+ # Rpc to get information about a service.
2515
816
  # @param [String] name
2516
- # Required. The name of the cloudstoragesource being retrieved. If needed,
2517
- # replace `namespace_id` with the project ID.
817
+ # The name of the service being retrieved. If needed, replace `namespace_id`
818
+ # with the project ID.
2518
819
  # @param [String] fields
2519
820
  # Selector specifying which fields to include in a partial response.
2520
821
  # @param [String] quota_user
@@ -2524,28 +825,27 @@ module Google
2524
825
  # Request-specific options
2525
826
  #
2526
827
  # @yield [result, err] Result & error if block supplied
2527
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudStorageSource] parsed result object
828
+ # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
2528
829
  # @yieldparam err [StandardError] error object if request failed
2529
830
  #
2530
- # @return [Google::Apis::RunV1alpha1::CloudStorageSource]
831
+ # @return [Google::Apis::RunV1alpha1::Service]
2531
832
  #
2532
833
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2533
834
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2534
835
  # @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
836
+ def get_namespace_service(name, fields: nil, quota_user: nil, options: nil, &block)
837
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
838
+ command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
839
+ command.response_class = Google::Apis::RunV1alpha1::Service
2539
840
  command.params['name'] = name unless name.nil?
2540
841
  command.query['fields'] = fields unless fields.nil?
2541
842
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2542
843
  execute_or_queue_command(command, &block)
2543
844
  end
2544
845
 
2545
- # Rpc to list cloudstoragesources.
846
+ # Rpc to list services.
2546
847
  # @param [String] parent
2547
- # Required. The project ID or project number from which the cloudstoragesources
2548
- # should be listed.
848
+ # The project ID or project number from which the services should be listed.
2549
849
  # @param [String] continue
2550
850
  # Optional encoded string to continue paging.
2551
851
  # @param [String] field_selector
@@ -2574,18 +874,18 @@ module Google
2574
874
  # Request-specific options
2575
875
  #
2576
876
  # @yield [result, err] Result & error if block supplied
2577
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse] parsed result object
877
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListServicesResponse] parsed result object
2578
878
  # @yieldparam err [StandardError] error object if request failed
2579
879
  #
2580
- # @return [Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse]
880
+ # @return [Google::Apis::RunV1alpha1::ListServicesResponse]
2581
881
  #
2582
882
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2583
883
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2584
884
  # @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
885
+ 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)
886
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/services', options)
887
+ command.response_representation = Google::Apis::RunV1alpha1::ListServicesResponse::Representation
888
+ command.response_class = Google::Apis::RunV1alpha1::ListServicesResponse
2589
889
  command.params['parent'] = parent unless parent.nil?
2590
890
  command.query['continue'] = continue unless continue.nil?
2591
891
  command.query['fieldSelector'] = field_selector unless field_selector.nil?
@@ -2599,15 +899,14 @@ module Google
2599
899
  execute_or_queue_command(command, &block)
2600
900
  end
2601
901
 
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.
902
+ # Rpc to replace a service. Only the spec and metadata labels and annotations
903
+ # are modifiable. After the Update request, Cloud Run will work to make the '
904
+ # status' match the requested 'spec'. May provide metadata.resourceVersion to
905
+ # enforce update from last read for optimistic concurrency control.
2607
906
  # @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
907
+ # The name of the service being replaced. If needed, replace `namespace_id` with
908
+ # the project ID.
909
+ # @param [Google::Apis::RunV1alpha1::Service] service_object
2611
910
  # @param [String] fields
2612
911
  # Selector specifying which fields to include in a partial response.
2613
912
  # @param [String] quota_user
@@ -2617,21 +916,96 @@ module Google
2617
916
  # Request-specific options
2618
917
  #
2619
918
  # @yield [result, err] Result & error if block supplied
2620
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudStorageSource] parsed result object
919
+ # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
2621
920
  # @yieldparam err [StandardError] error object if request failed
2622
921
  #
2623
- # @return [Google::Apis::RunV1alpha1::CloudStorageSource]
922
+ # @return [Google::Apis::RunV1alpha1::Service]
2624
923
  #
2625
924
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2626
925
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2627
926
  # @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
927
+ def replace_namespace_service_service(name, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
928
+ command = make_simple_command(:put, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
929
+ command.request_representation = Google::Apis::RunV1alpha1::Service::Representation
930
+ command.request_object = service_object
931
+ command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
932
+ command.response_class = Google::Apis::RunV1alpha1::Service
933
+ command.params['name'] = name unless name.nil?
934
+ command.query['fields'] = fields unless fields.nil?
935
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
936
+ execute_or_queue_command(command, &block)
937
+ end
938
+
939
+ # Lists information about the supported locations for this service.
940
+ # @param [String] name
941
+ # The resource that owns the locations collection, if applicable.
942
+ # @param [String] filter
943
+ # The standard list filter.
944
+ # @param [Fixnum] page_size
945
+ # The standard list page size.
946
+ # @param [String] page_token
947
+ # The standard list page token.
948
+ # @param [String] fields
949
+ # Selector specifying which fields to include in a partial response.
950
+ # @param [String] quota_user
951
+ # Available to use for quota purposes for server-side applications. Can be any
952
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
953
+ # @param [Google::Apis::RequestOptions] options
954
+ # Request-specific options
955
+ #
956
+ # @yield [result, err] Result & error if block supplied
957
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListLocationsResponse] parsed result object
958
+ # @yieldparam err [StandardError] error object if request failed
959
+ #
960
+ # @return [Google::Apis::RunV1alpha1::ListLocationsResponse]
961
+ #
962
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
963
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
964
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
965
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
966
+ command = make_simple_command(:get, 'v1alpha1/{+name}/locations', options)
967
+ command.response_representation = Google::Apis::RunV1alpha1::ListLocationsResponse::Representation
968
+ command.response_class = Google::Apis::RunV1alpha1::ListLocationsResponse
2634
969
  command.params['name'] = name unless name.nil?
970
+ command.query['filter'] = filter unless filter.nil?
971
+ command.query['pageSize'] = page_size unless page_size.nil?
972
+ command.query['pageToken'] = page_token unless page_token.nil?
973
+ command.query['fields'] = fields unless fields.nil?
974
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
975
+ execute_or_queue_command(command, &block)
976
+ end
977
+
978
+ # RPC to list authorized domains.
979
+ # @param [String] parent
980
+ # Name of the parent Application resource. Example: `apps/myapp`.
981
+ # @param [Fixnum] page_size
982
+ # Maximum results to return per page.
983
+ # @param [String] page_token
984
+ # Continuation token for fetching the next page of results.
985
+ # @param [String] fields
986
+ # Selector specifying which fields to include in a partial response.
987
+ # @param [String] quota_user
988
+ # Available to use for quota purposes for server-side applications. Can be any
989
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
990
+ # @param [Google::Apis::RequestOptions] options
991
+ # Request-specific options
992
+ #
993
+ # @yield [result, err] Result & error if block supplied
994
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse] parsed result object
995
+ # @yieldparam err [StandardError] error object if request failed
996
+ #
997
+ # @return [Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse]
998
+ #
999
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1000
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1001
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1002
+ def list_project_location_authorizeddomains(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1003
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/authorizeddomains', options)
1004
+ command.response_representation = Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse::Representation
1005
+ command.response_class = Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse
1006
+ command.params['parent'] = parent unless parent.nil?
1007
+ command.query['pageSize'] = page_size unless page_size.nil?
1008
+ command.query['pageToken'] = page_token unless page_token.nil?
2635
1009
  command.query['fields'] = fields unless fields.nil?
2636
1010
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2637
1011
  execute_or_queue_command(command, &block)
@@ -3433,168 +1807,6 @@ module Google
3433
1807
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3434
1808
  execute_or_queue_command(command, &block)
3435
1809
  end
3436
-
3437
- # Creates a new trigger.
3438
- # @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
3441
- # @param [String] fields
3442
- # Selector specifying which fields to include in a partial response.
3443
- # @param [String] quota_user
3444
- # Available to use for quota purposes for server-side applications. Can be any
3445
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3446
- # @param [Google::Apis::RequestOptions] options
3447
- # Request-specific options
3448
- #
3449
- # @yield [result, err] Result & error if block supplied
3450
- # @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
3451
- # @yieldparam err [StandardError] error object if request failed
3452
- #
3453
- # @return [Google::Apis::RunV1alpha1::Trigger]
3454
- #
3455
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3456
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3457
- # @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
3464
- command.params['parent'] = parent unless parent.nil?
3465
- command.query['fields'] = fields unless fields.nil?
3466
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3467
- execute_or_queue_command(command, &block)
3468
- end
3469
-
3470
- # Rpc to delete a trigger.
3471
- # @param [String] name
3472
- # The name of the trigger being deleted. If needed, replace `namespace_id` with
3473
- # the project ID.
3474
- # @param [String] api_version
3475
- # Cloud Run currently ignores this parameter.
3476
- # @param [String] kind
3477
- # Cloud Run currently ignores this parameter.
3478
- # @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.
3482
- # @param [String] fields
3483
- # Selector specifying which fields to include in a partial response.
3484
- # @param [String] quota_user
3485
- # Available to use for quota purposes for server-side applications. Can be any
3486
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3487
- # @param [Google::Apis::RequestOptions] options
3488
- # Request-specific options
3489
- #
3490
- # @yield [result, err] Result & error if block supplied
3491
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
3492
- # @yieldparam err [StandardError] error object if request failed
3493
- #
3494
- # @return [Google::Apis::RunV1alpha1::Empty]
3495
- #
3496
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3497
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3498
- # @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)
3501
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
3502
- command.response_class = Google::Apis::RunV1alpha1::Empty
3503
- command.params['name'] = name unless name.nil?
3504
- command.query['apiVersion'] = api_version unless api_version.nil?
3505
- command.query['kind'] = kind unless kind.nil?
3506
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
3507
- command.query['fields'] = fields unless fields.nil?
3508
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3509
- execute_or_queue_command(command, &block)
3510
- end
3511
-
3512
- # Rpc to get information about a trigger.
3513
- # @param [String] name
3514
- # The name of the trigger being retrieved. If needed, replace `namespace_id`
3515
- # with the project ID.
3516
- # @param [String] fields
3517
- # Selector specifying which fields to include in a partial response.
3518
- # @param [String] quota_user
3519
- # Available to use for quota purposes for server-side applications. Can be any
3520
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3521
- # @param [Google::Apis::RequestOptions] options
3522
- # Request-specific options
3523
- #
3524
- # @yield [result, err] Result & error if block supplied
3525
- # @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
3526
- # @yieldparam err [StandardError] error object if request failed
3527
- #
3528
- # @return [Google::Apis::RunV1alpha1::Trigger]
3529
- #
3530
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3531
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3532
- # @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
3537
- command.params['name'] = name unless name.nil?
3538
- command.query['fields'] = fields unless fields.nil?
3539
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3540
- execute_or_queue_command(command, &block)
3541
- end
3542
-
3543
- # Rpc to list triggers.
3544
- # @param [String] parent
3545
- # The project ID or project number from which the triggers should be listed.
3546
- # @param [String] continue
3547
- # Optional. Encoded string to continue paging.
3548
- # @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.
3552
- # @param [Boolean] include_uninitialized
3553
- # Not currently used by Cloud Run.
3554
- # @param [String] label_selector
3555
- # Allows to filter resources based on a label. Supported operations are =, !=,
3556
- # exists, in, and notIn.
3557
- # @param [Fixnum] limit
3558
- # The maximum number of records that should be returned.
3559
- # @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.
3562
- # @param [Boolean] watch
3563
- # Flag that indicates that the client expects to watch this resource as well.
3564
- # Not currently used by Cloud Run.
3565
- # @param [String] fields
3566
- # Selector specifying which fields to include in a partial response.
3567
- # @param [String] quota_user
3568
- # Available to use for quota purposes for server-side applications. Can be any
3569
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3570
- # @param [Google::Apis::RequestOptions] options
3571
- # Request-specific options
3572
- #
3573
- # @yield [result, err] Result & error if block supplied
3574
- # @yieldparam result [Google::Apis::RunV1alpha1::ListTriggersResponse] parsed result object
3575
- # @yieldparam err [StandardError] error object if request failed
3576
- #
3577
- # @return [Google::Apis::RunV1alpha1::ListTriggersResponse]
3578
- #
3579
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3580
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3581
- # @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
3586
- command.params['parent'] = parent unless parent.nil?
3587
- command.query['continue'] = continue unless continue.nil?
3588
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
3589
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
3590
- command.query['labelSelector'] = label_selector unless label_selector.nil?
3591
- command.query['limit'] = limit unless limit.nil?
3592
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
3593
- command.query['watch'] = watch unless watch.nil?
3594
- command.query['fields'] = fields unless fields.nil?
3595
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3596
- execute_or_queue_command(command, &block)
3597
- end
3598
1810
 
3599
1811
  protected
3600
1812