blob: e84b9d7385ee197f88ca8bf56d2008cb8b41e112 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="container_v1.html">Kubernetes Engine API</a> . <a href="container_v1.projects.html">projects</a> . <a href="container_v1.projects.locations.html">locations</a> . <a href="container_v1.projects.locations.clusters.html">clusters</a> . <a href="container_v1.projects.locations.clusters.nodePools.html">nodePools</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Creates a node pool for a cluster.</p>
83<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080084 <code><a href="#delete">delete(name, clusterId=None, nodePoolId=None, projectId=None, x__xgafv=None, zone=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Deletes a node pool from a cluster.</p>
86<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080087 <code><a href="#get">get(name, clusterId=None, nodePoolId=None, projectId=None, x__xgafv=None, zone=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Retrieves the requested node pool.</p>
89<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080090 <code><a href="#list">list(parent, clusterId=None, projectId=None, x__xgafv=None, zone=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Lists the node pools for a cluster.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#rollback">rollback(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#setAutoscaling">setAutoscaling(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Sets the autoscaling settings for the specified node pool.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#setManagement">setManagement(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Sets the NodeManagement options for a node pool.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#setSize">setSize(name, body=None, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800103<p class="firstline">Sets the size for a specific node pool. The new size will be used for all replicas, including future replicas created by modifying NodePool.locations.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Updates the version and/or image type for the specified node pool.</p>
107<h3>Method Details</h3>
108<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109 <code class="details" id="close">close()</code>
110 <pre>Close httplib2 connections.</pre>
111</div>
112
113<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115 <pre>Creates a node pool for a cluster.
116
117Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118 parent: string, The parent (project, location, cluster id) where the node pool will be created. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700119 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700120 The object takes the form of:
121
122{ # CreateNodePoolRequest creates a node pool for a cluster.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800123 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
124 &quot;nodePool&quot;: { # NodePool contains the name and configuration for a cluster&#x27;s node pool. Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to reference them during pod scheduling. They may also be resized up or down, to accommodate the workload. # Required. The node pool to create.
125 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. # Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
126 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
127 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
128 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There has to enough quota to scale up the cluster.
129 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700130 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800131 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800132 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
133 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
134 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
135 },
136 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800137 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800138 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
139 { # AcceleratorConfig represents a Hardware Accelerator request.
140 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
141 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
142 },
143 ],
144 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
145 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800146 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27;, &#x27;pd-ssd&#x27; or &#x27;pd-balanced&#x27;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800147 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type, the latest version of it will be used.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800148 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
149 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
150 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
151 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
152 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800153 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it&#x27;s best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
154 &quot;a_key&quot;: &quot;A String&quot;,
155 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800156 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
157 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
158 &quot;a_key&quot;: &quot;A String&quot;,
159 },
160 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800161 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
162 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types) If unspecified, the default machine type is `e2-medium`.
163 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - &quot;cluster-location&quot; - &quot;cluster-name&quot; - &quot;cluster-uid&quot; - &quot;configure-sh&quot; - &quot;containerd-configure-sh&quot; - &quot;enable-os-login&quot; - &quot;gci-ensure-gke-docker&quot; - &quot;gci-metrics-enabled&quot; - &quot;gci-update-strategy&quot; - &quot;instance-template&quot; - &quot;kube-env&quot; - &quot;startup-script&quot; - &quot;user-data&quot; - &quot;disable-address-manager&quot; - &quot;windows-startup-script-ps1&quot; - &quot;common-psm1&quot; - &quot;k8s-node-setup-psm1&quot; - &quot;install-ssh-psm1&quot; - &quot;user-profile-psm1&quot; The following keys are reserved for Windows nodes: - &quot;serial-port-logging-enable&quot; Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value&#x27;s size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
164 &quot;a_key&quot;: &quot;A String&quot;,
165 },
166 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
167 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
168 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
169 &quot;A String&quot;,
170 ],
171 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more information about preemptible VM instances.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800172 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from. # The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool.
173 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
174 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as the key and specify the name of your reservation as its value.
175 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
176 &quot;A String&quot;,
177 ],
178 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800179 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
180 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
181 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800182 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800183 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800184 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800185 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800186 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800187 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
188 &quot;A String&quot;,
189 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800190 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
191 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.
192 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
193 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
194 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
195 },
196 ],
197 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
198 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
199 },
200 },
201 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota.
202 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool.
203 &quot;A String&quot;,
204 ],
205 &quot;locations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool&#x27;s nodes should be located. If this value is unspecified during node pool creation, the [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) value will be used, instead. Warning: changing node pool locations will result in nodes being added and/or removed.
206 &quot;A String&quot;,
207 ],
208 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
209 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered.
210 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes.
211 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
212 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
213 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
214 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800215 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800216 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run simultaneously on a node in the node pool.
217 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
218 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800219 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800220 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
221 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800222 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800223 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Deprecated. Use conditions instead. Additional information about the current status of this node pool instance, if available.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800224 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
225 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
226 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
227 },
228 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
229 },
230 &quot;parent&quot;: &quot;A String&quot;, # The parent (project, location, cluster id) where the node pool will be created. Specified in the format `projects/*/locations/*/clusters/*`.
231 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the parent field.
232 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field.
233}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700234
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700235 x__xgafv: string, V1 error format.
236 Allowed values
237 1 - v1 error format
238 2 - v2 error format
239
240Returns:
241 An object of the form:
242
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800243 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
244 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
245 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
246 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
247 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
248 },
249 ],
250 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
251 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
252 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
253 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
254 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
255 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
256 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
257 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
258 },
259 ],
260 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
261 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
262 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
263 { # Progress metric is (string, int|float|string) pair.
264 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
265 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
266 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
267 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700268 },
269 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800270 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
271 &quot;stages&quot;: [ # Substages of an operation or a stage.
272 # Object with schema name: OperationProgress
273 ],
274 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
275 },
276 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
277 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
278 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
279 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
280 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
281 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
282}</pre>
283</div>
284
285<div class="method">
286 <code class="details" id="delete">delete(name, clusterId=None, nodePoolId=None, projectId=None, x__xgafv=None, zone=None)</code>
287 <pre>Deletes a node pool from a cluster.
288
289Args:
290 name: string, The name (project, location, cluster, node pool id) of the node pool to delete. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
291 clusterId: string, Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
292 nodePoolId: string, Deprecated. The name of the node pool to delete. This field has been deprecated and replaced by the name field.
293 projectId: string, Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field.
294 x__xgafv: string, V1 error format.
295 Allowed values
296 1 - v1 error format
297 2 - v2 error format
298 zone: string, Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
299
300Returns:
301 An object of the form:
302
303 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
304 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
305 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
306 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
307 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
308 },
309 ],
310 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
311 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
312 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
313 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
314 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
315 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
316 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
317 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
318 },
319 ],
320 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
321 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
322 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
323 { # Progress metric is (string, int|float|string) pair.
324 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
325 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
326 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
327 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
328 },
329 ],
330 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
331 &quot;stages&quot;: [ # Substages of an operation or a stage.
332 # Object with schema name: OperationProgress
333 ],
334 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
335 },
336 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
337 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
338 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
339 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
340 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
341 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
342}</pre>
343</div>
344
345<div class="method">
346 <code class="details" id="get">get(name, clusterId=None, nodePoolId=None, projectId=None, x__xgafv=None, zone=None)</code>
347 <pre>Retrieves the requested node pool.
348
349Args:
350 name: string, The name (project, location, cluster, node pool id) of the node pool to get. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
351 clusterId: string, Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
352 nodePoolId: string, Deprecated. The name of the node pool. This field has been deprecated and replaced by the name field.
353 projectId: string, Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field.
354 x__xgafv: string, V1 error format.
355 Allowed values
356 1 - v1 error format
357 2 - v2 error format
358 zone: string, Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
359
360Returns:
361 An object of the form:
362
363 { # NodePool contains the name and configuration for a cluster&#x27;s node pool. Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to reference them during pod scheduling. They may also be resized up or down, to accommodate the workload.
364 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. # Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
365 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
366 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
367 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There has to enough quota to scale up the cluster.
368 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
369 },
370 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
371 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
372 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
373 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
374 },
375 ],
376 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
377 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
378 { # AcceleratorConfig represents a Hardware Accelerator request.
379 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
380 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
381 },
382 ],
383 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
384 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800385 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27;, &#x27;pd-ssd&#x27; or &#x27;pd-balanced&#x27;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800386 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type, the latest version of it will be used.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800387 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
388 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
389 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
390 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
391 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800392 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it&#x27;s best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
393 &quot;a_key&quot;: &quot;A String&quot;,
394 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800395 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
396 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
397 &quot;a_key&quot;: &quot;A String&quot;,
398 },
399 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800400 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
401 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types) If unspecified, the default machine type is `e2-medium`.
402 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - &quot;cluster-location&quot; - &quot;cluster-name&quot; - &quot;cluster-uid&quot; - &quot;configure-sh&quot; - &quot;containerd-configure-sh&quot; - &quot;enable-os-login&quot; - &quot;gci-ensure-gke-docker&quot; - &quot;gci-metrics-enabled&quot; - &quot;gci-update-strategy&quot; - &quot;instance-template&quot; - &quot;kube-env&quot; - &quot;startup-script&quot; - &quot;user-data&quot; - &quot;disable-address-manager&quot; - &quot;windows-startup-script-ps1&quot; - &quot;common-psm1&quot; - &quot;k8s-node-setup-psm1&quot; - &quot;install-ssh-psm1&quot; - &quot;user-profile-psm1&quot; The following keys are reserved for Windows nodes: - &quot;serial-port-logging-enable&quot; Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value&#x27;s size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
403 &quot;a_key&quot;: &quot;A String&quot;,
404 },
405 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
406 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
407 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
408 &quot;A String&quot;,
409 ],
410 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more information about preemptible VM instances.
411 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from. # The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool.
412 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
413 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as the key and specify the name of your reservation as its value.
414 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
415 &quot;A String&quot;,
416 ],
417 },
418 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
419 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
420 },
421 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
422 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
423 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
424 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
425 },
426 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
427 &quot;A String&quot;,
428 ],
429 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
430 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.
431 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
432 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
433 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
434 },
435 ],
436 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
437 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
438 },
439 },
440 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota.
441 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool.
442 &quot;A String&quot;,
443 ],
444 &quot;locations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool&#x27;s nodes should be located. If this value is unspecified during node pool creation, the [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) value will be used, instead. Warning: changing node pool locations will result in nodes being added and/or removed.
445 &quot;A String&quot;,
446 ],
447 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
448 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered.
449 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes.
450 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
451 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
452 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
453 },
454 },
455 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run simultaneously on a node in the node pool.
456 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
457 },
458 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
459 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
460 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
461 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800462 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Deprecated. Use conditions instead. Additional information about the current status of this node pool instance, if available.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800463 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
464 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
465 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
466 },
467 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
468}</pre>
469</div>
470
471<div class="method">
472 <code class="details" id="list">list(parent, clusterId=None, projectId=None, x__xgafv=None, zone=None)</code>
473 <pre>Lists the node pools for a cluster.
474
475Args:
476 parent: string, The parent (project, location, cluster id) where the node pools will be listed. Specified in the format `projects/*/locations/*/clusters/*`. (required)
477 clusterId: string, Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
478 projectId: string, Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the parent field.
479 x__xgafv: string, V1 error format.
480 Allowed values
481 1 - v1 error format
482 2 - v2 error format
483 zone: string, Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field.
484
485Returns:
486 An object of the form:
487
488 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
489 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
490 { # NodePool contains the name and configuration for a cluster&#x27;s node pool. Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to reference them during pod scheduling. They may also be resized up or down, to accommodate the workload.
491 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. # Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
492 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
493 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
494 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There has to enough quota to scale up the cluster.
495 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
496 },
497 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
498 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
499 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
500 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
501 },
502 ],
503 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
504 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
505 { # AcceleratorConfig represents a Hardware Accelerator request.
506 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
507 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
508 },
509 ],
510 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
511 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800512 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27;, &#x27;pd-ssd&#x27; or &#x27;pd-balanced&#x27;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800513 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type, the latest version of it will be used.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800514 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
515 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
516 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
517 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
518 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800519 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it&#x27;s best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
520 &quot;a_key&quot;: &quot;A String&quot;,
521 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800522 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
523 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
524 &quot;a_key&quot;: &quot;A String&quot;,
525 },
526 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800527 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
528 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types) If unspecified, the default machine type is `e2-medium`.
529 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - &quot;cluster-location&quot; - &quot;cluster-name&quot; - &quot;cluster-uid&quot; - &quot;configure-sh&quot; - &quot;containerd-configure-sh&quot; - &quot;enable-os-login&quot; - &quot;gci-ensure-gke-docker&quot; - &quot;gci-metrics-enabled&quot; - &quot;gci-update-strategy&quot; - &quot;instance-template&quot; - &quot;kube-env&quot; - &quot;startup-script&quot; - &quot;user-data&quot; - &quot;disable-address-manager&quot; - &quot;windows-startup-script-ps1&quot; - &quot;common-psm1&quot; - &quot;k8s-node-setup-psm1&quot; - &quot;install-ssh-psm1&quot; - &quot;user-profile-psm1&quot; The following keys are reserved for Windows nodes: - &quot;serial-port-logging-enable&quot; Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value&#x27;s size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
530 &quot;a_key&quot;: &quot;A String&quot;,
531 },
532 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
533 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
534 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
535 &quot;A String&quot;,
536 ],
537 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more information about preemptible VM instances.
538 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from. # The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool.
539 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
540 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as the key and specify the name of your reservation as its value.
541 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
542 &quot;A String&quot;,
543 ],
544 },
545 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
546 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
547 },
548 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
549 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
550 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
551 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
552 },
553 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
554 &quot;A String&quot;,
555 ],
556 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
557 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.
558 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
559 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
560 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
561 },
562 ],
563 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
564 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
565 },
566 },
567 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota.
568 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool.
569 &quot;A String&quot;,
570 ],
571 &quot;locations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool&#x27;s nodes should be located. If this value is unspecified during node pool creation, the [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) value will be used, instead. Warning: changing node pool locations will result in nodes being added and/or removed.
572 &quot;A String&quot;,
573 ],
574 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
575 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered.
576 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes.
577 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
578 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
579 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
580 },
581 },
582 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run simultaneously on a node in the node pool.
583 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
584 },
585 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
586 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
587 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
588 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800589 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Deprecated. Use conditions instead. Additional information about the current status of this node pool instance, if available.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800590 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
591 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
592 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
593 },
594 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
595 },
596 ],
597}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700598</div>
599
600<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700601 <code class="details" id="rollback">rollback(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700602 <pre>Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700603
604Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700605 name: string, The name (project, location, cluster, node pool id) of the node poll to rollback upgrade. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700606 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700607 The object takes the form of:
608
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700609{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800610 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to rollback. This field has been deprecated and replaced by the name field.
611 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node poll to rollback upgrade. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
612 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to rollback. This field has been deprecated and replaced by the name field.
613 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
614 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
615}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700616
617 x__xgafv: string, V1 error format.
618 Allowed values
619 1 - v1 error format
620 2 - v2 error format
621
622Returns:
623 An object of the form:
624
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700625 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800626 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
627 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
628 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
629 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800630 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800631 ],
632 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
633 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
634 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
635 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
636 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
637 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
638 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
639 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
640 },
641 ],
642 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
643 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
644 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
645 { # Progress metric is (string, int|float|string) pair.
646 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
647 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
648 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
649 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800650 },
651 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800652 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
653 &quot;stages&quot;: [ # Substages of an operation or a stage.
654 # Object with schema name: OperationProgress
655 ],
656 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
657 },
658 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
659 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
660 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
661 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
662 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
663 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
664}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700665</div>
666
667<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700668 <code class="details" id="setAutoscaling">setAutoscaling(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700669 <pre>Sets the autoscaling settings for the specified node pool.
670
671Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700672 name: string, The name (project, location, cluster, node pool) of the node pool to set autoscaler settings. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700673 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700674 The object takes the form of:
675
676{ # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800677 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. # Required. Autoscaling configuration for the node pool.
678 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
679 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
680 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There has to enough quota to scale up the cluster.
681 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
682 },
683 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
684 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to set autoscaler settings. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
685 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.
686 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
687 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
688}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700689
690 x__xgafv: string, V1 error format.
691 Allowed values
692 1 - v1 error format
693 2 - v2 error format
694
695Returns:
696 An object of the form:
697
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700698 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800699 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
700 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
701 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
702 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800703 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800704 ],
705 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
706 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
707 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
708 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
709 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
710 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
711 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
712 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
713 },
714 ],
715 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
716 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
717 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
718 { # Progress metric is (string, int|float|string) pair.
719 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
720 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
721 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
722 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800723 },
724 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800725 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
726 &quot;stages&quot;: [ # Substages of an operation or a stage.
727 # Object with schema name: OperationProgress
728 ],
729 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
730 },
731 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
732 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
733 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
734 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
735 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
736 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
737}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700738</div>
739
740<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700741 <code class="details" id="setManagement">setManagement(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700742 <pre>Sets the NodeManagement options for a node pool.
743
744Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700745 name: string, The name (project, location, cluster, node pool id) of the node pool to set management properties. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700746 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700747 The object takes the form of:
748
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700749{ # SetNodePoolManagementRequest sets the node management properties of a node pool.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800750 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.
751 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # Required. NodeManagement configuration for the node pool.
752 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered.
753 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes.
754 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
755 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
756 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -0700757 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800758 },
759 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set management properties. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
760 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.
761 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
762 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
763}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700764
765 x__xgafv: string, V1 error format.
766 Allowed values
767 1 - v1 error format
768 2 - v2 error format
769
770Returns:
771 An object of the form:
772
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700773 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800774 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
775 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
776 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
777 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800778 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800779 ],
780 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
781 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
782 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
783 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
784 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
785 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
786 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
787 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
788 },
789 ],
790 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
791 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
792 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
793 { # Progress metric is (string, int|float|string) pair.
794 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
795 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
796 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
797 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800798 },
799 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800800 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
801 &quot;stages&quot;: [ # Substages of an operation or a stage.
802 # Object with schema name: OperationProgress
803 ],
804 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
805 },
806 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
807 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
808 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
809 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
810 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
811 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
812}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700813</div>
814
815<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700816 <code class="details" id="setSize">setSize(name, body=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800817 <pre>Sets the size for a specific node pool. The new size will be used for all replicas, including future replicas created by modifying NodePool.locations.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700818
819Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700820 name: string, The name (project, location, cluster, node pool id) of the node pool to set size. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700821 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700822 The object takes the form of:
823
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800824{ # SetNodePoolSizeRequest sets the size of a node pool.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800825 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.
826 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set size. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
827 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
828 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.
829 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
830 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
831}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700832
833 x__xgafv: string, V1 error format.
834 Allowed values
835 1 - v1 error format
836 2 - v2 error format
837
838Returns:
839 An object of the form:
840
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700841 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800842 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
843 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
844 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
845 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800846 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800847 ],
848 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
849 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
850 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
851 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
852 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
853 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
854 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
855 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
856 },
857 ],
858 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
859 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
860 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
861 { # Progress metric is (string, int|float|string) pair.
862 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
863 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
864 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
865 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800866 },
867 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800868 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
869 &quot;stages&quot;: [ # Substages of an operation or a stage.
870 # Object with schema name: OperationProgress
871 ],
872 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
873 },
874 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
875 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
876 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
877 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
878 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
879 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
880}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700881</div>
882
883<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700884 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700885 <pre>Updates the version and/or image type for the specified node pool.
886
887Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700888 name: string, The name (project, location, cluster, node pool) of the node pool to update. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700889 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700890 The object takes the form of:
891
Bu Sun Kim65020912020-05-20 12:08:20 -0700892{ # UpdateNodePoolRequests update a node pool&#x27;s image and/or version.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800893 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
894 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800895 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
896 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
897 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
898 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
899 },
900 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
901 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
902 &quot;a_key&quot;: &quot;A String&quot;,
903 },
904 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800905 &quot;locations&quot;: [ # The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the node pool&#x27;s nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed.
906 &quot;A String&quot;,
907 ],
908 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to update. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
909 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.
910 &quot;nodeVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the nodes to (typically an upgrade). Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - &quot;latest&quot;: picks the highest valid Kubernetes version - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version - &quot;-&quot;: picks the Kubernetes master version
911 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
912 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
913 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
914 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
915 },
916 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The desired workload metadata config for the node pool.
917 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
918 },
919 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
920}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700921
922 x__xgafv: string, V1 error format.
923 Allowed values
924 1 - v1 error format
925 2 - v2 error format
926
927Returns:
928 An object of the form:
929
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700930 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800931 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
932 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
933 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
934 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800935 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800936 ],
937 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
938 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
939 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
940 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
941 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
942 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
943 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
944 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
945 },
946 ],
947 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
948 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
949 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
950 { # Progress metric is (string, int|float|string) pair.
951 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
952 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
953 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
954 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800955 },
956 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800957 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
958 &quot;stages&quot;: [ # Substages of an operation or a stage.
959 # Object with schema name: OperationProgress
960 ],
961 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
962 },
963 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
964 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
965 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
966 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
967 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
968 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
969}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700970</div>
971
972</body></html>