google-apis-run_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module RunV1beta1
18
+ # Version of the google-apis-run_v1beta1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20200814"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,392 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module RunV1beta1
24
+
25
+ class CustomResourceColumnDefinition
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class CustomResourceDefinition
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CustomResourceDefinitionNames
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CustomResourceDefinitionSpec
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CustomResourceDefinitionVersion
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class CustomResourceSubresourceScale
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class CustomResourceSubresourceStatus
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class CustomResourceSubresources
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class CustomResourceValidation
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ExternalDocumentation
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Json
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class JsonSchemaProps
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class JsonSchemaPropsOrArray
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class JsonSchemaPropsOrBool
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class JsonSchemaPropsOrStringArray
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListCustomResourceDefinitionsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListMeta
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ObjectMeta
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class OwnerReference
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class CustomResourceColumnDefinition
140
+ # @private
141
+ class Representation < Google::Apis::Core::JsonRepresentation
142
+ property :description, as: 'description'
143
+ property :format, as: 'format'
144
+ property :json_path, as: 'jsonPath'
145
+ property :name, as: 'name'
146
+ property :priority, as: 'priority'
147
+ property :type, as: 'type'
148
+ end
149
+ end
150
+
151
+ class CustomResourceDefinition
152
+ # @private
153
+ class Representation < Google::Apis::Core::JsonRepresentation
154
+ property :api_version, as: 'apiVersion'
155
+ property :kind, as: 'kind'
156
+ property :metadata, as: 'metadata', class: Google::Apis::RunV1beta1::ObjectMeta, decorator: Google::Apis::RunV1beta1::ObjectMeta::Representation
157
+
158
+ property :spec, as: 'spec', class: Google::Apis::RunV1beta1::CustomResourceDefinitionSpec, decorator: Google::Apis::RunV1beta1::CustomResourceDefinitionSpec::Representation
159
+
160
+ end
161
+ end
162
+
163
+ class CustomResourceDefinitionNames
164
+ # @private
165
+ class Representation < Google::Apis::Core::JsonRepresentation
166
+ collection :categories, as: 'categories'
167
+ property :kind, as: 'kind'
168
+ property :list_kind, as: 'listKind'
169
+ property :plural, as: 'plural'
170
+ collection :short_names, as: 'shortNames'
171
+ property :singular, as: 'singular'
172
+ end
173
+ end
174
+
175
+ class CustomResourceDefinitionSpec
176
+ # @private
177
+ class Representation < Google::Apis::Core::JsonRepresentation
178
+ collection :additional_printer_columns, as: 'additionalPrinterColumns', class: Google::Apis::RunV1beta1::CustomResourceColumnDefinition, decorator: Google::Apis::RunV1beta1::CustomResourceColumnDefinition::Representation
179
+
180
+ property :group, as: 'group'
181
+ property :names, as: 'names', class: Google::Apis::RunV1beta1::CustomResourceDefinitionNames, decorator: Google::Apis::RunV1beta1::CustomResourceDefinitionNames::Representation
182
+
183
+ property :scope, as: 'scope'
184
+ property :subresources, as: 'subresources', class: Google::Apis::RunV1beta1::CustomResourceSubresources, decorator: Google::Apis::RunV1beta1::CustomResourceSubresources::Representation
185
+
186
+ property :validation, as: 'validation', class: Google::Apis::RunV1beta1::CustomResourceValidation, decorator: Google::Apis::RunV1beta1::CustomResourceValidation::Representation
187
+
188
+ property :version, as: 'version'
189
+ collection :versions, as: 'versions', class: Google::Apis::RunV1beta1::CustomResourceDefinitionVersion, decorator: Google::Apis::RunV1beta1::CustomResourceDefinitionVersion::Representation
190
+
191
+ end
192
+ end
193
+
194
+ class CustomResourceDefinitionVersion
195
+ # @private
196
+ class Representation < Google::Apis::Core::JsonRepresentation
197
+ property :name, as: 'name'
198
+ property :served, as: 'served'
199
+ property :storage, as: 'storage'
200
+ end
201
+ end
202
+
203
+ class CustomResourceSubresourceScale
204
+ # @private
205
+ class Representation < Google::Apis::Core::JsonRepresentation
206
+ property :label_selector_path, as: 'labelSelectorPath'
207
+ property :spec_replicas_path, as: 'specReplicasPath'
208
+ property :status_replicas_path, as: 'statusReplicasPath'
209
+ end
210
+ end
211
+
212
+ class CustomResourceSubresourceStatus
213
+ # @private
214
+ class Representation < Google::Apis::Core::JsonRepresentation
215
+ end
216
+ end
217
+
218
+ class CustomResourceSubresources
219
+ # @private
220
+ class Representation < Google::Apis::Core::JsonRepresentation
221
+ property :scale, as: 'scale', class: Google::Apis::RunV1beta1::CustomResourceSubresourceScale, decorator: Google::Apis::RunV1beta1::CustomResourceSubresourceScale::Representation
222
+
223
+ property :status, as: 'status', class: Google::Apis::RunV1beta1::CustomResourceSubresourceStatus, decorator: Google::Apis::RunV1beta1::CustomResourceSubresourceStatus::Representation
224
+
225
+ end
226
+ end
227
+
228
+ class CustomResourceValidation
229
+ # @private
230
+ class Representation < Google::Apis::Core::JsonRepresentation
231
+ property :open_apiv3_schema, as: 'openAPIV3Schema', class: Google::Apis::RunV1beta1::JsonSchemaProps, decorator: Google::Apis::RunV1beta1::JsonSchemaProps::Representation
232
+
233
+ end
234
+ end
235
+
236
+ class ExternalDocumentation
237
+ # @private
238
+ class Representation < Google::Apis::Core::JsonRepresentation
239
+ property :description, as: 'description'
240
+ property :url, as: 'url'
241
+ end
242
+ end
243
+
244
+ class Json
245
+ # @private
246
+ class Representation < Google::Apis::Core::JsonRepresentation
247
+ property :raw, :base64 => true, as: 'raw'
248
+ end
249
+ end
250
+
251
+ class JsonSchemaProps
252
+ # @private
253
+ class Representation < Google::Apis::Core::JsonRepresentation
254
+ property :additional_items, as: 'additionalItems', class: Google::Apis::RunV1beta1::JsonSchemaPropsOrBool, decorator: Google::Apis::RunV1beta1::JsonSchemaPropsOrBool::Representation
255
+
256
+ property :additional_properties, as: 'additionalProperties', class: Google::Apis::RunV1beta1::JsonSchemaPropsOrBool, decorator: Google::Apis::RunV1beta1::JsonSchemaPropsOrBool::Representation
257
+
258
+ collection :all_of, as: 'allOf', class: Google::Apis::RunV1beta1::JsonSchemaProps, decorator: Google::Apis::RunV1beta1::JsonSchemaProps::Representation
259
+
260
+ collection :any_of, as: 'anyOf', class: Google::Apis::RunV1beta1::JsonSchemaProps, decorator: Google::Apis::RunV1beta1::JsonSchemaProps::Representation
261
+
262
+ property :default, as: 'default', class: Google::Apis::RunV1beta1::Json, decorator: Google::Apis::RunV1beta1::Json::Representation
263
+
264
+ hash :definitions, as: 'definitions', class: Google::Apis::RunV1beta1::JsonSchemaProps, decorator: Google::Apis::RunV1beta1::JsonSchemaProps::Representation
265
+
266
+ hash :dependencies, as: 'dependencies', class: Google::Apis::RunV1beta1::JsonSchemaPropsOrStringArray, decorator: Google::Apis::RunV1beta1::JsonSchemaPropsOrStringArray::Representation
267
+
268
+ property :description, as: 'description'
269
+ collection :enum, as: 'enum'
270
+ property :example, as: 'example', class: Google::Apis::RunV1beta1::Json, decorator: Google::Apis::RunV1beta1::Json::Representation
271
+
272
+ property :exclusive_maximum, as: 'exclusiveMaximum'
273
+ property :exclusive_minimum, as: 'exclusiveMinimum'
274
+ property :external_docs, as: 'externalDocs', class: Google::Apis::RunV1beta1::ExternalDocumentation, decorator: Google::Apis::RunV1beta1::ExternalDocumentation::Representation
275
+
276
+ property :format, as: 'format'
277
+ property :id, as: 'id'
278
+ property :items, as: 'items', class: Google::Apis::RunV1beta1::JsonSchemaPropsOrArray, decorator: Google::Apis::RunV1beta1::JsonSchemaPropsOrArray::Representation
279
+
280
+ property :max_items, :numeric_string => true, as: 'maxItems'
281
+ property :max_length, :numeric_string => true, as: 'maxLength'
282
+ property :max_properties, :numeric_string => true, as: 'maxProperties'
283
+ property :maximum, as: 'maximum'
284
+ property :min_items, :numeric_string => true, as: 'minItems'
285
+ property :min_length, :numeric_string => true, as: 'minLength'
286
+ property :min_properties, :numeric_string => true, as: 'minProperties'
287
+ property :minimum, as: 'minimum'
288
+ property :multiple_of, as: 'multipleOf'
289
+ property :not, as: 'not', class: Google::Apis::RunV1beta1::JsonSchemaProps, decorator: Google::Apis::RunV1beta1::JsonSchemaProps::Representation
290
+
291
+ collection :one_of, as: 'oneOf', class: Google::Apis::RunV1beta1::JsonSchemaProps, decorator: Google::Apis::RunV1beta1::JsonSchemaProps::Representation
292
+
293
+ property :pattern, as: 'pattern'
294
+ hash :pattern_properties, as: 'patternProperties', class: Google::Apis::RunV1beta1::JsonSchemaProps, decorator: Google::Apis::RunV1beta1::JsonSchemaProps::Representation
295
+
296
+ hash :properties, as: 'properties', class: Google::Apis::RunV1beta1::JsonSchemaProps, decorator: Google::Apis::RunV1beta1::JsonSchemaProps::Representation
297
+
298
+ property :ref, as: 'ref'
299
+ collection :required, as: 'required'
300
+ property :schema, as: 'schema'
301
+ property :title, as: 'title'
302
+ property :type, as: 'type'
303
+ property :unique_items, as: 'uniqueItems'
304
+ end
305
+ end
306
+
307
+ class JsonSchemaPropsOrArray
308
+ # @private
309
+ class Representation < Google::Apis::Core::JsonRepresentation
310
+ collection :json_schemas, as: 'jsonSchemas', class: Google::Apis::RunV1beta1::JsonSchemaProps, decorator: Google::Apis::RunV1beta1::JsonSchemaProps::Representation
311
+
312
+ property :schema, as: 'schema', class: Google::Apis::RunV1beta1::JsonSchemaProps, decorator: Google::Apis::RunV1beta1::JsonSchemaProps::Representation
313
+
314
+ end
315
+ end
316
+
317
+ class JsonSchemaPropsOrBool
318
+ # @private
319
+ class Representation < Google::Apis::Core::JsonRepresentation
320
+ property :allows, as: 'allows'
321
+ property :schema, as: 'schema', class: Google::Apis::RunV1beta1::JsonSchemaProps, decorator: Google::Apis::RunV1beta1::JsonSchemaProps::Representation
322
+
323
+ end
324
+ end
325
+
326
+ class JsonSchemaPropsOrStringArray
327
+ # @private
328
+ class Representation < Google::Apis::Core::JsonRepresentation
329
+ collection :property, as: 'property'
330
+ property :schema, as: 'schema', class: Google::Apis::RunV1beta1::JsonSchemaProps, decorator: Google::Apis::RunV1beta1::JsonSchemaProps::Representation
331
+
332
+ end
333
+ end
334
+
335
+ class ListCustomResourceDefinitionsResponse
336
+ # @private
337
+ class Representation < Google::Apis::Core::JsonRepresentation
338
+ property :api_version, as: 'apiVersion'
339
+ collection :items, as: 'items', class: Google::Apis::RunV1beta1::CustomResourceDefinition, decorator: Google::Apis::RunV1beta1::CustomResourceDefinition::Representation
340
+
341
+ property :kind, as: 'kind'
342
+ property :metadata, as: 'metadata', class: Google::Apis::RunV1beta1::ListMeta, decorator: Google::Apis::RunV1beta1::ListMeta::Representation
343
+
344
+ collection :unreachable, as: 'unreachable'
345
+ end
346
+ end
347
+
348
+ class ListMeta
349
+ # @private
350
+ class Representation < Google::Apis::Core::JsonRepresentation
351
+ property :continue, as: 'continue'
352
+ property :resource_version, as: 'resourceVersion'
353
+ property :self_link, as: 'selfLink'
354
+ end
355
+ end
356
+
357
+ class ObjectMeta
358
+ # @private
359
+ class Representation < Google::Apis::Core::JsonRepresentation
360
+ hash :annotations, as: 'annotations'
361
+ property :cluster_name, as: 'clusterName'
362
+ property :creation_timestamp, as: 'creationTimestamp'
363
+ property :deletion_grace_period_seconds, as: 'deletionGracePeriodSeconds'
364
+ property :deletion_timestamp, as: 'deletionTimestamp'
365
+ collection :finalizers, as: 'finalizers'
366
+ property :generate_name, as: 'generateName'
367
+ property :generation, as: 'generation'
368
+ hash :labels, as: 'labels'
369
+ property :name, as: 'name'
370
+ property :namespace, as: 'namespace'
371
+ collection :owner_references, as: 'ownerReferences', class: Google::Apis::RunV1beta1::OwnerReference, decorator: Google::Apis::RunV1beta1::OwnerReference::Representation
372
+
373
+ property :resource_version, as: 'resourceVersion'
374
+ property :self_link, as: 'selfLink'
375
+ property :uid, as: 'uid'
376
+ end
377
+ end
378
+
379
+ class OwnerReference
380
+ # @private
381
+ class Representation < Google::Apis::Core::JsonRepresentation
382
+ property :api_version, as: 'apiVersion'
383
+ property :block_owner_deletion, as: 'blockOwnerDeletion'
384
+ property :controller, as: 'controller'
385
+ property :kind, as: 'kind'
386
+ property :name, as: 'name'
387
+ property :uid, as: 'uid'
388
+ end
389
+ end
390
+ end
391
+ end
392
+ end
@@ -0,0 +1,234 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module RunV1beta1
23
+ # Cloud Run Admin API
24
+ #
25
+ # Deploy and manage user provided container images that scale automatically
26
+ # based on HTTP traffic.
27
+ #
28
+ # @example
29
+ # require 'google/apis/run_v1beta1'
30
+ #
31
+ # Run = Google::Apis::RunV1beta1 # Alias the module
32
+ # service = Run::CloudRunService.new
33
+ #
34
+ # @see https://cloud.google.com/run/
35
+ class CloudRunService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://run.googleapis.com/', '',
48
+ client_name: 'google-apis-run_v1beta1',
49
+ client_version: Google::Apis::RunV1beta1::GEM_VERSION)
50
+ @batch_path = 'batch'
51
+ end
52
+
53
+ # Rpc to list custom resource definitions.
54
+ # @param [String] continue
55
+ # Optional encoded string to continue paging.
56
+ # @param [String] field_selector
57
+ # Allows to filter resources based on a specific value for a field name. Send
58
+ # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
59
+ # used by Cloud Run.
60
+ # @param [Boolean] include_uninitialized
61
+ # Not currently used by Cloud Run.
62
+ # @param [String] label_selector
63
+ # Allows to filter resources based on a label. Supported operations are =, !=,
64
+ # exists, in, and notIn.
65
+ # @param [Fixnum] limit
66
+ # @param [String] parent
67
+ # The project ID or project number from which the storages should be listed.
68
+ # @param [String] resource_version
69
+ # The baseline resource version from which the list or watch operation should
70
+ # start. Not currently used by Cloud Run.
71
+ # @param [Boolean] watch
72
+ # Flag that indicates that the client expects to watch this resource as well.
73
+ # Not currently used by Cloud Run.
74
+ # @param [String] fields
75
+ # Selector specifying which fields to include in a partial response.
76
+ # @param [String] quota_user
77
+ # Available to use for quota purposes for server-side applications. Can be any
78
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
79
+ # @param [Google::Apis::RequestOptions] options
80
+ # Request-specific options
81
+ #
82
+ # @yield [result, err] Result & error if block supplied
83
+ # @yieldparam result [Google::Apis::RunV1beta1::ListCustomResourceDefinitionsResponse] parsed result object
84
+ # @yieldparam err [StandardError] error object if request failed
85
+ #
86
+ # @return [Google::Apis::RunV1beta1::ListCustomResourceDefinitionsResponse]
87
+ #
88
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
89
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
90
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
91
+ def list_customresourcedefinitions(continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, parent: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
92
+ command = make_simple_command(:get, 'apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions', options)
93
+ command.response_representation = Google::Apis::RunV1beta1::ListCustomResourceDefinitionsResponse::Representation
94
+ command.response_class = Google::Apis::RunV1beta1::ListCustomResourceDefinitionsResponse
95
+ command.query['continue'] = continue unless continue.nil?
96
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
97
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
98
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
99
+ command.query['limit'] = limit unless limit.nil?
100
+ command.query['parent'] = parent unless parent.nil?
101
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
102
+ command.query['watch'] = watch unless watch.nil?
103
+ command.query['fields'] = fields unless fields.nil?
104
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
105
+ execute_or_queue_command(command, &block)
106
+ end
107
+
108
+ # Rpc to get information about a CustomResourceDefinition.
109
+ # @param [String] name
110
+ # The name of the CustomResourceDefinition being retrieved. If needed, replace `
111
+ # namespace_id` with the project ID.
112
+ # @param [String] fields
113
+ # Selector specifying which fields to include in a partial response.
114
+ # @param [String] quota_user
115
+ # Available to use for quota purposes for server-side applications. Can be any
116
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
117
+ # @param [Google::Apis::RequestOptions] options
118
+ # Request-specific options
119
+ #
120
+ # @yield [result, err] Result & error if block supplied
121
+ # @yieldparam result [Google::Apis::RunV1beta1::CustomResourceDefinition] parsed result object
122
+ # @yieldparam err [StandardError] error object if request failed
123
+ #
124
+ # @return [Google::Apis::RunV1beta1::CustomResourceDefinition]
125
+ #
126
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
127
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
128
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
129
+ def get_namespace_customresourcedefinition(name, fields: nil, quota_user: nil, options: nil, &block)
130
+ command = make_simple_command(:get, 'apis/apiextensions.k8s.io/v1beta1/{+name}', options)
131
+ command.response_representation = Google::Apis::RunV1beta1::CustomResourceDefinition::Representation
132
+ command.response_class = Google::Apis::RunV1beta1::CustomResourceDefinition
133
+ command.params['name'] = name unless name.nil?
134
+ command.query['fields'] = fields unless fields.nil?
135
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
136
+ execute_or_queue_command(command, &block)
137
+ end
138
+
139
+ # Rpc to get information about a CustomResourceDefinition.
140
+ # @param [String] name
141
+ # The name of the CustomResourceDefinition being retrieved. If needed, replace `
142
+ # namespace_id` with the project ID.
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::RunV1beta1::CustomResourceDefinition] parsed result object
153
+ # @yieldparam err [StandardError] error object if request failed
154
+ #
155
+ # @return [Google::Apis::RunV1beta1::CustomResourceDefinition]
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 get_project_location_customresourcedefinition(name, fields: nil, quota_user: nil, options: nil, &block)
161
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
162
+ command.response_representation = Google::Apis::RunV1beta1::CustomResourceDefinition::Representation
163
+ command.response_class = Google::Apis::RunV1beta1::CustomResourceDefinition
164
+ command.params['name'] = name unless name.nil?
165
+ command.query['fields'] = fields unless fields.nil?
166
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
167
+ execute_or_queue_command(command, &block)
168
+ end
169
+
170
+ # Rpc to list custom resource definitions.
171
+ # @param [String] parent
172
+ # The project ID or project number from which the storages should be listed.
173
+ # @param [String] continue
174
+ # Optional encoded string to continue paging.
175
+ # @param [String] field_selector
176
+ # Allows to filter resources based on a specific value for a field name. Send
177
+ # this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently
178
+ # used by Cloud Run.
179
+ # @param [Boolean] include_uninitialized
180
+ # Not currently used by Cloud Run.
181
+ # @param [String] label_selector
182
+ # Allows to filter resources based on a label. Supported operations are =, !=,
183
+ # exists, in, and notIn.
184
+ # @param [Fixnum] limit
185
+ # @param [String] resource_version
186
+ # The baseline resource version from which the list or watch operation should
187
+ # start. Not currently used by Cloud Run.
188
+ # @param [Boolean] watch
189
+ # Flag that indicates that the client expects to watch this resource as well.
190
+ # Not currently used by Cloud Run.
191
+ # @param [String] fields
192
+ # Selector specifying which fields to include in a partial response.
193
+ # @param [String] quota_user
194
+ # Available to use for quota purposes for server-side applications. Can be any
195
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
196
+ # @param [Google::Apis::RequestOptions] options
197
+ # Request-specific options
198
+ #
199
+ # @yield [result, err] Result & error if block supplied
200
+ # @yieldparam result [Google::Apis::RunV1beta1::ListCustomResourceDefinitionsResponse] parsed result object
201
+ # @yieldparam err [StandardError] error object if request failed
202
+ #
203
+ # @return [Google::Apis::RunV1beta1::ListCustomResourceDefinitionsResponse]
204
+ #
205
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
206
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
207
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
208
+ def list_project_location_customresourcedefinitions(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)
209
+ command = make_simple_command(:get, 'v1beta1/{+parent}/customresourcedefinitions', options)
210
+ command.response_representation = Google::Apis::RunV1beta1::ListCustomResourceDefinitionsResponse::Representation
211
+ command.response_class = Google::Apis::RunV1beta1::ListCustomResourceDefinitionsResponse
212
+ command.params['parent'] = parent unless parent.nil?
213
+ command.query['continue'] = continue unless continue.nil?
214
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
215
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
216
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
217
+ command.query['limit'] = limit unless limit.nil?
218
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
219
+ command.query['watch'] = watch unless watch.nil?
220
+ command.query['fields'] = fields unless fields.nil?
221
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
222
+ execute_or_queue_command(command, &block)
223
+ end
224
+
225
+ protected
226
+
227
+ def apply_command_defaults(command)
228
+ command.query['key'] = key unless key.nil?
229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
230
+ end
231
+ end
232
+ end
233
+ end
234
+ end