blob: 9a6d4392f130928d25099f8995882f99df45b753 [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 Kimd059ad82020-07-22 17:02:09 -0700125 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Required. Autoscaling configuration for the node pool.
126 # adjust the size of the node pool to the current cluster usage.
127 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
128 # max_node_count.
129 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
130 # has to enough quota to scale up the cluster.
131 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
132 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
133 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700135 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
136 # cluster resides. This field has been deprecated and replaced by the name
137 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700138 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700139 # This field has been deprecated and replaced by the name field.
140 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
141 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700142 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to set
143 # autoscaler settings. Specified in the format
144 # `projects/*/locations/*/clusters/*/nodePools/*`.
145 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
146 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700147 # 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;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
161 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
162 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700163 &quot;metrics&quot;: [ # Progress metric bundle, for example:
164 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
165 # {name: &quot;nodes total&quot;, int_value: 32}]
166 # or
167 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
168 # {name: &quot;progress scale&quot;, double_value: 1.0}]
169 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700170 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700171 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
172 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700173 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700174 },
175 ],
176 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
177 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700178 &quot;stages&quot;: [ # Substages of an operation or a stage.
179 # Object with schema name: OperationProgress
180 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700181 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700182 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
183 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
184 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
185 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
186 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
187 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
188 { # StatusCondition describes why a cluster or a node pool has a certain status
189 # (e.g., ERROR or DEGRADED).
190 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
191 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
192 },
193 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700194 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
195 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
196 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700197 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700199 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
200 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
201 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700203 { # StatusCondition describes why a cluster or a node pool has a certain status
204 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700205 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700206 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700207 },
208 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700209 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700210 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
211 # or
212 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
213 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700214 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
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 Kim65020912020-05-20 12:08:20 -0700252 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700253 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
254 # node pool.
255 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
256 # the Auto Upgrades will proceed.
257 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
258 # with the description of the upgrade.
259 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
260 # with the approximate start time for the upgrades, in
261 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
262 },
263 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
264 # pool. If enabled, the nodes in this node pool will be monitored and, if
265 # they fail health checks too many times, an automatic repair action will be
266 # triggered.
267 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
268 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
269 # up to date with the latest release version of Kubernetes.
270 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700271 &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 -0700272 # disruption caused by an upgrade.
273 #
274 # maxUnavailable controls the number of nodes that can be simultaneously
275 # unavailable.
276 #
277 # maxSurge controls the number of additional nodes that can be added to the
278 # node pool temporarily for the time of the upgrade to increase the number of
279 # available nodes.
280 #
281 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
282 # nodes are being upgraded at the same time).
283 #
284 # Note: upgrades inevitably introduce some disruption since workloads need to
285 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
286 # this holds true. (Disruption stays within the limits of
287 # PodDisruptionBudget, if it is configured.)
288 #
289 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
290 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
291 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
292 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
293 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700294 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700295 # the upgrade process. A node is considered available if its status is
296 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
298 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700299 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700300 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
301 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
302 # is sufficient for this number of instances. You must also have available
303 # firewall and routes quota.
304 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
305 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
308 { # StatusCondition describes why a cluster or a node pool has a certain status
309 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700310 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700311 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700312 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700314 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700315 &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;)
316 #
317 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
318 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
319 # The Customer Managed Encryption Key used to encrypt the boot disk attached
320 # to each node in the node pool. This should be of the form
321 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
322 # For more information about protecting resources with Cloud KMS Keys please
323 # see:
324 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
325 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
326 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
327 #
328 # Enables monitoring and attestation of the boot integrity of the instance.
329 # The attestation is performed against the integrity policy baseline. This
330 # baseline is initially derived from the implicitly trusted boot image when
331 # the instance is created.
332 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
333 #
334 # Secure Boot helps ensure that the system only runs authentic software by
335 # verifying the digital signature of all boot components, and halting the
336 # boot process if signature verification fails.
337 },
338 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
339 # These will added in addition to any default label(s) that
340 # Kubernetes may apply to the node.
341 # In case of conflict in label keys, the applied set may differ depending on
342 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
343 # and conflicts should be avoided.
344 # For more information, including usage and the valid values, see:
345 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
346 &quot;a_key&quot;: &quot;A String&quot;,
347 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
349 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400350 #
351 # The following scopes are recommended, but not required, and by default are
352 # not included:
353 #
354 # * `https://www.googleapis.com/auth/compute` is required for mounting
355 # persistent storage on your nodes.
356 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
357 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700358 # (the [Google Container
359 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400360 #
361 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
362 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700363 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700364 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700365 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
366 # scheduled on the specified or newer CPU platform. Applicable values are the
367 # friendly names of CPU platforms, such as
368 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
369 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
370 # information, read [how to specify min CPU
371 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
372 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
373 #
374 # The limit for this value is dependent upon the maximum number of
375 # disks available on a machine per zone. See:
376 # https://cloud.google.com/compute/docs/disks/local-ssd
377 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700378 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700379 #
380 # For more information, including usage and the valid values, see:
381 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
382 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
383 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
384 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700385 # See
386 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
387 # for more information, including usage and the valid values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700388 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
389 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700390 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700391 },
392 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700393 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
394 # the latest version of it will be used.
395 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
396 # the specified [Zonal Compute
397 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
398 # to this node pool.
399 # is the configuration of desired reservation which instances could take
400 # capacity from.
401 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
402 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
403 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
404 # the key and specify the name of your reservation as its value.
405 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
406 &quot;A String&quot;,
407 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
410 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
411 # `n1-standard-1`).
412 #
413 # If unspecified, the default machine type is
414 # `n1-standard-1`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700415 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
416 # pool to run on the specified node group. This is useful for running
417 # workloads on [sole tenant
418 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700419 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
420 #
421 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
422 # in length. These are reflected as part of a URL in the metadata server.
423 # Additionally, to avoid ambiguity, keys must not conflict with any other
424 # metadata keys for the project or be one of the reserved keys:
425 # &quot;cluster-location&quot;
426 # &quot;cluster-name&quot;
427 # &quot;cluster-uid&quot;
428 # &quot;configure-sh&quot;
429 # &quot;containerd-configure-sh&quot;
430 # &quot;enable-os-login&quot;
431 # &quot;gci-ensure-gke-docker&quot;
432 # &quot;gci-metrics-enabled&quot;
433 # &quot;gci-update-strategy&quot;
434 # &quot;instance-template&quot;
435 # &quot;kube-env&quot;
436 # &quot;startup-script&quot;
437 # &quot;user-data&quot;
438 # &quot;disable-address-manager&quot;
439 # &quot;windows-startup-script-ps1&quot;
440 # &quot;common-psm1&quot;
441 # &quot;k8s-node-setup-psm1&quot;
442 # &quot;install-ssh-psm1&quot;
443 # &quot;user-profile-psm1&quot;
444 # &quot;serial-port-logging-enable&quot;
445 #
446 # Values are free-form strings, and only have meaning as interpreted by
447 # the image running in the instance. The only restriction placed on them is
448 # that each value&#x27;s size must be less than or equal to 32 KB.
449 #
450 # The total size of all keys and values must be less than 512 KB.
451 &quot;a_key&quot;: &quot;A String&quot;,
452 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700453 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
454 # valid sources or targets for network firewalls and are specified by
455 # the client during cluster or node pool creation. Each tag within the list
456 # must comply with RFC1035.
457 &quot;A String&quot;,
458 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700459 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
460 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
461 },
462 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
463 # https://cloud.google.com/compute/docs/instances/preemptible for more
464 # information about preemptible VM instances.
465 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
466 # workloads on the node pool.
467 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
468 # on the node pool.
469 },
470 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
471 # The smallest allowed disk size is 10GB.
472 #
473 # If unspecified, the default disk size is 100GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700474 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700477 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
478 # See https://cloud.google.com/compute/docs/gpus for more information about
479 # support for GPUs.
480 { # AcceleratorConfig represents a Hardware Accelerator request.
481 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
482 # [here](https://cloud.google.com/compute/docs/gpus)
483 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
484 },
485 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700487 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700488 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
489 # simultaneously on a node in the node pool.
490 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
491 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700492 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
493 # only if a valid configuration is present.
494 # adjust the size of the node pool to the current cluster usage.
495 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
496 # max_node_count.
497 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
498 # has to enough quota to scale up the cluster.
499 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
500 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Bu Sun Kim65020912020-05-20 12:08:20 -0700501 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700502 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
503 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
504 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
505 # associated with this node pool.
506 &quot;A String&quot;,
507 ],
508 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
509 &quot;locations&quot;: [ # The list of Google Compute Engine
510 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
511 # NodePool&#x27;s nodes should be located.
512 &quot;A String&quot;,
513 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700514 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700515 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
516 # This field has been deprecated and replaced by the parent field.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700517 }
518
519 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400520 Allowed values
521 1 - v1 error format
522 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700523
524Returns:
525 An object of the form:
526
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400527 { # This operation resource represents operations that may have happened or are
528 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700529 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
530 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
531 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700532 &quot;metrics&quot;: [ # Progress metric bundle, for example:
533 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
534 # {name: &quot;nodes total&quot;, int_value: 32}]
535 # or
536 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
537 # {name: &quot;progress scale&quot;, double_value: 1.0}]
538 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700539 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700540 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
541 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700542 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700543 },
544 ],
545 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
546 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700547 &quot;stages&quot;: [ # Substages of an operation or a stage.
548 # Object with schema name: OperationProgress
549 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700550 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700551 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
552 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
553 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
554 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
555 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
556 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
557 { # StatusCondition describes why a cluster or a node pool has a certain status
558 # (e.g., ERROR or DEGRADED).
559 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
560 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
561 },
562 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700563 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
564 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
565 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700566 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700567 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700568 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
569 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
570 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700571 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700572 { # StatusCondition describes why a cluster or a node pool has a certain status
573 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700574 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700575 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700576 },
577 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700579 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
580 # or
581 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
582 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700583 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700584 }</pre>
585</div>
586
587<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700588 <code class="details" id="delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700589 <pre>Deletes a node pool from a cluster.
590
591Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700592 projectId: string, Deprecated. The Google Developers Console [project ID or project
593number](https://developers.google.com/console/help/new/#projectnumber).
594This field has been deprecated and replaced by the name field. (required)
595 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700596[zone](https://cloud.google.com/compute/docs/zones#available) in which the
597cluster resides. This field has been deprecated and replaced by the name
598field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700599 clusterId: string, Deprecated. The name of the cluster.
600This field has been deprecated and replaced by the name field. (required)
601 nodePoolId: string, Deprecated. The name of the node pool to delete.
602This field has been deprecated and replaced by the name field. (required)
603 name: string, The name (project, location, cluster, node pool id) of the node pool to
604delete. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700605`projects/*/locations/*/clusters/*/nodePools/*`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700606 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400607 Allowed values
608 1 - v1 error format
609 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700610
611Returns:
612 An object of the form:
613
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400614 { # This operation resource represents operations that may have happened or are
615 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700616 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
617 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
618 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700619 &quot;metrics&quot;: [ # Progress metric bundle, for example:
620 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
621 # {name: &quot;nodes total&quot;, int_value: 32}]
622 # or
623 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
624 # {name: &quot;progress scale&quot;, double_value: 1.0}]
625 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700626 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700627 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
628 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700629 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700630 },
631 ],
632 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
633 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700634 &quot;stages&quot;: [ # Substages of an operation or a stage.
635 # Object with schema name: OperationProgress
636 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700637 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700638 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
639 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
640 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
641 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
642 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
643 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
644 { # StatusCondition describes why a cluster or a node pool has a certain status
645 # (e.g., ERROR or DEGRADED).
646 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
647 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
648 },
649 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700650 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
651 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
652 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700653 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700654 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700655 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
656 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
657 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700658 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700659 { # StatusCondition describes why a cluster or a node pool has a certain status
660 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700661 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700662 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700663 },
664 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700665 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700666 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
667 # or
668 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
669 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700670 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700671 }</pre>
672</div>
673
674<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700675 <code class="details" id="get">get(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
676 <pre>Retrieves the requested node pool.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700677
678Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700679 projectId: string, Deprecated. The Google Developers Console [project ID or project
680number](https://developers.google.com/console/help/new/#projectnumber).
681This field has been deprecated and replaced by the name field. (required)
682 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700683[zone](https://cloud.google.com/compute/docs/zones#available) in which the
684cluster resides. This field has been deprecated and replaced by the name
685field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700686 clusterId: string, Deprecated. The name of the cluster.
687This field has been deprecated and replaced by the name field. (required)
688 nodePoolId: string, Deprecated. The name of the node pool.
689This field has been deprecated and replaced by the name field. (required)
690 name: string, The name (project, location, cluster, node pool id) of the node pool to
691get. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700692`projects/*/locations/*/clusters/*/nodePools/*`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700693 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400694 Allowed values
695 1 - v1 error format
696 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700697
698Returns:
699 An object of the form:
700
Bu Sun Kim65020912020-05-20 12:08:20 -0700701 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
702 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400703 # specification, under the control of the cluster master. They may have a set
704 # of Kubernetes labels applied to them, which may be used to reference them
705 # during pod scheduling. They may also be resized up or down, to accommodate
706 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700707 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700708 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
709 # node pool.
710 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
711 # the Auto Upgrades will proceed.
712 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
713 # with the description of the upgrade.
714 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
715 # with the approximate start time for the upgrades, in
716 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
717 },
718 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
719 # pool. If enabled, the nodes in this node pool will be monitored and, if
720 # they fail health checks too many times, an automatic repair action will be
721 # triggered.
722 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
723 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
724 # up to date with the latest release version of Kubernetes.
725 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700726 &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 -0700727 # disruption caused by an upgrade.
728 #
729 # maxUnavailable controls the number of nodes that can be simultaneously
730 # unavailable.
731 #
732 # maxSurge controls the number of additional nodes that can be added to the
733 # node pool temporarily for the time of the upgrade to increase the number of
734 # available nodes.
735 #
736 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
737 # nodes are being upgraded at the same time).
738 #
739 # Note: upgrades inevitably introduce some disruption since workloads need to
740 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
741 # this holds true. (Disruption stays within the limits of
742 # PodDisruptionBudget, if it is configured.)
743 #
744 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
745 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
746 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
747 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
748 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700749 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700750 # the upgrade process. A node is considered available if its status is
751 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700752 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
753 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700754 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700755 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
756 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
757 # is sufficient for this number of instances. You must also have available
758 # firewall and routes quota.
759 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
760 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700761 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
Bu Sun Kim65020912020-05-20 12:08:20 -0700762 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
763 { # StatusCondition describes why a cluster or a node pool has a certain status
764 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700765 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700766 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700767 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700768 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700769 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700770 &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;)
771 #
772 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
773 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
774 # The Customer Managed Encryption Key used to encrypt the boot disk attached
775 # to each node in the node pool. This should be of the form
776 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
777 # For more information about protecting resources with Cloud KMS Keys please
778 # see:
779 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
780 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
781 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
782 #
783 # Enables monitoring and attestation of the boot integrity of the instance.
784 # The attestation is performed against the integrity policy baseline. This
785 # baseline is initially derived from the implicitly trusted boot image when
786 # the instance is created.
787 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
788 #
789 # Secure Boot helps ensure that the system only runs authentic software by
790 # verifying the digital signature of all boot components, and halting the
791 # boot process if signature verification fails.
792 },
793 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
794 # These will added in addition to any default label(s) that
795 # Kubernetes may apply to the node.
796 # In case of conflict in label keys, the applied set may differ depending on
797 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
798 # and conflicts should be avoided.
799 # For more information, including usage and the valid values, see:
800 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
801 &quot;a_key&quot;: &quot;A String&quot;,
802 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700803 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
804 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400805 #
806 # The following scopes are recommended, but not required, and by default are
807 # not included:
808 #
809 # * `https://www.googleapis.com/auth/compute` is required for mounting
810 # persistent storage on your nodes.
811 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
812 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700813 # (the [Google Container
814 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400815 #
816 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
817 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700818 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700819 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700820 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
821 # scheduled on the specified or newer CPU platform. Applicable values are the
822 # friendly names of CPU platforms, such as
823 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
824 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
825 # information, read [how to specify min CPU
826 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
827 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
828 #
829 # The limit for this value is dependent upon the maximum number of
830 # disks available on a machine per zone. See:
831 # https://cloud.google.com/compute/docs/disks/local-ssd
832 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700833 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700834 #
835 # For more information, including usage and the valid values, see:
836 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
837 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
838 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
839 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700840 # See
841 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
842 # for more information, including usage and the valid values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700843 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
844 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700845 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700846 },
847 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700848 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
849 # the latest version of it will be used.
850 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
851 # the specified [Zonal Compute
852 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
853 # to this node pool.
854 # is the configuration of desired reservation which instances could take
855 # capacity from.
856 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
857 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
858 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
859 # the key and specify the name of your reservation as its value.
860 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
861 &quot;A String&quot;,
862 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700863 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700864 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
865 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
866 # `n1-standard-1`).
867 #
868 # If unspecified, the default machine type is
869 # `n1-standard-1`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700870 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
871 # pool to run on the specified node group. This is useful for running
872 # workloads on [sole tenant
873 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700874 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
875 #
876 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
877 # in length. These are reflected as part of a URL in the metadata server.
878 # Additionally, to avoid ambiguity, keys must not conflict with any other
879 # metadata keys for the project or be one of the reserved keys:
880 # &quot;cluster-location&quot;
881 # &quot;cluster-name&quot;
882 # &quot;cluster-uid&quot;
883 # &quot;configure-sh&quot;
884 # &quot;containerd-configure-sh&quot;
885 # &quot;enable-os-login&quot;
886 # &quot;gci-ensure-gke-docker&quot;
887 # &quot;gci-metrics-enabled&quot;
888 # &quot;gci-update-strategy&quot;
889 # &quot;instance-template&quot;
890 # &quot;kube-env&quot;
891 # &quot;startup-script&quot;
892 # &quot;user-data&quot;
893 # &quot;disable-address-manager&quot;
894 # &quot;windows-startup-script-ps1&quot;
895 # &quot;common-psm1&quot;
896 # &quot;k8s-node-setup-psm1&quot;
897 # &quot;install-ssh-psm1&quot;
898 # &quot;user-profile-psm1&quot;
899 # &quot;serial-port-logging-enable&quot;
900 #
901 # Values are free-form strings, and only have meaning as interpreted by
902 # the image running in the instance. The only restriction placed on them is
903 # that each value&#x27;s size must be less than or equal to 32 KB.
904 #
905 # The total size of all keys and values must be less than 512 KB.
906 &quot;a_key&quot;: &quot;A String&quot;,
907 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700908 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
909 # valid sources or targets for network firewalls and are specified by
910 # the client during cluster or node pool creation. Each tag within the list
911 # must comply with RFC1035.
912 &quot;A String&quot;,
913 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700914 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
915 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
916 },
917 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
918 # https://cloud.google.com/compute/docs/instances/preemptible for more
919 # information about preemptible VM instances.
920 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
921 # workloads on the node pool.
922 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
923 # on the node pool.
924 },
925 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
926 # The smallest allowed disk size is 10GB.
927 #
928 # If unspecified, the default disk size is 100GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700929 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
930 # Specify the email address of the Service Account; otherwise, if no Service
931 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700932 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
933 # See https://cloud.google.com/compute/docs/gpus for more information about
934 # support for GPUs.
935 { # AcceleratorConfig represents a Hardware Accelerator request.
936 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
937 # [here](https://cloud.google.com/compute/docs/gpus)
938 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
939 },
940 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700942 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700943 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
944 # simultaneously on a node in the node pool.
945 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
946 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700947 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
948 # only if a valid configuration is present.
949 # adjust the size of the node pool to the current cluster usage.
950 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
951 # max_node_count.
952 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
953 # has to enough quota to scale up the cluster.
954 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
955 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Bu Sun Kim65020912020-05-20 12:08:20 -0700956 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700957 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
958 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
959 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
960 # associated with this node pool.
961 &quot;A String&quot;,
962 ],
963 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
964 &quot;locations&quot;: [ # The list of Google Compute Engine
965 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
966 # NodePool&#x27;s nodes should be located.
967 &quot;A String&quot;,
968 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700969 }</pre>
970</div>
971
972<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700973 <code class="details" id="list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700974 <pre>Lists the node pools for a cluster.
975
976Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700977 projectId: string, Deprecated. The Google Developers Console [project ID or project
978number](https://developers.google.com/console/help/new/#projectnumber).
979This field has been deprecated and replaced by the parent field. (required)
980 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700981[zone](https://cloud.google.com/compute/docs/zones#available) in which the
982cluster resides. This field has been deprecated and replaced by the parent
983field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700984 clusterId: string, Deprecated. The name of the cluster.
985This field has been deprecated and replaced by the parent field. (required)
986 parent: string, The parent (project, location, cluster id) where the node pools will be
Bu Sun Kim65020912020-05-20 12:08:20 -0700987listed. Specified in the format `projects/*/locations/*/clusters/*`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700988 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400989 Allowed values
990 1 - v1 error format
991 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700992
993Returns:
994 An object of the form:
995
996 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700997 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
998 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
999 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001000 # specification, under the control of the cluster master. They may have a set
1001 # of Kubernetes labels applied to them, which may be used to reference them
1002 # during pod scheduling. They may also be resized up or down, to accommodate
1003 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -07001004 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001005 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1006 # node pool.
1007 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1008 # the Auto Upgrades will proceed.
1009 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1010 # with the description of the upgrade.
1011 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1012 # with the approximate start time for the upgrades, in
1013 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1014 },
1015 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1016 # pool. If enabled, the nodes in this node pool will be monitored and, if
1017 # they fail health checks too many times, an automatic repair action will be
1018 # triggered.
1019 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1020 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1021 # up to date with the latest release version of Kubernetes.
1022 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001023 &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 -07001024 # disruption caused by an upgrade.
1025 #
1026 # maxUnavailable controls the number of nodes that can be simultaneously
1027 # unavailable.
1028 #
1029 # maxSurge controls the number of additional nodes that can be added to the
1030 # node pool temporarily for the time of the upgrade to increase the number of
1031 # available nodes.
1032 #
1033 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1034 # nodes are being upgraded at the same time).
1035 #
1036 # Note: upgrades inevitably introduce some disruption since workloads need to
1037 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1038 # this holds true. (Disruption stays within the limits of
1039 # PodDisruptionBudget, if it is configured.)
1040 #
1041 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1042 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1043 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1044 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1045 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001046 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001047 # the upgrade process. A node is considered available if its status is
1048 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001049 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1050 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001051 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001052 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
1053 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
1054 # is sufficient for this number of instances. You must also have available
1055 # firewall and routes quota.
1056 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1057 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001058 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
Bu Sun Kim65020912020-05-20 12:08:20 -07001059 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1060 { # StatusCondition describes why a cluster or a node pool has a certain status
1061 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001062 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001063 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07001064 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001065 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001066 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001067 &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;)
1068 #
1069 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1070 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
1071 # The Customer Managed Encryption Key used to encrypt the boot disk attached
1072 # to each node in the node pool. This should be of the form
1073 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
1074 # For more information about protecting resources with Cloud KMS Keys please
1075 # see:
1076 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1077 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1078 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1079 #
1080 # Enables monitoring and attestation of the boot integrity of the instance.
1081 # The attestation is performed against the integrity policy baseline. This
1082 # baseline is initially derived from the implicitly trusted boot image when
1083 # the instance is created.
1084 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1085 #
1086 # Secure Boot helps ensure that the system only runs authentic software by
1087 # verifying the digital signature of all boot components, and halting the
1088 # boot process if signature verification fails.
1089 },
1090 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1091 # These will added in addition to any default label(s) that
1092 # Kubernetes may apply to the node.
1093 # In case of conflict in label keys, the applied set may differ depending on
1094 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1095 # and conflicts should be avoided.
1096 # For more information, including usage and the valid values, see:
1097 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1098 &quot;a_key&quot;: &quot;A String&quot;,
1099 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001100 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1101 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001102 #
1103 # The following scopes are recommended, but not required, and by default are
1104 # not included:
1105 #
1106 # * `https://www.googleapis.com/auth/compute` is required for mounting
1107 # persistent storage on your nodes.
1108 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1109 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001110 # (the [Google Container
1111 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001112 #
1113 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1114 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001115 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001116 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001117 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1118 # scheduled on the specified or newer CPU platform. Applicable values are the
1119 # friendly names of CPU platforms, such as
1120 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1121 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1122 # information, read [how to specify min CPU
1123 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1124 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
1125 #
1126 # The limit for this value is dependent upon the maximum number of
1127 # disks available on a machine per zone. See:
1128 # https://cloud.google.com/compute/docs/disks/local-ssd
1129 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001130 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07001131 #
1132 # For more information, including usage and the valid values, see:
1133 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1134 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1135 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1136 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001137 # See
1138 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1139 # for more information, including usage and the valid values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001140 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1141 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001142 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07001143 },
1144 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001145 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1146 # the latest version of it will be used.
1147 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1148 # the specified [Zonal Compute
1149 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1150 # to this node pool.
1151 # is the configuration of desired reservation which instances could take
1152 # capacity from.
1153 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1154 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1155 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1156 # the key and specify the name of your reservation as its value.
1157 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1158 &quot;A String&quot;,
1159 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001160 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001161 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1162 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1163 # `n1-standard-1`).
1164 #
1165 # If unspecified, the default machine type is
1166 # `n1-standard-1`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001167 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
1168 # pool to run on the specified node group. This is useful for running
1169 # workloads on [sole tenant
1170 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
Bu Sun Kim65020912020-05-20 12:08:20 -07001171 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1172 #
1173 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1174 # in length. These are reflected as part of a URL in the metadata server.
1175 # Additionally, to avoid ambiguity, keys must not conflict with any other
1176 # metadata keys for the project or be one of the reserved keys:
1177 # &quot;cluster-location&quot;
1178 # &quot;cluster-name&quot;
1179 # &quot;cluster-uid&quot;
1180 # &quot;configure-sh&quot;
1181 # &quot;containerd-configure-sh&quot;
1182 # &quot;enable-os-login&quot;
1183 # &quot;gci-ensure-gke-docker&quot;
1184 # &quot;gci-metrics-enabled&quot;
1185 # &quot;gci-update-strategy&quot;
1186 # &quot;instance-template&quot;
1187 # &quot;kube-env&quot;
1188 # &quot;startup-script&quot;
1189 # &quot;user-data&quot;
1190 # &quot;disable-address-manager&quot;
1191 # &quot;windows-startup-script-ps1&quot;
1192 # &quot;common-psm1&quot;
1193 # &quot;k8s-node-setup-psm1&quot;
1194 # &quot;install-ssh-psm1&quot;
1195 # &quot;user-profile-psm1&quot;
1196 # &quot;serial-port-logging-enable&quot;
1197 #
1198 # Values are free-form strings, and only have meaning as interpreted by
1199 # the image running in the instance. The only restriction placed on them is
1200 # that each value&#x27;s size must be less than or equal to 32 KB.
1201 #
1202 # The total size of all keys and values must be less than 512 KB.
1203 &quot;a_key&quot;: &quot;A String&quot;,
1204 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001205 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
1206 # valid sources or targets for network firewalls and are specified by
1207 # the client during cluster or node pool creation. Each tag within the list
1208 # must comply with RFC1035.
1209 &quot;A String&quot;,
1210 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001211 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1212 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1213 },
1214 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1215 # https://cloud.google.com/compute/docs/instances/preemptible for more
1216 # information about preemptible VM instances.
1217 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1218 # workloads on the node pool.
1219 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1220 # on the node pool.
1221 },
1222 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1223 # The smallest allowed disk size is 10GB.
1224 #
1225 # If unspecified, the default disk size is 100GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001226 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
1227 # Specify the email address of the Service Account; otherwise, if no Service
1228 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001229 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1230 # See https://cloud.google.com/compute/docs/gpus for more information about
1231 # support for GPUs.
1232 { # AcceleratorConfig represents a Hardware Accelerator request.
1233 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1234 # [here](https://cloud.google.com/compute/docs/gpus)
1235 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1236 },
1237 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001238 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001239 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001240 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1241 # simultaneously on a node in the node pool.
1242 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1243 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001244 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
1245 # only if a valid configuration is present.
1246 # adjust the size of the node pool to the current cluster usage.
1247 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1248 # max_node_count.
1249 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1250 # has to enough quota to scale up the cluster.
1251 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1252 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Bu Sun Kim65020912020-05-20 12:08:20 -07001253 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001254 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1255 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
1256 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1257 # associated with this node pool.
1258 &quot;A String&quot;,
1259 ],
1260 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
1261 &quot;locations&quot;: [ # The list of Google Compute Engine
1262 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1263 # NodePool&#x27;s nodes should be located.
1264 &quot;A String&quot;,
1265 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001266 },
1267 ],
1268 }</pre>
1269</div>
1270
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001271<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001272 <code class="details" id="rollback">rollback(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001273 <pre>Rolls back a previously Aborted or Failed NodePool upgrade.
1274This makes no changes if the last upgrade successfully completed.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001275
1276Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001277 projectId: string, Deprecated. The Google Developers Console [project ID or project
1278number](https://support.google.com/cloud/answer/6158840).
1279This field has been deprecated and replaced by the name field. (required)
1280 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001281[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1282cluster resides. This field has been deprecated and replaced by the name
1283field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001284 clusterId: string, Deprecated. The name of the cluster to rollback.
1285This field has been deprecated and replaced by the name field. (required)
1286 nodePoolId: string, Deprecated. The name of the node pool to rollback.
1287This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001288 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001289 The object takes the form of:
1290
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001291{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
1292 # NodePool upgrade. This will be an no-op if the last upgrade successfully
1293 # completed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001294 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001295 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1296 # cluster resides. This field has been deprecated and replaced by the name
1297 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001298 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1299 # number](https://support.google.com/cloud/answer/6158840).
1300 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001301 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to rollback.
1302 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001303 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node poll to
1304 # rollback upgrade.
1305 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001306 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to rollback.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001307 # This field has been deprecated and replaced by the name field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001308 }
1309
1310 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001311 Allowed values
1312 1 - v1 error format
1313 2 - v2 error format
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001314
1315Returns:
1316 An object of the form:
1317
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001318 { # This operation resource represents operations that may have happened or are
1319 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001320 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1321 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1322 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001323 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1324 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1325 # {name: &quot;nodes total&quot;, int_value: 32}]
1326 # or
1327 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1328 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1329 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001330 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001331 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1332 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001333 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001334 },
1335 ],
1336 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1337 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001338 &quot;stages&quot;: [ # Substages of an operation or a stage.
1339 # Object with schema name: OperationProgress
1340 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001341 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001342 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1343 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1344 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1345 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1346 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1347 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1348 { # StatusCondition describes why a cluster or a node pool has a certain status
1349 # (e.g., ERROR or DEGRADED).
1350 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1351 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1352 },
1353 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001354 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1355 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1356 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001357 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001358 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001359 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1360 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1361 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001362 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001363 { # StatusCondition describes why a cluster or a node pool has a certain status
1364 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001365 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001366 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001367 },
1368 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001369 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001370 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1371 # or
1372 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1373 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001374 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001375 }</pre>
1376</div>
1377
1378<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001379 <code class="details" id="setManagement">setManagement(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001380 <pre>Sets the NodeManagement options for a node pool.
1381
1382Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001383 projectId: string, Deprecated. The Google Developers Console [project ID or project
1384number](https://support.google.com/cloud/answer/6158840).
1385This field has been deprecated and replaced by the name field. (required)
1386 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001387[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1388cluster resides. This field has been deprecated and replaced by the name
1389field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001390 clusterId: string, Deprecated. The name of the cluster to update.
1391This field has been deprecated and replaced by the name field. (required)
1392 nodePoolId: string, Deprecated. The name of the node pool to update.
1393This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001394 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001395 The object takes the form of:
1396
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001397{ # SetNodePoolManagementRequest sets the node management properties of a node
1398 # pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001399 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update.
1400 # This field has been deprecated and replaced by the name field.
1401 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1402 # management properties. Specified in the format
1403 # `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001404 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001405 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1406 # cluster resides. This field has been deprecated and replaced by the name
1407 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001408 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Required. NodeManagement configuration for the node pool.
1409 # node pool.
1410 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1411 # the Auto Upgrades will proceed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001412 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1413 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07001414 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1415 # with the approximate start time for the upgrades, in
1416 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1417 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001418 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1419 # pool. If enabled, the nodes in this node pool will be monitored and, if
1420 # they fail health checks too many times, an automatic repair action will be
1421 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001422 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1423 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1424 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001425 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001426 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
1427 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001428 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1429 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001430 # This field has been deprecated and replaced by the name field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001431 }
1432
1433 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001434 Allowed values
1435 1 - v1 error format
1436 2 - v2 error format
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001437
1438Returns:
1439 An object of the form:
1440
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001441 { # This operation resource represents operations that may have happened or are
1442 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001443 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1444 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1445 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001446 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1447 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1448 # {name: &quot;nodes total&quot;, int_value: 32}]
1449 # or
1450 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1451 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1452 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001453 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001454 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1455 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001456 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001457 },
1458 ],
1459 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1460 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001461 &quot;stages&quot;: [ # Substages of an operation or a stage.
1462 # Object with schema name: OperationProgress
1463 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001464 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001465 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1466 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1467 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1468 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1469 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1470 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1471 { # StatusCondition describes why a cluster or a node pool has a certain status
1472 # (e.g., ERROR or DEGRADED).
1473 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1474 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1475 },
1476 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001477 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1478 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1479 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001480 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001481 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001482 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1483 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1484 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001485 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001486 { # StatusCondition describes why a cluster or a node pool has a certain status
1487 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001488 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001489 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001490 },
1491 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001492 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001493 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1494 # or
1495 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1496 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001497 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001498 }</pre>
1499</div>
1500
1501<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001502 <code class="details" id="setSize">setSize(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001503 <pre>Sets the size for a specific node pool.
1504
1505Args:
1506 projectId: string, Deprecated. The Google Developers Console [project ID or project
1507number](https://support.google.com/cloud/answer/6158840).
1508This field has been deprecated and replaced by the name field. (required)
1509 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001510[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1511cluster resides. This field has been deprecated and replaced by the name
1512field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001513 clusterId: string, Deprecated. The name of the cluster to update.
1514This field has been deprecated and replaced by the name field. (required)
1515 nodePoolId: string, Deprecated. The name of the node pool to update.
1516This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001517 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001518 The object takes the form of:
1519
1520{ # SetNodePoolSizeRequest sets the size a node
1521 # pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001522 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001523 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001524 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1525 # cluster resides. This field has been deprecated and replaced by the name
1526 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001527 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update.
1528 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001529 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001530 # number](https://support.google.com/cloud/answer/6158840).
1531 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001532 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1533 # size.
1534 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001535 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
1536 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001537 }
1538
1539 x__xgafv: string, V1 error format.
1540 Allowed values
1541 1 - v1 error format
1542 2 - v2 error format
1543
1544Returns:
1545 An object of the form:
1546
1547 { # This operation resource represents operations that may have happened or are
1548 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001549 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1550 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1551 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001552 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1553 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1554 # {name: &quot;nodes total&quot;, int_value: 32}]
1555 # or
1556 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1557 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1558 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001559 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001560 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1561 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001562 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001563 },
1564 ],
1565 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1566 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001567 &quot;stages&quot;: [ # Substages of an operation or a stage.
1568 # Object with schema name: OperationProgress
1569 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001570 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001571 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1572 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1573 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1574 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1575 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1576 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1577 { # StatusCondition describes why a cluster or a node pool has a certain status
1578 # (e.g., ERROR or DEGRADED).
1579 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1580 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1581 },
1582 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001583 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1584 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1585 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001586 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001587 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001588 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1589 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1590 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001591 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001592 { # StatusCondition describes why a cluster or a node pool has a certain status
1593 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001594 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001595 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001596 },
1597 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001598 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001599 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1600 # or
1601 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1602 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001603 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001604 }</pre>
1605</div>
1606
1607<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001608 <code class="details" id="update">update(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001609 <pre>Updates the version and/or image type for the specified node pool.
1610
1611Args:
1612 projectId: string, Deprecated. The Google Developers Console [project ID or project
1613number](https://support.google.com/cloud/answer/6158840).
1614This field has been deprecated and replaced by the name field. (required)
1615 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001616[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1617cluster resides. This field has been deprecated and replaced by the name
1618field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001619 clusterId: string, Deprecated. The name of the cluster to upgrade.
1620This field has been deprecated and replaced by the name field. (required)
1621 nodePoolId: string, Deprecated. The name of the node pool to upgrade.
1622This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001623 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001624 The object takes the form of:
1625
Bu Sun Kim65020912020-05-20 12:08:20 -07001626{ # UpdateNodePoolRequests update a node pool&#x27;s image and/or version.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001627 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
1628 # This field has been deprecated and replaced by the name field.
1629 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The desired workload metadata config for the node pool.
1630 # workloads on the node pool.
1631 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1632 # on the node pool.
1633 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001634 &quot;nodeVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the nodes to (typically an
1635 # upgrade).
1636 #
1637 # Users may specify either explicit versions offered by Kubernetes Engine or
1638 # version aliases, which have the following behavior:
1639 #
1640 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1641 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1642 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1643 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1644 # - &quot;-&quot;: picks the Kubernetes master version
Bu Sun Kim65020912020-05-20 12:08:20 -07001645 &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 -07001646 # disruption caused by an upgrade.
1647 #
1648 # maxUnavailable controls the number of nodes that can be simultaneously
1649 # unavailable.
1650 #
1651 # maxSurge controls the number of additional nodes that can be added to the
1652 # node pool temporarily for the time of the upgrade to increase the number of
1653 # available nodes.
1654 #
1655 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1656 # nodes are being upgraded at the same time).
1657 #
1658 # Note: upgrades inevitably introduce some disruption since workloads need to
1659 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1660 # this holds true. (Disruption stays within the limits of
1661 # PodDisruptionBudget, if it is configured.)
1662 #
1663 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1664 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1665 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1666 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1667 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001668 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001669 # the upgrade process. A node is considered available if its status is
1670 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001671 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1672 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001673 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001674 &quot;locations&quot;: [ # The desired list of Google Compute Engine
1675 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1676 # node pool&#x27;s nodes should be located. Changing the locations for a node pool
1677 # will result in nodes being either created or removed from the node pool,
1678 # depending on whether locations are being added or removed.
1679 &quot;A String&quot;,
1680 ],
1681 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1682 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001683 # This field has been deprecated and replaced by the name field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001684 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade.
1685 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001686 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
1687 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
1688 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1689 # cluster resides. This field has been deprecated and replaced by the name
1690 # field.
1691 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to
1692 # update. Specified in the format
1693 # `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001694 }
1695
1696 x__xgafv: string, V1 error format.
1697 Allowed values
1698 1 - v1 error format
1699 2 - v2 error format
1700
1701Returns:
1702 An object of the form:
1703
1704 { # This operation resource represents operations that may have happened or are
1705 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001706 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1707 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1708 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001709 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1710 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1711 # {name: &quot;nodes total&quot;, int_value: 32}]
1712 # or
1713 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1714 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1715 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001716 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001717 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1718 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001719 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001720 },
1721 ],
1722 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1723 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001724 &quot;stages&quot;: [ # Substages of an operation or a stage.
1725 # Object with schema name: OperationProgress
1726 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001727 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001728 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1729 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1730 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1731 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1732 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1733 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1734 { # StatusCondition describes why a cluster or a node pool has a certain status
1735 # (e.g., ERROR or DEGRADED).
1736 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1737 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1738 },
1739 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001740 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1741 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1742 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001743 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001744 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001745 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1746 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1747 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001748 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001749 { # StatusCondition describes why a cluster or a node pool has a certain status
1750 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001751 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001752 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001753 },
1754 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001755 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001756 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1757 # or
1758 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1759 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001760 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001761 }</pre>
1762</div>
1763
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001764</body></html>