blob: 9b0a2b484916c6ce6c49f0d1c8ad165f462cbbff [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_v1.html">Kubernetes Engine API</a> . <a href="container_v1.projects.html">projects</a> . <a href="container_v1.projects.locations.html">locations</a> . <a href="container_v1.projects.locations.clusters.html">clusters</a> . <a href="container_v1.projects.locations.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="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates a node pool for a cluster.</p>
80<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#delete">delete(name, projectId=None, zone=None, clusterId=None, nodePoolId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Deletes a node pool from a cluster.</p>
83<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#get">get(name, clusterId=None, nodePoolId=None, projectId=None, zone=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Retrieves the requested node pool.</p>
86<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070087 <code><a href="#list">list(parent, projectId=None, zone=None, clusterId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Lists the node pools for a cluster.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#rollback">rollback(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Rolls back a previously Aborted or Failed NodePool upgrade.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#setAutoscaling">setAutoscaling(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Sets the autoscaling settings for the specified node pool.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#setManagement">setManagement(name, 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(name, 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(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Updates the version and/or image type for the specified node pool.</p>
104<h3>Method Details</h3>
105<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107 <pre>Creates a node pool for a cluster.
108
109Args:
110 parent: string, The parent (project, location, cluster id) where the node pool will be
111created. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700112`projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 The object takes the form of:
115
116{ # CreateNodePoolRequest creates a node pool for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118 # number](https://developers.google.com/console/help/new/#projectnumber).
119 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
121 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
122 # cluster resides. This field has been deprecated and replaced by the parent
123 # field.
124 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;nodePool&quot;: { # NodePool contains the name and configuration for a cluster&#x27;s node pool. # Required. The node pool to create.
127 # 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 -0700128 # specification, under the control of the cluster master. They may have a set
129 # of Kubernetes labels applied to them, which may be used to reference them
130 # during pod scheduling. They may also be resized up or down, to accommodate
131 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
133 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
134 # is sufficient for this number of instances. You must also have available
135 # firewall and routes quota.
136 &quot;locations&quot;: [ # The list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700137 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -0700138 # NodePool&#x27;s nodes should be located.
139 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700140 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700141 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
142 &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 -0700143 # disruption caused by an upgrade.
144 #
145 # maxUnavailable controls the number of nodes that can be simultaneously
146 # unavailable.
147 #
148 # maxSurge controls the number of additional nodes that can be added to the
149 # node pool temporarily for the time of the upgrade to increase the number of
150 # available nodes.
151 #
152 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
153 # nodes are being upgraded at the same time).
154 #
155 # Note: upgrades inevitably introduce some disruption since workloads need to
156 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
157 # this holds true. (Disruption stays within the limits of
158 # PodDisruptionBudget, if it is configured.)
159 #
160 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
161 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
162 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
163 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
164 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700166 # the upgrade process. A node is considered available if its status is
167 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
169 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700170 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700171 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
172 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
173 # associated with this node pool.
174 &quot;A String&quot;,
175 ],
176 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
177 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
178 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
179 { # StatusCondition describes why a cluster or a node pool has a certain status
180 # (e.g., ERROR or DEGRADED).
181 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
182 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700183 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 ],
185 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
186 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
187 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700188 # valid sources or targets for network firewalls and are specified by
189 # the client during cluster or node pool creation. Each tag within the list
190 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700192 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700193 &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 -0700194 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 # Account is specified, the &quot;default&quot; service account is used.
196 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
197 # the latest version of it will be used.
198 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
199 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700200 #
201 # The following scopes are recommended, but not required, and by default are
202 # not included:
203 #
204 # * `https://www.googleapis.com/auth/compute` is required for mounting
205 # persistent storage on your nodes.
206 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
207 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700208 # (the [Google Container
209 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700210 #
211 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
212 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700214 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700216 #
217 # For more information, including usage and the valid values, see:
218 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
219 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
220 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
221 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700222 # See
223 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
224 # for more information, including usage and the valid values.
225 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
226 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
227 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700228 },
229 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
231 # These will added in addition to any default label(s) that
232 # Kubernetes may apply to the node.
233 # In case of conflict in label keys, the applied set may differ depending on
234 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
235 # and conflicts should be avoided.
236 # For more information, including usage and the valid values, see:
237 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
238 &quot;a_key&quot;: &quot;A String&quot;,
239 },
240 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
241 # The smallest allowed disk size is 10GB.
242 #
243 # If unspecified, the default disk size is 100GB.
244 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
245 # workloads on the node pool.
246 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
247 # on the node pool.
248 },
249 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
250 # See https://cloud.google.com/compute/docs/gpus for more information about
251 # support for GPUs.
252 { # AcceleratorConfig represents a Hardware Accelerator request.
253 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
254 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
255 # [here](https://cloud.google.com/compute/docs/gpus)
256 },
257 ],
258 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
259 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
260 # `n1-standard-1`).
261 #
262 # If unspecified, the default machine type is
263 # `n1-standard-1`.
264 &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;)
265 #
266 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
267 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
268 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
269 #
270 # Secure Boot helps ensure that the system only runs authentic software by
271 # verifying the digital signature of all boot components, and halting the
272 # boot process if signature verification fails.
273 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
274 #
275 # Enables monitoring and attestation of the boot integrity of the instance.
276 # The attestation is performed against the integrity policy baseline. This
277 # baseline is initially derived from the implicitly trusted boot image when
278 # the instance is created.
279 },
280 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
281 # scheduled on the specified or newer CPU platform. Applicable values are the
282 # friendly names of CPU platforms, such as
283 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
284 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
285 # information, read [how to specify min CPU
286 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
287 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
288 # https://cloud.google.com/compute/docs/instances/preemptible for more
289 # information about preemptible VM instances.
290 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700291 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700292 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700293 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -0700294 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700295 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
297 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700298 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700299 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
300 #
301 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
302 # in length. These are reflected as part of a URL in the metadata server.
303 # Additionally, to avoid ambiguity, keys must not conflict with any other
304 # metadata keys for the project or be one of the reserved keys:
305 # &quot;cluster-location&quot;
306 # &quot;cluster-name&quot;
307 # &quot;cluster-uid&quot;
308 # &quot;configure-sh&quot;
309 # &quot;containerd-configure-sh&quot;
310 # &quot;enable-os-login&quot;
311 # &quot;gci-ensure-gke-docker&quot;
312 # &quot;gci-metrics-enabled&quot;
313 # &quot;gci-update-strategy&quot;
314 # &quot;instance-template&quot;
315 # &quot;kube-env&quot;
316 # &quot;startup-script&quot;
317 # &quot;user-data&quot;
318 # &quot;disable-address-manager&quot;
319 # &quot;windows-startup-script-ps1&quot;
320 # &quot;common-psm1&quot;
321 # &quot;k8s-node-setup-psm1&quot;
322 # &quot;install-ssh-psm1&quot;
323 # &quot;user-profile-psm1&quot;
324 # &quot;serial-port-logging-enable&quot;
325 #
326 # Values are free-form strings, and only have meaning as interpreted by
327 # the image running in the instance. The only restriction placed on them is
328 # that each value&#x27;s size must be less than or equal to 32 KB.
329 #
330 # The total size of all keys and values must be less than 512 KB.
331 &quot;a_key&quot;: &quot;A String&quot;,
332 },
333 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
334 # the specified [Zonal Compute
335 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
336 # to this node pool.
337 # is the configuration of desired reservation which instances could take
338 # capacity from.
339 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
340 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
341 # the key and specify the name of your reservation as its value.
342 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
343 &quot;A String&quot;,
344 ],
345 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
346 },
347 },
348 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
349 # simultaneously on a node in the node pool.
350 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
351 },
352 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
353 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
354 # node pool.
355 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
356 # the Auto Upgrades will proceed.
357 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
358 # with the description of the upgrade.
359 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
360 # with the approximate start time for the upgrades, in
361 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
362 },
363 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
364 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
365 # up to date with the latest release version of Kubernetes.
366 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
367 # pool. If enabled, the nodes in this node pool will be monitored and, if
368 # they fail health checks too many times, an automatic repair action will be
369 # triggered.
370 },
371 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
Dan O'Mearadd494642020-05-01 07:42:23 -0700372 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700373 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
374 # only if a valid configuration is present.
375 # adjust the size of the node pool to the current cluster usage.
376 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
377 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
378 # has to enough quota to scale up the cluster.
379 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
380 # max_node_count.
381 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
382 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700383 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700384 &quot;parent&quot;: &quot;A String&quot;, # The parent (project, location, cluster id) where the node pool will be
385 # created. Specified in the format
386 # `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700387 }
388
389 x__xgafv: string, V1 error format.
390 Allowed values
391 1 - v1 error format
392 2 - v2 error format
393
394Returns:
395 An object of the form:
396
397 { # This operation resource represents operations that may have happened or are
398 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
400 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700401 { # StatusCondition describes why a cluster or a node pool has a certain status
402 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700403 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
404 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700405 },
406 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700407 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700408 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700410 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
411 # or
412 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
413 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700414 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
415 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
416 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
417 &quot;stages&quot;: [ # Substages of an operation or a stage.
418 # Object with schema name: OperationProgress
419 ],
420 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
421 # Unset for single-stage operations.
422 &quot;metrics&quot;: [ # Progress metric bundle, for example:
423 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
424 # {name: &quot;nodes total&quot;, int_value: 32}]
425 # or
426 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
427 # {name: &quot;progress scale&quot;, double_value: 1.0}]
428 { # Progress metric is (string, int|float|string) pair.
429 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
430 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
431 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
432 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
433 },
434 ],
435 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
436 # Unset for single-stage operations.
437 },
438 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
439 { # StatusCondition describes why a cluster or a node pool has a certain status
440 # (e.g., ERROR or DEGRADED).
441 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
442 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
443 },
444 ],
445 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
446 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
447 # operation is taking place. This field is deprecated, use location instead.
448 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
449 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
450 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
451 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
452 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
453 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700454 }</pre>
455</div>
456
457<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700458 <code class="details" id="delete">delete(name, projectId=None, zone=None, clusterId=None, nodePoolId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700459 <pre>Deletes a node pool from a cluster.
460
461Args:
462 name: string, The name (project, location, cluster, node pool id) of the node pool to
463delete. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700464`projects/*/locations/*/clusters/*/nodePools/*`. (required)
465 projectId: string, Deprecated. The Google Developers Console [project ID or project
466number](https://developers.google.com/console/help/new/#projectnumber).
467This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700468 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700469[zone](https://cloud.google.com/compute/docs/zones#available) in which the
470cluster resides. This field has been deprecated and replaced by the name
471field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700472 clusterId: string, Deprecated. The name of the cluster.
473This field has been deprecated and replaced by the name field.
474 nodePoolId: string, Deprecated. The name of the node pool to delete.
475This field has been deprecated and replaced by the name field.
476 x__xgafv: string, V1 error format.
477 Allowed values
478 1 - v1 error format
479 2 - v2 error format
480
481Returns:
482 An object of the form:
483
484 { # This operation resource represents operations that may have happened or are
485 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
487 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700488 { # StatusCondition describes why a cluster or a node pool has a certain status
489 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700490 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
491 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700492 },
493 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700494 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700495 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700496 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700497 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
498 # or
499 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
500 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700501 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
502 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
503 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
504 &quot;stages&quot;: [ # Substages of an operation or a stage.
505 # Object with schema name: OperationProgress
506 ],
507 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
508 # Unset for single-stage operations.
509 &quot;metrics&quot;: [ # Progress metric bundle, for example:
510 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
511 # {name: &quot;nodes total&quot;, int_value: 32}]
512 # or
513 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
514 # {name: &quot;progress scale&quot;, double_value: 1.0}]
515 { # Progress metric is (string, int|float|string) pair.
516 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
517 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
518 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
519 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
520 },
521 ],
522 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
523 # Unset for single-stage operations.
524 },
525 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
526 { # StatusCondition describes why a cluster or a node pool has a certain status
527 # (e.g., ERROR or DEGRADED).
528 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
529 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
530 },
531 ],
532 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
533 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
534 # operation is taking place. This field is deprecated, use location instead.
535 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
536 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
537 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
538 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
539 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
540 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700541 }</pre>
542</div>
543
544<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700545 <code class="details" id="get">get(name, clusterId=None, nodePoolId=None, projectId=None, zone=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700546 <pre>Retrieves the requested node pool.
547
548Args:
549 name: string, The name (project, location, cluster, node pool id) of the node pool to
550get. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700551`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700552 clusterId: string, Deprecated. The name of the cluster.
553This field has been deprecated and replaced by the name field.
554 nodePoolId: string, Deprecated. The name of the node pool.
555This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700556 projectId: string, Deprecated. The Google Developers Console [project ID or project
557number](https://developers.google.com/console/help/new/#projectnumber).
558This field has been deprecated and replaced by the name field.
559 zone: string, Deprecated. The name of the Google Compute Engine
560[zone](https://cloud.google.com/compute/docs/zones#available) in which the
561cluster resides. This field has been deprecated and replaced by the name
562field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700563 x__xgafv: string, V1 error format.
564 Allowed values
565 1 - v1 error format
566 2 - v2 error format
567
568Returns:
569 An object of the form:
570
Bu Sun Kim65020912020-05-20 12:08:20 -0700571 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
572 # 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 -0700573 # specification, under the control of the cluster master. They may have a set
574 # of Kubernetes labels applied to them, which may be used to reference them
575 # during pod scheduling. They may also be resized up or down, to accommodate
576 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700577 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
578 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
579 # is sufficient for this number of instances. You must also have available
580 # firewall and routes quota.
581 &quot;locations&quot;: [ # The list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700582 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -0700583 # NodePool&#x27;s nodes should be located.
584 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700585 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700586 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
587 &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 -0700588 # disruption caused by an upgrade.
589 #
590 # maxUnavailable controls the number of nodes that can be simultaneously
591 # unavailable.
592 #
593 # maxSurge controls the number of additional nodes that can be added to the
594 # node pool temporarily for the time of the upgrade to increase the number of
595 # available nodes.
596 #
597 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
598 # nodes are being upgraded at the same time).
599 #
600 # Note: upgrades inevitably introduce some disruption since workloads need to
601 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
602 # this holds true. (Disruption stays within the limits of
603 # PodDisruptionBudget, if it is configured.)
604 #
605 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
606 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
607 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
608 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
609 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700610 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700611 # the upgrade process. A node is considered available if its status is
612 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700613 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
614 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700615 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700616 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
617 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
618 # associated with this node pool.
619 &quot;A String&quot;,
620 ],
621 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
622 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
623 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
624 { # StatusCondition describes why a cluster or a node pool has a certain status
625 # (e.g., ERROR or DEGRADED).
626 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
627 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700628 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700629 ],
630 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
631 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
632 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700633 # valid sources or targets for network firewalls and are specified by
634 # the client during cluster or node pool creation. Each tag within the list
635 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700636 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700637 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700638 &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 -0700639 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700640 # Account is specified, the &quot;default&quot; service account is used.
641 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
642 # the latest version of it will be used.
643 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
644 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700645 #
646 # The following scopes are recommended, but not required, and by default are
647 # not included:
648 #
649 # * `https://www.googleapis.com/auth/compute` is required for mounting
650 # persistent storage on your nodes.
651 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
652 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700653 # (the [Google Container
654 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700655 #
656 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
657 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700658 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700659 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700660 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700661 #
662 # For more information, including usage and the valid values, see:
663 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
664 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
665 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
666 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700667 # See
668 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
669 # for more information, including usage and the valid values.
670 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
671 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
672 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700673 },
674 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700675 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
676 # These will added in addition to any default label(s) that
677 # Kubernetes may apply to the node.
678 # In case of conflict in label keys, the applied set may differ depending on
679 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
680 # and conflicts should be avoided.
681 # For more information, including usage and the valid values, see:
682 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
683 &quot;a_key&quot;: &quot;A String&quot;,
684 },
685 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
686 # The smallest allowed disk size is 10GB.
687 #
688 # If unspecified, the default disk size is 100GB.
689 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
690 # workloads on the node pool.
691 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
692 # on the node pool.
693 },
694 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
695 # See https://cloud.google.com/compute/docs/gpus for more information about
696 # support for GPUs.
697 { # AcceleratorConfig represents a Hardware Accelerator request.
698 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
699 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
700 # [here](https://cloud.google.com/compute/docs/gpus)
701 },
702 ],
703 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
704 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
705 # `n1-standard-1`).
706 #
707 # If unspecified, the default machine type is
708 # `n1-standard-1`.
709 &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;)
710 #
711 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
712 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
713 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
714 #
715 # Secure Boot helps ensure that the system only runs authentic software by
716 # verifying the digital signature of all boot components, and halting the
717 # boot process if signature verification fails.
718 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
719 #
720 # Enables monitoring and attestation of the boot integrity of the instance.
721 # The attestation is performed against the integrity policy baseline. This
722 # baseline is initially derived from the implicitly trusted boot image when
723 # the instance is created.
724 },
725 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
726 # scheduled on the specified or newer CPU platform. Applicable values are the
727 # friendly names of CPU platforms, such as
728 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
729 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
730 # information, read [how to specify min CPU
731 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
732 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
733 # https://cloud.google.com/compute/docs/instances/preemptible for more
734 # information about preemptible VM instances.
735 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700736 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700737 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700738 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -0700739 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700740 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700741 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
742 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700743 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700744 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
745 #
746 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
747 # in length. These are reflected as part of a URL in the metadata server.
748 # Additionally, to avoid ambiguity, keys must not conflict with any other
749 # metadata keys for the project or be one of the reserved keys:
750 # &quot;cluster-location&quot;
751 # &quot;cluster-name&quot;
752 # &quot;cluster-uid&quot;
753 # &quot;configure-sh&quot;
754 # &quot;containerd-configure-sh&quot;
755 # &quot;enable-os-login&quot;
756 # &quot;gci-ensure-gke-docker&quot;
757 # &quot;gci-metrics-enabled&quot;
758 # &quot;gci-update-strategy&quot;
759 # &quot;instance-template&quot;
760 # &quot;kube-env&quot;
761 # &quot;startup-script&quot;
762 # &quot;user-data&quot;
763 # &quot;disable-address-manager&quot;
764 # &quot;windows-startup-script-ps1&quot;
765 # &quot;common-psm1&quot;
766 # &quot;k8s-node-setup-psm1&quot;
767 # &quot;install-ssh-psm1&quot;
768 # &quot;user-profile-psm1&quot;
769 # &quot;serial-port-logging-enable&quot;
770 #
771 # Values are free-form strings, and only have meaning as interpreted by
772 # the image running in the instance. The only restriction placed on them is
773 # that each value&#x27;s size must be less than or equal to 32 KB.
774 #
775 # The total size of all keys and values must be less than 512 KB.
776 &quot;a_key&quot;: &quot;A String&quot;,
777 },
778 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
779 # the specified [Zonal Compute
780 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
781 # to this node pool.
782 # is the configuration of desired reservation which instances could take
783 # capacity from.
784 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
785 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
786 # the key and specify the name of your reservation as its value.
787 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
788 &quot;A String&quot;,
789 ],
790 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
791 },
792 },
793 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
794 # simultaneously on a node in the node pool.
795 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
796 },
797 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
798 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
799 # node pool.
800 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
801 # the Auto Upgrades will proceed.
802 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
803 # with the description of the upgrade.
804 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
805 # with the approximate start time for the upgrades, in
806 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
807 },
808 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
809 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
810 # up to date with the latest release version of Kubernetes.
811 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
812 # pool. If enabled, the nodes in this node pool will be monitored and, if
813 # they fail health checks too many times, an automatic repair action will be
814 # triggered.
815 },
816 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
Dan O'Mearadd494642020-05-01 07:42:23 -0700817 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700818 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
819 # only if a valid configuration is present.
820 # adjust the size of the node pool to the current cluster usage.
821 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
822 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
823 # has to enough quota to scale up the cluster.
824 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
825 # max_node_count.
826 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
827 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700828 }</pre>
829</div>
830
831<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700832 <code class="details" id="list">list(parent, projectId=None, zone=None, clusterId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700833 <pre>Lists the node pools for a cluster.
834
835Args:
836 parent: string, The parent (project, location, cluster id) where the node pools will be
Bu Sun Kim65020912020-05-20 12:08:20 -0700837listed. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700838 projectId: string, Deprecated. The Google Developers Console [project ID or project
839number](https://developers.google.com/console/help/new/#projectnumber).
840This field has been deprecated and replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700841 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700842[zone](https://cloud.google.com/compute/docs/zones#available) in which the
843cluster resides. This field has been deprecated and replaced by the parent
844field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700845 clusterId: string, Deprecated. The name of the cluster.
846This field has been deprecated and replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700847 x__xgafv: string, V1 error format.
848 Allowed values
849 1 - v1 error format
850 2 - v2 error format
851
852Returns:
853 An object of the form:
854
855 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700856 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
857 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
858 # 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 -0700859 # specification, under the control of the cluster master. They may have a set
860 # of Kubernetes labels applied to them, which may be used to reference them
861 # during pod scheduling. They may also be resized up or down, to accommodate
862 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700863 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
864 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
865 # is sufficient for this number of instances. You must also have available
866 # firewall and routes quota.
867 &quot;locations&quot;: [ # The list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700868 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -0700869 # NodePool&#x27;s nodes should be located.
870 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700871 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700872 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
873 &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 -0700874 # disruption caused by an upgrade.
875 #
876 # maxUnavailable controls the number of nodes that can be simultaneously
877 # unavailable.
878 #
879 # maxSurge controls the number of additional nodes that can be added to the
880 # node pool temporarily for the time of the upgrade to increase the number of
881 # available nodes.
882 #
883 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
884 # nodes are being upgraded at the same time).
885 #
886 # Note: upgrades inevitably introduce some disruption since workloads need to
887 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
888 # this holds true. (Disruption stays within the limits of
889 # PodDisruptionBudget, if it is configured.)
890 #
891 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
892 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
893 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
894 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
895 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700896 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700897 # the upgrade process. A node is considered available if its status is
898 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700899 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
900 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700901 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700902 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
903 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
904 # associated with this node pool.
905 &quot;A String&quot;,
906 ],
907 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
908 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
909 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
910 { # StatusCondition describes why a cluster or a node pool has a certain status
911 # (e.g., ERROR or DEGRADED).
912 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
913 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700914 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700915 ],
916 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
917 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
918 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700919 # valid sources or targets for network firewalls and are specified by
920 # the client during cluster or node pool creation. Each tag within the list
921 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700922 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700923 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700924 &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 -0700925 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700926 # Account is specified, the &quot;default&quot; service account is used.
927 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
928 # the latest version of it will be used.
929 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
930 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700931 #
932 # The following scopes are recommended, but not required, and by default are
933 # not included:
934 #
935 # * `https://www.googleapis.com/auth/compute` is required for mounting
936 # persistent storage on your nodes.
937 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
938 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700939 # (the [Google Container
940 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700941 #
942 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
943 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700944 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700945 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700946 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700947 #
948 # For more information, including usage and the valid values, see:
949 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
950 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
951 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
952 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700953 # See
954 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
955 # for more information, including usage and the valid values.
956 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
957 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
958 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700959 },
960 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700961 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
962 # These will added in addition to any default label(s) that
963 # Kubernetes may apply to the node.
964 # In case of conflict in label keys, the applied set may differ depending on
965 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
966 # and conflicts should be avoided.
967 # For more information, including usage and the valid values, see:
968 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
969 &quot;a_key&quot;: &quot;A String&quot;,
970 },
971 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
972 # The smallest allowed disk size is 10GB.
973 #
974 # If unspecified, the default disk size is 100GB.
975 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
976 # workloads on the node pool.
977 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
978 # on the node pool.
979 },
980 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
981 # See https://cloud.google.com/compute/docs/gpus for more information about
982 # support for GPUs.
983 { # AcceleratorConfig represents a Hardware Accelerator request.
984 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
985 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
986 # [here](https://cloud.google.com/compute/docs/gpus)
987 },
988 ],
989 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
990 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
991 # `n1-standard-1`).
992 #
993 # If unspecified, the default machine type is
994 # `n1-standard-1`.
995 &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;)
996 #
997 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
998 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
999 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1000 #
1001 # Secure Boot helps ensure that the system only runs authentic software by
1002 # verifying the digital signature of all boot components, and halting the
1003 # boot process if signature verification fails.
1004 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1005 #
1006 # Enables monitoring and attestation of the boot integrity of the instance.
1007 # The attestation is performed against the integrity policy baseline. This
1008 # baseline is initially derived from the implicitly trusted boot image when
1009 # the instance is created.
1010 },
1011 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1012 # scheduled on the specified or newer CPU platform. Applicable values are the
1013 # friendly names of CPU platforms, such as
1014 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1015 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1016 # information, read [how to specify min CPU
1017 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1018 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1019 # https://cloud.google.com/compute/docs/instances/preemptible for more
1020 # information about preemptible VM instances.
1021 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001022 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001023 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001024 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07001025 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001026 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001027 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1028 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001029 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001030 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1031 #
1032 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1033 # in length. These are reflected as part of a URL in the metadata server.
1034 # Additionally, to avoid ambiguity, keys must not conflict with any other
1035 # metadata keys for the project or be one of the reserved keys:
1036 # &quot;cluster-location&quot;
1037 # &quot;cluster-name&quot;
1038 # &quot;cluster-uid&quot;
1039 # &quot;configure-sh&quot;
1040 # &quot;containerd-configure-sh&quot;
1041 # &quot;enable-os-login&quot;
1042 # &quot;gci-ensure-gke-docker&quot;
1043 # &quot;gci-metrics-enabled&quot;
1044 # &quot;gci-update-strategy&quot;
1045 # &quot;instance-template&quot;
1046 # &quot;kube-env&quot;
1047 # &quot;startup-script&quot;
1048 # &quot;user-data&quot;
1049 # &quot;disable-address-manager&quot;
1050 # &quot;windows-startup-script-ps1&quot;
1051 # &quot;common-psm1&quot;
1052 # &quot;k8s-node-setup-psm1&quot;
1053 # &quot;install-ssh-psm1&quot;
1054 # &quot;user-profile-psm1&quot;
1055 # &quot;serial-port-logging-enable&quot;
1056 #
1057 # Values are free-form strings, and only have meaning as interpreted by
1058 # the image running in the instance. The only restriction placed on them is
1059 # that each value&#x27;s size must be less than or equal to 32 KB.
1060 #
1061 # The total size of all keys and values must be less than 512 KB.
1062 &quot;a_key&quot;: &quot;A String&quot;,
1063 },
1064 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1065 # the specified [Zonal Compute
1066 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1067 # to this node pool.
1068 # is the configuration of desired reservation which instances could take
1069 # capacity from.
1070 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1071 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1072 # the key and specify the name of your reservation as its value.
1073 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1074 &quot;A String&quot;,
1075 ],
1076 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1077 },
1078 },
1079 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1080 # simultaneously on a node in the node pool.
1081 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1082 },
1083 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1084 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1085 # node pool.
1086 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1087 # the Auto Upgrades will proceed.
1088 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1089 # with the description of the upgrade.
1090 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1091 # with the approximate start time for the upgrades, in
1092 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1093 },
1094 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1095 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1096 # up to date with the latest release version of Kubernetes.
1097 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1098 # pool. If enabled, the nodes in this node pool will be monitored and, if
1099 # they fail health checks too many times, an automatic repair action will be
1100 # triggered.
1101 },
1102 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
Dan O'Mearadd494642020-05-01 07:42:23 -07001103 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001104 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
1105 # only if a valid configuration is present.
1106 # adjust the size of the node pool to the current cluster usage.
1107 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1108 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1109 # has to enough quota to scale up the cluster.
1110 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1111 # max_node_count.
1112 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1113 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001114 },
1115 ],
1116 }</pre>
1117</div>
1118
1119<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001120 <code class="details" id="rollback">rollback(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001121 <pre>Rolls back a previously Aborted or Failed NodePool upgrade.
1122This makes no changes if the last upgrade successfully completed.
1123
1124Args:
1125 name: string, The name (project, location, cluster, node pool id) of the node poll to
1126rollback upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07001127Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001128 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001129 The object takes the form of:
1130
1131{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
1132 # NodePool upgrade. This will be an no-op if the last upgrade successfully
1133 # completed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001134 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node poll to
1135 # rollback upgrade.
1136 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1137 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001138 # number](https://support.google.com/cloud/answer/6158840).
1139 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001140 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001141 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1142 # cluster resides. This field has been deprecated and replaced by the name
1143 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001144 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to rollback.
1145 # This field has been deprecated and replaced by the name field.
1146 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to rollback.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001147 # This field has been deprecated and replaced by the name field.
1148 }
1149
1150 x__xgafv: string, V1 error format.
1151 Allowed values
1152 1 - v1 error format
1153 2 - v2 error format
1154
1155Returns:
1156 An object of the form:
1157
1158 { # This operation resource represents operations that may have happened or are
1159 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001160 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1161 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001162 { # StatusCondition describes why a cluster or a node pool has a certain status
1163 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001164 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1165 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001166 },
1167 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001168 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001169 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001170 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001171 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1172 # or
1173 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1174 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001175 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1176 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1177 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1178 &quot;stages&quot;: [ # Substages of an operation or a stage.
1179 # Object with schema name: OperationProgress
1180 ],
1181 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1182 # Unset for single-stage operations.
1183 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1184 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1185 # {name: &quot;nodes total&quot;, int_value: 32}]
1186 # or
1187 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1188 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1189 { # Progress metric is (string, int|float|string) pair.
1190 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1191 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1192 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1193 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1194 },
1195 ],
1196 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1197 # Unset for single-stage operations.
1198 },
1199 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1200 { # StatusCondition describes why a cluster or a node pool has a certain status
1201 # (e.g., ERROR or DEGRADED).
1202 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1203 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1204 },
1205 ],
1206 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1207 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1208 # operation is taking place. This field is deprecated, use location instead.
1209 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1210 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1211 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1212 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1213 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1214 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001215 }</pre>
1216</div>
1217
1218<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001219 <code class="details" id="setAutoscaling">setAutoscaling(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001220 <pre>Sets the autoscaling settings for the specified node pool.
1221
1222Args:
1223 name: string, The name (project, location, cluster, node pool) of the node pool to set
1224autoscaler settings. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001225`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001226 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001227 The object takes the form of:
1228
1229{ # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001230 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1231 # number](https://support.google.com/cloud/answer/6158840).
1232 # This field has been deprecated and replaced by the name field.
1233 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
1234 # This field has been deprecated and replaced by the name field.
1235 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade.
1236 # This field has been deprecated and replaced by the name field.
1237 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001238 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1239 # cluster resides. This field has been deprecated and replaced by the name
1240 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001241 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to set
1242 # autoscaler settings. Specified in the format
1243 # `projects/*/locations/*/clusters/*/nodePools/*`.
1244 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Required. Autoscaling configuration for the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001245 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -07001246 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1247 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001248 # has to enough quota to scale up the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001249 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1250 # max_node_count.
1251 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001252 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001253 }
1254
1255 x__xgafv: string, V1 error format.
1256 Allowed values
1257 1 - v1 error format
1258 2 - v2 error format
1259
1260Returns:
1261 An object of the form:
1262
1263 { # This operation resource represents operations that may have happened or are
1264 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001265 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1266 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001267 { # StatusCondition describes why a cluster or a node pool has a certain status
1268 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001269 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1270 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001271 },
1272 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001273 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001274 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001275 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001276 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1277 # or
1278 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1279 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001280 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1281 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1282 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1283 &quot;stages&quot;: [ # Substages of an operation or a stage.
1284 # Object with schema name: OperationProgress
1285 ],
1286 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1287 # Unset for single-stage operations.
1288 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1289 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1290 # {name: &quot;nodes total&quot;, int_value: 32}]
1291 # or
1292 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1293 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1294 { # Progress metric is (string, int|float|string) pair.
1295 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1296 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1297 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1298 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1299 },
1300 ],
1301 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1302 # Unset for single-stage operations.
1303 },
1304 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1305 { # StatusCondition describes why a cluster or a node pool has a certain status
1306 # (e.g., ERROR or DEGRADED).
1307 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1308 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1309 },
1310 ],
1311 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1312 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1313 # operation is taking place. This field is deprecated, use location instead.
1314 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1315 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1316 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1317 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1318 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1319 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001320 }</pre>
1321</div>
1322
1323<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001324 <code class="details" id="setManagement">setManagement(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001325 <pre>Sets the NodeManagement options for a node pool.
1326
1327Args:
1328 name: string, The name (project, location, cluster, node pool id) of the node pool to set
1329management properties. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001330`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001331 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001332 The object takes the form of:
1333
1334{ # SetNodePoolManagementRequest sets the node management properties of a node
1335 # pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001336 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
1337 # This field has been deprecated and replaced by the name field.
1338 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update.
1339 # This field has been deprecated and replaced by the name field.
1340 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001341 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1342 # cluster resides. This field has been deprecated and replaced by the name
1343 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001344 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1345 # management properties. Specified in the format
1346 # `projects/*/locations/*/clusters/*/nodePools/*`.
1347 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001348 # number](https://support.google.com/cloud/answer/6158840).
1349 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001350 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Required. NodeManagement configuration for the node pool.
1351 # node pool.
1352 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1353 # the Auto Upgrades will proceed.
1354 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1355 # with the description of the upgrade.
1356 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1357 # with the approximate start time for the upgrades, in
1358 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1359 },
1360 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1361 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1362 # up to date with the latest release version of Kubernetes.
1363 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1364 # pool. If enabled, the nodes in this node pool will be monitored and, if
1365 # they fail health checks too many times, an automatic repair action will be
1366 # triggered.
1367 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001368 }
1369
1370 x__xgafv: string, V1 error format.
1371 Allowed values
1372 1 - v1 error format
1373 2 - v2 error format
1374
1375Returns:
1376 An object of the form:
1377
1378 { # This operation resource represents operations that may have happened or are
1379 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001380 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1381 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001382 { # StatusCondition describes why a cluster or a node pool has a certain status
1383 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001384 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1385 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001386 },
1387 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001388 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001389 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001390 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001391 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1392 # or
1393 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1394 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001395 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1396 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1397 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1398 &quot;stages&quot;: [ # Substages of an operation or a stage.
1399 # Object with schema name: OperationProgress
1400 ],
1401 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1402 # Unset for single-stage operations.
1403 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1404 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1405 # {name: &quot;nodes total&quot;, int_value: 32}]
1406 # or
1407 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1408 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1409 { # Progress metric is (string, int|float|string) pair.
1410 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1411 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1412 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1413 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1414 },
1415 ],
1416 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1417 # Unset for single-stage operations.
1418 },
1419 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1420 { # StatusCondition describes why a cluster or a node pool has a certain status
1421 # (e.g., ERROR or DEGRADED).
1422 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1423 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1424 },
1425 ],
1426 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1427 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1428 # operation is taking place. This field is deprecated, use location instead.
1429 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1430 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1431 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1432 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1433 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1434 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001435 }</pre>
1436</div>
1437
1438<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001439 <code class="details" id="setSize">setSize(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001440 <pre>Sets the size for a specific node pool.
1441
1442Args:
1443 name: string, The name (project, location, cluster, node pool id) of the node pool to set
1444size.
Bu Sun Kim65020912020-05-20 12:08:20 -07001445Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001446 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001447 The object takes the form of:
1448
1449{ # SetNodePoolSizeRequest sets the size a node
1450 # pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001451 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
1452 # This field has been deprecated and replaced by the name field.
1453 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update.
1454 # This field has been deprecated and replaced by the name field.
1455 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001456 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1457 # cluster resides. This field has been deprecated and replaced by the name
1458 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001459 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
1460 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1461 # size.
1462 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1463 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001464 # number](https://support.google.com/cloud/answer/6158840).
1465 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001466 }
1467
1468 x__xgafv: string, V1 error format.
1469 Allowed values
1470 1 - v1 error format
1471 2 - v2 error format
1472
1473Returns:
1474 An object of the form:
1475
1476 { # This operation resource represents operations that may have happened or are
1477 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001478 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1479 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001480 { # StatusCondition describes why a cluster or a node pool has a certain status
1481 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001482 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1483 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001484 },
1485 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001486 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001487 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001488 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001489 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1490 # or
1491 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1492 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001493 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1494 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1495 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1496 &quot;stages&quot;: [ # Substages of an operation or a stage.
1497 # Object with schema name: OperationProgress
1498 ],
1499 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1500 # Unset for single-stage operations.
1501 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1502 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1503 # {name: &quot;nodes total&quot;, int_value: 32}]
1504 # or
1505 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1506 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1507 { # Progress metric is (string, int|float|string) pair.
1508 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1509 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1510 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1511 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1512 },
1513 ],
1514 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1515 # Unset for single-stage operations.
1516 },
1517 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1518 { # StatusCondition describes why a cluster or a node pool has a certain status
1519 # (e.g., ERROR or DEGRADED).
1520 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1521 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1522 },
1523 ],
1524 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1525 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1526 # operation is taking place. This field is deprecated, use location instead.
1527 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1528 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1529 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1530 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1531 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1532 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001533 }</pre>
1534</div>
1535
1536<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001537 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001538 <pre>Updates the version and/or image type for the specified node pool.
1539
1540Args:
1541 name: string, The name (project, location, cluster, node pool) of the node pool to
1542update. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001543`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001544 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001545 The object takes the form of:
1546
Bu Sun Kim65020912020-05-20 12:08:20 -07001547{ # UpdateNodePoolRequests update a node pool&#x27;s image and/or version.
1548 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
1549 # This field has been deprecated and replaced by the name field.
1550 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The desired workload metadata config for the node pool.
1551 # workloads on the node pool.
1552 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1553 # on the node pool.
1554 },
1555 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade.
1556 # This field has been deprecated and replaced by the name field.
1557 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
1558 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001559 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1560 # cluster resides. This field has been deprecated and replaced by the name
1561 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001562 &quot;nodeVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the nodes to (typically an
1563 # upgrade).
1564 #
1565 # Users may specify either explicit versions offered by Kubernetes Engine or
1566 # version aliases, which have the following behavior:
1567 #
1568 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1569 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1570 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1571 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1572 # - &quot;-&quot;: picks the Kubernetes master version
1573 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to
1574 # update. Specified in the format
1575 # `projects/*/locations/*/clusters/*/nodePools/*`.
1576 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001577 # number](https://support.google.com/cloud/answer/6158840).
1578 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001579 &quot;locations&quot;: [ # The desired list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001580 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07001581 # node pool&#x27;s nodes should be located. Changing the locations for a node pool
Dan O'Mearadd494642020-05-01 07:42:23 -07001582 # will result in nodes being either created or removed from the node pool,
1583 # depending on whether locations are being added or removed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001584 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001585 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001586 &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 -07001587 # disruption caused by an upgrade.
1588 #
1589 # maxUnavailable controls the number of nodes that can be simultaneously
1590 # unavailable.
1591 #
1592 # maxSurge controls the number of additional nodes that can be added to the
1593 # node pool temporarily for the time of the upgrade to increase the number of
1594 # available nodes.
1595 #
1596 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1597 # nodes are being upgraded at the same time).
1598 #
1599 # Note: upgrades inevitably introduce some disruption since workloads need to
1600 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1601 # this holds true. (Disruption stays within the limits of
1602 # PodDisruptionBudget, if it is configured.)
1603 #
1604 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1605 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1606 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1607 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1608 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001609 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001610 # the upgrade process. A node is considered available if its status is
1611 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001612 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1613 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001614 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001615 }
1616
1617 x__xgafv: string, V1 error format.
1618 Allowed values
1619 1 - v1 error format
1620 2 - v2 error format
1621
1622Returns:
1623 An object of the form:
1624
1625 { # This operation resource represents operations that may have happened or are
1626 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001627 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1628 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001629 { # StatusCondition describes why a cluster or a node pool has a certain status
1630 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001631 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1632 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001633 },
1634 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001635 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001636 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001637 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001638 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1639 # or
1640 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1641 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001642 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1643 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1644 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1645 &quot;stages&quot;: [ # Substages of an operation or a stage.
1646 # Object with schema name: OperationProgress
1647 ],
1648 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1649 # Unset for single-stage operations.
1650 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1651 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1652 # {name: &quot;nodes total&quot;, int_value: 32}]
1653 # or
1654 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1655 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1656 { # Progress metric is (string, int|float|string) pair.
1657 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1658 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1659 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1660 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1661 },
1662 ],
1663 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1664 # Unset for single-stage operations.
1665 },
1666 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1667 { # StatusCondition describes why a cluster or a node pool has a certain status
1668 # (e.g., ERROR or DEGRADED).
1669 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1670 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1671 },
1672 ],
1673 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1674 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1675 # operation is taking place. This field is deprecated, use location instead.
1676 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1677 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1678 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1679 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1680 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1681 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001682 }</pre>
1683</div>
1684
1685</body></html>