blob: c20cff02b739a5c978148f600b0893538ebba426 [file] [log] [blame]
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="container_v1.html">Kubernetes Engine API</a> . <a href="container_v1.projects.html">projects</a> . <a href="container_v1.projects.zones.html">zones</a> . <a href="container_v1.projects.zones.clusters.html">clusters</a> . <a href="container_v1.projects.zones.clusters.nodePools.html">nodePools</a></h1>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#autoscaling">autoscaling(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Sets the autoscaling settings for the specified node pool.</p>
80<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070081 <code><a href="#close">close()</a></code></p>
82<p class="firstline">Close httplib2 connections.</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#create">create(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070085<p class="firstline">Creates a node pool for a cluster.</p>
86<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087 <code><a href="#delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070088<p class="firstline">Deletes a node pool from a cluster.</p>
89<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090 <code><a href="#get">get(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Retrieves the requested node pool.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070092<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070093 <code><a href="#list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070094<p class="firstline">Lists the node pools for a cluster.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040095<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#rollback">rollback(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097<p class="firstline">Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040098<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#setManagement">setManagement(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400100<p class="firstline">Sets the NodeManagement options for a node pool.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#setSize">setSize(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Sets the size for a specific node pool.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#update">update(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Updates the version and/or image type for the specified node pool.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700107<h3>Method Details</h3>
108<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 <code class="details" id="autoscaling">autoscaling(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110 <pre>Sets the autoscaling settings for the specified node pool.
111
112Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700113 projectId: string, 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. (required)
114 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. (required)
115 clusterId: string, Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. (required)
116 nodePoolId: string, Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118 The object takes the form of:
119
120{ # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800121 &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.
122 &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.
123 &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.
124 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800125 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800126 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800127 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800128 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800129 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800130 &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/*`.
131 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700132 }
133
134 x__xgafv: string, V1 error format.
135 Allowed values
136 1 - v1 error format
137 2 - v2 error format
138
139Returns:
140 An object of the form:
141
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700142 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800143 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
144 &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.
145 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
146 &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.
147 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
148 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
149 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
150 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
151 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
152 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
153 },
154 ],
155 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
156 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
157 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800158 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800159 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
160 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
161 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
162 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
163 },
164 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700165 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800166 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
167 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700168 &quot;stages&quot;: [ # Substages of an operation or a stage.
169 # Object with schema name: OperationProgress
170 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800171 &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}]
172 { # Progress metric is (string, int|float|string) pair.
173 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
174 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
175 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
176 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
177 },
178 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700179 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800180 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700181 }</pre>
182</div>
183
184<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700185 <code class="details" id="close">close()</code>
186 <pre>Close httplib2 connections.</pre>
187</div>
188
189<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700190 <code class="details" id="create">create(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700191 <pre>Creates a node pool for a cluster.
192
193Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700194 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. (required)
195 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. (required)
196 clusterId: string, Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700197 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700198 The object takes the form of:
199
200{ # CreateNodePoolRequest creates a node pool for a cluster.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800201 &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/*`.
202 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800203 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700204 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800205 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800206 &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.
207 &quot;A String&quot;,
208 ],
209 &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.
210 &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.
211 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
212 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
213 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
214 },
215 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
216 &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.
217 &quot;A String&quot;,
218 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700219 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800220 &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
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800221 &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.
222 { # AcceleratorConfig represents a Hardware Accelerator request.
223 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
224 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
225 },
226 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800227 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
228 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
229 },
230 &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.
231 &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.
232 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
233 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
234 &quot;A String&quot;,
235 ],
236 },
237 &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.
238 &quot;a_key&quot;: &quot;A String&quot;,
239 },
240 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
241 &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.
242 &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.
243 },
244 &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 Automation Botc2228be2020-11-24 15:48:03 -0800245 &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).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800246 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
247 &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.
248 &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/
249 &quot;a_key&quot;: &quot;A String&quot;,
250 },
251 &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/
252 { # 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.
253 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
254 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
255 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
256 },
257 ],
258 &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)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700259 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
260 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
261 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800262 &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.
263 &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.
264 &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.
265 &quot;A String&quot;,
266 ],
267 &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.
268 &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`.
269 &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.
270 &quot;A String&quot;,
271 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700272 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800273 &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.
274 &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.
275 &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.
276 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700277 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800278 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700279 &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.
280 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
281 },
282 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700283 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800284 &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.
285 &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.
286 &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.
287 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800288 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700289 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800290 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
291 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
292 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
293 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
294 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
295 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
296 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
297 },
298 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700299 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700300 &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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700301 }
302
303 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400304 Allowed values
305 1 - v1 error format
306 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700307
308Returns:
309 An object of the form:
310
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700311 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800312 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
313 &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.
314 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
315 &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.
316 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
317 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
318 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
319 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
320 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
321 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
322 },
323 ],
324 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
325 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
326 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800327 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800328 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
329 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
330 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
331 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
332 },
333 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700334 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800335 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
336 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700337 &quot;stages&quot;: [ # Substages of an operation or a stage.
338 # Object with schema name: OperationProgress
339 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800340 &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}]
341 { # Progress metric is (string, int|float|string) pair.
342 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
343 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
344 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
345 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
346 },
347 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700348 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800349 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700350 }</pre>
351</div>
352
353<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700354 <code class="details" id="delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700355 <pre>Deletes a node pool from a cluster.
356
357Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700358 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. (required)
359 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. (required)
360 clusterId: string, Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. (required)
361 nodePoolId: string, Deprecated. The name of the node pool to delete. This field has been deprecated and replaced by the name field. (required)
362 name: string, The name (project, location, cluster, node pool id) of the node pool to delete. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700363 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400364 Allowed values
365 1 - v1 error format
366 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700367
368Returns:
369 An object of the form:
370
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700371 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800372 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
373 &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.
374 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
375 &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.
376 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
377 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
378 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
379 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
380 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
381 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
382 },
383 ],
384 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
385 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
386 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800387 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800388 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
389 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
390 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
391 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
392 },
393 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700394 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800395 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
396 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700397 &quot;stages&quot;: [ # Substages of an operation or a stage.
398 # Object with schema name: OperationProgress
399 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800400 &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}]
401 { # Progress metric is (string, int|float|string) pair.
402 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
403 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
404 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
405 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
406 },
407 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700408 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800409 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700410 }</pre>
411</div>
412
413<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700414 <code class="details" id="get">get(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
415 <pre>Retrieves the requested node pool.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700416
417Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700418 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. (required)
419 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. (required)
420 clusterId: string, Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. (required)
421 nodePoolId: string, Deprecated. The name of the node pool. This field has been deprecated and replaced by the name field. (required)
422 name: string, The name (project, location, cluster, node pool id) of the node pool to get. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700423 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400424 Allowed values
425 1 - v1 error format
426 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700427
428Returns:
429 An object of the form:
430
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700431 { # 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800432 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800433 &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.
434 &quot;A String&quot;,
435 ],
436 &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.
437 &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.
438 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
439 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
440 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
441 },
442 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
443 &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.
444 &quot;A String&quot;,
445 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700446 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800447 &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
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800448 &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.
449 { # AcceleratorConfig represents a Hardware Accelerator request.
450 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
451 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
452 },
453 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800454 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
455 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
456 },
457 &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.
458 &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.
459 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
460 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
461 &quot;A String&quot;,
462 ],
463 },
464 &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.
465 &quot;a_key&quot;: &quot;A String&quot;,
466 },
467 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
468 &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.
469 &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.
470 },
471 &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 Automation Botc2228be2020-11-24 15:48:03 -0800472 &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).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800473 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
474 &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.
475 &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/
476 &quot;a_key&quot;: &quot;A String&quot;,
477 },
478 &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/
479 { # 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.
480 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
481 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
482 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
483 },
484 ],
485 &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)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700486 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
487 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
488 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800489 &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.
490 &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.
491 &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.
492 &quot;A String&quot;,
493 ],
494 &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.
495 &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`.
496 &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.
497 &quot;A String&quot;,
498 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700499 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800500 &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.
501 &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.
502 &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.
503 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700504 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800505 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700506 &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.
507 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
508 },
509 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700510 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800511 &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.
512 &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.
513 &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.
514 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800515 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700516 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800517 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
518 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
519 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
520 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
521 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
522 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
523 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
524 },
525 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700526 }</pre>
527</div>
528
529<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700530 <code class="details" id="list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700531 <pre>Lists the node pools for a cluster.
532
533Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700534 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. (required)
535 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. (required)
536 clusterId: string, Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field. (required)
537 parent: string, The parent (project, location, cluster id) where the node pools will be listed. Specified in the format `projects/*/locations/*/clusters/*`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700538 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400539 Allowed values
540 1 - v1 error format
541 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700542
543Returns:
544 An object of the form:
545
546 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700547 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700548 { # 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800549 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800550 &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.
551 &quot;A String&quot;,
552 ],
553 &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.
554 &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.
555 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
556 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
557 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
558 },
559 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
560 &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.
561 &quot;A String&quot;,
562 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700563 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800564 &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
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800565 &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.
566 { # AcceleratorConfig represents a Hardware Accelerator request.
567 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
568 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
569 },
570 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800571 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
572 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
573 },
574 &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.
575 &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.
576 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
577 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
578 &quot;A String&quot;,
579 ],
580 },
581 &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.
582 &quot;a_key&quot;: &quot;A String&quot;,
583 },
584 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
585 &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.
586 &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.
587 },
588 &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 Automation Botc2228be2020-11-24 15:48:03 -0800589 &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).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800590 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
591 &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.
592 &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/
593 &quot;a_key&quot;: &quot;A String&quot;,
594 },
595 &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/
596 { # 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.
597 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
598 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
599 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
600 },
601 ],
602 &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)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700603 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
604 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
605 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800606 &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.
607 &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.
608 &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.
609 &quot;A String&quot;,
610 ],
611 &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.
612 &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`.
613 &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.
614 &quot;A String&quot;,
615 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700616 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800617 &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.
618 &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.
619 &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.
620 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700621 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800622 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700623 &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.
624 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
625 },
626 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700627 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800628 &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.
629 &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.
630 &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.
631 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800632 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700633 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800634 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
635 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
636 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
637 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
638 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
639 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
640 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
641 },
642 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700643 },
644 ],
645 }</pre>
646</div>
647
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400648<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700649 <code class="details" id="rollback">rollback(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700650 <pre>Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400651
652Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700653 projectId: string, 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. (required)
654 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. (required)
655 clusterId: string, Deprecated. The name of the cluster to rollback. This field has been deprecated and replaced by the name field. (required)
656 nodePoolId: string, Deprecated. The name of the node pool to rollback. This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700657 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400658 The object takes the form of:
659
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700660{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800661 &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.
662 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700663 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700664 &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/*`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700665 &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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400666 }
667
668 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400669 Allowed values
670 1 - v1 error format
671 2 - v2 error format
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400672
673Returns:
674 An object of the form:
675
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700676 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800677 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
678 &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.
679 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
680 &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.
681 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
682 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
683 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
684 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
685 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
686 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
687 },
688 ],
689 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
690 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
691 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800692 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800693 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
694 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
695 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
696 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
697 },
698 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700699 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800700 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
701 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700702 &quot;stages&quot;: [ # Substages of an operation or a stage.
703 # Object with schema name: OperationProgress
704 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800705 &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}]
706 { # Progress metric is (string, int|float|string) pair.
707 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
708 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
709 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
710 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
711 },
712 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700713 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800714 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400715 }</pre>
716</div>
717
718<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700719 <code class="details" id="setManagement">setManagement(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400720 <pre>Sets the NodeManagement options for a node pool.
721
722Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700723 projectId: string, 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. (required)
724 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. (required)
725 clusterId: string, Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. (required)
726 nodePoolId: string, Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700727 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400728 The object takes the form of:
729
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700730{ # SetNodePoolManagementRequest sets the node management properties of a node pool.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800731 &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.
732 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700733 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700734 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # Required. NodeManagement configuration for the node pool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700735 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800736 &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.
737 &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.
738 &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.
739 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800740 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700741 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800742 &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/*`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800743 &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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400744 }
745
746 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400747 Allowed values
748 1 - v1 error format
749 2 - v2 error format
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400750
751Returns:
752 An object of the form:
753
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700754 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800755 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
756 &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.
757 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
758 &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.
759 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
760 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
761 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
762 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
763 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
764 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
765 },
766 ],
767 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
768 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
769 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800770 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800771 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
772 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
773 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
774 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
775 },
776 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700777 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800778 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
779 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700780 &quot;stages&quot;: [ # Substages of an operation or a stage.
781 # Object with schema name: OperationProgress
782 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800783 &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}]
784 { # Progress metric is (string, int|float|string) pair.
785 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
786 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
787 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
788 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
789 },
790 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700791 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800792 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700793 }</pre>
794</div>
795
796<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700797 <code class="details" id="setSize">setSize(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700798 <pre>Sets the size for a specific node pool.
799
800Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700801 projectId: string, 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. (required)
802 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. (required)
803 clusterId: string, Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. (required)
804 nodePoolId: string, Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700805 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700806 The object takes the form of:
807
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700808{ # SetNodePoolSizeRequest sets the size a node pool.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800809 &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.
810 &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.
811 &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/*`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800812 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
813 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800814 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700815 }
816
817 x__xgafv: string, V1 error format.
818 Allowed values
819 1 - v1 error format
820 2 - v2 error format
821
822Returns:
823 An object of the form:
824
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700825 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800826 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
827 &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.
828 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
829 &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.
830 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
831 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
832 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
833 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
834 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
835 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
836 },
837 ],
838 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
839 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
840 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800841 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -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;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
845 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
846 },
847 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700848 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800849 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
850 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700851 &quot;stages&quot;: [ # Substages of an operation or a stage.
852 # Object with schema name: OperationProgress
853 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800854 &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}]
855 { # Progress metric is (string, int|float|string) pair.
856 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
857 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
858 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
859 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
860 },
861 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700862 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800863 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700864 }</pre>
865</div>
866
867<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700868 <code class="details" id="update">update(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700869 <pre>Updates the version and/or image type for the specified node pool.
870
871Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700872 projectId: string, 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. (required)
873 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. (required)
874 clusterId: string, Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. (required)
875 nodePoolId: string, Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700876 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700877 The object takes the form of:
878
Bu Sun Kim65020912020-05-20 12:08:20 -0700879{ # UpdateNodePoolRequests update a node pool&#x27;s image and/or version.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800880 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700881 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800882 &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/*`.
883 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800884 &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.
885 &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.
886 &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.
887 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800888 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700889 &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.
890 &quot;A String&quot;,
891 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800892 &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.
893 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
894 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800895 &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
896 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700897 }
898
899 x__xgafv: string, V1 error format.
900 Allowed values
901 1 - v1 error format
902 2 - v2 error format
903
904Returns:
905 An object of the form:
906
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700907 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800908 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
909 &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.
910 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
911 &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.
912 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
913 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
914 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
915 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
916 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
917 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
918 },
919 ],
920 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
921 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
922 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800923 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800924 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
925 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
926 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
927 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
928 },
929 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700930 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800931 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
932 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700933 &quot;stages&quot;: [ # Substages of an operation or a stage.
934 # Object with schema name: OperationProgress
935 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800936 &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}]
937 { # Progress metric is (string, int|float|string) pair.
938 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
939 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
940 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
941 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
942 },
943 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700944 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800945 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400946 }</pre>
947</div>
948
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700949</body></html>