google-apis-run_v1alpha1 0.1.0 → 0.6.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,18 +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
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
770
633
  command.params['parent'] = parent unless parent.nil?
771
634
  command.query['continue'] = continue unless continue.nil?
772
635
  command.query['fieldSelector'] = field_selector unless field_selector.nil?
@@ -780,48 +643,10 @@ module Google
780
643
  execute_or_queue_command(command, &block)
781
644
  end
782
645
 
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.
646
+ # Rpc to get information about a route.
822
647
  # @param [String] name
823
- # The name of the configuration being retrieved. If needed, replace `
824
- # namespace_id` with the project ID.
648
+ # The name of the route being retrieved. If needed, replace `namespace_id` with
649
+ # the project ID.
825
650
  # @param [String] fields
826
651
  # Selector specifying which fields to include in a partial response.
827
652
  # @param [String] quota_user
@@ -831,28 +656,27 @@ module Google
831
656
  # Request-specific options
832
657
  #
833
658
  # @yield [result, err] Result & error if block supplied
834
- # @yieldparam result [Google::Apis::RunV1alpha1::Configuration] parsed result object
659
+ # @yieldparam result [Google::Apis::RunV1alpha1::Route] parsed result object
835
660
  # @yieldparam err [StandardError] error object if request failed
836
661
  #
837
- # @return [Google::Apis::RunV1alpha1::Configuration]
662
+ # @return [Google::Apis::RunV1alpha1::Route]
838
663
  #
839
664
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
840
665
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
841
666
  # @raise [Google::Apis::AuthorizationError] Authorization is required
842
- def get_namespace_configuration(name, fields: nil, quota_user: nil, options: nil, &block)
667
+ def get_namespace_route(name, fields: nil, quota_user: nil, options: nil, &block)
843
668
  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
669
+ command.response_representation = Google::Apis::RunV1alpha1::Route::Representation
670
+ command.response_class = Google::Apis::RunV1alpha1::Route
846
671
  command.params['name'] = name unless name.nil?
847
672
  command.query['fields'] = fields unless fields.nil?
848
673
  command.query['quotaUser'] = quota_user unless quota_user.nil?
849
674
  execute_or_queue_command(command, &block)
850
675
  end
851
676
 
852
- # Rpc to list configurations.
677
+ # Rpc to list routes.
853
678
  # @param [String] parent
854
- # The project ID or project number from which the configurations should be
855
- # listed.
679
+ # The project ID or project number from which the routes should be listed.
856
680
  # @param [String] continue
857
681
  # Optional encoded string to continue paging.
858
682
  # @param [String] field_selector
@@ -881,1345 +705,18 @@ module Google
881
705
  # Request-specific options
882
706
  #
883
707
  # @yield [result, err] Result & error if block supplied
884
- # @yieldparam result [Google::Apis::RunV1alpha1::ListConfigurationsResponse] parsed result object
708
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListRoutesResponse] parsed result object
885
709
  # @yieldparam err [StandardError] error object if request failed
886
710
  #
887
- # @return [Google::Apis::RunV1alpha1::ListConfigurationsResponse]
711
+ # @return [Google::Apis::RunV1alpha1::ListRoutesResponse]
888
712
  #
889
713
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
890
714
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
891
715
  # @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
