google-apis-run_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1664 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module RunV1
23
+ # Cloud Run Admin API
24
+ #
25
+ # Deploy and manage user provided container images that scale automatically
26
+ # based on HTTP traffic.
27
+ #
28
+ # @example
29
+ # require 'google/apis/run_v1'
30
+ #
31
+ # Run = Google::Apis::RunV1 # Alias the module
32
+ # service = Run::CloudRunService.new
33
+ #
34
+ # @see https://cloud.google.com/run/
35
+ class CloudRunService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://run.googleapis.com/', '',
48
+ client_name: 'google-apis-run_v1',
49
+ client_version: Google::Apis::RunV1::GEM_VERSION)
50
+ @batch_path = 'batch'
51
+ end
52
+
53
+ # List authorized domains.
54
+ # @param [String] parent
55
+ # Name of the parent Project resource. Example: `projects/myproject`.
56
+ # @param [Fixnum] page_size
57
+ # Maximum results to return per page.
58
+ # @param [String] page_token
59
+ # Continuation token for fetching the next page of results.
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [String] quota_user
63
+ # Available to use for quota purposes for server-side applications. Can be any
64
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # @param [Google::Apis::RequestOptions] options
66
+ # Request-specific options
67
+ #
68
+ # @yield [result, err] Result & error if block supplied
69
+ # @yieldparam result [Google::Apis::RunV1::ListAuthorizedDomainsResponse] parsed result object
70
+ # @yieldparam err [StandardError] error object if request failed
71
+ #
72
+ # @return [Google::Apis::RunV1::ListAuthorizedDomainsResponse]
73
+ #
74
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
77
+ def list_namespace_authorizeddomains(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
78
+ command = make_simple_command(:get, 'apis/domains.cloudrun.com/v1/{+parent}/authorizeddomains', options)
79
+ command.response_representation = Google::Apis::RunV1::ListAuthorizedDomainsResponse::Representation
80
+ command.response_class = Google::Apis::RunV1::ListAuthorizedDomainsResponse
81
+ command.params['parent'] = parent unless parent.nil?
82
+ command.query['pageSize'] = page_size unless page_size.nil?
83
+ command.query['pageToken'] = page_token unless page_token.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ execute_or_queue_command(command, &block)
87
+ end
88
+
89
+ # Get information about a configuration.
90
+ # @param [String] name
91
+ # The name of the configuration to retrieve. For Cloud Run (fully managed),
92
+ # replace `namespace_id` with the project ID or number.
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
95
+ # @param [String] quota_user
96
+ # Available to use for quota purposes for server-side applications. Can be any
97
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
98
+ # @param [Google::Apis::RequestOptions] options
99
+ # Request-specific options
100
+ #
101
+ # @yield [result, err] Result & error if block supplied
102
+ # @yieldparam result [Google::Apis::RunV1::Configuration] parsed result object
103
+ # @yieldparam err [StandardError] error object if request failed
104
+ #
105
+ # @return [Google::Apis::RunV1::Configuration]
106
+ #
107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
110
+ def get_namespace_configuration(name, fields: nil, quota_user: nil, options: nil, &block)
111
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1/{+name}', options)
112
+ command.response_representation = Google::Apis::RunV1::Configuration::Representation
113
+ command.response_class = Google::Apis::RunV1::Configuration
114
+ command.params['name'] = name unless name.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ execute_or_queue_command(command, &block)
118
+ end
119
+
120
+ # List configurations.
121
+ # @param [String] parent
122
+ # The namespace from which the configurations should be listed. For Cloud Run (
123
+ # fully managed), replace `namespace_id` with the project ID or number.
124
+ # @param [String] continue
125
+ # Optional encoded string to continue paging.
126
+ # @param [String] field_selector
127
+ # Allows to filter resources based on a specific value for a field name. Send
128
+ # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
129
+ # used by Cloud Run.
130
+ # @param [Boolean] include_uninitialized
131
+ # Not currently used by Cloud Run.
132
+ # @param [String] label_selector
133
+ # Allows to filter resources based on a label. Supported operations are =, !=,
134
+ # exists, in, and notIn.
135
+ # @param [Fixnum] limit
136
+ # The maximum number of records that should be returned.
137
+ # @param [String] resource_version
138
+ # The baseline resource version from which the list or watch operation should
139
+ # start. Not currently used by Cloud Run.
140
+ # @param [Boolean] watch
141
+ # Flag that indicates that the client expects to watch this resource as well.
142
+ # Not currently used by Cloud Run.
143
+ # @param [String] fields
144
+ # Selector specifying which fields to include in a partial response.
145
+ # @param [String] quota_user
146
+ # Available to use for quota purposes for server-side applications. Can be any
147
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
148
+ # @param [Google::Apis::RequestOptions] options
149
+ # Request-specific options
150
+ #
151
+ # @yield [result, err] Result & error if block supplied
152
+ # @yieldparam result [Google::Apis::RunV1::ListConfigurationsResponse] parsed result object
153
+ # @yieldparam err [StandardError] error object if request failed
154
+ #
155
+ # @return [Google::Apis::RunV1::ListConfigurationsResponse]
156
+ #
157
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
158
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
159
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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/v1/{+parent}/configurations', options)
162
+ command.response_representation = Google::Apis::RunV1::ListConfigurationsResponse::Representation
163
+ command.response_class = Google::Apis::RunV1::ListConfigurationsResponse
164
+ command.params['parent'] = parent unless parent.nil?
165
+ command.query['continue'] = continue unless continue.nil?
166
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
167
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
168
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
169
+ command.query['limit'] = limit unless limit.nil?
170
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
171
+ command.query['watch'] = watch unless watch.nil?
172
+ command.query['fields'] = fields unless fields.nil?
173
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
174
+ execute_or_queue_command(command, &block)
175
+ end
176
+
177
+ # Create a new domain mapping.
178
+ # @param [String] parent
179
+ # The namespace in which the domain mapping should be created. For Cloud Run (
180
+ # fully managed), replace `namespace_id` with the project ID or number.
181
+ # @param [Google::Apis::RunV1::DomainMapping] domain_mapping_object
182
+ # @param [String] fields
183
+ # Selector specifying which fields to include in a partial response.
184
+ # @param [String] quota_user
185
+ # Available to use for quota purposes for server-side applications. Can be any
186
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
187
+ # @param [Google::Apis::RequestOptions] options
188
+ # Request-specific options
189
+ #
190
+ # @yield [result, err] Result & error if block supplied
191
+ # @yieldparam result [Google::Apis::RunV1::DomainMapping] parsed result object
192
+ # @yieldparam err [StandardError] error object if request failed
193
+ #
194
+ # @return [Google::Apis::RunV1::DomainMapping]
195
+ #
196
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
197
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
198
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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/v1/{+parent}/domainmappings', options)
201
+ command.request_representation = Google::Apis::RunV1::DomainMapping::Representation
202
+ command.request_object = domain_mapping_object
203
+ command.response_representation = Google::Apis::RunV1::DomainMapping::Representation
204
+ command.response_class = Google::Apis::RunV1::DomainMapping
205
+ command.params['parent'] = parent unless parent.nil?
206
+ command.query['fields'] = fields unless fields.nil?
207
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
208
+ execute_or_queue_command(command, &block)
209
+ end
210
+
211
+ # Delete a domain mapping.
212
+ # @param [String] name
213
+ # The name of the domain mapping to delete. For Cloud Run (fully managed),
214
+ # replace `namespace_id` with the project ID or number.
215
+ # @param [String] api_version
216
+ # Cloud Run currently ignores this parameter.
217
+ # @param [String] kind
218
+ # Cloud Run currently ignores this parameter.
219
+ # @param [String] propagation_policy
220
+ # Specifies the propagation policy of delete. Cloud Run currently ignores this
221
+ # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
222
+ # workloads/controllers/garbage-collection/ for more information.
223
+ # @param [String] fields
224
+ # Selector specifying which fields to include in a partial response.
225
+ # @param [String] quota_user
226
+ # Available to use for quota purposes for server-side applications. Can be any
227
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
228
+ # @param [Google::Apis::RequestOptions] options
229
+ # Request-specific options
230
+ #
231
+ # @yield [result, err] Result & error if block supplied
232
+ # @yieldparam result [Google::Apis::RunV1::Status] parsed result object
233
+ # @yieldparam err [StandardError] error object if request failed
234
+ #
235
+ # @return [Google::Apis::RunV1::Status]
236
+ #
237
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
238
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
239
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
240
+ def delete_namespace_domainmapping(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
241
+ command = make_simple_command(:delete, 'apis/domains.cloudrun.com/v1/{+name}', options)
242
+ command.response_representation = Google::Apis::RunV1::Status::Representation
243
+ command.response_class = Google::Apis::RunV1::Status
244
+ command.params['name'] = name unless name.nil?
245
+ command.query['apiVersion'] = api_version unless api_version.nil?
246
+ command.query['kind'] = kind unless kind.nil?
247
+ command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
248
+ command.query['fields'] = fields unless fields.nil?
249
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
250
+ execute_or_queue_command(command, &block)
251
+ end
252
+
253
+ # Get information about a domain mapping.
254
+ # @param [String] name
255
+ # The name of the domain mapping to retrieve. For Cloud Run (fully managed),
256
+ # replace `namespace_id` with the project ID or number.
257
+ # @param [String] fields
258
+ # Selector specifying which fields to include in a partial response.
259
+ # @param [String] quota_user
260
+ # Available to use for quota purposes for server-side applications. Can be any
261
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
262
+ # @param [Google::Apis::RequestOptions] options
263
+ # Request-specific options
264
+ #
265
+ # @yield [result, err] Result & error if block supplied
266
+ # @yieldparam result [Google::Apis::RunV1::DomainMapping] parsed result object
267
+ # @yieldparam err [StandardError] error object if request failed
268
+ #
269
+ # @return [Google::Apis::RunV1::DomainMapping]
270
+ #
271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
274
+ def get_namespace_domainmapping(name, fields: nil, quota_user: nil, options: nil, &block)
275
+ command = make_simple_command(:get, 'apis/domains.cloudrun.com/v1/{+name}', options)
276
+ command.response_representation = Google::Apis::RunV1::DomainMapping::Representation
277
+ command.response_class = Google::Apis::RunV1::DomainMapping
278
+ command.params['name'] = name unless name.nil?
279
+ command.query['fields'] = fields unless fields.nil?
280
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
281
+ execute_or_queue_command(command, &block)
282
+ end
283
+
284
+ # List domain mappings.
285
+ # @param [String] parent
286
+ # The namespace from which the domain mappings should be listed. For Cloud Run (
287
+ # fully managed), replace `namespace_id` with the project ID or number.
288
+ # @param [String] continue
289
+ # Optional encoded string to continue paging.
290
+ # @param [String] field_selector
291
+ # Allows to filter resources based on a specific value for a field name. Send
292
+ # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
293
+ # used by Cloud Run.
294
+ # @param [Boolean] include_uninitialized
295
+ # Not currently used by Cloud Run.
296
+ # @param [String] label_selector
297
+ # Allows to filter resources based on a label. Supported operations are =, !=,
298
+ # exists, in, and notIn.
299
+ # @param [Fixnum] limit
300
+ # The maximum number of records that should be returned.
301
+ # @param [String] resource_version
302
+ # The baseline resource version from which the list or watch operation should
303
+ # start. Not currently used by Cloud Run.
304
+ # @param [Boolean] watch
305
+ # Flag that indicates that the client expects to watch this resource as well.
306
+ # Not currently used by Cloud Run.
307
+ # @param [String] fields
308
+ # Selector specifying which fields to include in a partial response.
309
+ # @param [String] quota_user
310
+ # Available to use for quota purposes for server-side applications. Can be any
311
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
312
+ # @param [Google::Apis::RequestOptions] options
313
+ # Request-specific options
314
+ #
315
+ # @yield [result, err] Result & error if block supplied
316
+ # @yieldparam result [Google::Apis::RunV1::ListDomainMappingsResponse] parsed result object
317
+ # @yieldparam err [StandardError] error object if request failed
318
+ #
319
+ # @return [Google::Apis::RunV1::ListDomainMappingsResponse]
320
+ #
321
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
322
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
323
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
324
+ 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)
325
+ command = make_simple_command(:get, 'apis/domains.cloudrun.com/v1/{+parent}/domainmappings', options)
326
+ command.response_representation = Google::Apis::RunV1::ListDomainMappingsResponse::Representation
327
+ command.response_class = Google::Apis::RunV1::ListDomainMappingsResponse
328
+ command.params['parent'] = parent unless parent.nil?
329
+ command.query['continue'] = continue unless continue.nil?
330
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
331
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
332
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
333
+ command.query['limit'] = limit unless limit.nil?
334
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
335
+ command.query['watch'] = watch unless watch.nil?
336
+ command.query['fields'] = fields unless fields.nil?
337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
338
+ execute_or_queue_command(command, &block)
339
+ end
340
+
341
+ # Delete a revision.
342
+ # @param [String] name
343
+ # The name of the revision to delete. For Cloud Run (fully managed), replace `
344
+ # namespace_id` with the project ID or number.
345
+ # @param [String] api_version
346
+ # Cloud Run currently ignores this parameter.
347
+ # @param [String] kind
348
+ # Cloud Run currently ignores this parameter.
349
+ # @param [String] propagation_policy
350
+ # Specifies the propagation policy of delete. Cloud Run currently ignores this
351
+ # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
352
+ # workloads/controllers/garbage-collection/ for more information.
353
+ # @param [String] fields
354
+ # Selector specifying which fields to include in a partial response.
355
+ # @param [String] quota_user
356
+ # Available to use for quota purposes for server-side applications. Can be any
357
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
358
+ # @param [Google::Apis::RequestOptions] options
359
+ # Request-specific options
360
+ #
361
+ # @yield [result, err] Result & error if block supplied
362
+ # @yieldparam result [Google::Apis::RunV1::Status] parsed result object
363
+ # @yieldparam err [StandardError] error object if request failed
364
+ #
365
+ # @return [Google::Apis::RunV1::Status]
366
+ #
367
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
368
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
369
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
370
+ def delete_namespace_revision(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
371
+ command = make_simple_command(:delete, 'apis/serving.knative.dev/v1/{+name}', options)
372
+ command.response_representation = Google::Apis::RunV1::Status::Representation
373
+ command.response_class = Google::Apis::RunV1::Status
374
+ command.params['name'] = name unless name.nil?
375
+ command.query['apiVersion'] = api_version unless api_version.nil?
376
+ command.query['kind'] = kind unless kind.nil?
377
+ command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
378
+ command.query['fields'] = fields unless fields.nil?
379
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
380
+ execute_or_queue_command(command, &block)
381
+ end
382
+
383
+ # Get information about a revision.
384
+ # @param [String] name
385
+ # The name of the revision to retrieve. For Cloud Run (fully managed), replace `
386
+ # namespace_id` with the project ID or number.
387
+ # @param [String] fields
388
+ # Selector specifying which fields to include in a partial response.
389
+ # @param [String] quota_user
390
+ # Available to use for quota purposes for server-side applications. Can be any
391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
392
+ # @param [Google::Apis::RequestOptions] options
393
+ # Request-specific options
394
+ #
395
+ # @yield [result, err] Result & error if block supplied
396
+ # @yieldparam result [Google::Apis::RunV1::Revision] parsed result object
397
+ # @yieldparam err [StandardError] error object if request failed
398
+ #
399
+ # @return [Google::Apis::RunV1::Revision]
400
+ #
401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
404
+ def get_namespace_revision(name, fields: nil, quota_user: nil, options: nil, &block)
405
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1/{+name}', options)
406
+ command.response_representation = Google::Apis::RunV1::Revision::Representation
407
+ command.response_class = Google::Apis::RunV1::Revision
408
+ command.params['name'] = name unless name.nil?
409
+ command.query['fields'] = fields unless fields.nil?
410
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
411
+ execute_or_queue_command(command, &block)
412
+ end
413
+
414
+ # List revisions.
415
+ # @param [String] parent
416
+ # The namespace from which the revisions should be listed. For Cloud Run (fully
417
+ # managed), replace `namespace_id` with the project ID or number.
418
+ # @param [String] continue
419
+ # Optional encoded string to continue paging.
420
+ # @param [String] field_selector
421
+ # Allows to filter resources based on a specific value for a field name. Send
422
+ # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
423
+ # used by Cloud Run.
424
+ # @param [Boolean] include_uninitialized
425
+ # Not currently used by Cloud Run.
426
+ # @param [String] label_selector
427
+ # Allows to filter resources based on a label. Supported operations are =, !=,
428
+ # exists, in, and notIn.
429
+ # @param [Fixnum] limit
430
+ # The maximum number of records that should be returned.
431
+ # @param [String] resource_version
432
+ # The baseline resource version from which the list or watch operation should
433
+ # start. Not currently used by Cloud Run.
434
+ # @param [Boolean] watch
435
+ # Flag that indicates that the client expects to watch this resource as well.
436
+ # Not currently used by Cloud Run.
437
+ # @param [String] fields
438
+ # Selector specifying which fields to include in a partial response.
439
+ # @param [String] quota_user
440
+ # Available to use for quota purposes for server-side applications. Can be any
441
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
442
+ # @param [Google::Apis::RequestOptions] options
443
+ # Request-specific options
444
+ #
445
+ # @yield [result, err] Result & error if block supplied
446
+ # @yieldparam result [Google::Apis::RunV1::ListRevisionsResponse] parsed result object
447
+ # @yieldparam err [StandardError] error object if request failed
448
+ #
449
+ # @return [Google::Apis::RunV1::ListRevisionsResponse]
450
+ #
451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
454
+ 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)
455
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1/{+parent}/revisions', options)
456
+ command.response_representation = Google::Apis::RunV1::ListRevisionsResponse::Representation
457
+ command.response_class = Google::Apis::RunV1::ListRevisionsResponse
458
+ command.params['parent'] = parent unless parent.nil?
459
+ command.query['continue'] = continue unless continue.nil?
460
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
461
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
462
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
463
+ command.query['limit'] = limit unless limit.nil?
464
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
465
+ command.query['watch'] = watch unless watch.nil?
466
+ command.query['fields'] = fields unless fields.nil?
467
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
468
+ execute_or_queue_command(command, &block)
469
+ end
470
+
471
+ # Get information about a route.
472
+ # @param [String] name
473
+ # The name of the route to retrieve. For Cloud Run (fully managed), replace `
474
+ # namespace_id` with the project ID or number.
475
+ # @param [String] fields
476
+ # Selector specifying which fields to include in a partial response.
477
+ # @param [String] quota_user
478
+ # Available to use for quota purposes for server-side applications. Can be any
479
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
480
+ # @param [Google::Apis::RequestOptions] options
481
+ # Request-specific options
482
+ #
483
+ # @yield [result, err] Result & error if block supplied
484
+ # @yieldparam result [Google::Apis::RunV1::Route] parsed result object
485
+ # @yieldparam err [StandardError] error object if request failed
486
+ #
487
+ # @return [Google::Apis::RunV1::Route]
488
+ #
489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
492
+ def get_namespace_route(name, fields: nil, quota_user: nil, options: nil, &block)
493
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1/{+name}', options)
494
+ command.response_representation = Google::Apis::RunV1::Route::Representation
495
+ command.response_class = Google::Apis::RunV1::Route
496
+ command.params['name'] = name unless name.nil?
497
+ command.query['fields'] = fields unless fields.nil?
498
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
499
+ execute_or_queue_command(command, &block)
500
+ end
501
+
502
+ # List routes.
503
+ # @param [String] parent
504
+ # The namespace from which the routes should be listed. For Cloud Run (fully
505
+ # managed), replace `namespace_id` with the project ID or number.
506
+ # @param [String] continue
507
+ # Optional encoded string to continue paging.
508
+ # @param [String] field_selector
509
+ # Allows to filter resources based on a specific value for a field name. Send
510
+ # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
511
+ # used by Cloud Run.
512
+ # @param [Boolean] include_uninitialized
513
+ # Not currently used by Cloud Run.
514
+ # @param [String] label_selector
515
+ # Allows to filter resources based on a label. Supported operations are =, !=,
516
+ # exists, in, and notIn.
517
+ # @param [Fixnum] limit
518
+ # The maximum number of records that should be returned.
519
+ # @param [String] resource_version
520
+ # The baseline resource version from which the list or watch operation should
521
+ # start. Not currently used by Cloud Run.
522
+ # @param [Boolean] watch
523
+ # Flag that indicates that the client expects to watch this resource as well.
524
+ # Not currently used by Cloud Run.
525
+ # @param [String] fields
526
+ # Selector specifying which fields to include in a partial response.
527
+ # @param [String] quota_user
528
+ # Available to use for quota purposes for server-side applications. Can be any
529
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
530
+ # @param [Google::Apis::RequestOptions] options
531
+ # Request-specific options
532
+ #
533
+ # @yield [result, err] Result & error if block supplied
534
+ # @yieldparam result [Google::Apis::RunV1::ListRoutesResponse] parsed result object
535
+ # @yieldparam err [StandardError] error object if request failed
536
+ #
537
+ # @return [Google::Apis::RunV1::ListRoutesResponse]
538
+ #
539
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
540
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
541
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
542
+ 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)
543
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1/{+parent}/routes', options)
544
+ command.response_representation = Google::Apis::RunV1::ListRoutesResponse::Representation
545
+ command.response_class = Google::Apis::RunV1::ListRoutesResponse
546
+ command.params['parent'] = parent unless parent.nil?
547
+ command.query['continue'] = continue unless continue.nil?
548
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
549
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
550
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
551
+ command.query['limit'] = limit unless limit.nil?
552
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
553
+ command.query['watch'] = watch unless watch.nil?
554
+ command.query['fields'] = fields unless fields.nil?
555
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
556
+ execute_or_queue_command(command, &block)
557
+ end
558
+
559
+ # Create a service.
560
+ # @param [String] parent
561
+ # The namespace in which the service should be created. For Cloud Run (fully
562
+ # managed), replace `namespace_id` with the project ID or number.
563
+ # @param [Google::Apis::RunV1::Service] service_object
564
+ # @param [String] fields
565
+ # Selector specifying which fields to include in a partial response.
566
+ # @param [String] quota_user
567
+ # Available to use for quota purposes for server-side applications. Can be any
568
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
569
+ # @param [Google::Apis::RequestOptions] options
570
+ # Request-specific options
571
+ #
572
+ # @yield [result, err] Result & error if block supplied
573
+ # @yieldparam result [Google::Apis::RunV1::Service] parsed result object
574
+ # @yieldparam err [StandardError] error object if request failed
575
+ #
576
+ # @return [Google::Apis::RunV1::Service]
577
+ #
578
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
579
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
580
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
581
+ def create_namespace_service(parent, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
582
+ command = make_simple_command(:post, 'apis/serving.knative.dev/v1/{+parent}/services', options)
583
+ command.request_representation = Google::Apis::RunV1::Service::Representation
584
+ command.request_object = service_object
585
+ command.response_representation = Google::Apis::RunV1::Service::Representation
586
+ command.response_class = Google::Apis::RunV1::Service
587
+ command.params['parent'] = parent unless parent.nil?
588
+ command.query['fields'] = fields unless fields.nil?
589
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
590
+ execute_or_queue_command(command, &block)
591
+ end
592
+
593
+ # Delete a service. This will cause the Service to stop serving traffic and will
594
+ # delete the child entities like Routes, Configurations and Revisions.
595
+ # @param [String] name
596
+ # The name of the service to delete. For Cloud Run (fully managed), replace `
597
+ # namespace_id` with the project ID or number.
598
+ # @param [String] api_version
599
+ # Cloud Run currently ignores this parameter.
600
+ # @param [String] kind
601
+ # Cloud Run currently ignores this parameter.
602
+ # @param [String] propagation_policy
603
+ # Specifies the propagation policy of delete. Cloud Run currently ignores this
604
+ # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
605
+ # workloads/controllers/garbage-collection/ for more information.
606
+ # @param [String] fields
607
+ # Selector specifying which fields to include in a partial response.
608
+ # @param [String] quota_user
609
+ # Available to use for quota purposes for server-side applications. Can be any
610
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
611
+ # @param [Google::Apis::RequestOptions] options
612
+ # Request-specific options
613
+ #
614
+ # @yield [result, err] Result & error if block supplied
615
+ # @yieldparam result [Google::Apis::RunV1::Status] parsed result object
616
+ # @yieldparam err [StandardError] error object if request failed
617
+ #
618
+ # @return [Google::Apis::RunV1::Status]
619
+ #
620
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
621
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
622
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
623
+ def delete_namespace_service(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
624
+ command = make_simple_command(:delete, 'apis/serving.knative.dev/v1/{+name}', options)
625
+ command.response_representation = Google::Apis::RunV1::Status::Representation
626
+ command.response_class = Google::Apis::RunV1::Status
627
+ command.params['name'] = name unless name.nil?
628
+ command.query['apiVersion'] = api_version unless api_version.nil?
629
+ command.query['kind'] = kind unless kind.nil?
630
+ command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
631
+ command.query['fields'] = fields unless fields.nil?
632
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
633
+ execute_or_queue_command(command, &block)
634
+ end
635
+
636
+ # Get information about a service.
637
+ # @param [String] name
638
+ # The name of the service to retrieve. For Cloud Run (fully managed), replace `
639
+ # namespace_id` with the project ID or number.
640
+ # @param [String] fields
641
+ # Selector specifying which fields to include in a partial response.
642
+ # @param [String] quota_user
643
+ # Available to use for quota purposes for server-side applications. Can be any
644
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
645
+ # @param [Google::Apis::RequestOptions] options
646
+ # Request-specific options
647
+ #
648
+ # @yield [result, err] Result & error if block supplied
649
+ # @yieldparam result [Google::Apis::RunV1::Service] parsed result object
650
+ # @yieldparam err [StandardError] error object if request failed
651
+ #
652
+ # @return [Google::Apis::RunV1::Service]
653
+ #
654
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
655
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
656
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
657
+ def get_namespace_service(name, fields: nil, quota_user: nil, options: nil, &block)
658
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1/{+name}', options)
659
+ command.response_representation = Google::Apis::RunV1::Service::Representation
660
+ command.response_class = Google::Apis::RunV1::Service
661
+ command.params['name'] = name unless name.nil?
662
+ command.query['fields'] = fields unless fields.nil?
663
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
664
+ execute_or_queue_command(command, &block)
665
+ end
666
+
667
+ # List services.
668
+ # @param [String] parent
669
+ # The namespace from which the services should be listed. For Cloud Run (fully
670
+ # managed), replace `namespace_id` with the project ID or number.
671
+ # @param [String] continue
672
+ # Optional encoded string to continue paging.
673
+ # @param [String] field_selector
674
+ # Allows to filter resources based on a specific value for a field name. Send
675
+ # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
676
+ # used by Cloud Run.
677
+ # @param [Boolean] include_uninitialized
678
+ # Not currently used by Cloud Run.
679
+ # @param [String] label_selector
680
+ # Allows to filter resources based on a label. Supported operations are =, !=,
681
+ # exists, in, and notIn.
682
+ # @param [Fixnum] limit
683
+ # The maximum number of records that should be returned.
684
+ # @param [String] resource_version
685
+ # The baseline resource version from which the list or watch operation should
686
+ # start. Not currently used by Cloud Run.
687
+ # @param [Boolean] watch
688
+ # Flag that indicates that the client expects to watch this resource as well.
689
+ # Not currently used by Cloud Run.
690
+ # @param [String] fields
691
+ # Selector specifying which fields to include in a partial response.
692
+ # @param [String] quota_user
693
+ # Available to use for quota purposes for server-side applications. Can be any
694
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
695
+ # @param [Google::Apis::RequestOptions] options
696
+ # Request-specific options
697
+ #
698
+ # @yield [result, err] Result & error if block supplied
699
+ # @yieldparam result [Google::Apis::RunV1::ListServicesResponse] parsed result object
700
+ # @yieldparam err [StandardError] error object if request failed
701
+ #
702
+ # @return [Google::Apis::RunV1::ListServicesResponse]
703
+ #
704
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
705
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
706
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
707
+ 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)
708
+ command = make_simple_command(:get, 'apis/serving.knative.dev/v1/{+parent}/services', options)
709
+ command.response_representation = Google::Apis::RunV1::ListServicesResponse::Representation
710
+ command.response_class = Google::Apis::RunV1::ListServicesResponse
711
+ command.params['parent'] = parent unless parent.nil?
712
+ command.query['continue'] = continue unless continue.nil?
713
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
714
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
715
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
716
+ command.query['limit'] = limit unless limit.nil?
717
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
718
+ command.query['watch'] = watch unless watch.nil?
719
+ command.query['fields'] = fields unless fields.nil?
720
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
721
+ execute_or_queue_command(command, &block)
722
+ end
723
+
724
+ # Replace a service. Only the spec and metadata labels and annotations are
725
+ # modifiable. After the Update request, Cloud Run will work to make the 'status'
726
+ # match the requested 'spec'. May provide metadata.resourceVersion to enforce
727
+ # update from last read for optimistic concurrency control.
728
+ # @param [String] name
729
+ # The name of the service being replaced. For Cloud Run (fully managed), replace
730
+ # `namespace_id` with the project ID or number.
731
+ # @param [Google::Apis::RunV1::Service] service_object
732
+ # @param [String] fields
733
+ # Selector specifying which fields to include in a partial response.
734
+ # @param [String] quota_user
735
+ # Available to use for quota purposes for server-side applications. Can be any
736
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
737
+ # @param [Google::Apis::RequestOptions] options
738
+ # Request-specific options
739
+ #
740
+ # @yield [result, err] Result & error if block supplied
741
+ # @yieldparam result [Google::Apis::RunV1::Service] parsed result object
742
+ # @yieldparam err [StandardError] error object if request failed
743
+ #
744
+ # @return [Google::Apis::RunV1::Service]
745
+ #
746
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
749
+ def replace_namespace_service_service(name, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
750
+ command = make_simple_command(:put, 'apis/serving.knative.dev/v1/{+name}', options)
751
+ command.request_representation = Google::Apis::RunV1::Service::Representation
752
+ command.request_object = service_object
753
+ command.response_representation = Google::Apis::RunV1::Service::Representation
754
+ command.response_class = Google::Apis::RunV1::Service
755
+ command.params['name'] = name unless name.nil?
756
+ command.query['fields'] = fields unless fields.nil?
757
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
758
+ execute_or_queue_command(command, &block)
759
+ end
760
+
761
+ # List authorized domains.
762
+ # @param [String] parent
763
+ # Name of the parent Project resource. Example: `projects/myproject`.
764
+ # @param [Fixnum] page_size
765
+ # Maximum results to return per page.
766
+ # @param [String] page_token
767
+ # Continuation token for fetching the next page of results.
768
+ # @param [String] fields
769
+ # Selector specifying which fields to include in a partial response.
770
+ # @param [String] quota_user
771
+ # Available to use for quota purposes for server-side applications. Can be any
772
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
773
+ # @param [Google::Apis::RequestOptions] options
774
+ # Request-specific options
775
+ #
776
+ # @yield [result, err] Result & error if block supplied
777
+ # @yieldparam result [Google::Apis::RunV1::ListAuthorizedDomainsResponse] parsed result object
778
+ # @yieldparam err [StandardError] error object if request failed
779
+ #
780
+ # @return [Google::Apis::RunV1::ListAuthorizedDomainsResponse]
781
+ #
782
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
783
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
784
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
785
+ def list_project_authorizeddomains(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
786
+ command = make_simple_command(:get, 'v1/{+parent}/authorizeddomains', options)
787
+ command.response_representation = Google::Apis::RunV1::ListAuthorizedDomainsResponse::Representation
788
+ command.response_class = Google::Apis::RunV1::ListAuthorizedDomainsResponse
789
+ command.params['parent'] = parent unless parent.nil?
790
+ command.query['pageSize'] = page_size unless page_size.nil?
791
+ command.query['pageToken'] = page_token unless page_token.nil?
792
+ command.query['fields'] = fields unless fields.nil?
793
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
794
+ execute_or_queue_command(command, &block)
795
+ end
796
+
797
+ # Lists information about the supported locations for this service.
798
+ # @param [String] name
799
+ # The resource that owns the locations collection, if applicable.
800
+ # @param [String] filter
801
+ # The standard list filter.
802
+ # @param [Fixnum] page_size
803
+ # The standard list page size.
804
+ # @param [String] page_token
805
+ # The standard list page token.
806
+ # @param [String] fields
807
+ # Selector specifying which fields to include in a partial response.
808
+ # @param [String] quota_user
809
+ # Available to use for quota purposes for server-side applications. Can be any
810
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
811
+ # @param [Google::Apis::RequestOptions] options
812
+ # Request-specific options
813
+ #
814
+ # @yield [result, err] Result & error if block supplied
815
+ # @yieldparam result [Google::Apis::RunV1::ListLocationsResponse] parsed result object
816
+ # @yieldparam err [StandardError] error object if request failed
817
+ #
818
+ # @return [Google::Apis::RunV1::ListLocationsResponse]
819
+ #
820
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
821
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
822
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
823
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
824
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
825
+ command.response_representation = Google::Apis::RunV1::ListLocationsResponse::Representation
826
+ command.response_class = Google::Apis::RunV1::ListLocationsResponse
827
+ command.params['name'] = name unless name.nil?
828
+ command.query['filter'] = filter unless filter.nil?
829
+ command.query['pageSize'] = page_size unless page_size.nil?
830
+ command.query['pageToken'] = page_token unless page_token.nil?
831
+ command.query['fields'] = fields unless fields.nil?
832
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
833
+ execute_or_queue_command(command, &block)
834
+ end
835
+
836
+ # List authorized domains.
837
+ # @param [String] parent
838
+ # Name of the parent Project resource. Example: `projects/myproject`.
839
+ # @param [Fixnum] page_size
840
+ # Maximum results to return per page.
841
+ # @param [String] page_token
842
+ # Continuation token for fetching the next page of results.
843
+ # @param [String] fields
844
+ # Selector specifying which fields to include in a partial response.
845
+ # @param [String] quota_user
846
+ # Available to use for quota purposes for server-side applications. Can be any
847
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
848
+ # @param [Google::Apis::RequestOptions] options
849
+ # Request-specific options
850
+ #
851
+ # @yield [result, err] Result & error if block supplied
852
+ # @yieldparam result [Google::Apis::RunV1::ListAuthorizedDomainsResponse] parsed result object
853
+ # @yieldparam err [StandardError] error object if request failed
854
+ #
855
+ # @return [Google::Apis::RunV1::ListAuthorizedDomainsResponse]
856
+ #
857
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
858
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
859
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
860
+ def list_project_location_authorizeddomains(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
861
+ command = make_simple_command(:get, 'v1/{+parent}/authorizeddomains', options)
862
+ command.response_representation = Google::Apis::RunV1::ListAuthorizedDomainsResponse::Representation
863
+ command.response_class = Google::Apis::RunV1::ListAuthorizedDomainsResponse
864
+ command.params['parent'] = parent unless parent.nil?
865
+ command.query['pageSize'] = page_size unless page_size.nil?
866
+ command.query['pageToken'] = page_token unless page_token.nil?
867
+ command.query['fields'] = fields unless fields.nil?
868
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
869
+ execute_or_queue_command(command, &block)
870
+ end
871
+
872
+ # Get information about a configuration.
873
+ # @param [String] name
874
+ # The name of the configuration to retrieve. For Cloud Run (fully managed),
875
+ # replace `namespace_id` with the project ID or number.
876
+ # @param [String] fields
877
+ # Selector specifying which fields to include in a partial response.
878
+ # @param [String] quota_user
879
+ # Available to use for quota purposes for server-side applications. Can be any
880
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
881
+ # @param [Google::Apis::RequestOptions] options
882
+ # Request-specific options
883
+ #
884
+ # @yield [result, err] Result & error if block supplied
885
+ # @yieldparam result [Google::Apis::RunV1::Configuration] parsed result object
886
+ # @yieldparam err [StandardError] error object if request failed
887
+ #
888
+ # @return [Google::Apis::RunV1::Configuration]
889
+ #
890
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
891
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
892
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
893
+ def get_project_location_configuration(name, fields: nil, quota_user: nil, options: nil, &block)
894
+ command = make_simple_command(:get, 'v1/{+name}', options)
895
+ command.response_representation = Google::Apis::RunV1::Configuration::Representation
896
+ command.response_class = Google::Apis::RunV1::Configuration
897
+ command.params['name'] = name unless name.nil?
898
+ command.query['fields'] = fields unless fields.nil?
899
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
900
+ execute_or_queue_command(command, &block)
901
+ end
902
+
903
+ # List configurations.
904
+ # @param [String] parent
905
+ # The namespace from which the configurations should be listed. For Cloud Run (
906
+ # fully managed), replace `namespace_id` with the project ID or number.
907
+ # @param [String] continue
908
+ # Optional encoded string to continue paging.
909
+ # @param [String] field_selector
910
+ # Allows to filter resources based on a specific value for a field name. Send
911
+ # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
912
+ # used by Cloud Run.
913
+ # @param [Boolean] include_uninitialized
914
+ # Not currently used by Cloud Run.
915
+ # @param [String] label_selector
916
+ # Allows to filter resources based on a label. Supported operations are =, !=,
917
+ # exists, in, and notIn.
918
+ # @param [Fixnum] limit
919
+ # The maximum number of records that should be returned.
920
+ # @param [String] resource_version
921
+ # The baseline resource version from which the list or watch operation should
922
+ # start. Not currently used by Cloud Run.
923
+ # @param [Boolean] watch
924
+ # Flag that indicates that the client expects to watch this resource as well.
925
+ # Not currently used by Cloud Run.
926
+ # @param [String] fields
927
+ # Selector specifying which fields to include in a partial response.
928
+ # @param [String] quota_user
929
+ # Available to use for quota purposes for server-side applications. Can be any
930
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
931
+ # @param [Google::Apis::RequestOptions] options
932
+ # Request-specific options
933
+ #
934
+ # @yield [result, err] Result & error if block supplied
935
+ # @yieldparam result [Google::Apis::RunV1::ListConfigurationsResponse] parsed result object
936
+ # @yieldparam err [StandardError] error object if request failed
937
+ #
938
+ # @return [Google::Apis::RunV1::ListConfigurationsResponse]
939
+ #
940
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
941
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
942
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
943
+ def list_project_location_configurations(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
944
+ command = make_simple_command(:get, 'v1/{+parent}/configurations', options)
945
+ command.response_representation = Google::Apis::RunV1::ListConfigurationsResponse::Representation
946
+ command.response_class = Google::Apis::RunV1::ListConfigurationsResponse
947
+ command.params['parent'] = parent unless parent.nil?
948
+ command.query['continue'] = continue unless continue.nil?
949
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
950
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
951
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
952
+ command.query['limit'] = limit unless limit.nil?
953
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
954
+ command.query['watch'] = watch unless watch.nil?
955
+ command.query['fields'] = fields unless fields.nil?
956
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
957
+ execute_or_queue_command(command, &block)
958
+ end
959
+
960
+ # Create a new domain mapping.
961
+ # @param [String] parent
962
+ # The namespace in which the domain mapping should be created. For Cloud Run (
963
+ # fully managed), replace `namespace_id` with the project ID or number.
964
+ # @param [Google::Apis::RunV1::DomainMapping] domain_mapping_object
965
+ # @param [String] fields
966
+ # Selector specifying which fields to include in a partial response.
967
+ # @param [String] quota_user
968
+ # Available to use for quota purposes for server-side applications. Can be any
969
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
970
+ # @param [Google::Apis::RequestOptions] options
971
+ # Request-specific options
972
+ #
973
+ # @yield [result, err] Result & error if block supplied
974
+ # @yieldparam result [Google::Apis::RunV1::DomainMapping] parsed result object
975
+ # @yieldparam err [StandardError] error object if request failed
976
+ #
977
+ # @return [Google::Apis::RunV1::DomainMapping]
978
+ #
979
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
980
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
981
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
982
+ def create_project_location_domainmapping(parent, domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block)
983
+ command = make_simple_command(:post, 'v1/{+parent}/domainmappings', options)
984
+ command.request_representation = Google::Apis::RunV1::DomainMapping::Representation
985
+ command.request_object = domain_mapping_object
986
+ command.response_representation = Google::Apis::RunV1::DomainMapping::Representation
987
+ command.response_class = Google::Apis::RunV1::DomainMapping
988
+ command.params['parent'] = parent unless parent.nil?
989
+ command.query['fields'] = fields unless fields.nil?
990
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
991
+ execute_or_queue_command(command, &block)
992
+ end
993
+
994
+ # Delete a domain mapping.
995
+ # @param [String] name
996
+ # The name of the domain mapping to delete. For Cloud Run (fully managed),
997
+ # replace `namespace_id` with the project ID or number.
998
+ # @param [String] api_version
999
+ # Cloud Run currently ignores this parameter.
1000
+ # @param [String] kind
1001
+ # Cloud Run currently ignores this parameter.
1002
+ # @param [String] propagation_policy
1003
+ # Specifies the propagation policy of delete. Cloud Run currently ignores this
1004
+ # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1005
+ # workloads/controllers/garbage-collection/ for more information.
1006
+ # @param [String] fields
1007
+ # Selector specifying which fields to include in a partial response.
1008
+ # @param [String] quota_user
1009
+ # Available to use for quota purposes for server-side applications. Can be any
1010
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1011
+ # @param [Google::Apis::RequestOptions] options
1012
+ # Request-specific options
1013
+ #
1014
+ # @yield [result, err] Result & error if block supplied
1015
+ # @yieldparam result [Google::Apis::RunV1::Status] parsed result object
1016
+ # @yieldparam err [StandardError] error object if request failed
1017
+ #
1018
+ # @return [Google::Apis::RunV1::Status]
1019
+ #
1020
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1021
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1022
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1023
+ def delete_project_location_domainmapping(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
1024
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1025
+ command.response_representation = Google::Apis::RunV1::Status::Representation
1026
+ command.response_class = Google::Apis::RunV1::Status
1027
+ command.params['name'] = name unless name.nil?
1028
+ command.query['apiVersion'] = api_version unless api_version.nil?
1029
+ command.query['kind'] = kind unless kind.nil?
1030
+ command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1031
+ command.query['fields'] = fields unless fields.nil?
1032
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1033
+ execute_or_queue_command(command, &block)
1034
+ end
1035
+
1036
+ # Get information about a domain mapping.
1037
+ # @param [String] name
1038
+ # The name of the domain mapping to retrieve. For Cloud Run (fully managed),
1039
+ # replace `namespace_id` with the project ID or number.
1040
+ # @param [String] fields
1041
+ # Selector specifying which fields to include in a partial response.
1042
+ # @param [String] quota_user
1043
+ # Available to use for quota purposes for server-side applications. Can be any
1044
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1045
+ # @param [Google::Apis::RequestOptions] options
1046
+ # Request-specific options
1047
+ #
1048
+ # @yield [result, err] Result & error if block supplied
1049
+ # @yieldparam result [Google::Apis::RunV1::DomainMapping] parsed result object
1050
+ # @yieldparam err [StandardError] error object if request failed
1051
+ #
1052
+ # @return [Google::Apis::RunV1::DomainMapping]
1053
+ #
1054
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1055
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1056
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1057
+ def get_project_location_domainmapping(name, fields: nil, quota_user: nil, options: nil, &block)
1058
+ command = make_simple_command(:get, 'v1/{+name}', options)
1059
+ command.response_representation = Google::Apis::RunV1::DomainMapping::Representation
1060
+ command.response_class = Google::Apis::RunV1::DomainMapping
1061
+ command.params['name'] = name unless name.nil?
1062
+ command.query['fields'] = fields unless fields.nil?
1063
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1064
+ execute_or_queue_command(command, &block)
1065
+ end
1066
+
1067
+ # List domain mappings.
1068
+ # @param [String] parent
1069
+ # The namespace from which the domain mappings should be listed. For Cloud Run (
1070
+ # fully managed), replace `namespace_id` with the project ID or number.
1071
+ # @param [String] continue
1072
+ # Optional encoded string to continue paging.
1073
+ # @param [String] field_selector
1074
+ # Allows to filter resources based on a specific value for a field name. Send
1075
+ # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1076
+ # used by Cloud Run.
1077
+ # @param [Boolean] include_uninitialized
1078
+ # Not currently used by Cloud Run.
1079
+ # @param [String] label_selector
1080
+ # Allows to filter resources based on a label. Supported operations are =, !=,
1081
+ # exists, in, and notIn.
1082
+ # @param [Fixnum] limit
1083
+ # The maximum number of records that should be returned.
1084
+ # @param [String] resource_version
1085
+ # The baseline resource version from which the list or watch operation should
1086
+ # start. Not currently used by Cloud Run.
1087
+ # @param [Boolean] watch
1088
+ # Flag that indicates that the client expects to watch this resource as well.
1089
+ # Not currently used by Cloud Run.
1090
+ # @param [String] fields
1091
+ # Selector specifying which fields to include in a partial response.
1092
+ # @param [String] quota_user
1093
+ # Available to use for quota purposes for server-side applications. Can be any
1094
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1095
+ # @param [Google::Apis::RequestOptions] options
1096
+ # Request-specific options
1097
+ #
1098
+ # @yield [result, err] Result & error if block supplied
1099
+ # @yieldparam result [Google::Apis::RunV1::ListDomainMappingsResponse] parsed result object
1100
+ # @yieldparam err [StandardError] error object if request failed
1101
+ #
1102
+ # @return [Google::Apis::RunV1::ListDomainMappingsResponse]
1103
+ #
1104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1107
+ def list_project_location_domainmappings(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
1108
+ command = make_simple_command(:get, 'v1/{+parent}/domainmappings', options)
1109
+ command.response_representation = Google::Apis::RunV1::ListDomainMappingsResponse::Representation
1110
+ command.response_class = Google::Apis::RunV1::ListDomainMappingsResponse
1111
+ command.params['parent'] = parent unless parent.nil?
1112
+ command.query['continue'] = continue unless continue.nil?
1113
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
1114
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1115
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
1116
+ command.query['limit'] = limit unless limit.nil?
1117
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
1118
+ command.query['watch'] = watch unless watch.nil?
1119
+ command.query['fields'] = fields unless fields.nil?
1120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1121
+ execute_or_queue_command(command, &block)
1122
+ end
1123
+
1124
+ # Delete a revision.
1125
+ # @param [String] name
1126
+ # The name of the revision to delete. For Cloud Run (fully managed), replace `
1127
+ # namespace_id` with the project ID or number.
1128
+ # @param [String] api_version
1129
+ # Cloud Run currently ignores this parameter.
1130
+ # @param [String] kind
1131
+ # Cloud Run currently ignores this parameter.
1132
+ # @param [String] propagation_policy
1133
+ # Specifies the propagation policy of delete. Cloud Run currently ignores this
1134
+ # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1135
+ # workloads/controllers/garbage-collection/ for more information.
1136
+ # @param [String] fields
1137
+ # Selector specifying which fields to include in a partial response.
1138
+ # @param [String] quota_user
1139
+ # Available to use for quota purposes for server-side applications. Can be any
1140
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1141
+ # @param [Google::Apis::RequestOptions] options
1142
+ # Request-specific options
1143
+ #
1144
+ # @yield [result, err] Result & error if block supplied
1145
+ # @yieldparam result [Google::Apis::RunV1::Status] parsed result object
1146
+ # @yieldparam err [StandardError] error object if request failed
1147
+ #
1148
+ # @return [Google::Apis::RunV1::Status]
1149
+ #
1150
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1151
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1152
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1153
+ def delete_project_location_revision(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
1154
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1155
+ command.response_representation = Google::Apis::RunV1::Status::Representation
1156
+ command.response_class = Google::Apis::RunV1::Status
1157
+ command.params['name'] = name unless name.nil?
1158
+ command.query['apiVersion'] = api_version unless api_version.nil?
1159
+ command.query['kind'] = kind unless kind.nil?
1160
+ command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1161
+ command.query['fields'] = fields unless fields.nil?
1162
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1163
+ execute_or_queue_command(command, &block)
1164
+ end
1165
+
1166
+ # Get information about a revision.
1167
+ # @param [String] name
1168
+ # The name of the revision to retrieve. For Cloud Run (fully managed), replace `
1169
+ # namespace_id` with the project ID or number.
1170
+ # @param [String] fields
1171
+ # Selector specifying which fields to include in a partial response.
1172
+ # @param [String] quota_user
1173
+ # Available to use for quota purposes for server-side applications. Can be any
1174
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1175
+ # @param [Google::Apis::RequestOptions] options
1176
+ # Request-specific options
1177
+ #
1178
+ # @yield [result, err] Result & error if block supplied
1179
+ # @yieldparam result [Google::Apis::RunV1::Revision] parsed result object
1180
+ # @yieldparam err [StandardError] error object if request failed
1181
+ #
1182
+ # @return [Google::Apis::RunV1::Revision]
1183
+ #
1184
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1185
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1186
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1187
+ def get_project_location_revision(name, fields: nil, quota_user: nil, options: nil, &block)
1188
+ command = make_simple_command(:get, 'v1/{+name}', options)
1189
+ command.response_representation = Google::Apis::RunV1::Revision::Representation
1190
+ command.response_class = Google::Apis::RunV1::Revision
1191
+ command.params['name'] = name unless name.nil?
1192
+ command.query['fields'] = fields unless fields.nil?
1193
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1194
+ execute_or_queue_command(command, &block)
1195
+ end
1196
+
1197
+ # List revisions.
1198
+ # @param [String] parent
1199
+ # The namespace from which the revisions should be listed. For Cloud Run (fully
1200
+ # managed), replace `namespace_id` with the project ID or number.
1201
+ # @param [String] continue
1202
+ # Optional encoded string to continue paging.
1203
+ # @param [String] field_selector
1204
+ # Allows to filter resources based on a specific value for a field name. Send
1205
+ # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1206
+ # used by Cloud Run.
1207
+ # @param [Boolean] include_uninitialized
1208
+ # Not currently used by Cloud Run.
1209
+ # @param [String] label_selector
1210
+ # Allows to filter resources based on a label. Supported operations are =, !=,
1211
+ # exists, in, and notIn.
1212
+ # @param [Fixnum] limit
1213
+ # The maximum number of records that should be returned.
1214
+ # @param [String] resource_version
1215
+ # The baseline resource version from which the list or watch operation should
1216
+ # start. Not currently used by Cloud Run.
1217
+ # @param [Boolean] watch
1218
+ # Flag that indicates that the client expects to watch this resource as well.
1219
+ # Not currently used by Cloud Run.
1220
+ # @param [String] fields
1221
+ # Selector specifying which fields to include in a partial response.
1222
+ # @param [String] quota_user
1223
+ # Available to use for quota purposes for server-side applications. Can be any
1224
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1225
+ # @param [Google::Apis::RequestOptions] options
1226
+ # Request-specific options
1227
+ #
1228
+ # @yield [result, err] Result & error if block supplied
1229
+ # @yieldparam result [Google::Apis::RunV1::ListRevisionsResponse] parsed result object
1230
+ # @yieldparam err [StandardError] error object if request failed
1231
+ #
1232
+ # @return [Google::Apis::RunV1::ListRevisionsResponse]
1233
+ #
1234
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1235
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1236
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1237
+ def list_project_location_revisions(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
1238
+ command = make_simple_command(:get, 'v1/{+parent}/revisions', options)
1239
+ command.response_representation = Google::Apis::RunV1::ListRevisionsResponse::Representation
1240
+ command.response_class = Google::Apis::RunV1::ListRevisionsResponse
1241
+ command.params['parent'] = parent unless parent.nil?
1242
+ command.query['continue'] = continue unless continue.nil?
1243
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
1244
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1245
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
1246
+ command.query['limit'] = limit unless limit.nil?
1247
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
1248
+ command.query['watch'] = watch unless watch.nil?
1249
+ command.query['fields'] = fields unless fields.nil?
1250
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1251
+ execute_or_queue_command(command, &block)
1252
+ end
1253
+
1254
+ # Get information about a route.
1255
+ # @param [String] name
1256
+ # The name of the route to retrieve. For Cloud Run (fully managed), replace `
1257
+ # namespace_id` with the project ID or number.
1258
+ # @param [String] fields
1259
+ # Selector specifying which fields to include in a partial response.
1260
+ # @param [String] quota_user
1261
+ # Available to use for quota purposes for server-side applications. Can be any
1262
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1263
+ # @param [Google::Apis::RequestOptions] options
1264
+ # Request-specific options
1265
+ #
1266
+ # @yield [result, err] Result & error if block supplied
1267
+ # @yieldparam result [Google::Apis::RunV1::Route] parsed result object
1268
+ # @yieldparam err [StandardError] error object if request failed
1269
+ #
1270
+ # @return [Google::Apis::RunV1::Route]
1271
+ #
1272
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1273
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1274
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1275
+ def get_project_location_route(name, fields: nil, quota_user: nil, options: nil, &block)
1276
+ command = make_simple_command(:get, 'v1/{+name}', options)
1277
+ command.response_representation = Google::Apis::RunV1::Route::Representation
1278
+ command.response_class = Google::Apis::RunV1::Route
1279
+ command.params['name'] = name unless name.nil?
1280
+ command.query['fields'] = fields unless fields.nil?
1281
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1282
+ execute_or_queue_command(command, &block)
1283
+ end
1284
+
1285
+ # List routes.
1286
+ # @param [String] parent
1287
+ # The namespace from which the routes should be listed. For Cloud Run (fully
1288
+ # managed), replace `namespace_id` with the project ID or number.
1289
+ # @param [String] continue
1290
+ # Optional encoded string to continue paging.
1291
+ # @param [String] field_selector
1292
+ # Allows to filter resources based on a specific value for a field name. Send
1293
+ # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1294
+ # used by Cloud Run.
1295
+ # @param [Boolean] include_uninitialized
1296
+ # Not currently used by Cloud Run.
1297
+ # @param [String] label_selector
1298
+ # Allows to filter resources based on a label. Supported operations are =, !=,
1299
+ # exists, in, and notIn.
1300
+ # @param [Fixnum] limit
1301
+ # The maximum number of records that should be returned.
1302
+ # @param [String] resource_version
1303
+ # The baseline resource version from which the list or watch operation should
1304
+ # start. Not currently used by Cloud Run.
1305
+ # @param [Boolean] watch
1306
+ # Flag that indicates that the client expects to watch this resource as well.
1307
+ # Not currently used by Cloud Run.
1308
+ # @param [String] fields
1309
+ # Selector specifying which fields to include in a partial response.
1310
+ # @param [String] quota_user
1311
+ # Available to use for quota purposes for server-side applications. Can be any
1312
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1313
+ # @param [Google::Apis::RequestOptions] options
1314
+ # Request-specific options
1315
+ #
1316
+ # @yield [result, err] Result & error if block supplied
1317
+ # @yieldparam result [Google::Apis::RunV1::ListRoutesResponse] parsed result object
1318
+ # @yieldparam err [StandardError] error object if request failed
1319
+ #
1320
+ # @return [Google::Apis::RunV1::ListRoutesResponse]
1321
+ #
1322
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1323
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1324
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1325
+ def list_project_location_routes(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
1326
+ command = make_simple_command(:get, 'v1/{+parent}/routes', options)
1327
+ command.response_representation = Google::Apis::RunV1::ListRoutesResponse::Representation
1328
+ command.response_class = Google::Apis::RunV1::ListRoutesResponse
1329
+ command.params['parent'] = parent unless parent.nil?
1330
+ command.query['continue'] = continue unless continue.nil?
1331
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
1332
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1333
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
1334
+ command.query['limit'] = limit unless limit.nil?
1335
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
1336
+ command.query['watch'] = watch unless watch.nil?
1337
+ command.query['fields'] = fields unless fields.nil?
1338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1339
+ execute_or_queue_command(command, &block)
1340
+ end
1341
+
1342
+ # Create a service.
1343
+ # @param [String] parent
1344
+ # The namespace in which the service should be created. For Cloud Run (fully
1345
+ # managed), replace `namespace_id` with the project ID or number.
1346
+ # @param [Google::Apis::RunV1::Service] service_object
1347
+ # @param [String] fields
1348
+ # Selector specifying which fields to include in a partial response.
1349
+ # @param [String] quota_user
1350
+ # Available to use for quota purposes for server-side applications. Can be any
1351
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1352
+ # @param [Google::Apis::RequestOptions] options
1353
+ # Request-specific options
1354
+ #
1355
+ # @yield [result, err] Result & error if block supplied
1356
+ # @yieldparam result [Google::Apis::RunV1::Service] parsed result object
1357
+ # @yieldparam err [StandardError] error object if request failed
1358
+ #
1359
+ # @return [Google::Apis::RunV1::Service]
1360
+ #
1361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1364
+ def create_project_location_service(parent, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1365
+ command = make_simple_command(:post, 'v1/{+parent}/services', options)
1366
+ command.request_representation = Google::Apis::RunV1::Service::Representation
1367
+ command.request_object = service_object
1368
+ command.response_representation = Google::Apis::RunV1::Service::Representation
1369
+ command.response_class = Google::Apis::RunV1::Service
1370
+ command.params['parent'] = parent unless parent.nil?
1371
+ command.query['fields'] = fields unless fields.nil?
1372
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1373
+ execute_or_queue_command(command, &block)
1374
+ end
1375
+
1376
+ # Delete a service. This will cause the Service to stop serving traffic and will
1377
+ # delete the child entities like Routes, Configurations and Revisions.
1378
+ # @param [String] name
1379
+ # The name of the service to delete. For Cloud Run (fully managed), replace `
1380
+ # namespace_id` with the project ID or number.
1381
+ # @param [String] api_version
1382
+ # Cloud Run currently ignores this parameter.
1383
+ # @param [String] kind
1384
+ # Cloud Run currently ignores this parameter.
1385
+ # @param [String] propagation_policy
1386
+ # Specifies the propagation policy of delete. Cloud Run currently ignores this
1387
+ # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1388
+ # workloads/controllers/garbage-collection/ for more information.
1389
+ # @param [String] fields
1390
+ # Selector specifying which fields to include in a partial response.
1391
+ # @param [String] quota_user
1392
+ # Available to use for quota purposes for server-side applications. Can be any
1393
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1394
+ # @param [Google::Apis::RequestOptions] options
1395
+ # Request-specific options
1396
+ #
1397
+ # @yield [result, err] Result & error if block supplied
1398
+ # @yieldparam result [Google::Apis::RunV1::Status] parsed result object
1399
+ # @yieldparam err [StandardError] error object if request failed
1400
+ #
1401
+ # @return [Google::Apis::RunV1::Status]
1402
+ #
1403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1406
+ def delete_project_location_service(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
1407
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1408
+ command.response_representation = Google::Apis::RunV1::Status::Representation
1409
+ command.response_class = Google::Apis::RunV1::Status
1410
+ command.params['name'] = name unless name.nil?
1411
+ command.query['apiVersion'] = api_version unless api_version.nil?
1412
+ command.query['kind'] = kind unless kind.nil?
1413
+ command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1414
+ command.query['fields'] = fields unless fields.nil?
1415
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1416
+ execute_or_queue_command(command, &block)
1417
+ end
1418
+
1419
+ # Get information about a service.
1420
+ # @param [String] name
1421
+ # The name of the service to retrieve. For Cloud Run (fully managed), replace `
1422
+ # namespace_id` with the project ID or number.
1423
+ # @param [String] fields
1424
+ # Selector specifying which fields to include in a partial response.
1425
+ # @param [String] quota_user
1426
+ # Available to use for quota purposes for server-side applications. Can be any
1427
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1428
+ # @param [Google::Apis::RequestOptions] options
1429
+ # Request-specific options
1430
+ #
1431
+ # @yield [result, err] Result & error if block supplied
1432
+ # @yieldparam result [Google::Apis::RunV1::Service] parsed result object
1433
+ # @yieldparam err [StandardError] error object if request failed
1434
+ #
1435
+ # @return [Google::Apis::RunV1::Service]
1436
+ #
1437
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1438
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1439
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1440
+ def get_project_location_service(name, fields: nil, quota_user: nil, options: nil, &block)
1441
+ command = make_simple_command(:get, 'v1/{+name}', options)
1442
+ command.response_representation = Google::Apis::RunV1::Service::Representation
1443
+ command.response_class = Google::Apis::RunV1::Service
1444
+ command.params['name'] = name unless name.nil?
1445
+ command.query['fields'] = fields unless fields.nil?
1446
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1447
+ execute_or_queue_command(command, &block)
1448
+ end
1449
+
1450
+ # Get the IAM Access Control policy currently in effect for the given Cloud Run
1451
+ # service. This result does not include any inherited policies.
1452
+ # @param [String] resource
1453
+ # REQUIRED: The resource for which the policy is being requested. See the
1454
+ # operation documentation for the appropriate value for this field.
1455
+ # @param [Fixnum] options_requested_policy_version
1456
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
1457
+ # 3. Requests specifying an invalid value will be rejected. Requests for
1458
+ # policies with any conditional bindings must specify version 3. Policies
1459
+ # without any conditional bindings may specify any valid value or leave the
1460
+ # field unset. To learn which resources support conditions in their IAM policies,
1461
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1462
+ # resource-policies).
1463
+ # @param [String] fields
1464
+ # Selector specifying which fields to include in a partial response.
1465
+ # @param [String] quota_user
1466
+ # Available to use for quota purposes for server-side applications. Can be any
1467
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1468
+ # @param [Google::Apis::RequestOptions] options
1469
+ # Request-specific options
1470
+ #
1471
+ # @yield [result, err] Result & error if block supplied
1472
+ # @yieldparam result [Google::Apis::RunV1::Policy] parsed result object
1473
+ # @yieldparam err [StandardError] error object if request failed
1474
+ #
1475
+ # @return [Google::Apis::RunV1::Policy]
1476
+ #
1477
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1478
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1479
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1480
+ def get_project_location_service_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1481
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1482
+ command.response_representation = Google::Apis::RunV1::Policy::Representation
1483
+ command.response_class = Google::Apis::RunV1::Policy
1484
+ command.params['resource'] = resource unless resource.nil?
1485
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1486
+ command.query['fields'] = fields unless fields.nil?
1487
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1488
+ execute_or_queue_command(command, &block)
1489
+ end
1490
+
1491
+ # List services.
1492
+ # @param [String] parent
1493
+ # The namespace from which the services should be listed. For Cloud Run (fully
1494
+ # managed), replace `namespace_id` with the project ID or number.
1495
+ # @param [String] continue
1496
+ # Optional encoded string to continue paging.
1497
+ # @param [String] field_selector
1498
+ # Allows to filter resources based on a specific value for a field name. Send
1499
+ # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1500
+ # used by Cloud Run.
1501
+ # @param [Boolean] include_uninitialized
1502
+ # Not currently used by Cloud Run.
1503
+ # @param [String] label_selector
1504
+ # Allows to filter resources based on a label. Supported operations are =, !=,
1505
+ # exists, in, and notIn.
1506
+ # @param [Fixnum] limit
1507
+ # The maximum number of records that should be returned.
1508
+ # @param [String] resource_version
1509
+ # The baseline resource version from which the list or watch operation should
1510
+ # start. Not currently used by Cloud Run.
1511
+ # @param [Boolean] watch
1512
+ # Flag that indicates that the client expects to watch this resource as well.
1513
+ # Not currently used by Cloud Run.
1514
+ # @param [String] fields
1515
+ # Selector specifying which fields to include in a partial response.
1516
+ # @param [String] quota_user
1517
+ # Available to use for quota purposes for server-side applications. Can be any
1518
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1519
+ # @param [Google::Apis::RequestOptions] options
1520
+ # Request-specific options
1521
+ #
1522
+ # @yield [result, err] Result & error if block supplied
1523
+ # @yieldparam result [Google::Apis::RunV1::ListServicesResponse] parsed result object
1524
+ # @yieldparam err [StandardError] error object if request failed
1525
+ #
1526
+ # @return [Google::Apis::RunV1::ListServicesResponse]
1527
+ #
1528
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1529
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1530
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1531
+ def list_project_location_services(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
1532
+ command = make_simple_command(:get, 'v1/{+parent}/services', options)
1533
+ command.response_representation = Google::Apis::RunV1::ListServicesResponse::Representation
1534
+ command.response_class = Google::Apis::RunV1::ListServicesResponse
1535
+ command.params['parent'] = parent unless parent.nil?
1536
+ command.query['continue'] = continue unless continue.nil?
1537
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
1538
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1539
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
1540
+ command.query['limit'] = limit unless limit.nil?
1541
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
1542
+ command.query['watch'] = watch unless watch.nil?
1543
+ command.query['fields'] = fields unless fields.nil?
1544
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1545
+ execute_or_queue_command(command, &block)
1546
+ end
1547
+
1548
+ # Replace a service. Only the spec and metadata labels and annotations are
1549
+ # modifiable. After the Update request, Cloud Run will work to make the 'status'
1550
+ # match the requested 'spec'. May provide metadata.resourceVersion to enforce
1551
+ # update from last read for optimistic concurrency control.
1552
+ # @param [String] name
1553
+ # The name of the service being replaced. For Cloud Run (fully managed), replace
1554
+ # `namespace_id` with the project ID or number.
1555
+ # @param [Google::Apis::RunV1::Service] service_object
1556
+ # @param [String] fields
1557
+ # Selector specifying which fields to include in a partial response.
1558
+ # @param [String] quota_user
1559
+ # Available to use for quota purposes for server-side applications. Can be any
1560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1561
+ # @param [Google::Apis::RequestOptions] options
1562
+ # Request-specific options
1563
+ #
1564
+ # @yield [result, err] Result & error if block supplied
1565
+ # @yieldparam result [Google::Apis::RunV1::Service] parsed result object
1566
+ # @yieldparam err [StandardError] error object if request failed
1567
+ #
1568
+ # @return [Google::Apis::RunV1::Service]
1569
+ #
1570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1573
+ def replace_project_location_service_service(name, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1574
+ command = make_simple_command(:put, 'v1/{+name}', options)
1575
+ command.request_representation = Google::Apis::RunV1::Service::Representation
1576
+ command.request_object = service_object
1577
+ command.response_representation = Google::Apis::RunV1::Service::Representation
1578
+ command.response_class = Google::Apis::RunV1::Service
1579
+ command.params['name'] = name unless name.nil?
1580
+ command.query['fields'] = fields unless fields.nil?
1581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1582
+ execute_or_queue_command(command, &block)
1583
+ end
1584
+
1585
+ # Sets the IAM Access control policy for the specified Service. Overwrites any
1586
+ # existing policy.
1587
+ # @param [String] resource
1588
+ # REQUIRED: The resource for which the policy is being specified. See the
1589
+ # operation documentation for the appropriate value for this field.
1590
+ # @param [Google::Apis::RunV1::SetIamPolicyRequest] set_iam_policy_request_object
1591
+ # @param [String] fields
1592
+ # Selector specifying which fields to include in a partial response.
1593
+ # @param [String] quota_user
1594
+ # Available to use for quota purposes for server-side applications. Can be any
1595
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1596
+ # @param [Google::Apis::RequestOptions] options
1597
+ # Request-specific options
1598
+ #
1599
+ # @yield [result, err] Result & error if block supplied
1600
+ # @yieldparam result [Google::Apis::RunV1::Policy] parsed result object
1601
+ # @yieldparam err [StandardError] error object if request failed
1602
+ #
1603
+ # @return [Google::Apis::RunV1::Policy]
1604
+ #
1605
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1606
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1607
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1608
+ def set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1609
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1610
+ command.request_representation = Google::Apis::RunV1::SetIamPolicyRequest::Representation
1611
+ command.request_object = set_iam_policy_request_object
1612
+ command.response_representation = Google::Apis::RunV1::Policy::Representation
1613
+ command.response_class = Google::Apis::RunV1::Policy
1614
+ command.params['resource'] = resource unless resource.nil?
1615
+ command.query['fields'] = fields unless fields.nil?
1616
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1617
+ execute_or_queue_command(command, &block)
1618
+ end
1619
+
1620
+ # Returns permissions that a caller has on the specified Project. There are no
1621
+ # permissions required for making this API call.
1622
+ # @param [String] resource
1623
+ # REQUIRED: The resource for which the policy detail is being requested. See the
1624
+ # operation documentation for the appropriate value for this field.
1625
+ # @param [Google::Apis::RunV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1626
+ # @param [String] fields
1627
+ # Selector specifying which fields to include in a partial response.
1628
+ # @param [String] quota_user
1629
+ # Available to use for quota purposes for server-side applications. Can be any
1630
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1631
+ # @param [Google::Apis::RequestOptions] options
1632
+ # Request-specific options
1633
+ #
1634
+ # @yield [result, err] Result & error if block supplied
1635
+ # @yieldparam result [Google::Apis::RunV1::TestIamPermissionsResponse] parsed result object
1636
+ # @yieldparam err [StandardError] error object if request failed
1637
+ #
1638
+ # @return [Google::Apis::RunV1::TestIamPermissionsResponse]
1639
+ #
1640
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1641
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1642
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1643
+ def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1644
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1645
+ command.request_representation = Google::Apis::RunV1::TestIamPermissionsRequest::Representation
1646
+ command.request_object = test_iam_permissions_request_object
1647
+ command.response_representation = Google::Apis::RunV1::TestIamPermissionsResponse::Representation
1648
+ command.response_class = Google::Apis::RunV1::TestIamPermissionsResponse
1649
+ command.params['resource'] = resource unless resource.nil?
1650
+ command.query['fields'] = fields unless fields.nil?
1651
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1652
+ execute_or_queue_command(command, &block)
1653
+ end
1654
+
1655
+ protected
1656
+
1657
+ def apply_command_defaults(command)
1658
+ command.query['key'] = key unless key.nil?
1659
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1660
+ end
1661
+ end
1662
+ end
1663
+ end
1664
+ end