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,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: eb5c798327c44c1ab5e37ff24879f7d3adadc3c7aaad7df2611d00bdebd1fd1a
4
+ data.tar.gz: ce7d6ae67ecb58a3c9d8079bb249adc8f8e2fca0a148f63ece8a0f9d62fbac24
5
+ SHA512:
6
+ metadata.gz: c456b3ed3794b259e8b57de223dbbb661055e3fa3adb80b5b8e01fba242fe03ef414e6a04087684d6c3abeda032cf71cb3a29c59e896ba5fa86a42e3f9a85c80
7
+ data.tar.gz: 446975e8255e8888ffce614166921bcdbfe7672fc13da3685faaee4408ea763e37f750e1c267236327bd486aefef65b59b60ddf1181c816217d2216f81b7b17d
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-run_v1beta1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/run_v1beta1/*.rb
9
+ lib/google/apis/run_v1beta1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-run_v1beta1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20200814
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1beta1 of the Cloud Run Admin API
2
+
3
+ This is a simple client library for version V1beta1 of the Cloud Run Admin API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/run.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-run_v1beta1', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-run_v1beta1
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/run_v1beta1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::RunV1beta1::CloudRunService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Run service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Run Admin API, see the {Google::Apis::RunV1beta1::CloudRunService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-run_v1beta1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/run/) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
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/run_v1beta1"
@@ -0,0 +1,37 @@
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/run_v1beta1/service.rb'
16
+ require 'google/apis/run_v1beta1/classes.rb'
17
+ require 'google/apis/run_v1beta1/representations.rb'
18
+ require 'google/apis/run_v1beta1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Run Admin API
23
+ #
24
+ # Deploy and manage user provided container images that scale automatically
25
+ # based on HTTP traffic.
26
+ #
27
+ # @see https://cloud.google.com/run/
28
+ module RunV1beta1
29
+ # Version of the Cloud Run Admin API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1beta1'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,1105 @@
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
+ # CustomResourceColumnDefinition specifies a column for server side printing.
26
+ class CustomResourceColumnDefinition
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # description is a human readable description of this column. +optional
30
+ # Corresponds to the JSON property `description`
31
+ # @return [String]
32
+ attr_accessor :description
33
+
34
+ # format is an optional OpenAPI type definition for this column. The 'name'
35
+ # format is applied to the primary identifier column to assist in clients
36
+ # identifying column is the resource name. See https://github.com/OAI/OpenAPI-
37
+ # Specification/blob/master/versions/2.0.md#data-types for more. +optional
38
+ # Corresponds to the JSON property `format`
39
+ # @return [String]
40
+ attr_accessor :format
41
+
42
+ # JSONPath is a simple JSON path, i.e. with array notation.
43
+ # Corresponds to the JSON property `jsonPath`
44
+ # @return [String]
45
+ attr_accessor :json_path
46
+
47
+ # name is a human readable name for the column.
48
+ # Corresponds to the JSON property `name`
49
+ # @return [String]
50
+ attr_accessor :name
51
+
52
+ # priority is an integer defining the relative importance of this column
53
+ # compared to others. Lower numbers are considered higher priority. Columns that
54
+ # may be omitted in limited space scenarios should be given a higher priority. +
55
+ # optional
56
+ # Corresponds to the JSON property `priority`
57
+ # @return [Fixnum]
58
+ attr_accessor :priority
59
+
60
+ # type is an OpenAPI type definition for this column. See https://github.com/OAI/
61
+ # OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
62
+ # Corresponds to the JSON property `type`
63
+ # @return [String]
64
+ attr_accessor :type
65
+
66
+ def initialize(**args)
67
+ update!(**args)
68
+ end
69
+
70
+ # Update properties of this object
71
+ def update!(**args)
72
+ @description = args[:description] if args.key?(:description)
73
+ @format = args[:format] if args.key?(:format)
74
+ @json_path = args[:json_path] if args.key?(:json_path)
75
+ @name = args[:name] if args.key?(:name)
76
+ @priority = args[:priority] if args.key?(:priority)
77
+ @type = args[:type] if args.key?(:type)
78
+ end
79
+ end
80
+
81
+ # CustomResourceDefinition represents a resource that should be exposed on the
82
+ # API server. Its name MUST be in the format <.spec.name>.<.spec.group>.
83
+ class CustomResourceDefinition
84
+ include Google::Apis::Core::Hashable
85
+
86
+ # The API version for this call such as "k8s.apiextensions.io/v1beta1".
87
+ # Corresponds to the JSON property `apiVersion`
88
+ # @return [String]
89
+ attr_accessor :api_version
90
+
91
+ # The kind of resource, in this case always "CustomResourceDefinition".
92
+ # Corresponds to the JSON property `kind`
93
+ # @return [String]
94
+ attr_accessor :kind
95
+
96
+ # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted
97
+ # resources must have, which includes all objects users must create.
98
+ # Corresponds to the JSON property `metadata`
99
+ # @return [Google::Apis::RunV1beta1::ObjectMeta]
100
+ attr_accessor :metadata
101
+
102
+ # CustomResourceDefinitionSpec describes how a user wants their resource to
103
+ # appear
104
+ # Corresponds to the JSON property `spec`
105
+ # @return [Google::Apis::RunV1beta1::CustomResourceDefinitionSpec]
106
+ attr_accessor :spec
107
+
108
+ def initialize(**args)
109
+ update!(**args)
110
+ end
111
+
112
+ # Update properties of this object
113
+ def update!(**args)
114
+ @api_version = args[:api_version] if args.key?(:api_version)
115
+ @kind = args[:kind] if args.key?(:kind)
116
+ @metadata = args[:metadata] if args.key?(:metadata)
117
+ @spec = args[:spec] if args.key?(:spec)
118
+ end
119
+ end
120
+
121
+ # CustomResourceDefinitionNames indicates the names to serve this
122
+ # CustomResourceDefinition
123
+ class CustomResourceDefinitionNames
124
+ include Google::Apis::Core::Hashable
125
+
126
+ # Categories is a list of grouped resources custom resources belong to (e.g. '
127
+ # all') +optional
128
+ # Corresponds to the JSON property `categories`
129
+ # @return [Array<String>]
130
+ attr_accessor :categories
131
+
132
+ # Kind is the serialized kind of the resource. It is normally CamelCase and
133
+ # singular.
134
+ # Corresponds to the JSON property `kind`
135
+ # @return [String]
136
+ attr_accessor :kind
137
+
138
+ # ListKind is the serialized kind of the list for this resource. Defaults to
139
+ # List. +optional
140
+ # Corresponds to the JSON property `listKind`
141
+ # @return [String]
142
+ attr_accessor :list_kind
143
+
144
+ # Plural is the plural name of the resource to serve. It must match the name of
145
+ # the CustomResourceDefinition-registration too: plural.group and it must be all
146
+ # lowercase.
147
+ # Corresponds to the JSON property `plural`
148
+ # @return [String]
149
+ attr_accessor :plural
150
+
151
+ # ShortNames are short names for the resource. It must be all lowercase. +
152
+ # optional
153
+ # Corresponds to the JSON property `shortNames`
154
+ # @return [Array<String>]
155
+ attr_accessor :short_names
156
+
157
+ # Singular is the singular name of the resource. It must be all lowercase
158
+ # Defaults to lowercased +optional
159
+ # Corresponds to the JSON property `singular`
160
+ # @return [String]
161
+ attr_accessor :singular
162
+
163
+ def initialize(**args)
164
+ update!(**args)
165
+ end
166
+
167
+ # Update properties of this object
168
+ def update!(**args)
169
+ @categories = args[:categories] if args.key?(:categories)
170
+ @kind = args[:kind] if args.key?(:kind)
171
+ @list_kind = args[:list_kind] if args.key?(:list_kind)
172
+ @plural = args[:plural] if args.key?(:plural)
173
+ @short_names = args[:short_names] if args.key?(:short_names)
174
+ @singular = args[:singular] if args.key?(:singular)
175
+ end
176
+ end
177
+
178
+ # CustomResourceDefinitionSpec describes how a user wants their resource to
179
+ # appear
180
+ class CustomResourceDefinitionSpec
181
+ include Google::Apis::Core::Hashable
182
+
183
+ # AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to
184
+ # the name. Defaults to a created-at column. +optional
185
+ # Corresponds to the JSON property `additionalPrinterColumns`
186
+ # @return [Array<Google::Apis::RunV1beta1::CustomResourceColumnDefinition>]
187
+ attr_accessor :additional_printer_columns
188
+
189
+ # Group is the group this resource belongs in
190
+ # Corresponds to the JSON property `group`
191
+ # @return [String]
192
+ attr_accessor :group
193
+
194
+ # CustomResourceDefinitionNames indicates the names to serve this
195
+ # CustomResourceDefinition
196
+ # Corresponds to the JSON property `names`
197
+ # @return [Google::Apis::RunV1beta1::CustomResourceDefinitionNames]
198
+ attr_accessor :names
199
+
200
+ # Scope indicates whether this resource is cluster or namespace scoped. Default
201
+ # is namespaced
202
+ # Corresponds to the JSON property `scope`
203
+ # @return [String]
204
+ attr_accessor :scope
205
+
206
+ # CustomResourceSubresources defines the status and scale subresources for
207
+ # CustomResources.
208
+ # Corresponds to the JSON property `subresources`
209
+ # @return [Google::Apis::RunV1beta1::CustomResourceSubresources]
210
+ attr_accessor :subresources
211
+
212
+ # CustomResourceValidation is a list of validation methods for CustomResources.
213
+ # Corresponds to the JSON property `validation`
214
+ # @return [Google::Apis::RunV1beta1::CustomResourceValidation]
215
+ attr_accessor :validation
216
+
217
+ # Version is the version this resource belongs in Should be always first item in
218
+ # Versions field if provided. Optional, but at least one of Version or Versions
219
+ # must be set. Deprecated: Please use `Versions`. +optional
220
+ # Corresponds to the JSON property `version`
221
+ # @return [String]
222
+ attr_accessor :version
223
+
224
+ # Versions is the list of all supported versions for this resource. If Version
225
+ # field is provided, this field is optional. Validation: All versions must use
226
+ # the same validation schema for now. i.e., top level Validation field is
227
+ # applied to all of these versions. Order: The version name will be used to
228
+ # compute the order. If the version string is "kube-like", it will sort above
229
+ # non "kube-like" version strings, which are ordered lexicographically. "Kube-
230
+ # like" versions start with a "v", then are followed by a number (the major
231
+ # version), then optionally the string "alpha" or "beta" and another number (the
232
+ # minor version). These are sorted first by GA > beta > alpha (where GA is a
233
+ # version with no suffix such as beta or alpha), and then by comparing major
234
+ # version, then minor version. An example sorted list of versions: v10, v2, v1,
235
+ # v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. +optional
236
+ # Corresponds to the JSON property `versions`
237
+ # @return [Array<Google::Apis::RunV1beta1::CustomResourceDefinitionVersion>]
238
+ attr_accessor :versions
239
+
240
+ def initialize(**args)
241
+ update!(**args)
242
+ end
243
+
244
+ # Update properties of this object
245
+ def update!(**args)
246
+ @additional_printer_columns = args[:additional_printer_columns] if args.key?(:additional_printer_columns)
247
+ @group = args[:group] if args.key?(:group)
248
+ @names = args[:names] if args.key?(:names)
249
+ @scope = args[:scope] if args.key?(:scope)
250
+ @subresources = args[:subresources] if args.key?(:subresources)
251
+ @validation = args[:validation] if args.key?(:validation)
252
+ @version = args[:version] if args.key?(:version)
253
+ @versions = args[:versions] if args.key?(:versions)
254
+ end
255
+ end
256
+
257
+ #
258
+ class CustomResourceDefinitionVersion
259
+ include Google::Apis::Core::Hashable
260
+
261
+ # Name is the version name, e.g. “v1”, “v2beta1”, etc.
262
+ # Corresponds to the JSON property `name`
263
+ # @return [String]
264
+ attr_accessor :name
265
+
266
+ # Served is a flag enabling/disabling this version from being served via REST
267
+ # APIs
268
+ # Corresponds to the JSON property `served`
269
+ # @return [Boolean]
270
+ attr_accessor :served
271
+ alias_method :served?, :served
272
+
273
+ # Storage flags the version as storage version. There must be exactly one
274
+ # flagged as storage version.
275
+ # Corresponds to the JSON property `storage`
276
+ # @return [Boolean]
277
+ attr_accessor :storage
278
+ alias_method :storage?, :storage
279
+
280
+ def initialize(**args)
281
+ update!(**args)
282
+ end
283
+
284
+ # Update properties of this object
285
+ def update!(**args)
286
+ @name = args[:name] if args.key?(:name)
287
+ @served = args[:served] if args.key?(:served)
288
+ @storage = args[:storage] if args.key?(:storage)
289
+ end
290
+ end
291
+
292
+ # CustomResourceSubresourceScale defines how to serve the scale subresource for
293
+ # CustomResources.
294
+ class CustomResourceSubresourceScale
295
+ include Google::Apis::Core::Hashable
296
+
297
+ # LabelSelectorPath defines the JSON path inside of a CustomResource that
298
+ # corresponds to Scale.Status.Selector. Only JSON paths without the array
299
+ # notation are allowed. Must be a JSON Path under .status. Must be set to work
300
+ # with HPA. If there is no value under the given path in the CustomResource, the
301
+ # status label selector value in the /scale subresource will default to the
302
+ # empty string. +optional
303
+ # Corresponds to the JSON property `labelSelectorPath`
304
+ # @return [String]
305
+ attr_accessor :label_selector_path
306
+
307
+ # SpecReplicasPath defines the JSON path inside of a CustomResource that
308
+ # corresponds to Scale.Spec.Replicas. Only JSON paths without the array notation
309
+ # are allowed. Must be a JSON Path under .spec. If there is no value under the
310
+ # given path in the CustomResource, the /scale subresource will return an error
311
+ # on GET.
312
+ # Corresponds to the JSON property `specReplicasPath`
313
+ # @return [String]
314
+ attr_accessor :spec_replicas_path
315
+
316
+ # StatusReplicasPath defines the JSON path inside of a CustomResource that
317
+ # corresponds to Scale.Status.Replicas. Only JSON paths without the array
318
+ # notation are allowed. Must be a JSON Path under .status. If there is no value
319
+ # under the given path in the CustomResource, the status replica value in the /
320
+ # scale subresource will default to 0.
321
+ # Corresponds to the JSON property `statusReplicasPath`
322
+ # @return [String]
323
+ attr_accessor :status_replicas_path
324
+
325
+ def initialize(**args)
326
+ update!(**args)
327
+ end
328
+
329
+ # Update properties of this object
330
+ def update!(**args)
331
+ @label_selector_path = args[:label_selector_path] if args.key?(:label_selector_path)
332
+ @spec_replicas_path = args[:spec_replicas_path] if args.key?(:spec_replicas_path)
333
+ @status_replicas_path = args[:status_replicas_path] if args.key?(:status_replicas_path)
334
+ end
335
+ end
336
+
337
+ # CustomResourceSubresourceStatus defines how to serve the status subresource
338
+ # for CustomResources. Status is represented by the `.status` JSON path inside
339
+ # of a CustomResource. When set, * exposes a /status subresource for the custom
340
+ # resource * PUT requests to the /status subresource take a custom resource
341
+ # object, and ignore changes to anything except the status stanza * PUT/POST/
342
+ # PATCH requests to the custom resource ignore changes to the status stanza
343
+ class CustomResourceSubresourceStatus
344
+ include Google::Apis::Core::Hashable
345
+
346
+ def initialize(**args)
347
+ update!(**args)
348
+ end
349
+
350
+ # Update properties of this object
351
+ def update!(**args)
352
+ end
353
+ end
354
+
355
+ # CustomResourceSubresources defines the status and scale subresources for
356
+ # CustomResources.
357
+ class CustomResourceSubresources
358
+ include Google::Apis::Core::Hashable
359
+
360
+ # CustomResourceSubresourceScale defines how to serve the scale subresource for
361
+ # CustomResources.
362
+ # Corresponds to the JSON property `scale`
363
+ # @return [Google::Apis::RunV1beta1::CustomResourceSubresourceScale]
364
+ attr_accessor :scale
365
+
366
+ # CustomResourceSubresourceStatus defines how to serve the status subresource
367
+ # for CustomResources. Status is represented by the `.status` JSON path inside
368
+ # of a CustomResource. When set, * exposes a /status subresource for the custom
369
+ # resource * PUT requests to the /status subresource take a custom resource
370
+ # object, and ignore changes to anything except the status stanza * PUT/POST/
371
+ # PATCH requests to the custom resource ignore changes to the status stanza
372
+ # Corresponds to the JSON property `status`
373
+ # @return [Google::Apis::RunV1beta1::CustomResourceSubresourceStatus]
374
+ attr_accessor :status
375
+
376
+ def initialize(**args)
377
+ update!(**args)
378
+ end
379
+
380
+ # Update properties of this object
381
+ def update!(**args)
382
+ @scale = args[:scale] if args.key?(:scale)
383
+ @status = args[:status] if args.key?(:status)
384
+ end
385
+ end
386
+
387
+ # CustomResourceValidation is a list of validation methods for CustomResources.
388
+ class CustomResourceValidation
389
+ include Google::Apis::Core::Hashable
390
+
391
+ # JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-
392
+ # schema.org/).
393
+ # Corresponds to the JSON property `openAPIV3Schema`
394
+ # @return [Google::Apis::RunV1beta1::JsonSchemaProps]
395
+ attr_accessor :open_apiv3_schema
396
+
397
+ def initialize(**args)
398
+ update!(**args)
399
+ end
400
+
401
+ # Update properties of this object
402
+ def update!(**args)
403
+ @open_apiv3_schema = args[:open_apiv3_schema] if args.key?(:open_apiv3_schema)
404
+ end
405
+ end
406
+
407
+ # ExternalDocumentation allows referencing an external resource for extended
408
+ # documentation.
409
+ class ExternalDocumentation
410
+ include Google::Apis::Core::Hashable
411
+
412
+ #
413
+ # Corresponds to the JSON property `description`
414
+ # @return [String]
415
+ attr_accessor :description
416
+
417
+ #
418
+ # Corresponds to the JSON property `url`
419
+ # @return [String]
420
+ attr_accessor :url
421
+
422
+ def initialize(**args)
423
+ update!(**args)
424
+ end
425
+
426
+ # Update properties of this object
427
+ def update!(**args)
428
+ @description = args[:description] if args.key?(:description)
429
+ @url = args[:url] if args.key?(:url)
430
+ end
431
+ end
432
+
433
+ # JSON represents any valid JSON value. These types are supported: bool, int64,
434
+ # float64, string, []interface``, map[string]interface`` and nil.
435
+ class Json
436
+ include Google::Apis::Core::Hashable
437
+
438
+ #
439
+ # Corresponds to the JSON property `raw`
440
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
441
+ # @return [String]
442
+ attr_accessor :raw
443
+
444
+ def initialize(**args)
445
+ update!(**args)
446
+ end
447
+
448
+ # Update properties of this object
449
+ def update!(**args)
450
+ @raw = args[:raw] if args.key?(:raw)
451
+ end
452
+ end
453
+
454
+ # JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-
455
+ # schema.org/).
456
+ class JsonSchemaProps
457
+ include Google::Apis::Core::Hashable
458
+
459
+ # JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults
460
+ # to true for the boolean property.
461
+ # Corresponds to the JSON property `additionalItems`
462
+ # @return [Google::Apis::RunV1beta1::JsonSchemaPropsOrBool]
463
+ attr_accessor :additional_items
464
+
465
+ # JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults
466
+ # to true for the boolean property.
467
+ # Corresponds to the JSON property `additionalProperties`
468
+ # @return [Google::Apis::RunV1beta1::JsonSchemaPropsOrBool]
469
+ attr_accessor :additional_properties
470
+
471
+ #
472
+ # Corresponds to the JSON property `allOf`
473
+ # @return [Array<Google::Apis::RunV1beta1::JsonSchemaProps>]
474
+ attr_accessor :all_of
475
+
476
+ #
477
+ # Corresponds to the JSON property `anyOf`
478
+ # @return [Array<Google::Apis::RunV1beta1::JsonSchemaProps>]
479
+ attr_accessor :any_of
480
+
481
+ # JSON represents any valid JSON value. These types are supported: bool, int64,
482
+ # float64, string, []interface``, map[string]interface`` and nil.
483
+ # Corresponds to the JSON property `default`
484
+ # @return [Google::Apis::RunV1beta1::Json]
485
+ attr_accessor :default
486
+
487
+ #
488
+ # Corresponds to the JSON property `definitions`
489
+ # @return [Hash<String,Google::Apis::RunV1beta1::JsonSchemaProps>]
490
+ attr_accessor :definitions
491
+
492
+ #
493
+ # Corresponds to the JSON property `dependencies`
494
+ # @return [Hash<String,Google::Apis::RunV1beta1::JsonSchemaPropsOrStringArray>]
495
+ attr_accessor :dependencies
496
+
497
+ #
498
+ # Corresponds to the JSON property `description`
499
+ # @return [String]
500
+ attr_accessor :description
501
+
502
+ #
503
+ # Corresponds to the JSON property `enum`
504
+ # @return [Array<String>]
505
+ attr_accessor :enum
506
+
507
+ # JSON represents any valid JSON value. These types are supported: bool, int64,
508
+ # float64, string, []interface``, map[string]interface`` and nil.
509
+ # Corresponds to the JSON property `example`
510
+ # @return [Google::Apis::RunV1beta1::Json]
511
+ attr_accessor :example
512
+
513
+ #
514
+ # Corresponds to the JSON property `exclusiveMaximum`
515
+ # @return [Boolean]
516
+ attr_accessor :exclusive_maximum
517
+ alias_method :exclusive_maximum?, :exclusive_maximum
518
+
519
+ #
520
+ # Corresponds to the JSON property `exclusiveMinimum`
521
+ # @return [Boolean]
522
+ attr_accessor :exclusive_minimum
523
+ alias_method :exclusive_minimum?, :exclusive_minimum
524
+
525
+ # ExternalDocumentation allows referencing an external resource for extended
526
+ # documentation.
527
+ # Corresponds to the JSON property `externalDocs`
528
+ # @return [Google::Apis::RunV1beta1::ExternalDocumentation]
529
+ attr_accessor :external_docs
530
+
531
+ #
532
+ # Corresponds to the JSON property `format`
533
+ # @return [String]
534
+ attr_accessor :format
535
+
536
+ #
537
+ # Corresponds to the JSON property `id`
538
+ # @return [String]
539
+ attr_accessor :id
540
+
541
+ # JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps
542
+ # or an array of JSONSchemaProps. Mainly here for serialization purposes.
543
+ # Corresponds to the JSON property `items`
544
+ # @return [Google::Apis::RunV1beta1::JsonSchemaPropsOrArray]
545
+ attr_accessor :items
546
+
547
+ #
548
+ # Corresponds to the JSON property `maxItems`
549
+ # @return [Fixnum]
550
+ attr_accessor :max_items
551
+
552
+ #
553
+ # Corresponds to the JSON property `maxLength`
554
+ # @return [Fixnum]
555
+ attr_accessor :max_length
556
+
557
+ #
558
+ # Corresponds to the JSON property `maxProperties`
559
+ # @return [Fixnum]
560
+ attr_accessor :max_properties
561
+
562
+ #
563
+ # Corresponds to the JSON property `maximum`
564
+ # @return [Float]
565
+ attr_accessor :maximum
566
+
567
+ #
568
+ # Corresponds to the JSON property `minItems`
569
+ # @return [Fixnum]
570
+ attr_accessor :min_items
571
+
572
+ #
573
+ # Corresponds to the JSON property `minLength`
574
+ # @return [Fixnum]
575
+ attr_accessor :min_length
576
+
577
+ #
578
+ # Corresponds to the JSON property `minProperties`
579
+ # @return [Fixnum]
580
+ attr_accessor :min_properties
581
+
582
+ #
583
+ # Corresponds to the JSON property `minimum`
584
+ # @return [Float]
585
+ attr_accessor :minimum
586
+
587
+ #
588
+ # Corresponds to the JSON property `multipleOf`
589
+ # @return [Float]
590
+ attr_accessor :multiple_of
591
+
592
+ # JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-
593
+ # schema.org/).
594
+ # Corresponds to the JSON property `not`
595
+ # @return [Google::Apis::RunV1beta1::JsonSchemaProps]
596
+ attr_accessor :not
597
+
598
+ #
599
+ # Corresponds to the JSON property `oneOf`
600
+ # @return [Array<Google::Apis::RunV1beta1::JsonSchemaProps>]
601
+ attr_accessor :one_of
602
+
603
+ #
604
+ # Corresponds to the JSON property `pattern`
605
+ # @return [String]
606
+ attr_accessor :pattern
607
+
608
+ #
609
+ # Corresponds to the JSON property `patternProperties`
610
+ # @return [Hash<String,Google::Apis::RunV1beta1::JsonSchemaProps>]
611
+ attr_accessor :pattern_properties
612
+
613
+ #
614
+ # Corresponds to the JSON property `properties`
615
+ # @return [Hash<String,Google::Apis::RunV1beta1::JsonSchemaProps>]
616
+ attr_accessor :properties
617
+
618
+ #
619
+ # Corresponds to the JSON property `ref`
620
+ # @return [String]
621
+ attr_accessor :ref
622
+
623
+ #
624
+ # Corresponds to the JSON property `required`
625
+ # @return [Array<String>]
626
+ attr_accessor :required
627
+
628
+ #
629
+ # Corresponds to the JSON property `schema`
630
+ # @return [String]
631
+ attr_accessor :schema
632
+
633
+ #
634
+ # Corresponds to the JSON property `title`
635
+ # @return [String]
636
+ attr_accessor :title
637
+
638
+ #
639
+ # Corresponds to the JSON property `type`
640
+ # @return [String]
641
+ attr_accessor :type
642
+
643
+ #
644
+ # Corresponds to the JSON property `uniqueItems`
645
+ # @return [Boolean]
646
+ attr_accessor :unique_items
647
+ alias_method :unique_items?, :unique_items
648
+
649
+ def initialize(**args)
650
+ update!(**args)
651
+ end
652
+
653
+ # Update properties of this object
654
+ def update!(**args)
655
+ @additional_items = args[:additional_items] if args.key?(:additional_items)
656
+ @additional_properties = args[:additional_properties] if args.key?(:additional_properties)
657
+ @all_of = args[:all_of] if args.key?(:all_of)
658
+ @any_of = args[:any_of] if args.key?(:any_of)
659
+ @default = args[:default] if args.key?(:default)
660
+ @definitions = args[:definitions] if args.key?(:definitions)
661
+ @dependencies = args[:dependencies] if args.key?(:dependencies)
662
+ @description = args[:description] if args.key?(:description)
663
+ @enum = args[:enum] if args.key?(:enum)
664
+ @example = args[:example] if args.key?(:example)
665
+ @exclusive_maximum = args[:exclusive_maximum] if args.key?(:exclusive_maximum)
666
+ @exclusive_minimum = args[:exclusive_minimum] if args.key?(:exclusive_minimum)
667
+ @external_docs = args[:external_docs] if args.key?(:external_docs)
668
+ @format = args[:format] if args.key?(:format)
669
+ @id = args[:id] if args.key?(:id)
670
+ @items = args[:items] if args.key?(:items)
671
+ @max_items = args[:max_items] if args.key?(:max_items)
672
+ @max_length = args[:max_length] if args.key?(:max_length)
673
+ @max_properties = args[:max_properties] if args.key?(:max_properties)
674
+ @maximum = args[:maximum] if args.key?(:maximum)
675
+ @min_items = args[:min_items] if args.key?(:min_items)
676
+ @min_length = args[:min_length] if args.key?(:min_length)
677
+ @min_properties = args[:min_properties] if args.key?(:min_properties)
678
+ @minimum = args[:minimum] if args.key?(:minimum)
679
+ @multiple_of = args[:multiple_of] if args.key?(:multiple_of)
680
+ @not = args[:not] if args.key?(:not)
681
+ @one_of = args[:one_of] if args.key?(:one_of)
682
+ @pattern = args[:pattern] if args.key?(:pattern)
683
+ @pattern_properties = args[:pattern_properties] if args.key?(:pattern_properties)
684
+ @properties = args[:properties] if args.key?(:properties)
685
+ @ref = args[:ref] if args.key?(:ref)
686
+ @required = args[:required] if args.key?(:required)
687
+ @schema = args[:schema] if args.key?(:schema)
688
+ @title = args[:title] if args.key?(:title)
689
+ @type = args[:type] if args.key?(:type)
690
+ @unique_items = args[:unique_items] if args.key?(:unique_items)
691
+ end
692
+ end
693
+
694
+ # JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps
695
+ # or an array of JSONSchemaProps. Mainly here for serialization purposes.
696
+ class JsonSchemaPropsOrArray
697
+ include Google::Apis::Core::Hashable
698
+
699
+ #
700
+ # Corresponds to the JSON property `jsonSchemas`
701
+ # @return [Array<Google::Apis::RunV1beta1::JsonSchemaProps>]
702
+ attr_accessor :json_schemas
703
+
704
+ # JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-
705
+ # schema.org/).
706
+ # Corresponds to the JSON property `schema`
707
+ # @return [Google::Apis::RunV1beta1::JsonSchemaProps]
708
+ attr_accessor :schema
709
+
710
+ def initialize(**args)
711
+ update!(**args)
712
+ end
713
+
714
+ # Update properties of this object
715
+ def update!(**args)
716
+ @json_schemas = args[:json_schemas] if args.key?(:json_schemas)
717
+ @schema = args[:schema] if args.key?(:schema)
718
+ end
719
+ end
720
+
721
+ # JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults
722
+ # to true for the boolean property.
723
+ class JsonSchemaPropsOrBool
724
+ include Google::Apis::Core::Hashable
725
+
726
+ #
727
+ # Corresponds to the JSON property `allows`
728
+ # @return [Boolean]
729
+ attr_accessor :allows
730
+ alias_method :allows?, :allows
731
+
732
+ # JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-
733
+ # schema.org/).
734
+ # Corresponds to the JSON property `schema`
735
+ # @return [Google::Apis::RunV1beta1::JsonSchemaProps]
736
+ attr_accessor :schema
737
+
738
+ def initialize(**args)
739
+ update!(**args)
740
+ end
741
+
742
+ # Update properties of this object
743
+ def update!(**args)
744
+ @allows = args[:allows] if args.key?(:allows)
745
+ @schema = args[:schema] if args.key?(:schema)
746
+ end
747
+ end
748
+
749
+ # JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.
750
+ class JsonSchemaPropsOrStringArray
751
+ include Google::Apis::Core::Hashable
752
+
753
+ #
754
+ # Corresponds to the JSON property `property`
755
+ # @return [Array<String>]
756
+ attr_accessor :property
757
+
758
+ # JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-
759
+ # schema.org/).
760
+ # Corresponds to the JSON property `schema`
761
+ # @return [Google::Apis::RunV1beta1::JsonSchemaProps]
762
+ attr_accessor :schema
763
+
764
+ def initialize(**args)
765
+ update!(**args)
766
+ end
767
+
768
+ # Update properties of this object
769
+ def update!(**args)
770
+ @property = args[:property] if args.key?(:property)
771
+ @schema = args[:schema] if args.key?(:schema)
772
+ end
773
+ end
774
+
775
+ #
776
+ class ListCustomResourceDefinitionsResponse
777
+ include Google::Apis::Core::Hashable
778
+
779
+ # The API version for this call such as "k8s.apiextensions.io/v1beta1".
780
+ # Corresponds to the JSON property `apiVersion`
781
+ # @return [String]
782
+ attr_accessor :api_version
783
+
784
+ # List of CustomResourceDefinitions.
785
+ # Corresponds to the JSON property `items`
786
+ # @return [Array<Google::Apis::RunV1beta1::CustomResourceDefinition>]
787
+ attr_accessor :items
788
+
789
+ # The kind of this resource, in this case "CustomResourceDefinitionList".
790
+ # Corresponds to the JSON property `kind`
791
+ # @return [String]
792
+ attr_accessor :kind
793
+
794
+ # ListMeta describes metadata that synthetic resources must have, including
795
+ # lists and various status objects. A resource may have only one of `ObjectMeta,
796
+ # ListMeta`.
797
+ # Corresponds to the JSON property `metadata`
798
+ # @return [Google::Apis::RunV1beta1::ListMeta]
799
+ attr_accessor :metadata
800
+
801
+ # Locations that could not be reached.
802
+ # Corresponds to the JSON property `unreachable`
803
+ # @return [Array<String>]
804
+ attr_accessor :unreachable
805
+
806
+ def initialize(**args)
807
+ update!(**args)
808
+ end
809
+
810
+ # Update properties of this object
811
+ def update!(**args)
812
+ @api_version = args[:api_version] if args.key?(:api_version)
813
+ @items = args[:items] if args.key?(:items)
814
+ @kind = args[:kind] if args.key?(:kind)
815
+ @metadata = args[:metadata] if args.key?(:metadata)
816
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
817
+ end
818
+ end
819
+
820
+ # ListMeta describes metadata that synthetic resources must have, including
821
+ # lists and various status objects. A resource may have only one of `ObjectMeta,
822
+ # ListMeta`.
823
+ class ListMeta
824
+ include Google::Apis::Core::Hashable
825
+
826
+ # continue may be set if the user set a limit on the number of items returned,
827
+ # and indicates that the server has more data available. The value is opaque and
828
+ # may be used to issue another request to the endpoint that served this list to
829
+ # retrieve the next set of available objects. Continuing a list may not be
830
+ # possible if the server configuration has changed or more than a few minutes
831
+ # have passed. The resourceVersion field returned when using this continue value
832
+ # will be identical to the value in the first response.
833
+ # Corresponds to the JSON property `continue`
834
+ # @return [String]
835
+ attr_accessor :continue
836
+
837
+ # String that identifies the server's internal version of this object that can
838
+ # be used by clients to determine when objects have changed. Value must be
839
+ # treated as opaque by clients and passed unmodified back to the server.
840
+ # Populated by the system. Read-only. More info: https://git.k8s.io/community/
841
+ # contributors/devel/api-conventions.md#concurrency-control-and-consistency +
842
+ # optional
843
+ # Corresponds to the JSON property `resourceVersion`
844
+ # @return [String]
845
+ attr_accessor :resource_version
846
+
847
+ # SelfLink is a URL representing this object. Populated by the system. Read-only.
848
+ # +optional
849
+ # Corresponds to the JSON property `selfLink`
850
+ # @return [String]
851
+ attr_accessor :self_link
852
+
853
+ def initialize(**args)
854
+ update!(**args)
855
+ end
856
+
857
+ # Update properties of this object
858
+ def update!(**args)
859
+ @continue = args[:continue] if args.key?(:continue)
860
+ @resource_version = args[:resource_version] if args.key?(:resource_version)
861
+ @self_link = args[:self_link] if args.key?(:self_link)
862
+ end
863
+ end
864
+
865
+ # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted
866
+ # resources must have, which includes all objects users must create.
867
+ class ObjectMeta
868
+ include Google::Apis::Core::Hashable
869
+
870
+ # (Optional) Annotations is an unstructured key value map stored with a resource
871
+ # that may be set by external tools to store and retrieve arbitrary metadata.
872
+ # They are not queryable and should be preserved when modifying objects. More
873
+ # info: http://kubernetes.io/docs/user-guide/annotations
874
+ # Corresponds to the JSON property `annotations`
875
+ # @return [Hash<String,String>]
876
+ attr_accessor :annotations
877
+
878
+ # (Optional) Cloud Run fully managed: not supported Cloud Run for Anthos:
879
+ # supported The name of the cluster which the object belongs to. This is used to
880
+ # distinguish resources with same name and namespace in different clusters. This
881
+ # field is not set anywhere right now and apiserver is going to ignore it if set
882
+ # in create or update request.
883
+ # Corresponds to the JSON property `clusterName`
884
+ # @return [String]
885
+ attr_accessor :cluster_name
886
+
887
+ # (Optional) CreationTimestamp is a timestamp representing the server time when
888
+ # this object was created. It is not guaranteed to be set in happens-before
889
+ # order across separate operations. Clients may not set this value. It is
890
+ # represented in RFC3339 form and is in UTC. Populated by the system. Read-only.
891
+ # Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-
892
+ # conventions.md#metadata
893
+ # Corresponds to the JSON property `creationTimestamp`
894
+ # @return [String]
895
+ attr_accessor :creation_timestamp
896
+
897
+ # (Optional) Cloud Run fully managed: not supported Cloud Run for Anthos:
898
+ # supported Number of seconds allowed for this object to gracefully terminate
899
+ # before it will be removed from the system. Only set when deletionTimestamp is
900
+ # also set. May only be shortened. Read-only.
901
+ # Corresponds to the JSON property `deletionGracePeriodSeconds`
902
+ # @return [Fixnum]
903
+ attr_accessor :deletion_grace_period_seconds
904
+
905
+ # (Optional) Cloud Run fully managed: not supported Cloud Run for Anthos:
906
+ # supported DeletionTimestamp is RFC 3339 date and time at which this resource
907
+ # will be deleted. This field is set by the server when a graceful deletion is
908
+ # requested by the user, and is not directly settable by a client. The resource
909
+ # is expected to be deleted (no longer visible from resource lists, and not
910
+ # reachable by name) after the time in this field, once the finalizers list is
911
+ # empty. As long as the finalizers list contains items, deletion is blocked.
912
+ # Once the deletionTimestamp is set, this value may not be unset or be set
913
+ # further into the future, although it may be shortened or the resource may be
914
+ # deleted prior to this time. For example, a user may request that a pod is
915
+ # deleted in 30 seconds. The Kubelet will react by sending a graceful
916
+ # termination signal to the containers in the pod. After that 30 seconds, the
917
+ # Kubelet will send a hard termination signal (SIGKILL) to the container and
918
+ # after cleanup, remove the pod from the API. In the presence of network
919
+ # partitions, this object may still exist after this timestamp, until an
920
+ # administrator or automated process can determine the resource is fully
921
+ # terminated. If not set, graceful deletion of the object has not been requested.
922
+ # Populated by the system when a graceful deletion is requested. Read-only.
923
+ # More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#
924
+ # metadata
925
+ # Corresponds to the JSON property `deletionTimestamp`
926
+ # @return [String]
927
+ attr_accessor :deletion_timestamp
928
+
929
+ # (Optional) Cloud Run fully managed: not supported Cloud Run for Anthos:
930
+ # supported Must be empty before the object is deleted from the registry. Each
931
+ # entry is an identifier for the responsible component that will remove the
932
+ # entry from the list. If the deletionTimestamp of the object is non-nil,
933
+ # entries in this list can only be removed. +patchStrategy=merge
934
+ # Corresponds to the JSON property `finalizers`
935
+ # @return [Array<String>]
936
+ attr_accessor :finalizers
937
+
938
+ # (Optional) Cloud Run fully managed: not supported Cloud Run for Anthos:
939
+ # supported GenerateName is an optional prefix, used by the server, to generate
940
+ # a unique name ONLY IF the Name field has not been provided. If this field is
941
+ # used, the name returned to the client will be different than the name passed.
942
+ # This value will also be combined with a unique suffix. The provided value has
943
+ # the same validation rules as the Name field, and may be truncated by the
944
+ # length of the suffix required to make the value unique on the server. If this
945
+ # field is specified and the generated name exists, the server will NOT return a
946
+ # 409 - instead, it will either return 201 Created or 500 with Reason
947
+ # ServerTimeout indicating a unique name could not be found in the time allotted,
948
+ # and the client should retry (optionally after the time indicated in the Retry-
949
+ # After header). Applied only if Name is not specified. More info: https://git.
950
+ # k8s.io/community/contributors/devel/api-conventions.md#idempotency string
951
+ # generateName = 2;
952
+ # Corresponds to the JSON property `generateName`
953
+ # @return [String]
954
+ attr_accessor :generate_name
955
+
956
+ # (Optional) A sequence number representing a specific generation of the desired
957
+ # state. Populated by the system. Read-only.
958
+ # Corresponds to the JSON property `generation`
959
+ # @return [Fixnum]
960
+ attr_accessor :generation
961
+
962
+ # (Optional) Map of string keys and values that can be used to organize and
963
+ # categorize (scope and select) objects. May match selectors of replication
964
+ # controllers and routes. More info: http://kubernetes.io/docs/user-guide/labels
965
+ # Corresponds to the JSON property `labels`
966
+ # @return [Hash<String,String>]
967
+ attr_accessor :labels
968
+
969
+ # Name must be unique within a namespace, within a Cloud Run region. Is required
970
+ # when creating resources, although some resources may allow a client to request
971
+ # the generation of an appropriate name automatically. Name is primarily
972
+ # intended for creation idempotence and configuration definition. Cannot be
973
+ # updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +
974
+ # optional
975
+ # Corresponds to the JSON property `name`
976
+ # @return [String]
977
+ attr_accessor :name
978
+
979
+ # Namespace defines the space within each name must be unique, within a Cloud
980
+ # Run region. In Cloud Run the namespace must be equal to either the project ID
981
+ # or project number.
982
+ # Corresponds to the JSON property `namespace`
983
+ # @return [String]
984
+ attr_accessor :namespace
985
+
986
+ # (Optional) Cloud Run fully managed: not supported Cloud Run for Anthos:
987
+ # supported List of objects that own this object. If ALL objects in the list
988
+ # have been deleted, this object will be garbage collected.
989
+ # Corresponds to the JSON property `ownerReferences`
990
+ # @return [Array<Google::Apis::RunV1beta1::OwnerReference>]
991
+ attr_accessor :owner_references
992
+
993
+ # (Optional) An opaque value that represents the internal version of this object
994
+ # that can be used by clients to determine when objects have changed. May be
995
+ # used for optimistic concurrency, change detection, and the watch operation on
996
+ # a resource or set of resources. Clients must treat these values as opaque and
997
+ # passed unmodified back to the server. They may only be valid for a particular
998
+ # resource or set of resources. Populated by the system. Read-only. Value must
999
+ # be treated as opaque by clients. More info: https://git.k8s.io/community/
1000
+ # contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-
1001
+ # consistency
1002
+ # Corresponds to the JSON property `resourceVersion`
1003
+ # @return [String]
1004
+ attr_accessor :resource_version
1005
+
1006
+ # (Optional) SelfLink is a URL representing this object. Populated by the system.
1007
+ # Read-only. string selfLink = 4;
1008
+ # Corresponds to the JSON property `selfLink`
1009
+ # @return [String]
1010
+ attr_accessor :self_link
1011
+
1012
+ # (Optional) UID is the unique in time and space value for this object. It is
1013
+ # typically generated by the server on successful creation of a resource and is
1014
+ # not allowed to change on PUT operations. Populated by the system. Read-only.
1015
+ # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
1016
+ # Corresponds to the JSON property `uid`
1017
+ # @return [String]
1018
+ attr_accessor :uid
1019
+
1020
+ def initialize(**args)
1021
+ update!(**args)
1022
+ end
1023
+
1024
+ # Update properties of this object
1025
+ def update!(**args)
1026
+ @annotations = args[:annotations] if args.key?(:annotations)
1027
+ @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
1028
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
1029
+ @deletion_grace_period_seconds = args[:deletion_grace_period_seconds] if args.key?(:deletion_grace_period_seconds)
1030
+ @deletion_timestamp = args[:deletion_timestamp] if args.key?(:deletion_timestamp)
1031
+ @finalizers = args[:finalizers] if args.key?(:finalizers)
1032
+ @generate_name = args[:generate_name] if args.key?(:generate_name)
1033
+ @generation = args[:generation] if args.key?(:generation)
1034
+ @labels = args[:labels] if args.key?(:labels)
1035
+ @name = args[:name] if args.key?(:name)
1036
+ @namespace = args[:namespace] if args.key?(:namespace)
1037
+ @owner_references = args[:owner_references] if args.key?(:owner_references)
1038
+ @resource_version = args[:resource_version] if args.key?(:resource_version)
1039
+ @self_link = args[:self_link] if args.key?(:self_link)
1040
+ @uid = args[:uid] if args.key?(:uid)
1041
+ end
1042
+ end
1043
+
1044
+ # OwnerReference contains enough information to let you identify an owning
1045
+ # object. Currently, an owning object must be in the same namespace, so there is
1046
+ # no namespace field.
1047
+ class OwnerReference
1048
+ include Google::Apis::Core::Hashable
1049
+
1050
+ # API version of the referent.
1051
+ # Corresponds to the JSON property `apiVersion`
1052
+ # @return [String]
1053
+ attr_accessor :api_version
1054
+
1055
+ # If true, AND if the owner has the "foregroundDeletion" finalizer, then the
1056
+ # owner cannot be deleted from the key-value store until this reference is
1057
+ # removed. Defaults to false. To set this field, a user needs "delete"
1058
+ # permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
1059
+ # +optional
1060
+ # Corresponds to the JSON property `blockOwnerDeletion`
1061
+ # @return [Boolean]
1062
+ attr_accessor :block_owner_deletion
1063
+ alias_method :block_owner_deletion?, :block_owner_deletion
1064
+
1065
+ # If true, this reference points to the managing controller. +optional
1066
+ # Corresponds to the JSON property `controller`
1067
+ # @return [Boolean]
1068
+ attr_accessor :controller
1069
+ alias_method :controller?, :controller
1070
+
1071
+ # Kind of the referent. More info: https://git.k8s.io/community/contributors/
1072
+ # devel/api-conventions.md#types-kinds
1073
+ # Corresponds to the JSON property `kind`
1074
+ # @return [String]
1075
+ attr_accessor :kind
1076
+
1077
+ # Name of the referent. More info: http://kubernetes.io/docs/user-guide/
1078
+ # identifiers#names
1079
+ # Corresponds to the JSON property `name`
1080
+ # @return [String]
1081
+ attr_accessor :name
1082
+
1083
+ # UID of the referent. More info: http://kubernetes.io/docs/user-guide/
1084
+ # identifiers#uids
1085
+ # Corresponds to the JSON property `uid`
1086
+ # @return [String]
1087
+ attr_accessor :uid
1088
+
1089
+ def initialize(**args)
1090
+ update!(**args)
1091
+ end
1092
+
1093
+ # Update properties of this object
1094
+ def update!(**args)
1095
+ @api_version = args[:api_version] if args.key?(:api_version)
1096
+ @block_owner_deletion = args[:block_owner_deletion] if args.key?(:block_owner_deletion)
1097
+ @controller = args[:controller] if args.key?(:controller)
1098
+ @kind = args[:kind] if args.key?(:kind)
1099
+ @name = args[:name] if args.key?(:name)
1100
+ @uid = args[:uid] if args.key?(:uid)
1101
+ end
1102
+ end
1103
+ end
1104
+ end
1105
+ end