blob: a1bea2bb9ad495a485faea1d00508ea3c6b7913c [file] [log] [blame]
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="container_v1.html">Kubernetes Engine API</a> . <a href="container_v1.projects.html">projects</a> . <a href="container_v1.projects.zones.html">zones</a> . <a href="container_v1.projects.zones.clusters.html">clusters</a> . <a href="container_v1.projects.zones.clusters.nodePools.html">nodePools</a></h1>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#autoscaling">autoscaling(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Sets the autoscaling settings for the specified node pool.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070082<p class="firstline">Creates a node pool for a cluster.</p>
83<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084 <code><a href="#delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070085<p class="firstline">Deletes a node pool from a cluster.</p>
86<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087 <code><a href="#get">get(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Retrieves the requested node pool.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070089<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090 <code><a href="#list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070091<p class="firstline">Lists the node pools for a cluster.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040092<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#rollback">rollback(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Rolls back a previously Aborted or Failed NodePool upgrade.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040095<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#setManagement">setManagement(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040097<p class="firstline">Sets the NodeManagement options for a node pool.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#setSize">setSize(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Sets the size for a specific node pool.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#update">update(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Updates the version and/or image type for the specified node pool.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700104<h3>Method Details</h3>
105<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code class="details" id="autoscaling">autoscaling(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107 <pre>Sets the autoscaling settings for the specified node pool.
108
109Args:
110 projectId: string, Deprecated. The Google Developers Console [project ID or project
111number](https://support.google.com/cloud/answer/6158840).
112This field has been deprecated and replaced by the name field. (required)
113 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700114[zone](https://cloud.google.com/compute/docs/zones#available) in which the
115cluster resides. This field has been deprecated and replaced by the name
116field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117 clusterId: string, Deprecated. The name of the cluster to upgrade.
118This field has been deprecated and replaced by the name field. (required)
119 nodePoolId: string, Deprecated. The name of the node pool to upgrade.
120This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 The object takes the form of:
123
124{ # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
126 # number](https://support.google.com/cloud/answer/6158840).
127 # This field has been deprecated and replaced by the name field.
128 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
129 # This field has been deprecated and replaced by the name field.
130 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade.
131 # This field has been deprecated and replaced by the name field.
132 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700133 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
134 # cluster resides. This field has been deprecated and replaced by the name
135 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700136 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to set
137 # autoscaler settings. Specified in the format
138 # `projects/*/locations/*/clusters/*/nodePools/*`.
139 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Required. Autoscaling configuration for the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700141 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
142 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700143 # has to enough quota to scale up the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700144 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
145 # max_node_count.
146 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700147 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148 }
149
150 x__xgafv: string, V1 error format.
151 Allowed values
152 1 - v1 error format
153 2 - v2 error format
154
155Returns:
156 An object of the form:
157
158 { # This operation resource represents operations that may have happened or are
159 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700160 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
161 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700162 { # StatusCondition describes why a cluster or a node pool has a certain status
163 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
165 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700166 },
167 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700169 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700171 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
172 # or
173 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
174 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700175 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
176 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
177 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
178 &quot;stages&quot;: [ # Substages of an operation or a stage.
179 # Object with schema name: OperationProgress
180 ],
181 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
182 # Unset for single-stage operations.
183 &quot;metrics&quot;: [ # Progress metric bundle, for example:
184 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
185 # {name: &quot;nodes total&quot;, int_value: 32}]
186 # or
187 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
188 # {name: &quot;progress scale&quot;, double_value: 1.0}]
189 { # Progress metric is (string, int|float|string) pair.
190 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
191 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
192 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
193 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
194 },
195 ],
196 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
197 # Unset for single-stage operations.
198 },
199 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
200 { # StatusCondition describes why a cluster or a node pool has a certain status
201 # (e.g., ERROR or DEGRADED).
202 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
203 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
204 },
205 ],
206 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
207 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
208 # operation is taking place. This field is deprecated, use location instead.
209 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
210 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
211 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
212 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
213 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
214 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700215 }</pre>
216</div>
217
218<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700219 <code class="details" id="create">create(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700220 <pre>Creates a node pool for a cluster.
221
222Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700223 projectId: string, Deprecated. The Google Developers Console [project ID or project
224number](https://developers.google.com/console/help/new/#projectnumber).
225This field has been deprecated and replaced by the parent field. (required)
226 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700227[zone](https://cloud.google.com/compute/docs/zones#available) in which the
228cluster resides. This field has been deprecated and replaced by the parent
229field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700230 clusterId: string, Deprecated. The name of the cluster.
231This field has been deprecated and replaced by the parent field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700232 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700233 The object takes the form of:
234
235{ # CreateNodePoolRequest creates a node pool for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700237 # number](https://developers.google.com/console/help/new/#projectnumber).
238 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700239 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
240 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
241 # cluster resides. This field has been deprecated and replaced by the parent
242 # field.
243 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700244 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 &quot;nodePool&quot;: { # NodePool contains the name and configuration for a cluster&#x27;s node pool. # Required. The node pool to create.
246 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400247 # specification, under the control of the cluster master. They may have a set
248 # of Kubernetes labels applied to them, which may be used to reference them
249 # during pod scheduling. They may also be resized up or down, to accommodate
250 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
252 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
253 # is sufficient for this number of instances. You must also have available
254 # firewall and routes quota.
255 &quot;locations&quot;: [ # The list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700256 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 # NodePool&#x27;s nodes should be located.
258 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700259 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
261 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -0700262 # disruption caused by an upgrade.
263 #
264 # maxUnavailable controls the number of nodes that can be simultaneously
265 # unavailable.
266 #
267 # maxSurge controls the number of additional nodes that can be added to the
268 # node pool temporarily for the time of the upgrade to increase the number of
269 # available nodes.
270 #
271 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
272 # nodes are being upgraded at the same time).
273 #
274 # Note: upgrades inevitably introduce some disruption since workloads need to
275 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
276 # this holds true. (Disruption stays within the limits of
277 # PodDisruptionBudget, if it is configured.)
278 #
279 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
280 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
281 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
282 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
283 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700284 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700285 # the upgrade process. A node is considered available if its status is
286 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700287 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
288 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700289 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
291 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
292 # associated with this node pool.
293 &quot;A String&quot;,
294 ],
295 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
296 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
297 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
298 { # StatusCondition describes why a cluster or a node pool has a certain status
299 # (e.g., ERROR or DEGRADED).
300 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
301 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700302 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700303 ],
304 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
305 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
306 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400307 # valid sources or targets for network firewalls and are specified by
308 # the client during cluster or node pool creation. Each tag within the list
309 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400311 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700312 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700313 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700314 # Account is specified, the &quot;default&quot; service account is used.
315 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
316 # the latest version of it will be used.
317 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
318 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400319 #
320 # The following scopes are recommended, but not required, and by default are
321 # not included:
322 #
323 # * `https://www.googleapis.com/auth/compute` is required for mounting
324 # persistent storage on your nodes.
325 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
326 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700327 # (the [Google Container
328 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400329 #
330 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
331 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700332 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700333 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700334 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700335 #
336 # For more information, including usage and the valid values, see:
337 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
338 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
339 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
340 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 # See
342 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
343 # for more information, including usage and the valid values.
344 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
345 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
346 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700347 },
348 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700349 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
350 # These will added in addition to any default label(s) that
351 # Kubernetes may apply to the node.
352 # In case of conflict in label keys, the applied set may differ depending on
353 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
354 # and conflicts should be avoided.
355 # For more information, including usage and the valid values, see:
356 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
357 &quot;a_key&quot;: &quot;A String&quot;,
358 },
359 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
360 # The smallest allowed disk size is 10GB.
361 #
362 # If unspecified, the default disk size is 100GB.
363 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
364 # workloads on the node pool.
365 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
366 # on the node pool.
367 },
368 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
369 # See https://cloud.google.com/compute/docs/gpus for more information about
370 # support for GPUs.
371 { # AcceleratorConfig represents a Hardware Accelerator request.
372 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
373 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
374 # [here](https://cloud.google.com/compute/docs/gpus)
375 },
376 ],
377 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
378 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
379 # `n1-standard-1`).
380 #
381 # If unspecified, the default machine type is
382 # `n1-standard-1`.
383 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
384 #
385 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
386 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
387 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
388 #
389 # Secure Boot helps ensure that the system only runs authentic software by
390 # verifying the digital signature of all boot components, and halting the
391 # boot process if signature verification fails.
392 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
393 #
394 # Enables monitoring and attestation of the boot integrity of the instance.
395 # The attestation is performed against the integrity policy baseline. This
396 # baseline is initially derived from the implicitly trusted boot image when
397 # the instance is created.
398 },
399 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
400 # scheduled on the specified or newer CPU platform. Applicable values are the
401 # friendly names of CPU platforms, such as
402 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
403 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
404 # information, read [how to specify min CPU
405 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
406 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
407 # https://cloud.google.com/compute/docs/instances/preemptible for more
408 # information about preemptible VM instances.
409 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400410 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700411 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400412 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -0700413 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400414 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700415 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
416 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700417 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
419 #
420 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
421 # in length. These are reflected as part of a URL in the metadata server.
422 # Additionally, to avoid ambiguity, keys must not conflict with any other
423 # metadata keys for the project or be one of the reserved keys:
424 # &quot;cluster-location&quot;
425 # &quot;cluster-name&quot;
426 # &quot;cluster-uid&quot;
427 # &quot;configure-sh&quot;
428 # &quot;containerd-configure-sh&quot;
429 # &quot;enable-os-login&quot;
430 # &quot;gci-ensure-gke-docker&quot;
431 # &quot;gci-metrics-enabled&quot;
432 # &quot;gci-update-strategy&quot;
433 # &quot;instance-template&quot;
434 # &quot;kube-env&quot;
435 # &quot;startup-script&quot;
436 # &quot;user-data&quot;
437 # &quot;disable-address-manager&quot;
438 # &quot;windows-startup-script-ps1&quot;
439 # &quot;common-psm1&quot;
440 # &quot;k8s-node-setup-psm1&quot;
441 # &quot;install-ssh-psm1&quot;
442 # &quot;user-profile-psm1&quot;
443 # &quot;serial-port-logging-enable&quot;
444 #
445 # Values are free-form strings, and only have meaning as interpreted by
446 # the image running in the instance. The only restriction placed on them is
447 # that each value&#x27;s size must be less than or equal to 32 KB.
448 #
449 # The total size of all keys and values must be less than 512 KB.
450 &quot;a_key&quot;: &quot;A String&quot;,
451 },
452 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
453 # the specified [Zonal Compute
454 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
455 # to this node pool.
456 # is the configuration of desired reservation which instances could take
457 # capacity from.
458 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
459 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
460 # the key and specify the name of your reservation as its value.
461 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
462 &quot;A String&quot;,
463 ],
464 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
465 },
466 },
467 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
468 # simultaneously on a node in the node pool.
469 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
470 },
471 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
472 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
473 # node pool.
474 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
475 # the Auto Upgrades will proceed.
476 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
477 # with the description of the upgrade.
478 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
479 # with the approximate start time for the upgrades, in
480 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
481 },
482 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
483 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
484 # up to date with the latest release version of Kubernetes.
485 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
486 # pool. If enabled, the nodes in this node pool will be monitored and, if
487 # they fail health checks too many times, an automatic repair action will be
488 # triggered.
489 },
490 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
Dan O'Mearadd494642020-05-01 07:42:23 -0700491 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700492 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
493 # only if a valid configuration is present.
494 # adjust the size of the node pool to the current cluster usage.
495 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
496 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
497 # has to enough quota to scale up the cluster.
498 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
499 # max_node_count.
500 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
501 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700502 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700503 &quot;parent&quot;: &quot;A String&quot;, # The parent (project, location, cluster id) where the node pool will be
504 # created. Specified in the format
505 # `projects/*/locations/*/clusters/*`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700506 }
507
508 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400509 Allowed values
510 1 - v1 error format
511 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700512
513Returns:
514 An object of the form:
515
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400516 { # This operation resource represents operations that may have happened or are
517 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700518 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
519 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700520 { # StatusCondition describes why a cluster or a node pool has a certain status
521 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700522 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
523 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700524 },
525 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700526 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700527 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700528 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700529 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
530 # or
531 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
532 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700533 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
534 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
535 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
536 &quot;stages&quot;: [ # Substages of an operation or a stage.
537 # Object with schema name: OperationProgress
538 ],
539 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
540 # Unset for single-stage operations.
541 &quot;metrics&quot;: [ # Progress metric bundle, for example:
542 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
543 # {name: &quot;nodes total&quot;, int_value: 32}]
544 # or
545 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
546 # {name: &quot;progress scale&quot;, double_value: 1.0}]
547 { # Progress metric is (string, int|float|string) pair.
548 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
549 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
550 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
551 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
552 },
553 ],
554 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
555 # Unset for single-stage operations.
556 },
557 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
558 { # StatusCondition describes why a cluster or a node pool has a certain status
559 # (e.g., ERROR or DEGRADED).
560 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
561 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
562 },
563 ],
564 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
565 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
566 # operation is taking place. This field is deprecated, use location instead.
567 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
568 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
569 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
570 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
571 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
572 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700573 }</pre>
574</div>
575
576<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700577 <code class="details" id="delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700578 <pre>Deletes a node pool from a cluster.
579
580Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700581 projectId: string, Deprecated. The Google Developers Console [project ID or project
582number](https://developers.google.com/console/help/new/#projectnumber).
583This field has been deprecated and replaced by the name field. (required)
584 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700585[zone](https://cloud.google.com/compute/docs/zones#available) in which the
586cluster resides. This field has been deprecated and replaced by the name
587field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700588 clusterId: string, Deprecated. The name of the cluster.
589This field has been deprecated and replaced by the name field. (required)
590 nodePoolId: string, Deprecated. The name of the node pool to delete.
591This field has been deprecated and replaced by the name field. (required)
592 name: string, The name (project, location, cluster, node pool id) of the node pool to
593delete. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700594`projects/*/locations/*/clusters/*/nodePools/*`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700595 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400596 Allowed values
597 1 - v1 error format
598 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700599
600Returns:
601 An object of the form:
602
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400603 { # This operation resource represents operations that may have happened or are
604 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700605 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
606 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700607 { # StatusCondition describes why a cluster or a node pool has a certain status
608 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700609 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
610 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700611 },
612 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700613 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700614 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700615 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700616 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
617 # or
618 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
619 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700620 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
621 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
622 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
623 &quot;stages&quot;: [ # Substages of an operation or a stage.
624 # Object with schema name: OperationProgress
625 ],
626 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
627 # Unset for single-stage operations.
628 &quot;metrics&quot;: [ # Progress metric bundle, for example:
629 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
630 # {name: &quot;nodes total&quot;, int_value: 32}]
631 # or
632 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
633 # {name: &quot;progress scale&quot;, double_value: 1.0}]
634 { # Progress metric is (string, int|float|string) pair.
635 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
636 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
637 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
638 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
639 },
640 ],
641 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
642 # Unset for single-stage operations.
643 },
644 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
645 { # StatusCondition describes why a cluster or a node pool has a certain status
646 # (e.g., ERROR or DEGRADED).
647 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
648 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
649 },
650 ],
651 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
652 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
653 # operation is taking place. This field is deprecated, use location instead.
654 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
655 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
656 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
657 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
658 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
659 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700660 }</pre>
661</div>
662
663<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700664 <code class="details" id="get">get(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
665 <pre>Retrieves the requested node pool.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700666
667Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700668 projectId: string, Deprecated. The Google Developers Console [project ID or project
669number](https://developers.google.com/console/help/new/#projectnumber).
670This field has been deprecated and replaced by the name field. (required)
671 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700672[zone](https://cloud.google.com/compute/docs/zones#available) in which the
673cluster resides. This field has been deprecated and replaced by the name
674field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700675 clusterId: string, Deprecated. The name of the cluster.
676This field has been deprecated and replaced by the name field. (required)
677 nodePoolId: string, Deprecated. The name of the node pool.
678This field has been deprecated and replaced by the name field. (required)
679 name: string, The name (project, location, cluster, node pool id) of the node pool to
680get. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700681`projects/*/locations/*/clusters/*/nodePools/*`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700682 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400683 Allowed values
684 1 - v1 error format
685 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700686
687Returns:
688 An object of the form:
689
Bu Sun Kim65020912020-05-20 12:08:20 -0700690 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
691 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400692 # specification, under the control of the cluster master. They may have a set
693 # of Kubernetes labels applied to them, which may be used to reference them
694 # during pod scheduling. They may also be resized up or down, to accommodate
695 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700696 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
697 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
698 # is sufficient for this number of instances. You must also have available
699 # firewall and routes quota.
700 &quot;locations&quot;: [ # The list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700701 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -0700702 # NodePool&#x27;s nodes should be located.
703 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700704 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700705 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
706 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -0700707 # disruption caused by an upgrade.
708 #
709 # maxUnavailable controls the number of nodes that can be simultaneously
710 # unavailable.
711 #
712 # maxSurge controls the number of additional nodes that can be added to the
713 # node pool temporarily for the time of the upgrade to increase the number of
714 # available nodes.
715 #
716 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
717 # nodes are being upgraded at the same time).
718 #
719 # Note: upgrades inevitably introduce some disruption since workloads need to
720 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
721 # this holds true. (Disruption stays within the limits of
722 # PodDisruptionBudget, if it is configured.)
723 #
724 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
725 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
726 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
727 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
728 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700729 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700730 # the upgrade process. A node is considered available if its status is
731 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700732 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
733 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700734 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700735 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
736 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
737 # associated with this node pool.
738 &quot;A String&quot;,
739 ],
740 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
741 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
742 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
743 { # StatusCondition describes why a cluster or a node pool has a certain status
744 # (e.g., ERROR or DEGRADED).
745 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
746 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700747 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700748 ],
749 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
750 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
751 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400752 # valid sources or targets for network firewalls and are specified by
753 # the client during cluster or node pool creation. Each tag within the list
754 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700755 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400756 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700757 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700758 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700759 # Account is specified, the &quot;default&quot; service account is used.
760 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
761 # the latest version of it will be used.
762 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
763 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400764 #
765 # The following scopes are recommended, but not required, and by default are
766 # not included:
767 #
768 # * `https://www.googleapis.com/auth/compute` is required for mounting
769 # persistent storage on your nodes.
770 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
771 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700772 # (the [Google Container
773 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400774 #
775 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
776 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700777 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700778 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700779 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700780 #
781 # For more information, including usage and the valid values, see:
782 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
783 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
784 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
785 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700786 # See
787 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
788 # for more information, including usage and the valid values.
789 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
790 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
791 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700792 },
793 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700794 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
795 # These will added in addition to any default label(s) that
796 # Kubernetes may apply to the node.
797 # In case of conflict in label keys, the applied set may differ depending on
798 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
799 # and conflicts should be avoided.
800 # For more information, including usage and the valid values, see:
801 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
802 &quot;a_key&quot;: &quot;A String&quot;,
803 },
804 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
805 # The smallest allowed disk size is 10GB.
806 #
807 # If unspecified, the default disk size is 100GB.
808 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
809 # workloads on the node pool.
810 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
811 # on the node pool.
812 },
813 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
814 # See https://cloud.google.com/compute/docs/gpus for more information about
815 # support for GPUs.
816 { # AcceleratorConfig represents a Hardware Accelerator request.
817 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
818 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
819 # [here](https://cloud.google.com/compute/docs/gpus)
820 },
821 ],
822 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
823 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
824 # `n1-standard-1`).
825 #
826 # If unspecified, the default machine type is
827 # `n1-standard-1`.
828 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
829 #
830 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
831 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
832 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
833 #
834 # Secure Boot helps ensure that the system only runs authentic software by
835 # verifying the digital signature of all boot components, and halting the
836 # boot process if signature verification fails.
837 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
838 #
839 # Enables monitoring and attestation of the boot integrity of the instance.
840 # The attestation is performed against the integrity policy baseline. This
841 # baseline is initially derived from the implicitly trusted boot image when
842 # the instance is created.
843 },
844 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
845 # scheduled on the specified or newer CPU platform. Applicable values are the
846 # friendly names of CPU platforms, such as
847 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
848 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
849 # information, read [how to specify min CPU
850 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
851 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
852 # https://cloud.google.com/compute/docs/instances/preemptible for more
853 # information about preemptible VM instances.
854 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400855 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700856 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400857 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -0700858 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400859 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700860 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
861 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700862 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700863 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
864 #
865 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
866 # in length. These are reflected as part of a URL in the metadata server.
867 # Additionally, to avoid ambiguity, keys must not conflict with any other
868 # metadata keys for the project or be one of the reserved keys:
869 # &quot;cluster-location&quot;
870 # &quot;cluster-name&quot;
871 # &quot;cluster-uid&quot;
872 # &quot;configure-sh&quot;
873 # &quot;containerd-configure-sh&quot;
874 # &quot;enable-os-login&quot;
875 # &quot;gci-ensure-gke-docker&quot;
876 # &quot;gci-metrics-enabled&quot;
877 # &quot;gci-update-strategy&quot;
878 # &quot;instance-template&quot;
879 # &quot;kube-env&quot;
880 # &quot;startup-script&quot;
881 # &quot;user-data&quot;
882 # &quot;disable-address-manager&quot;
883 # &quot;windows-startup-script-ps1&quot;
884 # &quot;common-psm1&quot;
885 # &quot;k8s-node-setup-psm1&quot;
886 # &quot;install-ssh-psm1&quot;
887 # &quot;user-profile-psm1&quot;
888 # &quot;serial-port-logging-enable&quot;
889 #
890 # Values are free-form strings, and only have meaning as interpreted by
891 # the image running in the instance. The only restriction placed on them is
892 # that each value&#x27;s size must be less than or equal to 32 KB.
893 #
894 # The total size of all keys and values must be less than 512 KB.
895 &quot;a_key&quot;: &quot;A String&quot;,
896 },
897 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
898 # the specified [Zonal Compute
899 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
900 # to this node pool.
901 # is the configuration of desired reservation which instances could take
902 # capacity from.
903 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
904 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
905 # the key and specify the name of your reservation as its value.
906 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
907 &quot;A String&quot;,
908 ],
909 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
910 },
911 },
912 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
913 # simultaneously on a node in the node pool.
914 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
915 },
916 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
917 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
918 # node pool.
919 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
920 # the Auto Upgrades will proceed.
921 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
922 # with the description of the upgrade.
923 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
924 # with the approximate start time for the upgrades, in
925 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
926 },
927 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
928 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
929 # up to date with the latest release version of Kubernetes.
930 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
931 # pool. If enabled, the nodes in this node pool will be monitored and, if
932 # they fail health checks too many times, an automatic repair action will be
933 # triggered.
934 },
935 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
Dan O'Mearadd494642020-05-01 07:42:23 -0700936 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700937 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
938 # only if a valid configuration is present.
939 # adjust the size of the node pool to the current cluster usage.
940 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
941 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
942 # has to enough quota to scale up the cluster.
943 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
944 # max_node_count.
945 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
946 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700947 }</pre>
948</div>
949
950<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700951 <code class="details" id="list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700952 <pre>Lists the node pools for a cluster.
953
954Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700955 projectId: string, Deprecated. The Google Developers Console [project ID or project
956number](https://developers.google.com/console/help/new/#projectnumber).
957This field has been deprecated and replaced by the parent field. (required)
958 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700959[zone](https://cloud.google.com/compute/docs/zones#available) in which the
960cluster resides. This field has been deprecated and replaced by the parent
961field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700962 clusterId: string, Deprecated. The name of the cluster.
963This field has been deprecated and replaced by the parent field. (required)
964 parent: string, The parent (project, location, cluster id) where the node pools will be
Bu Sun Kim65020912020-05-20 12:08:20 -0700965listed. Specified in the format `projects/*/locations/*/clusters/*`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700966 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400967 Allowed values
968 1 - v1 error format
969 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700970
971Returns:
972 An object of the form:
973
974 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700975 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
976 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
977 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400978 # specification, under the control of the cluster master. They may have a set
979 # of Kubernetes labels applied to them, which may be used to reference them
980 # during pod scheduling. They may also be resized up or down, to accommodate
981 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700982 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
983 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
984 # is sufficient for this number of instances. You must also have available
985 # firewall and routes quota.
986 &quot;locations&quot;: [ # The list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700987 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -0700988 # NodePool&#x27;s nodes should be located.
989 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700990 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700991 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
992 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -0700993 # disruption caused by an upgrade.
994 #
995 # maxUnavailable controls the number of nodes that can be simultaneously
996 # unavailable.
997 #
998 # maxSurge controls the number of additional nodes that can be added to the
999 # node pool temporarily for the time of the upgrade to increase the number of
1000 # available nodes.
1001 #
1002 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1003 # nodes are being upgraded at the same time).
1004 #
1005 # Note: upgrades inevitably introduce some disruption since workloads need to
1006 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1007 # this holds true. (Disruption stays within the limits of
1008 # PodDisruptionBudget, if it is configured.)
1009 #
1010 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1011 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1012 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1013 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1014 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001015 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001016 # the upgrade process. A node is considered available if its status is
1017 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001018 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1019 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001020 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001021 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
1022 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1023 # associated with this node pool.
1024 &quot;A String&quot;,
1025 ],
1026 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1027 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1028 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1029 { # StatusCondition describes why a cluster or a node pool has a certain status
1030 # (e.g., ERROR or DEGRADED).
1031 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1032 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07001033 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001034 ],
1035 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
1036 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
1037 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001038 # valid sources or targets for network firewalls and are specified by
1039 # the client during cluster or node pool creation. Each tag within the list
1040 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07001041 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001042 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001043 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07001044 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07001045 # Account is specified, the &quot;default&quot; service account is used.
1046 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1047 # the latest version of it will be used.
1048 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1049 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001050 #
1051 # The following scopes are recommended, but not required, and by default are
1052 # not included:
1053 #
1054 # * `https://www.googleapis.com/auth/compute` is required for mounting
1055 # persistent storage on your nodes.
1056 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1057 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001058 # (the [Google Container
1059 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001060 #
1061 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1062 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001063 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001064 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001065 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07001066 #
1067 # For more information, including usage and the valid values, see:
1068 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1069 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1070 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1071 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001072 # See
1073 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1074 # for more information, including usage and the valid values.
1075 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1076 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1077 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07001078 },
1079 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001080 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1081 # These will added in addition to any default label(s) that
1082 # Kubernetes may apply to the node.
1083 # In case of conflict in label keys, the applied set may differ depending on
1084 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1085 # and conflicts should be avoided.
1086 # For more information, including usage and the valid values, see:
1087 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1088 &quot;a_key&quot;: &quot;A String&quot;,
1089 },
1090 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1091 # The smallest allowed disk size is 10GB.
1092 #
1093 # If unspecified, the default disk size is 100GB.
1094 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1095 # workloads on the node pool.
1096 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1097 # on the node pool.
1098 },
1099 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1100 # See https://cloud.google.com/compute/docs/gpus for more information about
1101 # support for GPUs.
1102 { # AcceleratorConfig represents a Hardware Accelerator request.
1103 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1104 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1105 # [here](https://cloud.google.com/compute/docs/gpus)
1106 },
1107 ],
1108 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1109 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1110 # `n1-standard-1`).
1111 #
1112 # If unspecified, the default machine type is
1113 # `n1-standard-1`.
1114 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
1115 #
1116 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1117 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1118 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1119 #
1120 # Secure Boot helps ensure that the system only runs authentic software by
1121 # verifying the digital signature of all boot components, and halting the
1122 # boot process if signature verification fails.
1123 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1124 #
1125 # Enables monitoring and attestation of the boot integrity of the instance.
1126 # The attestation is performed against the integrity policy baseline. This
1127 # baseline is initially derived from the implicitly trusted boot image when
1128 # the instance is created.
1129 },
1130 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1131 # scheduled on the specified or newer CPU platform. Applicable values are the
1132 # friendly names of CPU platforms, such as
1133 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1134 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1135 # information, read [how to specify min CPU
1136 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1137 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1138 # https://cloud.google.com/compute/docs/instances/preemptible for more
1139 # information about preemptible VM instances.
1140 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001141 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001142 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001143 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07001144 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001145 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001146 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1147 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001148 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001149 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1150 #
1151 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1152 # in length. These are reflected as part of a URL in the metadata server.
1153 # Additionally, to avoid ambiguity, keys must not conflict with any other
1154 # metadata keys for the project or be one of the reserved keys:
1155 # &quot;cluster-location&quot;
1156 # &quot;cluster-name&quot;
1157 # &quot;cluster-uid&quot;
1158 # &quot;configure-sh&quot;
1159 # &quot;containerd-configure-sh&quot;
1160 # &quot;enable-os-login&quot;
1161 # &quot;gci-ensure-gke-docker&quot;
1162 # &quot;gci-metrics-enabled&quot;
1163 # &quot;gci-update-strategy&quot;
1164 # &quot;instance-template&quot;
1165 # &quot;kube-env&quot;
1166 # &quot;startup-script&quot;
1167 # &quot;user-data&quot;
1168 # &quot;disable-address-manager&quot;
1169 # &quot;windows-startup-script-ps1&quot;
1170 # &quot;common-psm1&quot;
1171 # &quot;k8s-node-setup-psm1&quot;
1172 # &quot;install-ssh-psm1&quot;
1173 # &quot;user-profile-psm1&quot;
1174 # &quot;serial-port-logging-enable&quot;
1175 #
1176 # Values are free-form strings, and only have meaning as interpreted by
1177 # the image running in the instance. The only restriction placed on them is
1178 # that each value&#x27;s size must be less than or equal to 32 KB.
1179 #
1180 # The total size of all keys and values must be less than 512 KB.
1181 &quot;a_key&quot;: &quot;A String&quot;,
1182 },
1183 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1184 # the specified [Zonal Compute
1185 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1186 # to this node pool.
1187 # is the configuration of desired reservation which instances could take
1188 # capacity from.
1189 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1190 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1191 # the key and specify the name of your reservation as its value.
1192 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1193 &quot;A String&quot;,
1194 ],
1195 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1196 },
1197 },
1198 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1199 # simultaneously on a node in the node pool.
1200 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1201 },
1202 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1203 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1204 # node pool.
1205 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1206 # the Auto Upgrades will proceed.
1207 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1208 # with the description of the upgrade.
1209 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1210 # with the approximate start time for the upgrades, in
1211 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1212 },
1213 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1214 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1215 # up to date with the latest release version of Kubernetes.
1216 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1217 # pool. If enabled, the nodes in this node pool will be monitored and, if
1218 # they fail health checks too many times, an automatic repair action will be
1219 # triggered.
1220 },
1221 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
Dan O'Mearadd494642020-05-01 07:42:23 -07001222 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001223 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
1224 # only if a valid configuration is present.
1225 # adjust the size of the node pool to the current cluster usage.
1226 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1227 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1228 # has to enough quota to scale up the cluster.
1229 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1230 # max_node_count.
1231 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1232 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001233 },
1234 ],
1235 }</pre>
1236</div>
1237
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001238<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001239 <code class="details" id="rollback">rollback(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001240 <pre>Rolls back a previously Aborted or Failed NodePool upgrade.
1241This makes no changes if the last upgrade successfully completed.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001242
1243Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001244 projectId: string, Deprecated. The Google Developers Console [project ID or project
1245number](https://support.google.com/cloud/answer/6158840).
1246This field has been deprecated and replaced by the name field. (required)
1247 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001248[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1249cluster resides. This field has been deprecated and replaced by the name
1250field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001251 clusterId: string, Deprecated. The name of the cluster to rollback.
1252This field has been deprecated and replaced by the name field. (required)
1253 nodePoolId: string, Deprecated. The name of the node pool to rollback.
1254This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001255 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001256 The object takes the form of:
1257
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001258{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
1259 # NodePool upgrade. This will be an no-op if the last upgrade successfully
1260 # completed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001261 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node poll to
1262 # rollback upgrade.
1263 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1264 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001265 # number](https://support.google.com/cloud/answer/6158840).
1266 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001267 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001268 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1269 # cluster resides. This field has been deprecated and replaced by the name
1270 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001271 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to rollback.
1272 # This field has been deprecated and replaced by the name field.
1273 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to rollback.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001274 # This field has been deprecated and replaced by the name field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001275 }
1276
1277 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001278 Allowed values
1279 1 - v1 error format
1280 2 - v2 error format
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001281
1282Returns:
1283 An object of the form:
1284
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001285 { # This operation resource represents operations that may have happened or are
1286 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001287 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1288 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001289 { # StatusCondition describes why a cluster or a node pool has a certain status
1290 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001291 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1292 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001293 },
1294 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001295 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001296 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001297 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001298 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1299 # or
1300 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1301 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001302 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1303 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1304 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1305 &quot;stages&quot;: [ # Substages of an operation or a stage.
1306 # Object with schema name: OperationProgress
1307 ],
1308 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1309 # Unset for single-stage operations.
1310 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1311 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1312 # {name: &quot;nodes total&quot;, int_value: 32}]
1313 # or
1314 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1315 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1316 { # Progress metric is (string, int|float|string) pair.
1317 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1318 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1319 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1320 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1321 },
1322 ],
1323 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1324 # Unset for single-stage operations.
1325 },
1326 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1327 { # StatusCondition describes why a cluster or a node pool has a certain status
1328 # (e.g., ERROR or DEGRADED).
1329 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1330 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1331 },
1332 ],
1333 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1334 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1335 # operation is taking place. This field is deprecated, use location instead.
1336 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1337 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1338 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1339 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1340 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1341 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001342 }</pre>
1343</div>
1344
1345<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001346 <code class="details" id="setManagement">setManagement(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001347 <pre>Sets the NodeManagement options for a node pool.
1348
1349Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001350 projectId: string, Deprecated. The Google Developers Console [project ID or project
1351number](https://support.google.com/cloud/answer/6158840).
1352This field has been deprecated and replaced by the name field. (required)
1353 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001354[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1355cluster resides. This field has been deprecated and replaced by the name
1356field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001357 clusterId: string, Deprecated. The name of the cluster to update.
1358This field has been deprecated and replaced by the name field. (required)
1359 nodePoolId: string, Deprecated. The name of the node pool to update.
1360This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001361 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001362 The object takes the form of:
1363
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001364{ # SetNodePoolManagementRequest sets the node management properties of a node
1365 # pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001366 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
1367 # This field has been deprecated and replaced by the name field.
1368 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update.
1369 # This field has been deprecated and replaced by the name field.
1370 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001371 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1372 # cluster resides. This field has been deprecated and replaced by the name
1373 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001374 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1375 # management properties. Specified in the format
1376 # `projects/*/locations/*/clusters/*/nodePools/*`.
1377 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001378 # number](https://support.google.com/cloud/answer/6158840).
1379 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001380 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Required. NodeManagement configuration for the node pool.
1381 # node pool.
1382 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1383 # the Auto Upgrades will proceed.
1384 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1385 # with the description of the upgrade.
1386 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1387 # with the approximate start time for the upgrades, in
1388 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1389 },
1390 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1391 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1392 # up to date with the latest release version of Kubernetes.
1393 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1394 # pool. If enabled, the nodes in this node pool will be monitored and, if
1395 # they fail health checks too many times, an automatic repair action will be
1396 # triggered.
1397 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001398 }
1399
1400 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001401 Allowed values
1402 1 - v1 error format
1403 2 - v2 error format
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001404
1405Returns:
1406 An object of the form:
1407
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001408 { # This operation resource represents operations that may have happened or are
1409 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001410 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1411 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001412 { # StatusCondition describes why a cluster or a node pool has a certain status
1413 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001414 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1415 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001416 },
1417 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001418 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001419 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001420 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001421 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1422 # or
1423 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1424 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001425 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1426 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1427 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1428 &quot;stages&quot;: [ # Substages of an operation or a stage.
1429 # Object with schema name: OperationProgress
1430 ],
1431 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1432 # Unset for single-stage operations.
1433 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1434 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1435 # {name: &quot;nodes total&quot;, int_value: 32}]
1436 # or
1437 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1438 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1439 { # Progress metric is (string, int|float|string) pair.
1440 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1441 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1442 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1443 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1444 },
1445 ],
1446 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1447 # Unset for single-stage operations.
1448 },
1449 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1450 { # StatusCondition describes why a cluster or a node pool has a certain status
1451 # (e.g., ERROR or DEGRADED).
1452 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1453 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1454 },
1455 ],
1456 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1457 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1458 # operation is taking place. This field is deprecated, use location instead.
1459 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1460 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1461 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1462 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1463 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1464 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001465 }</pre>
1466</div>
1467
1468<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001469 <code class="details" id="setSize">setSize(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001470 <pre>Sets the size for a specific node pool.
1471
1472Args:
1473 projectId: string, Deprecated. The Google Developers Console [project ID or project
1474number](https://support.google.com/cloud/answer/6158840).
1475This field has been deprecated and replaced by the name field. (required)
1476 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001477[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1478cluster resides. This field has been deprecated and replaced by the name
1479field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001480 clusterId: string, Deprecated. The name of the cluster to update.
1481This field has been deprecated and replaced by the name field. (required)
1482 nodePoolId: string, Deprecated. The name of the node pool to update.
1483This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001484 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001485 The object takes the form of:
1486
1487{ # SetNodePoolSizeRequest sets the size a node
1488 # pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001489 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
1490 # This field has been deprecated and replaced by the name field.
1491 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update.
1492 # This field has been deprecated and replaced by the name field.
1493 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001494 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1495 # cluster resides. This field has been deprecated and replaced by the name
1496 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001497 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
1498 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1499 # size.
1500 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1501 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001502 # number](https://support.google.com/cloud/answer/6158840).
1503 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001504 }
1505
1506 x__xgafv: string, V1 error format.
1507 Allowed values
1508 1 - v1 error format
1509 2 - v2 error format
1510
1511Returns:
1512 An object of the form:
1513
1514 { # This operation resource represents operations that may have happened or are
1515 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001516 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1517 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001518 { # StatusCondition describes why a cluster or a node pool has a certain status
1519 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001520 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1521 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001522 },
1523 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001524 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001525 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001526 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001527 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1528 # or
1529 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1530 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001531 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1532 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1533 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1534 &quot;stages&quot;: [ # Substages of an operation or a stage.
1535 # Object with schema name: OperationProgress
1536 ],
1537 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1538 # Unset for single-stage operations.
1539 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1540 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1541 # {name: &quot;nodes total&quot;, int_value: 32}]
1542 # or
1543 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1544 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1545 { # Progress metric is (string, int|float|string) pair.
1546 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1547 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1548 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1549 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1550 },
1551 ],
1552 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1553 # Unset for single-stage operations.
1554 },
1555 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1556 { # StatusCondition describes why a cluster or a node pool has a certain status
1557 # (e.g., ERROR or DEGRADED).
1558 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1559 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1560 },
1561 ],
1562 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1563 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1564 # operation is taking place. This field is deprecated, use location instead.
1565 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1566 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1567 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1568 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1569 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1570 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001571 }</pre>
1572</div>
1573
1574<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001575 <code class="details" id="update">update(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001576 <pre>Updates the version and/or image type for the specified node pool.
1577
1578Args:
1579 projectId: string, Deprecated. The Google Developers Console [project ID or project
1580number](https://support.google.com/cloud/answer/6158840).
1581This field has been deprecated and replaced by the name field. (required)
1582 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001583[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1584cluster resides. This field has been deprecated and replaced by the name
1585field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001586 clusterId: string, Deprecated. The name of the cluster to upgrade.
1587This field has been deprecated and replaced by the name field. (required)
1588 nodePoolId: string, Deprecated. The name of the node pool to upgrade.
1589This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001590 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001591 The object takes the form of:
1592
Bu Sun Kim65020912020-05-20 12:08:20 -07001593{ # UpdateNodePoolRequests update a node pool&#x27;s image and/or version.
1594 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
1595 # This field has been deprecated and replaced by the name field.
1596 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The desired workload metadata config for the node pool.
1597 # workloads on the node pool.
1598 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1599 # on the node pool.
1600 },
1601 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade.
1602 # This field has been deprecated and replaced by the name field.
1603 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
1604 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001605 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1606 # cluster resides. This field has been deprecated and replaced by the name
1607 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001608 &quot;nodeVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the nodes to (typically an
1609 # upgrade).
1610 #
1611 # Users may specify either explicit versions offered by Kubernetes Engine or
1612 # version aliases, which have the following behavior:
1613 #
1614 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1615 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1616 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1617 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1618 # - &quot;-&quot;: picks the Kubernetes master version
1619 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to
1620 # update. Specified in the format
1621 # `projects/*/locations/*/clusters/*/nodePools/*`.
1622 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001623 # number](https://support.google.com/cloud/answer/6158840).
1624 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001625 &quot;locations&quot;: [ # The desired list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001626 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07001627 # node pool&#x27;s nodes should be located. Changing the locations for a node pool
Dan O'Mearadd494642020-05-01 07:42:23 -07001628 # will result in nodes being either created or removed from the node pool,
1629 # depending on whether locations are being added or removed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001630 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001631 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001632 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -07001633 # disruption caused by an upgrade.
1634 #
1635 # maxUnavailable controls the number of nodes that can be simultaneously
1636 # unavailable.
1637 #
1638 # maxSurge controls the number of additional nodes that can be added to the
1639 # node pool temporarily for the time of the upgrade to increase the number of
1640 # available nodes.
1641 #
1642 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1643 # nodes are being upgraded at the same time).
1644 #
1645 # Note: upgrades inevitably introduce some disruption since workloads need to
1646 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1647 # this holds true. (Disruption stays within the limits of
1648 # PodDisruptionBudget, if it is configured.)
1649 #
1650 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1651 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1652 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1653 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1654 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001655 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001656 # the upgrade process. A node is considered available if its status is
1657 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001658 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1659 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001660 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001661 }
1662
1663 x__xgafv: string, V1 error format.
1664 Allowed values
1665 1 - v1 error format
1666 2 - v2 error format
1667
1668Returns:
1669 An object of the form:
1670
1671 { # This operation resource represents operations that may have happened or are
1672 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001673 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1674 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001675 { # StatusCondition describes why a cluster or a node pool has a certain status
1676 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001677 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1678 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001679 },
1680 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001681 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001682 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001683 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001684 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1685 # or
1686 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1687 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001688 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1689 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1690 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1691 &quot;stages&quot;: [ # Substages of an operation or a stage.
1692 # Object with schema name: OperationProgress
1693 ],
1694 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1695 # Unset for single-stage operations.
1696 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1697 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1698 # {name: &quot;nodes total&quot;, int_value: 32}]
1699 # or
1700 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1701 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1702 { # Progress metric is (string, int|float|string) pair.
1703 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1704 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1705 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1706 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1707 },
1708 ],
1709 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1710 # Unset for single-stage operations.
1711 },
1712 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1713 { # StatusCondition describes why a cluster or a node pool has a certain status
1714 # (e.g., ERROR or DEGRADED).
1715 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1716 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1717 },
1718 ],
1719 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1720 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1721 # operation is taking place. This field is deprecated, use location instead.
1722 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1723 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1724 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1725 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1726 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1727 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001728 }</pre>
1729</div>
1730
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001731</body></html>