blob: 8d1add59f0c476316b270199f1e58d0dbfc7ea11 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="composer_v1beta1.html">Cloud Composer API</a> . <a href="composer_v1beta1.projects.html">projects</a> . <a href="composer_v1beta1.projects.locations.html">locations</a> . <a href="composer_v1beta1.projects.locations.environments.html">environments</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Create a new environment.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Delete an environment.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Get an existing environment.</p>
86<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070087 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">List environments.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Update an environment.</p>
95<h3>Method Details</h3>
96<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070097 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098 <pre>Create a new environment.
99
100Args:
101 parent: string, The parent must be of the form
Bu Sun Kim65020912020-05-20 12:08:20 -0700102&quot;projects/{projectId}/locations/{locationId}&quot;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700103 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104 The object takes the form of:
105
106{ # An environment for running orchestration tasks.
Bu Sun Kim65020912020-05-20 12:08:20 -0700107 &quot;labels&quot;: { # Optional. User-defined labels for this environment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108 # The labels map can contain no more than 64 entries. Entries of the labels
109 # map are UTF8 strings that comply with the following restrictions:
110 #
111 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
112 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 # size.
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700117 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
118 &quot;state&quot;: &quot;A String&quot;, # The current state of the environment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700119 &quot;config&quot;: { # Configuration information for an environment. # Configuration parameters for this environment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;dagGcsPrefix&quot;: &quot;A String&quot;, # Output only. The Cloud Storage prefix of the DAGs for this environment. Although Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700121 # Storage objects reside in a flat namespace, a hierarchical file tree
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 # can be simulated using &quot;/&quot;-delimited object name prefixes. DAG objects for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123 # this environment reside in a simulated directory with the given prefix.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;privateEnvironmentConfig&quot;: { # The configuration information for configuring a Private IP Cloud Composer # The configuration used for the Private IP Cloud Composer environment.
125 # environment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;cloudSqlIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range in tenant project will be reserved for
127 # Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block
128 &quot;privateClusterConfig&quot;: { # Configuration options for the private GKE cluster in a Cloud Composer # Optional. Configuration for the private GKE cluster for a Private IP
129 # Cloud Composer environment.
130 # environment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700131 &quot;masterIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range in CIDR notation to use for the hosted master network. This
132 # range is used for assigning internal IP addresses to the cluster
133 # master or set of masters and to the internal load balancer virtual IP.
134 # This range must not overlap with any other ranges in use
135 # within the cluster&#x27;s network.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700136 &quot;enablePrivateEndpoint&quot;: True or False, # Optional. If `true`, access to the public endpoint of the GKE cluster is
137 # denied.
138 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
139 # left blank, the default value of &#x27;172.16.0.0/23&#x27; is used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700141 &quot;webServerIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range reserved for the tenant project&#x27;s App Engine VMs.
142 &quot;webServerIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range for web server will be reserved. Needs
143 # to be disjoint from private_cluster_config.master_ipv4_cidr_block and
144 # cloud_sql_ipv4_cidr_block.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700145 &quot;enablePrivateEnvironment&quot;: True or False, # Optional. If `true`, a Private IP Cloud Composer environment is created.
146 # If this field is true, `use_ip_aliases` must be true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 },
148 &quot;gkeCluster&quot;: &quot;A String&quot;, # Output only. The Kubernetes Engine cluster used to run this environment.
149 &quot;airflowUri&quot;: &quot;A String&quot;, # Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
150 # [Airflow web
151 # interface](/composer/docs/how-to/accessing/airflow-web-interface)).
152 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
153 &quot;envVariables&quot;: { # Optional. Additional environment variables to provide to the Apache Airflow
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700154 # scheduler, worker, and webserver processes.
155 #
156 # Environment variable names must match the regular expression
157 # `a-zA-Z_*`. They cannot specify Apache Airflow
158 # software configuration overrides (they cannot match the regular expression
159 # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
160 # following reserved names:
161 #
162 # * `AIRFLOW_HOME`
163 # * `C_FORCE_ROOT`
164 # * `CONTAINER_NAME`
165 # * `DAGS_FOLDER`
166 # * `GCP_PROJECT`
167 # * `GCS_BUCKET`
168 # * `GKE_CLUSTER_NAME`
169 # * `SQL_DATABASE`
170 # * `SQL_INSTANCE`
171 # * `SQL_PASSWORD`
172 # * `SQL_PROJECT`
173 # * `SQL_REGION`
174 # * `SQL_USER`
Bu Sun Kim65020912020-05-20 12:08:20 -0700175 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700176 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700177 &quot;pythonVersion&quot;: &quot;A String&quot;, # Optional. The major version of Python used to run the Apache Airflow
178 # scheduler, worker, and webserver processes.
179 #
180 # Can be set to &#x27;2&#x27; or &#x27;3&#x27;. If not specified, the default is &#x27;2&#x27;. Cannot be
181 # updated.
182 &quot;pypiPackages&quot;: { # Optional. Custom Python Package Index (PyPI) packages to be installed in
183 # the environment.
184 #
185 # Keys refer to the lowercase package name such as &quot;numpy&quot;
186 # and values are the lowercase extras and version specifier such as
187 # &quot;==1.12.0&quot;, &quot;[devel,gcp_api]&quot;, or &quot;[devel]&gt;=1.8.2, &lt;1.9.2&quot;. To specify a
188 # package without pinning it to a version specifier, use the empty string as
189 # the value.
190 &quot;a_key&quot;: &quot;A String&quot;,
191 },
192 &quot;imageVersion&quot;: &quot;A String&quot;, # The version of the software running in the environment.
193 # This encapsulates both the version of Cloud Composer functionality and the
194 # version of Apache Airflow. It must match the regular expression
195 # `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
196 # When used as input, the server also checks if the provided version is
197 # supported and denies the request for an unsupported version.
198 #
199 # The Cloud Composer portion of the version is a
200 # [semantic version](https://semver.org) or `latest`. When the patch version
201 # is omitted, the current Cloud Composer patch version is selected.
202 # When `latest` is provided instead of an explicit version number,
203 # the server replaces `latest` with the current Cloud Composer version
204 # and stores that version number in the same field.
205 #
206 # The portion of the image version that follows &lt;em&gt;airflow-&lt;/em&gt; is an
207 # official Apache Airflow repository
208 # [release name](https://github.com/apache/incubator-airflow/releases).
209 #
210 # See also [Version
211 # List](/composer/docs/concepts/versioning/composer-versions).
212 &quot;airflowConfigOverrides&quot;: { # Optional. Apache Airflow configuration properties to override.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700213 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700214 # Property keys contain the section and property names, separated by a
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 # hyphen, for example &quot;core-dags_are_paused_at_creation&quot;. Section names must
216 # not contain hyphens (&quot;-&quot;), opening square brackets (&quot;[&quot;), or closing
217 # square brackets (&quot;]&quot;). The property name must not be empty and must not
218 # contain an equals sign (&quot;=&quot;) or semicolon (&quot;;&quot;). Section and property names
219 # must not contain a period (&quot;.&quot;). Apache Airflow configuration property
Dan O'Mearadd494642020-05-01 07:42:23 -0700220 # names must be written in
221 # [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
222 # contain any character, and can be written in any lower/upper case format.
223 #
224 # Certain Apache Airflow configuration property values are
225 # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists),
226 # and cannot be overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -0700227 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700228 },
229 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 &quot;nodeConfig&quot;: { # The configuration information for the Kubernetes Engine nodes running # The configuration used for the Kubernetes Engine cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700231 # the Apache Airflow software.
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700233 # communications, specified as a
234 # [relative resource
235 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 # &quot;projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700237 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 # If a subnetwork is provided, `nodeConfig.network` must also be provided,
239 # and the subnetwork must belong to the enclosing environment&#x27;s project and
240 # location.
241 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the # Optional. The IPAllocationPolicy fields for the GKE cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700242 # GKE cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700243 &quot;useIpAliases&quot;: True or False, # Optional. Whether or not to enable Alias IPs in the GKE cluster.
244 # If `true`, a VPC-native cluster is created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the services&#x27; secondary range used to allocate
246 # IP addresses to the cluster. Specify either `services_secondary_range_name`
247 # or `services_ipv4_cidr_block` but not both.
248 #
249 # This field is applicable only when `use_ip_aliases` is true.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700250 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the cluster&#x27;s secondary range used to allocate
251 # IP addresses to pods. Specify either `cluster_secondary_range_name`
252 # or `cluster_ipv4_cidr_block` but not both.
253 #
254 # This field is applicable only when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range used to allocate IP addresses to pods in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700256 # the cluster.
257 #
258 # This field is applicable only when `use_ip_aliases` is true.
259 #
260 # Set to blank to have GKE choose a range with the default size.
261 #
262 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
263 # netmask.
264 #
265 # Set to a
266 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
267 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
268 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
269 # to use.
270 # Specify `cluster_secondary_range_name` or `cluster_ipv4_cidr_block`
271 # but not both.
Bu Sun Kim65020912020-05-20 12:08:20 -0700272 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range of the services IP addresses in this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700273 # cluster.
274 #
275 # This field is applicable only when `use_ip_aliases` is true.
276 #
277 # Set to blank to have GKE choose a range with the default size.
278 #
279 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
280 # netmask.
281 #
282 # Set to a
283 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
284 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
285 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
286 # to use.
287 # Specify `services_secondary_range_name` or `services_ipv4_cidr_block`
288 # but not both.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700289 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 &quot;diskSizeGb&quot;: 42, # Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
291 # If unspecified, defaults to 100GB. Cannot be updated.
292 &quot;tags&quot;: [ # Optional. The list of instance tags applied to all node VMs. Tags are used
293 # to identify valid sources or targets for network firewalls. Each tag within
294 # the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
295 # Cannot be updated.
296 &quot;A String&quot;,
297 ],
298 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Google Cloud Platform Service Account to be used by the node
299 # VMs. If a service account is not specified, the &quot;default&quot; Compute Engine
300 # service account is used. Cannot be updated.
301 &quot;location&quot;: &quot;A String&quot;, # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
Dan O'Mearadd494642020-05-01 07:42:23 -0700302 # to deploy the VMs used to run the Apache Airflow software, specified as a
303 # [relative resource
304 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 # &quot;projects/{projectId}/zones/{zoneId}&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700306 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 # This `location` must belong to the enclosing environment&#x27;s project and
Dan O'Mearadd494642020-05-01 07:42:23 -0700308 # location. If both this field and `nodeConfig.machineType` are specified,
309 # `nodeConfig.machineType` must belong to this `location`; if both are
310 # unspecified, the service will pick a zone in the Compute Engine region
311 # corresponding to the Cloud Composer location, and propagate that choice to
312 # both fields. If only one field (`location` or `nodeConfig.machineType`) is
313 # specified, the location information from the specified field will be
314 # propagated to the unspecified field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &quot;machineType&quot;: &quot;A String&quot;, # Optional. The Compute Engine
316 # [machine type](/compute/docs/machine-types) used for cluster instances,
317 # specified as a
318 # [relative resource
319 # name](/apis/design/resource_names#relative_resource_name). For example:
320 # &quot;projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}&quot;.
321 #
322 # The `machineType` must belong to the enclosing environment&#x27;s project and
323 # location. If both this field and `nodeConfig.location` are specified,
324 # this `machineType` must belong to the `nodeConfig.location`; if both are
325 # unspecified, the service will pick a zone in the Compute Engine region
326 # corresponding to the Cloud Composer location, and propagate that choice to
327 # both fields. If exactly one of this field and `nodeConfig.location` is
328 # specified, the location information from the specified field will be
329 # propagated to the unspecified field.
330 #
331 # The `machineTypeId` must not be a [shared-core machine
332 # type](/compute/docs/machine-types#sharedcore).
333 #
334 # If this field is unspecified, the `machineTypeId` defaults
335 # to &quot;n1-standard-1&quot;.
336 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine
337 # communications, specified as a
338 # [relative resource
339 # name](/apis/design/resource_names#relative_resource_name). For example:
340 # &quot;projects/{projectId}/global/networks/{networkId}&quot;.
341 #
342 # If unspecified, the default network in the environment&#x27;s project is used.
343 # If a [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
344 # is provided, `nodeConfig.subnetwork` must also be provided. For
345 # [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see
346 # `nodeConfig.subnetwork`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700347 &quot;oauthScopes&quot;: [ # Optional. The set of Google API scopes to be made available on all
348 # node VMs. If `oauth_scopes` is empty, defaults to
349 # [&quot;https://www.googleapis.com/auth/cloud-platform&quot;]. Cannot be updated.
350 &quot;A String&quot;,
351 ],
352 },
353 &quot;nodeCount&quot;: 42, # The number of nodes in the Kubernetes Engine cluster that will be
354 # used to run this environment.
355 &quot;databaseConfig&quot;: { # The configuration of Cloud SQL instance that is used by the Apache Airflow # Optional. The configuration settings for Cloud SQL instance used internally by Apache
356 # Airflow software.
357 # software.
358 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Cloud SQL tier used by Airflow database.
359 # If not specified, db-n1-standard-2 will be used.
360 },
361 &quot;webServerConfig&quot;: { # The configuration settings for the Airflow web server App Engine instance. # Optional. The configuration settings for the Airflow web server App Engine instance.
362 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Machine type on which Airflow web server is running.
363 # For example: composer-n1-webserver-2, composer-n1-webserver-4,
364 # composer-n1-webserver-8.
365 # If not specified, composer-n1-webserver-2 will be used.
366 # Value custom is returned only in response, if Airflow web server parameters
367 # were manually changed to a non-standard values.
368 },
369 &quot;webServerNetworkAccessControl&quot;: { # Network-level access control policy for the Airflow web server. # Optional. The network-level access control policy for the Airflow web server. If
370 # unspecified, no network-level access restrictions will be applied.
371 &quot;allowedIpRanges&quot;: [ # A collection of allowed IP ranges with descriptions.
372 { # Allowed IP range with user-provided description.
373 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description. It must contain at most 300 characters.
374 &quot;value&quot;: &quot;A String&quot;, # IP address or range, defined using CIDR notation, of requests that this
375 # rule applies to.
376 # Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32`
377 # or `2001:0db8:0000:0042:0000:8a2e:0370:7334`.
378 #
379 #
380 # &lt;p&gt;IP range prefixes should be properly truncated. For example,
381 # `1.2.3.4/24` should be truncated to `1.2.3.0/24`. Similarly, for IPv6,
382 # `2001:db8::1/32` should be truncated to `2001:db8::/32`.
383 },
384 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700385 },
386 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700387 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was last modified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700388 &quot;name&quot;: &quot;A String&quot;, # The resource name of the environment, in the form:
389 # &quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot;
390 #
391 # EnvironmentId must start with a lowercase letter followed by up to 63
392 # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
393 &quot;uuid&quot;: &quot;A String&quot;, # Output only. The UUID (Universally Unique IDentifier) associated with this environment.
Dan O'Mearadd494642020-05-01 07:42:23 -0700394 # This value is generated when the environment is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700395 }
396
397 x__xgafv: string, V1 error format.
398 Allowed values
399 1 - v1 error format
400 2 - v2 error format
401
402Returns:
403 An object of the form:
404
405 { # This resource represents a long-running operation that is the result of a
406 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700407 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
408 # originally returns it. If you use the default HTTP mapping, the
409 # `name` should be a resource name ending with `operations/{unique_id}`.
410 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
411 # different programming environments, including REST APIs and RPC APIs. It is
412 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
413 # three pieces of data: error code, error message, and error details.
414 #
415 # You can find out more about this error model and how to work with it in the
416 # [API Design Guide](https://cloud.google.com/apis/design/errors).
417 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
418 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
419 # user-facing error message should be localized and sent in the
420 # google.rpc.Status.details field, or localized by the client.
421 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
422 # message types for APIs to use.
423 {
424 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
425 },
426 ],
427 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700428 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
429 # contains progress information and common metadata such as create time.
430 # Some services might not provide such metadata. Any method that returns a
431 # long-running operation should document the metadata type, if any.
432 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700433 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700434 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700435 # If `true`, the operation is completed, and either `error` or `response` is
436 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700437 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700438 # method returns no data on success, such as `Delete`, the response is
439 # `google.protobuf.Empty`. If the original method is standard
440 # `Get`/`Create`/`Update`, the response should be the resource. For other
441 # methods, the response should have the type `XxxResponse`, where `Xxx`
442 # is the original method name. For example, if the original method name
443 # is `TakeSnapshot()`, the inferred response type is
444 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700446 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700447 }</pre>
448</div>
449
450<div class="method">
451 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
452 <pre>Delete an environment.
453
454Args:
455 name: string, The environment to delete, in the form:
Bu Sun Kim65020912020-05-20 12:08:20 -0700456&quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700457 x__xgafv: string, V1 error format.
458 Allowed values
459 1 - v1 error format
460 2 - v2 error format
461
462Returns:
463 An object of the form:
464
465 { # This resource represents a long-running operation that is the result of a
466 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700467 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
468 # originally returns it. If you use the default HTTP mapping, the
469 # `name` should be a resource name ending with `operations/{unique_id}`.
470 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
471 # different programming environments, including REST APIs and RPC APIs. It is
472 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
473 # three pieces of data: error code, error message, and error details.
474 #
475 # You can find out more about this error model and how to work with it in the
476 # [API Design Guide](https://cloud.google.com/apis/design/errors).
477 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
478 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
479 # user-facing error message should be localized and sent in the
480 # google.rpc.Status.details field, or localized by the client.
481 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
482 # message types for APIs to use.
483 {
484 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
485 },
486 ],
487 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700488 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
489 # contains progress information and common metadata such as create time.
490 # Some services might not provide such metadata. Any method that returns a
491 # long-running operation should document the metadata type, if any.
492 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700493 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700494 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700495 # If `true`, the operation is completed, and either `error` or `response` is
496 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700497 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700498 # method returns no data on success, such as `Delete`, the response is
499 # `google.protobuf.Empty`. If the original method is standard
500 # `Get`/`Create`/`Update`, the response should be the resource. For other
501 # methods, the response should have the type `XxxResponse`, where `Xxx`
502 # is the original method name. For example, if the original method name
503 # is `TakeSnapshot()`, the inferred response type is
504 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700505 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700506 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700507 }</pre>
508</div>
509
510<div class="method">
511 <code class="details" id="get">get(name, x__xgafv=None)</code>
512 <pre>Get an existing environment.
513
514Args:
515 name: string, The resource name of the environment to get, in the form:
Bu Sun Kim65020912020-05-20 12:08:20 -0700516&quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700517 x__xgafv: string, V1 error format.
518 Allowed values
519 1 - v1 error format
520 2 - v2 error format
521
522Returns:
523 An object of the form:
524
525 { # An environment for running orchestration tasks.
Bu Sun Kim65020912020-05-20 12:08:20 -0700526 &quot;labels&quot;: { # Optional. User-defined labels for this environment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700527 # The labels map can contain no more than 64 entries. Entries of the labels
528 # map are UTF8 strings that comply with the following restrictions:
529 #
530 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
531 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
Dan O'Mearadd494642020-05-01 07:42:23 -0700532 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700533 # size.
Bu Sun Kim65020912020-05-20 12:08:20 -0700534 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700535 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700536 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
537 &quot;state&quot;: &quot;A String&quot;, # The current state of the environment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700538 &quot;config&quot;: { # Configuration information for an environment. # Configuration parameters for this environment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700539 &quot;dagGcsPrefix&quot;: &quot;A String&quot;, # Output only. The Cloud Storage prefix of the DAGs for this environment. Although Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700540 # Storage objects reside in a flat namespace, a hierarchical file tree
Bu Sun Kim65020912020-05-20 12:08:20 -0700541 # can be simulated using &quot;/&quot;-delimited object name prefixes. DAG objects for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700542 # this environment reside in a simulated directory with the given prefix.
Bu Sun Kim65020912020-05-20 12:08:20 -0700543 &quot;privateEnvironmentConfig&quot;: { # The configuration information for configuring a Private IP Cloud Composer # The configuration used for the Private IP Cloud Composer environment.
544 # environment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700545 &quot;cloudSqlIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range in tenant project will be reserved for
546 # Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block
547 &quot;privateClusterConfig&quot;: { # Configuration options for the private GKE cluster in a Cloud Composer # Optional. Configuration for the private GKE cluster for a Private IP
548 # Cloud Composer environment.
549 # environment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700550 &quot;masterIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range in CIDR notation to use for the hosted master network. This
551 # range is used for assigning internal IP addresses to the cluster
552 # master or set of masters and to the internal load balancer virtual IP.
553 # This range must not overlap with any other ranges in use
554 # within the cluster&#x27;s network.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700555 &quot;enablePrivateEndpoint&quot;: True or False, # Optional. If `true`, access to the public endpoint of the GKE cluster is
556 # denied.
557 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
558 # left blank, the default value of &#x27;172.16.0.0/23&#x27; is used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700559 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 &quot;webServerIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range reserved for the tenant project&#x27;s App Engine VMs.
561 &quot;webServerIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range for web server will be reserved. Needs
562 # to be disjoint from private_cluster_config.master_ipv4_cidr_block and
563 # cloud_sql_ipv4_cidr_block.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700564 &quot;enablePrivateEnvironment&quot;: True or False, # Optional. If `true`, a Private IP Cloud Composer environment is created.
565 # If this field is true, `use_ip_aliases` must be true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700566 },
567 &quot;gkeCluster&quot;: &quot;A String&quot;, # Output only. The Kubernetes Engine cluster used to run this environment.
568 &quot;airflowUri&quot;: &quot;A String&quot;, # Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
569 # [Airflow web
570 # interface](/composer/docs/how-to/accessing/airflow-web-interface)).
571 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
572 &quot;envVariables&quot;: { # Optional. Additional environment variables to provide to the Apache Airflow
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700573 # scheduler, worker, and webserver processes.
574 #
575 # Environment variable names must match the regular expression
576 # `a-zA-Z_*`. They cannot specify Apache Airflow
577 # software configuration overrides (they cannot match the regular expression
578 # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
579 # following reserved names:
580 #
581 # * `AIRFLOW_HOME`
582 # * `C_FORCE_ROOT`
583 # * `CONTAINER_NAME`
584 # * `DAGS_FOLDER`
585 # * `GCP_PROJECT`
586 # * `GCS_BUCKET`
587 # * `GKE_CLUSTER_NAME`
588 # * `SQL_DATABASE`
589 # * `SQL_INSTANCE`
590 # * `SQL_PASSWORD`
591 # * `SQL_PROJECT`
592 # * `SQL_REGION`
593 # * `SQL_USER`
Bu Sun Kim65020912020-05-20 12:08:20 -0700594 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700595 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700596 &quot;pythonVersion&quot;: &quot;A String&quot;, # Optional. The major version of Python used to run the Apache Airflow
597 # scheduler, worker, and webserver processes.
598 #
599 # Can be set to &#x27;2&#x27; or &#x27;3&#x27;. If not specified, the default is &#x27;2&#x27;. Cannot be
600 # updated.
601 &quot;pypiPackages&quot;: { # Optional. Custom Python Package Index (PyPI) packages to be installed in
602 # the environment.
603 #
604 # Keys refer to the lowercase package name such as &quot;numpy&quot;
605 # and values are the lowercase extras and version specifier such as
606 # &quot;==1.12.0&quot;, &quot;[devel,gcp_api]&quot;, or &quot;[devel]&gt;=1.8.2, &lt;1.9.2&quot;. To specify a
607 # package without pinning it to a version specifier, use the empty string as
608 # the value.
609 &quot;a_key&quot;: &quot;A String&quot;,
610 },
611 &quot;imageVersion&quot;: &quot;A String&quot;, # The version of the software running in the environment.
612 # This encapsulates both the version of Cloud Composer functionality and the
613 # version of Apache Airflow. It must match the regular expression
614 # `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
615 # When used as input, the server also checks if the provided version is
616 # supported and denies the request for an unsupported version.
617 #
618 # The Cloud Composer portion of the version is a
619 # [semantic version](https://semver.org) or `latest`. When the patch version
620 # is omitted, the current Cloud Composer patch version is selected.
621 # When `latest` is provided instead of an explicit version number,
622 # the server replaces `latest` with the current Cloud Composer version
623 # and stores that version number in the same field.
624 #
625 # The portion of the image version that follows &lt;em&gt;airflow-&lt;/em&gt; is an
626 # official Apache Airflow repository
627 # [release name](https://github.com/apache/incubator-airflow/releases).
628 #
629 # See also [Version
630 # List](/composer/docs/concepts/versioning/composer-versions).
631 &quot;airflowConfigOverrides&quot;: { # Optional. Apache Airflow configuration properties to override.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700632 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700633 # Property keys contain the section and property names, separated by a
Bu Sun Kim65020912020-05-20 12:08:20 -0700634 # hyphen, for example &quot;core-dags_are_paused_at_creation&quot;. Section names must
635 # not contain hyphens (&quot;-&quot;), opening square brackets (&quot;[&quot;), or closing
636 # square brackets (&quot;]&quot;). The property name must not be empty and must not
637 # contain an equals sign (&quot;=&quot;) or semicolon (&quot;;&quot;). Section and property names
638 # must not contain a period (&quot;.&quot;). Apache Airflow configuration property
Dan O'Mearadd494642020-05-01 07:42:23 -0700639 # names must be written in
640 # [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
641 # contain any character, and can be written in any lower/upper case format.
642 #
643 # Certain Apache Airflow configuration property values are
644 # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists),
645 # and cannot be overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -0700646 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700647 },
648 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700649 &quot;nodeConfig&quot;: { # The configuration information for the Kubernetes Engine nodes running # The configuration used for the Kubernetes Engine cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700650 # the Apache Airflow software.
Bu Sun Kim65020912020-05-20 12:08:20 -0700651 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700652 # communications, specified as a
653 # [relative resource
654 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700655 # &quot;projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700656 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700657 # If a subnetwork is provided, `nodeConfig.network` must also be provided,
658 # and the subnetwork must belong to the enclosing environment&#x27;s project and
659 # location.
660 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the # Optional. The IPAllocationPolicy fields for the GKE cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700661 # GKE cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700662 &quot;useIpAliases&quot;: True or False, # Optional. Whether or not to enable Alias IPs in the GKE cluster.
663 # If `true`, a VPC-native cluster is created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700664 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the services&#x27; secondary range used to allocate
665 # IP addresses to the cluster. Specify either `services_secondary_range_name`
666 # or `services_ipv4_cidr_block` but not both.
667 #
668 # This field is applicable only when `use_ip_aliases` is true.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700669 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the cluster&#x27;s secondary range used to allocate
670 # IP addresses to pods. Specify either `cluster_secondary_range_name`
671 # or `cluster_ipv4_cidr_block` but not both.
672 #
673 # This field is applicable only when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700674 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range used to allocate IP addresses to pods in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700675 # the cluster.
676 #
677 # This field is applicable only when `use_ip_aliases` is true.
678 #
679 # Set to blank to have GKE choose a range with the default size.
680 #
681 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
682 # netmask.
683 #
684 # Set to a
685 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
686 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
687 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
688 # to use.
689 # Specify `cluster_secondary_range_name` or `cluster_ipv4_cidr_block`
690 # but not both.
Bu Sun Kim65020912020-05-20 12:08:20 -0700691 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range of the services IP addresses in this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700692 # cluster.
693 #
694 # This field is applicable only when `use_ip_aliases` is true.
695 #
696 # Set to blank to have GKE choose a range with the default size.
697 #
698 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
699 # netmask.
700 #
701 # Set to a
702 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
703 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
704 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
705 # to use.
706 # Specify `services_secondary_range_name` or `services_ipv4_cidr_block`
707 # but not both.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700708 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700709 &quot;diskSizeGb&quot;: 42, # Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
710 # If unspecified, defaults to 100GB. Cannot be updated.
711 &quot;tags&quot;: [ # Optional. The list of instance tags applied to all node VMs. Tags are used
712 # to identify valid sources or targets for network firewalls. Each tag within
713 # the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
714 # Cannot be updated.
715 &quot;A String&quot;,
716 ],
717 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Google Cloud Platform Service Account to be used by the node
718 # VMs. If a service account is not specified, the &quot;default&quot; Compute Engine
719 # service account is used. Cannot be updated.
720 &quot;location&quot;: &quot;A String&quot;, # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
Dan O'Mearadd494642020-05-01 07:42:23 -0700721 # to deploy the VMs used to run the Apache Airflow software, specified as a
722 # [relative resource
723 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700724 # &quot;projects/{projectId}/zones/{zoneId}&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700725 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700726 # This `location` must belong to the enclosing environment&#x27;s project and
Dan O'Mearadd494642020-05-01 07:42:23 -0700727 # location. If both this field and `nodeConfig.machineType` are specified,
728 # `nodeConfig.machineType` must belong to this `location`; if both are
729 # unspecified, the service will pick a zone in the Compute Engine region
730 # corresponding to the Cloud Composer location, and propagate that choice to
731 # both fields. If only one field (`location` or `nodeConfig.machineType`) is
732 # specified, the location information from the specified field will be
733 # propagated to the unspecified field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700734 &quot;machineType&quot;: &quot;A String&quot;, # Optional. The Compute Engine
735 # [machine type](/compute/docs/machine-types) used for cluster instances,
736 # specified as a
737 # [relative resource
738 # name](/apis/design/resource_names#relative_resource_name). For example:
739 # &quot;projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}&quot;.
740 #
741 # The `machineType` must belong to the enclosing environment&#x27;s project and
742 # location. If both this field and `nodeConfig.location` are specified,
743 # this `machineType` must belong to the `nodeConfig.location`; if both are
744 # unspecified, the service will pick a zone in the Compute Engine region
745 # corresponding to the Cloud Composer location, and propagate that choice to
746 # both fields. If exactly one of this field and `nodeConfig.location` is
747 # specified, the location information from the specified field will be
748 # propagated to the unspecified field.
749 #
750 # The `machineTypeId` must not be a [shared-core machine
751 # type](/compute/docs/machine-types#sharedcore).
752 #
753 # If this field is unspecified, the `machineTypeId` defaults
754 # to &quot;n1-standard-1&quot;.
755 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine
756 # communications, specified as a
757 # [relative resource
758 # name](/apis/design/resource_names#relative_resource_name). For example:
759 # &quot;projects/{projectId}/global/networks/{networkId}&quot;.
760 #
761 # If unspecified, the default network in the environment&#x27;s project is used.
762 # If a [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
763 # is provided, `nodeConfig.subnetwork` must also be provided. For
764 # [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see
765 # `nodeConfig.subnetwork`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700766 &quot;oauthScopes&quot;: [ # Optional. The set of Google API scopes to be made available on all
767 # node VMs. If `oauth_scopes` is empty, defaults to
768 # [&quot;https://www.googleapis.com/auth/cloud-platform&quot;]. Cannot be updated.
769 &quot;A String&quot;,
770 ],
771 },
772 &quot;nodeCount&quot;: 42, # The number of nodes in the Kubernetes Engine cluster that will be
773 # used to run this environment.
774 &quot;databaseConfig&quot;: { # The configuration of Cloud SQL instance that is used by the Apache Airflow # Optional. The configuration settings for Cloud SQL instance used internally by Apache
775 # Airflow software.
776 # software.
777 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Cloud SQL tier used by Airflow database.
778 # If not specified, db-n1-standard-2 will be used.
779 },
780 &quot;webServerConfig&quot;: { # The configuration settings for the Airflow web server App Engine instance. # Optional. The configuration settings for the Airflow web server App Engine instance.
781 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Machine type on which Airflow web server is running.
782 # For example: composer-n1-webserver-2, composer-n1-webserver-4,
783 # composer-n1-webserver-8.
784 # If not specified, composer-n1-webserver-2 will be used.
785 # Value custom is returned only in response, if Airflow web server parameters
786 # were manually changed to a non-standard values.
787 },
788 &quot;webServerNetworkAccessControl&quot;: { # Network-level access control policy for the Airflow web server. # Optional. The network-level access control policy for the Airflow web server. If
789 # unspecified, no network-level access restrictions will be applied.
790 &quot;allowedIpRanges&quot;: [ # A collection of allowed IP ranges with descriptions.
791 { # Allowed IP range with user-provided description.
792 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description. It must contain at most 300 characters.
793 &quot;value&quot;: &quot;A String&quot;, # IP address or range, defined using CIDR notation, of requests that this
794 # rule applies to.
795 # Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32`
796 # or `2001:0db8:0000:0042:0000:8a2e:0370:7334`.
797 #
798 #
799 # &lt;p&gt;IP range prefixes should be properly truncated. For example,
800 # `1.2.3.4/24` should be truncated to `1.2.3.0/24`. Similarly, for IPv6,
801 # `2001:db8::1/32` should be truncated to `2001:db8::/32`.
802 },
803 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700804 },
805 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700806 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was last modified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700807 &quot;name&quot;: &quot;A String&quot;, # The resource name of the environment, in the form:
808 # &quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot;
809 #
810 # EnvironmentId must start with a lowercase letter followed by up to 63
811 # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
812 &quot;uuid&quot;: &quot;A String&quot;, # Output only. The UUID (Universally Unique IDentifier) associated with this environment.
Dan O'Mearadd494642020-05-01 07:42:23 -0700813 # This value is generated when the environment is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700814 }</pre>
815</div>
816
817<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700818 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700819 <pre>List environments.
820
821Args:
822 parent: string, List environments in the given project and location, in the form:
Bu Sun Kim65020912020-05-20 12:08:20 -0700823&quot;projects/{projectId}/locations/{locationId}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700824 pageToken: string, The next_page_token value returned from a previous List request, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700825 pageSize: integer, The maximum number of environments to return.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700826 x__xgafv: string, V1 error format.
827 Allowed values
828 1 - v1 error format
829 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700830
831Returns:
832 An object of the form:
833
834 { # The environments in a project and location.
Bu Sun Kim65020912020-05-20 12:08:20 -0700835 &quot;nextPageToken&quot;: &quot;A String&quot;, # The page token used to query for the next page if one exists.
836 &quot;environments&quot;: [ # The list of environments returned by a ListEnvironmentsRequest.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700837 { # An environment for running orchestration tasks.
Bu Sun Kim65020912020-05-20 12:08:20 -0700838 &quot;labels&quot;: { # Optional. User-defined labels for this environment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700839 # The labels map can contain no more than 64 entries. Entries of the labels
840 # map are UTF8 strings that comply with the following restrictions:
841 #
842 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
843 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
Dan O'Mearadd494642020-05-01 07:42:23 -0700844 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700845 # size.
Bu Sun Kim65020912020-05-20 12:08:20 -0700846 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700847 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700848 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
849 &quot;state&quot;: &quot;A String&quot;, # The current state of the environment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700850 &quot;config&quot;: { # Configuration information for an environment. # Configuration parameters for this environment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700851 &quot;dagGcsPrefix&quot;: &quot;A String&quot;, # Output only. The Cloud Storage prefix of the DAGs for this environment. Although Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700852 # Storage objects reside in a flat namespace, a hierarchical file tree
Bu Sun Kim65020912020-05-20 12:08:20 -0700853 # can be simulated using &quot;/&quot;-delimited object name prefixes. DAG objects for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700854 # this environment reside in a simulated directory with the given prefix.
Bu Sun Kim65020912020-05-20 12:08:20 -0700855 &quot;privateEnvironmentConfig&quot;: { # The configuration information for configuring a Private IP Cloud Composer # The configuration used for the Private IP Cloud Composer environment.
856 # environment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700857 &quot;cloudSqlIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range in tenant project will be reserved for
858 # Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block
859 &quot;privateClusterConfig&quot;: { # Configuration options for the private GKE cluster in a Cloud Composer # Optional. Configuration for the private GKE cluster for a Private IP
860 # Cloud Composer environment.
861 # environment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700862 &quot;masterIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range in CIDR notation to use for the hosted master network. This
863 # range is used for assigning internal IP addresses to the cluster
864 # master or set of masters and to the internal load balancer virtual IP.
865 # This range must not overlap with any other ranges in use
866 # within the cluster&#x27;s network.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700867 &quot;enablePrivateEndpoint&quot;: True or False, # Optional. If `true`, access to the public endpoint of the GKE cluster is
868 # denied.
869 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
870 # left blank, the default value of &#x27;172.16.0.0/23&#x27; is used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700871 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700872 &quot;webServerIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range reserved for the tenant project&#x27;s App Engine VMs.
873 &quot;webServerIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range for web server will be reserved. Needs
874 # to be disjoint from private_cluster_config.master_ipv4_cidr_block and
875 # cloud_sql_ipv4_cidr_block.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700876 &quot;enablePrivateEnvironment&quot;: True or False, # Optional. If `true`, a Private IP Cloud Composer environment is created.
877 # If this field is true, `use_ip_aliases` must be true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700878 },
879 &quot;gkeCluster&quot;: &quot;A String&quot;, # Output only. The Kubernetes Engine cluster used to run this environment.
880 &quot;airflowUri&quot;: &quot;A String&quot;, # Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
881 # [Airflow web
882 # interface](/composer/docs/how-to/accessing/airflow-web-interface)).
883 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
884 &quot;envVariables&quot;: { # Optional. Additional environment variables to provide to the Apache Airflow
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700885 # scheduler, worker, and webserver processes.
886 #
887 # Environment variable names must match the regular expression
888 # `a-zA-Z_*`. They cannot specify Apache Airflow
889 # software configuration overrides (they cannot match the regular expression
890 # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
891 # following reserved names:
892 #
893 # * `AIRFLOW_HOME`
894 # * `C_FORCE_ROOT`
895 # * `CONTAINER_NAME`
896 # * `DAGS_FOLDER`
897 # * `GCP_PROJECT`
898 # * `GCS_BUCKET`
899 # * `GKE_CLUSTER_NAME`
900 # * `SQL_DATABASE`
901 # * `SQL_INSTANCE`
902 # * `SQL_PASSWORD`
903 # * `SQL_PROJECT`
904 # * `SQL_REGION`
905 # * `SQL_USER`
Bu Sun Kim65020912020-05-20 12:08:20 -0700906 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700907 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700908 &quot;pythonVersion&quot;: &quot;A String&quot;, # Optional. The major version of Python used to run the Apache Airflow
909 # scheduler, worker, and webserver processes.
910 #
911 # Can be set to &#x27;2&#x27; or &#x27;3&#x27;. If not specified, the default is &#x27;2&#x27;. Cannot be
912 # updated.
913 &quot;pypiPackages&quot;: { # Optional. Custom Python Package Index (PyPI) packages to be installed in
914 # the environment.
915 #
916 # Keys refer to the lowercase package name such as &quot;numpy&quot;
917 # and values are the lowercase extras and version specifier such as
918 # &quot;==1.12.0&quot;, &quot;[devel,gcp_api]&quot;, or &quot;[devel]&gt;=1.8.2, &lt;1.9.2&quot;. To specify a
919 # package without pinning it to a version specifier, use the empty string as
920 # the value.
921 &quot;a_key&quot;: &quot;A String&quot;,
922 },
923 &quot;imageVersion&quot;: &quot;A String&quot;, # The version of the software running in the environment.
924 # This encapsulates both the version of Cloud Composer functionality and the
925 # version of Apache Airflow. It must match the regular expression
926 # `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
927 # When used as input, the server also checks if the provided version is
928 # supported and denies the request for an unsupported version.
929 #
930 # The Cloud Composer portion of the version is a
931 # [semantic version](https://semver.org) or `latest`. When the patch version
932 # is omitted, the current Cloud Composer patch version is selected.
933 # When `latest` is provided instead of an explicit version number,
934 # the server replaces `latest` with the current Cloud Composer version
935 # and stores that version number in the same field.
936 #
937 # The portion of the image version that follows &lt;em&gt;airflow-&lt;/em&gt; is an
938 # official Apache Airflow repository
939 # [release name](https://github.com/apache/incubator-airflow/releases).
940 #
941 # See also [Version
942 # List](/composer/docs/concepts/versioning/composer-versions).
943 &quot;airflowConfigOverrides&quot;: { # Optional. Apache Airflow configuration properties to override.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700944 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700945 # Property keys contain the section and property names, separated by a
Bu Sun Kim65020912020-05-20 12:08:20 -0700946 # hyphen, for example &quot;core-dags_are_paused_at_creation&quot;. Section names must
947 # not contain hyphens (&quot;-&quot;), opening square brackets (&quot;[&quot;), or closing
948 # square brackets (&quot;]&quot;). The property name must not be empty and must not
949 # contain an equals sign (&quot;=&quot;) or semicolon (&quot;;&quot;). Section and property names
950 # must not contain a period (&quot;.&quot;). Apache Airflow configuration property
Dan O'Mearadd494642020-05-01 07:42:23 -0700951 # names must be written in
952 # [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
953 # contain any character, and can be written in any lower/upper case format.
954 #
955 # Certain Apache Airflow configuration property values are
956 # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists),
957 # and cannot be overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -0700958 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700959 },
960 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700961 &quot;nodeConfig&quot;: { # The configuration information for the Kubernetes Engine nodes running # The configuration used for the Kubernetes Engine cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700962 # the Apache Airflow software.
Bu Sun Kim65020912020-05-20 12:08:20 -0700963 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700964 # communications, specified as a
965 # [relative resource
966 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700967 # &quot;projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700968 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700969 # If a subnetwork is provided, `nodeConfig.network` must also be provided,
970 # and the subnetwork must belong to the enclosing environment&#x27;s project and
971 # location.
972 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the # Optional. The IPAllocationPolicy fields for the GKE cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700973 # GKE cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700974 &quot;useIpAliases&quot;: True or False, # Optional. Whether or not to enable Alias IPs in the GKE cluster.
975 # If `true`, a VPC-native cluster is created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700976 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the services&#x27; secondary range used to allocate
977 # IP addresses to the cluster. Specify either `services_secondary_range_name`
978 # or `services_ipv4_cidr_block` but not both.
979 #
980 # This field is applicable only when `use_ip_aliases` is true.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700981 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the cluster&#x27;s secondary range used to allocate
982 # IP addresses to pods. Specify either `cluster_secondary_range_name`
983 # or `cluster_ipv4_cidr_block` but not both.
984 #
985 # This field is applicable only when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700986 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range used to allocate IP addresses to pods in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700987 # the cluster.
988 #
989 # This field is applicable only when `use_ip_aliases` is true.
990 #
991 # Set to blank to have GKE choose a range with the default size.
992 #
993 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
994 # netmask.
995 #
996 # Set to a
997 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
998 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
999 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1000 # to use.
1001 # Specify `cluster_secondary_range_name` or `cluster_ipv4_cidr_block`
1002 # but not both.
Bu Sun Kim65020912020-05-20 12:08:20 -07001003 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range of the services IP addresses in this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001004 # cluster.
1005 #
1006 # This field is applicable only when `use_ip_aliases` is true.
1007 #
1008 # Set to blank to have GKE choose a range with the default size.
1009 #
1010 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
1011 # netmask.
1012 #
1013 # Set to a
1014 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1015 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1016 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1017 # to use.
1018 # Specify `services_secondary_range_name` or `services_ipv4_cidr_block`
1019 # but not both.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001020 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001021 &quot;diskSizeGb&quot;: 42, # Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
1022 # If unspecified, defaults to 100GB. Cannot be updated.
1023 &quot;tags&quot;: [ # Optional. The list of instance tags applied to all node VMs. Tags are used
1024 # to identify valid sources or targets for network firewalls. Each tag within
1025 # the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
1026 # Cannot be updated.
1027 &quot;A String&quot;,
1028 ],
1029 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Google Cloud Platform Service Account to be used by the node
1030 # VMs. If a service account is not specified, the &quot;default&quot; Compute Engine
1031 # service account is used. Cannot be updated.
1032 &quot;location&quot;: &quot;A String&quot;, # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
Dan O'Mearadd494642020-05-01 07:42:23 -07001033 # to deploy the VMs used to run the Apache Airflow software, specified as a
1034 # [relative resource
1035 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -07001036 # &quot;projects/{projectId}/zones/{zoneId}&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -07001037 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001038 # This `location` must belong to the enclosing environment&#x27;s project and
Dan O'Mearadd494642020-05-01 07:42:23 -07001039 # location. If both this field and `nodeConfig.machineType` are specified,
1040 # `nodeConfig.machineType` must belong to this `location`; if both are
1041 # unspecified, the service will pick a zone in the Compute Engine region
1042 # corresponding to the Cloud Composer location, and propagate that choice to
1043 # both fields. If only one field (`location` or `nodeConfig.machineType`) is
1044 # specified, the location information from the specified field will be
1045 # propagated to the unspecified field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001046 &quot;machineType&quot;: &quot;A String&quot;, # Optional. The Compute Engine
1047 # [machine type](/compute/docs/machine-types) used for cluster instances,
1048 # specified as a
1049 # [relative resource
1050 # name](/apis/design/resource_names#relative_resource_name). For example:
1051 # &quot;projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}&quot;.
1052 #
1053 # The `machineType` must belong to the enclosing environment&#x27;s project and
1054 # location. If both this field and `nodeConfig.location` are specified,
1055 # this `machineType` must belong to the `nodeConfig.location`; if both are
1056 # unspecified, the service will pick a zone in the Compute Engine region
1057 # corresponding to the Cloud Composer location, and propagate that choice to
1058 # both fields. If exactly one of this field and `nodeConfig.location` is
1059 # specified, the location information from the specified field will be
1060 # propagated to the unspecified field.
1061 #
1062 # The `machineTypeId` must not be a [shared-core machine
1063 # type](/compute/docs/machine-types#sharedcore).
1064 #
1065 # If this field is unspecified, the `machineTypeId` defaults
1066 # to &quot;n1-standard-1&quot;.
1067 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine
1068 # communications, specified as a
1069 # [relative resource
1070 # name](/apis/design/resource_names#relative_resource_name). For example:
1071 # &quot;projects/{projectId}/global/networks/{networkId}&quot;.
1072 #
1073 # If unspecified, the default network in the environment&#x27;s project is used.
1074 # If a [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
1075 # is provided, `nodeConfig.subnetwork` must also be provided. For
1076 # [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see
1077 # `nodeConfig.subnetwork`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001078 &quot;oauthScopes&quot;: [ # Optional. The set of Google API scopes to be made available on all
1079 # node VMs. If `oauth_scopes` is empty, defaults to
1080 # [&quot;https://www.googleapis.com/auth/cloud-platform&quot;]. Cannot be updated.
1081 &quot;A String&quot;,
1082 ],
1083 },
1084 &quot;nodeCount&quot;: 42, # The number of nodes in the Kubernetes Engine cluster that will be
1085 # used to run this environment.
1086 &quot;databaseConfig&quot;: { # The configuration of Cloud SQL instance that is used by the Apache Airflow # Optional. The configuration settings for Cloud SQL instance used internally by Apache
1087 # Airflow software.
1088 # software.
1089 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Cloud SQL tier used by Airflow database.
1090 # If not specified, db-n1-standard-2 will be used.
1091 },
1092 &quot;webServerConfig&quot;: { # The configuration settings for the Airflow web server App Engine instance. # Optional. The configuration settings for the Airflow web server App Engine instance.
1093 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Machine type on which Airflow web server is running.
1094 # For example: composer-n1-webserver-2, composer-n1-webserver-4,
1095 # composer-n1-webserver-8.
1096 # If not specified, composer-n1-webserver-2 will be used.
1097 # Value custom is returned only in response, if Airflow web server parameters
1098 # were manually changed to a non-standard values.
1099 },
1100 &quot;webServerNetworkAccessControl&quot;: { # Network-level access control policy for the Airflow web server. # Optional. The network-level access control policy for the Airflow web server. If
1101 # unspecified, no network-level access restrictions will be applied.
1102 &quot;allowedIpRanges&quot;: [ # A collection of allowed IP ranges with descriptions.
1103 { # Allowed IP range with user-provided description.
1104 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description. It must contain at most 300 characters.
1105 &quot;value&quot;: &quot;A String&quot;, # IP address or range, defined using CIDR notation, of requests that this
1106 # rule applies to.
1107 # Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32`
1108 # or `2001:0db8:0000:0042:0000:8a2e:0370:7334`.
1109 #
1110 #
1111 # &lt;p&gt;IP range prefixes should be properly truncated. For example,
1112 # `1.2.3.4/24` should be truncated to `1.2.3.0/24`. Similarly, for IPv6,
1113 # `2001:db8::1/32` should be truncated to `2001:db8::/32`.
1114 },
1115 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001116 },
1117 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001118 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was last modified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001119 &quot;name&quot;: &quot;A String&quot;, # The resource name of the environment, in the form:
1120 # &quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot;
1121 #
1122 # EnvironmentId must start with a lowercase letter followed by up to 63
1123 # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
1124 &quot;uuid&quot;: &quot;A String&quot;, # Output only. The UUID (Universally Unique IDentifier) associated with this environment.
Dan O'Mearadd494642020-05-01 07:42:23 -07001125 # This value is generated when the environment is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001126 },
1127 ],
1128 }</pre>
1129</div>
1130
1131<div class="method">
1132 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1133 <pre>Retrieves the next page of results.
1134
1135Args:
1136 previous_request: The request for the previous page. (required)
1137 previous_response: The response from the request for the previous page. (required)
1138
1139Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001140 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001141 page. Returns None if there are no more items in the collection.
1142 </pre>
1143</div>
1144
1145<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001146 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001147 <pre>Update an environment.
1148
1149Args:
1150 name: string, The relative resource name of the environment to update, in the form:
Bu Sun Kim65020912020-05-20 12:08:20 -07001151&quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot; (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001152 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001153 The object takes the form of:
1154
1155{ # An environment for running orchestration tasks.
Bu Sun Kim65020912020-05-20 12:08:20 -07001156 &quot;labels&quot;: { # Optional. User-defined labels for this environment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001157 # The labels map can contain no more than 64 entries. Entries of the labels
1158 # map are UTF8 strings that comply with the following restrictions:
1159 #
1160 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
1161 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
Dan O'Mearadd494642020-05-01 07:42:23 -07001162 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001163 # size.
Bu Sun Kim65020912020-05-20 12:08:20 -07001164 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001165 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001166 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
1167 &quot;state&quot;: &quot;A String&quot;, # The current state of the environment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001168 &quot;config&quot;: { # Configuration information for an environment. # Configuration parameters for this environment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001169 &quot;dagGcsPrefix&quot;: &quot;A String&quot;, # Output only. The Cloud Storage prefix of the DAGs for this environment. Although Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001170 # Storage objects reside in a flat namespace, a hierarchical file tree
Bu Sun Kim65020912020-05-20 12:08:20 -07001171 # can be simulated using &quot;/&quot;-delimited object name prefixes. DAG objects for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001172 # this environment reside in a simulated directory with the given prefix.
Bu Sun Kim65020912020-05-20 12:08:20 -07001173 &quot;privateEnvironmentConfig&quot;: { # The configuration information for configuring a Private IP Cloud Composer # The configuration used for the Private IP Cloud Composer environment.
1174 # environment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001175 &quot;cloudSqlIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range in tenant project will be reserved for
1176 # Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block
1177 &quot;privateClusterConfig&quot;: { # Configuration options for the private GKE cluster in a Cloud Composer # Optional. Configuration for the private GKE cluster for a Private IP
1178 # Cloud Composer environment.
1179 # environment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001180 &quot;masterIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range in CIDR notation to use for the hosted master network. This
1181 # range is used for assigning internal IP addresses to the cluster
1182 # master or set of masters and to the internal load balancer virtual IP.
1183 # This range must not overlap with any other ranges in use
1184 # within the cluster&#x27;s network.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001185 &quot;enablePrivateEndpoint&quot;: True or False, # Optional. If `true`, access to the public endpoint of the GKE cluster is
1186 # denied.
1187 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
1188 # left blank, the default value of &#x27;172.16.0.0/23&#x27; is used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001189 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001190 &quot;webServerIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range reserved for the tenant project&#x27;s App Engine VMs.
1191 &quot;webServerIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range for web server will be reserved. Needs
1192 # to be disjoint from private_cluster_config.master_ipv4_cidr_block and
1193 # cloud_sql_ipv4_cidr_block.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001194 &quot;enablePrivateEnvironment&quot;: True or False, # Optional. If `true`, a Private IP Cloud Composer environment is created.
1195 # If this field is true, `use_ip_aliases` must be true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001196 },
1197 &quot;gkeCluster&quot;: &quot;A String&quot;, # Output only. The Kubernetes Engine cluster used to run this environment.
1198 &quot;airflowUri&quot;: &quot;A String&quot;, # Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
1199 # [Airflow web
1200 # interface](/composer/docs/how-to/accessing/airflow-web-interface)).
1201 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
1202 &quot;envVariables&quot;: { # Optional. Additional environment variables to provide to the Apache Airflow
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001203 # scheduler, worker, and webserver processes.
1204 #
1205 # Environment variable names must match the regular expression
1206 # `a-zA-Z_*`. They cannot specify Apache Airflow
1207 # software configuration overrides (they cannot match the regular expression
1208 # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
1209 # following reserved names:
1210 #
1211 # * `AIRFLOW_HOME`
1212 # * `C_FORCE_ROOT`
1213 # * `CONTAINER_NAME`
1214 # * `DAGS_FOLDER`
1215 # * `GCP_PROJECT`
1216 # * `GCS_BUCKET`
1217 # * `GKE_CLUSTER_NAME`
1218 # * `SQL_DATABASE`
1219 # * `SQL_INSTANCE`
1220 # * `SQL_PASSWORD`
1221 # * `SQL_PROJECT`
1222 # * `SQL_REGION`
1223 # * `SQL_USER`
Bu Sun Kim65020912020-05-20 12:08:20 -07001224 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001225 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001226 &quot;pythonVersion&quot;: &quot;A String&quot;, # Optional. The major version of Python used to run the Apache Airflow
1227 # scheduler, worker, and webserver processes.
1228 #
1229 # Can be set to &#x27;2&#x27; or &#x27;3&#x27;. If not specified, the default is &#x27;2&#x27;. Cannot be
1230 # updated.
1231 &quot;pypiPackages&quot;: { # Optional. Custom Python Package Index (PyPI) packages to be installed in
1232 # the environment.
1233 #
1234 # Keys refer to the lowercase package name such as &quot;numpy&quot;
1235 # and values are the lowercase extras and version specifier such as
1236 # &quot;==1.12.0&quot;, &quot;[devel,gcp_api]&quot;, or &quot;[devel]&gt;=1.8.2, &lt;1.9.2&quot;. To specify a
1237 # package without pinning it to a version specifier, use the empty string as
1238 # the value.
1239 &quot;a_key&quot;: &quot;A String&quot;,
1240 },
1241 &quot;imageVersion&quot;: &quot;A String&quot;, # The version of the software running in the environment.
1242 # This encapsulates both the version of Cloud Composer functionality and the
1243 # version of Apache Airflow. It must match the regular expression
1244 # `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
1245 # When used as input, the server also checks if the provided version is
1246 # supported and denies the request for an unsupported version.
1247 #
1248 # The Cloud Composer portion of the version is a
1249 # [semantic version](https://semver.org) or `latest`. When the patch version
1250 # is omitted, the current Cloud Composer patch version is selected.
1251 # When `latest` is provided instead of an explicit version number,
1252 # the server replaces `latest` with the current Cloud Composer version
1253 # and stores that version number in the same field.
1254 #
1255 # The portion of the image version that follows &lt;em&gt;airflow-&lt;/em&gt; is an
1256 # official Apache Airflow repository
1257 # [release name](https://github.com/apache/incubator-airflow/releases).
1258 #
1259 # See also [Version
1260 # List](/composer/docs/concepts/versioning/composer-versions).
1261 &quot;airflowConfigOverrides&quot;: { # Optional. Apache Airflow configuration properties to override.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001262 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001263 # Property keys contain the section and property names, separated by a
Bu Sun Kim65020912020-05-20 12:08:20 -07001264 # hyphen, for example &quot;core-dags_are_paused_at_creation&quot;. Section names must
1265 # not contain hyphens (&quot;-&quot;), opening square brackets (&quot;[&quot;), or closing
1266 # square brackets (&quot;]&quot;). The property name must not be empty and must not
1267 # contain an equals sign (&quot;=&quot;) or semicolon (&quot;;&quot;). Section and property names
1268 # must not contain a period (&quot;.&quot;). Apache Airflow configuration property
Dan O'Mearadd494642020-05-01 07:42:23 -07001269 # names must be written in
1270 # [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
1271 # contain any character, and can be written in any lower/upper case format.
1272 #
1273 # Certain Apache Airflow configuration property values are
1274 # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists),
1275 # and cannot be overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -07001276 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001277 },
1278 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001279 &quot;nodeConfig&quot;: { # The configuration information for the Kubernetes Engine nodes running # The configuration used for the Kubernetes Engine cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001280 # the Apache Airflow software.
Bu Sun Kim65020912020-05-20 12:08:20 -07001281 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001282 # communications, specified as a
1283 # [relative resource
1284 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -07001285 # &quot;projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001286 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001287 # If a subnetwork is provided, `nodeConfig.network` must also be provided,
1288 # and the subnetwork must belong to the enclosing environment&#x27;s project and
1289 # location.
1290 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the # Optional. The IPAllocationPolicy fields for the GKE cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001291 # GKE cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001292 &quot;useIpAliases&quot;: True or False, # Optional. Whether or not to enable Alias IPs in the GKE cluster.
1293 # If `true`, a VPC-native cluster is created.
Bu Sun Kim65020912020-05-20 12:08:20 -07001294 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the services&#x27; secondary range used to allocate
1295 # IP addresses to the cluster. Specify either `services_secondary_range_name`
1296 # or `services_ipv4_cidr_block` but not both.
1297 #
1298 # This field is applicable only when `use_ip_aliases` is true.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001299 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the cluster&#x27;s secondary range used to allocate
1300 # IP addresses to pods. Specify either `cluster_secondary_range_name`
1301 # or `cluster_ipv4_cidr_block` but not both.
1302 #
1303 # This field is applicable only when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001304 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range used to allocate IP addresses to pods in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001305 # the cluster.
1306 #
1307 # This field is applicable only when `use_ip_aliases` is true.
1308 #
1309 # Set to blank to have GKE choose a range with the default size.
1310 #
1311 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
1312 # netmask.
1313 #
1314 # Set to a
1315 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1316 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1317 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1318 # to use.
1319 # Specify `cluster_secondary_range_name` or `cluster_ipv4_cidr_block`
1320 # but not both.
Bu Sun Kim65020912020-05-20 12:08:20 -07001321 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range of the services IP addresses in this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001322 # cluster.
1323 #
1324 # This field is applicable only when `use_ip_aliases` is true.
1325 #
1326 # Set to blank to have GKE choose a range with the default size.
1327 #
1328 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
1329 # netmask.
1330 #
1331 # Set to a
1332 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1333 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1334 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1335 # to use.
1336 # Specify `services_secondary_range_name` or `services_ipv4_cidr_block`
1337 # but not both.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001338 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001339 &quot;diskSizeGb&quot;: 42, # Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
1340 # If unspecified, defaults to 100GB. Cannot be updated.
1341 &quot;tags&quot;: [ # Optional. The list of instance tags applied to all node VMs. Tags are used
1342 # to identify valid sources or targets for network firewalls. Each tag within
1343 # the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
1344 # Cannot be updated.
1345 &quot;A String&quot;,
1346 ],
1347 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Google Cloud Platform Service Account to be used by the node
1348 # VMs. If a service account is not specified, the &quot;default&quot; Compute Engine
1349 # service account is used. Cannot be updated.
1350 &quot;location&quot;: &quot;A String&quot;, # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
Dan O'Mearadd494642020-05-01 07:42:23 -07001351 # to deploy the VMs used to run the Apache Airflow software, specified as a
1352 # [relative resource
1353 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -07001354 # &quot;projects/{projectId}/zones/{zoneId}&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -07001355 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001356 # This `location` must belong to the enclosing environment&#x27;s project and
Dan O'Mearadd494642020-05-01 07:42:23 -07001357 # location. If both this field and `nodeConfig.machineType` are specified,
1358 # `nodeConfig.machineType` must belong to this `location`; if both are
1359 # unspecified, the service will pick a zone in the Compute Engine region
1360 # corresponding to the Cloud Composer location, and propagate that choice to
1361 # both fields. If only one field (`location` or `nodeConfig.machineType`) is
1362 # specified, the location information from the specified field will be
1363 # propagated to the unspecified field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001364 &quot;machineType&quot;: &quot;A String&quot;, # Optional. The Compute Engine
1365 # [machine type](/compute/docs/machine-types) used for cluster instances,
1366 # specified as a
1367 # [relative resource
1368 # name](/apis/design/resource_names#relative_resource_name). For example:
1369 # &quot;projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}&quot;.
1370 #
1371 # The `machineType` must belong to the enclosing environment&#x27;s project and
1372 # location. If both this field and `nodeConfig.location` are specified,
1373 # this `machineType` must belong to the `nodeConfig.location`; if both are
1374 # unspecified, the service will pick a zone in the Compute Engine region
1375 # corresponding to the Cloud Composer location, and propagate that choice to
1376 # both fields. If exactly one of this field and `nodeConfig.location` is
1377 # specified, the location information from the specified field will be
1378 # propagated to the unspecified field.
1379 #
1380 # The `machineTypeId` must not be a [shared-core machine
1381 # type](/compute/docs/machine-types#sharedcore).
1382 #
1383 # If this field is unspecified, the `machineTypeId` defaults
1384 # to &quot;n1-standard-1&quot;.
1385 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine
1386 # communications, specified as a
1387 # [relative resource
1388 # name](/apis/design/resource_names#relative_resource_name). For example:
1389 # &quot;projects/{projectId}/global/networks/{networkId}&quot;.
1390 #
1391 # If unspecified, the default network in the environment&#x27;s project is used.
1392 # If a [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
1393 # is provided, `nodeConfig.subnetwork` must also be provided. For
1394 # [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see
1395 # `nodeConfig.subnetwork`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001396 &quot;oauthScopes&quot;: [ # Optional. The set of Google API scopes to be made available on all
1397 # node VMs. If `oauth_scopes` is empty, defaults to
1398 # [&quot;https://www.googleapis.com/auth/cloud-platform&quot;]. Cannot be updated.
1399 &quot;A String&quot;,
1400 ],
1401 },
1402 &quot;nodeCount&quot;: 42, # The number of nodes in the Kubernetes Engine cluster that will be
1403 # used to run this environment.
1404 &quot;databaseConfig&quot;: { # The configuration of Cloud SQL instance that is used by the Apache Airflow # Optional. The configuration settings for Cloud SQL instance used internally by Apache
1405 # Airflow software.
1406 # software.
1407 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Cloud SQL tier used by Airflow database.
1408 # If not specified, db-n1-standard-2 will be used.
1409 },
1410 &quot;webServerConfig&quot;: { # The configuration settings for the Airflow web server App Engine instance. # Optional. The configuration settings for the Airflow web server App Engine instance.
1411 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Machine type on which Airflow web server is running.
1412 # For example: composer-n1-webserver-2, composer-n1-webserver-4,
1413 # composer-n1-webserver-8.
1414 # If not specified, composer-n1-webserver-2 will be used.
1415 # Value custom is returned only in response, if Airflow web server parameters
1416 # were manually changed to a non-standard values.
1417 },
1418 &quot;webServerNetworkAccessControl&quot;: { # Network-level access control policy for the Airflow web server. # Optional. The network-level access control policy for the Airflow web server. If
1419 # unspecified, no network-level access restrictions will be applied.
1420 &quot;allowedIpRanges&quot;: [ # A collection of allowed IP ranges with descriptions.
1421 { # Allowed IP range with user-provided description.
1422 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description. It must contain at most 300 characters.
1423 &quot;value&quot;: &quot;A String&quot;, # IP address or range, defined using CIDR notation, of requests that this
1424 # rule applies to.
1425 # Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32`
1426 # or `2001:0db8:0000:0042:0000:8a2e:0370:7334`.
1427 #
1428 #
1429 # &lt;p&gt;IP range prefixes should be properly truncated. For example,
1430 # `1.2.3.4/24` should be truncated to `1.2.3.0/24`. Similarly, for IPv6,
1431 # `2001:db8::1/32` should be truncated to `2001:db8::/32`.
1432 },
1433 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001434 },
1435 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001436 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was last modified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001437 &quot;name&quot;: &quot;A String&quot;, # The resource name of the environment, in the form:
1438 # &quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot;
1439 #
1440 # EnvironmentId must start with a lowercase letter followed by up to 63
1441 # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
1442 &quot;uuid&quot;: &quot;A String&quot;, # Output only. The UUID (Universally Unique IDentifier) associated with this environment.
Dan O'Mearadd494642020-05-01 07:42:23 -07001443 # This value is generated when the environment is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001444 }
1445
1446 updateMask: string, Required. A comma-separated list of paths, relative to `Environment`, of
1447fields to update.
1448For example, to set the version of scikit-learn to install in the
1449environment to 0.19.0 and to remove an existing installation of
1450argparse, the `updateMask` parameter would include the following two
Bu Sun Kim65020912020-05-20 12:08:20 -07001451`paths` values: &quot;config.softwareConfig.pypiPackages.scikit-learn&quot; and
1452&quot;config.softwareConfig.pypiPackages.argparse&quot;. The included patch
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001453environment would specify the scikit-learn version as follows:
1454
1455 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001456 &quot;config&quot;:{
1457 &quot;softwareConfig&quot;:{
1458 &quot;pypiPackages&quot;:{
1459 &quot;scikit-learn&quot;:&quot;==0.19.0&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001460 }
1461 }
1462 }
1463 }
1464
1465Note that in the above example, any existing PyPI packages
1466other than scikit-learn and argparse will be unaffected.
1467
Bu Sun Kim65020912020-05-20 12:08:20 -07001468Only one update type may be included in a single request&#x27;s `updateMask`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001469For example, one cannot update both the PyPI packages and
1470labels in the same request. However, it is possible to update multiple
1471members of a map field simultaneously in the same request. For example,
Bu Sun Kim65020912020-05-20 12:08:20 -07001472to set the labels &quot;label1&quot; and &quot;label2&quot; while clearing &quot;label3&quot; (assuming
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001473it already exists), one can
Bu Sun Kim65020912020-05-20 12:08:20 -07001474provide the paths &quot;labels.label1&quot;, &quot;labels.label2&quot;, and &quot;labels.label3&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001475and populate the patch environment as follows:
1476
1477 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001478 &quot;labels&quot;:{
1479 &quot;label1&quot;:&quot;new-label1-value&quot;
1480 &quot;label2&quot;:&quot;new-label2-value&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001481 }
1482 }
1483
1484Note that in the above example, any existing labels that are not
1485included in the `updateMask` will be unaffected.
1486
1487It is also possible to replace an entire map field by providing the
Bu Sun Kim65020912020-05-20 12:08:20 -07001488map field&#x27;s path in the `updateMask`. The new value of the field will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001489be that which is provided in the patch environment. For example, to
1490delete all pre-existing user-specified PyPI packages and
1491install botocore at version 1.7.14, the `updateMask` would contain
Bu Sun Kim65020912020-05-20 12:08:20 -07001492the path &quot;config.softwareConfig.pypiPackages&quot;, and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001493the patch environment would be the following:
1494
1495 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001496 &quot;config&quot;:{
1497 &quot;softwareConfig&quot;:{
1498 &quot;pypiPackages&quot;:{
1499 &quot;botocore&quot;:&quot;==1.7.14&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001500 }
1501 }
1502 }
1503 }
1504
Dan O'Mearadd494642020-05-01 07:42:23 -07001505&lt;strong&gt;Note:&lt;/strong&gt; Only the following fields can be updated:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001506
Dan O'Mearadd494642020-05-01 07:42:23 -07001507 &lt;table&gt;
1508 &lt;tbody&gt;
1509 &lt;tr&gt;
1510 &lt;td&gt;&lt;strong&gt;Mask&lt;/strong&gt;&lt;/td&gt;
1511 &lt;td&gt;&lt;strong&gt;Purpose&lt;/strong&gt;&lt;/td&gt;
1512 &lt;/tr&gt;
1513 &lt;tr&gt;
1514 &lt;td&gt;config.softwareConfig.pypiPackages
1515 &lt;/td&gt;
1516 &lt;td&gt;Replace all custom custom PyPI packages. If a replacement
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001517 package map is not included in `environment`, all custom
1518 PyPI packages are cleared. It is an error to provide both this mask and a
Dan O'Mearadd494642020-05-01 07:42:23 -07001519 mask specifying an individual package.&lt;/td&gt;
1520 &lt;/tr&gt;
1521 &lt;tr&gt;
1522 &lt;td&gt;config.softwareConfig.pypiPackages.&lt;var&gt;packagename&lt;/var&gt;&lt;/td&gt;
1523 &lt;td&gt;Update the custom PyPI package &lt;var&gt;packagename&lt;/var&gt;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001524 preserving other packages. To delete the package, include it in
1525 `updateMask`, and omit the mapping for it in
1526 `environment.config.softwareConfig.pypiPackages`. It is an error
1527 to provide both a mask of this form and the
Bu Sun Kim65020912020-05-20 12:08:20 -07001528 &quot;config.softwareConfig.pypiPackages&quot; mask.&lt;/td&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -07001529 &lt;/tr&gt;
1530 &lt;tr&gt;
1531 &lt;td&gt;labels&lt;/td&gt;
1532 &lt;td&gt;Replace all environment labels. If a replacement labels map is not
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001533 included in `environment`, all labels are cleared. It is an error to
1534 provide both this mask and a mask specifying one or more individual
Dan O'Mearadd494642020-05-01 07:42:23 -07001535 labels.&lt;/td&gt;
1536 &lt;/tr&gt;
1537 &lt;tr&gt;
1538 &lt;td&gt;labels.&lt;var&gt;labelName&lt;/var&gt;&lt;/td&gt;
1539 &lt;td&gt;Set the label named &lt;var&gt;labelName&lt;/var&gt;, while preserving other
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001540 labels. To delete the label, include it in `updateMask` and omit its
1541 mapping in `environment.labels`. It is an error to provide both a
Bu Sun Kim65020912020-05-20 12:08:20 -07001542 mask of this form and the &quot;labels&quot; mask.&lt;/td&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -07001543 &lt;/tr&gt;
1544 &lt;tr&gt;
1545 &lt;td&gt;config.nodeCount&lt;/td&gt;
1546 &lt;td&gt;Horizontally scale the number of nodes in the environment. An integer
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001547 greater than or equal to 3 must be provided in the `config.nodeCount`
1548 field.
Dan O'Mearadd494642020-05-01 07:42:23 -07001549 &lt;/td&gt;
1550 &lt;/tr&gt;
1551 &lt;tr&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001552 &lt;td&gt;config.webServerNetworkAccessControl&lt;/td&gt;
1553 &lt;td&gt;Replace the environment&#x27;s current WebServerNetworkAccessControl.
1554 &lt;/td&gt;
1555 &lt;/tr&gt;
1556 &lt;tr&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -07001557 &lt;td&gt;config.softwareConfig.airflowConfigOverrides&lt;/td&gt;
1558 &lt;td&gt;Replace all Apache Airflow config overrides. If a replacement config
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001559 overrides map is not included in `environment`, all config overrides
1560 are cleared.
1561 It is an error to provide both this mask and a mask specifying one or
Dan O'Mearadd494642020-05-01 07:42:23 -07001562 more individual config overrides.&lt;/td&gt;
1563 &lt;/tr&gt;
1564 &lt;tr&gt;
1565 &lt;td&gt;config.softwareConfig.airflowConfigOverrides.&lt;var&gt;section&lt;/var&gt;-&lt;var&gt;name
1566 &lt;/var&gt;&lt;/td&gt;
1567 &lt;td&gt;Override the Apache Airflow config property &lt;var&gt;name&lt;/var&gt; in the
1568 section named &lt;var&gt;section&lt;/var&gt;, preserving other properties. To delete
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001569 the property override, include it in `updateMask` and omit its mapping
1570 in `environment.config.softwareConfig.airflowConfigOverrides`.
1571 It is an error to provide both a mask of this form and the
Bu Sun Kim65020912020-05-20 12:08:20 -07001572 &quot;config.softwareConfig.airflowConfigOverrides&quot; mask.&lt;/td&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -07001573 &lt;/tr&gt;
1574 &lt;tr&gt;
1575 &lt;td&gt;config.softwareConfig.envVariables&lt;/td&gt;
1576 &lt;td&gt;Replace all environment variables. If a replacement environment
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001577 variable map is not included in `environment`, all custom environment
1578 variables are cleared.
1579 It is an error to provide both this mask and a mask specifying one or
Dan O'Mearadd494642020-05-01 07:42:23 -07001580 more individual environment variables.&lt;/td&gt;
1581 &lt;/tr&gt;
1582 &lt;tr&gt;
1583 &lt;td&gt;config.softwareConfig.imageVersion&lt;/td&gt;
1584 &lt;td&gt;Upgrade the version of the environment in-place. Refer to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001585 `SoftwareConfig.image_version` for information on how to format the new
1586 image version. Additionally, the new image version cannot effect a version
Bu Sun Kim65020912020-05-20 12:08:20 -07001587 downgrade and must match the current image version&#x27;s Composer major
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001588 version and Airflow major and minor versions. Consult the
Bu Sun Kim65020912020-05-20 12:08:20 -07001589 &lt;a href=&quot;/composer/docs/concepts/versioning/composer-versions&quot;&gt;Cloud
Dan O'Mearadd494642020-05-01 07:42:23 -07001590 Composer Version List&lt;/a&gt; for valid values.&lt;/td&gt;
1591 &lt;/tr&gt;
1592 &lt;/tbody&gt;
1593 &lt;/table&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001594 x__xgafv: string, V1 error format.
1595 Allowed values
1596 1 - v1 error format
1597 2 - v2 error format
1598
1599Returns:
1600 An object of the form:
1601
1602 { # This resource represents a long-running operation that is the result of a
1603 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001604 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
1605 # originally returns it. If you use the default HTTP mapping, the
1606 # `name` should be a resource name ending with `operations/{unique_id}`.
1607 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
1608 # different programming environments, including REST APIs and RPC APIs. It is
1609 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1610 # three pieces of data: error code, error message, and error details.
1611 #
1612 # You can find out more about this error model and how to work with it in the
1613 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1614 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1615 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1616 # user-facing error message should be localized and sent in the
1617 # google.rpc.Status.details field, or localized by the client.
1618 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1619 # message types for APIs to use.
1620 {
1621 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1622 },
1623 ],
1624 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001625 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1626 # contains progress information and common metadata such as create time.
1627 # Some services might not provide such metadata. Any method that returns a
1628 # long-running operation should document the metadata type, if any.
1629 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001630 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001631 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001632 # If `true`, the operation is completed, and either `error` or `response` is
1633 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001634 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001635 # method returns no data on success, such as `Delete`, the response is
1636 # `google.protobuf.Empty`. If the original method is standard
1637 # `Get`/`Create`/`Update`, the response should be the resource. For other
1638 # methods, the response should have the type `XxxResponse`, where `Xxx`
1639 # is the original method name. For example, if the original method name
1640 # is `TakeSnapshot()`, the inferred response type is
1641 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001642 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001643 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001644 }</pre>
1645</div>
1646
1647</body></html>