blob: c533ced88593570eb9821e9a551e0e5973533cc3 [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;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
108 &quot;labels&quot;: { # Optional. User-defined labels for this environment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109 # The labels map can contain no more than 64 entries. Entries of the labels
110 # map are UTF8 strings that comply with the following restrictions:
111 #
112 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
113 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115 # size.
Bu Sun Kim65020912020-05-20 12:08:20 -0700116 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700118 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was last modified.
119 &quot;config&quot;: { # Configuration information for an environment. # Configuration parameters for this environment.
120 &quot;nodeCount&quot;: 42, # The number of nodes in the Kubernetes Engine cluster that will be
121 # used to run this environment.
122 &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
123 # Airflow software.
124 # software.
125 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Cloud SQL tier used by Airflow database.
126 # If not specified, db-n1-standard-2 will be used.
127 },
128 &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.
129 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Machine type on which Airflow web server is running.
130 # For example: composer-n1-webserver-2, composer-n1-webserver-4,
131 # composer-n1-webserver-8.
132 # If not specified, composer-n1-webserver-2 will be used.
133 # Value custom is returned only in response, if Airflow web server parameters
134 # were manually changed to a non-standard values.
135 },
136 &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
137 # unspecified, no network-level access restrictions will be applied.
138 &quot;allowedIpRanges&quot;: [ # A collection of allowed IP ranges with descriptions.
139 { # Allowed IP range with user-provided description.
140 &quot;value&quot;: &quot;A String&quot;, # IP address or range, defined using CIDR notation, of requests that this
141 # rule applies to.
142 # Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32`
143 # or `2001:0db8:0000:0042:0000:8a2e:0370:7334`.
144 #
145 #
146 # &lt;p&gt;IP range prefixes should be properly truncated. For example,
147 # `1.2.3.4/24` should be truncated to `1.2.3.0/24`. Similarly, for IPv6,
148 # `2001:db8::1/32` should be truncated to `2001:db8::/32`.
149 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description. It must contain at most 300 characters.
150 },
151 ],
152 },
153 &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 -0700154 # Storage objects reside in a flat namespace, a hierarchical file tree
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 # can be simulated using &quot;/&quot;-delimited object name prefixes. DAG objects for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700156 # this environment reside in a simulated directory with the given prefix.
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 &quot;privateEnvironmentConfig&quot;: { # The configuration information for configuring a Private IP Cloud Composer # The configuration used for the Private IP Cloud Composer environment.
158 # environment.
159 &quot;enablePrivateEnvironment&quot;: True or False, # Optional. If `true`, a Private IP Cloud Composer environment is created.
160 # If this field is true, `use_ip_aliases` must be true.
161 &quot;cloudSqlIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range in tenant project will be reserved for
162 # Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block
163 &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
164 # Cloud Composer environment.
165 # environment.
166 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
167 # left blank, the default value of &#x27;172.16.0.0/23&#x27; is used.
168 &quot;enablePrivateEndpoint&quot;: True or False, # Optional. If `true`, access to the public endpoint of the GKE cluster is
169 # denied.
170 &quot;masterIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range in CIDR notation to use for the hosted master network. This
171 # range is used for assigning internal IP addresses to the cluster
172 # master or set of masters and to the internal load balancer virtual IP.
173 # This range must not overlap with any other ranges in use
174 # within the cluster&#x27;s network.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700175 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;webServerIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range reserved for the tenant project&#x27;s App Engine VMs.
177 &quot;webServerIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range for web server will be reserved. Needs
178 # to be disjoint from private_cluster_config.master_ipv4_cidr_block and
179 # cloud_sql_ipv4_cidr_block.
180 },
181 &quot;gkeCluster&quot;: &quot;A String&quot;, # Output only. The Kubernetes Engine cluster used to run this environment.
182 &quot;airflowUri&quot;: &quot;A String&quot;, # Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
183 # [Airflow web
184 # interface](/composer/docs/how-to/accessing/airflow-web-interface)).
185 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
186 &quot;envVariables&quot;: { # Optional. Additional environment variables to provide to the Apache Airflow
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700187 # scheduler, worker, and webserver processes.
188 #
189 # Environment variable names must match the regular expression
190 # `a-zA-Z_*`. They cannot specify Apache Airflow
191 # software configuration overrides (they cannot match the regular expression
192 # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
193 # following reserved names:
194 #
195 # * `AIRFLOW_HOME`
196 # * `C_FORCE_ROOT`
197 # * `CONTAINER_NAME`
198 # * `DAGS_FOLDER`
199 # * `GCP_PROJECT`
200 # * `GCS_BUCKET`
201 # * `GKE_CLUSTER_NAME`
202 # * `SQL_DATABASE`
203 # * `SQL_INSTANCE`
204 # * `SQL_PASSWORD`
205 # * `SQL_PROJECT`
206 # * `SQL_REGION`
207 # * `SQL_USER`
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 &quot;pythonVersion&quot;: &quot;A String&quot;, # Optional. The major version of Python used to run the Apache Airflow
211 # scheduler, worker, and webserver processes.
212 #
213 # Can be set to &#x27;2&#x27; or &#x27;3&#x27;. If not specified, the default is &#x27;2&#x27;. Cannot be
214 # updated.
215 &quot;pypiPackages&quot;: { # Optional. Custom Python Package Index (PyPI) packages to be installed in
216 # the environment.
217 #
218 # Keys refer to the lowercase package name such as &quot;numpy&quot;
219 # and values are the lowercase extras and version specifier such as
220 # &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
221 # package without pinning it to a version specifier, use the empty string as
222 # the value.
223 &quot;a_key&quot;: &quot;A String&quot;,
224 },
225 &quot;imageVersion&quot;: &quot;A String&quot;, # The version of the software running in the environment.
226 # This encapsulates both the version of Cloud Composer functionality and the
227 # version of Apache Airflow. It must match the regular expression
228 # `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
229 # When used as input, the server also checks if the provided version is
230 # supported and denies the request for an unsupported version.
231 #
232 # The Cloud Composer portion of the version is a
233 # [semantic version](https://semver.org) or `latest`. When the patch version
234 # is omitted, the current Cloud Composer patch version is selected.
235 # When `latest` is provided instead of an explicit version number,
236 # the server replaces `latest` with the current Cloud Composer version
237 # and stores that version number in the same field.
238 #
239 # The portion of the image version that follows &lt;em&gt;airflow-&lt;/em&gt; is an
240 # official Apache Airflow repository
241 # [release name](https://github.com/apache/incubator-airflow/releases).
242 #
243 # See also [Version
244 # List](/composer/docs/concepts/versioning/composer-versions).
245 &quot;airflowConfigOverrides&quot;: { # Optional. Apache Airflow configuration properties to override.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700246 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700247 # Property keys contain the section and property names, separated by a
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 # hyphen, for example &quot;core-dags_are_paused_at_creation&quot;. Section names must
249 # not contain hyphens (&quot;-&quot;), opening square brackets (&quot;[&quot;), or closing
250 # square brackets (&quot;]&quot;). The property name must not be empty and must not
251 # contain an equals sign (&quot;=&quot;) or semicolon (&quot;;&quot;). Section and property names
252 # must not contain a period (&quot;.&quot;). Apache Airflow configuration property
Dan O'Mearadd494642020-05-01 07:42:23 -0700253 # names must be written in
254 # [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
255 # contain any character, and can be written in any lower/upper case format.
256 #
257 # Certain Apache Airflow configuration property values are
258 # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists),
259 # and cannot be overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700261 },
262 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700263 &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 -0700264 # the Apache Airflow software.
Bu Sun Kim65020912020-05-20 12:08:20 -0700265 &quot;oauthScopes&quot;: [ # Optional. The set of Google API scopes to be made available on all
266 # node VMs. If `oauth_scopes` is empty, defaults to
267 # [&quot;https://www.googleapis.com/auth/cloud-platform&quot;]. Cannot be updated.
268 &quot;A String&quot;,
269 ],
270 &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 -0700271 # communications, specified as a
272 # [relative resource
273 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700274 # &quot;projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700275 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700276 # If a subnetwork is provided, `nodeConfig.network` must also be provided,
277 # and the subnetwork must belong to the enclosing environment&#x27;s project and
278 # location.
279 &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 -0700280 # GKE cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the services&#x27; secondary range used to allocate
282 # IP addresses to the cluster. Specify either `services_secondary_range_name`
283 # or `services_ipv4_cidr_block` but not both.
284 #
285 # This field is applicable only when `use_ip_aliases` is true.
286 &quot;useIpAliases&quot;: True or False, # Optional. Whether or not to enable Alias IPs in the GKE cluster.
287 # If `true`, a VPC-native cluster is created.
288 &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 -0700289 # the cluster.
290 #
291 # This field is applicable only when `use_ip_aliases` is true.
292 #
293 # Set to blank to have GKE choose a range with the default size.
294 #
295 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
296 # netmask.
297 #
298 # Set to a
299 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
300 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
301 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
302 # to use.
303 # Specify `cluster_secondary_range_name` or `cluster_ipv4_cidr_block`
304 # but not both.
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the cluster&#x27;s secondary range used to allocate
306 # IP addresses to pods. Specify either `cluster_secondary_range_name`
307 # or `cluster_ipv4_cidr_block` but not both.
308 #
309 # This field is applicable only when `use_ip_aliases` is true.
310 &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 -0700311 # cluster.
312 #
313 # This field is applicable only when `use_ip_aliases` is true.
314 #
315 # Set to blank to have GKE choose a range with the default size.
316 #
317 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
318 # netmask.
319 #
320 # Set to a
321 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
322 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
323 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
324 # to use.
325 # Specify `services_secondary_range_name` or `services_ipv4_cidr_block`
326 # but not both.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700327 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700328 &quot;diskSizeGb&quot;: 42, # Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
329 # If unspecified, defaults to 100GB. Cannot be updated.
330 &quot;tags&quot;: [ # Optional. The list of instance tags applied to all node VMs. Tags are used
331 # to identify valid sources or targets for network firewalls. Each tag within
332 # the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
333 # Cannot be updated.
334 &quot;A String&quot;,
335 ],
336 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Google Cloud Platform Service Account to be used by the node
337 # VMs. If a service account is not specified, the &quot;default&quot; Compute Engine
338 # service account is used. Cannot be updated.
339 &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 -0700340 # to deploy the VMs used to run the Apache Airflow software, specified as a
341 # [relative resource
342 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 # &quot;projects/{projectId}/zones/{zoneId}&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700344 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 # This `location` must belong to the enclosing environment&#x27;s project and
Dan O'Mearadd494642020-05-01 07:42:23 -0700346 # location. If both this field and `nodeConfig.machineType` are specified,
347 # `nodeConfig.machineType` must belong to this `location`; if both are
348 # unspecified, the service will pick a zone in the Compute Engine region
349 # corresponding to the Cloud Composer location, and propagate that choice to
350 # both fields. If only one field (`location` or `nodeConfig.machineType`) is
351 # specified, the location information from the specified field will be
352 # propagated to the unspecified field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 &quot;machineType&quot;: &quot;A String&quot;, # Optional. The Compute Engine
354 # [machine type](/compute/docs/machine-types) used for cluster instances,
355 # specified as a
356 # [relative resource
357 # name](/apis/design/resource_names#relative_resource_name). For example:
358 # &quot;projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}&quot;.
359 #
360 # The `machineType` must belong to the enclosing environment&#x27;s project and
361 # location. If both this field and `nodeConfig.location` are specified,
362 # this `machineType` must belong to the `nodeConfig.location`; if both are
363 # unspecified, the service will pick a zone in the Compute Engine region
364 # corresponding to the Cloud Composer location, and propagate that choice to
365 # both fields. If exactly one of this field and `nodeConfig.location` is
366 # specified, the location information from the specified field will be
367 # propagated to the unspecified field.
368 #
369 # The `machineTypeId` must not be a [shared-core machine
370 # type](/compute/docs/machine-types#sharedcore).
371 #
372 # If this field is unspecified, the `machineTypeId` defaults
373 # to &quot;n1-standard-1&quot;.
374 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine
375 # communications, specified as a
376 # [relative resource
377 # name](/apis/design/resource_names#relative_resource_name). For example:
378 # &quot;projects/{projectId}/global/networks/{networkId}&quot;.
379 #
380 # If unspecified, the default network in the environment&#x27;s project is used.
381 # If a [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
382 # is provided, `nodeConfig.subnetwork` must also be provided. For
383 # [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see
384 # `nodeConfig.subnetwork`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700385 },
386 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700387 &quot;state&quot;: &quot;A String&quot;, # The current state of the environment.
388 &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 Kim65020912020-05-20 12:08:20 -0700407 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
408 # contains progress information and common metadata such as create time.
409 # Some services might not provide such metadata. Any method that returns a
410 # long-running operation should document the metadata type, if any.
411 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700412 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 &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 -0700414 # If `true`, the operation is completed, and either `error` or `response` is
415 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700416 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700417 # method returns no data on success, such as `Delete`, the response is
418 # `google.protobuf.Empty`. If the original method is standard
419 # `Get`/`Create`/`Update`, the response should be the resource. For other
420 # methods, the response should have the type `XxxResponse`, where `Xxx`
421 # is the original method name. For example, if the original method name
422 # is `TakeSnapshot()`, the inferred response type is
423 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700424 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700425 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700426 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700427 # originally returns it. If you use the default HTTP mapping, the
428 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700429 &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.
430 # different programming environments, including REST APIs and RPC APIs. It is
431 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
432 # three pieces of data: error code, error message, and error details.
433 #
434 # You can find out more about this error model and how to work with it in the
435 # [API Design Guide](https://cloud.google.com/apis/design/errors).
436 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
437 # message types for APIs to use.
438 {
439 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
440 },
441 ],
442 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
443 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
444 # user-facing error message should be localized and sent in the
445 # google.rpc.Status.details field, or localized by the client.
Dan O'Mearadd494642020-05-01 07:42:23 -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 Kim65020912020-05-20 12:08:20 -0700467 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
468 # contains progress information and common metadata such as create time.
469 # Some services might not provide such metadata. Any method that returns a
470 # long-running operation should document the metadata type, if any.
471 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700472 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700473 &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 -0700474 # If `true`, the operation is completed, and either `error` or `response` is
475 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700476 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700477 # method returns no data on success, such as `Delete`, the response is
478 # `google.protobuf.Empty`. If the original method is standard
479 # `Get`/`Create`/`Update`, the response should be the resource. For other
480 # methods, the response should have the type `XxxResponse`, where `Xxx`
481 # is the original method name. For example, if the original method name
482 # is `TakeSnapshot()`, the inferred response type is
483 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700484 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700485 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700487 # originally returns it. If you use the default HTTP mapping, the
488 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700489 &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.
490 # different programming environments, including REST APIs and RPC APIs. It is
491 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
492 # three pieces of data: error code, error message, and error details.
493 #
494 # You can find out more about this error model and how to work with it in the
495 # [API Design Guide](https://cloud.google.com/apis/design/errors).
496 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
497 # message types for APIs to use.
498 {
499 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
500 },
501 ],
502 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
503 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
504 # user-facing error message should be localized and sent in the
505 # google.rpc.Status.details field, or localized by the client.
Dan O'Mearadd494642020-05-01 07:42:23 -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;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
527 &quot;labels&quot;: { # Optional. User-defined labels for this environment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700528 # The labels map can contain no more than 64 entries. Entries of the labels
529 # map are UTF8 strings that comply with the following restrictions:
530 #
531 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
532 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
Dan O'Mearadd494642020-05-01 07:42:23 -0700533 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700534 # size.
Bu Sun Kim65020912020-05-20 12:08:20 -0700535 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700536 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700537 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was last modified.
538 &quot;config&quot;: { # Configuration information for an environment. # Configuration parameters for this environment.
539 &quot;nodeCount&quot;: 42, # The number of nodes in the Kubernetes Engine cluster that will be
540 # used to run this environment.
541 &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
542 # Airflow software.
543 # software.
544 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Cloud SQL tier used by Airflow database.
545 # If not specified, db-n1-standard-2 will be used.
546 },
547 &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.
548 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Machine type on which Airflow web server is running.
549 # For example: composer-n1-webserver-2, composer-n1-webserver-4,
550 # composer-n1-webserver-8.
551 # If not specified, composer-n1-webserver-2 will be used.
552 # Value custom is returned only in response, if Airflow web server parameters
553 # were manually changed to a non-standard values.
554 },
555 &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
556 # unspecified, no network-level access restrictions will be applied.
557 &quot;allowedIpRanges&quot;: [ # A collection of allowed IP ranges with descriptions.
558 { # Allowed IP range with user-provided description.
559 &quot;value&quot;: &quot;A String&quot;, # IP address or range, defined using CIDR notation, of requests that this
560 # rule applies to.
561 # Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32`
562 # or `2001:0db8:0000:0042:0000:8a2e:0370:7334`.
563 #
564 #
565 # &lt;p&gt;IP range prefixes should be properly truncated. For example,
566 # `1.2.3.4/24` should be truncated to `1.2.3.0/24`. Similarly, for IPv6,
567 # `2001:db8::1/32` should be truncated to `2001:db8::/32`.
568 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description. It must contain at most 300 characters.
569 },
570 ],
571 },
572 &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 -0700573 # Storage objects reside in a flat namespace, a hierarchical file tree
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 # can be simulated using &quot;/&quot;-delimited object name prefixes. DAG objects for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700575 # this environment reside in a simulated directory with the given prefix.
Bu Sun Kim65020912020-05-20 12:08:20 -0700576 &quot;privateEnvironmentConfig&quot;: { # The configuration information for configuring a Private IP Cloud Composer # The configuration used for the Private IP Cloud Composer environment.
577 # environment.
578 &quot;enablePrivateEnvironment&quot;: True or False, # Optional. If `true`, a Private IP Cloud Composer environment is created.
579 # If this field is true, `use_ip_aliases` must be true.
580 &quot;cloudSqlIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range in tenant project will be reserved for
581 # Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block
582 &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
583 # Cloud Composer environment.
584 # environment.
585 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
586 # left blank, the default value of &#x27;172.16.0.0/23&#x27; is used.
587 &quot;enablePrivateEndpoint&quot;: True or False, # Optional. If `true`, access to the public endpoint of the GKE cluster is
588 # denied.
589 &quot;masterIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range in CIDR notation to use for the hosted master network. This
590 # range is used for assigning internal IP addresses to the cluster
591 # master or set of masters and to the internal load balancer virtual IP.
592 # This range must not overlap with any other ranges in use
593 # within the cluster&#x27;s network.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700594 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700595 &quot;webServerIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range reserved for the tenant project&#x27;s App Engine VMs.
596 &quot;webServerIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range for web server will be reserved. Needs
597 # to be disjoint from private_cluster_config.master_ipv4_cidr_block and
598 # cloud_sql_ipv4_cidr_block.
599 },
600 &quot;gkeCluster&quot;: &quot;A String&quot;, # Output only. The Kubernetes Engine cluster used to run this environment.
601 &quot;airflowUri&quot;: &quot;A String&quot;, # Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
602 # [Airflow web
603 # interface](/composer/docs/how-to/accessing/airflow-web-interface)).
604 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
605 &quot;envVariables&quot;: { # Optional. Additional environment variables to provide to the Apache Airflow
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700606 # scheduler, worker, and webserver processes.
607 #
608 # Environment variable names must match the regular expression
609 # `a-zA-Z_*`. They cannot specify Apache Airflow
610 # software configuration overrides (they cannot match the regular expression
611 # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
612 # following reserved names:
613 #
614 # * `AIRFLOW_HOME`
615 # * `C_FORCE_ROOT`
616 # * `CONTAINER_NAME`
617 # * `DAGS_FOLDER`
618 # * `GCP_PROJECT`
619 # * `GCS_BUCKET`
620 # * `GKE_CLUSTER_NAME`
621 # * `SQL_DATABASE`
622 # * `SQL_INSTANCE`
623 # * `SQL_PASSWORD`
624 # * `SQL_PROJECT`
625 # * `SQL_REGION`
626 # * `SQL_USER`
Bu Sun Kim65020912020-05-20 12:08:20 -0700627 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700628 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700629 &quot;pythonVersion&quot;: &quot;A String&quot;, # Optional. The major version of Python used to run the Apache Airflow
630 # scheduler, worker, and webserver processes.
631 #
632 # Can be set to &#x27;2&#x27; or &#x27;3&#x27;. If not specified, the default is &#x27;2&#x27;. Cannot be
633 # updated.
634 &quot;pypiPackages&quot;: { # Optional. Custom Python Package Index (PyPI) packages to be installed in
635 # the environment.
636 #
637 # Keys refer to the lowercase package name such as &quot;numpy&quot;
638 # and values are the lowercase extras and version specifier such as
639 # &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
640 # package without pinning it to a version specifier, use the empty string as
641 # the value.
642 &quot;a_key&quot;: &quot;A String&quot;,
643 },
644 &quot;imageVersion&quot;: &quot;A String&quot;, # The version of the software running in the environment.
645 # This encapsulates both the version of Cloud Composer functionality and the
646 # version of Apache Airflow. It must match the regular expression
647 # `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
648 # When used as input, the server also checks if the provided version is
649 # supported and denies the request for an unsupported version.
650 #
651 # The Cloud Composer portion of the version is a
652 # [semantic version](https://semver.org) or `latest`. When the patch version
653 # is omitted, the current Cloud Composer patch version is selected.
654 # When `latest` is provided instead of an explicit version number,
655 # the server replaces `latest` with the current Cloud Composer version
656 # and stores that version number in the same field.
657 #
658 # The portion of the image version that follows &lt;em&gt;airflow-&lt;/em&gt; is an
659 # official Apache Airflow repository
660 # [release name](https://github.com/apache/incubator-airflow/releases).
661 #
662 # See also [Version
663 # List](/composer/docs/concepts/versioning/composer-versions).
664 &quot;airflowConfigOverrides&quot;: { # Optional. Apache Airflow configuration properties to override.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700665 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700666 # Property keys contain the section and property names, separated by a
Bu Sun Kim65020912020-05-20 12:08:20 -0700667 # hyphen, for example &quot;core-dags_are_paused_at_creation&quot;. Section names must
668 # not contain hyphens (&quot;-&quot;), opening square brackets (&quot;[&quot;), or closing
669 # square brackets (&quot;]&quot;). The property name must not be empty and must not
670 # contain an equals sign (&quot;=&quot;) or semicolon (&quot;;&quot;). Section and property names
671 # must not contain a period (&quot;.&quot;). Apache Airflow configuration property
Dan O'Mearadd494642020-05-01 07:42:23 -0700672 # names must be written in
673 # [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
674 # contain any character, and can be written in any lower/upper case format.
675 #
676 # Certain Apache Airflow configuration property values are
677 # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists),
678 # and cannot be overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -0700679 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700680 },
681 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700682 &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 -0700683 # the Apache Airflow software.
Bu Sun Kim65020912020-05-20 12:08:20 -0700684 &quot;oauthScopes&quot;: [ # Optional. The set of Google API scopes to be made available on all
685 # node VMs. If `oauth_scopes` is empty, defaults to
686 # [&quot;https://www.googleapis.com/auth/cloud-platform&quot;]. Cannot be updated.
687 &quot;A String&quot;,
688 ],
689 &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 -0700690 # communications, specified as a
691 # [relative resource
692 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700693 # &quot;projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700694 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700695 # If a subnetwork is provided, `nodeConfig.network` must also be provided,
696 # and the subnetwork must belong to the enclosing environment&#x27;s project and
697 # location.
698 &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 -0700699 # GKE cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700700 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the services&#x27; secondary range used to allocate
701 # IP addresses to the cluster. Specify either `services_secondary_range_name`
702 # or `services_ipv4_cidr_block` but not both.
703 #
704 # This field is applicable only when `use_ip_aliases` is true.
705 &quot;useIpAliases&quot;: True or False, # Optional. Whether or not to enable Alias IPs in the GKE cluster.
706 # If `true`, a VPC-native cluster is created.
707 &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 -0700708 # the cluster.
709 #
710 # This field is applicable only when `use_ip_aliases` is true.
711 #
712 # Set to blank to have GKE choose a range with the default size.
713 #
714 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
715 # netmask.
716 #
717 # Set to a
718 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
719 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
720 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
721 # to use.
722 # Specify `cluster_secondary_range_name` or `cluster_ipv4_cidr_block`
723 # but not both.
Bu Sun Kim65020912020-05-20 12:08:20 -0700724 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the cluster&#x27;s secondary range used to allocate
725 # IP addresses to pods. Specify either `cluster_secondary_range_name`
726 # or `cluster_ipv4_cidr_block` but not both.
727 #
728 # This field is applicable only when `use_ip_aliases` is true.
729 &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 -0700730 # cluster.
731 #
732 # This field is applicable only when `use_ip_aliases` is true.
733 #
734 # Set to blank to have GKE choose a range with the default size.
735 #
736 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
737 # netmask.
738 #
739 # Set to a
740 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
741 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
742 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
743 # to use.
744 # Specify `services_secondary_range_name` or `services_ipv4_cidr_block`
745 # but not both.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700746 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700747 &quot;diskSizeGb&quot;: 42, # Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
748 # If unspecified, defaults to 100GB. Cannot be updated.
749 &quot;tags&quot;: [ # Optional. The list of instance tags applied to all node VMs. Tags are used
750 # to identify valid sources or targets for network firewalls. Each tag within
751 # the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
752 # Cannot be updated.
753 &quot;A String&quot;,
754 ],
755 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Google Cloud Platform Service Account to be used by the node
756 # VMs. If a service account is not specified, the &quot;default&quot; Compute Engine
757 # service account is used. Cannot be updated.
758 &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 -0700759 # to deploy the VMs used to run the Apache Airflow software, specified as a
760 # [relative resource
761 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700762 # &quot;projects/{projectId}/zones/{zoneId}&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700763 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700764 # This `location` must belong to the enclosing environment&#x27;s project and
Dan O'Mearadd494642020-05-01 07:42:23 -0700765 # location. If both this field and `nodeConfig.machineType` are specified,
766 # `nodeConfig.machineType` must belong to this `location`; if both are
767 # unspecified, the service will pick a zone in the Compute Engine region
768 # corresponding to the Cloud Composer location, and propagate that choice to
769 # both fields. If only one field (`location` or `nodeConfig.machineType`) is
770 # specified, the location information from the specified field will be
771 # propagated to the unspecified field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700772 &quot;machineType&quot;: &quot;A String&quot;, # Optional. The Compute Engine
773 # [machine type](/compute/docs/machine-types) used for cluster instances,
774 # specified as a
775 # [relative resource
776 # name](/apis/design/resource_names#relative_resource_name). For example:
777 # &quot;projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}&quot;.
778 #
779 # The `machineType` must belong to the enclosing environment&#x27;s project and
780 # location. If both this field and `nodeConfig.location` are specified,
781 # this `machineType` must belong to the `nodeConfig.location`; if both are
782 # unspecified, the service will pick a zone in the Compute Engine region
783 # corresponding to the Cloud Composer location, and propagate that choice to
784 # both fields. If exactly one of this field and `nodeConfig.location` is
785 # specified, the location information from the specified field will be
786 # propagated to the unspecified field.
787 #
788 # The `machineTypeId` must not be a [shared-core machine
789 # type](/compute/docs/machine-types#sharedcore).
790 #
791 # If this field is unspecified, the `machineTypeId` defaults
792 # to &quot;n1-standard-1&quot;.
793 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine
794 # communications, specified as a
795 # [relative resource
796 # name](/apis/design/resource_names#relative_resource_name). For example:
797 # &quot;projects/{projectId}/global/networks/{networkId}&quot;.
798 #
799 # If unspecified, the default network in the environment&#x27;s project is used.
800 # If a [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
801 # is provided, `nodeConfig.subnetwork` must also be provided. For
802 # [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see
803 # `nodeConfig.subnetwork`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700804 },
805 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700806 &quot;state&quot;: &quot;A String&quot;, # The current state of the environment.
807 &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;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
839 &quot;labels&quot;: { # Optional. User-defined labels for this environment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700840 # The labels map can contain no more than 64 entries. Entries of the labels
841 # map are UTF8 strings that comply with the following restrictions:
842 #
843 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
844 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
Dan O'Mearadd494642020-05-01 07:42:23 -0700845 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700846 # size.
Bu Sun Kim65020912020-05-20 12:08:20 -0700847 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700848 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700849 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was last modified.
850 &quot;config&quot;: { # Configuration information for an environment. # Configuration parameters for this environment.
851 &quot;nodeCount&quot;: 42, # The number of nodes in the Kubernetes Engine cluster that will be
852 # used to run this environment.
853 &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
854 # Airflow software.
855 # software.
856 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Cloud SQL tier used by Airflow database.
857 # If not specified, db-n1-standard-2 will be used.
858 },
859 &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.
860 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Machine type on which Airflow web server is running.
861 # For example: composer-n1-webserver-2, composer-n1-webserver-4,
862 # composer-n1-webserver-8.
863 # If not specified, composer-n1-webserver-2 will be used.
864 # Value custom is returned only in response, if Airflow web server parameters
865 # were manually changed to a non-standard values.
866 },
867 &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
868 # unspecified, no network-level access restrictions will be applied.
869 &quot;allowedIpRanges&quot;: [ # A collection of allowed IP ranges with descriptions.
870 { # Allowed IP range with user-provided description.
871 &quot;value&quot;: &quot;A String&quot;, # IP address or range, defined using CIDR notation, of requests that this
872 # rule applies to.
873 # Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32`
874 # or `2001:0db8:0000:0042:0000:8a2e:0370:7334`.
875 #
876 #
877 # &lt;p&gt;IP range prefixes should be properly truncated. For example,
878 # `1.2.3.4/24` should be truncated to `1.2.3.0/24`. Similarly, for IPv6,
879 # `2001:db8::1/32` should be truncated to `2001:db8::/32`.
880 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description. It must contain at most 300 characters.
881 },
882 ],
883 },
884 &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 -0700885 # Storage objects reside in a flat namespace, a hierarchical file tree
Bu Sun Kim65020912020-05-20 12:08:20 -0700886 # can be simulated using &quot;/&quot;-delimited object name prefixes. DAG objects for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700887 # this environment reside in a simulated directory with the given prefix.
Bu Sun Kim65020912020-05-20 12:08:20 -0700888 &quot;privateEnvironmentConfig&quot;: { # The configuration information for configuring a Private IP Cloud Composer # The configuration used for the Private IP Cloud Composer environment.
889 # environment.
890 &quot;enablePrivateEnvironment&quot;: True or False, # Optional. If `true`, a Private IP Cloud Composer environment is created.
891 # If this field is true, `use_ip_aliases` must be true.
892 &quot;cloudSqlIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range in tenant project will be reserved for
893 # Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block
894 &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
895 # Cloud Composer environment.
896 # environment.
897 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
898 # left blank, the default value of &#x27;172.16.0.0/23&#x27; is used.
899 &quot;enablePrivateEndpoint&quot;: True or False, # Optional. If `true`, access to the public endpoint of the GKE cluster is
900 # denied.
901 &quot;masterIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range in CIDR notation to use for the hosted master network. This
902 # range is used for assigning internal IP addresses to the cluster
903 # master or set of masters and to the internal load balancer virtual IP.
904 # This range must not overlap with any other ranges in use
905 # within the cluster&#x27;s network.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700906 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700907 &quot;webServerIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range reserved for the tenant project&#x27;s App Engine VMs.
908 &quot;webServerIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range for web server will be reserved. Needs
909 # to be disjoint from private_cluster_config.master_ipv4_cidr_block and
910 # cloud_sql_ipv4_cidr_block.
911 },
912 &quot;gkeCluster&quot;: &quot;A String&quot;, # Output only. The Kubernetes Engine cluster used to run this environment.
913 &quot;airflowUri&quot;: &quot;A String&quot;, # Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
914 # [Airflow web
915 # interface](/composer/docs/how-to/accessing/airflow-web-interface)).
916 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
917 &quot;envVariables&quot;: { # Optional. Additional environment variables to provide to the Apache Airflow
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700918 # scheduler, worker, and webserver processes.
919 #
920 # Environment variable names must match the regular expression
921 # `a-zA-Z_*`. They cannot specify Apache Airflow
922 # software configuration overrides (they cannot match the regular expression
923 # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
924 # following reserved names:
925 #
926 # * `AIRFLOW_HOME`
927 # * `C_FORCE_ROOT`
928 # * `CONTAINER_NAME`
929 # * `DAGS_FOLDER`
930 # * `GCP_PROJECT`
931 # * `GCS_BUCKET`
932 # * `GKE_CLUSTER_NAME`
933 # * `SQL_DATABASE`
934 # * `SQL_INSTANCE`
935 # * `SQL_PASSWORD`
936 # * `SQL_PROJECT`
937 # * `SQL_REGION`
938 # * `SQL_USER`
Bu Sun Kim65020912020-05-20 12:08:20 -0700939 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700940 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 &quot;pythonVersion&quot;: &quot;A String&quot;, # Optional. The major version of Python used to run the Apache Airflow
942 # scheduler, worker, and webserver processes.
943 #
944 # Can be set to &#x27;2&#x27; or &#x27;3&#x27;. If not specified, the default is &#x27;2&#x27;. Cannot be
945 # updated.
946 &quot;pypiPackages&quot;: { # Optional. Custom Python Package Index (PyPI) packages to be installed in
947 # the environment.
948 #
949 # Keys refer to the lowercase package name such as &quot;numpy&quot;
950 # and values are the lowercase extras and version specifier such as
951 # &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
952 # package without pinning it to a version specifier, use the empty string as
953 # the value.
954 &quot;a_key&quot;: &quot;A String&quot;,
955 },
956 &quot;imageVersion&quot;: &quot;A String&quot;, # The version of the software running in the environment.
957 # This encapsulates both the version of Cloud Composer functionality and the
958 # version of Apache Airflow. It must match the regular expression
959 # `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
960 # When used as input, the server also checks if the provided version is
961 # supported and denies the request for an unsupported version.
962 #
963 # The Cloud Composer portion of the version is a
964 # [semantic version](https://semver.org) or `latest`. When the patch version
965 # is omitted, the current Cloud Composer patch version is selected.
966 # When `latest` is provided instead of an explicit version number,
967 # the server replaces `latest` with the current Cloud Composer version
968 # and stores that version number in the same field.
969 #
970 # The portion of the image version that follows &lt;em&gt;airflow-&lt;/em&gt; is an
971 # official Apache Airflow repository
972 # [release name](https://github.com/apache/incubator-airflow/releases).
973 #
974 # See also [Version
975 # List](/composer/docs/concepts/versioning/composer-versions).
976 &quot;airflowConfigOverrides&quot;: { # Optional. Apache Airflow configuration properties to override.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700977 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700978 # Property keys contain the section and property names, separated by a
Bu Sun Kim65020912020-05-20 12:08:20 -0700979 # hyphen, for example &quot;core-dags_are_paused_at_creation&quot;. Section names must
980 # not contain hyphens (&quot;-&quot;), opening square brackets (&quot;[&quot;), or closing
981 # square brackets (&quot;]&quot;). The property name must not be empty and must not
982 # contain an equals sign (&quot;=&quot;) or semicolon (&quot;;&quot;). Section and property names
983 # must not contain a period (&quot;.&quot;). Apache Airflow configuration property
Dan O'Mearadd494642020-05-01 07:42:23 -0700984 # names must be written in
985 # [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
986 # contain any character, and can be written in any lower/upper case format.
987 #
988 # Certain Apache Airflow configuration property values are
989 # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists),
990 # and cannot be overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -0700991 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700992 },
993 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700994 &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 -0700995 # the Apache Airflow software.
Bu Sun Kim65020912020-05-20 12:08:20 -0700996 &quot;oauthScopes&quot;: [ # Optional. The set of Google API scopes to be made available on all
997 # node VMs. If `oauth_scopes` is empty, defaults to
998 # [&quot;https://www.googleapis.com/auth/cloud-platform&quot;]. Cannot be updated.
999 &quot;A String&quot;,
1000 ],
1001 &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 -07001002 # communications, specified as a
1003 # [relative resource
1004 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -07001005 # &quot;projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001006 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001007 # If a subnetwork is provided, `nodeConfig.network` must also be provided,
1008 # and the subnetwork must belong to the enclosing environment&#x27;s project and
1009 # location.
1010 &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 -07001011 # GKE cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001012 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the services&#x27; secondary range used to allocate
1013 # IP addresses to the cluster. Specify either `services_secondary_range_name`
1014 # or `services_ipv4_cidr_block` but not both.
1015 #
1016 # This field is applicable only when `use_ip_aliases` is true.
1017 &quot;useIpAliases&quot;: True or False, # Optional. Whether or not to enable Alias IPs in the GKE cluster.
1018 # If `true`, a VPC-native cluster is created.
1019 &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 -07001020 # the cluster.
1021 #
1022 # This field is applicable only when `use_ip_aliases` is true.
1023 #
1024 # Set to blank to have GKE choose a range with the default size.
1025 #
1026 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
1027 # netmask.
1028 #
1029 # Set to a
1030 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1031 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1032 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1033 # to use.
1034 # Specify `cluster_secondary_range_name` or `cluster_ipv4_cidr_block`
1035 # but not both.
Bu Sun Kim65020912020-05-20 12:08:20 -07001036 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the cluster&#x27;s secondary range used to allocate
1037 # IP addresses to pods. Specify either `cluster_secondary_range_name`
1038 # or `cluster_ipv4_cidr_block` but not both.
1039 #
1040 # This field is applicable only when `use_ip_aliases` is true.
1041 &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 -07001042 # cluster.
1043 #
1044 # This field is applicable only when `use_ip_aliases` is true.
1045 #
1046 # Set to blank to have GKE choose a range with the default size.
1047 #
1048 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
1049 # netmask.
1050 #
1051 # Set to a
1052 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1053 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1054 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1055 # to use.
1056 # Specify `services_secondary_range_name` or `services_ipv4_cidr_block`
1057 # but not both.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001058 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001059 &quot;diskSizeGb&quot;: 42, # Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
1060 # If unspecified, defaults to 100GB. Cannot be updated.
1061 &quot;tags&quot;: [ # Optional. The list of instance tags applied to all node VMs. Tags are used
1062 # to identify valid sources or targets for network firewalls. Each tag within
1063 # the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
1064 # Cannot be updated.
1065 &quot;A String&quot;,
1066 ],
1067 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Google Cloud Platform Service Account to be used by the node
1068 # VMs. If a service account is not specified, the &quot;default&quot; Compute Engine
1069 # service account is used. Cannot be updated.
1070 &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 -07001071 # to deploy the VMs used to run the Apache Airflow software, specified as a
1072 # [relative resource
1073 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -07001074 # &quot;projects/{projectId}/zones/{zoneId}&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -07001075 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001076 # This `location` must belong to the enclosing environment&#x27;s project and
Dan O'Mearadd494642020-05-01 07:42:23 -07001077 # location. If both this field and `nodeConfig.machineType` are specified,
1078 # `nodeConfig.machineType` must belong to this `location`; if both are
1079 # unspecified, the service will pick a zone in the Compute Engine region
1080 # corresponding to the Cloud Composer location, and propagate that choice to
1081 # both fields. If only one field (`location` or `nodeConfig.machineType`) is
1082 # specified, the location information from the specified field will be
1083 # propagated to the unspecified field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001084 &quot;machineType&quot;: &quot;A String&quot;, # Optional. The Compute Engine
1085 # [machine type](/compute/docs/machine-types) used for cluster instances,
1086 # specified as a
1087 # [relative resource
1088 # name](/apis/design/resource_names#relative_resource_name). For example:
1089 # &quot;projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}&quot;.
1090 #
1091 # The `machineType` must belong to the enclosing environment&#x27;s project and
1092 # location. If both this field and `nodeConfig.location` are specified,
1093 # this `machineType` must belong to the `nodeConfig.location`; if both are
1094 # unspecified, the service will pick a zone in the Compute Engine region
1095 # corresponding to the Cloud Composer location, and propagate that choice to
1096 # both fields. If exactly one of this field and `nodeConfig.location` is
1097 # specified, the location information from the specified field will be
1098 # propagated to the unspecified field.
1099 #
1100 # The `machineTypeId` must not be a [shared-core machine
1101 # type](/compute/docs/machine-types#sharedcore).
1102 #
1103 # If this field is unspecified, the `machineTypeId` defaults
1104 # to &quot;n1-standard-1&quot;.
1105 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine
1106 # communications, specified as a
1107 # [relative resource
1108 # name](/apis/design/resource_names#relative_resource_name). For example:
1109 # &quot;projects/{projectId}/global/networks/{networkId}&quot;.
1110 #
1111 # If unspecified, the default network in the environment&#x27;s project is used.
1112 # If a [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
1113 # is provided, `nodeConfig.subnetwork` must also be provided. For
1114 # [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see
1115 # `nodeConfig.subnetwork`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001116 },
1117 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001118 &quot;state&quot;: &quot;A String&quot;, # The current state of the environment.
1119 &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;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
1157 &quot;labels&quot;: { # Optional. User-defined labels for this environment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001158 # The labels map can contain no more than 64 entries. Entries of the labels
1159 # map are UTF8 strings that comply with the following restrictions:
1160 #
1161 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
1162 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
Dan O'Mearadd494642020-05-01 07:42:23 -07001163 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001164 # size.
Bu Sun Kim65020912020-05-20 12:08:20 -07001165 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001166 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001167 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was last modified.
1168 &quot;config&quot;: { # Configuration information for an environment. # Configuration parameters for this environment.
1169 &quot;nodeCount&quot;: 42, # The number of nodes in the Kubernetes Engine cluster that will be
1170 # used to run this environment.
1171 &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
1172 # Airflow software.
1173 # software.
1174 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Cloud SQL tier used by Airflow database.
1175 # If not specified, db-n1-standard-2 will be used.
1176 },
1177 &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.
1178 &quot;machineType&quot;: &quot;A String&quot;, # Optional. Machine type on which Airflow web server is running.
1179 # For example: composer-n1-webserver-2, composer-n1-webserver-4,
1180 # composer-n1-webserver-8.
1181 # If not specified, composer-n1-webserver-2 will be used.
1182 # Value custom is returned only in response, if Airflow web server parameters
1183 # were manually changed to a non-standard values.
1184 },
1185 &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
1186 # unspecified, no network-level access restrictions will be applied.
1187 &quot;allowedIpRanges&quot;: [ # A collection of allowed IP ranges with descriptions.
1188 { # Allowed IP range with user-provided description.
1189 &quot;value&quot;: &quot;A String&quot;, # IP address or range, defined using CIDR notation, of requests that this
1190 # rule applies to.
1191 # Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32`
1192 # or `2001:0db8:0000:0042:0000:8a2e:0370:7334`.
1193 #
1194 #
1195 # &lt;p&gt;IP range prefixes should be properly truncated. For example,
1196 # `1.2.3.4/24` should be truncated to `1.2.3.0/24`. Similarly, for IPv6,
1197 # `2001:db8::1/32` should be truncated to `2001:db8::/32`.
1198 &quot;description&quot;: &quot;A String&quot;, # Optional. User-provided description. It must contain at most 300 characters.
1199 },
1200 ],
1201 },
1202 &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 -07001203 # Storage objects reside in a flat namespace, a hierarchical file tree
Bu Sun Kim65020912020-05-20 12:08:20 -07001204 # can be simulated using &quot;/&quot;-delimited object name prefixes. DAG objects for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001205 # this environment reside in a simulated directory with the given prefix.
Bu Sun Kim65020912020-05-20 12:08:20 -07001206 &quot;privateEnvironmentConfig&quot;: { # The configuration information for configuring a Private IP Cloud Composer # The configuration used for the Private IP Cloud Composer environment.
1207 # environment.
1208 &quot;enablePrivateEnvironment&quot;: True or False, # Optional. If `true`, a Private IP Cloud Composer environment is created.
1209 # If this field is true, `use_ip_aliases` must be true.
1210 &quot;cloudSqlIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range in tenant project will be reserved for
1211 # Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block
1212 &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
1213 # Cloud Composer environment.
1214 # environment.
1215 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
1216 # left blank, the default value of &#x27;172.16.0.0/23&#x27; is used.
1217 &quot;enablePrivateEndpoint&quot;: True or False, # Optional. If `true`, access to the public endpoint of the GKE cluster is
1218 # denied.
1219 &quot;masterIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range in CIDR notation to use for the hosted master network. This
1220 # range is used for assigning internal IP addresses to the cluster
1221 # master or set of masters and to the internal load balancer virtual IP.
1222 # This range must not overlap with any other ranges in use
1223 # within the cluster&#x27;s network.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001224 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001225 &quot;webServerIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range reserved for the tenant project&#x27;s App Engine VMs.
1226 &quot;webServerIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range for web server will be reserved. Needs
1227 # to be disjoint from private_cluster_config.master_ipv4_cidr_block and
1228 # cloud_sql_ipv4_cidr_block.
1229 },
1230 &quot;gkeCluster&quot;: &quot;A String&quot;, # Output only. The Kubernetes Engine cluster used to run this environment.
1231 &quot;airflowUri&quot;: &quot;A String&quot;, # Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
1232 # [Airflow web
1233 # interface](/composer/docs/how-to/accessing/airflow-web-interface)).
1234 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
1235 &quot;envVariables&quot;: { # Optional. Additional environment variables to provide to the Apache Airflow
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001236 # scheduler, worker, and webserver processes.
1237 #
1238 # Environment variable names must match the regular expression
1239 # `a-zA-Z_*`. They cannot specify Apache Airflow
1240 # software configuration overrides (they cannot match the regular expression
1241 # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
1242 # following reserved names:
1243 #
1244 # * `AIRFLOW_HOME`
1245 # * `C_FORCE_ROOT`
1246 # * `CONTAINER_NAME`
1247 # * `DAGS_FOLDER`
1248 # * `GCP_PROJECT`
1249 # * `GCS_BUCKET`
1250 # * `GKE_CLUSTER_NAME`
1251 # * `SQL_DATABASE`
1252 # * `SQL_INSTANCE`
1253 # * `SQL_PASSWORD`
1254 # * `SQL_PROJECT`
1255 # * `SQL_REGION`
1256 # * `SQL_USER`
Bu Sun Kim65020912020-05-20 12:08:20 -07001257 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001258 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001259 &quot;pythonVersion&quot;: &quot;A String&quot;, # Optional. The major version of Python used to run the Apache Airflow
1260 # scheduler, worker, and webserver processes.
1261 #
1262 # Can be set to &#x27;2&#x27; or &#x27;3&#x27;. If not specified, the default is &#x27;2&#x27;. Cannot be
1263 # updated.
1264 &quot;pypiPackages&quot;: { # Optional. Custom Python Package Index (PyPI) packages to be installed in
1265 # the environment.
1266 #
1267 # Keys refer to the lowercase package name such as &quot;numpy&quot;
1268 # and values are the lowercase extras and version specifier such as
1269 # &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
1270 # package without pinning it to a version specifier, use the empty string as
1271 # the value.
1272 &quot;a_key&quot;: &quot;A String&quot;,
1273 },
1274 &quot;imageVersion&quot;: &quot;A String&quot;, # The version of the software running in the environment.
1275 # This encapsulates both the version of Cloud Composer functionality and the
1276 # version of Apache Airflow. It must match the regular expression
1277 # `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
1278 # When used as input, the server also checks if the provided version is
1279 # supported and denies the request for an unsupported version.
1280 #
1281 # The Cloud Composer portion of the version is a
1282 # [semantic version](https://semver.org) or `latest`. When the patch version
1283 # is omitted, the current Cloud Composer patch version is selected.
1284 # When `latest` is provided instead of an explicit version number,
1285 # the server replaces `latest` with the current Cloud Composer version
1286 # and stores that version number in the same field.
1287 #
1288 # The portion of the image version that follows &lt;em&gt;airflow-&lt;/em&gt; is an
1289 # official Apache Airflow repository
1290 # [release name](https://github.com/apache/incubator-airflow/releases).
1291 #
1292 # See also [Version
1293 # List](/composer/docs/concepts/versioning/composer-versions).
1294 &quot;airflowConfigOverrides&quot;: { # Optional. Apache Airflow configuration properties to override.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001295 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001296 # Property keys contain the section and property names, separated by a
Bu Sun Kim65020912020-05-20 12:08:20 -07001297 # hyphen, for example &quot;core-dags_are_paused_at_creation&quot;. Section names must
1298 # not contain hyphens (&quot;-&quot;), opening square brackets (&quot;[&quot;), or closing
1299 # square brackets (&quot;]&quot;). The property name must not be empty and must not
1300 # contain an equals sign (&quot;=&quot;) or semicolon (&quot;;&quot;). Section and property names
1301 # must not contain a period (&quot;.&quot;). Apache Airflow configuration property
Dan O'Mearadd494642020-05-01 07:42:23 -07001302 # names must be written in
1303 # [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
1304 # contain any character, and can be written in any lower/upper case format.
1305 #
1306 # Certain Apache Airflow configuration property values are
1307 # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists),
1308 # and cannot be overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -07001309 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001310 },
1311 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001312 &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 -07001313 # the Apache Airflow software.
Bu Sun Kim65020912020-05-20 12:08:20 -07001314 &quot;oauthScopes&quot;: [ # Optional. The set of Google API scopes to be made available on all
1315 # node VMs. If `oauth_scopes` is empty, defaults to
1316 # [&quot;https://www.googleapis.com/auth/cloud-platform&quot;]. Cannot be updated.
1317 &quot;A String&quot;,
1318 ],
1319 &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 -07001320 # communications, specified as a
1321 # [relative resource
1322 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -07001323 # &quot;projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001324 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001325 # If a subnetwork is provided, `nodeConfig.network` must also be provided,
1326 # and the subnetwork must belong to the enclosing environment&#x27;s project and
1327 # location.
1328 &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 -07001329 # GKE cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001330 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the services&#x27; secondary range used to allocate
1331 # IP addresses to the cluster. Specify either `services_secondary_range_name`
1332 # or `services_ipv4_cidr_block` but not both.
1333 #
1334 # This field is applicable only when `use_ip_aliases` is true.
1335 &quot;useIpAliases&quot;: True or False, # Optional. Whether or not to enable Alias IPs in the GKE cluster.
1336 # If `true`, a VPC-native cluster is created.
1337 &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 -07001338 # the cluster.
1339 #
1340 # This field is applicable only when `use_ip_aliases` is true.
1341 #
1342 # Set to blank to have GKE choose a range with the default size.
1343 #
1344 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
1345 # netmask.
1346 #
1347 # Set to a
1348 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1349 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1350 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1351 # to use.
1352 # Specify `cluster_secondary_range_name` or `cluster_ipv4_cidr_block`
1353 # but not both.
Bu Sun Kim65020912020-05-20 12:08:20 -07001354 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the cluster&#x27;s secondary range used to allocate
1355 # IP addresses to pods. Specify either `cluster_secondary_range_name`
1356 # or `cluster_ipv4_cidr_block` but not both.
1357 #
1358 # This field is applicable only when `use_ip_aliases` is true.
1359 &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 -07001360 # cluster.
1361 #
1362 # This field is applicable only when `use_ip_aliases` is true.
1363 #
1364 # Set to blank to have GKE choose a range with the default size.
1365 #
1366 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
1367 # netmask.
1368 #
1369 # Set to a
1370 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1371 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1372 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1373 # to use.
1374 # Specify `services_secondary_range_name` or `services_ipv4_cidr_block`
1375 # but not both.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001376 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001377 &quot;diskSizeGb&quot;: 42, # Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
1378 # If unspecified, defaults to 100GB. Cannot be updated.
1379 &quot;tags&quot;: [ # Optional. The list of instance tags applied to all node VMs. Tags are used
1380 # to identify valid sources or targets for network firewalls. Each tag within
1381 # the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
1382 # Cannot be updated.
1383 &quot;A String&quot;,
1384 ],
1385 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Google Cloud Platform Service Account to be used by the node
1386 # VMs. If a service account is not specified, the &quot;default&quot; Compute Engine
1387 # service account is used. Cannot be updated.
1388 &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 -07001389 # to deploy the VMs used to run the Apache Airflow software, specified as a
1390 # [relative resource
1391 # name](/apis/design/resource_names#relative_resource_name). For example:
Bu Sun Kim65020912020-05-20 12:08:20 -07001392 # &quot;projects/{projectId}/zones/{zoneId}&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -07001393 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001394 # This `location` must belong to the enclosing environment&#x27;s project and
Dan O'Mearadd494642020-05-01 07:42:23 -07001395 # location. If both this field and `nodeConfig.machineType` are specified,
1396 # `nodeConfig.machineType` must belong to this `location`; if both are
1397 # unspecified, the service will pick a zone in the Compute Engine region
1398 # corresponding to the Cloud Composer location, and propagate that choice to
1399 # both fields. If only one field (`location` or `nodeConfig.machineType`) is
1400 # specified, the location information from the specified field will be
1401 # propagated to the unspecified field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001402 &quot;machineType&quot;: &quot;A String&quot;, # Optional. The Compute Engine
1403 # [machine type](/compute/docs/machine-types) used for cluster instances,
1404 # specified as a
1405 # [relative resource
1406 # name](/apis/design/resource_names#relative_resource_name). For example:
1407 # &quot;projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}&quot;.
1408 #
1409 # The `machineType` must belong to the enclosing environment&#x27;s project and
1410 # location. If both this field and `nodeConfig.location` are specified,
1411 # this `machineType` must belong to the `nodeConfig.location`; if both are
1412 # unspecified, the service will pick a zone in the Compute Engine region
1413 # corresponding to the Cloud Composer location, and propagate that choice to
1414 # both fields. If exactly one of this field and `nodeConfig.location` is
1415 # specified, the location information from the specified field will be
1416 # propagated to the unspecified field.
1417 #
1418 # The `machineTypeId` must not be a [shared-core machine
1419 # type](/compute/docs/machine-types#sharedcore).
1420 #
1421 # If this field is unspecified, the `machineTypeId` defaults
1422 # to &quot;n1-standard-1&quot;.
1423 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine
1424 # communications, specified as a
1425 # [relative resource
1426 # name](/apis/design/resource_names#relative_resource_name). For example:
1427 # &quot;projects/{projectId}/global/networks/{networkId}&quot;.
1428 #
1429 # If unspecified, the default network in the environment&#x27;s project is used.
1430 # If a [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
1431 # is provided, `nodeConfig.subnetwork` must also be provided. For
1432 # [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see
1433 # `nodeConfig.subnetwork`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001434 },
1435 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001436 &quot;state&quot;: &quot;A String&quot;, # The current state of the environment.
1437 &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 Kim65020912020-05-20 12:08:20 -07001604 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1605 # contains progress information and common metadata such as create time.
1606 # Some services might not provide such metadata. Any method that returns a
1607 # long-running operation should document the metadata type, if any.
1608 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001609 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001610 &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 -07001611 # If `true`, the operation is completed, and either `error` or `response` is
1612 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001613 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001614 # method returns no data on success, such as `Delete`, the response is
1615 # `google.protobuf.Empty`. If the original method is standard
1616 # `Get`/`Create`/`Update`, the response should be the resource. For other
1617 # methods, the response should have the type `XxxResponse`, where `Xxx`
1618 # is the original method name. For example, if the original method name
1619 # is `TakeSnapshot()`, the inferred response type is
1620 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001621 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001622 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001623 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001624 # originally returns it. If you use the default HTTP mapping, the
1625 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001626 &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.
1627 # different programming environments, including REST APIs and RPC APIs. It is
1628 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1629 # three pieces of data: error code, error message, and error details.
1630 #
1631 # You can find out more about this error model and how to work with it in the
1632 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1633 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1634 # message types for APIs to use.
1635 {
1636 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1637 },
1638 ],
1639 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1640 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1641 # user-facing error message should be localized and sent in the
1642 # google.rpc.Status.details field, or localized by the client.
Dan O'Mearadd494642020-05-01 07:42:23 -07001643 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001644 }</pre>
1645</div>
1646
1647</body></html>