google-apis-composer_v1 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: 2a9961caacfdbdac0573d9125bacb69ae2ac4bcaecb5c73ce9cc75bb480d5601
4
+ data.tar.gz: ee70f3485469960315ffa1b0088a8f69565346ee30591239cb1bf085451c6ecb
5
+ SHA512:
6
+ metadata.gz: 20df3171d86718955b0eb284ed6de2384f492dbf61a34a71ced30b4e7bee5333c14d61a26a980d1eab840da79f6ae106354e5a4f1ba2f146e2169c51fd8c5e51
7
+ data.tar.gz: c80e98d1adb91b310345156c0f4f768362f3331cc21d772d184d7d7ad0f1a81a12946c54188742902703319091848097cb896bdee192949755e0f5d57b3ec0b7
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-composer_v1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/composer_v1/*.rb
9
+ lib/google/apis/composer_v1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-composer_v1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201202
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 V1 of the Cloud Composer API
2
+
3
+ This is a simple client library for version V1 of the Cloud Composer 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/composer.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-composer_v1', '~> 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-composer_v1
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/composer_v1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::ComposerV1::CloudComposerService.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 Composer service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Composer API, see the {Google::Apis::ComposerV1::CloudComposerService 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-composer_v1`, 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/composer/) 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/composer_v1"
@@ -0,0 +1,36 @@
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/composer_v1/service.rb'
16
+ require 'google/apis/composer_v1/classes.rb'
17
+ require 'google/apis/composer_v1/representations.rb'
18
+ require 'google/apis/composer_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Composer API
23
+ #
24
+ # Manages Apache Airflow environments on Google Cloud Platform.
25
+ #
26
+ # @see https://cloud.google.com/composer/
27
+ module ComposerV1
28
+ # Version of the Cloud Composer API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,895 @@
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 ComposerV1
24
+
25
+ # Allowed IP range with user-provided description.
26
+ class AllowedIpRange
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Optional. User-provided description. It must contain at most 300 characters.
30
+ # Corresponds to the JSON property `description`
31
+ # @return [String]
32
+ attr_accessor :description
33
+
34
+ # IP address or range, defined using CIDR notation, of requests that this rule
35
+ # applies to. Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32` or `
36
+ # 2001:0db8:0000:0042:0000:8a2e:0370:7334`. IP range prefixes should be properly
37
+ # truncated. For example, `1.2.3.4/24` should be truncated to `1.2.3.0/24`.
38
+ # Similarly, for IPv6, `2001:db8::1/32` should be truncated to `2001:db8::/32`.
39
+ # Corresponds to the JSON property `value`
40
+ # @return [String]
41
+ attr_accessor :value
42
+
43
+ def initialize(**args)
44
+ update!(**args)
45
+ end
46
+
47
+ # Update properties of this object
48
+ def update!(**args)
49
+ @description = args[:description] if args.key?(:description)
50
+ @value = args[:value] if args.key?(:value)
51
+ end
52
+ end
53
+
54
+ # Represents a whole or partial calendar date, such as a birthday. The time of
55
+ # day and time zone are either specified elsewhere or are insignificant. The
56
+ # date is relative to the Gregorian Calendar. This can represent one of the
57
+ # following: * A full date, with non-zero year, month, and day values * A month
58
+ # and day value, with a zero year, such as an anniversary * A year on its own,
59
+ # with zero month and day values * A year and month value, with a zero day, such
60
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
61
+ # google.protobuf.Timestamp`.
62
+ class Date
63
+ include Google::Apis::Core::Hashable
64
+
65
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
66
+ # specify a year by itself or a year and month where the day isn't significant.
67
+ # Corresponds to the JSON property `day`
68
+ # @return [Fixnum]
69
+ attr_accessor :day
70
+
71
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
72
+ # and day.
73
+ # Corresponds to the JSON property `month`
74
+ # @return [Fixnum]
75
+ attr_accessor :month
76
+
77
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
78
+ # year.
79
+ # Corresponds to the JSON property `year`
80
+ # @return [Fixnum]
81
+ attr_accessor :year
82
+
83
+ def initialize(**args)
84
+ update!(**args)
85
+ end
86
+
87
+ # Update properties of this object
88
+ def update!(**args)
89
+ @day = args[:day] if args.key?(:day)
90
+ @month = args[:month] if args.key?(:month)
91
+ @year = args[:year] if args.key?(:year)
92
+ end
93
+ end
94
+
95
+ # A generic empty message that you can re-use to avoid defining duplicated empty
96
+ # messages in your APIs. A typical example is to use it as the request or the
97
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
98
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
99
+ # `Empty` is empty JSON object ````.
100
+ class Empty
101
+ include Google::Apis::Core::Hashable
102
+
103
+ def initialize(**args)
104
+ update!(**args)
105
+ end
106
+
107
+ # Update properties of this object
108
+ def update!(**args)
109
+ end
110
+ end
111
+
112
+ # An environment for running orchestration tasks.
113
+ class Environment
114
+ include Google::Apis::Core::Hashable
115
+
116
+ # Configuration information for an environment.
117
+ # Corresponds to the JSON property `config`
118
+ # @return [Google::Apis::ComposerV1::EnvironmentConfig]
119
+ attr_accessor :config
120
+
121
+ # Output only. The time at which this environment was created.
122
+ # Corresponds to the JSON property `createTime`
123
+ # @return [String]
124
+ attr_accessor :create_time
125
+
126
+ # Optional. User-defined labels for this environment. The labels map can contain
127
+ # no more than 64 entries. Entries of the labels map are UTF8 strings that
128
+ # comply with the following restrictions: * Keys must conform to regexp: \p`Ll`\
129
+ # p`Lo``0,62` * Values must conform to regexp: [\p`Ll`\p`Lo`\p`N`_-]`0,63` *
130
+ # Both keys and values are additionally constrained to be <= 128 bytes in size.
131
+ # Corresponds to the JSON property `labels`
132
+ # @return [Hash<String,String>]
133
+ attr_accessor :labels
134
+
135
+ # The resource name of the environment, in the form: "projects/`projectId`/
136
+ # locations/`locationId`/environments/`environmentId`" EnvironmentId must start
137
+ # with a lowercase letter followed by up to 63 lowercase letters, numbers, or
138
+ # hyphens, and cannot end with a hyphen.
139
+ # Corresponds to the JSON property `name`
140
+ # @return [String]
141
+ attr_accessor :name
142
+
143
+ # The current state of the environment.
144
+ # Corresponds to the JSON property `state`
145
+ # @return [String]
146
+ attr_accessor :state
147
+
148
+ # Output only. The time at which this environment was last modified.
149
+ # Corresponds to the JSON property `updateTime`
150
+ # @return [String]
151
+ attr_accessor :update_time
152
+
153
+ # Output only. The UUID (Universally Unique IDentifier) associated with this
154
+ # environment. This value is generated when the environment is created.
155
+ # Corresponds to the JSON property `uuid`
156
+ # @return [String]
157
+ attr_accessor :uuid
158
+
159
+ def initialize(**args)
160
+ update!(**args)
161
+ end
162
+
163
+ # Update properties of this object
164
+ def update!(**args)
165
+ @config = args[:config] if args.key?(:config)
166
+ @create_time = args[:create_time] if args.key?(:create_time)
167
+ @labels = args[:labels] if args.key?(:labels)
168
+ @name = args[:name] if args.key?(:name)
169
+ @state = args[:state] if args.key?(:state)
170
+ @update_time = args[:update_time] if args.key?(:update_time)
171
+ @uuid = args[:uuid] if args.key?(:uuid)
172
+ end
173
+ end
174
+
175
+ # Configuration information for an environment.
176
+ class EnvironmentConfig
177
+ include Google::Apis::Core::Hashable
178
+
179
+ # Output only. The URI of the Apache Airflow Web UI hosted within this
180
+ # environment (see [Airflow web interface](/composer/docs/how-to/accessing/
181
+ # airflow-web-interface)).
182
+ # Corresponds to the JSON property `airflowUri`
183
+ # @return [String]
184
+ attr_accessor :airflow_uri
185
+
186
+ # Output only. The Cloud Storage prefix of the DAGs for this environment.
187
+ # Although Cloud Storage objects reside in a flat namespace, a hierarchical file
188
+ # tree can be simulated using "/"-delimited object name prefixes. DAG objects
189
+ # for this environment reside in a simulated directory with the given prefix.
190
+ # Corresponds to the JSON property `dagGcsPrefix`
191
+ # @return [String]
192
+ attr_accessor :dag_gcs_prefix
193
+
194
+ # Output only. The Kubernetes Engine cluster used to run this environment.
195
+ # Corresponds to the JSON property `gkeCluster`
196
+ # @return [String]
197
+ attr_accessor :gke_cluster
198
+
199
+ # The configuration information for the Kubernetes Engine nodes running the
200
+ # Apache Airflow software.
201
+ # Corresponds to the JSON property `nodeConfig`
202
+ # @return [Google::Apis::ComposerV1::NodeConfig]
203
+ attr_accessor :node_config
204
+
205
+ # The number of nodes in the Kubernetes Engine cluster that will be used to run
206
+ # this environment.
207
+ # Corresponds to the JSON property `nodeCount`
208
+ # @return [Fixnum]
209
+ attr_accessor :node_count
210
+
211
+ # The configuration information for configuring a Private IP Cloud Composer
212
+ # environment.
213
+ # Corresponds to the JSON property `privateEnvironmentConfig`
214
+ # @return [Google::Apis::ComposerV1::PrivateEnvironmentConfig]
215
+ attr_accessor :private_environment_config
216
+
217
+ # Specifies the selection and configuration of software inside the environment.
218
+ # Corresponds to the JSON property `softwareConfig`
219
+ # @return [Google::Apis::ComposerV1::SoftwareConfig]
220
+ attr_accessor :software_config
221
+
222
+ # Network-level access control policy for the Airflow web server.
223
+ # Corresponds to the JSON property `webServerNetworkAccessControl`
224
+ # @return [Google::Apis::ComposerV1::WebServerNetworkAccessControl]
225
+ attr_accessor :web_server_network_access_control
226
+
227
+ def initialize(**args)
228
+ update!(**args)
229
+ end
230
+
231
+ # Update properties of this object
232
+ def update!(**args)
233
+ @airflow_uri = args[:airflow_uri] if args.key?(:airflow_uri)
234
+ @dag_gcs_prefix = args[:dag_gcs_prefix] if args.key?(:dag_gcs_prefix)
235
+ @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
236
+ @node_config = args[:node_config] if args.key?(:node_config)
237
+ @node_count = args[:node_count] if args.key?(:node_count)
238
+ @private_environment_config = args[:private_environment_config] if args.key?(:private_environment_config)
239
+ @software_config = args[:software_config] if args.key?(:software_config)
240
+ @web_server_network_access_control = args[:web_server_network_access_control] if args.key?(:web_server_network_access_control)
241
+ end
242
+ end
243
+
244
+ # Configuration for controlling how IPs are allocated in the GKE cluster running
245
+ # the Apache Airflow software.
246
+ class IpAllocationPolicy
247
+ include Google::Apis::Core::Hashable
248
+
249
+ # Optional. The IP address range used to allocate IP addresses to pods in the
250
+ # GKE cluster. This field is applicable only when `use_ip_aliases` is true. Set
251
+ # to blank to have GKE choose a range with the default size. Set to /netmask (e.
252
+ # g. `/14`) to have GKE choose a range with a specific netmask. Set to a [CIDR](
253
+ # http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `
254
+ # 10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.
255
+ # 0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
256
+ # Corresponds to the JSON property `clusterIpv4CidrBlock`
257
+ # @return [String]
258
+ attr_accessor :cluster_ipv4_cidr_block
259
+
260
+ # Optional. The name of the GKE cluster's secondary range used to allocate IP
261
+ # addresses to pods. This field is applicable only when `use_ip_aliases` is true.
262
+ # Corresponds to the JSON property `clusterSecondaryRangeName`
263
+ # @return [String]
264
+ attr_accessor :cluster_secondary_range_name
265
+
266
+ # Optional. The IP address range of the services IP addresses in this GKE
267
+ # cluster. This field is applicable only when `use_ip_aliases` is true. Set to
268
+ # blank to have GKE choose a range with the default size. Set to /netmask (e.g. `
269
+ # /14`) to have GKE choose a range with a specific netmask. Set to a [CIDR](http:
270
+ # //en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.
271
+ # 0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`
272
+ # , `192.168.0.0/16`) to pick a specific range to use.
273
+ # Corresponds to the JSON property `servicesIpv4CidrBlock`
274
+ # @return [String]
275
+ attr_accessor :services_ipv4_cidr_block
276
+
277
+ # Optional. The name of the services' secondary range used to allocate IP
278
+ # addresses to the GKE cluster. This field is applicable only when `
279
+ # use_ip_aliases` is true.
280
+ # Corresponds to the JSON property `servicesSecondaryRangeName`
281
+ # @return [String]
282
+ attr_accessor :services_secondary_range_name
283
+
284
+ # Optional. Whether or not to enable Alias IPs in the GKE cluster. If `true`, a
285
+ # VPC-native cluster is created.
286
+ # Corresponds to the JSON property `useIpAliases`
287
+ # @return [Boolean]
288
+ attr_accessor :use_ip_aliases
289
+ alias_method :use_ip_aliases?, :use_ip_aliases
290
+
291
+ def initialize(**args)
292
+ update!(**args)
293
+ end
294
+
295
+ # Update properties of this object
296
+ def update!(**args)
297
+ @cluster_ipv4_cidr_block = args[:cluster_ipv4_cidr_block] if args.key?(:cluster_ipv4_cidr_block)
298
+ @cluster_secondary_range_name = args[:cluster_secondary_range_name] if args.key?(:cluster_secondary_range_name)
299
+ @services_ipv4_cidr_block = args[:services_ipv4_cidr_block] if args.key?(:services_ipv4_cidr_block)
300
+ @services_secondary_range_name = args[:services_secondary_range_name] if args.key?(:services_secondary_range_name)
301
+ @use_ip_aliases = args[:use_ip_aliases] if args.key?(:use_ip_aliases)
302
+ end
303
+ end
304
+
305
+ # ImageVersion information
306
+ class ImageVersion
307
+ include Google::Apis::Core::Hashable
308
+
309
+ # Whether it is impossible to create an environment with the image version.
310
+ # Corresponds to the JSON property `creationDisabled`
311
+ # @return [Boolean]
312
+ attr_accessor :creation_disabled
313
+ alias_method :creation_disabled?, :creation_disabled
314
+
315
+ # The string identifier of the ImageVersion, in the form: "composer-x.y.z-
316
+ # airflow-a.b(.c)"
317
+ # Corresponds to the JSON property `imageVersionId`
318
+ # @return [String]
319
+ attr_accessor :image_version_id
320
+
321
+ # Whether this is the default ImageVersion used by Composer during environment
322
+ # creation if no input ImageVersion is specified.
323
+ # Corresponds to the JSON property `isDefault`
324
+ # @return [Boolean]
325
+ attr_accessor :is_default
326
+ alias_method :is_default?, :is_default
327
+
328
+ # Represents a whole or partial calendar date, such as a birthday. The time of
329
+ # day and time zone are either specified elsewhere or are insignificant. The
330
+ # date is relative to the Gregorian Calendar. This can represent one of the
331
+ # following: * A full date, with non-zero year, month, and day values * A month
332
+ # and day value, with a zero year, such as an anniversary * A year on its own,
333
+ # with zero month and day values * A year and month value, with a zero day, such
334
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
335
+ # google.protobuf.Timestamp`.
336
+ # Corresponds to the JSON property `releaseDate`
337
+ # @return [Google::Apis::ComposerV1::Date]
338
+ attr_accessor :release_date
339
+
340
+ # supported python versions
341
+ # Corresponds to the JSON property `supportedPythonVersions`
342
+ # @return [Array<String>]
343
+ attr_accessor :supported_python_versions
344
+
345
+ # Whether it is impossible to upgrade an environment running with the image
346
+ # version.
347
+ # Corresponds to the JSON property `upgradeDisabled`
348
+ # @return [Boolean]
349
+ attr_accessor :upgrade_disabled
350
+ alias_method :upgrade_disabled?, :upgrade_disabled
351
+
352
+ def initialize(**args)
353
+ update!(**args)
354
+ end
355
+
356
+ # Update properties of this object
357
+ def update!(**args)
358
+ @creation_disabled = args[:creation_disabled] if args.key?(:creation_disabled)
359
+ @image_version_id = args[:image_version_id] if args.key?(:image_version_id)
360
+ @is_default = args[:is_default] if args.key?(:is_default)
361
+ @release_date = args[:release_date] if args.key?(:release_date)
362
+ @supported_python_versions = args[:supported_python_versions] if args.key?(:supported_python_versions)
363
+ @upgrade_disabled = args[:upgrade_disabled] if args.key?(:upgrade_disabled)
364
+ end
365
+ end
366
+
367
+ # The environments in a project and location.
368
+ class ListEnvironmentsResponse
369
+ include Google::Apis::Core::Hashable
370
+
371
+ # The list of environments returned by a ListEnvironmentsRequest.
372
+ # Corresponds to the JSON property `environments`
373
+ # @return [Array<Google::Apis::ComposerV1::Environment>]
374
+ attr_accessor :environments
375
+
376
+ # The page token used to query for the next page if one exists.
377
+ # Corresponds to the JSON property `nextPageToken`
378
+ # @return [String]
379
+ attr_accessor :next_page_token
380
+
381
+ def initialize(**args)
382
+ update!(**args)
383
+ end
384
+
385
+ # Update properties of this object
386
+ def update!(**args)
387
+ @environments = args[:environments] if args.key?(:environments)
388
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
389
+ end
390
+ end
391
+
392
+ # The ImageVersions in a project and location.
393
+ class ListImageVersionsResponse
394
+ include Google::Apis::Core::Hashable
395
+
396
+ # The list of supported ImageVersions in a location.
397
+ # Corresponds to the JSON property `imageVersions`
398
+ # @return [Array<Google::Apis::ComposerV1::ImageVersion>]
399
+ attr_accessor :image_versions
400
+
401
+ # The page token used to query for the next page if one exists.
402
+ # Corresponds to the JSON property `nextPageToken`
403
+ # @return [String]
404
+ attr_accessor :next_page_token
405
+
406
+ def initialize(**args)
407
+ update!(**args)
408
+ end
409
+
410
+ # Update properties of this object
411
+ def update!(**args)
412
+ @image_versions = args[:image_versions] if args.key?(:image_versions)
413
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
414
+ end
415
+ end
416
+
417
+ # The response message for Operations.ListOperations.
418
+ class ListOperationsResponse
419
+ include Google::Apis::Core::Hashable
420
+
421
+ # The standard List next-page token.
422
+ # Corresponds to the JSON property `nextPageToken`
423
+ # @return [String]
424
+ attr_accessor :next_page_token
425
+
426
+ # A list of operations that matches the specified filter in the request.
427
+ # Corresponds to the JSON property `operations`
428
+ # @return [Array<Google::Apis::ComposerV1::Operation>]
429
+ attr_accessor :operations
430
+
431
+ def initialize(**args)
432
+ update!(**args)
433
+ end
434
+
435
+ # Update properties of this object
436
+ def update!(**args)
437
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
438
+ @operations = args[:operations] if args.key?(:operations)
439
+ end
440
+ end
441
+
442
+ # The configuration information for the Kubernetes Engine nodes running the
443
+ # Apache Airflow software.
444
+ class NodeConfig
445
+ include Google::Apis::Core::Hashable
446
+
447
+ # Optional. The disk size in GB used for node VMs. Minimum size is 20GB. If
448
+ # unspecified, defaults to 100GB. Cannot be updated.
449
+ # Corresponds to the JSON property `diskSizeGb`
450
+ # @return [Fixnum]
451
+ attr_accessor :disk_size_gb
452
+
453
+ # Configuration for controlling how IPs are allocated in the GKE cluster running
454
+ # the Apache Airflow software.
455
+ # Corresponds to the JSON property `ipAllocationPolicy`
456
+ # @return [Google::Apis::ComposerV1::IpAllocationPolicy]
457
+ attr_accessor :ip_allocation_policy
458
+
459
+ # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which to
460
+ # deploy the VMs used to run the Apache Airflow software, specified as a [
461
+ # relative resource name](/apis/design/resource_names#relative_resource_name).
462
+ # For example: "projects/`projectId`/zones/`zoneId`". This `location` must
463
+ # belong to the enclosing environment's project and location. If both this field
464
+ # and `nodeConfig.machineType` are specified, `nodeConfig.machineType` must
465
+ # belong to this `location`; if both are unspecified, the service will pick a
466
+ # zone in the Compute Engine region corresponding to the Cloud Composer location,
467
+ # and propagate that choice to both fields. If only one field (`location` or `
468
+ # nodeConfig.machineType`) is specified, the location information from the
469
+ # specified field will be propagated to the unspecified field.
470
+ # Corresponds to the JSON property `location`
471
+ # @return [String]
472
+ attr_accessor :location
473
+
474
+ # Optional. The Compute Engine [machine type](/compute/docs/machine-types) used
475
+ # for cluster instances, specified as a [relative resource name](/apis/design/
476
+ # resource_names#relative_resource_name). For example: "projects/`projectId`/
477
+ # zones/`zoneId`/machineTypes/`machineTypeId`". The `machineType` must belong to
478
+ # the enclosing environment's project and location. If both this field and `
479
+ # nodeConfig.location` are specified, this `machineType` must belong to the `
480
+ # nodeConfig.location`; if both are unspecified, the service will pick a zone in
481
+ # the Compute Engine region corresponding to the Cloud Composer location, and
482
+ # propagate that choice to both fields. If exactly one of this field and `
483
+ # nodeConfig.location` is specified, the location information from the specified
484
+ # field will be propagated to the unspecified field. The `machineTypeId` must
485
+ # not be a [shared-core machine type](/compute/docs/machine-types#sharedcore).
486
+ # If this field is unspecified, the `machineTypeId` defaults to "n1-standard-1".
487
+ # Corresponds to the JSON property `machineType`
488
+ # @return [String]
489
+ attr_accessor :machine_type
490
+
491
+ # Optional. The Compute Engine network to be used for machine communications,
492
+ # specified as a [relative resource name](/apis/design/resource_names#
493
+ # relative_resource_name). For example: "projects/`projectId`/global/networks/`
494
+ # networkId`". [Shared VPC](/vpc/docs/shared-vpc) is not currently supported.
495
+ # The network must belong to the environment's project. If unspecified, the "
496
+ # default" network ID in the environment's project is used. If a [Custom Subnet
497
+ # Network](/vpc/docs/vpc#vpc_networks_and_subnets) is provided, `nodeConfig.
498
+ # subnetwork` must also be provided.
499
+ # Corresponds to the JSON property `network`
500
+ # @return [String]
501
+ attr_accessor :network
502
+
503
+ # Optional. The set of Google API scopes to be made available on all node VMs.
504
+ # If `oauth_scopes` is empty, defaults to ["https://www.googleapis.com/auth/
505
+ # cloud-platform"]. Cannot be updated.
506
+ # Corresponds to the JSON property `oauthScopes`
507
+ # @return [Array<String>]
508
+ attr_accessor :oauth_scopes
509
+
510
+ # Optional. The Google Cloud Platform Service Account to be used by the node VMs.
511
+ # If a service account is not specified, the "default" Compute Engine service
512
+ # account is used. Cannot be updated.
513
+ # Corresponds to the JSON property `serviceAccount`
514
+ # @return [String]
515
+ attr_accessor :service_account
516
+
517
+ # Optional. The Compute Engine subnetwork to be used for machine communications,
518
+ # specified as a [relative resource name](/apis/design/resource_names#
519
+ # relative_resource_name). For example: "projects/`projectId`/regions/`regionId`/
520
+ # subnetworks/`subnetworkId`" If a subnetwork is provided, `nodeConfig.network`
521
+ # must also be provided, and the subnetwork must belong to the enclosing
522
+ # environment's project and location.
523
+ # Corresponds to the JSON property `subnetwork`
524
+ # @return [String]
525
+ attr_accessor :subnetwork
526
+
527
+ # Optional. The list of instance tags applied to all node VMs. Tags are used to
528
+ # identify valid sources or targets for network firewalls. Each tag within the
529
+ # list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Cannot
530
+ # be updated.
531
+ # Corresponds to the JSON property `tags`
532
+ # @return [Array<String>]
533
+ attr_accessor :tags
534
+
535
+ def initialize(**args)
536
+ update!(**args)
537
+ end
538
+
539
+ # Update properties of this object
540
+ def update!(**args)
541
+ @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
542
+ @ip_allocation_policy = args[:ip_allocation_policy] if args.key?(:ip_allocation_policy)
543
+ @location = args[:location] if args.key?(:location)
544
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
545
+ @network = args[:network] if args.key?(:network)
546
+ @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
547
+ @service_account = args[:service_account] if args.key?(:service_account)
548
+ @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
549
+ @tags = args[:tags] if args.key?(:tags)
550
+ end
551
+ end
552
+
553
+ # This resource represents a long-running operation that is the result of a
554
+ # network API call.
555
+ class Operation
556
+ include Google::Apis::Core::Hashable
557
+
558
+ # If the value is `false`, it means the operation is still in progress. If `true`
559
+ # , the operation is completed, and either `error` or `response` is available.
560
+ # Corresponds to the JSON property `done`
561
+ # @return [Boolean]
562
+ attr_accessor :done
563
+ alias_method :done?, :done
564
+
565
+ # The `Status` type defines a logical error model that is suitable for different
566
+ # programming environments, including REST APIs and RPC APIs. It is used by [
567
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
568
+ # data: error code, error message, and error details. You can find out more
569
+ # about this error model and how to work with it in the [API Design Guide](https:
570
+ # //cloud.google.com/apis/design/errors).
571
+ # Corresponds to the JSON property `error`
572
+ # @return [Google::Apis::ComposerV1::Status]
573
+ attr_accessor :error
574
+
575
+ # Service-specific metadata associated with the operation. It typically contains
576
+ # progress information and common metadata such as create time. Some services
577
+ # might not provide such metadata. Any method that returns a long-running
578
+ # operation should document the metadata type, if any.
579
+ # Corresponds to the JSON property `metadata`
580
+ # @return [Hash<String,Object>]
581
+ attr_accessor :metadata
582
+
583
+ # The server-assigned name, which is only unique within the same service that
584
+ # originally returns it. If you use the default HTTP mapping, the `name` should
585
+ # be a resource name ending with `operations/`unique_id``.
586
+ # Corresponds to the JSON property `name`
587
+ # @return [String]
588
+ attr_accessor :name
589
+
590
+ # The normal response of the operation in case of success. If the original
591
+ # method returns no data on success, such as `Delete`, the response is `google.
592
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
593
+ # the response should be the resource. For other methods, the response should
594
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
595
+ # example, if the original method name is `TakeSnapshot()`, the inferred
596
+ # response type is `TakeSnapshotResponse`.
597
+ # Corresponds to the JSON property `response`
598
+ # @return [Hash<String,Object>]
599
+ attr_accessor :response
600
+
601
+ def initialize(**args)
602
+ update!(**args)
603
+ end
604
+
605
+ # Update properties of this object
606
+ def update!(**args)
607
+ @done = args[:done] if args.key?(:done)
608
+ @error = args[:error] if args.key?(:error)
609
+ @metadata = args[:metadata] if args.key?(:metadata)
610
+ @name = args[:name] if args.key?(:name)
611
+ @response = args[:response] if args.key?(:response)
612
+ end
613
+ end
614
+
615
+ # Metadata describing an operation.
616
+ class OperationMetadata
617
+ include Google::Apis::Core::Hashable
618
+
619
+ # Output only. The time the operation was submitted to the server.
620
+ # Corresponds to the JSON property `createTime`
621
+ # @return [String]
622
+ attr_accessor :create_time
623
+
624
+ # Output only. The time when the operation terminated, regardless of its success.
625
+ # This field is unset if the operation is still ongoing.
626
+ # Corresponds to the JSON property `endTime`
627
+ # @return [String]
628
+ attr_accessor :end_time
629
+
630
+ # Output only. The type of operation being performed.
631
+ # Corresponds to the JSON property `operationType`
632
+ # @return [String]
633
+ attr_accessor :operation_type
634
+
635
+ # Output only. The resource being operated on, as a [relative resource name]( /
636
+ # apis/design/resource_names#relative_resource_name).
637
+ # Corresponds to the JSON property `resource`
638
+ # @return [String]
639
+ attr_accessor :resource
640
+
641
+ # Output only. The UUID of the resource being operated on.
642
+ # Corresponds to the JSON property `resourceUuid`
643
+ # @return [String]
644
+ attr_accessor :resource_uuid
645
+
646
+ # Output only. The current operation state.
647
+ # Corresponds to the JSON property `state`
648
+ # @return [String]
649
+ attr_accessor :state
650
+
651
+ def initialize(**args)
652
+ update!(**args)
653
+ end
654
+
655
+ # Update properties of this object
656
+ def update!(**args)
657
+ @create_time = args[:create_time] if args.key?(:create_time)
658
+ @end_time = args[:end_time] if args.key?(:end_time)
659
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
660
+ @resource = args[:resource] if args.key?(:resource)
661
+ @resource_uuid = args[:resource_uuid] if args.key?(:resource_uuid)
662
+ @state = args[:state] if args.key?(:state)
663
+ end
664
+ end
665
+
666
+ # Configuration options for the private GKE cluster in a Cloud Composer
667
+ # environment.
668
+ class PrivateClusterConfig
669
+ include Google::Apis::Core::Hashable
670
+
671
+ # Optional. If `true`, access to the public endpoint of the GKE cluster is
672
+ # denied.
673
+ # Corresponds to the JSON property `enablePrivateEndpoint`
674
+ # @return [Boolean]
675
+ attr_accessor :enable_private_endpoint
676
+ alias_method :enable_private_endpoint?, :enable_private_endpoint
677
+
678
+ # Optional. The CIDR block from which IPv4 range for GKE master will be reserved.
679
+ # If left blank, the default value of '172.16.0.0/23' is used.
680
+ # Corresponds to the JSON property `masterIpv4CidrBlock`
681
+ # @return [String]
682
+ attr_accessor :master_ipv4_cidr_block
683
+
684
+ # Output only. The IP range in CIDR notation to use for the hosted master
685
+ # network. This range is used for assigning internal IP addresses to the GKE
686
+ # cluster master or set of masters and to the internal load balancer virtual IP.
687
+ # This range must not overlap with any other ranges in use within the cluster's
688
+ # network.
689
+ # Corresponds to the JSON property `masterIpv4ReservedRange`
690
+ # @return [String]
691
+ attr_accessor :master_ipv4_reserved_range
692
+
693
+ def initialize(**args)
694
+ update!(**args)
695
+ end
696
+
697
+ # Update properties of this object
698
+ def update!(**args)
699
+ @enable_private_endpoint = args[:enable_private_endpoint] if args.key?(:enable_private_endpoint)
700
+ @master_ipv4_cidr_block = args[:master_ipv4_cidr_block] if args.key?(:master_ipv4_cidr_block)
701
+ @master_ipv4_reserved_range = args[:master_ipv4_reserved_range] if args.key?(:master_ipv4_reserved_range)
702
+ end
703
+ end
704
+
705
+ # The configuration information for configuring a Private IP Cloud Composer
706
+ # environment.
707
+ class PrivateEnvironmentConfig
708
+ include Google::Apis::Core::Hashable
709
+
710
+ # Optional. The CIDR block from which IP range in tenant project will be
711
+ # reserved for Cloud SQL. Needs to be disjoint from `web_server_ipv4_cidr_block`.
712
+ # Corresponds to the JSON property `cloudSqlIpv4CidrBlock`
713
+ # @return [String]
714
+ attr_accessor :cloud_sql_ipv4_cidr_block
715
+
716
+ # Optional. If `true`, a Private IP Cloud Composer environment is created. If
717
+ # this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be set to
718
+ # true.
719
+ # Corresponds to the JSON property `enablePrivateEnvironment`
720
+ # @return [Boolean]
721
+ attr_accessor :enable_private_environment
722
+ alias_method :enable_private_environment?, :enable_private_environment
723
+
724
+ # Configuration options for the private GKE cluster in a Cloud Composer
725
+ # environment.
726
+ # Corresponds to the JSON property `privateClusterConfig`
727
+ # @return [Google::Apis::ComposerV1::PrivateClusterConfig]
728
+ attr_accessor :private_cluster_config
729
+
730
+ # Optional. The CIDR block from which IP range for web server will be reserved.
731
+ # Needs to be disjoint from `private_cluster_config.master_ipv4_cidr_block` and `
732
+ # cloud_sql_ipv4_cidr_block`.
733
+ # Corresponds to the JSON property `webServerIpv4CidrBlock`
734
+ # @return [String]
735
+ attr_accessor :web_server_ipv4_cidr_block
736
+
737
+ # Output only. The IP range reserved for the tenant project's App Engine VMs.
738
+ # Corresponds to the JSON property `webServerIpv4ReservedRange`
739
+ # @return [String]
740
+ attr_accessor :web_server_ipv4_reserved_range
741
+
742
+ def initialize(**args)
743
+ update!(**args)
744
+ end
745
+
746
+ # Update properties of this object
747
+ def update!(**args)
748
+ @cloud_sql_ipv4_cidr_block = args[:cloud_sql_ipv4_cidr_block] if args.key?(:cloud_sql_ipv4_cidr_block)
749
+ @enable_private_environment = args[:enable_private_environment] if args.key?(:enable_private_environment)
750
+ @private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config)
751
+ @web_server_ipv4_cidr_block = args[:web_server_ipv4_cidr_block] if args.key?(:web_server_ipv4_cidr_block)
752
+ @web_server_ipv4_reserved_range = args[:web_server_ipv4_reserved_range] if args.key?(:web_server_ipv4_reserved_range)
753
+ end
754
+ end
755
+
756
+ # Specifies the selection and configuration of software inside the environment.
757
+ class SoftwareConfig
758
+ include Google::Apis::Core::Hashable
759
+
760
+ # Optional. Apache Airflow configuration properties to override. Property keys
761
+ # contain the section and property names, separated by a hyphen, for example "
762
+ # core-dags_are_paused_at_creation". Section names must not contain hyphens ("-")
763
+ # , opening square brackets ("["), or closing square brackets ("]"). The
764
+ # property name must not be empty and must not contain an equals sign ("=") or
765
+ # semicolon (";"). Section and property names must not contain a period (".").
766
+ # Apache Airflow configuration property names must be written in [snake_case](
767
+ # https://en.wikipedia.org/wiki/Snake_case). Property values can contain any
768
+ # character, and can be written in any lower/upper case format. Certain Apache
769
+ # Airflow configuration property values are [blocked](/composer/docs/concepts/
770
+ # airflow-configurations), and cannot be overridden.
771
+ # Corresponds to the JSON property `airflowConfigOverrides`
772
+ # @return [Hash<String,String>]
773
+ attr_accessor :airflow_config_overrides
774
+
775
+ # Optional. Additional environment variables to provide to the Apache Airflow
776
+ # scheduler, worker, and webserver processes. Environment variable names must
777
+ # match the regular expression `a-zA-Z_*`. They cannot specify Apache Airflow
778
+ # software configuration overrides (they cannot match the regular expression `
779
+ # AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the following
780
+ # reserved names: * `AIRFLOW_HOME` * `C_FORCE_ROOT` * `CONTAINER_NAME` * `
781
+ # DAGS_FOLDER` * `GCP_PROJECT` * `GCS_BUCKET` * `GKE_CLUSTER_NAME` * `
782
+ # SQL_DATABASE` * `SQL_INSTANCE` * `SQL_PASSWORD` * `SQL_PROJECT` * `SQL_REGION`
783
+ # * `SQL_USER`
784
+ # Corresponds to the JSON property `envVariables`
785
+ # @return [Hash<String,String>]
786
+ attr_accessor :env_variables
787
+
788
+ # The version of the software running in the environment. This encapsulates both
789
+ # the version of Cloud Composer functionality and the version of Apache Airflow.
790
+ # It must match the regular expression `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-
791
+ # airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`. When used as input, the server also
792
+ # checks if the provided version is supported and denies the request for an
793
+ # unsupported version. The Cloud Composer portion of the version is a [semantic
794
+ # version](https://semver.org) or `latest`. When the patch version is omitted,
795
+ # the current Cloud Composer patch version is selected. When `latest` is
796
+ # provided instead of an explicit version number, the server replaces `latest`
797
+ # with the current Cloud Composer version and stores that version number in the
798
+ # same field. The portion of the image version that follows *airflow-* is an
799
+ # official Apache Airflow repository [release name](https://github.com/apache/
800
+ # incubator-airflow/releases). See also [Version List](/composer/docs/concepts/
801
+ # versioning/composer-versions).
802
+ # Corresponds to the JSON property `imageVersion`
803
+ # @return [String]
804
+ attr_accessor :image_version
805
+
806
+ # Optional. Custom Python Package Index (PyPI) packages to be installed in the
807
+ # environment. Keys refer to the lowercase package name such as "numpy" and
808
+ # values are the lowercase extras and version specifier such as "==1.12.0", "[
809
+ # devel,gcp_api]", or "[devel]>=1.8.2, <1.9.2". To specify a package without
810
+ # pinning it to a version specifier, use the empty string as the value.
811
+ # Corresponds to the JSON property `pypiPackages`
812
+ # @return [Hash<String,String>]
813
+ attr_accessor :pypi_packages
814
+
815
+ # Optional. The major version of Python used to run the Apache Airflow scheduler,
816
+ # worker, and webserver processes. Can be set to '2' or '3'. If not specified,
817
+ # the default is '2'. Cannot be updated.
818
+ # Corresponds to the JSON property `pythonVersion`
819
+ # @return [String]
820
+ attr_accessor :python_version
821
+
822
+ def initialize(**args)
823
+ update!(**args)
824
+ end
825
+
826
+ # Update properties of this object
827
+ def update!(**args)
828
+ @airflow_config_overrides = args[:airflow_config_overrides] if args.key?(:airflow_config_overrides)
829
+ @env_variables = args[:env_variables] if args.key?(:env_variables)
830
+ @image_version = args[:image_version] if args.key?(:image_version)
831
+ @pypi_packages = args[:pypi_packages] if args.key?(:pypi_packages)
832
+ @python_version = args[:python_version] if args.key?(:python_version)
833
+ end
834
+ end
835
+
836
+ # The `Status` type defines a logical error model that is suitable for different
837
+ # programming environments, including REST APIs and RPC APIs. It is used by [
838
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
839
+ # data: error code, error message, and error details. You can find out more
840
+ # about this error model and how to work with it in the [API Design Guide](https:
841
+ # //cloud.google.com/apis/design/errors).
842
+ class Status
843
+ include Google::Apis::Core::Hashable
844
+
845
+ # The status code, which should be an enum value of google.rpc.Code.
846
+ # Corresponds to the JSON property `code`
847
+ # @return [Fixnum]
848
+ attr_accessor :code
849
+
850
+ # A list of messages that carry the error details. There is a common set of
851
+ # message types for APIs to use.
852
+ # Corresponds to the JSON property `details`
853
+ # @return [Array<Hash<String,Object>>]
854
+ attr_accessor :details
855
+
856
+ # A developer-facing error message, which should be in English. Any user-facing
857
+ # error message should be localized and sent in the google.rpc.Status.details
858
+ # field, or localized by the client.
859
+ # Corresponds to the JSON property `message`
860
+ # @return [String]
861
+ attr_accessor :message
862
+
863
+ def initialize(**args)
864
+ update!(**args)
865
+ end
866
+
867
+ # Update properties of this object
868
+ def update!(**args)
869
+ @code = args[:code] if args.key?(:code)
870
+ @details = args[:details] if args.key?(:details)
871
+ @message = args[:message] if args.key?(:message)
872
+ end
873
+ end
874
+
875
+ # Network-level access control policy for the Airflow web server.
876
+ class WebServerNetworkAccessControl
877
+ include Google::Apis::Core::Hashable
878
+
879
+ # A collection of allowed IP ranges with descriptions.
880
+ # Corresponds to the JSON property `allowedIpRanges`
881
+ # @return [Array<Google::Apis::ComposerV1::AllowedIpRange>]
882
+ attr_accessor :allowed_ip_ranges
883
+
884
+ def initialize(**args)
885
+ update!(**args)
886
+ end
887
+
888
+ # Update properties of this object
889
+ def update!(**args)
890
+ @allowed_ip_ranges = args[:allowed_ip_ranges] if args.key?(:allowed_ip_ranges)
891
+ end
892
+ end
893
+ end
894
+ end
895
+ end