blob: 41bca055ac26a1a5d38b7c9f6ce6ae285c62f37e [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="container_v1beta1.html">Kubernetes Engine API</a> . <a href="container_v1beta1.projects.html">projects</a> . <a href="container_v1beta1.projects.zones.html">zones</a> . <a href="container_v1beta1.projects.zones.clusters.html">clusters</a> . <a href="container_v1beta1.projects.zones.clusters.nodePools.html">nodePools</a></h1>
76<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 of a specific 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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Creates a node pool for a cluster.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes a node pool from a cluster.</p>
86<p class="toc_element">
87 <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>
89<p class="toc_element">
90 <code><a href="#list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Lists the node pools for a cluster.</p>
92<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>
95<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Sets the NodeManagement options for a node pool.</p>
98<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 of a specific node pool.</p>
104<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 of a specific node pool.
108
109Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700110 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700111number](https://support.google.com/cloud/answer/6158840).
112This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 zone: string, Required. Deprecated. The name of the Google Compute Engine
114[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)
117 clusterId: string, Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700119 nodePoolId: string, Required. Deprecated. The name of the node pool to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700120This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 The object takes the form of:
123
124{ # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700127 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
128 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
129 # max_node_count.
130 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700131 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
132 # has to enough quota to scale up the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700133 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700134 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
135 # [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 Kim65020912020-05-20 12:08:20 -0700138 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
139 # number](https://support.google.com/cloud/answer/6158840).
140 # This field has been deprecated and replaced by the name field.
141 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
142 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700143 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to set
144 # autoscaler settings. Specified in the format
145 # `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700146 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to upgrade.
147 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148 }
149
150 x__xgafv: string, V1 error format.
151 Allowed values
152 1 - v1 error format
153 2 - v2 error format
154
155Returns:
156 An object of the form:
157
158 { # This operation resource represents operations that may have happened or are
159 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700160 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700161 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700163 &quot;stages&quot;: [ # Substages of an operation or a stage.
164 # Object with schema name: OperationProgress
165 ],
166 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
167 # Unset for single-stage operations.
168 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
169 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;metrics&quot;: [ # Progress metric bundle, for example:
171 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
172 # {name: &quot;nodes total&quot;, int_value: 32}]
173 # or
174 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
175 # {name: &quot;progress scale&quot;, double_value: 1.0}]
176 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -0700177 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700179 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
180 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 },
182 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700184 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
185 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
186 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
187 # or
188 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
189 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700190 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
191 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
192 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700193 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
194 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700196 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
197 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
198 { # StatusCondition describes why a cluster or a node pool has a certain status
199 # (e.g., ERROR or DEGRADED).
200 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
201 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
202 },
203 ],
204 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
205 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
206 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
207 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
208 { # StatusCondition describes why a cluster or a node pool has a certain status
209 # (e.g., ERROR or DEGRADED).
210 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
211 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
212 },
213 ],
214 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700215 }</pre>
216</div>
217
218<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700219 <code class="details" id="create">create(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700220 <pre>Creates a node pool for a cluster.
221
222Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700223 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224number](https://developers.google.com/console/help/new/#projectnumber).
225This field has been deprecated and replaced by the parent field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700226 zone: string, Required. Deprecated. The name of the Google Compute Engine
227[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)
230 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700231This 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
237 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
238 # cluster resides. This field has been deprecated and replaced by the parent
239 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700240 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
241 # number](https://developers.google.com/console/help/new/#projectnumber).
242 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 &quot;nodePool&quot;: { # NodePool contains the name and configuration for a cluster&#x27;s node pool. # Required. The node pool to create.
244 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700245 # specification, under the control of the cluster master. They may have a set
246 # of Kubernetes labels applied to them, which may be used to reference them
247 # during pod scheduling. They may also be resized up or down, to accommodate
248 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700249 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700250 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
251 # disruption caused by an upgrade.
252 #
253 # maxUnavailable controls the number of nodes that can be simultaneously
254 # unavailable.
255 #
256 # maxSurge controls the number of additional nodes that can be added to the
257 # node pool temporarily for the time of the upgrade to increase the number of
258 # available nodes.
259 #
260 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
261 # nodes are being upgraded at the same time).
262 #
263 # Note: upgrades inevitably introduce some disruption since workloads need to
264 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
265 # this holds true. (Disruption stays within the limits of
266 # PodDisruptionBudget, if it is configured.)
267 #
268 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
269 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
270 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
271 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
272 # there are always at least 4 nodes available.
273 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
274 # the upgrade process. A node is considered available if its status is
275 # Ready.
276 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
277 # of the node pool during the upgrade process.
278 },
279 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
280 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
281 # associated with this node pool.
282 &quot;A String&quot;,
283 ],
284 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
285 # only if a valid configuration is present.
286 # adjust the size of the node pool to the current cluster usage.
287 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
288 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
289 # max_node_count.
290 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
291 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
292 # has to enough quota to scale up the cluster.
293 },
294 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
295 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
296 # is sufficient for this number of instances. You must also have available
297 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -0700298 &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 -0700299 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
300 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700301 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700302 # The following scopes are recommended, but not required, and by default are
303 # not included:
304 #
305 # * `https://www.googleapis.com/auth/compute` is required for mounting
306 # persistent storage on your nodes.
307 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
308 # communicating with **gcr.io**
309 # (the [Google Container
310 # Registry](https://cloud.google.com/container-registry/)).
311 #
312 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
313 # Monitoring are enabled, in which case their required scopes will be added.
314 &quot;A String&quot;,
315 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700316 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
317 #
318 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
319 # in length. These are reflected as part of a URL in the metadata server.
320 # Additionally, to avoid ambiguity, keys must not conflict with any other
321 # metadata keys for the project or be one of the reserved keys:
322 # &quot;cluster-location&quot;
323 # &quot;cluster-name&quot;
324 # &quot;cluster-uid&quot;
325 # &quot;configure-sh&quot;
326 # &quot;containerd-configure-sh&quot;
327 # &quot;enable-oslogin&quot;
328 # &quot;gci-ensure-gke-docker&quot;
329 # &quot;gci-metrics-enabled&quot;
330 # &quot;gci-update-strategy&quot;
331 # &quot;instance-template&quot;
332 # &quot;kube-env&quot;
333 # &quot;startup-script&quot;
334 # &quot;user-data&quot;
335 # &quot;disable-address-manager&quot;
336 # &quot;windows-startup-script-ps1&quot;
337 # &quot;common-psm1&quot;
338 # &quot;k8s-node-setup-psm1&quot;
339 # &quot;install-ssh-psm1&quot;
340 # &quot;user-profile-psm1&quot;
341 # &quot;serial-port-logging-enable&quot;
342 # Values are free-form strings, and only have meaning as interpreted by
343 # the image running in the instance. The only restriction placed on them is
344 # that each value&#x27;s size must be less than or equal to 32 KB.
345 #
346 # The total size of all keys and values must be less than 512 KB.
347 &quot;a_key&quot;: &quot;A String&quot;,
348 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700349 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
350 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
351 # `n1-standard-1`).
352 #
353 # If unspecified, the default machine type is
354 # `n1-standard-1`.
355 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
356 # pool to run on the specified node group. This is useful for running
357 # workloads on [sole tenant
358 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
359 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
360 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
361 #
362 # Secure Boot helps ensure that the system only runs authentic software by
363 # verifying the digital signature of all boot components, and halting the
364 # boot process if signature verification fails.
365 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
366 #
367 # Enables monitoring and attestation of the boot integrity of the instance.
368 # The attestation is performed against the integrity policy baseline. This
369 # baseline is initially derived from the implicitly trusted boot image when
370 # the instance is created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700371 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700373 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700374 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700375 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
376 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running
377 # on the nodes.
378 #
379 # The following parameters are supported.
380 #
381 # net.core.netdev_max_backlog
382 # net.core.rmem_max
383 # net.core.wmem_default
384 # net.core.wmem_max
385 # net.core.optmem_max
386 # net.core.somaxconn
387 # net.ipv4.tcp_rmem
388 # net.ipv4.tcp_wmem
389 # net.ipv4.tcp_tw_reuse
390 &quot;a_key&quot;: &quot;A String&quot;,
391 },
392 },
393 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
394 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
395 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
396 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700397 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700398 #
399 # For more information, including usage and the valid values, see:
400 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
401 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
402 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
403 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 # See
405 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
406 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700407 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700408 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700409 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700410 },
411 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700412 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
413 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;.
414 #
415 # The string must be a sequence of decimal numbers, each with optional
416 # fraction and a unit suffix, such as &quot;300ms&quot;.
417 # Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;.
418 # The value must be a positive duration.
419 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits.
420 #
421 # If this option is enabled, kubelet uses CFS quota
422 # (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
423 # enforce container CPU limits. Otherwise, CPU limits will not be enforced at
424 # all.
425 #
426 # Disable this option to mitigate CPU throttling problems while still having
427 # your pods to be in Guaranteed QoS class by specifying the CPU limits.
428 #
429 # The default value is &#x27;true&#x27; if unspecified.
430 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node.
431 # See
432 # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
433 #
434 # The following values are allowed.
435 # - &quot;none&quot;: the default, which represents the existing scheduling behavior.
436 # - &quot;static&quot;: allows pods with certain resource characteristics to be
437 # granted increased CPU affinity and exclusivity on the node.
438 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700439 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
440 # These will added in addition to any default label(s) that
441 # Kubernetes may apply to the node.
442 # In case of conflict in label keys, the applied set may differ depending on
443 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
444 # and conflicts should be avoided.
445 # For more information, including usage and the valid values, see:
446 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
447 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700448 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700449 &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;)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700450 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700451 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700452 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
453 # workloads on the node pool.
454 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
455 # workloads running on the node.
456 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
457 # on the node pool.
458 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700459 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
460 # The Customer Managed Encryption Key used to encrypt the boot disk attached
461 # to each node in the node pool. This should be of the form
462 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
463 # For more information about protecting resources with Cloud KMS Keys please
464 # see:
465 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700466 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
467 # The smallest allowed disk size is 10GB.
468 #
469 # If unspecified, the default disk size is 100GB.
470 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
471 # the specified [Zonal Compute
472 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
473 # to this node pool.
474 # is the configuration of desired reservation which instances could take
475 # capacity from.
476 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
477 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
478 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
479 # the key and specify the name of your reservation as its value.
480 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
481 &quot;A String&quot;,
482 ],
483 },
484 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
485 # https://cloud.google.com/compute/docs/instances/preemptible for more
486 # inforamtion about preemptible VM instances.
487 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
488 # scheduled on the specified or newer CPU platform. Applicable values are the
489 # friendly names of CPU platforms, such as
490 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
491 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
492 # information, read [how to specify min CPU
493 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
494 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
495 # valid sources or targets for network firewalls and are specified by
496 # the client during cluster or node pool creation. Each tag within the list
497 # must comply with RFC1035.
498 &quot;A String&quot;,
499 ],
500 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
501 # See https://cloud.google.com/compute/docs/gpus for more information about
502 # support for GPUs.
503 { # AcceleratorConfig represents a Hardware Accelerator request.
504 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
505 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
506 # [here](https://cloud.google.com/compute/docs/gpus)
507 },
508 ],
509 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
510 #
511 # The limit for this value is dependent upon the maximum number of
512 # disks available on a machine per zone. See:
513 # https://cloud.google.com/compute/docs/disks/local-ssd
514 # for more information.
515 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
516 # the latest version of it will be used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700517 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700518 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700519 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
520 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700521 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700522 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700523 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
524 # the Auto Upgrades will proceed.
525 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
526 # with the description of the upgrade.
527 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
528 # with the approximate start time for the upgrades, in
529 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
530 },
531 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700532 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
533 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
534 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
535 # simultaneously on a node in the node pool.
536 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
537 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700538 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
539 # node pool instance, if available.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700540 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
541 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
542 { # StatusCondition describes why a cluster or a node pool has a certain status
543 # (e.g., ERROR or DEGRADED).
544 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
545 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
546 },
547 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700548 &quot;locations&quot;: [ # The list of Google Compute Engine
549 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
550 # NodePool&#x27;s nodes should be located.
551 &quot;A String&quot;,
552 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700553 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700554 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
555 # This field has been deprecated and replaced by the parent field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700556 &quot;parent&quot;: &quot;A String&quot;, # The parent (project, location, cluster id) where the node pool will be
557 # created. Specified in the format
558 # `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700559 }
560
561 x__xgafv: string, V1 error format.
562 Allowed values
563 1 - v1 error format
564 2 - v2 error format
565
566Returns:
567 An object of the form:
568
569 { # This operation resource represents operations that may have happened or are
570 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700571 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700572 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -0700573 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700574 &quot;stages&quot;: [ # Substages of an operation or a stage.
575 # Object with schema name: OperationProgress
576 ],
577 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
578 # Unset for single-stage operations.
579 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
580 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700581 &quot;metrics&quot;: [ # Progress metric bundle, for example:
582 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
583 # {name: &quot;nodes total&quot;, int_value: 32}]
584 # or
585 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
586 # {name: &quot;progress scale&quot;, double_value: 1.0}]
587 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -0700588 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700589 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700590 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
591 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700592 },
593 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700594 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700595 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
596 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
597 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
598 # or
599 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
600 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700601 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
602 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
603 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700604 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
605 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700606 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700607 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
608 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
609 { # StatusCondition describes why a cluster or a node pool has a certain status
610 # (e.g., ERROR or DEGRADED).
611 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
612 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
613 },
614 ],
615 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
616 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
617 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
618 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
619 { # StatusCondition describes why a cluster or a node pool has a certain status
620 # (e.g., ERROR or DEGRADED).
621 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
622 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
623 },
624 ],
625 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700626 }</pre>
627</div>
628
629<div class="method">
630 <code class="details" id="delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
631 <pre>Deletes a node pool from a cluster.
632
633Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700634 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700635number](https://developers.google.com/console/help/new/#projectnumber).
636This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700637 zone: string, Required. Deprecated. The name of the Google Compute Engine
638[zone](https://cloud.google.com/compute/docs/zones#available) in which the
639cluster resides. This field has been deprecated and replaced by the name
640field. (required)
641 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700642This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700643 nodePoolId: string, Required. Deprecated. The name of the node pool to delete.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700644This field has been deprecated and replaced by the name field. (required)
645 name: string, The name (project, location, cluster, node pool id) of the node pool to
646delete. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700647`projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700648 x__xgafv: string, V1 error format.
649 Allowed values
650 1 - v1 error format
651 2 - v2 error format
652
653Returns:
654 An object of the form:
655
656 { # This operation resource represents operations that may have happened or are
657 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700658 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700659 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -0700660 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700661 &quot;stages&quot;: [ # Substages of an operation or a stage.
662 # Object with schema name: OperationProgress
663 ],
664 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
665 # Unset for single-stage operations.
666 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
667 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700668 &quot;metrics&quot;: [ # Progress metric bundle, for example:
669 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
670 # {name: &quot;nodes total&quot;, int_value: 32}]
671 # or
672 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
673 # {name: &quot;progress scale&quot;, double_value: 1.0}]
674 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -0700675 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700676 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700677 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
678 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700679 },
680 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700681 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700682 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
683 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
684 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
685 # or
686 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
687 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700688 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
689 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
690 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700691 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
692 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700693 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700694 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
695 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
696 { # StatusCondition describes why a cluster or a node pool has a certain status
697 # (e.g., ERROR or DEGRADED).
698 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
699 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
700 },
701 ],
702 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
703 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
704 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
705 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
706 { # StatusCondition describes why a cluster or a node pool has a certain status
707 # (e.g., ERROR or DEGRADED).
708 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
709 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
710 },
711 ],
712 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700713 }</pre>
714</div>
715
716<div class="method">
717 <code class="details" id="get">get(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
718 <pre>Retrieves the requested node pool.
719
720Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700721 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700722number](https://developers.google.com/console/help/new/#projectnumber).
723This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700724 zone: string, Required. Deprecated. The name of the Google Compute Engine
725[zone](https://cloud.google.com/compute/docs/zones#available) in which the
726cluster resides. This field has been deprecated and replaced by the name
727field. (required)
728 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700729This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700730 nodePoolId: string, Required. Deprecated. The name of the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700731This field has been deprecated and replaced by the name field. (required)
732 name: string, The name (project, location, cluster, node pool id) of the node pool to
733get. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700734`projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700735 x__xgafv: string, V1 error format.
736 Allowed values
737 1 - v1 error format
738 2 - v2 error format
739
740Returns:
741 An object of the form:
742
Bu Sun Kim65020912020-05-20 12:08:20 -0700743 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
744 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700745 # specification, under the control of the cluster master. They may have a set
746 # of Kubernetes labels applied to them, which may be used to reference them
747 # during pod scheduling. They may also be resized up or down, to accommodate
748 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700749 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700750 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
751 # disruption caused by an upgrade.
752 #
753 # maxUnavailable controls the number of nodes that can be simultaneously
754 # unavailable.
755 #
756 # maxSurge controls the number of additional nodes that can be added to the
757 # node pool temporarily for the time of the upgrade to increase the number of
758 # available nodes.
759 #
760 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
761 # nodes are being upgraded at the same time).
762 #
763 # Note: upgrades inevitably introduce some disruption since workloads need to
764 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
765 # this holds true. (Disruption stays within the limits of
766 # PodDisruptionBudget, if it is configured.)
767 #
768 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
769 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
770 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
771 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
772 # there are always at least 4 nodes available.
773 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
774 # the upgrade process. A node is considered available if its status is
775 # Ready.
776 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
777 # of the node pool during the upgrade process.
778 },
779 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
780 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
781 # associated with this node pool.
782 &quot;A String&quot;,
783 ],
784 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
785 # only if a valid configuration is present.
786 # adjust the size of the node pool to the current cluster usage.
787 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
788 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
789 # max_node_count.
790 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
791 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
792 # has to enough quota to scale up the cluster.
793 },
794 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
795 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
796 # is sufficient for this number of instances. You must also have available
797 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -0700798 &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 -0700799 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
800 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700801 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700802 # The following scopes are recommended, but not required, and by default are
803 # not included:
804 #
805 # * `https://www.googleapis.com/auth/compute` is required for mounting
806 # persistent storage on your nodes.
807 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
808 # communicating with **gcr.io**
809 # (the [Google Container
810 # Registry](https://cloud.google.com/container-registry/)).
811 #
812 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
813 # Monitoring are enabled, in which case their required scopes will be added.
814 &quot;A String&quot;,
815 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700816 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
817 #
818 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
819 # in length. These are reflected as part of a URL in the metadata server.
820 # Additionally, to avoid ambiguity, keys must not conflict with any other
821 # metadata keys for the project or be one of the reserved keys:
822 # &quot;cluster-location&quot;
823 # &quot;cluster-name&quot;
824 # &quot;cluster-uid&quot;
825 # &quot;configure-sh&quot;
826 # &quot;containerd-configure-sh&quot;
827 # &quot;enable-oslogin&quot;
828 # &quot;gci-ensure-gke-docker&quot;
829 # &quot;gci-metrics-enabled&quot;
830 # &quot;gci-update-strategy&quot;
831 # &quot;instance-template&quot;
832 # &quot;kube-env&quot;
833 # &quot;startup-script&quot;
834 # &quot;user-data&quot;
835 # &quot;disable-address-manager&quot;
836 # &quot;windows-startup-script-ps1&quot;
837 # &quot;common-psm1&quot;
838 # &quot;k8s-node-setup-psm1&quot;
839 # &quot;install-ssh-psm1&quot;
840 # &quot;user-profile-psm1&quot;
841 # &quot;serial-port-logging-enable&quot;
842 # Values are free-form strings, and only have meaning as interpreted by
843 # the image running in the instance. The only restriction placed on them is
844 # that each value&#x27;s size must be less than or equal to 32 KB.
845 #
846 # The total size of all keys and values must be less than 512 KB.
847 &quot;a_key&quot;: &quot;A String&quot;,
848 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700849 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
850 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
851 # `n1-standard-1`).
852 #
853 # If unspecified, the default machine type is
854 # `n1-standard-1`.
855 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
856 # pool to run on the specified node group. This is useful for running
857 # workloads on [sole tenant
858 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
859 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
860 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
861 #
862 # Secure Boot helps ensure that the system only runs authentic software by
863 # verifying the digital signature of all boot components, and halting the
864 # boot process if signature verification fails.
865 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
866 #
867 # Enables monitoring and attestation of the boot integrity of the instance.
868 # The attestation is performed against the integrity policy baseline. This
869 # baseline is initially derived from the implicitly trusted boot image when
870 # the instance is created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700871 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700872 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700873 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700874 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700875 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
876 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running
877 # on the nodes.
878 #
879 # The following parameters are supported.
880 #
881 # net.core.netdev_max_backlog
882 # net.core.rmem_max
883 # net.core.wmem_default
884 # net.core.wmem_max
885 # net.core.optmem_max
886 # net.core.somaxconn
887 # net.ipv4.tcp_rmem
888 # net.ipv4.tcp_wmem
889 # net.ipv4.tcp_tw_reuse
890 &quot;a_key&quot;: &quot;A String&quot;,
891 },
892 },
893 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
894 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
895 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
896 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700897 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700898 #
899 # For more information, including usage and the valid values, see:
900 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
901 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
902 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
903 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 # See
905 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
906 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700907 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700908 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700909 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700910 },
911 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700912 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
913 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;.
914 #
915 # The string must be a sequence of decimal numbers, each with optional
916 # fraction and a unit suffix, such as &quot;300ms&quot;.
917 # Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;.
918 # The value must be a positive duration.
919 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits.
920 #
921 # If this option is enabled, kubelet uses CFS quota
922 # (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
923 # enforce container CPU limits. Otherwise, CPU limits will not be enforced at
924 # all.
925 #
926 # Disable this option to mitigate CPU throttling problems while still having
927 # your pods to be in Guaranteed QoS class by specifying the CPU limits.
928 #
929 # The default value is &#x27;true&#x27; if unspecified.
930 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node.
931 # See
932 # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
933 #
934 # The following values are allowed.
935 # - &quot;none&quot;: the default, which represents the existing scheduling behavior.
936 # - &quot;static&quot;: allows pods with certain resource characteristics to be
937 # granted increased CPU affinity and exclusivity on the node.
938 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700939 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
940 # These will added in addition to any default label(s) that
941 # Kubernetes may apply to the node.
942 # In case of conflict in label keys, the applied set may differ depending on
943 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
944 # and conflicts should be avoided.
945 # For more information, including usage and the valid values, see:
946 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
947 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700948 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700949 &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;)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700950 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700951 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700952 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
953 # workloads on the node pool.
954 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
955 # workloads running on the node.
956 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
957 # on the node pool.
958 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700959 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
960 # The Customer Managed Encryption Key used to encrypt the boot disk attached
961 # to each node in the node pool. This should be of the form
962 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
963 # For more information about protecting resources with Cloud KMS Keys please
964 # see:
965 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700966 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
967 # The smallest allowed disk size is 10GB.
968 #
969 # If unspecified, the default disk size is 100GB.
970 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
971 # the specified [Zonal Compute
972 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
973 # to this node pool.
974 # is the configuration of desired reservation which instances could take
975 # capacity from.
976 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
977 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
978 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
979 # the key and specify the name of your reservation as its value.
980 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
981 &quot;A String&quot;,
982 ],
983 },
984 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
985 # https://cloud.google.com/compute/docs/instances/preemptible for more
986 # inforamtion about preemptible VM instances.
987 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
988 # scheduled on the specified or newer CPU platform. Applicable values are the
989 # friendly names of CPU platforms, such as
990 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
991 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
992 # information, read [how to specify min CPU
993 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
994 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
995 # valid sources or targets for network firewalls and are specified by
996 # the client during cluster or node pool creation. Each tag within the list
997 # must comply with RFC1035.
998 &quot;A String&quot;,
999 ],
1000 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1001 # See https://cloud.google.com/compute/docs/gpus for more information about
1002 # support for GPUs.
1003 { # AcceleratorConfig represents a Hardware Accelerator request.
1004 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1005 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1006 # [here](https://cloud.google.com/compute/docs/gpus)
1007 },
1008 ],
1009 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
1010 #
1011 # The limit for this value is dependent upon the maximum number of
1012 # disks available on a machine per zone. See:
1013 # https://cloud.google.com/compute/docs/disks/local-ssd
1014 # for more information.
1015 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1016 # the latest version of it will be used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001017 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001018 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001019 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1020 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001021 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001022 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -07001023 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1024 # the Auto Upgrades will proceed.
1025 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1026 # with the description of the upgrade.
1027 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1028 # with the approximate start time for the upgrades, in
1029 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1030 },
1031 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001032 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1033 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1034 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1035 # simultaneously on a node in the node pool.
1036 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1037 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001038 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1039 # node pool instance, if available.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001040 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1041 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1042 { # StatusCondition describes why a cluster or a node pool has a certain status
1043 # (e.g., ERROR or DEGRADED).
1044 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1045 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1046 },
1047 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001048 &quot;locations&quot;: [ # The list of Google Compute Engine
1049 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1050 # NodePool&#x27;s nodes should be located.
1051 &quot;A String&quot;,
1052 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001053 }</pre>
1054</div>
1055
1056<div class="method">
1057 <code class="details" id="list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</code>
1058 <pre>Lists the node pools for a cluster.
1059
1060Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001061 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001062number](https://developers.google.com/console/help/new/#projectnumber).
1063This field has been deprecated and replaced by the parent field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001064 zone: string, Required. Deprecated. The name of the Google Compute Engine
1065[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1066cluster resides. This field has been deprecated and replaced by the parent
1067field. (required)
1068 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001069This field has been deprecated and replaced by the parent field. (required)
1070 parent: string, The parent (project, location, cluster id) where the node pools will be
Bu Sun Kim65020912020-05-20 12:08:20 -07001071listed. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001072 x__xgafv: string, V1 error format.
1073 Allowed values
1074 1 - v1 error format
1075 2 - v2 error format
1076
1077Returns:
1078 An object of the form:
1079
1080 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -07001081 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
1082 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
1083 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001084 # specification, under the control of the cluster master. They may have a set
1085 # of Kubernetes labels applied to them, which may be used to reference them
1086 # during pod scheduling. They may also be resized up or down, to accommodate
1087 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -07001088 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001089 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
1090 # disruption caused by an upgrade.
1091 #
1092 # maxUnavailable controls the number of nodes that can be simultaneously
1093 # unavailable.
1094 #
1095 # maxSurge controls the number of additional nodes that can be added to the
1096 # node pool temporarily for the time of the upgrade to increase the number of
1097 # available nodes.
1098 #
1099 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1100 # nodes are being upgraded at the same time).
1101 #
1102 # Note: upgrades inevitably introduce some disruption since workloads need to
1103 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1104 # this holds true. (Disruption stays within the limits of
1105 # PodDisruptionBudget, if it is configured.)
1106 #
1107 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1108 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1109 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1110 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1111 # there are always at least 4 nodes available.
1112 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
1113 # the upgrade process. A node is considered available if its status is
1114 # Ready.
1115 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1116 # of the node pool during the upgrade process.
1117 },
1118 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
1119 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1120 # associated with this node pool.
1121 &quot;A String&quot;,
1122 ],
1123 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
1124 # only if a valid configuration is present.
1125 # adjust the size of the node pool to the current cluster usage.
1126 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1127 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1128 # max_node_count.
1129 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1130 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1131 # has to enough quota to scale up the cluster.
1132 },
1133 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
1134 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
1135 # is sufficient for this number of instances. You must also have available
1136 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -07001137 &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 -07001138 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1139 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001140 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001141 # The following scopes are recommended, but not required, and by default are
1142 # not included:
1143 #
1144 # * `https://www.googleapis.com/auth/compute` is required for mounting
1145 # persistent storage on your nodes.
1146 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1147 # communicating with **gcr.io**
1148 # (the [Google Container
1149 # Registry](https://cloud.google.com/container-registry/)).
1150 #
1151 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1152 # Monitoring are enabled, in which case their required scopes will be added.
1153 &quot;A String&quot;,
1154 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001155 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1156 #
1157 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1158 # in length. These are reflected as part of a URL in the metadata server.
1159 # Additionally, to avoid ambiguity, keys must not conflict with any other
1160 # metadata keys for the project or be one of the reserved keys:
1161 # &quot;cluster-location&quot;
1162 # &quot;cluster-name&quot;
1163 # &quot;cluster-uid&quot;
1164 # &quot;configure-sh&quot;
1165 # &quot;containerd-configure-sh&quot;
1166 # &quot;enable-oslogin&quot;
1167 # &quot;gci-ensure-gke-docker&quot;
1168 # &quot;gci-metrics-enabled&quot;
1169 # &quot;gci-update-strategy&quot;
1170 # &quot;instance-template&quot;
1171 # &quot;kube-env&quot;
1172 # &quot;startup-script&quot;
1173 # &quot;user-data&quot;
1174 # &quot;disable-address-manager&quot;
1175 # &quot;windows-startup-script-ps1&quot;
1176 # &quot;common-psm1&quot;
1177 # &quot;k8s-node-setup-psm1&quot;
1178 # &quot;install-ssh-psm1&quot;
1179 # &quot;user-profile-psm1&quot;
1180 # &quot;serial-port-logging-enable&quot;
1181 # Values are free-form strings, and only have meaning as interpreted by
1182 # the image running in the instance. The only restriction placed on them is
1183 # that each value&#x27;s size must be less than or equal to 32 KB.
1184 #
1185 # The total size of all keys and values must be less than 512 KB.
1186 &quot;a_key&quot;: &quot;A String&quot;,
1187 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001188 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1189 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1190 # `n1-standard-1`).
1191 #
1192 # If unspecified, the default machine type is
1193 # `n1-standard-1`.
1194 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
1195 # pool to run on the specified node group. This is useful for running
1196 # workloads on [sole tenant
1197 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
1198 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1199 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1200 #
1201 # Secure Boot helps ensure that the system only runs authentic software by
1202 # verifying the digital signature of all boot components, and halting the
1203 # boot process if signature verification fails.
1204 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1205 #
1206 # Enables monitoring and attestation of the boot integrity of the instance.
1207 # The attestation is performed against the integrity policy baseline. This
1208 # baseline is initially derived from the implicitly trusted boot image when
1209 # the instance is created.
Bu Sun Kim65020912020-05-20 12:08:20 -07001210 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001211 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07001212 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07001213 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001214 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
1215 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running
1216 # on the nodes.
1217 #
1218 # The following parameters are supported.
1219 #
1220 # net.core.netdev_max_backlog
1221 # net.core.rmem_max
1222 # net.core.wmem_default
1223 # net.core.wmem_max
1224 # net.core.optmem_max
1225 # net.core.somaxconn
1226 # net.ipv4.tcp_rmem
1227 # net.ipv4.tcp_wmem
1228 # net.ipv4.tcp_tw_reuse
1229 &quot;a_key&quot;: &quot;A String&quot;,
1230 },
1231 },
1232 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1233 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1234 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
1235 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001236 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001237 #
1238 # For more information, including usage and the valid values, see:
1239 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1240 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1241 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1242 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001243 # See
1244 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1245 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07001246 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001247 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001248 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001249 },
1250 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001251 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
1252 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;.
1253 #
1254 # The string must be a sequence of decimal numbers, each with optional
1255 # fraction and a unit suffix, such as &quot;300ms&quot;.
1256 # Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;.
1257 # The value must be a positive duration.
1258 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits.
1259 #
1260 # If this option is enabled, kubelet uses CFS quota
1261 # (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
1262 # enforce container CPU limits. Otherwise, CPU limits will not be enforced at
1263 # all.
1264 #
1265 # Disable this option to mitigate CPU throttling problems while still having
1266 # your pods to be in Guaranteed QoS class by specifying the CPU limits.
1267 #
1268 # The default value is &#x27;true&#x27; if unspecified.
1269 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node.
1270 # See
1271 # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
1272 #
1273 # The following values are allowed.
1274 # - &quot;none&quot;: the default, which represents the existing scheduling behavior.
1275 # - &quot;static&quot;: allows pods with certain resource characteristics to be
1276 # granted increased CPU affinity and exclusivity on the node.
1277 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001278 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1279 # These will added in addition to any default label(s) that
1280 # Kubernetes may apply to the node.
1281 # In case of conflict in label keys, the applied set may differ depending on
1282 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1283 # and conflicts should be avoided.
1284 # For more information, including usage and the valid values, see:
1285 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1286 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001287 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001288 &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;)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001289 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001290 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001291 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1292 # workloads on the node pool.
1293 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
1294 # workloads running on the node.
1295 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1296 # on the node pool.
1297 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001298 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
1299 # The Customer Managed Encryption Key used to encrypt the boot disk attached
1300 # to each node in the node pool. This should be of the form
1301 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
1302 # For more information about protecting resources with Cloud KMS Keys please
1303 # see:
1304 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001305 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1306 # The smallest allowed disk size is 10GB.
1307 #
1308 # If unspecified, the default disk size is 100GB.
1309 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1310 # the specified [Zonal Compute
1311 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1312 # to this node pool.
1313 # is the configuration of desired reservation which instances could take
1314 # capacity from.
1315 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1316 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1317 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1318 # the key and specify the name of your reservation as its value.
1319 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1320 &quot;A String&quot;,
1321 ],
1322 },
1323 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1324 # https://cloud.google.com/compute/docs/instances/preemptible for more
1325 # inforamtion about preemptible VM instances.
1326 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1327 # scheduled on the specified or newer CPU platform. Applicable values are the
1328 # friendly names of CPU platforms, such as
1329 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1330 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1331 # information, read [how to specify min CPU
1332 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1333 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
1334 # valid sources or targets for network firewalls and are specified by
1335 # the client during cluster or node pool creation. Each tag within the list
1336 # must comply with RFC1035.
1337 &quot;A String&quot;,
1338 ],
1339 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1340 # See https://cloud.google.com/compute/docs/gpus for more information about
1341 # support for GPUs.
1342 { # AcceleratorConfig represents a Hardware Accelerator request.
1343 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1344 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1345 # [here](https://cloud.google.com/compute/docs/gpus)
1346 },
1347 ],
1348 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
1349 #
1350 # The limit for this value is dependent upon the maximum number of
1351 # disks available on a machine per zone. See:
1352 # https://cloud.google.com/compute/docs/disks/local-ssd
1353 # for more information.
1354 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1355 # the latest version of it will be used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001356 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001357 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001358 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1359 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001360 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001361 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -07001362 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1363 # the Auto Upgrades will proceed.
1364 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1365 # with the description of the upgrade.
1366 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1367 # with the approximate start time for the upgrades, in
1368 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1369 },
1370 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001371 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1372 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1373 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1374 # simultaneously on a node in the node pool.
1375 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1376 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001377 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1378 # node pool instance, if available.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001379 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1380 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1381 { # StatusCondition describes why a cluster or a node pool has a certain status
1382 # (e.g., ERROR or DEGRADED).
1383 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1384 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1385 },
1386 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001387 &quot;locations&quot;: [ # The list of Google Compute Engine
1388 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1389 # NodePool&#x27;s nodes should be located.
1390 &quot;A String&quot;,
1391 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001392 },
1393 ],
1394 }</pre>
1395</div>
1396
1397<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001398 <code class="details" id="rollback">rollback(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001399 <pre>Rolls back a previously Aborted or Failed NodePool upgrade.
1400This makes no changes if the last upgrade successfully completed.
1401
1402Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001403 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001404number](https://support.google.com/cloud/answer/6158840).
1405This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001406 zone: string, Required. Deprecated. The name of the Google Compute Engine
1407[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1408cluster resides. This field has been deprecated and replaced by the name
1409field. (required)
1410 clusterId: string, Required. Deprecated. The name of the cluster to rollback.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001411This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001412 nodePoolId: string, Required. Deprecated. The name of the node pool to rollback.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001413This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001414 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001415 The object takes the form of:
1416
1417{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
1418 # NodePool upgrade. This will be an no-op if the last upgrade successfully
1419 # completed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001420 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001421 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1422 # cluster resides. This field has been deprecated and replaced by the name
1423 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001424 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node poll to
1425 # rollback upgrade.
1426 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1427 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to rollback.
1428 # This field has been deprecated and replaced by the name field.
1429 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
1430 # number](https://support.google.com/cloud/answer/6158840).
1431 # This field has been deprecated and replaced by the name field.
1432 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to rollback.
1433 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001434 }
1435
1436 x__xgafv: string, V1 error format.
1437 Allowed values
1438 1 - v1 error format
1439 2 - v2 error format
1440
1441Returns:
1442 An object of the form:
1443
1444 { # This operation resource represents operations that may have happened or are
1445 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001446 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001447 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07001448 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001449 &quot;stages&quot;: [ # Substages of an operation or a stage.
1450 # Object with schema name: OperationProgress
1451 ],
1452 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1453 # Unset for single-stage operations.
1454 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1455 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001456 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1457 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1458 # {name: &quot;nodes total&quot;, int_value: 32}]
1459 # or
1460 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1461 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1462 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07001463 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001464 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001465 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1466 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001467 },
1468 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001469 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001470 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1471 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1472 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1473 # or
1474 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1475 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001476 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1477 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1478 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001479 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1480 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001481 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001482 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1483 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1484 { # StatusCondition describes why a cluster or a node pool has a certain status
1485 # (e.g., ERROR or DEGRADED).
1486 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1487 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1488 },
1489 ],
1490 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1491 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1492 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1493 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
1494 { # StatusCondition describes why a cluster or a node pool has a certain status
1495 # (e.g., ERROR or DEGRADED).
1496 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1497 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1498 },
1499 ],
1500 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001501 }</pre>
1502</div>
1503
1504<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001505 <code class="details" id="setManagement">setManagement(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001506 <pre>Sets the NodeManagement options for a node pool.
1507
1508Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001509 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001510number](https://support.google.com/cloud/answer/6158840).
1511This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001512 zone: string, Required. Deprecated. The name of the Google Compute Engine
1513[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1514cluster resides. This field has been deprecated and replaced by the name
1515field. (required)
1516 clusterId: string, Required. Deprecated. The name of the cluster to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001517This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001518 nodePoolId: string, Required. Deprecated. The name of the node pool to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001519This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001520 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001521 The object takes the form of:
1522
1523{ # SetNodePoolManagementRequest sets the node management properties of a node
1524 # pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001525 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001526 # number](https://support.google.com/cloud/answer/6158840).
1527 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001528 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Required. NodeManagement configuration for the node pool.
1529 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001530 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001531 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -07001532 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1533 # the Auto Upgrades will proceed.
1534 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1535 # with the description of the upgrade.
1536 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1537 # with the approximate start time for the upgrades, in
1538 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1539 },
1540 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001541 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
1542 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1543 # cluster resides. This field has been deprecated and replaced by the name
1544 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001545 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
1546 # This field has been deprecated and replaced by the name field.
1547 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1548 # management properties. Specified in the format
1549 # `projects/*/locations/*/clusters/*/nodePools/*`.
1550 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update.
1551 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001552 }
1553
1554 x__xgafv: string, V1 error format.
1555 Allowed values
1556 1 - v1 error format
1557 2 - v2 error format
1558
1559Returns:
1560 An object of the form:
1561
1562 { # This operation resource represents operations that may have happened or are
1563 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001564 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001565 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07001566 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
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 ],
1570 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1571 # Unset for single-stage operations.
1572 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1573 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001574 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1575 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1576 # {name: &quot;nodes total&quot;, int_value: 32}]
1577 # or
1578 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1579 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1580 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07001581 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001582 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001583 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1584 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001585 },
1586 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001587 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001588 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1589 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1590 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1591 # or
1592 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1593 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001594 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1595 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1596 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001597 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1598 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001599 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001600 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1601 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1602 { # StatusCondition describes why a cluster or a node pool has a certain status
1603 # (e.g., ERROR or DEGRADED).
1604 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1605 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1606 },
1607 ],
1608 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1609 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1610 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1611 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
1612 { # StatusCondition describes why a cluster or a node pool has a certain status
1613 # (e.g., ERROR or DEGRADED).
1614 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1615 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1616 },
1617 ],
1618 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001619 }</pre>
1620</div>
1621
1622<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001623 <code class="details" id="setSize">setSize(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001624 <pre>Sets the size for a specific node pool.
1625
1626Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001627 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001628number](https://support.google.com/cloud/answer/6158840).
1629This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001630 zone: string, Required. Deprecated. The name of the Google Compute Engine
1631[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1632cluster resides. This field has been deprecated and replaced by the name
1633field. (required)
1634 clusterId: string, Required. Deprecated. The name of the cluster to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001635This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001636 nodePoolId: string, Required. Deprecated. The name of the node pool to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001637This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001638 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001639 The object takes the form of:
1640
1641{ # SetNodePoolSizeRequest sets the size a node
1642 # pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001643 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1644 # size.
1645 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1646 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001647 # This field has been deprecated and replaced by the name field.
1648 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
1649 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001650 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
1651 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001652 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001653 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001654 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1655 # cluster resides. This field has been deprecated and replaced by the name
1656 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001657 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001658 }
1659
1660 x__xgafv: string, V1 error format.
1661 Allowed values
1662 1 - v1 error format
1663 2 - v2 error format
1664
1665Returns:
1666 An object of the form:
1667
1668 { # This operation resource represents operations that may have happened or are
1669 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001670 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001671 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07001672 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001673 &quot;stages&quot;: [ # Substages of an operation or a stage.
1674 # Object with schema name: OperationProgress
1675 ],
1676 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1677 # Unset for single-stage operations.
1678 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1679 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001680 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1681 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1682 # {name: &quot;nodes total&quot;, int_value: 32}]
1683 # or
1684 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1685 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1686 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07001687 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001688 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001689 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1690 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001691 },
1692 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001693 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001694 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1695 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1696 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1697 # or
1698 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1699 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001700 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1701 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1702 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001703 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1704 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001705 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001706 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1707 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1708 { # StatusCondition describes why a cluster or a node pool has a certain status
1709 # (e.g., ERROR or DEGRADED).
1710 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1711 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1712 },
1713 ],
1714 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1715 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1716 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1717 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
1718 { # StatusCondition describes why a cluster or a node pool has a certain status
1719 # (e.g., ERROR or DEGRADED).
1720 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1721 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1722 },
1723 ],
1724 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001725 }</pre>
1726</div>
1727
1728<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001729 <code class="details" id="update">update(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001730 <pre>Updates the version and/or image type of a specific node pool.
1731
1732Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001733 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001734number](https://support.google.com/cloud/answer/6158840).
1735This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001736 zone: string, Required. Deprecated. The name of the Google Compute Engine
1737[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1738cluster resides. This field has been deprecated and replaced by the name
1739field. (required)
1740 clusterId: string, Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001741This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001742 nodePoolId: string, Required. Deprecated. The name of the node pool to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001743This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001744 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001745 The object takes the form of:
1746
1747{ # SetNodePoolVersionRequest updates the version of a node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001748 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001749 # number](https://support.google.com/cloud/answer/6158840).
1750 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001751 &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 -07001752 # disruption caused by an upgrade.
1753 #
1754 # maxUnavailable controls the number of nodes that can be simultaneously
1755 # unavailable.
1756 #
1757 # maxSurge controls the number of additional nodes that can be added to the
1758 # node pool temporarily for the time of the upgrade to increase the number of
1759 # available nodes.
1760 #
1761 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1762 # nodes are being upgraded at the same time).
1763 #
1764 # Note: upgrades inevitably introduce some disruption since workloads need to
1765 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1766 # this holds true. (Disruption stays within the limits of
1767 # PodDisruptionBudget, if it is configured.)
1768 #
1769 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1770 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1771 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1772 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1773 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001774 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001775 # the upgrade process. A node is considered available if its status is
1776 # Ready.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001777 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1778 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001779 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001780 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to upgrade.
1781 # This field has been deprecated and replaced by the name field.
1782 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
1783 # This field has been deprecated and replaced by the name field.
1784 &quot;nodeVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the nodes to (typically an
1785 # upgrade).
1786 #
1787 # Users may specify either explicit versions offered by Kubernetes Engine or
1788 # version aliases, which have the following behavior:
1789 #
1790 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1791 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1792 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1793 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1794 # - &quot;-&quot;: picks the Kubernetes master version
1795 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
1796 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1797 # cluster resides. This field has been deprecated and replaced by the name
1798 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001799 &quot;locations&quot;: [ # The desired list of Google Compute Engine
1800 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1801 # node pool&#x27;s nodes should be located. Changing the locations for a node pool
1802 # will result in nodes being either created or removed from the node pool,
1803 # depending on whether locations are being added or removed.
1804 &quot;A String&quot;,
1805 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001806 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
1807 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;.
1808 #
1809 # The string must be a sequence of decimal numbers, each with optional
1810 # fraction and a unit suffix, such as &quot;300ms&quot;.
1811 # Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;.
1812 # The value must be a positive duration.
1813 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits.
1814 #
1815 # If this option is enabled, kubelet uses CFS quota
1816 # (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
1817 # enforce container CPU limits. Otherwise, CPU limits will not be enforced at
1818 # all.
1819 #
1820 # Disable this option to mitigate CPU throttling problems while still having
1821 # your pods to be in Guaranteed QoS class by specifying the CPU limits.
1822 #
1823 # The default value is &#x27;true&#x27; if unspecified.
1824 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node.
1825 # See
1826 # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
1827 #
1828 # The following values are allowed.
1829 # - &quot;none&quot;: the default, which represents the existing scheduling behavior.
1830 # - &quot;static&quot;: allows pods with certain resource characteristics to be
1831 # granted increased CPU affinity and exclusivity on the node.
1832 },
1833 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
1834 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The desired workload metadata config for the node pool.
1835 # workloads on the node pool.
1836 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
1837 # workloads running on the node.
1838 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1839 # on the node pool.
1840 },
1841 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
1842 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running
1843 # on the nodes.
1844 #
1845 # The following parameters are supported.
1846 #
1847 # net.core.netdev_max_backlog
1848 # net.core.rmem_max
1849 # net.core.wmem_default
1850 # net.core.wmem_max
1851 # net.core.optmem_max
1852 # net.core.somaxconn
1853 # net.ipv4.tcp_rmem
1854 # net.ipv4.tcp_wmem
1855 # net.ipv4.tcp_tw_reuse
1856 &quot;a_key&quot;: &quot;A String&quot;,
1857 },
1858 },
1859 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to
1860 # update. Specified in the format
1861 # `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001862 }
1863
1864 x__xgafv: string, V1 error format.
1865 Allowed values
1866 1 - v1 error format
1867 2 - v2 error format
1868
1869Returns:
1870 An object of the form:
1871
1872 { # This operation resource represents operations that may have happened or are
1873 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001874 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001875 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07001876 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001877 &quot;stages&quot;: [ # Substages of an operation or a stage.
1878 # Object with schema name: OperationProgress
1879 ],
1880 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1881 # Unset for single-stage operations.
1882 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1883 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001884 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1885 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1886 # {name: &quot;nodes total&quot;, int_value: 32}]
1887 # or
1888 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1889 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1890 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07001891 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001892 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001893 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1894 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001895 },
1896 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001897 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001898 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1899 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1900 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1901 # or
1902 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1903 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001904 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1905 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1906 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001907 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1908 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001909 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001910 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1911 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1912 { # StatusCondition describes why a cluster or a node pool has a certain status
1913 # (e.g., ERROR or DEGRADED).
1914 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1915 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1916 },
1917 ],
1918 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1919 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1920 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1921 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
1922 { # StatusCondition describes why a cluster or a node pool has a certain status
1923 # (e.g., ERROR or DEGRADED).
1924 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1925 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1926 },
1927 ],
1928 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001929 }</pre>
1930</div>
1931
1932</body></html>