google-apis-run_v1alpha1 0.1.0

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