blob: fc3049cf6288da36f84822d9c6b343e696dc716f [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;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700126 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
127 # cluster resides. This field has been deprecated and replaced by the name
128 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to set
130 # autoscaler settings. Specified in the format
131 # `projects/*/locations/*/clusters/*/nodePools/*`.
132 &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 -0700133 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 &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 -0700135 # has to enough quota to scale up the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700136 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
138 # max_node_count.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700139 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700141 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
142 # number](https://support.google.com/cloud/answer/6158840).
143 # This field has been deprecated and replaced by the name field.
144 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
145 # This field has been deprecated and replaced by the name field.
146 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade.
147 # This field has been deprecated and replaced by the name field.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700160 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
161 { # StatusCondition describes why a cluster or a node pool has a certain status
162 # (e.g., ERROR or DEGRADED).
163 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
164 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
165 },
166 ],
167 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
168 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
169 # Unset for single-stage operations.
170 &quot;stages&quot;: [ # Substages of an operation or a stage.
171 # Object with schema name: OperationProgress
172 ],
173 &quot;metrics&quot;: [ # Progress metric bundle, for example:
174 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
175 # {name: &quot;nodes total&quot;, int_value: 32}]
176 # or
177 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
178 # {name: &quot;progress scale&quot;, double_value: 1.0}]
179 { # Progress metric is (string, int|float|string) pair.
180 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
181 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
182 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
183 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
184 },
185 ],
186 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
187 # Unset for single-stage operations.
188 },
189 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
190 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
191 # operation is taking place. This field is deprecated, use location instead.
192 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
193 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
194 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
195 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
196 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
197 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
199 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700200 { # StatusCondition describes why a cluster or a node pool has a certain status
201 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700203 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700204 },
205 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700206 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700207 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700209 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
210 # or
211 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
212 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
214 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700243 &quot;parent&quot;: &quot;A String&quot;, # The parent (project, location, cluster id) where the node pool will be
244 # created. Specified in the format
245 # `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 &quot;nodePool&quot;: { # NodePool contains the name and configuration for a cluster&#x27;s node pool. # Required. The node pool to create.
247 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400248 # specification, under the control of the cluster master. They may have a set
249 # of Kubernetes labels applied to them, which may be used to reference them
250 # during pod scheduling. They may also be resized up or down, to accommodate
251 # the workload.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700252 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
253 # node pool instance, if available.
254 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
255 # only if a valid configuration is present.
256 # adjust the size of the node pool to the current cluster usage.
257 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
258 # has to enough quota to scale up the cluster.
259 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
260 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
261 # max_node_count.
262 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
263 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700264 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
265 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
266 # is sufficient for this number of instances. You must also have available
267 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -0700268 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
269 &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 -0700270 # disruption caused by an upgrade.
271 #
272 # maxUnavailable controls the number of nodes that can be simultaneously
273 # unavailable.
274 #
275 # maxSurge controls the number of additional nodes that can be added to the
276 # node pool temporarily for the time of the upgrade to increase the number of
277 # available nodes.
278 #
279 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
280 # nodes are being upgraded at the same time).
281 #
282 # Note: upgrades inevitably introduce some disruption since workloads need to
283 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
284 # this holds true. (Disruption stays within the limits of
285 # PodDisruptionBudget, if it is configured.)
286 #
287 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
288 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
289 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
290 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
291 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700292 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700293 # the upgrade process. A node is considered available if its status is
294 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700295 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
296 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700297 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700298 &quot;locations&quot;: [ # The list of Google Compute Engine
299 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
300 # NodePool&#x27;s nodes should be located.
301 &quot;A String&quot;,
302 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700303 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
304 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
305 # associated with this node pool.
306 &quot;A String&quot;,
307 ],
308 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
309 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
310 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
311 { # StatusCondition describes why a cluster or a node pool has a certain status
312 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700314 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700315 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700316 ],
317 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
318 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700319 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
320 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400321 #
322 # The following scopes are recommended, but not required, and by default are
323 # not included:
324 #
325 # * `https://www.googleapis.com/auth/compute` is required for mounting
326 # persistent storage on your nodes.
327 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
328 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700329 # (the [Google Container
330 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400331 #
332 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
333 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700334 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700335 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700336 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700337 #
338 # For more information, including usage and the valid values, see:
339 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
340 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
341 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
342 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 # See
344 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
345 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700346 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700347 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
348 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700349 },
350 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
352 # These will added in addition to any default label(s) that
353 # Kubernetes may apply to the node.
354 # In case of conflict in label keys, the applied set may differ depending on
355 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
356 # and conflicts should be avoided.
357 # For more information, including usage and the valid values, see:
358 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
359 &quot;a_key&quot;: &quot;A String&quot;,
360 },
361 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
362 # The smallest allowed disk size is 10GB.
363 #
364 # If unspecified, the default disk size is 100GB.
365 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
366 # workloads on the node pool.
367 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
368 # on the node pool.
369 },
370 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
371 # See https://cloud.google.com/compute/docs/gpus for more information about
372 # support for GPUs.
373 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700374 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
375 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700376 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -0700377 },
378 ],
379 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
380 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
381 # `n1-standard-1`).
382 #
383 # If unspecified, the default machine type is
384 # `n1-standard-1`.
385 &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;)
386 #
387 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
388 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -0700389 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
390 #
391 # Enables monitoring and attestation of the boot integrity of the instance.
392 # The attestation is performed against the integrity policy baseline. This
393 # baseline is initially derived from the implicitly trusted boot image when
394 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700395 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
396 #
397 # Secure Boot helps ensure that the system only runs authentic software by
398 # verifying the digital signature of all boot components, and halting the
399 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700400 },
401 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
402 # scheduled on the specified or newer CPU platform. Applicable values are the
403 # friendly names of CPU platforms, such as
404 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
405 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
406 # information, read [how to specify min CPU
407 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
408 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
409 # https://cloud.google.com/compute/docs/instances/preemptible for more
410 # information about preemptible VM instances.
411 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400412 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700413 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400414 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -0700415 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400416 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700417 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
418 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700419 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700420 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
421 #
422 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
423 # in length. These are reflected as part of a URL in the metadata server.
424 # Additionally, to avoid ambiguity, keys must not conflict with any other
425 # metadata keys for the project or be one of the reserved keys:
426 # &quot;cluster-location&quot;
427 # &quot;cluster-name&quot;
428 # &quot;cluster-uid&quot;
429 # &quot;configure-sh&quot;
430 # &quot;containerd-configure-sh&quot;
431 # &quot;enable-os-login&quot;
432 # &quot;gci-ensure-gke-docker&quot;
433 # &quot;gci-metrics-enabled&quot;
434 # &quot;gci-update-strategy&quot;
435 # &quot;instance-template&quot;
436 # &quot;kube-env&quot;
437 # &quot;startup-script&quot;
438 # &quot;user-data&quot;
439 # &quot;disable-address-manager&quot;
440 # &quot;windows-startup-script-ps1&quot;
441 # &quot;common-psm1&quot;
442 # &quot;k8s-node-setup-psm1&quot;
443 # &quot;install-ssh-psm1&quot;
444 # &quot;user-profile-psm1&quot;
445 # &quot;serial-port-logging-enable&quot;
446 #
447 # Values are free-form strings, and only have meaning as interpreted by
448 # the image running in the instance. The only restriction placed on them is
449 # that each value&#x27;s size must be less than or equal to 32 KB.
450 #
451 # The total size of all keys and values must be less than 512 KB.
452 &quot;a_key&quot;: &quot;A String&quot;,
453 },
454 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
455 # the specified [Zonal Compute
456 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
457 # to this node pool.
458 # is the configuration of desired reservation which instances could take
459 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -0700460 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
461 &quot;A String&quot;,
462 ],
463 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700464 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
465 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
466 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700468 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
469 # valid sources or targets for network firewalls and are specified by
470 # the client during cluster or node pool creation. Each tag within the list
471 # must comply with RFC1035.
472 &quot;A String&quot;,
473 ],
474 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
475 # Specify the email address of the Service Account; otherwise, if no Service
476 # Account is specified, the &quot;default&quot; service account is used.
477 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
478 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -0700479 },
480 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
481 # simultaneously on a node in the node pool.
482 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
483 },
484 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
485 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
486 # node pool.
487 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
488 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700489 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
490 # with the approximate start time for the upgrades, in
491 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700492 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
493 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -0700494 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700495 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
496 # pool. If enabled, the nodes in this node pool will be monitored and, if
497 # they fail health checks too many times, an automatic repair action will be
498 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700499 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
500 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
501 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700502 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700503 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700504 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
505 # This field has been deprecated and replaced by the parent field.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700518 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
519 { # StatusCondition describes why a cluster or a node pool has a certain status
520 # (e.g., ERROR or DEGRADED).
521 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
522 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
523 },
524 ],
525 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
526 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
527 # Unset for single-stage operations.
528 &quot;stages&quot;: [ # Substages of an operation or a stage.
529 # Object with schema name: OperationProgress
530 ],
531 &quot;metrics&quot;: [ # Progress metric bundle, for example:
532 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
533 # {name: &quot;nodes total&quot;, int_value: 32}]
534 # or
535 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
536 # {name: &quot;progress scale&quot;, double_value: 1.0}]
537 { # Progress metric is (string, int|float|string) pair.
538 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
539 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
540 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
541 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
542 },
543 ],
544 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
545 # Unset for single-stage operations.
546 },
547 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
548 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
549 # operation is taking place. This field is deprecated, use location instead.
550 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
551 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
552 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
553 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
554 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
555 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700556 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
557 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700558 { # StatusCondition describes why a cluster or a node pool has a certain status
559 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700561 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700562 },
563 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700564 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700565 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700566 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700567 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
568 # or
569 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
570 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700571 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
572 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700605 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
606 { # StatusCondition describes why a cluster or a node pool has a certain status
607 # (e.g., ERROR or DEGRADED).
608 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
609 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
610 },
611 ],
612 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
613 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
614 # Unset for single-stage operations.
615 &quot;stages&quot;: [ # Substages of an operation or a stage.
616 # Object with schema name: OperationProgress
617 ],
618 &quot;metrics&quot;: [ # Progress metric bundle, for example:
619 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
620 # {name: &quot;nodes total&quot;, int_value: 32}]
621 # or
622 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
623 # {name: &quot;progress scale&quot;, double_value: 1.0}]
624 { # Progress metric is (string, int|float|string) pair.
625 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
626 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
627 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
628 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
629 },
630 ],
631 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
632 # Unset for single-stage operations.
633 },
634 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
635 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
636 # operation is taking place. This field is deprecated, use location instead.
637 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
638 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
639 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
640 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
641 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
642 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700643 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
644 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700645 { # StatusCondition describes why a cluster or a node pool has a certain status
646 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700647 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700648 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700649 },
650 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700651 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700652 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700653 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700654 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
655 # or
656 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
657 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700658 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
659 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700696 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
697 # node pool instance, if available.
698 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
699 # only if a valid configuration is present.
700 # adjust the size of the node pool to the current cluster usage.
701 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
702 # has to enough quota to scale up the cluster.
703 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
704 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
705 # max_node_count.
706 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
707 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700708 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
709 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
710 # is sufficient for this number of instances. You must also have available
711 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -0700712 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
713 &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 -0700714 # disruption caused by an upgrade.
715 #
716 # maxUnavailable controls the number of nodes that can be simultaneously
717 # unavailable.
718 #
719 # maxSurge controls the number of additional nodes that can be added to the
720 # node pool temporarily for the time of the upgrade to increase the number of
721 # available nodes.
722 #
723 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
724 # nodes are being upgraded at the same time).
725 #
726 # Note: upgrades inevitably introduce some disruption since workloads need to
727 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
728 # this holds true. (Disruption stays within the limits of
729 # PodDisruptionBudget, if it is configured.)
730 #
731 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
732 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
733 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
734 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
735 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700736 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700737 # the upgrade process. A node is considered available if its status is
738 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700739 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
740 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700741 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700742 &quot;locations&quot;: [ # The list of Google Compute Engine
743 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
744 # NodePool&#x27;s nodes should be located.
745 &quot;A String&quot;,
746 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700747 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
748 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
749 # associated with this node pool.
750 &quot;A String&quot;,
751 ],
752 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
753 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
754 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
755 { # StatusCondition describes why a cluster or a node pool has a certain status
756 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700757 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700758 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700759 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700760 ],
761 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
762 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700763 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
764 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400765 #
766 # The following scopes are recommended, but not required, and by default are
767 # not included:
768 #
769 # * `https://www.googleapis.com/auth/compute` is required for mounting
770 # persistent storage on your nodes.
771 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
772 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700773 # (the [Google Container
774 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400775 #
776 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
777 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700778 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700779 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700780 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700781 #
782 # For more information, including usage and the valid values, see:
783 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
784 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
785 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
786 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700787 # See
788 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
789 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700790 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700791 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
792 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700793 },
794 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700795 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
796 # These will added in addition to any default label(s) that
797 # Kubernetes may apply to the node.
798 # In case of conflict in label keys, the applied set may differ depending on
799 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
800 # and conflicts should be avoided.
801 # For more information, including usage and the valid values, see:
802 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
803 &quot;a_key&quot;: &quot;A String&quot;,
804 },
805 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
806 # The smallest allowed disk size is 10GB.
807 #
808 # If unspecified, the default disk size is 100GB.
809 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
810 # workloads on the node pool.
811 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
812 # on the node pool.
813 },
814 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
815 # See https://cloud.google.com/compute/docs/gpus for more information about
816 # support for GPUs.
817 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700818 &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)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700820 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -0700821 },
822 ],
823 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
824 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
825 # `n1-standard-1`).
826 #
827 # If unspecified, the default machine type is
828 # `n1-standard-1`.
829 &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;)
830 #
831 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
832 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -0700833 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
834 #
835 # Enables monitoring and attestation of the boot integrity of the instance.
836 # The attestation is performed against the integrity policy baseline. This
837 # baseline is initially derived from the implicitly trusted boot image when
838 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700839 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
840 #
841 # Secure Boot helps ensure that the system only runs authentic software by
842 # verifying the digital signature of all boot components, and halting the
843 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700844 },
845 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
846 # scheduled on the specified or newer CPU platform. Applicable values are the
847 # friendly names of CPU platforms, such as
848 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
849 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
850 # information, read [how to specify min CPU
851 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
852 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
853 # https://cloud.google.com/compute/docs/instances/preemptible for more
854 # information about preemptible VM instances.
855 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400856 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700857 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400858 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -0700859 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400860 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700861 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
862 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700863 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700864 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
865 #
866 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
867 # in length. These are reflected as part of a URL in the metadata server.
868 # Additionally, to avoid ambiguity, keys must not conflict with any other
869 # metadata keys for the project or be one of the reserved keys:
870 # &quot;cluster-location&quot;
871 # &quot;cluster-name&quot;
872 # &quot;cluster-uid&quot;
873 # &quot;configure-sh&quot;
874 # &quot;containerd-configure-sh&quot;
875 # &quot;enable-os-login&quot;
876 # &quot;gci-ensure-gke-docker&quot;
877 # &quot;gci-metrics-enabled&quot;
878 # &quot;gci-update-strategy&quot;
879 # &quot;instance-template&quot;
880 # &quot;kube-env&quot;
881 # &quot;startup-script&quot;
882 # &quot;user-data&quot;
883 # &quot;disable-address-manager&quot;
884 # &quot;windows-startup-script-ps1&quot;
885 # &quot;common-psm1&quot;
886 # &quot;k8s-node-setup-psm1&quot;
887 # &quot;install-ssh-psm1&quot;
888 # &quot;user-profile-psm1&quot;
889 # &quot;serial-port-logging-enable&quot;
890 #
891 # Values are free-form strings, and only have meaning as interpreted by
892 # the image running in the instance. The only restriction placed on them is
893 # that each value&#x27;s size must be less than or equal to 32 KB.
894 #
895 # The total size of all keys and values must be less than 512 KB.
896 &quot;a_key&quot;: &quot;A String&quot;,
897 },
898 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
899 # the specified [Zonal Compute
900 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
901 # to this node pool.
902 # is the configuration of desired reservation which instances could take
903 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
905 &quot;A String&quot;,
906 ],
907 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700908 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
909 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
910 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700911 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700912 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
913 # valid sources or targets for network firewalls and are specified by
914 # the client during cluster or node pool creation. Each tag within the list
915 # must comply with RFC1035.
916 &quot;A String&quot;,
917 ],
918 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
919 # Specify the email address of the Service Account; otherwise, if no Service
920 # Account is specified, the &quot;default&quot; service account is used.
921 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
922 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -0700923 },
924 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
925 # simultaneously on a node in the node pool.
926 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
927 },
928 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
929 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
930 # node pool.
931 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
932 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700933 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
934 # with the approximate start time for the upgrades, in
935 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700936 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
937 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -0700938 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700939 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
940 # pool. If enabled, the nodes in this node pool will be monitored and, if
941 # they fail health checks too many times, an automatic repair action will be
942 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700943 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
944 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
945 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700946 },
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 Kim4ed7d3f2020-05-27 12:20:54 -0700982 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
983 # node pool instance, if available.
984 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
985 # only if a valid configuration is present.
986 # adjust the size of the node pool to the current cluster usage.
987 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
988 # has to enough quota to scale up the cluster.
989 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
990 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
991 # max_node_count.
992 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
993 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700994 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
995 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
996 # is sufficient for this number of instances. You must also have available
997 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -0700998 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
999 &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 -07001000 # disruption caused by an upgrade.
1001 #
1002 # maxUnavailable controls the number of nodes that can be simultaneously
1003 # unavailable.
1004 #
1005 # maxSurge controls the number of additional nodes that can be added to the
1006 # node pool temporarily for the time of the upgrade to increase the number of
1007 # available nodes.
1008 #
1009 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1010 # nodes are being upgraded at the same time).
1011 #
1012 # Note: upgrades inevitably introduce some disruption since workloads need to
1013 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1014 # this holds true. (Disruption stays within the limits of
1015 # PodDisruptionBudget, if it is configured.)
1016 #
1017 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1018 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1019 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1020 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1021 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001022 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001023 # the upgrade process. A node is considered available if its status is
1024 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001025 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1026 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001027 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001028 &quot;locations&quot;: [ # The list of Google Compute Engine
1029 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1030 # NodePool&#x27;s nodes should be located.
1031 &quot;A String&quot;,
1032 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001033 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
1034 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1035 # associated with this node pool.
1036 &quot;A String&quot;,
1037 ],
1038 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1039 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1040 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1041 { # StatusCondition describes why a cluster or a node pool has a certain status
1042 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001043 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001044 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07001045 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001046 ],
1047 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
1048 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001049 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1050 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001051 #
1052 # The following scopes are recommended, but not required, and by default are
1053 # not included:
1054 #
1055 # * `https://www.googleapis.com/auth/compute` is required for mounting
1056 # persistent storage on your nodes.
1057 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1058 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001059 # (the [Google Container
1060 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001061 #
1062 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1063 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001064 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001065 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001066 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07001067 #
1068 # For more information, including usage and the valid values, see:
1069 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1070 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1071 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1072 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001073 # See
1074 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1075 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07001076 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001077 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1078 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07001079 },
1080 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001081 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1082 # These will added in addition to any default label(s) that
1083 # Kubernetes may apply to the node.
1084 # In case of conflict in label keys, the applied set may differ depending on
1085 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1086 # and conflicts should be avoided.
1087 # For more information, including usage and the valid values, see:
1088 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1089 &quot;a_key&quot;: &quot;A String&quot;,
1090 },
1091 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1092 # The smallest allowed disk size is 10GB.
1093 #
1094 # If unspecified, the default disk size is 100GB.
1095 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1096 # workloads on the node pool.
1097 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1098 # on the node pool.
1099 },
1100 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1101 # See https://cloud.google.com/compute/docs/gpus for more information about
1102 # support for GPUs.
1103 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -07001104 &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)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001106 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07001107 },
1108 ],
1109 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1110 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1111 # `n1-standard-1`).
1112 #
1113 # If unspecified, the default machine type is
1114 # `n1-standard-1`.
1115 &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;)
1116 #
1117 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1118 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -07001119 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1120 #
1121 # Enables monitoring and attestation of the boot integrity of the instance.
1122 # The attestation is performed against the integrity policy baseline. This
1123 # baseline is initially derived from the implicitly trusted boot image when
1124 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001125 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1126 #
1127 # Secure Boot helps ensure that the system only runs authentic software by
1128 # verifying the digital signature of all boot components, and halting the
1129 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001130 },
1131 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1132 # scheduled on the specified or newer CPU platform. Applicable values are the
1133 # friendly names of CPU platforms, such as
1134 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1135 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1136 # information, read [how to specify min CPU
1137 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1138 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1139 # https://cloud.google.com/compute/docs/instances/preemptible for more
1140 # information about preemptible VM instances.
1141 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001142 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001143 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001144 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07001145 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001146 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001147 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1148 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001149 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001150 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1151 #
1152 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1153 # in length. These are reflected as part of a URL in the metadata server.
1154 # Additionally, to avoid ambiguity, keys must not conflict with any other
1155 # metadata keys for the project or be one of the reserved keys:
1156 # &quot;cluster-location&quot;
1157 # &quot;cluster-name&quot;
1158 # &quot;cluster-uid&quot;
1159 # &quot;configure-sh&quot;
1160 # &quot;containerd-configure-sh&quot;
1161 # &quot;enable-os-login&quot;
1162 # &quot;gci-ensure-gke-docker&quot;
1163 # &quot;gci-metrics-enabled&quot;
1164 # &quot;gci-update-strategy&quot;
1165 # &quot;instance-template&quot;
1166 # &quot;kube-env&quot;
1167 # &quot;startup-script&quot;
1168 # &quot;user-data&quot;
1169 # &quot;disable-address-manager&quot;
1170 # &quot;windows-startup-script-ps1&quot;
1171 # &quot;common-psm1&quot;
1172 # &quot;k8s-node-setup-psm1&quot;
1173 # &quot;install-ssh-psm1&quot;
1174 # &quot;user-profile-psm1&quot;
1175 # &quot;serial-port-logging-enable&quot;
1176 #
1177 # Values are free-form strings, and only have meaning as interpreted by
1178 # the image running in the instance. The only restriction placed on them is
1179 # that each value&#x27;s size must be less than or equal to 32 KB.
1180 #
1181 # The total size of all keys and values must be less than 512 KB.
1182 &quot;a_key&quot;: &quot;A String&quot;,
1183 },
1184 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1185 # the specified [Zonal Compute
1186 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1187 # to this node pool.
1188 # is the configuration of desired reservation which instances could take
1189 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -07001190 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1191 &quot;A String&quot;,
1192 ],
1193 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001194 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1195 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1196 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001197 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001198 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
1199 # valid sources or targets for network firewalls and are specified by
1200 # the client during cluster or node pool creation. Each tag within the list
1201 # must comply with RFC1035.
1202 &quot;A String&quot;,
1203 ],
1204 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
1205 # Specify the email address of the Service Account; otherwise, if no Service
1206 # Account is specified, the &quot;default&quot; service account is used.
1207 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1208 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -07001209 },
1210 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1211 # simultaneously on a node in the node pool.
1212 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1213 },
1214 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1215 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1216 # node pool.
1217 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1218 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001219 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1220 # with the approximate start time for the upgrades, in
1221 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001222 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1223 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07001224 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001225 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1226 # pool. If enabled, the nodes in this node pool will be monitored and, if
1227 # they fail health checks too many times, an automatic repair action will be
1228 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001229 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1230 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1231 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001232 },
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 Kim4ed7d3f2020-05-27 12:20:54 -07001287 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1288 { # StatusCondition describes why a cluster or a node pool has a certain status
1289 # (e.g., ERROR or DEGRADED).
1290 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1291 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1292 },
1293 ],
1294 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1295 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1296 # Unset for single-stage operations.
1297 &quot;stages&quot;: [ # Substages of an operation or a stage.
1298 # Object with schema name: OperationProgress
1299 ],
1300 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1301 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1302 # {name: &quot;nodes total&quot;, int_value: 32}]
1303 # or
1304 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1305 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1306 { # Progress metric is (string, int|float|string) pair.
1307 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1308 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1309 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1310 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1311 },
1312 ],
1313 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1314 # Unset for single-stage operations.
1315 },
1316 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1317 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1318 # operation is taking place. This field is deprecated, use location instead.
1319 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1320 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1321 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1322 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1323 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1324 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001325 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1326 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001327 { # StatusCondition describes why a cluster or a node pool has a certain status
1328 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001329 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001330 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001331 },
1332 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001333 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001334 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001335 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001336 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1337 # or
1338 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1339 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001340 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1341 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001367 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1368 # cluster resides. This field has been deprecated and replaced by the name
1369 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001370 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1371 # management properties. Specified in the format
1372 # `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001373 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Required. NodeManagement configuration for the node pool.
1374 # node pool.
1375 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1376 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001377 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1378 # with the approximate start time for the upgrades, in
1379 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001380 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1381 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07001382 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001383 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1384 # pool. If enabled, the nodes in this node pool will be monitored and, if
1385 # they fail health checks too many times, an automatic repair action will be
1386 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001387 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1388 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1389 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001390 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001391 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1392 # number](https://support.google.com/cloud/answer/6158840).
1393 # This field has been deprecated and replaced by the name field.
1394 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
1395 # This field has been deprecated and replaced by the name field.
1396 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update.
1397 # This field has been deprecated and replaced by the name field.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001410 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1411 { # StatusCondition describes why a cluster or a node pool has a certain status
1412 # (e.g., ERROR or DEGRADED).
1413 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1414 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1415 },
1416 ],
1417 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1418 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1419 # Unset for single-stage operations.
1420 &quot;stages&quot;: [ # Substages of an operation or a stage.
1421 # Object with schema name: OperationProgress
1422 ],
1423 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1424 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1425 # {name: &quot;nodes total&quot;, int_value: 32}]
1426 # or
1427 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1428 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1429 { # Progress metric is (string, int|float|string) pair.
1430 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1431 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1432 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1433 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1434 },
1435 ],
1436 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1437 # Unset for single-stage operations.
1438 },
1439 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1440 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1441 # operation is taking place. This field is deprecated, use location instead.
1442 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1443 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1444 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1445 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1446 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1447 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001448 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1449 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001450 { # StatusCondition describes why a cluster or a node pool has a certain status
1451 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001452 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001453 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001454 },
1455 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001456 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001457 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001458 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001459 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1460 # or
1461 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1462 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001463 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1464 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001490 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1491 # cluster resides. This field has been deprecated and replaced by the name
1492 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001493 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
1494 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1495 # size.
1496 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1497 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001498 # number](https://support.google.com/cloud/answer/6158840).
1499 # This field has been deprecated and replaced by the name field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001500 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
1501 # This field has been deprecated and replaced by the name field.
1502 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001516 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1517 { # StatusCondition describes why a cluster or a node pool has a certain status
1518 # (e.g., ERROR or DEGRADED).
1519 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1520 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1521 },
1522 ],
1523 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1524 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1525 # Unset for single-stage operations.
1526 &quot;stages&quot;: [ # Substages of an operation or a stage.
1527 # Object with schema name: OperationProgress
1528 ],
1529 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1530 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1531 # {name: &quot;nodes total&quot;, int_value: 32}]
1532 # or
1533 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1534 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1535 { # Progress metric is (string, int|float|string) pair.
1536 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1537 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1538 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1539 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1540 },
1541 ],
1542 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1543 # Unset for single-stage operations.
1544 },
1545 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1546 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1547 # operation is taking place. This field is deprecated, use location instead.
1548 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1549 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1550 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1551 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1552 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1553 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001554 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1555 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001556 { # StatusCondition describes why a cluster or a node pool has a certain status
1557 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001558 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001559 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001560 },
1561 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001562 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001563 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001564 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001565 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1566 # or
1567 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1568 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001569 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1570 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001594 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
1595 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001596 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1597 # cluster resides. This field has been deprecated and replaced by the name
1598 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001599 &quot;nodeVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the nodes to (typically an
1600 # upgrade).
1601 #
1602 # Users may specify either explicit versions offered by Kubernetes Engine or
1603 # version aliases, which have the following behavior:
1604 #
1605 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1606 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1607 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1608 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1609 # - &quot;-&quot;: picks the Kubernetes master version
1610 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to
1611 # update. Specified in the format
1612 # `projects/*/locations/*/clusters/*/nodePools/*`.
1613 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001614 # number](https://support.google.com/cloud/answer/6158840).
1615 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001616 &quot;locations&quot;: [ # The desired list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001617 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07001618 # node pool&#x27;s nodes should be located. Changing the locations for a node pool
Dan O'Mearadd494642020-05-01 07:42:23 -07001619 # will result in nodes being either created or removed from the node pool,
1620 # depending on whether locations are being added or removed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001621 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001622 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001623 &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 -07001624 # disruption caused by an upgrade.
1625 #
1626 # maxUnavailable controls the number of nodes that can be simultaneously
1627 # unavailable.
1628 #
1629 # maxSurge controls the number of additional nodes that can be added to the
1630 # node pool temporarily for the time of the upgrade to increase the number of
1631 # available nodes.
1632 #
1633 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1634 # nodes are being upgraded at the same time).
1635 #
1636 # Note: upgrades inevitably introduce some disruption since workloads need to
1637 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1638 # this holds true. (Disruption stays within the limits of
1639 # PodDisruptionBudget, if it is configured.)
1640 #
1641 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1642 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1643 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1644 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1645 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001646 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001647 # the upgrade process. A node is considered available if its status is
1648 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001649 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1650 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001651 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001652 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
1653 # This field has been deprecated and replaced by the name field.
1654 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The desired workload metadata config for the node pool.
1655 # workloads on the node pool.
1656 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1657 # on the node pool.
1658 },
1659 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade.
1660 # This field has been deprecated and replaced by the name field.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001673 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1674 { # StatusCondition describes why a cluster or a node pool has a certain status
1675 # (e.g., ERROR or DEGRADED).
1676 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1677 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1678 },
1679 ],
1680 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1681 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1682 # Unset for single-stage operations.
1683 &quot;stages&quot;: [ # Substages of an operation or a stage.
1684 # Object with schema name: OperationProgress
1685 ],
1686 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1687 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1688 # {name: &quot;nodes total&quot;, int_value: 32}]
1689 # or
1690 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1691 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1692 { # Progress metric is (string, int|float|string) pair.
1693 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1694 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1695 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1696 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1697 },
1698 ],
1699 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1700 # Unset for single-stage operations.
1701 },
1702 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1703 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1704 # operation is taking place. This field is deprecated, use location instead.
1705 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1706 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1707 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1708 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1709 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1710 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001711 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1712 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001713 { # StatusCondition describes why a cluster or a node pool has a certain status
1714 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001715 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001716 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001717 },
1718 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001719 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001720 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001721 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001722 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1723 # or
1724 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1725 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001726 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1727 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001728 }</pre>
1729</div>
1730
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001731</body></html>