blob: c0f1de40d26c9433b1395c5bc76a04c357e44b10 [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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700124 &quot;parent&quot;: &quot;A String&quot;, # The parent (project, location, cluster id) where the node pool will be
125 # created. Specified in the format
126 # `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700127 &quot;nodePool&quot;: { # NodePool contains the name and configuration for a cluster&#x27;s node pool. # Required. The node pool to create.
128 # 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 -0700129 # specification, under the control of the cluster master. They may have a set
130 # of Kubernetes labels applied to them, which may be used to reference them
131 # during pod scheduling. They may also be resized up or down, to accommodate
132 # the workload.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700133 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
134 # node pool instance, if available.
135 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
136 # only if a valid configuration is present.
137 # adjust the size of the node pool to the current cluster usage.
138 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
139 # has to enough quota to scale up the cluster.
140 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
141 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
142 # max_node_count.
143 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
144 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700145 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
146 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
147 # is sufficient for this number of instances. You must also have available
148 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
150 &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 -0700151 # disruption caused by an upgrade.
152 #
153 # maxUnavailable controls the number of nodes that can be simultaneously
154 # unavailable.
155 #
156 # maxSurge controls the number of additional nodes that can be added to the
157 # node pool temporarily for the time of the upgrade to increase the number of
158 # available nodes.
159 #
160 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
161 # nodes are being upgraded at the same time).
162 #
163 # Note: upgrades inevitably introduce some disruption since workloads need to
164 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
165 # this holds true. (Disruption stays within the limits of
166 # PodDisruptionBudget, if it is configured.)
167 #
168 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
169 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
170 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
171 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
172 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700174 # the upgrade process. A node is considered available if its status is
175 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
177 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700178 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700179 &quot;locations&quot;: [ # The list of Google Compute Engine
180 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
181 # NodePool&#x27;s nodes should be located.
182 &quot;A String&quot;,
183 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
185 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
186 # associated with this node pool.
187 &quot;A String&quot;,
188 ],
189 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
190 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
191 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
192 { # StatusCondition describes why a cluster or a node pool has a certain status
193 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700194 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700195 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700196 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 ],
198 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
199 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
201 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700202 #
203 # The following scopes are recommended, but not required, and by default are
204 # not included:
205 #
206 # * `https://www.googleapis.com/auth/compute` is required for mounting
207 # persistent storage on your nodes.
208 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
209 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700210 # (the [Google Container
211 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700212 #
213 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
214 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700216 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700217 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700218 #
219 # For more information, including usage and the valid values, see:
220 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
221 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
222 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
223 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700224 # See
225 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
226 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700227 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700228 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
229 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700230 },
231 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
233 # These will added in addition to any default label(s) that
234 # Kubernetes may apply to the node.
235 # In case of conflict in label keys, the applied set may differ depending on
236 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
237 # and conflicts should be avoided.
238 # For more information, including usage and the valid values, see:
239 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
240 &quot;a_key&quot;: &quot;A String&quot;,
241 },
242 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
243 # The smallest allowed disk size is 10GB.
244 #
245 # If unspecified, the default disk size is 100GB.
246 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
247 # workloads on the node pool.
248 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
249 # on the node pool.
250 },
251 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
252 # See https://cloud.google.com/compute/docs/gpus for more information about
253 # support for GPUs.
254 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
256 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700257 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 },
259 ],
260 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
261 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
262 # `n1-standard-1`).
263 #
264 # If unspecified, the default machine type is
265 # `n1-standard-1`.
266 &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;)
267 #
268 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
269 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -0700270 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
271 #
272 # Enables monitoring and attestation of the boot integrity of the instance.
273 # The attestation is performed against the integrity policy baseline. This
274 # baseline is initially derived from the implicitly trusted boot image when
275 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700276 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
277 #
278 # Secure Boot helps ensure that the system only runs authentic software by
279 # verifying the digital signature of all boot components, and halting the
280 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 },
282 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
283 # scheduled on the specified or newer CPU platform. Applicable values are the
284 # friendly names of CPU platforms, such as
285 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
286 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
287 # information, read [how to specify min CPU
288 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
289 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
290 # https://cloud.google.com/compute/docs/instances/preemptible for more
291 # information about preemptible VM instances.
292 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700293 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700294 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700295 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -0700296 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700297 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700298 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
299 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700300 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700301 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
302 #
303 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
304 # in length. These are reflected as part of a URL in the metadata server.
305 # Additionally, to avoid ambiguity, keys must not conflict with any other
306 # metadata keys for the project or be one of the reserved keys:
307 # &quot;cluster-location&quot;
308 # &quot;cluster-name&quot;
309 # &quot;cluster-uid&quot;
310 # &quot;configure-sh&quot;
311 # &quot;containerd-configure-sh&quot;
312 # &quot;enable-os-login&quot;
313 # &quot;gci-ensure-gke-docker&quot;
314 # &quot;gci-metrics-enabled&quot;
315 # &quot;gci-update-strategy&quot;
316 # &quot;instance-template&quot;
317 # &quot;kube-env&quot;
318 # &quot;startup-script&quot;
319 # &quot;user-data&quot;
320 # &quot;disable-address-manager&quot;
321 # &quot;windows-startup-script-ps1&quot;
322 # &quot;common-psm1&quot;
323 # &quot;k8s-node-setup-psm1&quot;
324 # &quot;install-ssh-psm1&quot;
325 # &quot;user-profile-psm1&quot;
326 # &quot;serial-port-logging-enable&quot;
327 #
328 # Values are free-form strings, and only have meaning as interpreted by
329 # the image running in the instance. The only restriction placed on them is
330 # that each value&#x27;s size must be less than or equal to 32 KB.
331 #
332 # The total size of all keys and values must be less than 512 KB.
333 &quot;a_key&quot;: &quot;A String&quot;,
334 },
335 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
336 # the specified [Zonal Compute
337 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
338 # to this node pool.
339 # is the configuration of desired reservation which instances could take
340 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
342 &quot;A String&quot;,
343 ],
344 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700345 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
346 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
347 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700349 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
350 # valid sources or targets for network firewalls and are specified by
351 # the client during cluster or node pool creation. Each tag within the list
352 # must comply with RFC1035.
353 &quot;A String&quot;,
354 ],
355 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
356 # Specify the email address of the Service Account; otherwise, if no Service
357 # Account is specified, the &quot;default&quot; service account is used.
358 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
359 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -0700360 },
361 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
362 # simultaneously on a node in the node pool.
363 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
364 },
365 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
366 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
367 # node pool.
368 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
369 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700370 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
371 # with the approximate start time for the upgrades, in
372 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700373 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
374 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
377 # pool. If enabled, the nodes in this node pool will be monitored and, if
378 # they fail health checks too many times, an automatic repair action will be
379 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700380 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
381 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
382 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700383 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700384 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700385 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
386 # This field has been deprecated and replaced by the parent field.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700399 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
400 { # StatusCondition describes why a cluster or a node pool has a certain status
401 # (e.g., ERROR or DEGRADED).
402 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
403 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
404 },
405 ],
406 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
407 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
408 # Unset for single-stage operations.
409 &quot;stages&quot;: [ # Substages of an operation or a stage.
410 # Object with schema name: OperationProgress
411 ],
412 &quot;metrics&quot;: [ # Progress metric bundle, for example:
413 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
414 # {name: &quot;nodes total&quot;, int_value: 32}]
415 # or
416 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
417 # {name: &quot;progress scale&quot;, double_value: 1.0}]
418 { # Progress metric is (string, int|float|string) pair.
419 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
420 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
421 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
422 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
423 },
424 ],
425 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
426 # Unset for single-stage operations.
427 },
428 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
429 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
430 # operation is taking place. This field is deprecated, use location instead.
431 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
432 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
433 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
434 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
435 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
436 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700437 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
438 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700439 { # StatusCondition describes why a cluster or a node pool has a certain status
440 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700441 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700442 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700443 },
444 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700446 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700447 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700448 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
449 # or
450 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
451 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700452 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
453 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700486 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
487 { # StatusCondition describes why a cluster or a node pool has a certain status
488 # (e.g., ERROR or DEGRADED).
489 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
490 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
491 },
492 ],
493 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
494 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
495 # Unset for single-stage operations.
496 &quot;stages&quot;: [ # Substages of an operation or a stage.
497 # Object with schema name: OperationProgress
498 ],
499 &quot;metrics&quot;: [ # Progress metric bundle, for example:
500 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
501 # {name: &quot;nodes total&quot;, int_value: 32}]
502 # or
503 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
504 # {name: &quot;progress scale&quot;, double_value: 1.0}]
505 { # Progress metric is (string, int|float|string) pair.
506 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
507 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
508 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
509 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
510 },
511 ],
512 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
513 # Unset for single-stage operations.
514 },
515 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
516 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
517 # operation is taking place. This field is deprecated, use location instead.
518 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
519 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
520 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
521 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
522 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
523 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700524 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
525 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700526 { # StatusCondition describes why a cluster or a node pool has a certain status
527 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700528 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700529 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700530 },
531 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700532 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700533 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700534 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700535 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
536 # or
537 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
538 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700539 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
540 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700577 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
578 # node pool instance, if available.
579 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
580 # only if a valid configuration is present.
581 # adjust the size of the node pool to the current cluster usage.
582 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
583 # has to enough quota to scale up the cluster.
584 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
585 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
586 # max_node_count.
587 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
588 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700589 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
590 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
591 # is sufficient for this number of instances. You must also have available
592 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -0700593 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
594 &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 -0700595 # disruption caused by an upgrade.
596 #
597 # maxUnavailable controls the number of nodes that can be simultaneously
598 # unavailable.
599 #
600 # maxSurge controls the number of additional nodes that can be added to the
601 # node pool temporarily for the time of the upgrade to increase the number of
602 # available nodes.
603 #
604 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
605 # nodes are being upgraded at the same time).
606 #
607 # Note: upgrades inevitably introduce some disruption since workloads need to
608 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
609 # this holds true. (Disruption stays within the limits of
610 # PodDisruptionBudget, if it is configured.)
611 #
612 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
613 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
614 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
615 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
616 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700617 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700618 # the upgrade process. A node is considered available if its status is
619 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700620 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
621 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700622 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700623 &quot;locations&quot;: [ # The list of Google Compute Engine
624 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
625 # NodePool&#x27;s nodes should be located.
626 &quot;A String&quot;,
627 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700628 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
629 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
630 # associated with this node pool.
631 &quot;A String&quot;,
632 ],
633 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
634 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
635 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
636 { # StatusCondition describes why a cluster or a node pool has a certain status
637 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700638 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700639 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700640 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700641 ],
642 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
643 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700644 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
645 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700646 #
647 # The following scopes are recommended, but not required, and by default are
648 # not included:
649 #
650 # * `https://www.googleapis.com/auth/compute` is required for mounting
651 # persistent storage on your nodes.
652 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
653 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700654 # (the [Google Container
655 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700656 #
657 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
658 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700660 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700661 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700662 #
663 # For more information, including usage and the valid values, see:
664 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
665 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
666 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
667 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700668 # See
669 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
670 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700671 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700672 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
673 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700674 },
675 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700676 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
677 # These will added in addition to any default label(s) that
678 # Kubernetes may apply to the node.
679 # In case of conflict in label keys, the applied set may differ depending on
680 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
681 # and conflicts should be avoided.
682 # For more information, including usage and the valid values, see:
683 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
684 &quot;a_key&quot;: &quot;A String&quot;,
685 },
686 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
687 # The smallest allowed disk size is 10GB.
688 #
689 # If unspecified, the default disk size is 100GB.
690 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
691 # workloads on the node pool.
692 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
693 # on the node pool.
694 },
695 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
696 # See https://cloud.google.com/compute/docs/gpus for more information about
697 # support for GPUs.
698 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700699 &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)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700701 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -0700702 },
703 ],
704 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
705 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
706 # `n1-standard-1`).
707 #
708 # If unspecified, the default machine type is
709 # `n1-standard-1`.
710 &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;)
711 #
712 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
713 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -0700714 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
715 #
716 # Enables monitoring and attestation of the boot integrity of the instance.
717 # The attestation is performed against the integrity policy baseline. This
718 # baseline is initially derived from the implicitly trusted boot image when
719 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700720 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
721 #
722 # Secure Boot helps ensure that the system only runs authentic software by
723 # verifying the digital signature of all boot components, and halting the
724 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700725 },
726 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
727 # scheduled on the specified or newer CPU platform. Applicable values are the
728 # friendly names of CPU platforms, such as
729 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
730 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
731 # information, read [how to specify min CPU
732 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
733 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
734 # https://cloud.google.com/compute/docs/instances/preemptible for more
735 # information about preemptible VM instances.
736 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700737 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700738 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700739 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -0700740 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700741 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700742 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
743 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700744 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700745 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
746 #
747 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
748 # in length. These are reflected as part of a URL in the metadata server.
749 # Additionally, to avoid ambiguity, keys must not conflict with any other
750 # metadata keys for the project or be one of the reserved keys:
751 # &quot;cluster-location&quot;
752 # &quot;cluster-name&quot;
753 # &quot;cluster-uid&quot;
754 # &quot;configure-sh&quot;
755 # &quot;containerd-configure-sh&quot;
756 # &quot;enable-os-login&quot;
757 # &quot;gci-ensure-gke-docker&quot;
758 # &quot;gci-metrics-enabled&quot;
759 # &quot;gci-update-strategy&quot;
760 # &quot;instance-template&quot;
761 # &quot;kube-env&quot;
762 # &quot;startup-script&quot;
763 # &quot;user-data&quot;
764 # &quot;disable-address-manager&quot;
765 # &quot;windows-startup-script-ps1&quot;
766 # &quot;common-psm1&quot;
767 # &quot;k8s-node-setup-psm1&quot;
768 # &quot;install-ssh-psm1&quot;
769 # &quot;user-profile-psm1&quot;
770 # &quot;serial-port-logging-enable&quot;
771 #
772 # Values are free-form strings, and only have meaning as interpreted by
773 # the image running in the instance. The only restriction placed on them is
774 # that each value&#x27;s size must be less than or equal to 32 KB.
775 #
776 # The total size of all keys and values must be less than 512 KB.
777 &quot;a_key&quot;: &quot;A String&quot;,
778 },
779 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
780 # the specified [Zonal Compute
781 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
782 # to this node pool.
783 # is the configuration of desired reservation which instances could take
784 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -0700785 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
786 &quot;A String&quot;,
787 ],
788 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700789 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
790 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
791 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700792 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700793 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
794 # valid sources or targets for network firewalls and are specified by
795 # the client during cluster or node pool creation. Each tag within the list
796 # must comply with RFC1035.
797 &quot;A String&quot;,
798 ],
799 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
800 # Specify the email address of the Service Account; otherwise, if no Service
801 # Account is specified, the &quot;default&quot; service account is used.
802 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
803 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -0700804 },
805 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
806 # simultaneously on a node in the node pool.
807 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
808 },
809 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
810 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
811 # node pool.
812 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
813 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700814 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
815 # with the approximate start time for the upgrades, in
816 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700817 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
818 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -0700819 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700820 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
821 # pool. If enabled, the nodes in this node pool will be monitored and, if
822 # they fail health checks too many times, an automatic repair action will be
823 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700824 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
825 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
826 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700827 },
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 Kim4ed7d3f2020-05-27 12:20:54 -0700863 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
864 # node pool instance, if available.
865 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
866 # only if a valid configuration is present.
867 # adjust the size of the node pool to the current cluster usage.
868 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
869 # has to enough quota to scale up the cluster.
870 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
871 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
872 # max_node_count.
873 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
874 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700875 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
876 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
877 # is sufficient for this number of instances. You must also have available
878 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -0700879 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
880 &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 -0700881 # disruption caused by an upgrade.
882 #
883 # maxUnavailable controls the number of nodes that can be simultaneously
884 # unavailable.
885 #
886 # maxSurge controls the number of additional nodes that can be added to the
887 # node pool temporarily for the time of the upgrade to increase the number of
888 # available nodes.
889 #
890 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
891 # nodes are being upgraded at the same time).
892 #
893 # Note: upgrades inevitably introduce some disruption since workloads need to
894 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
895 # this holds true. (Disruption stays within the limits of
896 # PodDisruptionBudget, if it is configured.)
897 #
898 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
899 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
900 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
901 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
902 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700903 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700904 # the upgrade process. A node is considered available if its status is
905 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700906 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
907 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700908 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700909 &quot;locations&quot;: [ # The list of Google Compute Engine
910 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
911 # NodePool&#x27;s nodes should be located.
912 &quot;A String&quot;,
913 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700914 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
915 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
916 # associated with this node pool.
917 &quot;A String&quot;,
918 ],
919 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
920 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
921 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
922 { # StatusCondition describes why a cluster or a node pool has a certain status
923 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700924 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700925 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700926 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700927 ],
928 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
929 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700930 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
931 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700932 #
933 # The following scopes are recommended, but not required, and by default are
934 # not included:
935 #
936 # * `https://www.googleapis.com/auth/compute` is required for mounting
937 # persistent storage on your nodes.
938 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
939 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700940 # (the [Google Container
941 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700942 #
943 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
944 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700945 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700946 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700947 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700948 #
949 # For more information, including usage and the valid values, see:
950 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
951 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
952 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
953 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700954 # See
955 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
956 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700957 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700958 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
959 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700960 },
961 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700962 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
963 # These will added in addition to any default label(s) that
964 # Kubernetes may apply to the node.
965 # In case of conflict in label keys, the applied set may differ depending on
966 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
967 # and conflicts should be avoided.
968 # For more information, including usage and the valid values, see:
969 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
970 &quot;a_key&quot;: &quot;A String&quot;,
971 },
972 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
973 # The smallest allowed disk size is 10GB.
974 #
975 # If unspecified, the default disk size is 100GB.
976 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
977 # workloads on the node pool.
978 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
979 # on the node pool.
980 },
981 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
982 # See https://cloud.google.com/compute/docs/gpus for more information about
983 # support for GPUs.
984 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700985 &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)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700987 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -0700988 },
989 ],
990 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
991 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
992 # `n1-standard-1`).
993 #
994 # If unspecified, the default machine type is
995 # `n1-standard-1`.
996 &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;)
997 #
998 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
999 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -07001000 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1001 #
1002 # Enables monitoring and attestation of the boot integrity of the instance.
1003 # The attestation is performed against the integrity policy baseline. This
1004 # baseline is initially derived from the implicitly trusted boot image when
1005 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001006 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1007 #
1008 # Secure Boot helps ensure that the system only runs authentic software by
1009 # verifying the digital signature of all boot components, and halting the
1010 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001011 },
1012 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1013 # scheduled on the specified or newer CPU platform. Applicable values are the
1014 # friendly names of CPU platforms, such as
1015 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1016 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1017 # information, read [how to specify min CPU
1018 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1019 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1020 # https://cloud.google.com/compute/docs/instances/preemptible for more
1021 # information about preemptible VM instances.
1022 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001023 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001024 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001025 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07001026 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001027 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001028 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1029 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001030 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001031 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1032 #
1033 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1034 # in length. These are reflected as part of a URL in the metadata server.
1035 # Additionally, to avoid ambiguity, keys must not conflict with any other
1036 # metadata keys for the project or be one of the reserved keys:
1037 # &quot;cluster-location&quot;
1038 # &quot;cluster-name&quot;
1039 # &quot;cluster-uid&quot;
1040 # &quot;configure-sh&quot;
1041 # &quot;containerd-configure-sh&quot;
1042 # &quot;enable-os-login&quot;
1043 # &quot;gci-ensure-gke-docker&quot;
1044 # &quot;gci-metrics-enabled&quot;
1045 # &quot;gci-update-strategy&quot;
1046 # &quot;instance-template&quot;
1047 # &quot;kube-env&quot;
1048 # &quot;startup-script&quot;
1049 # &quot;user-data&quot;
1050 # &quot;disable-address-manager&quot;
1051 # &quot;windows-startup-script-ps1&quot;
1052 # &quot;common-psm1&quot;
1053 # &quot;k8s-node-setup-psm1&quot;
1054 # &quot;install-ssh-psm1&quot;
1055 # &quot;user-profile-psm1&quot;
1056 # &quot;serial-port-logging-enable&quot;
1057 #
1058 # Values are free-form strings, and only have meaning as interpreted by
1059 # the image running in the instance. The only restriction placed on them is
1060 # that each value&#x27;s size must be less than or equal to 32 KB.
1061 #
1062 # The total size of all keys and values must be less than 512 KB.
1063 &quot;a_key&quot;: &quot;A String&quot;,
1064 },
1065 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1066 # the specified [Zonal Compute
1067 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1068 # to this node pool.
1069 # is the configuration of desired reservation which instances could take
1070 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -07001071 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1072 &quot;A String&quot;,
1073 ],
1074 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001075 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1076 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1077 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001078 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001079 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
1080 # valid sources or targets for network firewalls and are specified by
1081 # the client during cluster or node pool creation. Each tag within the list
1082 # must comply with RFC1035.
1083 &quot;A String&quot;,
1084 ],
1085 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
1086 # Specify the email address of the Service Account; otherwise, if no Service
1087 # Account is specified, the &quot;default&quot; service account is used.
1088 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1089 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -07001090 },
1091 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1092 # simultaneously on a node in the node pool.
1093 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1094 },
1095 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1096 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1097 # node pool.
1098 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1099 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001100 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1101 # with the approximate start time for the upgrades, in
1102 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001103 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1104 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07001105 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001106 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1107 # pool. If enabled, the nodes in this node pool will be monitored and, if
1108 # they fail health checks too many times, an automatic repair action will be
1109 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001110 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1111 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1112 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001113 },
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 Kim4ed7d3f2020-05-27 12:20:54 -07001160 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1161 { # StatusCondition describes why a cluster or a node pool has a certain status
1162 # (e.g., ERROR or DEGRADED).
1163 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1164 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1165 },
1166 ],
1167 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1168 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1169 # Unset for single-stage operations.
1170 &quot;stages&quot;: [ # Substages of an operation or a stage.
1171 # Object with schema name: OperationProgress
1172 ],
1173 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1174 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1175 # {name: &quot;nodes total&quot;, int_value: 32}]
1176 # or
1177 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1178 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1179 { # Progress metric is (string, int|float|string) pair.
1180 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1181 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1182 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1183 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1184 },
1185 ],
1186 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1187 # Unset for single-stage operations.
1188 },
1189 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1190 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1191 # operation is taking place. This field is deprecated, use location instead.
1192 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1193 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1194 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1195 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1196 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1197 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001198 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1199 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001200 { # StatusCondition describes why a cluster or a node pool has a certain status
1201 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001202 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001203 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001204 },
1205 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001206 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001207 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001208 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001209 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1210 # or
1211 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1212 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001213 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1214 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001231 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1232 # cluster resides. This field has been deprecated and replaced by the name
1233 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001234 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to set
1235 # autoscaler settings. Specified in the format
1236 # `projects/*/locations/*/clusters/*/nodePools/*`.
1237 &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 -07001238 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -07001239 &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 -07001240 # has to enough quota to scale up the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001241 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Bu Sun Kim65020912020-05-20 12:08:20 -07001242 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1243 # max_node_count.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001244 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001245 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001246 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1247 # number](https://support.google.com/cloud/answer/6158840).
1248 # This field has been deprecated and replaced by the name field.
1249 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
1250 # This field has been deprecated and replaced by the name field.
1251 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade.
1252 # This field has been deprecated and replaced by the name field.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001265 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1266 { # StatusCondition describes why a cluster or a node pool has a certain status
1267 # (e.g., ERROR or DEGRADED).
1268 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1269 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1270 },
1271 ],
1272 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1273 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1274 # Unset for single-stage operations.
1275 &quot;stages&quot;: [ # Substages of an operation or a stage.
1276 # Object with schema name: OperationProgress
1277 ],
1278 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1279 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1280 # {name: &quot;nodes total&quot;, int_value: 32}]
1281 # or
1282 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1283 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1284 { # Progress metric is (string, int|float|string) pair.
1285 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1286 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1287 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1288 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1289 },
1290 ],
1291 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1292 # Unset for single-stage operations.
1293 },
1294 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1295 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1296 # operation is taking place. This field is deprecated, use location instead.
1297 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1298 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1299 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1300 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1301 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1302 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001303 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1304 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001305 { # StatusCondition describes why a cluster or a node pool has a certain status
1306 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001307 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001308 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001309 },
1310 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001311 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001312 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001313 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001314 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1315 # or
1316 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1317 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001318 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1319 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001337 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1338 # cluster resides. This field has been deprecated and replaced by the name
1339 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001340 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1341 # management properties. Specified in the format
1342 # `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001343 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Required. NodeManagement configuration for the node pool.
1344 # node pool.
1345 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1346 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001347 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1348 # with the approximate start time for the upgrades, in
1349 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001350 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1351 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07001352 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001353 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1354 # pool. If enabled, the nodes in this node pool will be monitored and, if
1355 # they fail health checks too many times, an automatic repair action will be
1356 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001357 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1358 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1359 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001360 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001361 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1362 # number](https://support.google.com/cloud/answer/6158840).
1363 # This field has been deprecated and replaced by the name field.
1364 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
1365 # This field has been deprecated and replaced by the name field.
1366 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update.
1367 # This field has been deprecated and replaced by the name field.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001380 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1381 { # StatusCondition describes why a cluster or a node pool has a certain status
1382 # (e.g., ERROR or DEGRADED).
1383 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1384 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1385 },
1386 ],
1387 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1388 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1389 # Unset for single-stage operations.
1390 &quot;stages&quot;: [ # Substages of an operation or a stage.
1391 # Object with schema name: OperationProgress
1392 ],
1393 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1394 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1395 # {name: &quot;nodes total&quot;, int_value: 32}]
1396 # or
1397 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1398 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1399 { # Progress metric is (string, int|float|string) pair.
1400 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1401 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1402 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1403 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1404 },
1405 ],
1406 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1407 # Unset for single-stage operations.
1408 },
1409 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1410 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1411 # operation is taking place. This field is deprecated, use location instead.
1412 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1413 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1414 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1415 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1416 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1417 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001418 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1419 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001420 { # StatusCondition describes why a cluster or a node pool has a certain status
1421 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001422 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001423 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001424 },
1425 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001426 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001427 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001428 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001429 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1430 # or
1431 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1432 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001433 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1434 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001452 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1453 # cluster resides. This field has been deprecated and replaced by the name
1454 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001455 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
1456 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1457 # size.
1458 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1459 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001460 # number](https://support.google.com/cloud/answer/6158840).
1461 # This field has been deprecated and replaced by the name field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001462 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
1463 # This field has been deprecated and replaced by the name field.
1464 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001478 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1479 { # StatusCondition describes why a cluster or a node pool has a certain status
1480 # (e.g., ERROR or DEGRADED).
1481 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1482 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1483 },
1484 ],
1485 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1486 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1487 # Unset for single-stage operations.
1488 &quot;stages&quot;: [ # Substages of an operation or a stage.
1489 # Object with schema name: OperationProgress
1490 ],
1491 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1492 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1493 # {name: &quot;nodes total&quot;, int_value: 32}]
1494 # or
1495 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1496 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1497 { # Progress metric is (string, int|float|string) pair.
1498 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1499 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1500 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1501 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1502 },
1503 ],
1504 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1505 # Unset for single-stage operations.
1506 },
1507 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1508 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1509 # operation is taking place. This field is deprecated, use location instead.
1510 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1511 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1512 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1513 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1514 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1515 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001516 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1517 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001518 { # StatusCondition describes why a cluster or a node pool has a certain status
1519 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001520 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001521 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001522 },
1523 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001524 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001525 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001526 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001527 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1528 # or
1529 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1530 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001531 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1532 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001548 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
1549 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001550 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1551 # cluster resides. This field has been deprecated and replaced by the name
1552 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001553 &quot;nodeVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the nodes to (typically an
1554 # upgrade).
1555 #
1556 # Users may specify either explicit versions offered by Kubernetes Engine or
1557 # version aliases, which have the following behavior:
1558 #
1559 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1560 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1561 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1562 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1563 # - &quot;-&quot;: picks the Kubernetes master version
1564 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to
1565 # update. Specified in the format
1566 # `projects/*/locations/*/clusters/*/nodePools/*`.
1567 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001568 # number](https://support.google.com/cloud/answer/6158840).
1569 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001570 &quot;locations&quot;: [ # The desired list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001571 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07001572 # node pool&#x27;s nodes should be located. Changing the locations for a node pool
Dan O'Mearadd494642020-05-01 07:42:23 -07001573 # will result in nodes being either created or removed from the node pool,
1574 # depending on whether locations are being added or removed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001575 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001576 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001577 &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 -07001578 # disruption caused by an upgrade.
1579 #
1580 # maxUnavailable controls the number of nodes that can be simultaneously
1581 # unavailable.
1582 #
1583 # maxSurge controls the number of additional nodes that can be added to the
1584 # node pool temporarily for the time of the upgrade to increase the number of
1585 # available nodes.
1586 #
1587 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1588 # nodes are being upgraded at the same time).
1589 #
1590 # Note: upgrades inevitably introduce some disruption since workloads need to
1591 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1592 # this holds true. (Disruption stays within the limits of
1593 # PodDisruptionBudget, if it is configured.)
1594 #
1595 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1596 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1597 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1598 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1599 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001600 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001601 # the upgrade process. A node is considered available if its status is
1602 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001603 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1604 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001605 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001606 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
1607 # This field has been deprecated and replaced by the name field.
1608 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The desired workload metadata config for the node pool.
1609 # workloads on the node pool.
1610 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1611 # on the node pool.
1612 },
1613 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade.
1614 # This field has been deprecated and replaced by the name field.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001627 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1628 { # StatusCondition describes why a cluster or a node pool has a certain status
1629 # (e.g., ERROR or DEGRADED).
1630 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1631 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1632 },
1633 ],
1634 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1635 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1636 # Unset for single-stage operations.
1637 &quot;stages&quot;: [ # Substages of an operation or a stage.
1638 # Object with schema name: OperationProgress
1639 ],
1640 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1641 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1642 # {name: &quot;nodes total&quot;, int_value: 32}]
1643 # or
1644 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1645 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1646 { # Progress metric is (string, int|float|string) pair.
1647 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1648 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1649 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1650 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1651 },
1652 ],
1653 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1654 # Unset for single-stage operations.
1655 },
1656 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1657 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1658 # operation is taking place. This field is deprecated, use location instead.
1659 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1660 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1661 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1662 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1663 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1664 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001665 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1666 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001667 { # StatusCondition describes why a cluster or a node pool has a certain status
1668 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001669 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001670 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001671 },
1672 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001673 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001674 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001675 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001676 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1677 # or
1678 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1679 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001680 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1681 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001682 }</pre>
1683</div>
1684
1685</body></html>