google-apis-run_v1alpha1 0.4.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,300 +50,6 @@ module Google
50
50
  @batch_path = 'batch'
51
51
  end
52
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
- # Rpc to get information about a configuration.
90
- # @param [String] name
91
- # The name of the configuration being retrieved. If needed, replace `
92
- # namespace_id` with the project ID.
93
- # @param [String] fields
94
- # Selector specifying which fields to include in a partial response.
95
- # @param [String] quota_user
96
- # Available to use for quota purposes for server-side applications. Can be any
97
- # arbitrary string assigned to a user, but should not exceed 40 characters.
98
- # @param [Google::Apis::RequestOptions] options
99
- # Request-specific options
100
- #
101
- # @yield [result, err] Result & error if block supplied
102
- # @yieldparam result [Google::Apis::RunV1alpha1::Configuration] parsed result object
103
- # @yieldparam err [StandardError] error object if request failed
104
- #
105
- # @return [Google::Apis::RunV1alpha1::Configuration]
106
- #
107
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
- # @raise [Google::Apis::AuthorizationError] Authorization is required
110
- def get_namespace_configuration(name, fields: nil, quota_user: nil, options: nil, &block)
111
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
112
- command.response_representation = Google::Apis::RunV1alpha1::Configuration::Representation
113
- command.response_class = Google::Apis::RunV1alpha1::Configuration
114
- command.params['name'] = name unless name.nil?
115
- command.query['fields'] = fields unless fields.nil?
116
- command.query['quotaUser'] = quota_user unless quota_user.nil?
117
- execute_or_queue_command(command, &block)
118
- end
119
-
120
- # Rpc to list configurations.
121
- # @param [String] parent
122
- # The project ID or project number from which the configurations should be
123
- # listed.
124
- # @param [String] continue
125
- # Optional encoded string to continue paging.
126
- # @param [String] field_selector
127
- # Allows to filter resources based on a specific value for a field name. Send
128
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
129
- # used by Cloud Run.
130
- # @param [Boolean] include_uninitialized
131
- # Not currently used by Cloud Run.
132
- # @param [String] label_selector
133
- # Allows to filter resources based on a label. Supported operations are =, !=,
134
- # exists, in, and notIn.
135
- # @param [Fixnum] limit
136
- # The maximum number of records that should be returned.
137
- # @param [String] resource_version
138
- # The baseline resource version from which the list or watch operation should
139
- # start. Not currently used by Cloud Run.
140
- # @param [Boolean] watch
141
- # Flag that indicates that the client expects to watch this resource as well.
142
- # Not currently used by Cloud Run.
143
- # @param [String] fields
144
- # Selector specifying which fields to include in a partial response.
145
- # @param [String] quota_user
146
- # Available to use for quota purposes for server-side applications. Can be any
147
- # arbitrary string assigned to a user, but should not exceed 40 characters.
148
- # @param [Google::Apis::RequestOptions] options
149
- # Request-specific options
150
- #
151
- # @yield [result, err] Result & error if block supplied
152
- # @yieldparam result [Google::Apis::RunV1alpha1::ListConfigurationsResponse] parsed result object
153
- # @yieldparam err [StandardError] error object if request failed
154
- #
155
- # @return [Google::Apis::RunV1alpha1::ListConfigurationsResponse]
156
- #
157
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
158
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
159
- # @raise [Google::Apis::AuthorizationError] Authorization is required
160
- def list_namespace_configurations(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
161
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/configurations', options)
162
- command.response_representation = Google::Apis::RunV1alpha1::ListConfigurationsResponse::Representation
163
- command.response_class = Google::Apis::RunV1alpha1::ListConfigurationsResponse
164
- command.params['parent'] = parent unless parent.nil?
165
- command.query['continue'] = continue unless continue.nil?
166
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
167
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
168
- command.query['labelSelector'] = label_selector unless label_selector.nil?
169
- command.query['limit'] = limit unless limit.nil?
170
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
171
- command.query['watch'] = watch unless watch.nil?
172
- command.query['fields'] = fields unless fields.nil?
173
- command.query['quotaUser'] = quota_user unless quota_user.nil?
174
- execute_or_queue_command(command, &block)
175
- end
176
-
177
- # Creates a new domain mapping.
178
- # @param [String] parent
179
- # The project ID or project number in which this domain mapping should be
180
- # created.
181
- # @param [Google::Apis::RunV1alpha1::DomainMapping] domain_mapping_object
182
- # @param [String] fields
183
- # Selector specifying which fields to include in a partial response.
184
- # @param [String] quota_user
185
- # Available to use for quota purposes for server-side applications. Can be any
186
- # arbitrary string assigned to a user, but should not exceed 40 characters.
187
- # @param [Google::Apis::RequestOptions] options
188
- # Request-specific options
189
- #
190
- # @yield [result, err] Result & error if block supplied
191
- # @yieldparam result [Google::Apis::RunV1alpha1::DomainMapping] parsed result object
192
- # @yieldparam err [StandardError] error object if request failed
193
- #
194
- # @return [Google::Apis::RunV1alpha1::DomainMapping]
195
- #
196
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
197
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
198
- # @raise [Google::Apis::AuthorizationError] Authorization is required
199
- def create_namespace_domainmapping(parent, domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block)
200
- command = make_simple_command(:post, 'apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings', options)
201
- command.request_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
202
- command.request_object = domain_mapping_object
203
- command.response_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
204
- command.response_class = Google::Apis::RunV1alpha1::DomainMapping
205
- command.params['parent'] = parent unless parent.nil?
206
- command.query['fields'] = fields unless fields.nil?
207
- command.query['quotaUser'] = quota_user unless quota_user.nil?
208
- execute_or_queue_command(command, &block)
209
- end
210
-
211
- # Rpc to delete a domain mapping.
212
- # @param [String] name
213
- # The name of the domain mapping being deleted. If needed, replace `namespace_id`
214
- # with the project ID.
215
- # @param [String] api_version
216
- # Cloud Run currently ignores this parameter.
217
- # @param [String] kind
218
- # Cloud Run currently ignores this parameter.
219
- # @param [Boolean] orphan_dependents
220
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
221
- # cascading behavior, so this must be false. This attribute is deprecated, and
222
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
223
- # kubernetes/issues/46659 for more info.
224
- # @param [String] propagation_policy
225
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
226
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
227
- # workloads/controllers/garbage-collection/ for more information.
228
- # @param [String] fields
229
- # Selector specifying which fields to include in a partial response.
230
- # @param [String] quota_user
231
- # Available to use for quota purposes for server-side applications. Can be any
232
- # arbitrary string assigned to a user, but should not exceed 40 characters.
233
- # @param [Google::Apis::RequestOptions] options
234
- # Request-specific options
235
- #
236
- # @yield [result, err] Result & error if block supplied
237
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
238
- # @yieldparam err [StandardError] error object if request failed
239
- #
240
- # @return [Google::Apis::RunV1alpha1::Empty]
241
- #
242
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
243
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
244
- # @raise [Google::Apis::AuthorizationError] Authorization is required
245
- def delete_namespace_domainmapping(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
246
- command = make_simple_command(:delete, 'apis/domains.cloudrun.com/v1alpha1/{+name}', options)
247
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
248
- command.response_class = Google::Apis::RunV1alpha1::Empty
249
- command.params['name'] = name unless name.nil?
250
- command.query['apiVersion'] = api_version unless api_version.nil?
251
- command.query['kind'] = kind unless kind.nil?
252
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
253
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
254
- command.query['fields'] = fields unless fields.nil?
255
- command.query['quotaUser'] = quota_user unless quota_user.nil?
256
- execute_or_queue_command(command, &block)
257
- end
258
-
259
- # Rpc to get information about a domain mapping.
260
- # @param [String] name
261
- # The name of the domain mapping being retrieved. If needed, replace `
262
- # namespace_id` with the project ID.
263
- # @param [String] fields
264
- # Selector specifying which fields to include in a partial response.
265
- # @param [String] quota_user
266
- # Available to use for quota purposes for server-side applications. Can be any
267
- # arbitrary string assigned to a user, but should not exceed 40 characters.
268
- # @param [Google::Apis::RequestOptions] options
269
- # Request-specific options
270
- #
271
- # @yield [result, err] Result & error if block supplied
272
- # @yieldparam result [Google::Apis::RunV1alpha1::DomainMapping] parsed result object
273
- # @yieldparam err [StandardError] error object if request failed
274
- #
275
- # @return [Google::Apis::RunV1alpha1::DomainMapping]
276
- #
277
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
278
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
279
- # @raise [Google::Apis::AuthorizationError] Authorization is required
280
- def get_namespace_domainmapping(name, fields: nil, quota_user: nil, options: nil, &block)
281
- command = make_simple_command(:get, 'apis/domains.cloudrun.com/v1alpha1/{+name}', options)
282
- command.response_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
283
- command.response_class = Google::Apis::RunV1alpha1::DomainMapping
284
- command.params['name'] = name unless name.nil?
285
- command.query['fields'] = fields unless fields.nil?
286
- command.query['quotaUser'] = quota_user unless quota_user.nil?
287
- execute_or_queue_command(command, &block)
288
- end
289
-
290
- # Rpc to list domain mappings.
291
- # @param [String] parent
292
- # The project ID or project number from which the domain mappings should be
293
- # listed.
294
- # @param [String] continue
295
- # Optional encoded string to continue paging.
296
- # @param [String] field_selector
297
- # Allows to filter resources based on a specific value for a field name. Send
298
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
299
- # used by Cloud Run.
300
- # @param [Boolean] include_uninitialized
301
- # Not currently used by Cloud Run.
302
- # @param [String] label_selector
303
- # Allows to filter resources based on a label. Supported operations are =, !=,
304
- # exists, in, and notIn.
305
- # @param [Fixnum] limit
306
- # The maximum number of records that should be returned.
307
- # @param [String] resource_version
308
- # The baseline resource version from which the list or watch operation should
309
- # start. Not currently used by Cloud Run.
310
- # @param [Boolean] watch
311
- # Flag that indicates that the client expects to watch this resource as well.
312
- # Not currently used by Cloud Run.
313
- # @param [String] fields
314
- # Selector specifying which fields to include in a partial response.
315
- # @param [String] quota_user
316
- # Available to use for quota purposes for server-side applications. Can be any
317
- # arbitrary string assigned to a user, but should not exceed 40 characters.
318
- # @param [Google::Apis::RequestOptions] options
319
- # Request-specific options
320
- #
321
- # @yield [result, err] Result & error if block supplied
322
- # @yieldparam result [Google::Apis::RunV1alpha1::ListDomainMappingsResponse] parsed result object
323
- # @yieldparam err [StandardError] error object if request failed
324
- #
325
- # @return [Google::Apis::RunV1alpha1::ListDomainMappingsResponse]
326
- #
327
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
328
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
329
- # @raise [Google::Apis::AuthorizationError] Authorization is required
330
- def list_namespace_domainmappings(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
331
- command = make_simple_command(:get, 'apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings', options)
332
- command.response_representation = Google::Apis::RunV1alpha1::ListDomainMappingsResponse::Representation
333
- command.response_class = Google::Apis::RunV1alpha1::ListDomainMappingsResponse
334
- command.params['parent'] = parent unless parent.nil?
335
- command.query['continue'] = continue unless continue.nil?
336
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
337
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
338
- command.query['labelSelector'] = label_selector unless label_selector.nil?
339
- command.query['limit'] = limit unless limit.nil?
340
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
341
- command.query['watch'] = watch unless watch.nil?
342
- command.query['fields'] = fields unless fields.nil?
343
- command.query['quotaUser'] = quota_user unless quota_user.nil?
344
- execute_or_queue_command(command, &block)
345
- end
346
-
347
53
  # Create a job.
348
54
  # @param [String] parent
349
55
  # Required. The namespace in which the job should be created. Replace `
@@ -507,1306 +213,6 @@ module Google
507
213
  command.query['quotaUser'] = quota_user unless quota_user.nil?
508
214
  execute_or_queue_command(command, &block)
509
215
  end
510
-
511
- # Rpc to delete a revision.
512
- # @param [String] name
513
- # The name of the revision being deleted. If needed, replace `namespace_id` with
514
- # the project ID.
515
- # @param [String] api_version
516
- # Cloud Run currently ignores this parameter.
517
- # @param [String] kind
518
- # Cloud Run currently ignores this parameter.
519
- # @param [Boolean] orphan_dependents
520
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
521
- # cascading behavior, so this must be false. This attribute is deprecated, and
522
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
523
- # kubernetes/issues/46659 for more info.
524
- # @param [String] propagation_policy
525
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
526
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
527
- # workloads/controllers/garbage-collection/ for more information.
528
- # @param [String] fields
529
- # Selector specifying which fields to include in a partial response.
530
- # @param [String] quota_user
531
- # Available to use for quota purposes for server-side applications. Can be any
532
- # arbitrary string assigned to a user, but should not exceed 40 characters.
533
- # @param [Google::Apis::RequestOptions] options
534
- # Request-specific options
535
- #
536
- # @yield [result, err] Result & error if block supplied
537
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
538
- # @yieldparam err [StandardError] error object if request failed
539
- #
540
- # @return [Google::Apis::RunV1alpha1::Empty]
541
- #
542
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
543
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
544
- # @raise [Google::Apis::AuthorizationError] Authorization is required
545
- def delete_namespace_revision(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
546
- command = make_simple_command(:delete, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
547
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
548
- command.response_class = Google::Apis::RunV1alpha1::Empty
549
- command.params['name'] = name unless name.nil?
550
- command.query['apiVersion'] = api_version unless api_version.nil?
551
- command.query['kind'] = kind unless kind.nil?
552
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
553
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
554
- command.query['fields'] = fields unless fields.nil?
555
- command.query['quotaUser'] = quota_user unless quota_user.nil?
556
- execute_or_queue_command(command, &block)
557
- end
558
-
559
- # Rpc to get information about a revision.
560
- # @param [String] name
561
- # The name of the revision being retrieved. If needed, replace `namespace_id`
562
- # with the project ID.
563
- # @param [String] fields
564
- # Selector specifying which fields to include in a partial response.
565
- # @param [String] quota_user
566
- # Available to use for quota purposes for server-side applications. Can be any
567
- # arbitrary string assigned to a user, but should not exceed 40 characters.
568
- # @param [Google::Apis::RequestOptions] options
569
- # Request-specific options
570
- #
571
- # @yield [result, err] Result & error if block supplied
572
- # @yieldparam result [Google::Apis::RunV1alpha1::Revision] parsed result object
573
- # @yieldparam err [StandardError] error object if request failed
574
- #
575
- # @return [Google::Apis::RunV1alpha1::Revision]
576
- #
577
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
578
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
579
- # @raise [Google::Apis::AuthorizationError] Authorization is required
580
- def get_namespace_revision(name, fields: nil, quota_user: nil, options: nil, &block)
581
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
582
- command.response_representation = Google::Apis::RunV1alpha1::Revision::Representation
583
- command.response_class = Google::Apis::RunV1alpha1::Revision
584
- command.params['name'] = name unless name.nil?
585
- command.query['fields'] = fields unless fields.nil?
586
- command.query['quotaUser'] = quota_user unless quota_user.nil?
587
- execute_or_queue_command(command, &block)
588
- end
589
-
590
- # Rpc to list revisions.
591
- # @param [String] parent
592
- # The project ID or project number from which the revisions should be listed.
593
- # @param [String] continue
594
- # Optional encoded string to continue paging.
595
- # @param [String] field_selector
596
- # Allows to filter resources based on a specific value for a field name. Send
597
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
598
- # used by Cloud Run.
599
- # @param [Boolean] include_uninitialized
600
- # Not currently used by Cloud Run.
601
- # @param [String] label_selector
602
- # Allows to filter resources based on a label. Supported operations are =, !=,
603
- # exists, in, and notIn.
604
- # @param [Fixnum] limit
605
- # The maximum number of records that should be returned.
606
- # @param [String] resource_version
607
- # The baseline resource version from which the list or watch operation should
608
- # start. Not currently used by Cloud Run.
609
- # @param [Boolean] watch
610
- # Flag that indicates that the client expects to watch this resource as well.
611
- # Not currently used by Cloud Run.
612
- # @param [String] fields
613
- # Selector specifying which fields to include in a partial response.
614
- # @param [String] quota_user
615
- # Available to use for quota purposes for server-side applications. Can be any
616
- # arbitrary string assigned to a user, but should not exceed 40 characters.
617
- # @param [Google::Apis::RequestOptions] options
618
- # Request-specific options
619
- #
620
- # @yield [result, err] Result & error if block supplied
621
- # @yieldparam result [Google::Apis::RunV1alpha1::ListRevisionsResponse] parsed result object
622
- # @yieldparam err [StandardError] error object if request failed
623
- #
624
- # @return [Google::Apis::RunV1alpha1::ListRevisionsResponse]
625
- #
626
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
627
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
628
- # @raise [Google::Apis::AuthorizationError] Authorization is required
629
- def list_namespace_revisions(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
630
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/revisions', options)
631
- command.response_representation = Google::Apis::RunV1alpha1::ListRevisionsResponse::Representation
632
- command.response_class = Google::Apis::RunV1alpha1::ListRevisionsResponse
633
- command.params['parent'] = parent unless parent.nil?
634
- command.query['continue'] = continue unless continue.nil?
635
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
636
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
637
- command.query['labelSelector'] = label_selector unless label_selector.nil?
638
- command.query['limit'] = limit unless limit.nil?
639
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
640
- command.query['watch'] = watch unless watch.nil?
641
- command.query['fields'] = fields unless fields.nil?
642
- command.query['quotaUser'] = quota_user unless quota_user.nil?
643
- execute_or_queue_command(command, &block)
644
- end
645
-
646
- # Rpc to get information about a route.
647
- # @param [String] name
648
- # The name of the route being retrieved. If needed, replace `namespace_id` with
649
- # the project ID.
650
- # @param [String] fields
651
- # Selector specifying which fields to include in a partial response.
652
- # @param [String] quota_user
653
- # Available to use for quota purposes for server-side applications. Can be any
654
- # arbitrary string assigned to a user, but should not exceed 40 characters.
655
- # @param [Google::Apis::RequestOptions] options
656
- # Request-specific options
657
- #
658
- # @yield [result, err] Result & error if block supplied
659
- # @yieldparam result [Google::Apis::RunV1alpha1::Route] parsed result object
660
- # @yieldparam err [StandardError] error object if request failed
661
- #
662
- # @return [Google::Apis::RunV1alpha1::Route]
663
- #
664
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
665
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
666
- # @raise [Google::Apis::AuthorizationError] Authorization is required
667
- def get_namespace_route(name, fields: nil, quota_user: nil, options: nil, &block)
668
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
669
- command.response_representation = Google::Apis::RunV1alpha1::Route::Representation
670
- command.response_class = Google::Apis::RunV1alpha1::Route
671
- command.params['name'] = name unless name.nil?
672
- command.query['fields'] = fields unless fields.nil?
673
- command.query['quotaUser'] = quota_user unless quota_user.nil?
674
- execute_or_queue_command(command, &block)
675
- end
676
-
677
- # Rpc to list routes.
678
- # @param [String] parent
679
- # The project ID or project number from which the routes should be listed.
680
- # @param [String] continue
681
- # Optional encoded string to continue paging.
682
- # @param [String] field_selector
683
- # Allows to filter resources based on a specific value for a field name. Send
684
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
685
- # used by Cloud Run.
686
- # @param [Boolean] include_uninitialized
687
- # Not currently used by Cloud Run.
688
- # @param [String] label_selector
689
- # Allows to filter resources based on a label. Supported operations are =, !=,
690
- # exists, in, and notIn.
691
- # @param [Fixnum] limit
692
- # The maximum number of records that should be returned.
693
- # @param [String] resource_version
694
- # The baseline resource version from which the list or watch operation should
695
- # start. Not currently used by Cloud Run.
696
- # @param [Boolean] watch
697
- # Flag that indicates that the client expects to watch this resource as well.
698
- # Not currently used by Cloud Run.
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::ListRoutesResponse] parsed result object
709
- # @yieldparam err [StandardError] error object if request failed
710
- #
711
- # @return [Google::Apis::RunV1alpha1::ListRoutesResponse]
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 list_namespace_routes(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
717
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/routes', options)
718
- command.response_representation = Google::Apis::RunV1alpha1::ListRoutesResponse::Representation
719
- command.response_class = Google::Apis::RunV1alpha1::ListRoutesResponse
720
- command.params['parent'] = parent unless parent.nil?
721
- command.query['continue'] = continue unless continue.nil?
722
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
723
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
724
- command.query['labelSelector'] = label_selector unless label_selector.nil?
725
- command.query['limit'] = limit unless limit.nil?
726
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
727
- command.query['watch'] = watch unless watch.nil?
728
- command.query['fields'] = fields unless fields.nil?
729
- command.query['quotaUser'] = quota_user unless quota_user.nil?
730
- execute_or_queue_command(command, &block)
731
- end
732
-
733
- # Rpc to create a service.
734
- # @param [String] parent
735
- # The project ID or project number in which this service should be created.
736
- # @param [Google::Apis::RunV1alpha1::Service] service_object
737
- # @param [String] fields
738
- # Selector specifying which fields to include in a partial response.
739
- # @param [String] quota_user
740
- # Available to use for quota purposes for server-side applications. Can be any
741
- # arbitrary string assigned to a user, but should not exceed 40 characters.
742
- # @param [Google::Apis::RequestOptions] options
743
- # Request-specific options
744
- #
745
- # @yield [result, err] Result & error if block supplied
746
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
747
- # @yieldparam err [StandardError] error object if request failed
748
- #
749
- # @return [Google::Apis::RunV1alpha1::Service]
750
- #
751
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
752
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
753
- # @raise [Google::Apis::AuthorizationError] Authorization is required
754
- def create_namespace_service(parent, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
755
- command = make_simple_command(:post, 'apis/serving.knative.dev/v1alpha1/{+parent}/services', options)
756
- command.request_representation = Google::Apis::RunV1alpha1::Service::Representation
757
- command.request_object = service_object
758
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
759
- command.response_class = Google::Apis::RunV1alpha1::Service
760
- command.params['parent'] = parent unless parent.nil?
761
- command.query['fields'] = fields unless fields.nil?
762
- command.query['quotaUser'] = quota_user unless quota_user.nil?
763
- execute_or_queue_command(command, &block)
764
- end
765
-
766
- # Rpc to delete a service. This will cause the Service to stop serving traffic
767
- # and will delete the child entities like Routes, Configurations and Revisions.
768
- # @param [String] name
769
- # The name of the service being deleted. If needed, replace `namespace_id` with
770
- # the project ID.
771
- # @param [String] api_version
772
- # Cloud Run currently ignores this parameter.
773
- # @param [String] kind
774
- # Cloud Run currently ignores this parameter.
775
- # @param [Boolean] orphan_dependents
776
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
777
- # cascading behavior, so this must be false. This attribute is deprecated, and
778
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
779
- # kubernetes/issues/46659 for more info.
780
- # @param [String] propagation_policy
781
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
782
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
783
- # workloads/controllers/garbage-collection/ for more information.
784
- # @param [String] fields
785
- # Selector specifying which fields to include in a partial response.
786
- # @param [String] quota_user
787
- # Available to use for quota purposes for server-side applications. Can be any
788
- # arbitrary string assigned to a user, but should not exceed 40 characters.
789
- # @param [Google::Apis::RequestOptions] options
790
- # Request-specific options
791
- #
792
- # @yield [result, err] Result & error if block supplied
793
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
794
- # @yieldparam err [StandardError] error object if request failed
795
- #
796
- # @return [Google::Apis::RunV1alpha1::Empty]
797
- #
798
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
799
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
800
- # @raise [Google::Apis::AuthorizationError] Authorization is required
801
- def delete_namespace_service(name, api_version: nil, kind: nil, orphan_dependents: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
802
- command = make_simple_command(:delete, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
803
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
804
- command.response_class = Google::Apis::RunV1alpha1::Empty
805
- command.params['name'] = name unless name.nil?
806
- command.query['apiVersion'] = api_version unless api_version.nil?
807
- command.query['kind'] = kind unless kind.nil?
808
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
809
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
810
- command.query['fields'] = fields unless fields.nil?
811
- command.query['quotaUser'] = quota_user unless quota_user.nil?
812
- execute_or_queue_command(command, &block)
813
- end
814
-
815
- # Rpc to get information about a service.
816
- # @param [String] name
817
- # The name of the service being retrieved. If needed, replace `namespace_id`
818
- # with the project ID.
819
- # @param [String] fields
820
- # Selector specifying which fields to include in a partial response.
821
- # @param [String] quota_user
822
- # Available to use for quota purposes for server-side applications. Can be any
823
- # arbitrary string assigned to a user, but should not exceed 40 characters.
824
- # @param [Google::Apis::RequestOptions] options
825
- # Request-specific options
826
- #
827
- # @yield [result, err] Result & error if block supplied
828
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
829
- # @yieldparam err [StandardError] error object if request failed
830
- #
831
- # @return [Google::Apis::RunV1alpha1::Service]
832
- #
833
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
834
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
835
- # @raise [Google::Apis::AuthorizationError] Authorization is required
836
- def get_namespace_service(name, fields: nil, quota_user: nil, options: nil, &block)
837
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
838
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
839
- command.response_class = Google::Apis::RunV1alpha1::Service
840
- command.params['name'] = name unless name.nil?
841
- command.query['fields'] = fields unless fields.nil?
842
- command.query['quotaUser'] = quota_user unless quota_user.nil?
843
- execute_or_queue_command(command, &block)
844
- end
845
-
846
- # Rpc to list services.
847
- # @param [String] parent
848
- # The project ID or project number from which the services should be listed.
849
- # @param [String] continue
850
- # Optional encoded string to continue paging.
851
- # @param [String] field_selector
852
- # Allows to filter resources based on a specific value for a field name. Send
853
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
854
- # used by Cloud Run.
855
- # @param [Boolean] include_uninitialized
856
- # Not currently used by Cloud Run.
857
- # @param [String] label_selector
858
- # Allows to filter resources based on a label. Supported operations are =, !=,
859
- # exists, in, and notIn.
860
- # @param [Fixnum] limit
861
- # The maximum number of records that should be returned.
862
- # @param [String] resource_version
863
- # The baseline resource version from which the list or watch operation should
864
- # start. Not currently used by Cloud Run.
865
- # @param [Boolean] watch
866
- # Flag that indicates that the client expects to watch this resource as well.
867
- # Not currently used by Cloud Run.
868
- # @param [String] fields
869
- # Selector specifying which fields to include in a partial response.
870
- # @param [String] quota_user
871
- # Available to use for quota purposes for server-side applications. Can be any
872
- # arbitrary string assigned to a user, but should not exceed 40 characters.
873
- # @param [Google::Apis::RequestOptions] options
874
- # Request-specific options
875
- #
876
- # @yield [result, err] Result & error if block supplied
877
- # @yieldparam result [Google::Apis::RunV1alpha1::ListServicesResponse] parsed result object
878
- # @yieldparam err [StandardError] error object if request failed
879
- #
880
- # @return [Google::Apis::RunV1alpha1::ListServicesResponse]
881
- #
882
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
883
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
884
- # @raise [Google::Apis::AuthorizationError] Authorization is required
885
- def list_namespace_services(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
886
- command = make_simple_command(:get, 'apis/serving.knative.dev/v1alpha1/{+parent}/services', options)
887
- command.response_representation = Google::Apis::RunV1alpha1::ListServicesResponse::Representation
888
- command.response_class = Google::Apis::RunV1alpha1::ListServicesResponse
889
- command.params['parent'] = parent unless parent.nil?
890
- command.query['continue'] = continue unless continue.nil?
891
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
892
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
893
- command.query['labelSelector'] = label_selector unless label_selector.nil?
894
- command.query['limit'] = limit unless limit.nil?
895
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
896
- command.query['watch'] = watch unless watch.nil?
897
- command.query['fields'] = fields unless fields.nil?
898
- command.query['quotaUser'] = quota_user unless quota_user.nil?
899
- execute_or_queue_command(command, &block)
900
- end
901
-
902
- # Rpc to replace a service. Only the spec and metadata labels and annotations
903
- # are modifiable. After the Update request, Cloud Run will work to make the '
904
- # status' match the requested 'spec'. May provide metadata.resourceVersion to
905
- # enforce update from last read for optimistic concurrency control.
906
- # @param [String] name
907
- # The name of the service being replaced. If needed, replace `namespace_id` with
908
- # the project ID.
909
- # @param [Google::Apis::RunV1alpha1::Service] service_object
910
- # @param [String] fields
911
- # Selector specifying which fields to include in a partial response.
912
- # @param [String] quota_user
913
- # Available to use for quota purposes for server-side applications. Can be any
914
- # arbitrary string assigned to a user, but should not exceed 40 characters.
915
- # @param [Google::Apis::RequestOptions] options
916
- # Request-specific options
917
- #
918
- # @yield [result, err] Result & error if block supplied
919
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
920
- # @yieldparam err [StandardError] error object if request failed
921
- #
922
- # @return [Google::Apis::RunV1alpha1::Service]
923
- #
924
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
925
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
926
- # @raise [Google::Apis::AuthorizationError] Authorization is required
927
- def replace_namespace_service_service(name, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
928
- command = make_simple_command(:put, 'apis/serving.knative.dev/v1alpha1/{+name}', options)
929
- command.request_representation = Google::Apis::RunV1alpha1::Service::Representation
930
- command.request_object = service_object
931
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
932
- command.response_class = Google::Apis::RunV1alpha1::Service
933
- command.params['name'] = name unless name.nil?
934
- command.query['fields'] = fields unless fields.nil?
935
- command.query['quotaUser'] = quota_user unless quota_user.nil?
936
- execute_or_queue_command(command, &block)
937
- end
938
-
939
- # Lists information about the supported locations for this service.
940
- # @param [String] name
941
- # The resource that owns the locations collection, if applicable.
942
- # @param [String] filter
943
- # The standard list filter.
944
- # @param [Fixnum] page_size
945
- # The standard list page size.
946
- # @param [String] page_token
947
- # The standard list page token.
948
- # @param [String] fields
949
- # Selector specifying which fields to include in a partial response.
950
- # @param [String] quota_user
951
- # Available to use for quota purposes for server-side applications. Can be any
952
- # arbitrary string assigned to a user, but should not exceed 40 characters.
953
- # @param [Google::Apis::RequestOptions] options
954
- # Request-specific options
955
- #
956
- # @yield [result, err] Result & error if block supplied
957
- # @yieldparam result [Google::Apis::RunV1alpha1::ListLocationsResponse] parsed result object
958
- # @yieldparam err [StandardError] error object if request failed
959
- #
960
- # @return [Google::Apis::RunV1alpha1::ListLocationsResponse]
961
- #
962
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
963
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
964
- # @raise [Google::Apis::AuthorizationError] Authorization is required
965
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
966
- command = make_simple_command(:get, 'v1alpha1/{+name}/locations', options)
967
- command.response_representation = Google::Apis::RunV1alpha1::ListLocationsResponse::Representation
968
- command.response_class = Google::Apis::RunV1alpha1::ListLocationsResponse
969
- command.params['name'] = name unless name.nil?
970
- command.query['filter'] = filter unless filter.nil?
971
- command.query['pageSize'] = page_size unless page_size.nil?
972
- command.query['pageToken'] = page_token unless page_token.nil?
973
- command.query['fields'] = fields unless fields.nil?
974
- command.query['quotaUser'] = quota_user unless quota_user.nil?
975
- execute_or_queue_command(command, &block)
976
- end
977
-
978
- # RPC to list authorized domains.
979
- # @param [String] parent
980
- # Name of the parent Application resource. Example: `apps/myapp`.
981
- # @param [Fixnum] page_size
982
- # Maximum results to return per page.
983
- # @param [String] page_token
984
- # Continuation token for fetching the next page of results.
985
- # @param [String] fields
986
- # Selector specifying which fields to include in a partial response.
987
- # @param [String] quota_user
988
- # Available to use for quota purposes for server-side applications. Can be any
989
- # arbitrary string assigned to a user, but should not exceed 40 characters.
990
- # @param [Google::Apis::RequestOptions] options
991
- # Request-specific options
992
- #
993
- # @yield [result, err] Result & error if block supplied
994
- # @yieldparam result [Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse] parsed result object
995
- # @yieldparam err [StandardError] error object if request failed
996
- #
997
- # @return [Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse]
998
- #
999
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1000
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1001
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1002
- def list_project_location_authorizeddomains(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1003
- command = make_simple_command(:get, 'v1alpha1/{+parent}/authorizeddomains', options)
1004
- command.response_representation = Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse::Representation
1005
- command.response_class = Google::Apis::RunV1alpha1::ListAuthorizedDomainsResponse
1006
- command.params['parent'] = parent unless parent.nil?
1007
- command.query['pageSize'] = page_size unless page_size.nil?
1008
- command.query['pageToken'] = page_token unless page_token.nil?
1009
- command.query['fields'] = fields unless fields.nil?
1010
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1011
- execute_or_queue_command(command, &block)
1012
- end
1013
-
1014
- # Rpc to get information about a configuration.
1015
- # @param [String] name
1016
- # The name of the configuration being retrieved. If needed, replace `
1017
- # namespace_id` with the project ID.
1018
- # @param [String] fields
1019
- # Selector specifying which fields to include in a partial response.
1020
- # @param [String] quota_user
1021
- # Available to use for quota purposes for server-side applications. Can be any
1022
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1023
- # @param [Google::Apis::RequestOptions] options
1024
- # Request-specific options
1025
- #
1026
- # @yield [result, err] Result & error if block supplied
1027
- # @yieldparam result [Google::Apis::RunV1alpha1::Configuration] parsed result object
1028
- # @yieldparam err [StandardError] error object if request failed
1029
- #
1030
- # @return [Google::Apis::RunV1alpha1::Configuration]
1031
- #
1032
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1033
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1034
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1035
- def get_project_location_configuration(name, fields: nil, quota_user: nil, options: nil, &block)
1036
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1037
- command.response_representation = Google::Apis::RunV1alpha1::Configuration::Representation
1038
- command.response_class = Google::Apis::RunV1alpha1::Configuration
1039
- command.params['name'] = name unless name.nil?
1040
- command.query['fields'] = fields unless fields.nil?
1041
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1042
- execute_or_queue_command(command, &block)
1043
- end
1044
-
1045
- # Rpc to list configurations.
1046
- # @param [String] parent
1047
- # The project ID or project number from which the configurations should be
1048
- # listed.
1049
- # @param [String] continue
1050
- # Optional encoded string to continue paging.
1051
- # @param [String] field_selector
1052
- # Allows to filter resources based on a specific value for a field name. Send
1053
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1054
- # used by Cloud Run.
1055
- # @param [Boolean] include_uninitialized
1056
- # Not currently used by Cloud Run.
1057
- # @param [String] label_selector
1058
- # Allows to filter resources based on a label. Supported operations are =, !=,
1059
- # exists, in, and notIn.
1060
- # @param [Fixnum] limit
1061
- # The maximum number of records that should be returned.
1062
- # @param [String] resource_version
1063
- # The baseline resource version from which the list or watch operation should
1064
- # start. Not currently used by Cloud Run.
1065
- # @param [Boolean] watch
1066
- # Flag that indicates that the client expects to watch this resource as well.
1067
- # Not currently used by Cloud Run.
1068
- # @param [String] fields
1069
- # Selector specifying which fields to include in a partial response.
1070
- # @param [String] quota_user
1071
- # Available to use for quota purposes for server-side applications. Can be any
1072
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1073
- # @param [Google::Apis::RequestOptions] options
1074
- # Request-specific options
1075
- #
1076
- # @yield [result, err] Result & error if block supplied
1077
- # @yieldparam result [Google::Apis::RunV1alpha1::ListConfigurationsResponse] parsed result object
1078
- # @yieldparam err [StandardError] error object if request failed
1079
- #
1080
- # @return [Google::Apis::RunV1alpha1::ListConfigurationsResponse]
1081
- #
1082
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1083
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1084
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1085
- 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)
1086
- command = make_simple_command(:get, 'v1alpha1/{+parent}/configurations', options)
1087
- command.response_representation = Google::Apis::RunV1alpha1::ListConfigurationsResponse::Representation
1088
- command.response_class = Google::Apis::RunV1alpha1::ListConfigurationsResponse
1089
- command.params['parent'] = parent unless parent.nil?
1090
- command.query['continue'] = continue unless continue.nil?
1091
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1092
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1093
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1094
- command.query['limit'] = limit unless limit.nil?
1095
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1096
- command.query['watch'] = watch unless watch.nil?
1097
- command.query['fields'] = fields unless fields.nil?
1098
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1099
- execute_or_queue_command(command, &block)
1100
- end
1101
-
1102
- # Creates a new domain mapping.
1103
- # @param [String] parent
1104
- # The project ID or project number in which this domain mapping should be
1105
- # created.
1106
- # @param [Google::Apis::RunV1alpha1::DomainMapping] domain_mapping_object
1107
- # @param [String] fields
1108
- # Selector specifying which fields to include in a partial response.
1109
- # @param [String] quota_user
1110
- # Available to use for quota purposes for server-side applications. Can be any
1111
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1112
- # @param [Google::Apis::RequestOptions] options
1113
- # Request-specific options
1114
- #
1115
- # @yield [result, err] Result & error if block supplied
1116
- # @yieldparam result [Google::Apis::RunV1alpha1::DomainMapping] parsed result object
1117
- # @yieldparam err [StandardError] error object if request failed
1118
- #
1119
- # @return [Google::Apis::RunV1alpha1::DomainMapping]
1120
- #
1121
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1122
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1123
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1124
- def create_project_location_domainmapping(parent, domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1125
- command = make_simple_command(:post, 'v1alpha1/{+parent}/domainmappings', options)
1126
- command.request_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
1127
- command.request_object = domain_mapping_object
1128
- command.response_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
1129
- command.response_class = Google::Apis::RunV1alpha1::DomainMapping
1130
- command.params['parent'] = parent unless parent.nil?
1131
- command.query['fields'] = fields unless fields.nil?
1132
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1133
- execute_or_queue_command(command, &block)
1134
- end
1135
-
1136
- # Rpc to delete a domain mapping.
1137
- # @param [String] name
1138
- # The name of the domain mapping being deleted. If needed, replace `namespace_id`
1139
- # with the project ID.
1140
- # @param [String] api_version
1141
- # Cloud Run currently ignores this parameter.
1142
- # @param [String] kind
1143
- # Cloud Run currently ignores this parameter.
1144
- # @param [Boolean] orphan_dependents
1145
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
1146
- # cascading behavior, so this must be false. This attribute is deprecated, and
1147
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
1148
- # kubernetes/issues/46659 for more info.
1149
- # @param [String] propagation_policy
1150
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
1151
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1152
- # workloads/controllers/garbage-collection/ for more information.
1153
- # @param [String] fields
1154
- # Selector specifying which fields to include in a partial response.
1155
- # @param [String] quota_user
1156
- # Available to use for quota purposes for server-side applications. Can be any
1157
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1158
- # @param [Google::Apis::RequestOptions] options
1159
- # Request-specific options
1160
- #
1161
- # @yield [result, err] Result & error if block supplied
1162
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
1163
- # @yieldparam err [StandardError] error object if request failed
1164
- #
1165
- # @return [Google::Apis::RunV1alpha1::Empty]
1166
- #
1167
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1168
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1169
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1170
- 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)
1171
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
1172
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
1173
- command.response_class = Google::Apis::RunV1alpha1::Empty
1174
- command.params['name'] = name unless name.nil?
1175
- command.query['apiVersion'] = api_version unless api_version.nil?
1176
- command.query['kind'] = kind unless kind.nil?
1177
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
1178
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1179
- command.query['fields'] = fields unless fields.nil?
1180
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1181
- execute_or_queue_command(command, &block)
1182
- end
1183
-
1184
- # Rpc to get information about a domain mapping.
1185
- # @param [String] name
1186
- # The name of the domain mapping being retrieved. If needed, replace `
1187
- # namespace_id` with the project ID.
1188
- # @param [String] fields
1189
- # Selector specifying which fields to include in a partial response.
1190
- # @param [String] quota_user
1191
- # Available to use for quota purposes for server-side applications. Can be any
1192
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1193
- # @param [Google::Apis::RequestOptions] options
1194
- # Request-specific options
1195
- #
1196
- # @yield [result, err] Result & error if block supplied
1197
- # @yieldparam result [Google::Apis::RunV1alpha1::DomainMapping] parsed result object
1198
- # @yieldparam err [StandardError] error object if request failed
1199
- #
1200
- # @return [Google::Apis::RunV1alpha1::DomainMapping]
1201
- #
1202
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1203
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1204
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1205
- def get_project_location_domainmapping(name, fields: nil, quota_user: nil, options: nil, &block)
1206
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1207
- command.response_representation = Google::Apis::RunV1alpha1::DomainMapping::Representation
1208
- command.response_class = Google::Apis::RunV1alpha1::DomainMapping
1209
- command.params['name'] = name unless name.nil?
1210
- command.query['fields'] = fields unless fields.nil?
1211
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1212
- execute_or_queue_command(command, &block)
1213
- end
1214
-
1215
- # Rpc to list domain mappings.
1216
- # @param [String] parent
1217
- # The project ID or project number from which the domain mappings should be
1218
- # listed.
1219
- # @param [String] continue
1220
- # Optional encoded string to continue paging.
1221
- # @param [String] field_selector
1222
- # Allows to filter resources based on a specific value for a field name. Send
1223
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1224
- # used by Cloud Run.
1225
- # @param [Boolean] include_uninitialized
1226
- # Not currently used by Cloud Run.
1227
- # @param [String] label_selector
1228
- # Allows to filter resources based on a label. Supported operations are =, !=,
1229
- # exists, in, and notIn.
1230
- # @param [Fixnum] limit
1231
- # The maximum number of records that should be returned.
1232
- # @param [String] resource_version
1233
- # The baseline resource version from which the list or watch operation should
1234
- # start. Not currently used by Cloud Run.
1235
- # @param [Boolean] watch
1236
- # Flag that indicates that the client expects to watch this resource as well.
1237
- # Not currently used by Cloud Run.
1238
- # @param [String] fields
1239
- # Selector specifying which fields to include in a partial response.
1240
- # @param [String] quota_user
1241
- # Available to use for quota purposes for server-side applications. Can be any
1242
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1243
- # @param [Google::Apis::RequestOptions] options
1244
- # Request-specific options
1245
- #
1246
- # @yield [result, err] Result & error if block supplied
1247
- # @yieldparam result [Google::Apis::RunV1alpha1::ListDomainMappingsResponse] parsed result object
1248
- # @yieldparam err [StandardError] error object if request failed
1249
- #
1250
- # @return [Google::Apis::RunV1alpha1::ListDomainMappingsResponse]
1251
- #
1252
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1253
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1254
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1255
- 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)
1256
- command = make_simple_command(:get, 'v1alpha1/{+parent}/domainmappings', options)
1257
- command.response_representation = Google::Apis::RunV1alpha1::ListDomainMappingsResponse::Representation
1258
- command.response_class = Google::Apis::RunV1alpha1::ListDomainMappingsResponse
1259
- command.params['parent'] = parent unless parent.nil?
1260
- command.query['continue'] = continue unless continue.nil?
1261
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1262
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1263
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1264
- command.query['limit'] = limit unless limit.nil?
1265
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1266
- command.query['watch'] = watch unless watch.nil?
1267
- command.query['fields'] = fields unless fields.nil?
1268
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1269
- execute_or_queue_command(command, &block)
1270
- end
1271
-
1272
- # Rpc to delete a revision.
1273
- # @param [String] name
1274
- # The name of the revision being deleted. If needed, replace `namespace_id` with
1275
- # the project ID.
1276
- # @param [String] api_version
1277
- # Cloud Run currently ignores this parameter.
1278
- # @param [String] kind
1279
- # Cloud Run currently ignores this parameter.
1280
- # @param [Boolean] orphan_dependents
1281
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
1282
- # cascading behavior, so this must be false. This attribute is deprecated, and
1283
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
1284
- # kubernetes/issues/46659 for more info.
1285
- # @param [String] propagation_policy
1286
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
1287
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1288
- # workloads/controllers/garbage-collection/ for more information.
1289
- # @param [String] fields
1290
- # Selector specifying which fields to include in a partial response.
1291
- # @param [String] quota_user
1292
- # Available to use for quota purposes for server-side applications. Can be any
1293
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1294
- # @param [Google::Apis::RequestOptions] options
1295
- # Request-specific options
1296
- #
1297
- # @yield [result, err] Result & error if block supplied
1298
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
1299
- # @yieldparam err [StandardError] error object if request failed
1300
- #
1301
- # @return [Google::Apis::RunV1alpha1::Empty]
1302
- #
1303
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1304
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1305
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1306
- 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)
1307
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
1308
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
1309
- command.response_class = Google::Apis::RunV1alpha1::Empty
1310
- command.params['name'] = name unless name.nil?
1311
- command.query['apiVersion'] = api_version unless api_version.nil?
1312
- command.query['kind'] = kind unless kind.nil?
1313
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
1314
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1315
- command.query['fields'] = fields unless fields.nil?
1316
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1317
- execute_or_queue_command(command, &block)
1318
- end
1319
-
1320
- # Rpc to get information about a revision.
1321
- # @param [String] name
1322
- # The name of the revision being retrieved. If needed, replace `namespace_id`
1323
- # with the project ID.
1324
- # @param [String] fields
1325
- # Selector specifying which fields to include in a partial response.
1326
- # @param [String] quota_user
1327
- # Available to use for quota purposes for server-side applications. Can be any
1328
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1329
- # @param [Google::Apis::RequestOptions] options
1330
- # Request-specific options
1331
- #
1332
- # @yield [result, err] Result & error if block supplied
1333
- # @yieldparam result [Google::Apis::RunV1alpha1::Revision] parsed result object
1334
- # @yieldparam err [StandardError] error object if request failed
1335
- #
1336
- # @return [Google::Apis::RunV1alpha1::Revision]
1337
- #
1338
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1339
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1340
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1341
- def get_project_location_revision(name, fields: nil, quota_user: nil, options: nil, &block)
1342
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1343
- command.response_representation = Google::Apis::RunV1alpha1::Revision::Representation
1344
- command.response_class = Google::Apis::RunV1alpha1::Revision
1345
- command.params['name'] = name unless name.nil?
1346
- command.query['fields'] = fields unless fields.nil?
1347
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1348
- execute_or_queue_command(command, &block)
1349
- end
1350
-
1351
- # Rpc to list revisions.
1352
- # @param [String] parent
1353
- # The project ID or project number from which the revisions should be listed.
1354
- # @param [String] continue
1355
- # Optional encoded string to continue paging.
1356
- # @param [String] field_selector
1357
- # Allows to filter resources based on a specific value for a field name. Send
1358
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1359
- # used by Cloud Run.
1360
- # @param [Boolean] include_uninitialized
1361
- # Not currently used by Cloud Run.
1362
- # @param [String] label_selector
1363
- # Allows to filter resources based on a label. Supported operations are =, !=,
1364
- # exists, in, and notIn.
1365
- # @param [Fixnum] limit
1366
- # The maximum number of records that should be returned.
1367
- # @param [String] resource_version
1368
- # The baseline resource version from which the list or watch operation should
1369
- # start. Not currently used by Cloud Run.
1370
- # @param [Boolean] watch
1371
- # Flag that indicates that the client expects to watch this resource as well.
1372
- # Not currently used by Cloud Run.
1373
- # @param [String] fields
1374
- # Selector specifying which fields to include in a partial response.
1375
- # @param [String] quota_user
1376
- # Available to use for quota purposes for server-side applications. Can be any
1377
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1378
- # @param [Google::Apis::RequestOptions] options
1379
- # Request-specific options
1380
- #
1381
- # @yield [result, err] Result & error if block supplied
1382
- # @yieldparam result [Google::Apis::RunV1alpha1::ListRevisionsResponse] parsed result object
1383
- # @yieldparam err [StandardError] error object if request failed
1384
- #
1385
- # @return [Google::Apis::RunV1alpha1::ListRevisionsResponse]
1386
- #
1387
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1388
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1389
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1390
- 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)
1391
- command = make_simple_command(:get, 'v1alpha1/{+parent}/revisions', options)
1392
- command.response_representation = Google::Apis::RunV1alpha1::ListRevisionsResponse::Representation
1393
- command.response_class = Google::Apis::RunV1alpha1::ListRevisionsResponse
1394
- command.params['parent'] = parent unless parent.nil?
1395
- command.query['continue'] = continue unless continue.nil?
1396
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1397
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1398
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1399
- command.query['limit'] = limit unless limit.nil?
1400
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1401
- command.query['watch'] = watch unless watch.nil?
1402
- command.query['fields'] = fields unless fields.nil?
1403
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1404
- execute_or_queue_command(command, &block)
1405
- end
1406
-
1407
- # Rpc to get information about a route.
1408
- # @param [String] name
1409
- # The name of the route being retrieved. If needed, replace `namespace_id` with
1410
- # the project ID.
1411
- # @param [String] fields
1412
- # Selector specifying which fields to include in a partial response.
1413
- # @param [String] quota_user
1414
- # Available to use for quota purposes for server-side applications. Can be any
1415
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1416
- # @param [Google::Apis::RequestOptions] options
1417
- # Request-specific options
1418
- #
1419
- # @yield [result, err] Result & error if block supplied
1420
- # @yieldparam result [Google::Apis::RunV1alpha1::Route] parsed result object
1421
- # @yieldparam err [StandardError] error object if request failed
1422
- #
1423
- # @return [Google::Apis::RunV1alpha1::Route]
1424
- #
1425
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1426
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1427
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1428
- def get_project_location_route(name, fields: nil, quota_user: nil, options: nil, &block)
1429
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1430
- command.response_representation = Google::Apis::RunV1alpha1::Route::Representation
1431
- command.response_class = Google::Apis::RunV1alpha1::Route
1432
- command.params['name'] = name unless name.nil?
1433
- command.query['fields'] = fields unless fields.nil?
1434
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1435
- execute_or_queue_command(command, &block)
1436
- end
1437
-
1438
- # Rpc to list routes.
1439
- # @param [String] parent
1440
- # The project ID or project number from which the routes should be listed.
1441
- # @param [String] continue
1442
- # Optional encoded string to continue paging.
1443
- # @param [String] field_selector
1444
- # Allows to filter resources based on a specific value for a field name. Send
1445
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1446
- # used by Cloud Run.
1447
- # @param [Boolean] include_uninitialized
1448
- # Not currently used by Cloud Run.
1449
- # @param [String] label_selector
1450
- # Allows to filter resources based on a label. Supported operations are =, !=,
1451
- # exists, in, and notIn.
1452
- # @param [Fixnum] limit
1453
- # The maximum number of records that should be returned.
1454
- # @param [String] resource_version
1455
- # The baseline resource version from which the list or watch operation should
1456
- # start. Not currently used by Cloud Run.
1457
- # @param [Boolean] watch
1458
- # Flag that indicates that the client expects to watch this resource as well.
1459
- # Not currently used by Cloud Run.
1460
- # @param [String] fields
1461
- # Selector specifying which fields to include in a partial response.
1462
- # @param [String] quota_user
1463
- # Available to use for quota purposes for server-side applications. Can be any
1464
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1465
- # @param [Google::Apis::RequestOptions] options
1466
- # Request-specific options
1467
- #
1468
- # @yield [result, err] Result & error if block supplied
1469
- # @yieldparam result [Google::Apis::RunV1alpha1::ListRoutesResponse] parsed result object
1470
- # @yieldparam err [StandardError] error object if request failed
1471
- #
1472
- # @return [Google::Apis::RunV1alpha1::ListRoutesResponse]
1473
- #
1474
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1475
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1476
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1477
- 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)
1478
- command = make_simple_command(:get, 'v1alpha1/{+parent}/routes', options)
1479
- command.response_representation = Google::Apis::RunV1alpha1::ListRoutesResponse::Representation
1480
- command.response_class = Google::Apis::RunV1alpha1::ListRoutesResponse
1481
- command.params['parent'] = parent unless parent.nil?
1482
- command.query['continue'] = continue unless continue.nil?
1483
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1484
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1485
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1486
- command.query['limit'] = limit unless limit.nil?
1487
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1488
- command.query['watch'] = watch unless watch.nil?
1489
- command.query['fields'] = fields unless fields.nil?
1490
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1491
- execute_or_queue_command(command, &block)
1492
- end
1493
-
1494
- # Rpc to create a service.
1495
- # @param [String] parent
1496
- # The project ID or project number in which this service should be created.
1497
- # @param [Google::Apis::RunV1alpha1::Service] service_object
1498
- # @param [String] fields
1499
- # Selector specifying which fields to include in a partial response.
1500
- # @param [String] quota_user
1501
- # Available to use for quota purposes for server-side applications. Can be any
1502
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1503
- # @param [Google::Apis::RequestOptions] options
1504
- # Request-specific options
1505
- #
1506
- # @yield [result, err] Result & error if block supplied
1507
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
1508
- # @yieldparam err [StandardError] error object if request failed
1509
- #
1510
- # @return [Google::Apis::RunV1alpha1::Service]
1511
- #
1512
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1513
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1514
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1515
- def create_project_location_service(parent, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1516
- command = make_simple_command(:post, 'v1alpha1/{+parent}/services', options)
1517
- command.request_representation = Google::Apis::RunV1alpha1::Service::Representation
1518
- command.request_object = service_object
1519
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
1520
- command.response_class = Google::Apis::RunV1alpha1::Service
1521
- command.params['parent'] = parent unless parent.nil?
1522
- command.query['fields'] = fields unless fields.nil?
1523
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1524
- execute_or_queue_command(command, &block)
1525
- end
1526
-
1527
- # Rpc to delete a service. This will cause the Service to stop serving traffic
1528
- # and will delete the child entities like Routes, Configurations and Revisions.
1529
- # @param [String] name
1530
- # The name of the service being deleted. If needed, replace `namespace_id` with
1531
- # the project ID.
1532
- # @param [String] api_version
1533
- # Cloud Run currently ignores this parameter.
1534
- # @param [String] kind
1535
- # Cloud Run currently ignores this parameter.
1536
- # @param [Boolean] orphan_dependents
1537
- # Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports
1538
- # cascading behavior, so this must be false. This attribute is deprecated, and
1539
- # is now replaced with PropagationPolicy See https://github.com/kubernetes/
1540
- # kubernetes/issues/46659 for more info.
1541
- # @param [String] propagation_policy
1542
- # Specifies the propagation policy of delete. Cloud Run currently ignores this
1543
- # setting, and deletes in the background. Please see kubernetes.io/docs/concepts/
1544
- # workloads/controllers/garbage-collection/ for more information.
1545
- # @param [String] fields
1546
- # Selector specifying which fields to include in a partial response.
1547
- # @param [String] quota_user
1548
- # Available to use for quota purposes for server-side applications. Can be any
1549
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1550
- # @param [Google::Apis::RequestOptions] options
1551
- # Request-specific options
1552
- #
1553
- # @yield [result, err] Result & error if block supplied
1554
- # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
1555
- # @yieldparam err [StandardError] error object if request failed
1556
- #
1557
- # @return [Google::Apis::RunV1alpha1::Empty]
1558
- #
1559
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1560
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1561
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1562
- 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)
1563
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
1564
- command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
1565
- command.response_class = Google::Apis::RunV1alpha1::Empty
1566
- command.params['name'] = name unless name.nil?
1567
- command.query['apiVersion'] = api_version unless api_version.nil?
1568
- command.query['kind'] = kind unless kind.nil?
1569
- command.query['orphanDependents'] = orphan_dependents unless orphan_dependents.nil?
1570
- command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1571
- command.query['fields'] = fields unless fields.nil?
1572
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1573
- execute_or_queue_command(command, &block)
1574
- end
1575
-
1576
- # Rpc to get information about a service.
1577
- # @param [String] name
1578
- # The name of the service being retrieved. If needed, replace `namespace_id`
1579
- # with the project ID.
1580
- # @param [String] fields
1581
- # Selector specifying which fields to include in a partial response.
1582
- # @param [String] quota_user
1583
- # Available to use for quota purposes for server-side applications. Can be any
1584
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1585
- # @param [Google::Apis::RequestOptions] options
1586
- # Request-specific options
1587
- #
1588
- # @yield [result, err] Result & error if block supplied
1589
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
1590
- # @yieldparam err [StandardError] error object if request failed
1591
- #
1592
- # @return [Google::Apis::RunV1alpha1::Service]
1593
- #
1594
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1595
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1596
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1597
- def get_project_location_service(name, fields: nil, quota_user: nil, options: nil, &block)
1598
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1599
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
1600
- command.response_class = Google::Apis::RunV1alpha1::Service
1601
- command.params['name'] = name unless name.nil?
1602
- command.query['fields'] = fields unless fields.nil?
1603
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1604
- execute_or_queue_command(command, &block)
1605
- end
1606
-
1607
- # Get the IAM Access Control policy currently in effect for the given Cloud Run
1608
- # service. This result does not include any inherited policies.
1609
- # @param [String] resource
1610
- # REQUIRED: The resource for which the policy is being requested. See the
1611
- # operation documentation for the appropriate value for this field.
1612
- # @param [Fixnum] options_requested_policy_version
1613
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
1614
- # 3. Requests specifying an invalid value will be rejected. Requests for
1615
- # policies with any conditional bindings must specify version 3. Policies
1616
- # without any conditional bindings may specify any valid value or leave the
1617
- # field unset. To learn which resources support conditions in their IAM policies,
1618
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1619
- # resource-policies).
1620
- # @param [String] fields
1621
- # Selector specifying which fields to include in a partial response.
1622
- # @param [String] quota_user
1623
- # Available to use for quota purposes for server-side applications. Can be any
1624
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1625
- # @param [Google::Apis::RequestOptions] options
1626
- # Request-specific options
1627
- #
1628
- # @yield [result, err] Result & error if block supplied
1629
- # @yieldparam result [Google::Apis::RunV1alpha1::Policy] parsed result object
1630
- # @yieldparam err [StandardError] error object if request failed
1631
- #
1632
- # @return [Google::Apis::RunV1alpha1::Policy]
1633
- #
1634
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1635
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1636
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1637
- def get_project_location_service_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1638
- command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
1639
- command.response_representation = Google::Apis::RunV1alpha1::Policy::Representation
1640
- command.response_class = Google::Apis::RunV1alpha1::Policy
1641
- command.params['resource'] = resource unless resource.nil?
1642
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1643
- command.query['fields'] = fields unless fields.nil?
1644
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1645
- execute_or_queue_command(command, &block)
1646
- end
1647
-
1648
- # Rpc to list services.
1649
- # @param [String] parent
1650
- # The project ID or project number from which the services should be listed.
1651
- # @param [String] continue
1652
- # Optional encoded string to continue paging.
1653
- # @param [String] field_selector
1654
- # Allows to filter resources based on a specific value for a field name. Send
1655
- # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
1656
- # used by Cloud Run.
1657
- # @param [Boolean] include_uninitialized
1658
- # Not currently used by Cloud Run.
1659
- # @param [String] label_selector
1660
- # Allows to filter resources based on a label. Supported operations are =, !=,
1661
- # exists, in, and notIn.
1662
- # @param [Fixnum] limit
1663
- # The maximum number of records that should be returned.
1664
- # @param [String] resource_version
1665
- # The baseline resource version from which the list or watch operation should
1666
- # start. Not currently used by Cloud Run.
1667
- # @param [Boolean] watch
1668
- # Flag that indicates that the client expects to watch this resource as well.
1669
- # Not currently used by Cloud Run.
1670
- # @param [String] fields
1671
- # Selector specifying which fields to include in a partial response.
1672
- # @param [String] quota_user
1673
- # Available to use for quota purposes for server-side applications. Can be any
1674
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1675
- # @param [Google::Apis::RequestOptions] options
1676
- # Request-specific options
1677
- #
1678
- # @yield [result, err] Result & error if block supplied
1679
- # @yieldparam result [Google::Apis::RunV1alpha1::ListServicesResponse] parsed result object
1680
- # @yieldparam err [StandardError] error object if request failed
1681
- #
1682
- # @return [Google::Apis::RunV1alpha1::ListServicesResponse]
1683
- #
1684
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1685
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1686
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1687
- 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)
1688
- command = make_simple_command(:get, 'v1alpha1/{+parent}/services', options)
1689
- command.response_representation = Google::Apis::RunV1alpha1::ListServicesResponse::Representation
1690
- command.response_class = Google::Apis::RunV1alpha1::ListServicesResponse
1691
- command.params['parent'] = parent unless parent.nil?
1692
- command.query['continue'] = continue unless continue.nil?
1693
- command.query['fieldSelector'] = field_selector unless field_selector.nil?
1694
- command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1695
- command.query['labelSelector'] = label_selector unless label_selector.nil?
1696
- command.query['limit'] = limit unless limit.nil?
1697
- command.query['resourceVersion'] = resource_version unless resource_version.nil?
1698
- command.query['watch'] = watch unless watch.nil?
1699
- command.query['fields'] = fields unless fields.nil?
1700
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1701
- execute_or_queue_command(command, &block)
1702
- end
1703
-
1704
- # Rpc to replace a service. Only the spec and metadata labels and annotations
1705
- # are modifiable. After the Update request, Cloud Run will work to make the '
1706
- # status' match the requested 'spec'. May provide metadata.resourceVersion to
1707
- # enforce update from last read for optimistic concurrency control.
1708
- # @param [String] name
1709
- # The name of the service being replaced. If needed, replace `namespace_id` with
1710
- # the project ID.
1711
- # @param [Google::Apis::RunV1alpha1::Service] service_object
1712
- # @param [String] fields
1713
- # Selector specifying which fields to include in a partial response.
1714
- # @param [String] quota_user
1715
- # Available to use for quota purposes for server-side applications. Can be any
1716
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1717
- # @param [Google::Apis::RequestOptions] options
1718
- # Request-specific options
1719
- #
1720
- # @yield [result, err] Result & error if block supplied
1721
- # @yieldparam result [Google::Apis::RunV1alpha1::Service] parsed result object
1722
- # @yieldparam err [StandardError] error object if request failed
1723
- #
1724
- # @return [Google::Apis::RunV1alpha1::Service]
1725
- #
1726
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1727
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1728
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1729
- def replace_project_location_service_service(name, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1730
- command = make_simple_command(:put, 'v1alpha1/{+name}', options)
1731
- command.request_representation = Google::Apis::RunV1alpha1::Service::Representation
1732
- command.request_object = service_object
1733
- command.response_representation = Google::Apis::RunV1alpha1::Service::Representation
1734
- command.response_class = Google::Apis::RunV1alpha1::Service
1735
- command.params['name'] = name unless name.nil?
1736
- command.query['fields'] = fields unless fields.nil?
1737
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1738
- execute_or_queue_command(command, &block)
1739
- end
1740
-
1741
- # Sets the IAM Access control policy for the specified Service. Overwrites any
1742
- # existing policy.
1743
- # @param [String] resource
1744
- # REQUIRED: The resource for which the policy is being specified. See the
1745
- # operation documentation for the appropriate value for this field.
1746
- # @param [Google::Apis::RunV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
1747
- # @param [String] fields
1748
- # Selector specifying which fields to include in a partial response.
1749
- # @param [String] quota_user
1750
- # Available to use for quota purposes for server-side applications. Can be any
1751
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1752
- # @param [Google::Apis::RequestOptions] options
1753
- # Request-specific options
1754
- #
1755
- # @yield [result, err] Result & error if block supplied
1756
- # @yieldparam result [Google::Apis::RunV1alpha1::Policy] parsed result object
1757
- # @yieldparam err [StandardError] error object if request failed
1758
- #
1759
- # @return [Google::Apis::RunV1alpha1::Policy]
1760
- #
1761
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1762
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1763
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1764
- def set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1765
- command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
1766
- command.request_representation = Google::Apis::RunV1alpha1::SetIamPolicyRequest::Representation
1767
- command.request_object = set_iam_policy_request_object
1768
- command.response_representation = Google::Apis::RunV1alpha1::Policy::Representation
1769
- command.response_class = Google::Apis::RunV1alpha1::Policy
1770
- command.params['resource'] = resource unless resource.nil?
1771
- command.query['fields'] = fields unless fields.nil?
1772
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1773
- execute_or_queue_command(command, &block)
1774
- end
1775
-
1776
- # Returns permissions that a caller has on the specified Project. There are no
1777
- # permissions required for making this API call.
1778
- # @param [String] resource
1779
- # REQUIRED: The resource for which the policy detail is being requested. See the
1780
- # operation documentation for the appropriate value for this field.
1781
- # @param [Google::Apis::RunV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
1782
- # @param [String] fields
1783
- # Selector specifying which fields to include in a partial response.
1784
- # @param [String] quota_user
1785
- # Available to use for quota purposes for server-side applications. Can be any
1786
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1787
- # @param [Google::Apis::RequestOptions] options
1788
- # Request-specific options
1789
- #
1790
- # @yield [result, err] Result & error if block supplied
1791
- # @yieldparam result [Google::Apis::RunV1alpha1::TestIamPermissionsResponse] parsed result object
1792
- # @yieldparam err [StandardError] error object if request failed
1793
- #
1794
- # @return [Google::Apis::RunV1alpha1::TestIamPermissionsResponse]
1795
- #
1796
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1797
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1798
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1799
- def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1800
- command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
1801
- command.request_representation = Google::Apis::RunV1alpha1::TestIamPermissionsRequest::Representation
1802
- command.request_object = test_iam_permissions_request_object
1803
- command.response_representation = Google::Apis::RunV1alpha1::TestIamPermissionsResponse::Representation
1804
- command.response_class = Google::Apis::RunV1alpha1::TestIamPermissionsResponse
1805
- command.params['resource'] = resource unless resource.nil?
1806
- command.query['fields'] = fields unless fields.nil?
1807
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1808
- execute_or_queue_command(command, &block)
1809
- end
1810
216
 
1811
217
  protected
1812
218