blob: 62a882c874f5a32c86404cc56ee6b1e32cc4b31b [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="container_v1beta1.html">Kubernetes Engine API</a> . <a href="container_v1beta1.projects.html">projects</a> . <a href="container_v1beta1.projects.locations.html">locations</a> . <a href="container_v1beta1.projects.locations.clusters.html">clusters</a> . <a href="container_v1beta1.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, projectId=None, zone=None, clusterId=None, nodePoolId=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 of a specific 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 of a specific node pool.</p>
104<h3>Method Details</h3>
105<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code class="details" id="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;, # Required. 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;, # Required. 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 Kim65020912020-05-20 12:08:20 -0700133 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
134 &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 -0700135 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
136 # scheduled on the specified or newer CPU platform. Applicable values are the
137 # friendly names of CPU platforms, such as
138 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
139 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
140 # information, read [how to specify min CPU
141 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700142 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
143 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
144 #
145 # Enables monitoring and attestation of the boot integrity of the instance.
146 # The attestation is performed against the integrity policy baseline. This
147 # baseline is initially derived from the implicitly trusted boot image when
148 # the instance is created.
149 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
150 #
151 # Secure Boot helps ensure that the system only runs authentic software by
152 # verifying the digital signature of all boot components, and halting the
153 # boot process if signature verification fails.
154 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
156 # https://cloud.google.com/compute/docs/instances/preemptible for more
157 # inforamtion about preemptible VM instances.
158 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700159 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700160 # The limit for this value is dependent upon the maximum number of
161 # disks available on a machine per zone. See:
162 # https://cloud.google.com/compute/docs/disks/local-ssd
163 # for more information.
164 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
165 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
166 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
167 },
168 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
169 #
170 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
171 # in length. These are reflected as part of a URL in the metadata server.
172 # Additionally, to avoid ambiguity, keys must not conflict with any other
173 # metadata keys for the project or be one of the reserved keys:
174 # &quot;cluster-location&quot;
175 # &quot;cluster-name&quot;
176 # &quot;cluster-uid&quot;
177 # &quot;configure-sh&quot;
178 # &quot;containerd-configure-sh&quot;
179 # &quot;enable-oslogin&quot;
180 # &quot;gci-ensure-gke-docker&quot;
181 # &quot;gci-metrics-enabled&quot;
182 # &quot;gci-update-strategy&quot;
183 # &quot;instance-template&quot;
184 # &quot;kube-env&quot;
185 # &quot;startup-script&quot;
186 # &quot;user-data&quot;
187 # &quot;disable-address-manager&quot;
188 # &quot;windows-startup-script-ps1&quot;
189 # &quot;common-psm1&quot;
190 # &quot;k8s-node-setup-psm1&quot;
191 # &quot;install-ssh-psm1&quot;
192 # &quot;user-profile-psm1&quot;
193 # &quot;serial-port-logging-enable&quot;
194 # Values are free-form strings, and only have meaning as interpreted by
195 # the image running in the instance. The only restriction placed on them is
196 # that each value&#x27;s size must be less than or equal to 32 KB.
197 #
198 # The total size of all keys and values must be less than 512 KB.
199 &quot;a_key&quot;: &quot;A String&quot;,
200 },
201 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
202 # the specified [Zonal Compute
203 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
204 # to this node pool.
205 # is the configuration of desired reservation which instances could take
206 # capacity from.
207 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
208 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
209 # the key and specify the name of your reservation as its value.
210 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
211 &quot;A String&quot;,
212 ],
213 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
214 },
215 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700216 # valid sources or targets for network firewalls and are specified by
217 # the client during cluster or node pool creation. Each tag within the list
218 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700220 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700221 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700222 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700223 # Account is specified, the &quot;default&quot; service account is used.
224 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
225 # the latest version of it will be used.
226 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
227 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700228 #
229 # The following scopes are recommended, but not required, and by default are
230 # not included:
231 #
232 # * `https://www.googleapis.com/auth/compute` is required for mounting
233 # persistent storage on your nodes.
234 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
235 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700236 # (the [Google Container
237 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700238 #
239 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
240 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700241 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700242 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700244 #
245 # For more information, including usage and the valid values, see:
246 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
247 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
248 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
249 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 # See
251 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
252 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700253 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700254 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
255 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700256 },
257 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
259 # These will added in addition to any default label(s) that
260 # Kubernetes may apply to the node.
261 # In case of conflict in label keys, the applied set may differ depending on
262 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
263 # and conflicts should be avoided.
264 # For more information, including usage and the valid values, see:
265 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
266 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700267 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700268 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
269 # The smallest allowed disk size is 10GB.
270 #
271 # If unspecified, the default disk size is 100GB.
272 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
273 # workloads on the node pool.
274 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
275 # workloads running on the node.
276 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
277 # on the node pool.
278 },
279 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
280 # See https://cloud.google.com/compute/docs/gpus for more information about
281 # support for GPUs.
282 { # AcceleratorConfig represents a Hardware Accelerator request.
283 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
284 # [here](https://cloud.google.com/compute/docs/gpus)
285 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
286 },
287 ],
288 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
289 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
290 # `n1-standard-1`).
291 #
292 # If unspecified, the default machine type is
293 # `n1-standard-1`.
294 &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;)
295 #
296 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
297 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
298 # The Customer Managed Encryption Key used to encrypt the boot disk attached
299 # to each node in the node pool. This should be of the form
300 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
301 # For more information about protecting resources with Cloud KMS Keys please
302 # see:
303 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700304 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
306 # simultaneously on a node in the node pool.
307 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
308 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700309 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
311 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700312 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700313 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700314 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
315 # the Auto Upgrades will proceed.
316 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
317 # with the description of the upgrade.
318 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
319 # with the approximate start time for the upgrades, in
320 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
321 },
322 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700323 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
324 # node pool instance, if available.
325 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
326 # only if a valid configuration is present.
327 # adjust the size of the node pool to the current cluster usage.
328 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
329 # has to enough quota to scale up the cluster.
330 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
331 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
332 # max_node_count.
333 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
334 },
335 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
336 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
337 # is sufficient for this number of instances. You must also have available
338 # firewall and routes quota.
339 &quot;locations&quot;: [ # The list of Google Compute Engine
340 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
341 # NodePool&#x27;s nodes should be located.
342 &quot;A String&quot;,
343 ],
344 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
345 # disruption caused by an upgrade.
346 #
347 # maxUnavailable controls the number of nodes that can be simultaneously
348 # unavailable.
349 #
350 # maxSurge controls the number of additional nodes that can be added to the
351 # node pool temporarily for the time of the upgrade to increase the number of
352 # available nodes.
353 #
354 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
355 # nodes are being upgraded at the same time).
356 #
357 # Note: upgrades inevitably introduce some disruption since workloads need to
358 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
359 # this holds true. (Disruption stays within the limits of
360 # PodDisruptionBudget, if it is configured.)
361 #
362 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
363 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
364 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
365 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
366 # there are always at least 4 nodes available.
367 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
368 # the upgrade process. A node is considered available if its status is
369 # Ready.
370 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
371 # of the node pool during the upgrade process.
372 },
373 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
374 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
375 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
376 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
377 # associated with this node pool.
378 &quot;A String&quot;,
379 ],
380 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
381 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
382 { # StatusCondition describes why a cluster or a node pool has a certain status
383 # (e.g., ERROR or DEGRADED).
384 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
385 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
386 },
387 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700388 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700389 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
390 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700391 }
392
393 x__xgafv: string, V1 error format.
394 Allowed values
395 1 - v1 error format
396 2 - v2 error format
397
398Returns:
399 An object of the form:
400
401 { # This operation resource represents operations that may have happened or are
402 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700403 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
404 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
405 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
406 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
407 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700409 { # StatusCondition describes why a cluster or a node pool has a certain status
410 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700411 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
412 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700413 },
414 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700415 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
416 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700417 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700418 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
419 # or
420 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
421 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700422 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
423 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
424 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
425 { # StatusCondition describes why a cluster or a node pool has a certain status
426 # (e.g., ERROR or DEGRADED).
427 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
428 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
429 },
430 ],
431 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700432 &quot;metrics&quot;: [ # Progress metric bundle, for example:
433 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
434 # {name: &quot;nodes total&quot;, int_value: 32}]
435 # or
436 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
437 # {name: &quot;progress scale&quot;, double_value: 1.0}]
438 { # Progress metric is (string, int|float|string) pair.
439 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
440 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
441 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
442 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
443 },
444 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700445 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
446 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700447 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
448 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700449 &quot;stages&quot;: [ # Substages of an operation or a stage.
450 # Object with schema name: OperationProgress
451 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700452 },
453 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
454 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
455 # operation is taking place. This field is deprecated, use location instead.
456 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
457 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700458 }</pre>
459</div>
460
461<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 <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 -0700463 <pre>Deletes a node pool from a cluster.
464
465Args:
466 name: string, The name (project, location, cluster, node pool id) of the node pool to
467delete. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700468`projects/*/locations/*/clusters/*/nodePools/*`. (required)
469 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
470number](https://developers.google.com/console/help/new/#projectnumber).
471This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700472 zone: string, Required. Deprecated. The name of the Google Compute Engine
473[zone](https://cloud.google.com/compute/docs/zones#available) in which the
474cluster resides. This field has been deprecated and replaced by the name
475field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700476 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700477This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700478 nodePoolId: string, Required. Deprecated. The name of the node pool to delete.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700479This field has been deprecated and replaced by the name field.
480 x__xgafv: string, V1 error format.
481 Allowed values
482 1 - v1 error format
483 2 - v2 error format
484
485Returns:
486 An object of the form:
487
488 { # This operation resource represents operations that may have happened or are
489 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700490 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
491 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
492 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
493 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
494 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700495 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700496 { # StatusCondition describes why a cluster or a node pool has a certain status
497 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700498 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
499 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700500 },
501 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700502 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
503 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700505 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
506 # or
507 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
508 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700509 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
510 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
511 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
512 { # StatusCondition describes why a cluster or a node pool has a certain status
513 # (e.g., ERROR or DEGRADED).
514 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
515 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
516 },
517 ],
518 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700519 &quot;metrics&quot;: [ # Progress metric bundle, for example:
520 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
521 # {name: &quot;nodes total&quot;, int_value: 32}]
522 # or
523 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
524 # {name: &quot;progress scale&quot;, double_value: 1.0}]
525 { # Progress metric is (string, int|float|string) pair.
526 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
527 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
528 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
529 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
530 },
531 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700532 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
533 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700534 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
535 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700536 &quot;stages&quot;: [ # Substages of an operation or a stage.
537 # Object with schema name: OperationProgress
538 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700539 },
540 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
541 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
542 # operation is taking place. This field is deprecated, use location instead.
543 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
544 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700545 }</pre>
546</div>
547
548<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700549 <code class="details" id="get">get(name, projectId=None, zone=None, clusterId=None, nodePoolId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700550 <pre>Retrieves the requested node pool.
551
552Args:
553 name: string, The name (project, location, cluster, node pool id) of the node pool to
554get. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700555`projects/*/locations/*/clusters/*/nodePools/*`. (required)
556 projectId: string, Required. 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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700559 zone: string, Required. 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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700563 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700564This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700565 nodePoolId: string, Required. Deprecated. The name of the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700566This field has been deprecated and replaced by the name field.
567 x__xgafv: string, V1 error format.
568 Allowed values
569 1 - v1 error format
570 2 - v2 error format
571
572Returns:
573 An object of the form:
574
Bu Sun Kim65020912020-05-20 12:08:20 -0700575 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
576 # 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 -0700577 # specification, under the control of the cluster master. They may have a set
578 # of Kubernetes labels applied to them, which may be used to reference them
579 # during pod scheduling. They may also be resized up or down, to accommodate
580 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700581 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
582 &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 -0700583 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
584 # scheduled on the specified or newer CPU platform. Applicable values are the
585 # friendly names of CPU platforms, such as
586 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
587 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
588 # information, read [how to specify min CPU
589 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700590 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
591 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
592 #
593 # Enables monitoring and attestation of the boot integrity of the instance.
594 # The attestation is performed against the integrity policy baseline. This
595 # baseline is initially derived from the implicitly trusted boot image when
596 # the instance is created.
597 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
598 #
599 # Secure Boot helps ensure that the system only runs authentic software by
600 # verifying the digital signature of all boot components, and halting the
601 # boot process if signature verification fails.
602 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
604 # https://cloud.google.com/compute/docs/instances/preemptible for more
605 # inforamtion about preemptible VM instances.
606 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700607 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700608 # The limit for this value is dependent upon the maximum number of
609 # disks available on a machine per zone. See:
610 # https://cloud.google.com/compute/docs/disks/local-ssd
611 # for more information.
612 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
613 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
614 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
615 },
616 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
617 #
618 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
619 # in length. These are reflected as part of a URL in the metadata server.
620 # Additionally, to avoid ambiguity, keys must not conflict with any other
621 # metadata keys for the project or be one of the reserved keys:
622 # &quot;cluster-location&quot;
623 # &quot;cluster-name&quot;
624 # &quot;cluster-uid&quot;
625 # &quot;configure-sh&quot;
626 # &quot;containerd-configure-sh&quot;
627 # &quot;enable-oslogin&quot;
628 # &quot;gci-ensure-gke-docker&quot;
629 # &quot;gci-metrics-enabled&quot;
630 # &quot;gci-update-strategy&quot;
631 # &quot;instance-template&quot;
632 # &quot;kube-env&quot;
633 # &quot;startup-script&quot;
634 # &quot;user-data&quot;
635 # &quot;disable-address-manager&quot;
636 # &quot;windows-startup-script-ps1&quot;
637 # &quot;common-psm1&quot;
638 # &quot;k8s-node-setup-psm1&quot;
639 # &quot;install-ssh-psm1&quot;
640 # &quot;user-profile-psm1&quot;
641 # &quot;serial-port-logging-enable&quot;
642 # Values are free-form strings, and only have meaning as interpreted by
643 # the image running in the instance. The only restriction placed on them is
644 # that each value&#x27;s size must be less than or equal to 32 KB.
645 #
646 # The total size of all keys and values must be less than 512 KB.
647 &quot;a_key&quot;: &quot;A String&quot;,
648 },
649 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
650 # the specified [Zonal Compute
651 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
652 # to this node pool.
653 # is the configuration of desired reservation which instances could take
654 # capacity from.
655 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
656 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
657 # the key and specify the name of your reservation as its value.
658 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
659 &quot;A String&quot;,
660 ],
661 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
662 },
663 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700664 # valid sources or targets for network firewalls and are specified by
665 # the client during cluster or node pool creation. Each tag within the list
666 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700667 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700668 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700669 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700670 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700671 # Account is specified, the &quot;default&quot; service account is used.
672 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
673 # the latest version of it will be used.
674 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
675 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700676 #
677 # The following scopes are recommended, but not required, and by default are
678 # not included:
679 #
680 # * `https://www.googleapis.com/auth/compute` is required for mounting
681 # persistent storage on your nodes.
682 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
683 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700684 # (the [Google Container
685 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700686 #
687 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
688 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700689 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700690 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700691 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700692 #
693 # For more information, including usage and the valid values, see:
694 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
695 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
696 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
697 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700698 # See
699 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
700 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700701 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700702 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
703 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700704 },
705 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700706 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
707 # These will added in addition to any default label(s) that
708 # Kubernetes may apply to the node.
709 # In case of conflict in label keys, the applied set may differ depending on
710 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
711 # and conflicts should be avoided.
712 # For more information, including usage and the valid values, see:
713 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
714 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700715 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700716 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
717 # The smallest allowed disk size is 10GB.
718 #
719 # If unspecified, the default disk size is 100GB.
720 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
721 # workloads on the node pool.
722 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
723 # workloads running on the node.
724 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
725 # on the node pool.
726 },
727 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
728 # See https://cloud.google.com/compute/docs/gpus for more information about
729 # support for GPUs.
730 { # AcceleratorConfig represents a Hardware Accelerator request.
731 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
732 # [here](https://cloud.google.com/compute/docs/gpus)
733 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
734 },
735 ],
736 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
737 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
738 # `n1-standard-1`).
739 #
740 # If unspecified, the default machine type is
741 # `n1-standard-1`.
742 &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;)
743 #
744 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
745 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
746 # The Customer Managed Encryption Key used to encrypt the boot disk attached
747 # to each node in the node pool. This should be of the form
748 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
749 # For more information about protecting resources with Cloud KMS Keys please
750 # see:
751 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700752 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700753 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
754 # simultaneously on a node in the node pool.
755 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
756 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700757 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700758 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
759 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700760 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700761 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700762 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
763 # the Auto Upgrades will proceed.
764 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
765 # with the description of the upgrade.
766 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
767 # with the approximate start time for the upgrades, in
768 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
769 },
770 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700771 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
772 # node pool instance, if available.
773 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
774 # only if a valid configuration is present.
775 # adjust the size of the node pool to the current cluster usage.
776 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
777 # has to enough quota to scale up the cluster.
778 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
779 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
780 # max_node_count.
781 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
782 },
783 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
784 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
785 # is sufficient for this number of instances. You must also have available
786 # firewall and routes quota.
787 &quot;locations&quot;: [ # The list of Google Compute Engine
788 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
789 # NodePool&#x27;s nodes should be located.
790 &quot;A String&quot;,
791 ],
792 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
793 # disruption caused by an upgrade.
794 #
795 # maxUnavailable controls the number of nodes that can be simultaneously
796 # unavailable.
797 #
798 # maxSurge controls the number of additional nodes that can be added to the
799 # node pool temporarily for the time of the upgrade to increase the number of
800 # available nodes.
801 #
802 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
803 # nodes are being upgraded at the same time).
804 #
805 # Note: upgrades inevitably introduce some disruption since workloads need to
806 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
807 # this holds true. (Disruption stays within the limits of
808 # PodDisruptionBudget, if it is configured.)
809 #
810 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
811 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
812 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
813 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
814 # there are always at least 4 nodes available.
815 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
816 # the upgrade process. A node is considered available if its status is
817 # Ready.
818 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
819 # of the node pool during the upgrade process.
820 },
821 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
822 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
823 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
824 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
825 # associated with this node pool.
826 &quot;A String&quot;,
827 ],
828 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
829 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
830 { # StatusCondition describes why a cluster or a node pool has a certain status
831 # (e.g., ERROR or DEGRADED).
832 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
833 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
834 },
835 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700836 }</pre>
837</div>
838
839<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700840 <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 -0700841 <pre>Lists the node pools for a cluster.
842
843Args:
844 parent: string, The parent (project, location, cluster id) where the node pools will be
Bu Sun Kim65020912020-05-20 12:08:20 -0700845listed. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700846 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700847number](https://developers.google.com/console/help/new/#projectnumber).
848This field has been deprecated and replaced by the parent field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700849 zone: string, Required. Deprecated. The name of the Google Compute Engine
850[zone](https://cloud.google.com/compute/docs/zones#available) in which the
851cluster resides. This field has been deprecated and replaced by the parent
852field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700853 clusterId: string, Required. Deprecated. The name of the cluster.
854This field has been deprecated and replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700855 x__xgafv: string, V1 error format.
856 Allowed values
857 1 - v1 error format
858 2 - v2 error format
859
860Returns:
861 An object of the form:
862
863 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700864 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
865 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
866 # 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 -0700867 # specification, under the control of the cluster master. They may have a set
868 # of Kubernetes labels applied to them, which may be used to reference them
869 # during pod scheduling. They may also be resized up or down, to accommodate
870 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700871 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
872 &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 -0700873 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
874 # scheduled on the specified or newer CPU platform. Applicable values are the
875 # friendly names of CPU platforms, such as
876 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
877 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
878 # information, read [how to specify min CPU
879 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700880 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
881 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
882 #
883 # Enables monitoring and attestation of the boot integrity of the instance.
884 # The attestation is performed against the integrity policy baseline. This
885 # baseline is initially derived from the implicitly trusted boot image when
886 # the instance is created.
887 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
888 #
889 # Secure Boot helps ensure that the system only runs authentic software by
890 # verifying the digital signature of all boot components, and halting the
891 # boot process if signature verification fails.
892 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700893 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
894 # https://cloud.google.com/compute/docs/instances/preemptible for more
895 # inforamtion about preemptible VM instances.
896 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700897 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700898 # The limit for this value is dependent upon the maximum number of
899 # disks available on a machine per zone. See:
900 # https://cloud.google.com/compute/docs/disks/local-ssd
901 # for more information.
902 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
903 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
904 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
905 },
906 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
907 #
908 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
909 # in length. These are reflected as part of a URL in the metadata server.
910 # Additionally, to avoid ambiguity, keys must not conflict with any other
911 # metadata keys for the project or be one of the reserved keys:
912 # &quot;cluster-location&quot;
913 # &quot;cluster-name&quot;
914 # &quot;cluster-uid&quot;
915 # &quot;configure-sh&quot;
916 # &quot;containerd-configure-sh&quot;
917 # &quot;enable-oslogin&quot;
918 # &quot;gci-ensure-gke-docker&quot;
919 # &quot;gci-metrics-enabled&quot;
920 # &quot;gci-update-strategy&quot;
921 # &quot;instance-template&quot;
922 # &quot;kube-env&quot;
923 # &quot;startup-script&quot;
924 # &quot;user-data&quot;
925 # &quot;disable-address-manager&quot;
926 # &quot;windows-startup-script-ps1&quot;
927 # &quot;common-psm1&quot;
928 # &quot;k8s-node-setup-psm1&quot;
929 # &quot;install-ssh-psm1&quot;
930 # &quot;user-profile-psm1&quot;
931 # &quot;serial-port-logging-enable&quot;
932 # Values are free-form strings, and only have meaning as interpreted by
933 # the image running in the instance. The only restriction placed on them is
934 # that each value&#x27;s size must be less than or equal to 32 KB.
935 #
936 # The total size of all keys and values must be less than 512 KB.
937 &quot;a_key&quot;: &quot;A String&quot;,
938 },
939 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
940 # the specified [Zonal Compute
941 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
942 # to this node pool.
943 # is the configuration of desired reservation which instances could take
944 # capacity from.
945 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
946 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
947 # the key and specify the name of your reservation as its value.
948 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
949 &quot;A String&quot;,
950 ],
951 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
952 },
953 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700954 # valid sources or targets for network firewalls and are specified by
955 # the client during cluster or node pool creation. Each tag within the list
956 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700957 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700958 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700959 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700960 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700961 # Account is specified, the &quot;default&quot; service account is used.
962 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
963 # the latest version of it will be used.
964 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
965 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700966 #
967 # The following scopes are recommended, but not required, and by default are
968 # not included:
969 #
970 # * `https://www.googleapis.com/auth/compute` is required for mounting
971 # persistent storage on your nodes.
972 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
973 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700974 # (the [Google Container
975 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700976 #
977 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
978 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700979 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700980 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700981 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700982 #
983 # For more information, including usage and the valid values, see:
984 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
985 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
986 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
987 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700988 # See
989 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
990 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700991 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700992 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
993 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700994 },
995 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700996 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
997 # These will added in addition to any default label(s) that
998 # Kubernetes may apply to the node.
999 # In case of conflict in label keys, the applied set may differ depending on
1000 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1001 # and conflicts should be avoided.
1002 # For more information, including usage and the valid values, see:
1003 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1004 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001005 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001006 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1007 # The smallest allowed disk size is 10GB.
1008 #
1009 # If unspecified, the default disk size is 100GB.
1010 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1011 # workloads on the node pool.
1012 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
1013 # workloads running on the node.
1014 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1015 # on the node pool.
1016 },
1017 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1018 # See https://cloud.google.com/compute/docs/gpus for more information about
1019 # support for GPUs.
1020 { # AcceleratorConfig represents a Hardware Accelerator request.
1021 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1022 # [here](https://cloud.google.com/compute/docs/gpus)
1023 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1024 },
1025 ],
1026 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1027 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1028 # `n1-standard-1`).
1029 #
1030 # If unspecified, the default machine type is
1031 # `n1-standard-1`.
1032 &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;)
1033 #
1034 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1035 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
1036 # The Customer Managed Encryption Key used to encrypt the boot disk attached
1037 # to each node in the node pool. This should be of the form
1038 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
1039 # For more information about protecting resources with Cloud KMS Keys please
1040 # see:
1041 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001042 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001043 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1044 # simultaneously on a node in the node pool.
1045 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1046 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001047 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001048 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1049 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001050 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001051 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -07001052 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1053 # the Auto Upgrades will proceed.
1054 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1055 # with the description of the upgrade.
1056 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1057 # with the approximate start time for the upgrades, in
1058 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1059 },
1060 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001061 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1062 # node pool instance, if available.
1063 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
1064 # only if a valid configuration is present.
1065 # adjust the size of the node pool to the current cluster usage.
1066 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1067 # has to enough quota to scale up the cluster.
1068 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1069 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1070 # max_node_count.
1071 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1072 },
1073 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
1074 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
1075 # is sufficient for this number of instances. You must also have available
1076 # firewall and routes quota.
1077 &quot;locations&quot;: [ # The list of Google Compute Engine
1078 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1079 # NodePool&#x27;s nodes should be located.
1080 &quot;A String&quot;,
1081 ],
1082 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
1083 # disruption caused by an upgrade.
1084 #
1085 # maxUnavailable controls the number of nodes that can be simultaneously
1086 # unavailable.
1087 #
1088 # maxSurge controls the number of additional nodes that can be added to the
1089 # node pool temporarily for the time of the upgrade to increase the number of
1090 # available nodes.
1091 #
1092 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1093 # nodes are being upgraded at the same time).
1094 #
1095 # Note: upgrades inevitably introduce some disruption since workloads need to
1096 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1097 # this holds true. (Disruption stays within the limits of
1098 # PodDisruptionBudget, if it is configured.)
1099 #
1100 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1101 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1102 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1103 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1104 # there are always at least 4 nodes available.
1105 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
1106 # the upgrade process. A node is considered available if its status is
1107 # Ready.
1108 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1109 # of the node pool during the upgrade process.
1110 },
1111 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1112 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1113 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
1114 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1115 # associated with this node pool.
1116 &quot;A String&quot;,
1117 ],
1118 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1119 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1120 { # StatusCondition describes why a cluster or a node pool has a certain status
1121 # (e.g., ERROR or DEGRADED).
1122 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1123 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1124 },
1125 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001126 },
1127 ],
1128 }</pre>
1129</div>
1130
1131<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001132 <code class="details" id="rollback">rollback(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001133 <pre>Rolls back a previously Aborted or Failed NodePool upgrade.
1134This makes no changes if the last upgrade successfully completed.
1135
1136Args:
1137 name: string, The name (project, location, cluster, node pool id) of the node poll to
1138rollback upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07001139Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001140 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001141 The object takes the form of:
1142
1143{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
1144 # NodePool upgrade. This will be an no-op if the last upgrade successfully
1145 # completed.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001146 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to rollback.
1147 # This field has been deprecated and replaced by the name field.
1148 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to rollback.
1149 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001150 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node poll to
1151 # rollback upgrade.
1152 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1153 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001154 # number](https://support.google.com/cloud/answer/6158840).
1155 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001156 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001157 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1158 # cluster resides. This field has been deprecated and replaced by the name
1159 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001160 }
1161
1162 x__xgafv: string, V1 error format.
1163 Allowed values
1164 1 - v1 error format
1165 2 - v2 error format
1166
1167Returns:
1168 An object of the form:
1169
1170 { # This operation resource represents operations that may have happened or are
1171 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001172 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1173 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1174 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1175 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1176 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001177 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001178 { # StatusCondition describes why a cluster or a node pool has a certain status
1179 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001180 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1181 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001182 },
1183 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001184 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1185 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001186 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001187 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1188 # or
1189 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1190 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001191 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1192 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1193 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1194 { # StatusCondition describes why a cluster or a node pool has a certain status
1195 # (e.g., ERROR or DEGRADED).
1196 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1197 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1198 },
1199 ],
1200 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001201 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1202 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1203 # {name: &quot;nodes total&quot;, int_value: 32}]
1204 # or
1205 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1206 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1207 { # Progress metric is (string, int|float|string) pair.
1208 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1209 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1210 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1211 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1212 },
1213 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001214 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1215 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001216 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1217 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001218 &quot;stages&quot;: [ # Substages of an operation or a stage.
1219 # Object with schema name: OperationProgress
1220 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001221 },
1222 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1223 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1224 # operation is taking place. This field is deprecated, use location instead.
1225 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1226 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001227 }</pre>
1228</div>
1229
1230<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001231 <code class="details" id="setAutoscaling">setAutoscaling(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001232 <pre>Sets the autoscaling settings of a specific node pool.
1233
1234Args:
1235 name: string, The name (project, location, cluster, node pool) of the node pool to set
1236autoscaler settings. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001237`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001238 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001239 The object takes the form of:
1240
1241{ # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001242 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to set
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001243 # autoscaler settings. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001244 # `projects/*/locations/*/clusters/*/nodePools/*`.
1245 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Required. Autoscaling configuration for the node pool.
1246 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -07001247 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1248 # has to enough quota to scale up the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001249 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1250 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1251 # max_node_count.
1252 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001253 },
1254 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
1255 # number](https://support.google.com/cloud/answer/6158840).
1256 # This field has been deprecated and replaced by the name field.
1257 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
1258 # This field has been deprecated and replaced by the name field.
1259 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to upgrade.
1260 # This field has been deprecated and replaced by the name field.
1261 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001262 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1263 # cluster resides. This field has been deprecated and replaced by the name
1264 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001265 }
1266
1267 x__xgafv: string, V1 error format.
1268 Allowed values
1269 1 - v1 error format
1270 2 - v2 error format
1271
1272Returns:
1273 An object of the form:
1274
1275 { # This operation resource represents operations that may have happened or are
1276 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001277 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1278 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1279 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1280 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1281 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001282 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001283 { # StatusCondition describes why a cluster or a node pool has a certain status
1284 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001285 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1286 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001287 },
1288 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001289 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1290 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001291 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001292 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1293 # or
1294 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1295 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001296 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1297 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1298 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1299 { # StatusCondition describes why a cluster or a node pool has a certain status
1300 # (e.g., ERROR or DEGRADED).
1301 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1302 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1303 },
1304 ],
1305 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001306 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1307 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1308 # {name: &quot;nodes total&quot;, int_value: 32}]
1309 # or
1310 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1311 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1312 { # Progress metric is (string, int|float|string) pair.
1313 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1314 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1315 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1316 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1317 },
1318 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001319 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1320 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001321 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1322 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001323 &quot;stages&quot;: [ # Substages of an operation or a stage.
1324 # Object with schema name: OperationProgress
1325 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001326 },
1327 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1328 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1329 # operation is taking place. This field is deprecated, use location instead.
1330 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1331 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001332 }</pre>
1333</div>
1334
1335<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001336 <code class="details" id="setManagement">setManagement(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001337 <pre>Sets the NodeManagement options for a node pool.
1338
1339Args:
1340 name: string, The name (project, location, cluster, node pool id) of the node pool to set
1341management properties. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001342`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001343 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001344 The object takes the form of:
1345
1346{ # SetNodePoolManagementRequest sets the node management properties of a node
1347 # pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001348 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1349 # management properties. Specified in the format
1350 # `projects/*/locations/*/clusters/*/nodePools/*`.
1351 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001352 # number](https://support.google.com/cloud/answer/6158840).
1353 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001354 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Required. NodeManagement configuration for the node pool.
1355 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001356 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001357 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -07001358 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1359 # the Auto Upgrades will proceed.
1360 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1361 # with the description of the upgrade.
1362 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1363 # with the approximate start time for the upgrades, in
1364 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1365 },
1366 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001367 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
1368 # This field has been deprecated and replaced by the name field.
1369 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update.
1370 # This field has been deprecated and replaced by the name field.
1371 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
1372 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1373 # cluster resides. This field has been deprecated and replaced by the name
1374 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001375 }
1376
1377 x__xgafv: string, V1 error format.
1378 Allowed values
1379 1 - v1 error format
1380 2 - v2 error format
1381
1382Returns:
1383 An object of the form:
1384
1385 { # This operation resource represents operations that may have happened or are
1386 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001387 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1388 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1389 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1390 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1391 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001392 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001393 { # StatusCondition describes why a cluster or a node pool has a certain status
1394 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001395 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1396 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001397 },
1398 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001399 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1400 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001401 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001402 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1403 # or
1404 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1405 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001406 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1407 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1408 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1409 { # StatusCondition describes why a cluster or a node pool has a certain status
1410 # (e.g., ERROR or DEGRADED).
1411 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1412 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1413 },
1414 ],
1415 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001416 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1417 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1418 # {name: &quot;nodes total&quot;, int_value: 32}]
1419 # or
1420 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1421 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1422 { # Progress metric is (string, int|float|string) pair.
1423 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1424 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1425 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1426 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1427 },
1428 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001429 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1430 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001431 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1432 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001433 &quot;stages&quot;: [ # Substages of an operation or a stage.
1434 # Object with schema name: OperationProgress
1435 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001436 },
1437 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1438 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1439 # operation is taking place. This field is deprecated, use location instead.
1440 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1441 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001442 }</pre>
1443</div>
1444
1445<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001446 <code class="details" id="setSize">setSize(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001447 <pre>Sets the size for a specific node pool.
1448
1449Args:
1450 name: string, The name (project, location, cluster, node pool id) of the node pool to set
1451size.
Bu Sun Kim65020912020-05-20 12:08:20 -07001452Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001453 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001454 The object takes the form of:
1455
1456{ # SetNodePoolSizeRequest sets the size a node
1457 # pool.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001458 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
1459 # number](https://support.google.com/cloud/answer/6158840).
1460 # This field has been deprecated and replaced by the name field.
1461 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
1462 # This field has been deprecated and replaced by the name field.
1463 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update.
1464 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001465 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001466 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1467 # cluster resides. This field has been deprecated and replaced by the name
1468 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001469 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
1470 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1471 # size.
1472 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001473 }
1474
1475 x__xgafv: string, V1 error format.
1476 Allowed values
1477 1 - v1 error format
1478 2 - v2 error format
1479
1480Returns:
1481 An object of the form:
1482
1483 { # This operation resource represents operations that may have happened or are
1484 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001485 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1486 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1487 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1488 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1489 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001490 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001491 { # StatusCondition describes why a cluster or a node pool has a certain status
1492 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001493 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1494 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001495 },
1496 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001497 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1498 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001499 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001500 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1501 # or
1502 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1503 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001504 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1505 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1506 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1507 { # StatusCondition describes why a cluster or a node pool has a certain status
1508 # (e.g., ERROR or DEGRADED).
1509 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1510 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1511 },
1512 ],
1513 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001514 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1515 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1516 # {name: &quot;nodes total&quot;, int_value: 32}]
1517 # or
1518 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1519 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1520 { # Progress metric is (string, int|float|string) pair.
1521 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1522 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1523 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1524 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1525 },
1526 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001527 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1528 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001529 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1530 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001531 &quot;stages&quot;: [ # Substages of an operation or a stage.
1532 # Object with schema name: OperationProgress
1533 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001534 },
1535 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1536 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1537 # operation is taking place. This field is deprecated, use location instead.
1538 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1539 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001540 }</pre>
1541</div>
1542
1543<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001544 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001545 <pre>Updates the version and/or image type of a specific node pool.
1546
1547Args:
1548 name: string, The name (project, location, cluster, node pool) of the node pool to
1549update. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001550`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001551 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001552 The object takes the form of:
1553
1554{ # SetNodePoolVersionRequest updates the version of a node pool.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001555 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The desired workload metadata config for the node pool.
1556 # workloads on the node pool.
1557 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
1558 # workloads running on the node.
1559 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1560 # on the node pool.
1561 },
1562 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
1563 # This field has been deprecated and replaced by the name field.
1564 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to upgrade.
1565 # This field has been deprecated and replaced by the name field.
1566 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001567 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001568 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1569 # cluster resides. This field has been deprecated and replaced by the name
1570 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001571 &quot;nodeVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the nodes to (typically an
1572 # upgrade).
1573 #
1574 # Users may specify either explicit versions offered by Kubernetes Engine or
1575 # version aliases, which have the following behavior:
1576 #
1577 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1578 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1579 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1580 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1581 # - &quot;-&quot;: picks the Kubernetes master version
1582 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to
1583 # update. Specified in the format
1584 # `projects/*/locations/*/clusters/*/nodePools/*`.
1585 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001586 # number](https://support.google.com/cloud/answer/6158840).
1587 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001588 &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 -07001589 # disruption caused by an upgrade.
1590 #
1591 # maxUnavailable controls the number of nodes that can be simultaneously
1592 # unavailable.
1593 #
1594 # maxSurge controls the number of additional nodes that can be added to the
1595 # node pool temporarily for the time of the upgrade to increase the number of
1596 # available nodes.
1597 #
1598 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1599 # nodes are being upgraded at the same time).
1600 #
1601 # Note: upgrades inevitably introduce some disruption since workloads need to
1602 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1603 # this holds true. (Disruption stays within the limits of
1604 # PodDisruptionBudget, if it is configured.)
1605 #
1606 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1607 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1608 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1609 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1610 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001611 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001612 # the upgrade process. A node is considered available if its status is
1613 # Ready.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001614 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1615 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001616 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001617 &quot;locations&quot;: [ # The desired list of Google Compute Engine
1618 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1619 # node pool&#x27;s nodes should be located. Changing the locations for a node pool
1620 # will result in nodes being either created or removed from the node pool,
1621 # depending on whether locations are being added or removed.
1622 &quot;A String&quot;,
1623 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001624 }
1625
1626 x__xgafv: string, V1 error format.
1627 Allowed values
1628 1 - v1 error format
1629 2 - v2 error format
1630
1631Returns:
1632 An object of the form:
1633
1634 { # This operation resource represents operations that may have happened or are
1635 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001636 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1637 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1638 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1639 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1640 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001641 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001642 { # StatusCondition describes why a cluster or a node pool has a certain status
1643 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001644 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1645 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001646 },
1647 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001648 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1649 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001650 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001651 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1652 # or
1653 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1654 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001655 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1656 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1657 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1658 { # StatusCondition describes why a cluster or a node pool has a certain status
1659 # (e.g., ERROR or DEGRADED).
1660 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1661 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1662 },
1663 ],
1664 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001665 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1666 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1667 # {name: &quot;nodes total&quot;, int_value: 32}]
1668 # or
1669 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1670 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1671 { # Progress metric is (string, int|float|string) pair.
1672 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1673 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1674 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1675 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1676 },
1677 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001678 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1679 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001680 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1681 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001682 &quot;stages&quot;: [ # Substages of an operation or a stage.
1683 # Object with schema name: OperationProgress
1684 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001685 },
1686 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1687 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1688 # operation is taking place. This field is deprecated, use location instead.
1689 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1690 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001691 }</pre>
1692</div>
1693
1694</body></html>