- # Rpc to delete a revision.
1080
- # @param [String] name
1081
- # The name of the revision being deleted. If needed, replace `namespace_id` with
1082
- # the project ID.
1083
- # @param [String] api_version
1084
- # Cloud Run currently ignores this parameter.
1085
- # @param [String] kind
1086
- # Cloud Run currently ignores this parameter.
1087
- # @param [Boolean] orphan_dependents
1088
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
1089
- # cascading behavior, so this must be false. This attribute is deprecated, and
1090
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
1091
- # kubernetes/issues/46659 for more info.
1092
- # @param [String] propagation_policy
1093
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
1094
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1095
- # workloads/controllers/garbage-collection/ for more information.
1096
- # @param [String] fields
1097
- # Selector specifying which fields to include in a partial response.
1098
- # @param [String] quota_user
1099
- # Available to use for quota purposes for server-side applications. Can be any
1100
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1101
- # @param [Google::Apis::RequestOptions] options
1102
- # Request-specific options
1103
- #
1104
- # @yield [result, err] Result & error if block supplied
1105
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
1106
- # @yieldparam err [StandardError] error object if request failed
1107
- #
1108
- # @return [Google::Apis::RunV1alpha1::Empty]
1109
- #
1110
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1111
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1112
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1113
- def delete_namespace_revision(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
1114
- command = make_simple_command(:delete, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
1115
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
1116
- command.response_class = Google::Apis::RunV1alpha1::Empty
1117
- command.params['name'] = name unless name.nil?
1118
- command.query['apiVersion'] = api_version unless api_version.nil?
1119
- command.query['kind'] = kind unless kind.nil?
1120
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
1121
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1122
- command.query['fields'] = fields unless fields.nil?
1123
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1124
- execute_or_queue_command(command, &block)
1125
- end
1126
-
1127
- # Rpc to get information about a revision.
1128
- # @param [String] name
1129
- # The name of the revision being retrieved. If needed, replace `namespace_id`
1130
- # with the project ID.
1131
- # @param [String] fields
1132
- # Selector specifying which fields to include in a partial response.
1133
- # @param [String] quota_user
1134
- # Available to use for quota purposes for server-side applications. Can be any
1135
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1136
- # @param [Google::Apis::RequestOptions] options
1137
- # Request-specific options
1138
- #
1139
- # @yield [result, err] Result & error if block supplied
1140
- # @yieldparam result [Google::Apis::RunV1alpha1::Revision] parsed result object
1141
- # @yieldparam err [StandardError] error object if request failed
1142
- #
1143
- # @return [Google::Apis::RunV1alpha1::Revision]
1144
- #
1145
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1146
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1147
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1148
- def get_namespace_revision(name, fields: nil, quota_user: nil, options: nil, &block)
1149
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
1150
- command.response_representation = Google::Apis::RunV1alpha1::Revision::Representation
1151
- command.response_class = Google::Apis::RunV1alpha1::Revision
1152
- command.params['name'] = name unless name.nil?
1153
- command.query['fields'] = fields unless fields.nil?
1154
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1155
- execute_or_queue_command(command, &block)
1156
- end
1157
-
1158
- # Rpc to list revisions.
1159
- # @param [String] parent
1160
- # The project ID or project number from which the revisions should be listed.
1161
- # @param [String] continue
1162
- # Optional encoded string to continue paging.
1163
- # @param [String] field_selector
1164
- # Allows to filter resources based on a specific value for a field name. Send
1165
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1166
- # used by Cloud Run.
1167
- # @param [Boolean] include_uninitialized
1168
- # Not currently used by Cloud Run.
1169
- # @param [String] label_selector
1170
- # Allows to filter resources based on a label. Supported operations are =, !=,
1171
- # exists, in, and notIn.
1172
- # @param [Fixnum] limit
1173
- # The maximum number of records that should be returned.
1174
- # @param [String] resource_version
1175
- # The baseline resource version from which the list or watch operation should
1176
- # start. Not currently used by Cloud Run.
1177
- # @param [Boolean] watch
1178
- # Flag that indicates that the client expects to watch this resource as well.
1179
- # Not currently used by Cloud Run.
1180
- # @param [String] fields
1181
- # Selector specifying which fields to include in a partial response.
1182
- # @param [String] quota_user
1183
- # Available to use for quota purposes for server-side applications. Can be any
1184
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1185
- # @param [Google::Apis::RequestOptions] options
1186
- # Request-specific options
1187
- #
1188
- # @yield [result, err] Result & error if block supplied
1189
- # @yieldparam result [Google::Apis::RunV1alpha1::ListRevisionsResponse] parsed result object
1190
- # @yieldparam err [StandardError] error object if request failed
1191
- #
1192
- # @return [Google::Apis::RunV1alpha1::ListRevisionsResponse]
1193
- #
1194
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1195
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1196
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1197
- 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)
1198
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/revisions', options)
1199
- command.response_representation = Google::Apis::RunV1alpha1::ListRevisionsResponse::Representation
1200
- command.response_class = Google::Apis::RunV1alpha1::ListRevisionsResponse
1201
- command.params['parent'] = parent unless parent.nil?
1202
- command.query['continue'] = continue unless continue.nil?
1203
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1204
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1205
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1206
- command.query['limit'] = limit unless limit.nil?
1207
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1208
- command.query['watch'] = watch unless watch.nil?
1209
- command.query['fields'] = fields unless fields.nil?
1210
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1211
- execute_or_queue_command(command, &block)
1212
- end
1213
-
1214
- # Rpc to get information about a route.
1215
- # @param [String] name
1216
- # The name of the route being retrieved. If needed, replace `namespace_id` with
1217
- # the project ID.
1218
- # @param [String] fields
1219
- # Selector specifying which fields to include in a partial response.
1220
- # @param [String] quota_user
1221
- # Available to use for quota purposes for server-side applications. Can be any
1222
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1223
- # @param [Google::Apis::RequestOptions] options
1224
- # Request-specific options
1225
- #
1226
- # @yield [result, err] Result & error if block supplied
1227
- # @yieldparam result [Google::Apis::RunV1alpha1::Route] parsed result object
1228
- # @yieldparam err [StandardError] error object if request failed
1229
- #
1230
- # @return [Google::Apis::RunV1alpha1::Route]
1231
- #
1232
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1233
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1234
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1235
- def get_namespace_route(name, fields: nil, quota_user: nil, options: nil, &block)
1236
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
1237
- command.response_representation = Google::Apis::RunV1alpha1::Route::Representation
1238
- command.response_class = Google::Apis::RunV1alpha1::Route
1239
- command.params['name'] = name unless name.nil?
1240
- command.query['fields'] = fields unless fields.nil?
1241
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1242
- execute_or_queue_command(command, &block)
1243
- end
1244
-
1245
- # Rpc to list routes.
1246
- # @param [String] parent
1247
- # The project ID or project number from which the routes should be listed.
1248
- # @param [String] continue
1249
- # Optional encoded string to continue paging.
1250
- # @param [String] field_selector
1251
- # Allows to filter resources based on a specific value for a field name. Send
1252
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1253
- # used by Cloud Run.
1254
- # @param [Boolean] include_uninitialized
1255
- # Not currently used by Cloud Run.
1256
- # @param [String] label_selector
1257
- # Allows to filter resources based on a label. Supported operations are =, !=,
1258
- # exists, in, and notIn.
1259
- # @param [Fixnum] limit
1260
- # The maximum number of records that should be returned.
1261
- # @param [String] resource_version
1262
- # The baseline resource version from which the list or watch operation should
1263
- # start. Not currently used by Cloud Run.
1264
- # @param [Boolean] watch
1265
- # Flag that indicates that the client expects to watch this resource as well.
1266
- # Not currently used by Cloud Run.
1267
- # @param [String] fields
1268
- # Selector specifying which fields to include in a partial response.
1269
- # @param [String] quota_user
1270
- # Available to use for quota purposes for server-side applications. Can be any
1271
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1272
- # @param [Google::Apis::RequestOptions] options
1273
- # Request-specific options
1274
- #
1275
- # @yield [result, err] Result & error if block supplied
1276
- # @yieldparam result [Google::Apis::RunV1alpha1::ListRoutesResponse] parsed result object
1277
- # @yieldparam err [StandardError] error object if request failed
1278
- #
1279
- # @return [Google::Apis::RunV1alpha1::ListRoutesResponse]
1280
- #
1281
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1282
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1283
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1284
- 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)
1285
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/routes', options)
1286
- command.response_representation = Google::Apis::RunV1alpha1::ListRoutesResponse::Representation
1287
- command.response_class = Google::Apis::RunV1alpha1::ListRoutesResponse
1288
- command.params['parent'] = parent unless parent.nil?
1289
- command.query['continue'] = continue unless continue.nil?
1290
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1291
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1292
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1293
- command.query['limit'] = limit unless limit.nil?
1294
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1295
- command.query['watch'] = watch unless watch.nil?
1296
- command.query['fields'] = fields unless fields.nil?
1297
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1298
- execute_or_queue_command(command, &block)
1299
- end
1300
-
1301
- # Rpc to create a service.
1302
- # @param [String] parent
1303
- # The project ID or project number in which this service should be created.
1304
- # @param [Google::Apis::RunV1alpha1::Service] service_object
1305
- # @param [String] fields
1306
- # Selector specifying which fields to include in a partial response.
1307
- # @param [String] quota_user
1308
- # Available to use for quota purposes for server-side applications. Can be any
1309
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1310
- # @param [Google::Apis::RequestOptions] options
1311
- # Request-specific options
1312
- #
1313
- # @yield [result, err] Result & error if block supplied
1314
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
1315
- # @yieldparam err [StandardError] error object if request failed
1316
- #
1317
- # @return [Google::Apis::RunV1alpha1::Service]
1318
- #
1319
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1320
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1321
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1322
- def create_namespace_service(parent, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1323
- command = make_simple_command(:post, 'apis/serving.knative.dev/v1alpha1/{+parent}/services', options)
1324
- command.request_representation = Google::Apis::RunV1alpha1::Service::Representation
1325
- command.request_object = service_object
1326
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
1327
- command.response_class = Google::Apis::RunV1alpha1::Service
1328
- command.params['parent'] = parent unless parent.nil?
1329
- command.query['fields'] = fields unless fields.nil?
1330
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1331
- execute_or_queue_command(command, &block)
1332
- end
1333
-
1334
- # Rpc to delete a service. This will cause the Service to stop serving traffic
1335
- # and will delete the child entities like Routes, Configurations and Revisions.
1336
- # @param [String] name
1337
- # The name of the service being deleted. If needed, replace `namespace_id` with
1338
- # the project ID.
1339
- # @param [String] api_version
1340
- # Cloud Run currently ignores this parameter.
1341
- # @param [String] kind
1342
- # Cloud Run currently ignores this parameter.
1343
- # @param [Boolean] orphan_dependents
1344
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
1345
- # cascading behavior, so this must be false. This attribute is deprecated, and
1346
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
1347
- # kubernetes/issues/46659 for more info.
1348
- # @param [String] propagation_policy
1349
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
1350
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1351
- # workloads/controllers/garbage-collection/ for more information.
1352
- # @param [String] fields
1353
- # Selector specifying which fields to include in a partial response.
1354
- # @param [String] quota_user
1355
- # Available to use for quota purposes for server-side applications. Can be any
1356
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1357
- # @param [Google::Apis::RequestOptions] options
1358
- # Request-specific options
1359
- #
1360
- # @yield [result, err] Result & error if block supplied
1361
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
1362
- # @yieldparam err [StandardError] error object if request failed
1363
- #
1364
- # @return [Google::Apis::RunV1alpha1::Empty]
1365
- #
1366
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1367
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1368
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1369
- def delete_namespace_service(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
1370
- command = make_simple_command(:delete, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
1371
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
1372
- command.response_class = Google::Apis::RunV1alpha1::Empty
1373
- command.params['name'] = name unless name.nil?
1374
- command.query['apiVersion'] = api_version unless api_version.nil?
1375
- command.query['kind'] = kind unless kind.nil?
1376
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
1377
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1378
- command.query['fields'] = fields unless fields.nil?
1379
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1380
- execute_or_queue_command(command, &block)
1381
- end
1382
-
1383
- # Rpc to get information about a service.
1384
- # @param [String] name
1385
- # The name of the service being retrieved. If needed, replace `namespace_id`
1386
- # with the project ID.
1387
- # @param [String] fields
1388
- # Selector specifying which fields to include in a partial response.
1389
- # @param [String] quota_user
1390
- # Available to use for quota purposes for server-side applications. Can be any
1391
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1392
- # @param [Google::Apis::RequestOptions] options
1393
- # Request-specific options
1394
- #
1395
- # @yield [result, err] Result & error if block supplied
1396
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
1397
- # @yieldparam err [StandardError] error object if request failed
1398
- #
1399
- # @return [Google::Apis::RunV1alpha1::Service]
1400
- #
1401
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1402
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1403
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1404
- def get_namespace_service(name, fields: nil, quota_user: nil, options: nil, &block)
1405
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
1406
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
1407
- command.response_class = Google::Apis::RunV1alpha1::Service
1408
- command.params['name'] = name unless name.nil?
1409
- command.query['fields'] = fields unless fields.nil?
1410
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1411
- execute_or_queue_command(command, &block)
1412
- end
1413
-
1414
- # Rpc to list services.
1415
- # @param [String] parent
1416
- # The project ID or project number from which the services should be listed.
1417
- # @param [String] continue
1418
- # Optional encoded string to continue paging.
1419
- # @param [String] field_selector
1420
- # Allows to filter resources based on a specific value for a field name. Send
1421
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1422
- # used by Cloud Run.
1423
- # @param [Boolean] include_uninitialized
1424
- # Not currently used by Cloud Run.
1425
- # @param [String] label_selector
1426
- # Allows to filter resources based on a label. Supported operations are =, !=,
1427
- # exists, in, and notIn.
1428
- # @param [Fixnum] limit
1429
- # The maximum number of records that should be returned.
1430
- # @param [String] resource_version
1431
- # The baseline resource version from which the list or watch operation should
1432
- # start. Not currently used by Cloud Run.
1433
- # @param [Boolean] watch
1434
- # Flag that indicates that the client expects to watch this resource as well.
1435
- # Not currently used by Cloud Run.
1436
- # @param [String] fields
1437
- # Selector specifying which fields to include in a partial response.
1438
- # @param [String] quota_user
1439
- # Available to use for quota purposes for server-side applications. Can be any
1440
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1441
- # @param [Google::Apis::RequestOptions] options
1442
- # Request-specific options
1443
- #
1444
- # @yield [result, err] Result & error if block supplied
1445
- # @yieldparam result [Google::Apis::RunV1alpha1::ListServicesResponse] parsed result object
1446
- # @yieldparam err [StandardError] error object if request failed
1447
- #
1448
- # @return [Google::Apis::RunV1alpha1::ListServicesResponse]
1449
- #
1450
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1451
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1452
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1453
- 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)
1454
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/services', options)
1455
- command.response_representation = Google::Apis::RunV1alpha1::ListServicesResponse::Representation
1456
- command.response_class = Google::Apis::RunV1alpha1::ListServicesResponse
1457
- command.params['parent'] = parent unless parent.nil?
1458
- command.query['continue'] = continue unless continue.nil?
1459
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1460
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1461
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1462
- command.query['limit'] = limit unless limit.nil?
1463
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1464
- command.query['watch'] = watch unless watch.nil?
1465
- command.query['fields'] = fields unless fields.nil?
1466
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1467
- execute_or_queue_command(command, &block)
1468
- end
1469
-
1470
- # Rpc to replace a service. Only the spec and metadata labels and annotations
1471
- # are modifiable. After the Update request, Cloud Run will work to make the '
1472
- # status' match the requested 'spec'. May provide metadata.resourceVersion to
1473
- # enforce update from last read for optimistic concurrency control.
1474
- # @param [String] name
1475
- # The name of the service being replaced. If needed, replace `namespace_id` with
1476
- # the project ID.
1477
- # @param [Google::Apis::RunV1alpha1::Service] service_object
1478
- # @param [String] fields
1479
- # Selector specifying which fields to include in a partial response.
1480
- # @param [String] quota_user
1481
- # Available to use for quota purposes for server-side applications. Can be any
1482
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1483
- # @param [Google::Apis::RequestOptions] options
1484
- # Request-specific options
1485
- #
1486
- # @yield [result, err] Result & error if block supplied
1487
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
1488
- # @yieldparam err [StandardError] error object if request failed
1489
- #
1490
- # @return [Google::Apis::RunV1alpha1::Service]
1491
- #
1492
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1493
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1494
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1495
- def replace_namespace_service_service(name, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1496
- command = make_simple_command(:put, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
1497
- command.request_representation = Google::Apis::RunV1alpha1::Service::Representation
1498
- command.request_object = service_object
1499
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
1500
- command.response_class = Google::Apis::RunV1alpha1::Service
1501
- command.params['name'] = name unless name.nil?
1502
- command.query['fields'] = fields unless fields.nil?
1503
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1504
- execute_or_queue_command(command, &block)
1505
- end
1506
-
1507
- # Creates a new trigger.
1508
- # @param [String] parent
1509
- # The project ID or project number in which this trigger should be created.
1510
- # @param [Google::Apis::RunV1alpha1::Trigger] trigger_object
1511
- # @param [String] fields
1512
- # Selector specifying which fields to include in a partial response.
1513
- # @param [String] quota_user
1514
- # Available to use for quota purposes for server-side applications. Can be any
1515
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1516
- # @param [Google::Apis::RequestOptions] options
1517
- # Request-specific options
1518
- #
1519
- # @yield [result, err] Result & error if block supplied
1520
- # @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
1521
- # @yieldparam err [StandardError] error object if request failed
1522
- #
1523
- # @return [Google::Apis::RunV1alpha1::Trigger]
1524
- #
1525
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1526
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1527
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1528
- def create_namespace_trigger(parent, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1529
- command = make_simple_command(:post, 'apis/eventing.knative.dev/v1alpha1/{+parent}/triggers', options)
1530
- command.request_representation = Google::Apis::RunV1alpha1::Trigger::Representation
1531
- command.request_object = trigger_object
1532
- command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
1533
- command.response_class = Google::Apis::RunV1alpha1::Trigger
1534
- command.params['parent'] = parent unless parent.nil?
1535
- command.query['fields'] = fields unless fields.nil?
1536
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1537
- execute_or_queue_command(command, &block)
1538
- end
1539
-
1540
- # Rpc to delete a trigger.
1541
- # @param [String] name
1542
- # The name of the trigger being deleted. If needed, replace `namespace_id` with
1543
- # the project ID.
1544
- # @param [String] api_version
1545
- # Cloud Run currently ignores this parameter.
1546
- # @param [String] kind
1547
- # Cloud Run currently ignores this parameter.
1548
- # @param [String] propagation_policy
1549
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
1550
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1551
- # workloads/controllers/garbage-collection/ for more information.
1552
- # @param [String] fields
1553
- # Selector specifying which fields to include in a partial response.
1554
- # @param [String] quota_user
1555
- # Available to use for quota purposes for server-side applications. Can be any
1556
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1557
- # @param [Google::Apis::RequestOptions] options
1558
- # Request-specific options
1559
- #
1560
- # @yield [result, err] Result & error if block supplied
1561
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
1562
- # @yieldparam err [StandardError] error object if request failed
1563
- #
1564
- # @return [Google::Apis::RunV1alpha1::Empty]
1565
- #
1566
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1567
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1568
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1569
- def delete_namespace_trigger(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
1570
- command = make_simple_command(:delete, 'apis/eventing.knative.dev/v1alpha1/{+name}', options)
1571
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
1572
- command.response_class = Google::Apis::RunV1alpha1::Empty
1573
- command.params['name'] = name unless name.nil?
1574
- command.query['apiVersion'] = api_version unless api_version.nil?
1575
- command.query['kind'] = kind unless kind.nil?
1576
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1577
- command.query['fields'] = fields unless fields.nil?
1578
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1579
- execute_or_queue_command(command, &block)
1580
- end
1581
-
1582
- # Rpc to get information about a trigger.
1583
- # @param [String] name
1584
- # The name of the trigger being retrieved. If needed, replace `namespace_id`
1585
- # with the project ID.
1586
- # @param [String] fields
1587
- # Selector specifying which fields to include in a partial response.
1588
- # @param [String] quota_user
1589
- # Available to use for quota purposes for server-side applications. Can be any
1590
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1591
- # @param [Google::Apis::RequestOptions] options
1592
- # Request-specific options
1593
- #
1594
- # @yield [result, err] Result & error if block supplied
1595
- # @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
1596
- # @yieldparam err [StandardError] error object if request failed
1597
- #
1598
- # @return [Google::Apis::RunV1alpha1::Trigger]
1599
- #
1600
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1601
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1602
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1603
- def get_namespace_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
1604
- command = make_simple_command(:get, 'apis/eventing.knative.dev/v1alpha1/{+name}', options)
1605
- command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
1606
- command.response_class = Google::Apis::RunV1alpha1::Trigger
1607
- command.params['name'] = name unless name.nil?
1608
- command.query['fields'] = fields unless fields.nil?
1609
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1610
- execute_or_queue_command(command, &block)
1611
- end
1612
-
1613
- # Rpc to list triggers.
1614
- # @param [String] parent
1615
- # The project ID or project number from which the triggers should be listed.
1616
- # @param [String] continue
1617
- # Optional. Encoded string to continue paging.
1618
- # @param [String] field_selector
1619
- # Allows to filter resources based on a specific value for a field name. Send
1620
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1621
- # used by Cloud Run.
1622
- # @param [Boolean] include_uninitialized
1623
- # Not currently used by Cloud Run.
1624
- # @param [String] label_selector
1625
- # Allows to filter resources based on a label. Supported operations are =, !=,
1626
- # exists, in, and notIn.
1627
- # @param [Fixnum] limit
1628
- # The maximum number of records that should be returned.
1629
- # @param [String] resource_version
1630
- # The baseline resource version from which the list or watch operation should
1631
- # start. Not currently used by Cloud Run.
1632
- # @param [Boolean] watch
1633
- # Flag that indicates that the client expects to watch this resource as well.
1634
- # Not currently used by Cloud Run.
1635
- # @param [String] fields
1636
- # Selector specifying which fields to include in a partial response.
1637
- # @param [String] quota_user
1638
- # Available to use for quota purposes for server-side applications. Can be any
1639
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1640
- # @param [Google::Apis::RequestOptions] options
1641
- # Request-specific options
1642
- #
1643
- # @yield [result, err] Result & error if block supplied
1644
- # @yieldparam result [Google::Apis::RunV1alpha1::ListTriggersResponse] parsed result object
1645
- # @yieldparam err [StandardError] error object if request failed
1646
- #
1647
- # @return [Google::Apis::RunV1alpha1::ListTriggersResponse]
1648
- #
1649
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1650
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1651
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1652
- 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)
1653
- command = make_simple_command(:get, 'apis/eventing.knative.dev/v1alpha1/{+parent}/triggers', options)
1654
- command.response_representation = Google::Apis::RunV1alpha1::ListTriggersResponse::Representation
1655
- command.response_class = Google::Apis::RunV1alpha1::ListTriggersResponse
1656
- command.params['parent'] = parent unless parent.nil?
1657
- command.query['continue'] = continue unless continue.nil?
1658
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1659
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1660
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1661
- command.query['limit'] = limit unless limit.nil?
1662
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1663
- command.query['watch'] = watch unless watch.nil?
1664
- command.query['fields'] = fields unless fields.nil?
1665
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1666
- execute_or_queue_command(command, &block)
1667
- end
1668
-
1669
- # Lists information about the supported locations for this service.
1670
- # @param [String] name
1671
- # The resource that owns the locations collection, if applicable.
1672
- # @param [String] filter
1673
- # The standard list filter.
1674
- # @param [Fixnum] page_size
1675
- # The standard list page size.
1676
- # @param [String] page_token
1677
- # The standard list page token.
1678
- # @param [String] fields
1679
- # Selector specifying which fields to include in a partial response.
1680
- # @param [String] quota_user
1681
- # Available to use for quota purposes for server-side applications. Can be any
1682
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1683
- # @param [Google::Apis::RequestOptions] options
1684
- # Request-specific options
1685
- #
1686
- # @yield [result, err] Result & error if block supplied
1687
- # @yieldparam result [Google::Apis::RunV1alpha1::ListLocationsResponse] parsed result object
1688
- # @yieldparam err [StandardError] error object if request failed
1689
- #
1690
- # @return [Google::Apis::RunV1alpha1::ListLocationsResponse]
1691
- #
1692
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1693
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1694
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1695
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1696
- command = make_simple_command(:get, 'v1alpha1/{+name}/locations', options)
1697
- command.response_representation = Google::Apis::RunV1alpha1::ListLocationsResponse::Representation
1698
- command.response_class = Google::Apis::RunV1alpha1::ListLocationsResponse
1699
- command.params['name'] = name unless name.nil?
1700
- command.query['filter'] = filter unless filter.nil?
1701
- command.query['pageSize'] = page_size unless page_size.nil?
1702
- command.query['pageToken'] = page_token unless page_token.nil?
1703
- command.query['fields'] = fields unless fields.nil?
1704
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1705
- execute_or_queue_command(command, &block)
1706
- end
1707
-
1708
- # RPC to list authorized domains.
1709
- # @param [String] parent
1710
- # Name of the parent Application resource. Example: `apps/myapp`.
1711
- # @param [Fixnum] page_size
1712
- # Maximum results to return per page.
1713
- # @param [String] page_token
1714
- # Continuation token for fetching the next page of results.
1715
- # @param [String] fields
1716
- # Selector specifying which fields to include in a partial response.
1717
- # @param [String] quota_user
1718
- # Available to use for quota purposes for server-side applications. Can be any
1719
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1720
- # @param [Google::Apis::RequestOptions] options
1721
- # Request-specific options
1722
- #
1723
- # @yield [result, err] Result & error if block supplied
1724
- # @yieldparam result [Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse] parsed result object
1725
- # @yieldparam err [StandardError] error object if request failed
1726
- #
1727
- # @return [Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse]
1728
- #
1729
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1730
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1731
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1732
- def list_project_location_authorizeddomains(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1733
- command = make_simple_command(:get, 'v1alpha1/{+parent}/authorizeddomains', options)
1734
- command.response_representation = Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse::Representation
1735
- command.response_class = Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse
1736
- command.params['parent'] = parent unless parent.nil?
1737
- command.query['pageSize'] = page_size unless page_size.nil?
1738
- command.query['pageToken'] = page_token unless page_token.nil?
1739
- command.query['fields'] = fields unless fields.nil?
1740
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1741
- execute_or_queue_command(command, &block)
1742
- end
1743
-
1744
- # Creates a new cloudauditlogssource.
1745
- # @param [String] parent
1746
- # The project ID or project number in which this cloudauditlogssource should be
1747
- # created.
1748
- # @param [Google::Apis::RunV1alpha1::CloudAuditLogsSource] cloud_audit_logs_source_object
1749
- # @param [String] fields
1750
- # Selector specifying which fields to include in a partial response.
1751
- # @param [String] quota_user
1752
- # Available to use for quota purposes for server-side applications. Can be any
1753
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1754
- # @param [Google::Apis::RequestOptions] options
1755
- # Request-specific options
1756
- #
1757
- # @yield [result, err] Result & error if block supplied
1758
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLogsSource] parsed result object
1759
- # @yieldparam err [StandardError] error object if request failed
1760
- #
1761
- # @return [Google::Apis::RunV1alpha1::CloudAuditLogsSource]
1762
- #
1763
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1764
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1765
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1766
- def create_project_location_cloudauditlogssource(parent, cloud_audit_logs_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1767
- command = make_simple_command(:post, 'v1alpha1/{+parent}/cloudauditlogssources', options)
1768
- command.request_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation
1769
- command.request_object = cloud_audit_logs_source_object
1770
- command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation
1771
- command.response_class = Google::Apis::RunV1alpha1::CloudAuditLogsSource
1772
- command.params['parent'] = parent unless parent.nil?
1773
- command.query['fields'] = fields unless fields.nil?
1774
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1775
- execute_or_queue_command(command, &block)
1776
- end
1777
-
1778
- # Rpc to delete a cloudauditlogssource.
1779
- # @param [String] name
1780
- # The name of the cloudauditlogssource being deleted. If needed, replace `
1781
- # namespace_id` with the project ID.
1782
- # @param [String] api_version
1783
- # Cloud Run currently ignores this parameter.
1784
- # @param [String] kind
1785
- # Cloud Run currently ignores this parameter.
1786
- # @param [String] propagation_policy
1787
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
1788
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1789
- # workloads/controllers/garbage-collection/ for more information.
1790
- # @param [String] fields
1791
- # Selector specifying which fields to include in a partial response.
1792
- # @param [String] quota_user
1793
- # Available to use for quota purposes for server-side applications. Can be any
1794
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1795
- # @param [Google::Apis::RequestOptions] options
1796
- # Request-specific options
1797
- #
1798
- # @yield [result, err] Result & error if block supplied
1799
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
1800
- # @yieldparam err [StandardError] error object if request failed
1801
- #
1802
- # @return [Google::Apis::RunV1alpha1::Empty]
1803
- #
1804
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1805
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1806
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1807
- def delete_project_location_cloudauditlogssource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
1808
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
1809
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
1810
- command.response_class = Google::Apis::RunV1alpha1::Empty
1811
- command.params['name'] = name unless name.nil?
1812
- command.query['apiVersion'] = api_version unless api_version.nil?
1813
- command.query['kind'] = kind unless kind.nil?
1814
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1815
- command.query['fields'] = fields unless fields.nil?
1816
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1817
- execute_or_queue_command(command, &block)
1818
- end
1819
-
1820
- # Rpc to get information about a cloudauditlogssource.
1821
- # @param [String] name
1822
- # The name of the cloudauditlogssource being retrieved. If needed, replace `
1823
- # namespace_id` with the project ID.
1824
- # @param [String] fields
1825
- # Selector specifying which fields to include in a partial response.
1826
- # @param [String] quota_user
1827
- # Available to use for quota purposes for server-side applications. Can be any
1828
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1829
- # @param [Google::Apis::RequestOptions] options
1830
- # Request-specific options
1831
- #
1832
- # @yield [result, err] Result & error if block supplied
1833
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLogsSource] parsed result object
1834
- # @yieldparam err [StandardError] error object if request failed
1835
- #
1836
- # @return [Google::Apis::RunV1alpha1::CloudAuditLogsSource]
1837
- #
1838
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1839
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1840
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1841
- def get_project_location_cloudauditlogssource(name, fields: nil, quota_user: nil, options: nil, &block)
1842
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1843
- command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation
1844
- command.response_class = Google::Apis::RunV1alpha1::CloudAuditLogsSource
1845
- command.params['name'] = name unless name.nil?
1846
- command.query['fields'] = fields unless fields.nil?
1847
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1848
- execute_or_queue_command(command, &block)
1849
- end
1850
-
1851
- # Rpc to list cloudauditlogssources.
1852
- # @param [String] parent
1853
- # The project ID or project number from which the cloudauditlogssources should
1854
- # be listed.
1855
- # @param [String] continue
1856
- # Optional encoded string to continue paging.
1857
- # @param [String] field_selector
1858
- # Allows to filter resources based on a specific value for a field name. Send
1859
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1860
- # used by Cloud Run.
1861
- # @param [Boolean] include_uninitialized
1862
- # Not currently used by Cloud Run.
1863
- # @param [String] label_selector
1864
- # Allows to filter resources based on a label. Supported operations are =, !=,
1865
- # exists, in, and notIn.
1866
- # @param [Fixnum] limit
1867
- # The maximum number of records that should be returned.
1868
- # @param [String] resource_version
1869
- # The baseline resource version from which the list or watch operation should
1870
- # start. Not currently used by Cloud Run.
1871
- # @param [Boolean] watch
1872
- # Flag that indicates that the client expects to watch this resource as well.
1873
- # Not currently used by Cloud Run.
1874
- # @param [String] fields
1875
- # Selector specifying which fields to include in a partial response.
1876
- # @param [String] quota_user
1877
- # Available to use for quota purposes for server-side applications. Can be any
1878
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1879
- # @param [Google::Apis::RequestOptions] options
1880
- # Request-specific options
1881
- #
1882
- # @yield [result, err] Result & error if block supplied
1883
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse] parsed result object
1884
- # @yieldparam err [StandardError] error object if request failed
1885
- #
1886
- # @return [Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse]
1887
- #
1888
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1889
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1890
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1891
- 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)
1892
- command = make_simple_command(:get, 'v1alpha1/{+parent}/cloudauditlogssources', options)
1893
- command.response_representation = Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse::Representation
1894
- command.response_class = Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse
1895
- command.params['parent'] = parent unless parent.nil?
1896
- command.query['continue'] = continue unless continue.nil?
1897
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1898
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1899
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1900
- command.query['limit'] = limit unless limit.nil?
1901
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1902
- command.query['watch'] = watch unless watch.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 cloudpubsubsource.
1909
- # @param [String] parent
1910
- # The project ID or project number in which this cloudpubsubsource should be
1911
- # created.
1912
- # @param [Google::Apis::RunV1alpha1::CloudPubSubSource] cloud_pub_sub_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::CloudPubSubSource] parsed result object
1923
- # @yieldparam err [StandardError] error object if request failed
1924
- #
1925
- # @return [Google::Apis::RunV1alpha1::CloudPubSubSource]
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_cloudpubsubsource(parent, cloud_pub_sub_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1931
- command = make_simple_command(:post, 'v1alpha1/{+parent}/cloudpubsubsources', options)
1932
- command.request_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation
1933
- command.request_object = cloud_pub_sub_source_object
1934
- command.response_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation
1935
- command.response_class = Google::Apis::RunV1alpha1::CloudPubSubSource
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 cloudpubsubsource.
1943
- # @param [String] name
1944
- # The name of the cloudpubsubsource 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_cloudpubsubsource(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 cloudpubsubsource.
1985
- # @param [String] name
1986
- # The name of the cloudpubsubsource 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::CloudPubSubSource] parsed result object
1998
- # @yieldparam err [StandardError] error object if request failed
1999
- #
2000
- # @return [Google::Apis::RunV1alpha1::CloudPubSubSource]
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_cloudpubsubsource(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::CloudPubSubSource::Representation
2008
- command.response_class = Google::Apis::RunV1alpha1::CloudPubSubSource
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 cloudpubsubsources.
2016
- # @param [String] parent
2017
- # The project ID or project number from which the cloudpubsubsources should be
2018
- # 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::ListCloudPubSubSourcesResponse] parsed result object
2048
- # @yieldparam err [StandardError] error object if request failed
2049
- #
2050
- # @return [Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse]
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_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)
2056
- command = make_simple_command(:get, 'v1alpha1/{+parent}/cloudpubsubsources', options)
2057
- command.response_representation = Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse::Representation
2058
- command.response_class = Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse
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 cloudschedulersource.
2073
- # @param [String] parent
2074
- # Required. The project ID or project number in which this cloudschedulersource
2075
- # should be created.
2076
- # @param [Google::Apis::RunV1alpha1::CloudSchedulerSource] cloud_scheduler_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::CloudSchedulerSource] parsed result object
2087
- # @yieldparam err [StandardError] error object if request failed
2088
- #
2089
- # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource]
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_cloudschedulersource(parent, cloud_scheduler_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2095
- command = make_simple_command(:post, 'v1alpha1/{+parent}/cloudschedulersources', options)
2096
- command.request_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
2097
- command.request_object = cloud_scheduler_source_object
2098
- command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
2099
- command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource
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 cloudschedulersource.
2107
- # @param [String] name
2108
- # Required. The name of the cloudschedulersource being deleted. If needed,
2109
- # replace `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_cloudschedulersource(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 cloudschedulersource.
2149
- # @param [String] name
2150
- # Required. The name of the cloudschedulersource being retrieved. If needed,
2151
- # replace `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::CloudSchedulerSource] parsed result object
2162
- # @yieldparam err [StandardError] error object if request failed
2163
- #
2164
- # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource]
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_cloudschedulersource(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::CloudSchedulerSource::Representation
2172
- command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource
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 cloudschedulersources.
2180
- # @param [String] parent
2181
- # Required. The project ID or project number from which the
2182
- # cloudschedulersources should be 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::ListCloudSchedulerSourcesResponse] parsed result object
2212
- # @yieldparam err [StandardError] error object if request failed
2213
- #
2214
- # @return [Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse]
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_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)
2220
- command = make_simple_command(:get, 'v1alpha1/{+parent}/cloudschedulersources', options)
2221
- command.response_representation = Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse::Representation
2222
- 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
2223
720
  command.params['parent'] = parent unless parent.nil?
2224
721
  command.query['continue'] = continue unless continue.nil?
2225
722
  command.query['fieldSelector'] = field_selector unless field_selector.nil?
@@ -2233,49 +730,10 @@ module Google
2233
730
  execute_or_queue_command(command, &block)
2234
731
  end
2235
732
 
2236
- # Rpc to replace a cloudschedulersource. Only the spec and metadata labels and
2237
- # annotations are modifiable. After the Update request, Cloud Run will work to
2238
- # make the 'status' match the requested 'spec'. May provide metadata.
2239
- # resourceVersion to enforce update from last read for optimistic concurrency
2240
- # control.
2241
- # @param [String] name
2242
- # Required. The name of the cloudschedulersource being retrieved. If needed,
2243
- # replace `namespace_id` with the project ID.
2244
- # @param [Google::Apis::RunV1alpha1::CloudSchedulerSource] cloud_scheduler_source_object
2245
- # @param [String] fields
2246
- # Selector specifying which fields to include in a partial response.
2247
- # @param [String] quota_user
2248
- # Available to use for quota purposes for server-side applications. Can be any
2249
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2250
- # @param [Google::Apis::RequestOptions] options
2251
- # Request-specific options
2252
- #
2253
- # @yield [result, err] Result & error if block supplied
2254
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudSchedulerSource] parsed result object
2255
- # @yieldparam err [StandardError] error object if request failed
2256
- #
2257
- # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource]
2258
- #
2259
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2260
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2261
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2262
- def replace_project_location_cloudschedulersource_cloud_scheduler_source(name, cloud_scheduler_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2263
- command = make_simple_command(:put, 'v1alpha1/{+name}', options)
2264
- command.request_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
2265
- command.request_object = cloud_scheduler_source_object
2266
- command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation
2267
- command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource
2268
- command.params['name'] = name unless name.nil?
2269
- command.query['fields'] = fields unless fields.nil?
2270
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2271
- execute_or_queue_command(command, &block)
2272
- end
2273
-
2274
- # Creates a new cloudstoragesource.
733
+ # Rpc to create a service.
2275
734
  # @param [String] parent
2276
- # Required. The project ID or project number in which this cloudstoragesource
2277
- # should be created.
2278
- # @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
2279
737
  # @param [String] fields
2280
738
  # Selector specifying which fields to include in a partial response.
2281
739
  # @param [String] quota_user
@@ -2285,34 +743,40 @@ module Google
2285
743
  # Request-specific options
2286
744
  #
2287
745
  # @yield [result, err] Result & error if block supplied
2288
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudStorageSource] parsed result object
746
+ # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
2289
747
  # @yieldparam err [StandardError] error object if request failed
2290
748
  #
2291
- # @return [Google::Apis::RunV1alpha1::CloudStorageSource]
749
+ # @return [Google::Apis::RunV1alpha1::Service]
2292
750
  #
2293
751
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2294
752
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2295
753
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2296
- def create_project_location_cloudstoragesource(parent, cloud_storage_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2297
- command = make_simple_command(:post, 'v1alpha1/{+parent}/cloudstoragesources', options)
2298
- command.request_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
2299
- command.request_object = cloud_storage_source_object
2300
- command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
2301
- 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
2302
760
  command.params['parent'] = parent unless parent.nil?
2303
761
  command.query['fields'] = fields unless fields.nil?
2304
762
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2305
763
  execute_or_queue_command(command, &block)
2306
764
  end
2307
765
 
2308
- # 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.
2309
768
  # @param [String] name
2310
- # Required. The name of the cloudstoragesource being deleted. If needed, replace
2311
- # `namespace_id` with the project ID.
769
+ # The name of the service being deleted. If needed, replace `namespace_id` with
770
+ # the project ID.
2312
771
  # @param [String] api_version
2313
772
  # Cloud Run currently ignores this parameter.
2314
773
  # @param [String] kind
2315
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.
2316
780
  # @param [String] propagation_policy
2317
781
  # Specifies the propagation policy of delete. Cloud Run currently ignores this
2318
782
  # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
@@ -2334,23 +798,24 @@ module Google
2334
798
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2335
799
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2336
800
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2337
- def delete_project_location_cloudstoragesource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
2338
- 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)
2339
803
  command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
2340
804
  command.response_class = Google::Apis::RunV1alpha1::Empty
2341
805
  command.params['name'] = name unless name.nil?
2342
806
  command.query['apiVersion'] = api_version unless api_version.nil?
2343
807
  command.query['kind'] = kind unless kind.nil?
808
+ command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
2344
809
  command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
2345
810
  command.query['fields'] = fields unless fields.nil?
2346
811
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2347
812
  execute_or_queue_command(command, &block)
2348
813
  end
2349
814
 
2350
- # Rpc to get information about a cloudstoragesource.
815
+ # Rpc to get information about a service.
2351
816
  # @param [String] name
2352
- # Required. The name of the cloudstoragesource being retrieved. If needed,
2353
- # 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.
2354
819
  # @param [String] fields
2355
820
  # Selector specifying which fields to include in a partial response.
2356
821
  # @param [String] quota_user
@@ -2360,28 +825,27 @@ module Google
2360
825
  # Request-specific options
2361
826
  #
2362
827
  # @yield [result, err] Result & error if block supplied
2363
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudStorageSource] parsed result object
828
+ # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
2364
829
  # @yieldparam err [StandardError] error object if request failed
2365
830
  #
2366
- # @return [Google::Apis::RunV1alpha1::CloudStorageSource]
831
+ # @return [Google::Apis::RunV1alpha1::Service]
2367
832
  #
2368
833
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2369
834
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2370
835
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2371
- def get_project_location_cloudstoragesource(name, fields: nil, quota_user: nil, options: nil, &block)
2372
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
2373
- command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
2374
- 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
2375
840
  command.params['name'] = name unless name.nil?
2376
841
  command.query['fields'] = fields unless fields.nil?
2377
842
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2378
843
  execute_or_queue_command(command, &block)
2379
844
  end
2380
845
 
2381
- # Rpc to list cloudstoragesources.
846
+ # Rpc to list services.
2382
847
  # @param [String] parent
2383
- # Required. The project ID or project number from which the cloudstoragesources
2384
- # should be listed.
848
+ # The project ID or project number from which the services should be listed.
2385
849
  # @param [String] continue
2386
850
  # Optional encoded string to continue paging.
2387
851
  # @param [String] field_selector
@@ -2410,18 +874,18 @@ module Google
2410
874
  # Request-specific options
2411
875
  #
2412
876
  # @yield [result, err] Result & error if block supplied
2413
- # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse] parsed result object
877
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListServicesResponse] parsed result object
2414
878
  # @yieldparam err [StandardError] error object if request failed
2415
879
  #
2416
- # @return [Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse]
880
+ # @return [Google::Apis::RunV1alpha1::ListServicesResponse]
2417
881
  #
2418
882
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2419
883
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2420
884
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2421
- 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)
2422
- command = make_simple_command(:get, 'v1alpha1/{+parent}/cloudstoragesources', options)
2423
- command.response_representation = Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse::Representation
2424
- 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
2425
889
  command.params['parent'] = parent unless parent.nil?
2426
890
  command.query['continue'] = continue unless continue.nil?
2427
891
  command.query['fieldSelector'] = field_selector unless field_selector.nil?
@@ -2435,15 +899,14 @@ module Google
2435
899
  execute_or_queue_command(command, &block)
2436
900
  end
2437
901
 
2438
- # Rpc to replace a cloudstoragesource. Only the spec and metadata labels and
2439
- # annotations are modifiable. After the Update request, Cloud Run will work to
2440
- # make the 'status' match the requested 'spec'. May provide metadata.
2441
- # resourceVersion to enforce update from last read for optimistic concurrency
2442
- # 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.
2443
906
  # @param [String] name
2444
- # Required. The name of the cloudstoragesource being retrieved. If needed,
2445
- # replace `namespace_id` with the project ID.
2446
- # @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
2447
910
  # @param [String] fields
2448
911
  # Selector specifying which fields to include in a partial response.
2449
912
  # @param [String] quota_user
@@ -2453,21 +916,100 @@ module Google
2453
916
  # Request-specific options
2454
917
  #
2455
918
  # @yield [result, err] Result & error if block supplied
2456
- # @yieldparam result [Google::Apis::RunV1alpha1::CloudStorageSource] parsed result object
919
+ # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
2457
920
  # @yieldparam err [StandardError] error object if request failed
2458
921
  #
2459
- # @return [Google::Apis::RunV1alpha1::CloudStorageSource]
922
+ # @return [Google::Apis::RunV1alpha1::Service]
2460
923
  #
2461
924
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2462
925
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2463
926
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2464
- def replace_project_location_cloudstoragesource_cloud_storage_source(name, cloud_storage_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2465
- command = make_simple_command(:put, 'v1alpha1/{+name}', options)
2466
- command.request_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
2467
- command.request_object = cloud_storage_source_object
2468
- command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation
2469
- 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
+ # A filter to narrow down results to a preferred subset. The filtering language
944
+ # accepts strings like "displayName=tokyo", and is documented in more detail in [
945
+ # AIP-160](https://google.aip.dev/160).
946
+ # @param [Fixnum] page_size
947
+ # The maximum number of results to return. If not set, the service will select a
948
+ # default.
949
+ # @param [String] page_token
950
+ # A page token received from the `next_page_token` field in the response. Send
951
+ # that page token to receive the subsequent page.
952
+ # @param [String] fields
953
+ # Selector specifying which fields to include in a partial response.
954
+ # @param [String] quota_user
955
+ # Available to use for quota purposes for server-side applications. Can be any
956
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
957
+ # @param [Google::Apis::RequestOptions] options
958
+ # Request-specific options
959
+ #
960
+ # @yield [result, err] Result & error if block supplied
961
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListLocationsResponse] parsed result object
962
+ # @yieldparam err [StandardError] error object if request failed
963
+ #
964
+ # @return [Google::Apis::RunV1alpha1::ListLocationsResponse]
965
+ #
966
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
967
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
968
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
969
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
970
+ command = make_simple_command(:get, 'v1alpha1/{+name}/locations', options)
971
+ command.response_representation = Google::Apis::RunV1alpha1::ListLocationsResponse::Representation
972
+ command.response_class = Google::Apis::RunV1alpha1::ListLocationsResponse
2470
973
  command.params['name'] = name unless name.nil?
974
+ command.query['filter'] = filter unless filter.nil?
975
+ command.query['pageSize'] = page_size unless page_size.nil?
976
+ command.query['pageToken'] = page_token unless page_token.nil?
977
+ command.query['fields'] = fields unless fields.nil?
978
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
979
+ execute_or_queue_command(command, &block)
980
+ end
981
+
982
+ # RPC to list authorized domains.
983
+ # @param [String] parent
984
+ # Name of the parent Application resource. Example: `apps/myapp`.
985
+ # @param [Fixnum] page_size
986
+ # Maximum results to return per page.
987
+ # @param [String] page_token
988
+ # Continuation token for fetching the next page of results.
989
+ # @param [String] fields
990
+ # Selector specifying which fields to include in a partial response.
991
+ # @param [String] quota_user
992
+ # Available to use for quota purposes for server-side applications. Can be any
993
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
994
+ # @param [Google::Apis::RequestOptions] options
995
+ # Request-specific options
996
+ #
997
+ # @yield [result, err] Result & error if block supplied
998
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse] parsed result object
999
+ # @yieldparam err [StandardError] error object if request failed
1000
+ #
1001
+ # @return [Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse]
1002
+ #
1003
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1004
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1005
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1006
+ def list_project_location_authorizeddomains(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1007
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/authorizeddomains', options)
1008
+ command.response_representation = Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse::Representation
1009
+ command.response_class = Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse
1010
+ command.params['parent'] = parent unless parent.nil?
1011
+ command.query['pageSize'] = page_size unless page_size.nil?
1012
+ command.query['pageToken'] = page_token unless page_token.nil?
2471
1013
  command.query['fields'] = fields unless fields.nil?
2472
1014
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2473
1015
  execute_or_queue_command(command, &block)
@@ -3269,168 +1811,6 @@ module Google
3269
1811
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3270
1812
  execute_or_queue_command(command, &block)
3271
1813
  end
3272
-
3273
- # Creates a new trigger.
3274
- # @param [String] parent
3275
- # The project ID or project number in which this trigger should be created.
3276
- # @param [Google::Apis::RunV1alpha1::Trigger] trigger_object
3277
- # @param [String] fields
3278
- # Selector specifying which fields to include in a partial response.
3279
- # @param [String] quota_user
3280
- # Available to use for quota purposes for server-side applications. Can be any
3281
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3282
- # @param [Google::Apis::RequestOptions] options
3283
- # Request-specific options
3284
- #
3285
- # @yield [result, err] Result & error if block supplied
3286
- # @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
3287
- # @yieldparam err [StandardError] error object if request failed
3288
- #
3289
- # @return [Google::Apis::RunV1alpha1::Trigger]
3290
- #
3291
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3292
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3293
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3294
- def create_project_location_trigger(parent, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3295
- command = make_simple_command(:post, 'v1alpha1/{+parent}/triggers', options)
3296
- command.request_representation = Google::Apis::RunV1alpha1::Trigger::Representation
3297
- command.request_object = trigger_object
3298
- command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
3299
- command.response_class = Google::Apis::RunV1alpha1::Trigger
3300
- command.params['parent'] = parent unless parent.nil?
3301
- command.query['fields'] = fields unless fields.nil?
3302
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3303
- execute_or_queue_command(command, &block)
3304
- end
3305
-
3306
- # Rpc to delete a trigger.
3307
- # @param [String] name
3308
- # The name of the trigger being deleted. If needed, replace `namespace_id` with
3309
- # the project ID.
3310
- # @param [String] api_version
3311
- # Cloud Run currently ignores this parameter.
3312
- # @param [String] kind
3313
- # Cloud Run currently ignores this parameter.
3314
- # @param [String] propagation_policy
3315
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
3316
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
3317
- # workloads/controllers/garbage-collection/ for more information.
3318
- # @param [String] fields
3319
- # Selector specifying which fields to include in a partial response.
3320
- # @param [String] quota_user
3321
- # Available to use for quota purposes for server-side applications. Can be any
3322
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3323
- # @param [Google::Apis::RequestOptions] options
3324
- # Request-specific options
3325
- #
3326
- # @yield [result, err] Result & error if block supplied
3327
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
3328
- # @yieldparam err [StandardError] error object if request failed
3329
- #
3330
- # @return [Google::Apis::RunV1alpha1::Empty]
3331
- #
3332
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3333
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3334
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3335
- def delete_project_location_trigger(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
3336
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
3337
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
3338
- command.response_class = Google::Apis::RunV1alpha1::Empty
3339
- command.params['name'] = name unless name.nil?
3340
- command.query['apiVersion'] = api_version unless api_version.nil?
3341
- command.query['kind'] = kind unless kind.nil?
3342
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
3343
- command.query['fields'] = fields unless fields.nil?
3344
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3345
- execute_or_queue_command(command, &block)
3346
- end
3347
-
3348
- # Rpc to get information about a trigger.
3349
- # @param [String] name
3350
- # The name of the trigger being retrieved. If needed, replace `namespace_id`
3351
- # with the project ID.
3352
- # @param [String] fields
3353
- # Selector specifying which fields to include in a partial response.
3354
- # @param [String] quota_user
3355
- # Available to use for quota purposes for server-side applications. Can be any
3356
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3357
- # @param [Google::Apis::RequestOptions] options
3358
- # Request-specific options
3359
- #
3360
- # @yield [result, err] Result & error if block supplied
3361
- # @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object
3362
- # @yieldparam err [StandardError] error object if request failed
3363
- #
3364
- # @return [Google::Apis::RunV1alpha1::Trigger]
3365
- #
3366
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3367
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3368
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3369
- def get_project_location_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
3370
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
3371
- command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation
3372
- command.response_class = Google::Apis::RunV1alpha1::Trigger
3373
- command.params['name'] = name unless name.nil?
3374
- command.query['fields'] = fields unless fields.nil?
3375
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3376
- execute_or_queue_command(command, &block)
3377
- end
3378
-
3379
- # Rpc to list triggers.
3380
- # @param [String] parent
3381
- # The project ID or project number from which the triggers should be listed.
3382
- # @param [String] continue
3383
- # Optional. Encoded string to continue paging.
3384
- # @param [String] field_selector
3385
- # Allows to filter resources based on a specific value for a field name. Send
3386
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
3387
- # used by Cloud Run.
3388
- # @param [Boolean] include_uninitialized
3389
- # Not currently used by Cloud Run.
3390
- # @param [String] label_selector
3391
- # Allows to filter resources based on a label. Supported operations are =, !=,
3392
- # exists, in, and notIn.
3393
- # @param [Fixnum] limit
3394
- # The maximum number of records that should be returned.
3395
- # @param [String] resource_version
3396
- # The baseline resource version from which the list or watch operation should
3397
- # start. Not currently used by Cloud Run.
3398
- # @param [Boolean] watch
3399
- # Flag that indicates that the client expects to watch this resource as well.
3400
- # Not currently used by Cloud Run.
3401
- # @param [String] fields
3402
- # Selector specifying which fields to include in a partial response.
3403
- # @param [String] quota_user
3404
- # Available to use for quota purposes for server-side applications. Can be any
3405
- # arbitrary string assigned to a user, but should not exceed 40 characters.
3406
- # @param [Google::Apis::RequestOptions] options
3407
- # Request-specific options
3408
- #
3409
- # @yield [result, err] Result & error if block supplied
3410
- # @yieldparam result [Google::Apis::RunV1alpha1::ListTriggersResponse] parsed result object
3411
- # @yieldparam err [StandardError] error object if request failed
3412
- #
3413
- # @return [Google::Apis::RunV1alpha1::ListTriggersResponse]
3414
- #
3415
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3416
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3417
- # @raise [Google::Apis::AuthorizationError] Authorization is required
3418
- 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)
3419
- command = make_simple_command(:get, 'v1alpha1/{+parent}/triggers', options)
3420
- command.response_representation = Google::Apis::RunV1alpha1::ListTriggersResponse::Representation
3421
- command.response_class = Google::Apis::RunV1alpha1::ListTriggersResponse
3422
- command.params['parent'] = parent unless parent.nil?
3423
- command.query['continue'] = continue unless continue.nil?
3424
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
3425
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
3426
- command.query['labelSelector'] = label_selector unless label_selector.nil?
3427
- command.query['limit'] = limit unless limit.nil?
3428
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
3429
- command.query['watch'] = watch unless watch.nil?
3430
- command.query['fields'] = fields unless fields.nil?
3431
- command.query['quotaUser'] = quota_user unless quota_user.nil?
3432
- execute_or_queue_command(command, &block)
3433
- end
3434
1814
 
3435
1815
  protected
3436
1816