blob: 958d88e9ba5225f5e351845995e07bc513190fff [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_v1.html">Cloud Composer API</a> . <a href="composer_v1.projects.html">projects</a> . <a href="composer_v1.projects.locations.html">locations</a> . <a href="composer_v1.projects.locations.environments.html">environments</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Create a new environment.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Delete an environment.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Get an existing environment.</p>
86<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070087 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">List environments.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Update an environment.</p>
95<h3>Method Details</h3>
96<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070097 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098 <pre>Create a new environment.
99
100Args:
101 parent: string, The parent must be of the form
Bu Sun Kim65020912020-05-20 12:08:20 -0700102&quot;projects/{projectId}/locations/{locationId}&quot;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700103 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104 The object takes the form of:
105
106{ # An environment for running orchestration tasks.
Bu Sun Kim65020912020-05-20 12:08:20 -0700107 &quot;labels&quot;: { # Optional. User-defined labels for this environment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108 # The labels map can contain no more than 64 entries. Entries of the labels
109 # map are UTF8 strings that comply with the following restrictions:
110 #
111 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
112 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 # size.
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
118 &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;dagGcsPrefix&quot;: &quot;A String&quot;, # Output only. The Cloud Storage prefix of the DAGs for this environment. Although Cloud
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700121 # Storage objects reside in a flat namespace, a hierarchical file tree
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 # can be simulated using &quot;/&quot;-delimited object name prefixes. DAG objects for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123 # this environment reside in a simulated directory with the given prefix.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;gkeCluster&quot;: &quot;A String&quot;, # Output only. The Kubernetes Engine cluster used to run this environment.
125 &quot;privateEnvironmentConfig&quot;: { # The configuration information for configuring a Private IP Cloud Composer # The configuration used for the Private IP Cloud Composer environment.
126 # environment.
127 &quot;cloudSqlIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range in tenant project will be reserved for
128 # Cloud SQL. Needs to be disjoint from `web_server_ipv4_cidr_block`.
129 &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
130 # Cloud Composer environment.
131 # environment.
132 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
133 # left blank, the default value of &#x27;172.16.0.0/23&#x27; is used.
134 &quot;enablePrivateEndpoint&quot;: True or False, # Optional. If `true`, access to the public endpoint of the GKE cluster is
135 # denied.
136 &quot;masterIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range in CIDR notation to use for the hosted master network. This
137 # range is used for assigning internal IP addresses to the GKE cluster
138 # master or set of masters and to the internal load balancer virtual IP.
139 # This range must not overlap with any other ranges in use
140 # within the cluster&#x27;s network.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700142 &quot;webServerIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range reserved for the tenant project&#x27;s App Engine VMs.
143 &quot;webServerIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range for web server will be reserved. Needs
144 # to be disjoint from `private_cluster_config.master_ipv4_cidr_block` and
145 # `cloud_sql_ipv4_cidr_block`.
146 &quot;enablePrivateEnvironment&quot;: True or False, # Optional. If `true`, a Private IP Cloud Composer environment is created.
147 # If this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be
148 # set to true.
149 },
150 &quot;nodeConfig&quot;: { # The configuration information for the Kubernetes Engine nodes running # The configuration used for the Kubernetes Engine cluster.
151 # the Apache Airflow software.
152 &quot;location&quot;: &quot;A String&quot;, # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
153 # to deploy the VMs used to run the Apache Airflow software, specified as a
154 # [relative resource
155 # name](/apis/design/resource_names#relative_resource_name). For example:
156 # &quot;projects/{projectId}/zones/{zoneId}&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700157 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 # This `location` must belong to the enclosing environment&#x27;s project and
159 # location. If both this field and `nodeConfig.machineType` are specified,
160 # `nodeConfig.machineType` must belong to this `location`; if both are
161 # unspecified, the service will pick a zone in the Compute Engine region
162 # corresponding to the Cloud Composer location, and propagate that choice to
163 # both fields. If only one field (`location` or `nodeConfig.machineType`) is
164 # specified, the location information from the specified field will be
165 # propagated to the unspecified field.
166 &quot;machineType&quot;: &quot;A String&quot;, # Optional. The Compute Engine
167 # [machine type](/compute/docs/machine-types) used for cluster instances,
168 # specified as a
169 # [relative resource
170 # name](/apis/design/resource_names#relative_resource_name). For example:
171 # &quot;projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}&quot;.
172 #
173 # The `machineType` must belong to the enclosing environment&#x27;s project and
174 # location. If both this field and `nodeConfig.location` are specified,
175 # this `machineType` must belong to the `nodeConfig.location`; if both are
176 # unspecified, the service will pick a zone in the Compute Engine region
177 # corresponding to the Cloud Composer location, and propagate that choice to
178 # both fields. If exactly one of this field and `nodeConfig.location` is
179 # specified, the location information from the specified field will be
180 # propagated to the unspecified field.
181 #
182 # The `machineTypeId` must not be a [shared-core machine
183 # type](/compute/docs/machine-types#sharedcore).
184 #
185 # If this field is unspecified, the `machineTypeId` defaults
186 # to &quot;n1-standard-1&quot;.
187 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine
188 # communications, specified as a
189 # [relative resource
190 # name](/apis/design/resource_names#relative_resource_name). For example:
191 # &quot;projects/{projectId}/global/networks/{networkId}&quot;.
192 #
193 # [Shared VPC](/vpc/docs/shared-vpc) is not currently supported. The
194 # network must belong to the environment&#x27;s project. If unspecified, the
195 # &quot;default&quot; network ID in the environment&#x27;s project is used. If a
196 # [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
197 # is provided, `nodeConfig.subnetwork` must also be provided.
198 &quot;oauthScopes&quot;: [ # Optional. The set of Google API scopes to be made available on all
199 # node VMs. If `oauth_scopes` is empty, defaults to
200 # [&quot;https://www.googleapis.com/auth/cloud-platform&quot;]. Cannot be updated.
201 &quot;A String&quot;,
202 ],
203 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine
204 # communications, specified as a
205 # [relative resource
206 # name](/apis/design/resource_names#relative_resource_name). For example:
207 # &quot;projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}&quot;
208 #
209 # If a subnetwork is provided, `nodeConfig.network` must also be provided,
210 # and the subnetwork must belong to the enclosing environment&#x27;s project and
211 # location.
212 &quot;diskSizeGb&quot;: 42, # Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
213 # If unspecified, defaults to 100GB. Cannot be updated.
214 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the # Optional. The configuration for controlling how IPs are allocated in the GKE cluster.
215 # GKE cluster running the Apache Airflow software.
216 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range of the services IP addresses in this
217 # GKE cluster.
218 #
219 # This field is applicable only when `use_ip_aliases` is true.
220 #
221 # Set to blank to have GKE choose a range with the default size.
222 #
223 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
224 # netmask.
225 #
226 # Set to a
227 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
228 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
229 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
230 # to use.
231 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the services&#x27; secondary range used to allocate
232 # IP addresses to the GKE cluster.
233 #
234 # This field is applicable only when `use_ip_aliases` is true.
235 &quot;useIpAliases&quot;: True or False, # Optional. Whether or not to enable Alias IPs in the GKE cluster.
236 # If `true`, a VPC-native cluster is created.
237 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range used to allocate IP addresses to pods in
238 # the GKE cluster.
239 #
240 # This field is applicable only when `use_ip_aliases` is true.
241 #
242 # Set to blank to have GKE choose a range with the default size.
243 #
244 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
245 # netmask.
246 #
247 # Set to a
248 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
249 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
250 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
251 # to use.
252 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the GKE cluster&#x27;s secondary range used to allocate
253 # IP addresses to pods.
254 #
255 # This field is applicable only when `use_ip_aliases` is true.
256 },
257 &quot;tags&quot;: [ # Optional. The list of instance tags applied to all node VMs. Tags are used
258 # to identify valid sources or targets for network firewalls. Each tag within
259 # the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
260 # Cannot be updated.
261 &quot;A String&quot;,
262 ],
263 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Google Cloud Platform Service Account to be used by the node
264 # VMs. If a service account is not specified, the &quot;default&quot; Compute Engine
265 # service account is used. Cannot be updated.
266 },
267 &quot;airflowUri&quot;: &quot;A String&quot;, # Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
268 # [Airflow web
269 # interface](/composer/docs/how-to/accessing/airflow-web-interface)).
270 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
271 &quot;envVariables&quot;: { # Optional. Additional environment variables to provide to the Apache Airflow
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700272 # scheduler, worker, and webserver processes.
273 #
274 # Environment variable names must match the regular expression
275 # `a-zA-Z_*`. They cannot specify Apache Airflow
276 # software configuration overrides (they cannot match the regular expression
277 # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
278 # following reserved names:
279 #
280 # * `AIRFLOW_HOME`
281 # * `C_FORCE_ROOT`
282 # * `CONTAINER_NAME`
283 # * `DAGS_FOLDER`
284 # * `GCP_PROJECT`
285 # * `GCS_BUCKET`
286 # * `GKE_CLUSTER_NAME`
287 # * `SQL_DATABASE`
288 # * `SQL_INSTANCE`
289 # * `SQL_PASSWORD`
290 # * `SQL_PROJECT`
291 # * `SQL_REGION`
292 # * `SQL_USER`
Bu Sun Kim65020912020-05-20 12:08:20 -0700293 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700294 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700295 &quot;pythonVersion&quot;: &quot;A String&quot;, # Optional. The major version of Python used to run the Apache Airflow
296 # scheduler, worker, and webserver processes.
297 #
298 # Can be set to &#x27;2&#x27; or &#x27;3&#x27;. If not specified, the default is &#x27;2&#x27;. Cannot be
299 # updated.
300 &quot;pypiPackages&quot;: { # Optional. Custom Python Package Index (PyPI) packages to be installed in
301 # the environment.
302 #
303 # Keys refer to the lowercase package name such as &quot;numpy&quot;
304 # and values are the lowercase extras and version specifier such as
305 # &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
306 # package without pinning it to a version specifier, use the empty string as
307 # the value.
308 &quot;a_key&quot;: &quot;A String&quot;,
309 },
310 &quot;imageVersion&quot;: &quot;A String&quot;, # The version of the software running in the environment.
311 # This encapsulates both the version of Cloud Composer functionality and the
312 # version of Apache Airflow. It must match the regular expression
313 # `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
314 # When used as input, the server also checks if the provided version is
315 # supported and denies the request for an unsupported version.
316 #
317 # The Cloud Composer portion of the version is a
318 # [semantic version](https://semver.org) or `latest`. When the patch version
319 # is omitted, the current Cloud Composer patch version is selected.
320 # When `latest` is provided instead of an explicit version number,
321 # the server replaces `latest` with the current Cloud Composer version
322 # and stores that version number in the same field.
323 #
324 # The portion of the image version that follows &lt;em&gt;airflow-&lt;/em&gt; is an
325 # official Apache Airflow repository
326 # [release name](https://github.com/apache/incubator-airflow/releases).
327 #
328 # See also [Version
329 # List](/composer/docs/concepts/versioning/composer-versions).
330 &quot;airflowConfigOverrides&quot;: { # Optional. Apache Airflow configuration properties to override.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700331 #
332 # Property keys contain the section and property names, separated by a
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 # hyphen, for example &quot;core-dags_are_paused_at_creation&quot;. Section names must
334 # not contain hyphens (&quot;-&quot;), opening square brackets (&quot;[&quot;), or closing
335 # square brackets (&quot;]&quot;). The property name must not be empty and must not
336 # contain an equals sign (&quot;=&quot;) or semicolon (&quot;;&quot;). Section and property names
337 # must not contain a period (&quot;.&quot;). Apache Airflow configuration property
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700338 # names must be written in
339 # [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
340 # contain any character, and can be written in any lower/upper case format.
341 #
342 # Certain Apache Airflow configuration property values are
343 # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists),
344 # and cannot be overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700346 },
347 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 &quot;nodeCount&quot;: 42, # The number of nodes in the Kubernetes Engine cluster that will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700349 # used to run this environment.
350 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 &quot;state&quot;: &quot;A String&quot;, # The current state of the environment.
352 &quot;name&quot;: &quot;A String&quot;, # The resource name of the environment, in the form:
353 # &quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700354 #
355 # EnvironmentId must start with a lowercase letter followed by up to 63
356 # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
Bu Sun Kim65020912020-05-20 12:08:20 -0700357 &quot;uuid&quot;: &quot;A String&quot;, # Output only. The UUID (Universally Unique IDentifier) associated with this environment.
358 # This value is generated when the environment is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700359 }
360
361 x__xgafv: string, V1 error format.
362 Allowed values
363 1 - v1 error format
364 2 - v2 error format
365
366Returns:
367 An object of the form:
368
369 { # This resource represents a long-running operation that is the result of a
370 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700371 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700372 # contains progress information and common metadata such as create time.
373 # Some services might not provide such metadata. Any method that returns a
374 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700376 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700377 &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 -0700378 # If `true`, the operation is completed, and either `error` or `response` is
379 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700380 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700381 # method returns no data on success, such as `Delete`, the response is
382 # `google.protobuf.Empty`. If the original method is standard
383 # `Get`/`Create`/`Update`, the response should be the resource. For other
384 # methods, the response should have the type `XxxResponse`, where `Xxx`
385 # is the original method name. For example, if the original method name
386 # is `TakeSnapshot()`, the inferred response type is
387 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700388 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700389 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700390 &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 -0700391 # originally returns it. If you use the default HTTP mapping, the
392 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700393 &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.
394 # different programming environments, including REST APIs and RPC APIs. It is
395 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
396 # three pieces of data: error code, error message, and error details.
397 #
398 # You can find out more about this error model and how to work with it in the
399 # [API Design Guide](https://cloud.google.com/apis/design/errors).
400 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
401 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
402 # user-facing error message should be localized and sent in the
403 # google.rpc.Status.details field, or localized by the client.
404 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
405 # message types for APIs to use.
406 {
407 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
408 },
409 ],
410 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700411 }</pre>
412</div>
413
414<div class="method">
415 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
416 <pre>Delete an environment.
417
418Args:
419 name: string, The environment to delete, in the form:
Bu Sun Kim65020912020-05-20 12:08:20 -0700420&quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700421 x__xgafv: string, V1 error format.
422 Allowed values
423 1 - v1 error format
424 2 - v2 error format
425
426Returns:
427 An object of the form:
428
429 { # This resource represents a long-running operation that is the result of a
430 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700432 # contains progress information and common metadata such as create time.
433 # Some services might not provide such metadata. Any method that returns a
434 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700435 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700436 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700437 &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 -0700438 # If `true`, the operation is completed, and either `error` or `response` is
439 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700440 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700441 # method returns no data on success, such as `Delete`, the response is
442 # `google.protobuf.Empty`. If the original method is standard
443 # `Get`/`Create`/`Update`, the response should be the resource. For other
444 # methods, the response should have the type `XxxResponse`, where `Xxx`
445 # is the original method name. For example, if the original method name
446 # is `TakeSnapshot()`, the inferred response type is
447 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700448 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700449 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700450 &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 -0700451 # originally returns it. If you use the default HTTP mapping, the
452 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700453 &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.
454 # different programming environments, including REST APIs and RPC APIs. It is
455 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
456 # three pieces of data: error code, error message, and error details.
457 #
458 # You can find out more about this error model and how to work with it in the
459 # [API Design Guide](https://cloud.google.com/apis/design/errors).
460 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
461 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
462 # user-facing error message should be localized and sent in the
463 # google.rpc.Status.details field, or localized by the client.
464 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
465 # message types for APIs to use.
466 {
467 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
468 },
469 ],
470 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700471 }</pre>
472</div>
473
474<div class="method">
475 <code class="details" id="get">get(name, x__xgafv=None)</code>
476 <pre>Get an existing environment.
477
478Args:
479 name: string, The resource name of the environment to get, in the form:
Bu Sun Kim65020912020-05-20 12:08:20 -0700480&quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700481 x__xgafv: string, V1 error format.
482 Allowed values
483 1 - v1 error format
484 2 - v2 error format
485
486Returns:
487 An object of the form:
488
489 { # An environment for running orchestration tasks.
Bu Sun Kim65020912020-05-20 12:08:20 -0700490 &quot;labels&quot;: { # Optional. User-defined labels for this environment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700491 # The labels map can contain no more than 64 entries. Entries of the labels
492 # map are UTF8 strings that comply with the following restrictions:
493 #
494 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
495 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
Dan O'Mearadd494642020-05-01 07:42:23 -0700496 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700497 # size.
Bu Sun Kim65020912020-05-20 12:08:20 -0700498 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700499 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700500 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
501 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was last modified.
502 &quot;config&quot;: { # Configuration information for an environment. # Configuration parameters for this environment.
503 &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 -0700504 # Storage objects reside in a flat namespace, a hierarchical file tree
Bu Sun Kim65020912020-05-20 12:08:20 -0700505 # can be simulated using &quot;/&quot;-delimited object name prefixes. DAG objects for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700506 # this environment reside in a simulated directory with the given prefix.
Bu Sun Kim65020912020-05-20 12:08:20 -0700507 &quot;gkeCluster&quot;: &quot;A String&quot;, # Output only. The Kubernetes Engine cluster used to run this environment.
508 &quot;privateEnvironmentConfig&quot;: { # The configuration information for configuring a Private IP Cloud Composer # The configuration used for the Private IP Cloud Composer environment.
509 # environment.
510 &quot;cloudSqlIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range in tenant project will be reserved for
511 # Cloud SQL. Needs to be disjoint from `web_server_ipv4_cidr_block`.
512 &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
513 # Cloud Composer environment.
514 # environment.
515 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
516 # left blank, the default value of &#x27;172.16.0.0/23&#x27; is used.
517 &quot;enablePrivateEndpoint&quot;: True or False, # Optional. If `true`, access to the public endpoint of the GKE cluster is
518 # denied.
519 &quot;masterIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range in CIDR notation to use for the hosted master network. This
520 # range is used for assigning internal IP addresses to the GKE cluster
521 # master or set of masters and to the internal load balancer virtual IP.
522 # This range must not overlap with any other ranges in use
523 # within the cluster&#x27;s network.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700524 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700525 &quot;webServerIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range reserved for the tenant project&#x27;s App Engine VMs.
526 &quot;webServerIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range for web server will be reserved. Needs
527 # to be disjoint from `private_cluster_config.master_ipv4_cidr_block` and
528 # `cloud_sql_ipv4_cidr_block`.
529 &quot;enablePrivateEnvironment&quot;: True or False, # Optional. If `true`, a Private IP Cloud Composer environment is created.
530 # If this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be
531 # set to true.
532 },
533 &quot;nodeConfig&quot;: { # The configuration information for the Kubernetes Engine nodes running # The configuration used for the Kubernetes Engine cluster.
534 # the Apache Airflow software.
535 &quot;location&quot;: &quot;A String&quot;, # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
536 # to deploy the VMs used to run the Apache Airflow software, specified as a
537 # [relative resource
538 # name](/apis/design/resource_names#relative_resource_name). For example:
539 # &quot;projects/{projectId}/zones/{zoneId}&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700540 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700541 # This `location` must belong to the enclosing environment&#x27;s project and
542 # location. If both this field and `nodeConfig.machineType` are specified,
543 # `nodeConfig.machineType` must belong to this `location`; if both are
544 # unspecified, the service will pick a zone in the Compute Engine region
545 # corresponding to the Cloud Composer location, and propagate that choice to
546 # both fields. If only one field (`location` or `nodeConfig.machineType`) is
547 # specified, the location information from the specified field will be
548 # propagated to the unspecified field.
549 &quot;machineType&quot;: &quot;A String&quot;, # Optional. The Compute Engine
550 # [machine type](/compute/docs/machine-types) used for cluster instances,
551 # specified as a
552 # [relative resource
553 # name](/apis/design/resource_names#relative_resource_name). For example:
554 # &quot;projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}&quot;.
555 #
556 # The `machineType` must belong to the enclosing environment&#x27;s project and
557 # location. If both this field and `nodeConfig.location` are specified,
558 # this `machineType` must belong to the `nodeConfig.location`; if both are
559 # unspecified, the service will pick a zone in the Compute Engine region
560 # corresponding to the Cloud Composer location, and propagate that choice to
561 # both fields. If exactly one of this field and `nodeConfig.location` is
562 # specified, the location information from the specified field will be
563 # propagated to the unspecified field.
564 #
565 # The `machineTypeId` must not be a [shared-core machine
566 # type](/compute/docs/machine-types#sharedcore).
567 #
568 # If this field is unspecified, the `machineTypeId` defaults
569 # to &quot;n1-standard-1&quot;.
570 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine
571 # communications, specified as a
572 # [relative resource
573 # name](/apis/design/resource_names#relative_resource_name). For example:
574 # &quot;projects/{projectId}/global/networks/{networkId}&quot;.
575 #
576 # [Shared VPC](/vpc/docs/shared-vpc) is not currently supported. The
577 # network must belong to the environment&#x27;s project. If unspecified, the
578 # &quot;default&quot; network ID in the environment&#x27;s project is used. If a
579 # [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
580 # is provided, `nodeConfig.subnetwork` must also be provided.
581 &quot;oauthScopes&quot;: [ # Optional. The set of Google API scopes to be made available on all
582 # node VMs. If `oauth_scopes` is empty, defaults to
583 # [&quot;https://www.googleapis.com/auth/cloud-platform&quot;]. Cannot be updated.
584 &quot;A String&quot;,
585 ],
586 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine
587 # communications, specified as a
588 # [relative resource
589 # name](/apis/design/resource_names#relative_resource_name). For example:
590 # &quot;projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}&quot;
591 #
592 # If a subnetwork is provided, `nodeConfig.network` must also be provided,
593 # and the subnetwork must belong to the enclosing environment&#x27;s project and
594 # location.
595 &quot;diskSizeGb&quot;: 42, # Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
596 # If unspecified, defaults to 100GB. Cannot be updated.
597 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the # Optional. The configuration for controlling how IPs are allocated in the GKE cluster.
598 # GKE cluster running the Apache Airflow software.
599 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range of the services IP addresses in this
600 # GKE cluster.
601 #
602 # This field is applicable only when `use_ip_aliases` is true.
603 #
604 # Set to blank to have GKE choose a range with the default size.
605 #
606 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
607 # netmask.
608 #
609 # Set to a
610 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
611 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
612 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
613 # to use.
614 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the services&#x27; secondary range used to allocate
615 # IP addresses to the GKE cluster.
616 #
617 # This field is applicable only when `use_ip_aliases` is true.
618 &quot;useIpAliases&quot;: True or False, # Optional. Whether or not to enable Alias IPs in the GKE cluster.
619 # If `true`, a VPC-native cluster is created.
620 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range used to allocate IP addresses to pods in
621 # the GKE cluster.
622 #
623 # This field is applicable only when `use_ip_aliases` is true.
624 #
625 # Set to blank to have GKE choose a range with the default size.
626 #
627 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
628 # netmask.
629 #
630 # Set to a
631 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
632 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
633 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
634 # to use.
635 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the GKE cluster&#x27;s secondary range used to allocate
636 # IP addresses to pods.
637 #
638 # This field is applicable only when `use_ip_aliases` is true.
639 },
640 &quot;tags&quot;: [ # Optional. The list of instance tags applied to all node VMs. Tags are used
641 # to identify valid sources or targets for network firewalls. Each tag within
642 # the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
643 # Cannot be updated.
644 &quot;A String&quot;,
645 ],
646 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Google Cloud Platform Service Account to be used by the node
647 # VMs. If a service account is not specified, the &quot;default&quot; Compute Engine
648 # service account is used. Cannot be updated.
649 },
650 &quot;airflowUri&quot;: &quot;A String&quot;, # Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
651 # [Airflow web
652 # interface](/composer/docs/how-to/accessing/airflow-web-interface)).
653 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
654 &quot;envVariables&quot;: { # Optional. Additional environment variables to provide to the Apache Airflow
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700655 # scheduler, worker, and webserver processes.
656 #
657 # Environment variable names must match the regular expression
658 # `a-zA-Z_*`. They cannot specify Apache Airflow
659 # software configuration overrides (they cannot match the regular expression
660 # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
661 # following reserved names:
662 #
663 # * `AIRFLOW_HOME`
664 # * `C_FORCE_ROOT`
665 # * `CONTAINER_NAME`
666 # * `DAGS_FOLDER`
667 # * `GCP_PROJECT`
668 # * `GCS_BUCKET`
669 # * `GKE_CLUSTER_NAME`
670 # * `SQL_DATABASE`
671 # * `SQL_INSTANCE`
672 # * `SQL_PASSWORD`
673 # * `SQL_PROJECT`
674 # * `SQL_REGION`
675 # * `SQL_USER`
Bu Sun Kim65020912020-05-20 12:08:20 -0700676 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700677 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700678 &quot;pythonVersion&quot;: &quot;A String&quot;, # Optional. The major version of Python used to run the Apache Airflow
679 # scheduler, worker, and webserver processes.
680 #
681 # Can be set to &#x27;2&#x27; or &#x27;3&#x27;. If not specified, the default is &#x27;2&#x27;. Cannot be
682 # updated.
683 &quot;pypiPackages&quot;: { # Optional. Custom Python Package Index (PyPI) packages to be installed in
684 # the environment.
685 #
686 # Keys refer to the lowercase package name such as &quot;numpy&quot;
687 # and values are the lowercase extras and version specifier such as
688 # &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
689 # package without pinning it to a version specifier, use the empty string as
690 # the value.
691 &quot;a_key&quot;: &quot;A String&quot;,
692 },
693 &quot;imageVersion&quot;: &quot;A String&quot;, # The version of the software running in the environment.
694 # This encapsulates both the version of Cloud Composer functionality and the
695 # version of Apache Airflow. It must match the regular expression
696 # `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
697 # When used as input, the server also checks if the provided version is
698 # supported and denies the request for an unsupported version.
699 #
700 # The Cloud Composer portion of the version is a
701 # [semantic version](https://semver.org) or `latest`. When the patch version
702 # is omitted, the current Cloud Composer patch version is selected.
703 # When `latest` is provided instead of an explicit version number,
704 # the server replaces `latest` with the current Cloud Composer version
705 # and stores that version number in the same field.
706 #
707 # The portion of the image version that follows &lt;em&gt;airflow-&lt;/em&gt; is an
708 # official Apache Airflow repository
709 # [release name](https://github.com/apache/incubator-airflow/releases).
710 #
711 # See also [Version
712 # List](/composer/docs/concepts/versioning/composer-versions).
713 &quot;airflowConfigOverrides&quot;: { # Optional. Apache Airflow configuration properties to override.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700714 #
715 # Property keys contain the section and property names, separated by a
Bu Sun Kim65020912020-05-20 12:08:20 -0700716 # hyphen, for example &quot;core-dags_are_paused_at_creation&quot;. Section names must
717 # not contain hyphens (&quot;-&quot;), opening square brackets (&quot;[&quot;), or closing
718 # square brackets (&quot;]&quot;). The property name must not be empty and must not
719 # contain an equals sign (&quot;=&quot;) or semicolon (&quot;;&quot;). Section and property names
720 # must not contain a period (&quot;.&quot;). Apache Airflow configuration property
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700721 # names must be written in
722 # [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
723 # contain any character, and can be written in any lower/upper case format.
724 #
725 # Certain Apache Airflow configuration property values are
726 # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists),
727 # and cannot be overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -0700728 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700729 },
730 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700731 &quot;nodeCount&quot;: 42, # The number of nodes in the Kubernetes Engine cluster that will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700732 # used to run this environment.
733 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700734 &quot;state&quot;: &quot;A String&quot;, # The current state of the environment.
735 &quot;name&quot;: &quot;A String&quot;, # The resource name of the environment, in the form:
736 # &quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700737 #
738 # EnvironmentId must start with a lowercase letter followed by up to 63
739 # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
Bu Sun Kim65020912020-05-20 12:08:20 -0700740 &quot;uuid&quot;: &quot;A String&quot;, # Output only. The UUID (Universally Unique IDentifier) associated with this environment.
741 # This value is generated when the environment is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700742 }</pre>
743</div>
744
745<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700746 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700747 <pre>List environments.
748
749Args:
750 parent: string, List environments in the given project and location, in the form:
Bu Sun Kim65020912020-05-20 12:08:20 -0700751&quot;projects/{projectId}/locations/{locationId}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700752 pageToken: string, The next_page_token value returned from a previous List request, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700753 pageSize: integer, The maximum number of environments to return.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700754 x__xgafv: string, V1 error format.
755 Allowed values
756 1 - v1 error format
757 2 - v2 error format
758
759Returns:
760 An object of the form:
761
762 { # The environments in a project and location.
Bu Sun Kim65020912020-05-20 12:08:20 -0700763 &quot;environments&quot;: [ # The list of environments returned by a ListEnvironmentsRequest.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700764 { # An environment for running orchestration tasks.
Bu Sun Kim65020912020-05-20 12:08:20 -0700765 &quot;labels&quot;: { # Optional. User-defined labels for this environment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700766 # The labels map can contain no more than 64 entries. Entries of the labels
767 # map are UTF8 strings that comply with the following restrictions:
768 #
769 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
770 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
Dan O'Mearadd494642020-05-01 07:42:23 -0700771 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700772 # size.
Bu Sun Kim65020912020-05-20 12:08:20 -0700773 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700774 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700775 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
776 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was last modified.
777 &quot;config&quot;: { # Configuration information for an environment. # Configuration parameters for this environment.
778 &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 -0700779 # Storage objects reside in a flat namespace, a hierarchical file tree
Bu Sun Kim65020912020-05-20 12:08:20 -0700780 # can be simulated using &quot;/&quot;-delimited object name prefixes. DAG objects for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700781 # this environment reside in a simulated directory with the given prefix.
Bu Sun Kim65020912020-05-20 12:08:20 -0700782 &quot;gkeCluster&quot;: &quot;A String&quot;, # Output only. The Kubernetes Engine cluster used to run this environment.
783 &quot;privateEnvironmentConfig&quot;: { # The configuration information for configuring a Private IP Cloud Composer # The configuration used for the Private IP Cloud Composer environment.
784 # environment.
785 &quot;cloudSqlIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range in tenant project will be reserved for
786 # Cloud SQL. Needs to be disjoint from `web_server_ipv4_cidr_block`.
787 &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
788 # Cloud Composer environment.
789 # environment.
790 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
791 # left blank, the default value of &#x27;172.16.0.0/23&#x27; is used.
792 &quot;enablePrivateEndpoint&quot;: True or False, # Optional. If `true`, access to the public endpoint of the GKE cluster is
793 # denied.
794 &quot;masterIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range in CIDR notation to use for the hosted master network. This
795 # range is used for assigning internal IP addresses to the GKE cluster
796 # master or set of masters and to the internal load balancer virtual IP.
797 # This range must not overlap with any other ranges in use
798 # within the cluster&#x27;s network.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700799 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700800 &quot;webServerIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range reserved for the tenant project&#x27;s App Engine VMs.
801 &quot;webServerIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range for web server will be reserved. Needs
802 # to be disjoint from `private_cluster_config.master_ipv4_cidr_block` and
803 # `cloud_sql_ipv4_cidr_block`.
804 &quot;enablePrivateEnvironment&quot;: True or False, # Optional. If `true`, a Private IP Cloud Composer environment is created.
805 # If this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be
806 # set to true.
807 },
808 &quot;nodeConfig&quot;: { # The configuration information for the Kubernetes Engine nodes running # The configuration used for the Kubernetes Engine cluster.
809 # the Apache Airflow software.
810 &quot;location&quot;: &quot;A String&quot;, # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
811 # to deploy the VMs used to run the Apache Airflow software, specified as a
812 # [relative resource
813 # name](/apis/design/resource_names#relative_resource_name). For example:
814 # &quot;projects/{projectId}/zones/{zoneId}&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700815 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700816 # This `location` must belong to the enclosing environment&#x27;s project and
817 # location. If both this field and `nodeConfig.machineType` are specified,
818 # `nodeConfig.machineType` must belong to this `location`; if both are
819 # unspecified, the service will pick a zone in the Compute Engine region
820 # corresponding to the Cloud Composer location, and propagate that choice to
821 # both fields. If only one field (`location` or `nodeConfig.machineType`) is
822 # specified, the location information from the specified field will be
823 # propagated to the unspecified field.
824 &quot;machineType&quot;: &quot;A String&quot;, # Optional. The Compute Engine
825 # [machine type](/compute/docs/machine-types) used for cluster instances,
826 # specified as a
827 # [relative resource
828 # name](/apis/design/resource_names#relative_resource_name). For example:
829 # &quot;projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}&quot;.
830 #
831 # The `machineType` must belong to the enclosing environment&#x27;s project and
832 # location. If both this field and `nodeConfig.location` are specified,
833 # this `machineType` must belong to the `nodeConfig.location`; if both are
834 # unspecified, the service will pick a zone in the Compute Engine region
835 # corresponding to the Cloud Composer location, and propagate that choice to
836 # both fields. If exactly one of this field and `nodeConfig.location` is
837 # specified, the location information from the specified field will be
838 # propagated to the unspecified field.
839 #
840 # The `machineTypeId` must not be a [shared-core machine
841 # type](/compute/docs/machine-types#sharedcore).
842 #
843 # If this field is unspecified, the `machineTypeId` defaults
844 # to &quot;n1-standard-1&quot;.
845 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine
846 # communications, specified as a
847 # [relative resource
848 # name](/apis/design/resource_names#relative_resource_name). For example:
849 # &quot;projects/{projectId}/global/networks/{networkId}&quot;.
850 #
851 # [Shared VPC](/vpc/docs/shared-vpc) is not currently supported. The
852 # network must belong to the environment&#x27;s project. If unspecified, the
853 # &quot;default&quot; network ID in the environment&#x27;s project is used. If a
854 # [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
855 # is provided, `nodeConfig.subnetwork` must also be provided.
856 &quot;oauthScopes&quot;: [ # Optional. The set of Google API scopes to be made available on all
857 # node VMs. If `oauth_scopes` is empty, defaults to
858 # [&quot;https://www.googleapis.com/auth/cloud-platform&quot;]. Cannot be updated.
859 &quot;A String&quot;,
860 ],
861 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine
862 # communications, specified as a
863 # [relative resource
864 # name](/apis/design/resource_names#relative_resource_name). For example:
865 # &quot;projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}&quot;
866 #
867 # If a subnetwork is provided, `nodeConfig.network` must also be provided,
868 # and the subnetwork must belong to the enclosing environment&#x27;s project and
869 # location.
870 &quot;diskSizeGb&quot;: 42, # Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
871 # If unspecified, defaults to 100GB. Cannot be updated.
872 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the # Optional. The configuration for controlling how IPs are allocated in the GKE cluster.
873 # GKE cluster running the Apache Airflow software.
874 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range of the services IP addresses in this
875 # GKE cluster.
876 #
877 # This field is applicable only when `use_ip_aliases` is true.
878 #
879 # Set to blank to have GKE choose a range with the default size.
880 #
881 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
882 # netmask.
883 #
884 # Set to a
885 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
886 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
887 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
888 # to use.
889 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the services&#x27; secondary range used to allocate
890 # IP addresses to the GKE cluster.
891 #
892 # This field is applicable only when `use_ip_aliases` is true.
893 &quot;useIpAliases&quot;: True or False, # Optional. Whether or not to enable Alias IPs in the GKE cluster.
894 # If `true`, a VPC-native cluster is created.
895 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range used to allocate IP addresses to pods in
896 # the GKE cluster.
897 #
898 # This field is applicable only when `use_ip_aliases` is true.
899 #
900 # Set to blank to have GKE choose a range with the default size.
901 #
902 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
903 # netmask.
904 #
905 # Set to a
906 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
907 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
908 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
909 # to use.
910 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the GKE cluster&#x27;s secondary range used to allocate
911 # IP addresses to pods.
912 #
913 # This field is applicable only when `use_ip_aliases` is true.
914 },
915 &quot;tags&quot;: [ # Optional. The list of instance tags applied to all node VMs. Tags are used
916 # to identify valid sources or targets for network firewalls. Each tag within
917 # the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
918 # Cannot be updated.
919 &quot;A String&quot;,
920 ],
921 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Google Cloud Platform Service Account to be used by the node
922 # VMs. If a service account is not specified, the &quot;default&quot; Compute Engine
923 # service account is used. Cannot be updated.
924 },
925 &quot;airflowUri&quot;: &quot;A String&quot;, # Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
926 # [Airflow web
927 # interface](/composer/docs/how-to/accessing/airflow-web-interface)).
928 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
929 &quot;envVariables&quot;: { # Optional. Additional environment variables to provide to the Apache Airflow
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700930 # scheduler, worker, and webserver processes.
931 #
932 # Environment variable names must match the regular expression
933 # `a-zA-Z_*`. They cannot specify Apache Airflow
934 # software configuration overrides (they cannot match the regular expression
935 # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
936 # following reserved names:
937 #
938 # * `AIRFLOW_HOME`
939 # * `C_FORCE_ROOT`
940 # * `CONTAINER_NAME`
941 # * `DAGS_FOLDER`
942 # * `GCP_PROJECT`
943 # * `GCS_BUCKET`
944 # * `GKE_CLUSTER_NAME`
945 # * `SQL_DATABASE`
946 # * `SQL_INSTANCE`
947 # * `SQL_PASSWORD`
948 # * `SQL_PROJECT`
949 # * `SQL_REGION`
950 # * `SQL_USER`
Bu Sun Kim65020912020-05-20 12:08:20 -0700951 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700952 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700953 &quot;pythonVersion&quot;: &quot;A String&quot;, # Optional. The major version of Python used to run the Apache Airflow
954 # scheduler, worker, and webserver processes.
955 #
956 # Can be set to &#x27;2&#x27; or &#x27;3&#x27;. If not specified, the default is &#x27;2&#x27;. Cannot be
957 # updated.
958 &quot;pypiPackages&quot;: { # Optional. Custom Python Package Index (PyPI) packages to be installed in
959 # the environment.
960 #
961 # Keys refer to the lowercase package name such as &quot;numpy&quot;
962 # and values are the lowercase extras and version specifier such as
963 # &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
964 # package without pinning it to a version specifier, use the empty string as
965 # the value.
966 &quot;a_key&quot;: &quot;A String&quot;,
967 },
968 &quot;imageVersion&quot;: &quot;A String&quot;, # The version of the software running in the environment.
969 # This encapsulates both the version of Cloud Composer functionality and the
970 # version of Apache Airflow. It must match the regular expression
971 # `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
972 # When used as input, the server also checks if the provided version is
973 # supported and denies the request for an unsupported version.
974 #
975 # The Cloud Composer portion of the version is a
976 # [semantic version](https://semver.org) or `latest`. When the patch version
977 # is omitted, the current Cloud Composer patch version is selected.
978 # When `latest` is provided instead of an explicit version number,
979 # the server replaces `latest` with the current Cloud Composer version
980 # and stores that version number in the same field.
981 #
982 # The portion of the image version that follows &lt;em&gt;airflow-&lt;/em&gt; is an
983 # official Apache Airflow repository
984 # [release name](https://github.com/apache/incubator-airflow/releases).
985 #
986 # See also [Version
987 # List](/composer/docs/concepts/versioning/composer-versions).
988 &quot;airflowConfigOverrides&quot;: { # Optional. Apache Airflow configuration properties to override.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700989 #
990 # Property keys contain the section and property names, separated by a
Bu Sun Kim65020912020-05-20 12:08:20 -0700991 # hyphen, for example &quot;core-dags_are_paused_at_creation&quot;. Section names must
992 # not contain hyphens (&quot;-&quot;), opening square brackets (&quot;[&quot;), or closing
993 # square brackets (&quot;]&quot;). The property name must not be empty and must not
994 # contain an equals sign (&quot;=&quot;) or semicolon (&quot;;&quot;). Section and property names
995 # must not contain a period (&quot;.&quot;). Apache Airflow configuration property
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700996 # names must be written in
997 # [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
998 # contain any character, and can be written in any lower/upper case format.
999 #
1000 # Certain Apache Airflow configuration property values are
1001 # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists),
1002 # and cannot be overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -07001003 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001004 },
1005 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001006 &quot;nodeCount&quot;: 42, # The number of nodes in the Kubernetes Engine cluster that will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001007 # used to run this environment.
1008 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001009 &quot;state&quot;: &quot;A String&quot;, # The current state of the environment.
1010 &quot;name&quot;: &quot;A String&quot;, # The resource name of the environment, in the form:
1011 # &quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001012 #
1013 # EnvironmentId must start with a lowercase letter followed by up to 63
1014 # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
Bu Sun Kim65020912020-05-20 12:08:20 -07001015 &quot;uuid&quot;: &quot;A String&quot;, # Output only. The UUID (Universally Unique IDentifier) associated with this environment.
1016 # This value is generated when the environment is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001017 },
1018 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001019 &quot;nextPageToken&quot;: &quot;A String&quot;, # The page token used to query for the next page if one exists.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001020 }</pre>
1021</div>
1022
1023<div class="method">
1024 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1025 <pre>Retrieves the next page of results.
1026
1027Args:
1028 previous_request: The request for the previous page. (required)
1029 previous_response: The response from the request for the previous page. (required)
1030
1031Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001032 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001033 page. Returns None if there are no more items in the collection.
1034 </pre>
1035</div>
1036
1037<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001038 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001039 <pre>Update an environment.
1040
1041Args:
1042 name: string, The relative resource name of the environment to update, in the form:
Bu Sun Kim65020912020-05-20 12:08:20 -07001043&quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot; (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001044 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001045 The object takes the form of:
1046
1047{ # An environment for running orchestration tasks.
Bu Sun Kim65020912020-05-20 12:08:20 -07001048 &quot;labels&quot;: { # Optional. User-defined labels for this environment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001049 # The labels map can contain no more than 64 entries. Entries of the labels
1050 # map are UTF8 strings that comply with the following restrictions:
1051 #
1052 # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62}
1053 # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
Dan O'Mearadd494642020-05-01 07:42:23 -07001054 # * Both keys and values are additionally constrained to be &lt;= 128 bytes in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001055 # size.
Bu Sun Kim65020912020-05-20 12:08:20 -07001056 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001057 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001058 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
1059 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was last modified.
1060 &quot;config&quot;: { # Configuration information for an environment. # Configuration parameters for this environment.
1061 &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 -07001062 # Storage objects reside in a flat namespace, a hierarchical file tree
Bu Sun Kim65020912020-05-20 12:08:20 -07001063 # can be simulated using &quot;/&quot;-delimited object name prefixes. DAG objects for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001064 # this environment reside in a simulated directory with the given prefix.
Bu Sun Kim65020912020-05-20 12:08:20 -07001065 &quot;gkeCluster&quot;: &quot;A String&quot;, # Output only. The Kubernetes Engine cluster used to run this environment.
1066 &quot;privateEnvironmentConfig&quot;: { # The configuration information for configuring a Private IP Cloud Composer # The configuration used for the Private IP Cloud Composer environment.
1067 # environment.
1068 &quot;cloudSqlIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range in tenant project will be reserved for
1069 # Cloud SQL. Needs to be disjoint from `web_server_ipv4_cidr_block`.
1070 &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
1071 # Cloud Composer environment.
1072 # environment.
1073 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
1074 # left blank, the default value of &#x27;172.16.0.0/23&#x27; is used.
1075 &quot;enablePrivateEndpoint&quot;: True or False, # Optional. If `true`, access to the public endpoint of the GKE cluster is
1076 # denied.
1077 &quot;masterIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range in CIDR notation to use for the hosted master network. This
1078 # range is used for assigning internal IP addresses to the GKE cluster
1079 # master or set of masters and to the internal load balancer virtual IP.
1080 # This range must not overlap with any other ranges in use
1081 # within the cluster&#x27;s network.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001082 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001083 &quot;webServerIpv4ReservedRange&quot;: &quot;A String&quot;, # Output only. The IP range reserved for the tenant project&#x27;s App Engine VMs.
1084 &quot;webServerIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The CIDR block from which IP range for web server will be reserved. Needs
1085 # to be disjoint from `private_cluster_config.master_ipv4_cidr_block` and
1086 # `cloud_sql_ipv4_cidr_block`.
1087 &quot;enablePrivateEnvironment&quot;: True or False, # Optional. If `true`, a Private IP Cloud Composer environment is created.
1088 # If this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be
1089 # set to true.
1090 },
1091 &quot;nodeConfig&quot;: { # The configuration information for the Kubernetes Engine nodes running # The configuration used for the Kubernetes Engine cluster.
1092 # the Apache Airflow software.
1093 &quot;location&quot;: &quot;A String&quot;, # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
1094 # to deploy the VMs used to run the Apache Airflow software, specified as a
1095 # [relative resource
1096 # name](/apis/design/resource_names#relative_resource_name). For example:
1097 # &quot;projects/{projectId}/zones/{zoneId}&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001098 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001099 # This `location` must belong to the enclosing environment&#x27;s project and
1100 # location. If both this field and `nodeConfig.machineType` are specified,
1101 # `nodeConfig.machineType` must belong to this `location`; if both are
1102 # unspecified, the service will pick a zone in the Compute Engine region
1103 # corresponding to the Cloud Composer location, and propagate that choice to
1104 # both fields. If only one field (`location` or `nodeConfig.machineType`) is
1105 # specified, the location information from the specified field will be
1106 # propagated to the unspecified field.
1107 &quot;machineType&quot;: &quot;A String&quot;, # Optional. The Compute Engine
1108 # [machine type](/compute/docs/machine-types) used for cluster instances,
1109 # specified as a
1110 # [relative resource
1111 # name](/apis/design/resource_names#relative_resource_name). For example:
1112 # &quot;projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}&quot;.
1113 #
1114 # The `machineType` must belong to the enclosing environment&#x27;s project and
1115 # location. If both this field and `nodeConfig.location` are specified,
1116 # this `machineType` must belong to the `nodeConfig.location`; if both are
1117 # unspecified, the service will pick a zone in the Compute Engine region
1118 # corresponding to the Cloud Composer location, and propagate that choice to
1119 # both fields. If exactly one of this field and `nodeConfig.location` is
1120 # specified, the location information from the specified field will be
1121 # propagated to the unspecified field.
1122 #
1123 # The `machineTypeId` must not be a [shared-core machine
1124 # type](/compute/docs/machine-types#sharedcore).
1125 #
1126 # If this field is unspecified, the `machineTypeId` defaults
1127 # to &quot;n1-standard-1&quot;.
1128 &quot;network&quot;: &quot;A String&quot;, # Optional. The Compute Engine network to be used for machine
1129 # communications, specified as a
1130 # [relative resource
1131 # name](/apis/design/resource_names#relative_resource_name). For example:
1132 # &quot;projects/{projectId}/global/networks/{networkId}&quot;.
1133 #
1134 # [Shared VPC](/vpc/docs/shared-vpc) is not currently supported. The
1135 # network must belong to the environment&#x27;s project. If unspecified, the
1136 # &quot;default&quot; network ID in the environment&#x27;s project is used. If a
1137 # [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
1138 # is provided, `nodeConfig.subnetwork` must also be provided.
1139 &quot;oauthScopes&quot;: [ # Optional. The set of Google API scopes to be made available on all
1140 # node VMs. If `oauth_scopes` is empty, defaults to
1141 # [&quot;https://www.googleapis.com/auth/cloud-platform&quot;]. Cannot be updated.
1142 &quot;A String&quot;,
1143 ],
1144 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The Compute Engine subnetwork to be used for machine
1145 # communications, specified as a
1146 # [relative resource
1147 # name](/apis/design/resource_names#relative_resource_name). For example:
1148 # &quot;projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}&quot;
1149 #
1150 # If a subnetwork is provided, `nodeConfig.network` must also be provided,
1151 # and the subnetwork must belong to the enclosing environment&#x27;s project and
1152 # location.
1153 &quot;diskSizeGb&quot;: 42, # Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
1154 # If unspecified, defaults to 100GB. Cannot be updated.
1155 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the # Optional. The configuration for controlling how IPs are allocated in the GKE cluster.
1156 # GKE cluster running the Apache Airflow software.
1157 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range of the services IP addresses in this
1158 # GKE cluster.
1159 #
1160 # This field is applicable only when `use_ip_aliases` is true.
1161 #
1162 # Set to blank to have GKE choose a range with the default size.
1163 #
1164 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
1165 # netmask.
1166 #
1167 # Set to a
1168 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1169 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1170 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1171 # to use.
1172 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the services&#x27; secondary range used to allocate
1173 # IP addresses to the GKE cluster.
1174 #
1175 # This field is applicable only when `use_ip_aliases` is true.
1176 &quot;useIpAliases&quot;: True or False, # Optional. Whether or not to enable Alias IPs in the GKE cluster.
1177 # If `true`, a VPC-native cluster is created.
1178 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # Optional. The IP address range used to allocate IP addresses to pods in
1179 # the GKE cluster.
1180 #
1181 # This field is applicable only when `use_ip_aliases` is true.
1182 #
1183 # Set to blank to have GKE choose a range with the default size.
1184 #
1185 # Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
1186 # netmask.
1187 #
1188 # Set to a
1189 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1190 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1191 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1192 # to use.
1193 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # Optional. The name of the GKE cluster&#x27;s secondary range used to allocate
1194 # IP addresses to pods.
1195 #
1196 # This field is applicable only when `use_ip_aliases` is true.
1197 },
1198 &quot;tags&quot;: [ # Optional. The list of instance tags applied to all node VMs. Tags are used
1199 # to identify valid sources or targets for network firewalls. Each tag within
1200 # the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
1201 # Cannot be updated.
1202 &quot;A String&quot;,
1203 ],
1204 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Google Cloud Platform Service Account to be used by the node
1205 # VMs. If a service account is not specified, the &quot;default&quot; Compute Engine
1206 # service account is used. Cannot be updated.
1207 },
1208 &quot;airflowUri&quot;: &quot;A String&quot;, # Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
1209 # [Airflow web
1210 # interface](/composer/docs/how-to/accessing/airflow-web-interface)).
1211 &quot;softwareConfig&quot;: { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
1212 &quot;envVariables&quot;: { # Optional. Additional environment variables to provide to the Apache Airflow
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001213 # scheduler, worker, and webserver processes.
1214 #
1215 # Environment variable names must match the regular expression
1216 # `a-zA-Z_*`. They cannot specify Apache Airflow
1217 # software configuration overrides (they cannot match the regular expression
1218 # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
1219 # following reserved names:
1220 #
1221 # * `AIRFLOW_HOME`
1222 # * `C_FORCE_ROOT`
1223 # * `CONTAINER_NAME`
1224 # * `DAGS_FOLDER`
1225 # * `GCP_PROJECT`
1226 # * `GCS_BUCKET`
1227 # * `GKE_CLUSTER_NAME`
1228 # * `SQL_DATABASE`
1229 # * `SQL_INSTANCE`
1230 # * `SQL_PASSWORD`
1231 # * `SQL_PROJECT`
1232 # * `SQL_REGION`
1233 # * `SQL_USER`
Bu Sun Kim65020912020-05-20 12:08:20 -07001234 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001235 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001236 &quot;pythonVersion&quot;: &quot;A String&quot;, # Optional. The major version of Python used to run the Apache Airflow
1237 # scheduler, worker, and webserver processes.
1238 #
1239 # Can be set to &#x27;2&#x27; or &#x27;3&#x27;. If not specified, the default is &#x27;2&#x27;. Cannot be
1240 # updated.
1241 &quot;pypiPackages&quot;: { # Optional. Custom Python Package Index (PyPI) packages to be installed in
1242 # the environment.
1243 #
1244 # Keys refer to the lowercase package name such as &quot;numpy&quot;
1245 # and values are the lowercase extras and version specifier such as
1246 # &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
1247 # package without pinning it to a version specifier, use the empty string as
1248 # the value.
1249 &quot;a_key&quot;: &quot;A String&quot;,
1250 },
1251 &quot;imageVersion&quot;: &quot;A String&quot;, # The version of the software running in the environment.
1252 # This encapsulates both the version of Cloud Composer functionality and the
1253 # version of Apache Airflow. It must match the regular expression
1254 # `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
1255 # When used as input, the server also checks if the provided version is
1256 # supported and denies the request for an unsupported version.
1257 #
1258 # The Cloud Composer portion of the version is a
1259 # [semantic version](https://semver.org) or `latest`. When the patch version
1260 # is omitted, the current Cloud Composer patch version is selected.
1261 # When `latest` is provided instead of an explicit version number,
1262 # the server replaces `latest` with the current Cloud Composer version
1263 # and stores that version number in the same field.
1264 #
1265 # The portion of the image version that follows &lt;em&gt;airflow-&lt;/em&gt; is an
1266 # official Apache Airflow repository
1267 # [release name](https://github.com/apache/incubator-airflow/releases).
1268 #
1269 # See also [Version
1270 # List](/composer/docs/concepts/versioning/composer-versions).
1271 &quot;airflowConfigOverrides&quot;: { # Optional. Apache Airflow configuration properties to override.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001272 #
1273 # Property keys contain the section and property names, separated by a
Bu Sun Kim65020912020-05-20 12:08:20 -07001274 # hyphen, for example &quot;core-dags_are_paused_at_creation&quot;. Section names must
1275 # not contain hyphens (&quot;-&quot;), opening square brackets (&quot;[&quot;), or closing
1276 # square brackets (&quot;]&quot;). The property name must not be empty and must not
1277 # contain an equals sign (&quot;=&quot;) or semicolon (&quot;;&quot;). Section and property names
1278 # must not contain a period (&quot;.&quot;). Apache Airflow configuration property
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001279 # names must be written in
1280 # [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
1281 # contain any character, and can be written in any lower/upper case format.
1282 #
1283 # Certain Apache Airflow configuration property values are
1284 # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists),
1285 # and cannot be overridden.
Bu Sun Kim65020912020-05-20 12:08:20 -07001286 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001287 },
1288 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001289 &quot;nodeCount&quot;: 42, # The number of nodes in the Kubernetes Engine cluster that will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001290 # used to run this environment.
1291 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001292 &quot;state&quot;: &quot;A String&quot;, # The current state of the environment.
1293 &quot;name&quot;: &quot;A String&quot;, # The resource name of the environment, in the form:
1294 # &quot;projects/{projectId}/locations/{locationId}/environments/{environmentId}&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001295 #
1296 # EnvironmentId must start with a lowercase letter followed by up to 63
1297 # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
Bu Sun Kim65020912020-05-20 12:08:20 -07001298 &quot;uuid&quot;: &quot;A String&quot;, # Output only. The UUID (Universally Unique IDentifier) associated with this environment.
1299 # This value is generated when the environment is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001300 }
1301
1302 updateMask: string, Required. A comma-separated list of paths, relative to `Environment`, of
1303fields to update.
1304For example, to set the version of scikit-learn to install in the
1305environment to 0.19.0 and to remove an existing installation of
1306numpy, the `updateMask` parameter would include the following two
Bu Sun Kim65020912020-05-20 12:08:20 -07001307`paths` values: &quot;config.softwareConfig.pypiPackages.scikit-learn&quot; and
1308&quot;config.softwareConfig.pypiPackages.numpy&quot;. The included patch
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001309environment would specify the scikit-learn version as follows:
1310
1311 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001312 &quot;config&quot;:{
1313 &quot;softwareConfig&quot;:{
1314 &quot;pypiPackages&quot;:{
1315 &quot;scikit-learn&quot;:&quot;==0.19.0&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001316 }
1317 }
1318 }
1319 }
1320
1321Note that in the above example, any existing PyPI packages
1322other than scikit-learn and numpy will be unaffected.
1323
Bu Sun Kim65020912020-05-20 12:08:20 -07001324Only one update type may be included in a single request&#x27;s `updateMask`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001325For example, one cannot update both the PyPI packages and
1326labels in the same request. However, it is possible to update multiple
1327members of a map field simultaneously in the same request. For example,
Bu Sun Kim65020912020-05-20 12:08:20 -07001328to set the labels &quot;label1&quot; and &quot;label2&quot; while clearing &quot;label3&quot; (assuming
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001329it already exists), one can
Bu Sun Kim65020912020-05-20 12:08:20 -07001330provide the paths &quot;labels.label1&quot;, &quot;labels.label2&quot;, and &quot;labels.label3&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001331and populate the patch environment as follows:
1332
1333 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001334 &quot;labels&quot;:{
1335 &quot;label1&quot;:&quot;new-label1-value&quot;
1336 &quot;label2&quot;:&quot;new-label2-value&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001337 }
1338 }
1339
1340Note that in the above example, any existing labels that are not
1341included in the `updateMask` will be unaffected.
1342
1343It is also possible to replace an entire map field by providing the
Bu Sun Kim65020912020-05-20 12:08:20 -07001344map field&#x27;s path in the `updateMask`. The new value of the field will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001345be that which is provided in the patch environment. For example, to
1346delete all pre-existing user-specified PyPI packages and
1347install botocore at version 1.7.14, the `updateMask` would contain
Bu Sun Kim65020912020-05-20 12:08:20 -07001348the path &quot;config.softwareConfig.pypiPackages&quot;, and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001349the patch environment would be the following:
1350
1351 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001352 &quot;config&quot;:{
1353 &quot;softwareConfig&quot;:{
1354 &quot;pypiPackages&quot;:{
1355 &quot;botocore&quot;:&quot;==1.7.14&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001356 }
1357 }
1358 }
1359 }
1360
1361**Note:** Only the following fields can be updated:
1362
Dan O'Mearadd494642020-05-01 07:42:23 -07001363 &lt;table&gt;
1364 &lt;tbody&gt;
1365 &lt;tr&gt;
1366 &lt;td&gt;&lt;strong&gt;Mask&lt;/strong&gt;&lt;/td&gt;
1367 &lt;td&gt;&lt;strong&gt;Purpose&lt;/strong&gt;&lt;/td&gt;
1368 &lt;/tr&gt;
1369 &lt;tr&gt;
1370 &lt;td&gt;config.softwareConfig.pypiPackages
1371 &lt;/td&gt;
1372 &lt;td&gt;Replace all custom custom PyPI packages. If a replacement
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001373 package map is not included in `environment`, all custom
1374 PyPI packages are cleared. It is an error to provide both this mask and a
Dan O'Mearadd494642020-05-01 07:42:23 -07001375 mask specifying an individual package.&lt;/td&gt;
1376 &lt;/tr&gt;
1377 &lt;tr&gt;
1378 &lt;td&gt;config.softwareConfig.pypiPackages.&lt;var&gt;packagename&lt;/var&gt;&lt;/td&gt;
1379 &lt;td&gt;Update the custom PyPI package &lt;var&gt;packagename&lt;/var&gt;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001380 preserving other packages. To delete the package, include it in
1381 `updateMask`, and omit the mapping for it in
1382 `environment.config.softwareConfig.pypiPackages`. It is an error
1383 to provide both a mask of this form and the
Bu Sun Kim65020912020-05-20 12:08:20 -07001384 &quot;config.softwareConfig.pypiPackages&quot; mask.&lt;/td&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -07001385 &lt;/tr&gt;
1386 &lt;tr&gt;
1387 &lt;td&gt;labels&lt;/td&gt;
1388 &lt;td&gt;Replace all environment labels. If a replacement labels map is not
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001389 included in `environment`, all labels are cleared. It is an error to
1390 provide both this mask and a mask specifying one or more individual
Dan O'Mearadd494642020-05-01 07:42:23 -07001391 labels.&lt;/td&gt;
1392 &lt;/tr&gt;
1393 &lt;tr&gt;
1394 &lt;td&gt;labels.&lt;var&gt;labelName&lt;/var&gt;&lt;/td&gt;
1395 &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 -07001396 labels. To delete the label, include it in `updateMask` and omit its
1397 mapping in `environment.labels`. It is an error to provide both a
Bu Sun Kim65020912020-05-20 12:08:20 -07001398 mask of this form and the &quot;labels&quot; mask.&lt;/td&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -07001399 &lt;/tr&gt;
1400 &lt;tr&gt;
1401 &lt;td&gt;config.nodeCount&lt;/td&gt;
1402 &lt;td&gt;Horizontally scale the number of nodes in the environment. An integer
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001403 greater than or equal to 3 must be provided in the `config.nodeCount`
1404 field.
Dan O'Mearadd494642020-05-01 07:42:23 -07001405 &lt;/td&gt;
1406 &lt;/tr&gt;
1407 &lt;tr&gt;
1408 &lt;td&gt;config.softwareConfig.airflowConfigOverrides&lt;/td&gt;
1409 &lt;td&gt;Replace all Apache Airflow config overrides. If a replacement config
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001410 overrides map is not included in `environment`, all config overrides
1411 are cleared.
1412 It is an error to provide both this mask and a mask specifying one or
Dan O'Mearadd494642020-05-01 07:42:23 -07001413 more individual config overrides.&lt;/td&gt;
1414 &lt;/tr&gt;
1415 &lt;tr&gt;
1416 &lt;td&gt;config.softwareConfig.airflowConfigOverrides.&lt;var&gt;section&lt;/var&gt;-&lt;var&gt;name
1417 &lt;/var&gt;&lt;/td&gt;
1418 &lt;td&gt;Override the Apache Airflow config property &lt;var&gt;name&lt;/var&gt; in the
1419 section named &lt;var&gt;section&lt;/var&gt;, preserving other properties. To delete
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001420 the property override, include it in `updateMask` and omit its mapping
1421 in `environment.config.softwareConfig.airflowConfigOverrides`.
1422 It is an error to provide both a mask of this form and the
Bu Sun Kim65020912020-05-20 12:08:20 -07001423 &quot;config.softwareConfig.airflowConfigOverrides&quot; mask.&lt;/td&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -07001424 &lt;/tr&gt;
1425 &lt;tr&gt;
1426 &lt;td&gt;config.softwareConfig.envVariables&lt;/td&gt;
1427 &lt;td&gt;Replace all environment variables. If a replacement environment
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001428 variable map is not included in `environment`, all custom environment
1429 variables are cleared.
1430 It is an error to provide both this mask and a mask specifying one or
Dan O'Mearadd494642020-05-01 07:42:23 -07001431 more individual environment variables.&lt;/td&gt;
1432 &lt;/tr&gt;
1433 &lt;/tbody&gt;
1434 &lt;/table&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001435 x__xgafv: string, V1 error format.
1436 Allowed values
1437 1 - v1 error format
1438 2 - v2 error format
1439
1440Returns:
1441 An object of the form:
1442
1443 { # This resource represents a long-running operation that is the result of a
1444 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07001445 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001446 # contains progress information and common metadata such as create time.
1447 # Some services might not provide such metadata. Any method that returns a
1448 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -07001449 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001450 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001451 &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 -07001452 # If `true`, the operation is completed, and either `error` or `response` is
1453 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001454 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001455 # method returns no data on success, such as `Delete`, the response is
1456 # `google.protobuf.Empty`. If the original method is standard
1457 # `Get`/`Create`/`Update`, the response should be the resource. For other
1458 # methods, the response should have the type `XxxResponse`, where `Xxx`
1459 # is the original method name. For example, if the original method name
1460 # is `TakeSnapshot()`, the inferred response type is
1461 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001462 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001463 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001464 &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 -07001465 # originally returns it. If you use the default HTTP mapping, the
1466 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001467 &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.
1468 # different programming environments, including REST APIs and RPC APIs. It is
1469 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1470 # three pieces of data: error code, error message, and error details.
1471 #
1472 # You can find out more about this error model and how to work with it in the
1473 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1474 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1475 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1476 # user-facing error message should be localized and sent in the
1477 # google.rpc.Status.details field, or localized by the client.
1478 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1479 # message types for APIs to use.
1480 {
1481 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1482 },
1483 ],
1484 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001485 }</pre>
1486</div>
1487
1488</body></html>