google-api-client 0.28.6 → 0.28.7

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