blob: 9604be00904029bf6cb206f4e832dd6e64e258b9 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="container_v1beta1.html">Kubernetes Engine API</a> . <a href="container_v1beta1.projects.html">projects</a> . <a href="container_v1beta1.projects.zones.html">zones</a> . <a href="container_v1beta1.projects.zones.clusters.html">clusters</a> . <a href="container_v1beta1.projects.zones.clusters.nodePools.html">nodePools</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#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 of a specific 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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Creates a node pool for a cluster.</p>
86<p class="toc_element">
87 <code><a href="#delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Deletes a node pool from a cluster.</p>
89<p class="toc_element">
90 <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>
92<p class="toc_element">
93 <code><a href="#list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Lists the node pools for a cluster.</p>
95<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Sets the NodeManagement options for a node pool.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#setSize">setSize(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 of a specific node pool.</p>
107<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 of a specific node pool.
111
112Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700113 projectId: string, Required. 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, Required. 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, Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. (required)
116 nodePoolId: string, Required. 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700121 &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/*`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700122 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700123 &quot;projectId&quot;: &quot;A String&quot;, # Required. 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 -0800124 &quot;zone&quot;: &quot;A String&quot;, # Required. 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.
125 &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.
126 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
127 &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.
128 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
129 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
130 },
131 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade. 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.
143 &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 -0800144 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700145 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800146 &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.
147 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700148 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700149 &quot;stages&quot;: [ # Substages of an operation or a stage.
150 # Object with schema name: OperationProgress
151 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800152 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
153 &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}]
154 { # Progress metric is (string, int|float|string) pair.
155 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
156 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
157 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
158 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
159 },
160 ],
161 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700163 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
164 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700165 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700166 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800167 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700168 },
169 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800170 &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.
171 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700172 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700173 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
174 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700175 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
176 {
177 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
178 },
179 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700180 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800181 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
182 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
183 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
184 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
185 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
186 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
187 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
188 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
189 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
190 },
191 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700192 }</pre>
193</div>
194
195<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700196 <code class="details" id="close">close()</code>
197 <pre>Close httplib2 connections.</pre>
198</div>
199
200<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700201 <code class="details" id="create">create(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700202 <pre>Creates a node pool for a cluster.
203
204Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700205 projectId: string, Required. 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)
206 zone: string, Required. 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)
207 clusterId: string, Required. 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 -0700208 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 The object takes the form of:
210
211{ # CreateNodePoolRequest creates a node pool for a cluster.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800212 &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/*`.
213 &quot;projectId&quot;: &quot;A String&quot;, # Required. 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.
214 &quot;zone&quot;: &quot;A String&quot;, # Required. 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.
215 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700216 &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 -0800217 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
218 &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 inforamtion about preemptible VM instances.
219 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
220 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
221 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
222 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
223 },
224 &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/
225 { # 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.
226 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
227 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
228 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
229 },
230 ],
231 &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.
232 &quot;A String&quot;,
233 ],
234 &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
235 &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`.
236 &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-oslogin&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.
237 &quot;a_key&quot;: &quot;A String&quot;,
238 },
239 &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.
240 &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;
241 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
242 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
243 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
244 },
245 &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)
246 &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.
247 &quot;A String&quot;,
248 ],
249 &quot;ephemeralStorageConfig&quot;: { # EphemeralStorageConfig contains configuration for the ephemeral storage filesystem. # Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk.
250 &quot;localSsdCount&quot;: 42, # Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it means to disable using local SSDs as ephemeral storage.
251 },
252 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
253 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
254 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
255 },
256 &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.
257 &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/
258 &quot;a_key&quot;: &quot;A String&quot;,
259 },
260 &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.
261 { # AcceleratorConfig represents a Hardware Accelerator request.
262 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
263 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
264 },
265 ],
266 &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.
267 &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.
268 &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.
269 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
270 &quot;A String&quot;,
271 ],
272 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
273 },
274 &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.
275 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
276 &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.
277 &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.
278 },
279 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
280 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
281 &quot;a_key&quot;: &quot;A String&quot;,
282 },
283 },
284 &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).
285 },
286 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
287 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
288 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
289 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
290 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
291 },
292 ],
293 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
294 &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.
295 &quot;A String&quot;,
296 ],
297 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700298 &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.
299 &quot;A String&quot;,
300 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800301 &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.
302 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
303 &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.
304 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
305 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
306 },
307 &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.
308 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700309 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
310 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
311 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
312 &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.
313 &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.
314 &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.
315 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700316 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700317 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700318 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
319 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800320 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
321 &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.
322 &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.
323 &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.
324 },
325 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
326 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700327 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700328 }
329
330 x__xgafv: string, V1 error format.
331 Allowed values
332 1 - v1 error format
333 2 - v2 error format
334
335Returns:
336 An object of the form:
337
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700338 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
339 &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 -0800340 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700341 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800342 &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.
343 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700344 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700345 &quot;stages&quot;: [ # Substages of an operation or a stage.
346 # Object with schema name: OperationProgress
347 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800348 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
349 &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}]
350 { # Progress metric is (string, int|float|string) pair.
351 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
352 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
353 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
354 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
355 },
356 ],
357 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700358 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700359 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
360 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700361 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700362 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800363 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700364 },
365 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800366 &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.
367 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700368 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700369 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
370 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700371 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
372 {
373 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
374 },
375 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700376 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800377 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
378 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
379 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
380 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
381 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
382 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
383 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
384 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
385 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
386 },
387 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700388 }</pre>
389</div>
390
391<div class="method">
392 <code class="details" id="delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
393 <pre>Deletes a node pool from a cluster.
394
395Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700396 projectId: string, Required. 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)
397 zone: string, Required. 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)
398 clusterId: string, Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. (required)
399 nodePoolId: string, Required. Deprecated. The name of the node pool to delete. This field has been deprecated and replaced by the name field. (required)
400 name: string, The name (project, location, cluster, node pool id) of the node pool to delete. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700401 x__xgafv: string, V1 error format.
402 Allowed values
403 1 - v1 error format
404 2 - v2 error format
405
406Returns:
407 An object of the form:
408
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700409 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
410 &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 -0800411 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700412 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800413 &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.
414 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700415 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700416 &quot;stages&quot;: [ # Substages of an operation or a stage.
417 # Object with schema name: OperationProgress
418 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800419 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
420 &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}]
421 { # Progress metric is (string, int|float|string) pair.
422 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
423 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
424 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
425 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
426 },
427 ],
428 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700429 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700430 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
431 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700432 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700433 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800434 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700435 },
436 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800437 &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.
438 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700439 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700440 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
441 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700442 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
443 {
444 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
445 },
446 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700447 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800448 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
449 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
450 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
451 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
452 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
453 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
454 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
455 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
456 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
457 },
458 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700459 }</pre>
460</div>
461
462<div class="method">
463 <code class="details" id="get">get(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
464 <pre>Retrieves the requested node pool.
465
466Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700467 projectId: string, Required. 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)
468 zone: string, Required. 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)
469 clusterId: string, Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. (required)
470 nodePoolId: string, Required. Deprecated. The name of the node pool. This field has been deprecated and replaced by the name field. (required)
471 name: string, The name (project, location, cluster, node pool id) of the node pool to get. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700472 x__xgafv: string, V1 error format.
473 Allowed values
474 1 - v1 error format
475 2 - v2 error format
476
477Returns:
478 An object of the form:
479
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700480 { # 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 -0800481 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
482 &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 inforamtion about preemptible VM instances.
483 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
484 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
485 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
486 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
487 },
488 &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/
489 { # 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.
490 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
491 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
492 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
493 },
494 ],
495 &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.
496 &quot;A String&quot;,
497 ],
498 &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
499 &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`.
500 &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-oslogin&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.
501 &quot;a_key&quot;: &quot;A String&quot;,
502 },
503 &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.
504 &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;
505 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
506 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
507 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
508 },
509 &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)
510 &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.
511 &quot;A String&quot;,
512 ],
513 &quot;ephemeralStorageConfig&quot;: { # EphemeralStorageConfig contains configuration for the ephemeral storage filesystem. # Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk.
514 &quot;localSsdCount&quot;: 42, # Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it means to disable using local SSDs as ephemeral storage.
515 },
516 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
517 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
518 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
519 },
520 &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.
521 &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/
522 &quot;a_key&quot;: &quot;A String&quot;,
523 },
524 &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.
525 { # AcceleratorConfig represents a Hardware Accelerator request.
526 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
527 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
528 },
529 ],
530 &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.
531 &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.
532 &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.
533 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
534 &quot;A String&quot;,
535 ],
536 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
537 },
538 &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.
539 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
540 &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.
541 &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.
542 },
543 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
544 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
545 &quot;a_key&quot;: &quot;A String&quot;,
546 },
547 },
548 &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).
549 },
550 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
551 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
552 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
553 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
554 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
555 },
556 ],
557 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
558 &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.
559 &quot;A String&quot;,
560 ],
561 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700562 &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.
563 &quot;A String&quot;,
564 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800565 &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.
566 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
567 &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.
568 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
569 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
570 },
571 &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.
572 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700573 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
574 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
575 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
576 &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.
577 &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.
578 &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.
579 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700580 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700581 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700582 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
583 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800584 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
585 &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.
586 &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.
587 &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.
588 },
589 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
590 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700591 }</pre>
592</div>
593
594<div class="method">
595 <code class="details" id="list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</code>
596 <pre>Lists the node pools for a cluster.
597
598Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700599 projectId: string, Required. 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)
600 zone: string, Required. 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)
601 clusterId: string, Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field. (required)
602 parent: string, The parent (project, location, cluster id) where the node pools will be listed. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700603 x__xgafv: string, V1 error format.
604 Allowed values
605 1 - v1 error format
606 2 - v2 error format
607
608Returns:
609 An object of the form:
610
611 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700612 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700613 { # 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 -0800614 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
615 &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 inforamtion about preemptible VM instances.
616 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
617 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
618 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
619 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
620 },
621 &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/
622 { # 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.
623 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
624 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
625 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
626 },
627 ],
628 &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.
629 &quot;A String&quot;,
630 ],
631 &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
632 &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`.
633 &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-oslogin&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.
634 &quot;a_key&quot;: &quot;A String&quot;,
635 },
636 &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.
637 &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;
638 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
639 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
640 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
641 },
642 &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)
643 &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.
644 &quot;A String&quot;,
645 ],
646 &quot;ephemeralStorageConfig&quot;: { # EphemeralStorageConfig contains configuration for the ephemeral storage filesystem. # Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk.
647 &quot;localSsdCount&quot;: 42, # Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it means to disable using local SSDs as ephemeral storage.
648 },
649 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
650 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
651 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
652 },
653 &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.
654 &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/
655 &quot;a_key&quot;: &quot;A String&quot;,
656 },
657 &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.
658 { # AcceleratorConfig represents a Hardware Accelerator request.
659 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
660 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
661 },
662 ],
663 &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.
664 &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.
665 &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.
666 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
667 &quot;A String&quot;,
668 ],
669 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
670 },
671 &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.
672 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
673 &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.
674 &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.
675 },
676 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
677 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
678 &quot;a_key&quot;: &quot;A String&quot;,
679 },
680 },
681 &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).
682 },
683 &quot;conditions&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;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
686 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
687 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
688 },
689 ],
690 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
691 &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.
692 &quot;A String&quot;,
693 ],
694 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700695 &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.
696 &quot;A String&quot;,
697 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800698 &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.
699 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
700 &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.
701 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
702 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
703 },
704 &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.
705 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700706 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
707 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
708 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
709 &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.
710 &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.
711 &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.
712 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700713 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700714 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700715 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
716 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800717 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
718 &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.
719 &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.
720 &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.
721 },
722 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
723 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700724 },
725 ],
726 }</pre>
727</div>
728
729<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700730 <code class="details" id="rollback">rollback(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700731 <pre>Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700732
733Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700734 projectId: string, Required. 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)
735 zone: string, Required. 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)
736 clusterId: string, Required. Deprecated. The name of the cluster to rollback. This field has been deprecated and replaced by the name field. (required)
737 nodePoolId: string, Required. 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 -0700738 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700739 The object takes the form of:
740
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700741{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700742 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to rollback. This field has been deprecated and replaced by the name field.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700743 &quot;zone&quot;: &quot;A String&quot;, # Required. 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800744 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to rollback. This field has been deprecated and replaced by the name field.
745 &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/*`.
746 &quot;projectId&quot;: &quot;A String&quot;, # Required. 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 Kim715bd7f2019-06-14 16:50:42 -0700747 }
748
749 x__xgafv: string, V1 error format.
750 Allowed values
751 1 - v1 error format
752 2 - v2 error format
753
754Returns:
755 An object of the form:
756
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700757 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
758 &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 -0800759 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700760 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800761 &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.
762 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700763 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700764 &quot;stages&quot;: [ # Substages of an operation or a stage.
765 # Object with schema name: OperationProgress
766 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800767 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
768 &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}]
769 { # Progress metric is (string, int|float|string) pair.
770 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
771 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
772 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
773 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
774 },
775 ],
776 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700777 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700778 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
779 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700780 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700781 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800782 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700783 },
784 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800785 &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.
786 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700787 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700788 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
789 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700790 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
791 {
792 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
793 },
794 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700795 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800796 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
797 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
798 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
799 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
800 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
801 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
802 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
803 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
804 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
805 },
806 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700807 }</pre>
808</div>
809
810<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700811 <code class="details" id="setManagement">setManagement(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700812 <pre>Sets the NodeManagement options for a node pool.
813
814Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700815 projectId: string, Required. 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)
816 zone: string, Required. 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)
817 clusterId: string, Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. (required)
818 nodePoolId: string, Required. 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 -0700819 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700820 The object takes the form of:
821
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700822{ # SetNodePoolManagementRequest sets the node management properties of a node pool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700823 &quot;zone&quot;: &quot;A String&quot;, # Required. 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800824 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.
825 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.
826 &quot;projectId&quot;: &quot;A String&quot;, # Required. 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 -0700827 &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 Kim65020912020-05-20 12:08:20 -0700828 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700829 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700830 &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.
831 &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.
832 &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.
833 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800835 &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/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700836 }
837
838 x__xgafv: string, V1 error format.
839 Allowed values
840 1 - v1 error format
841 2 - v2 error format
842
843Returns:
844 An object of the form:
845
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700846 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
847 &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 -0800848 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700849 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800850 &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.
851 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700852 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700853 &quot;stages&quot;: [ # Substages of an operation or a stage.
854 # Object with schema name: OperationProgress
855 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800856 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
857 &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}]
858 { # Progress metric is (string, int|float|string) pair.
859 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
860 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
861 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
862 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
863 },
864 ],
865 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700866 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700867 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
868 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700869 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700870 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800871 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700872 },
873 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800874 &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.
875 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700876 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700877 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
878 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700879 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
880 {
881 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
882 },
883 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700884 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800885 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
886 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
887 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
888 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
889 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
890 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
891 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
892 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
893 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
894 },
895 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700896 }</pre>
897</div>
898
899<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700900 <code class="details" id="setSize">setSize(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700901 <pre>Sets the size for a specific node pool.
902
903Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700904 projectId: string, Required. 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)
905 zone: string, Required. 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)
906 clusterId: string, Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. (required)
907 nodePoolId: string, Required. 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 -0700908 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700909 The object takes the form of:
910
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700911{ # SetNodePoolSizeRequest sets the size a node pool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700912 &quot;projectId&quot;: &quot;A String&quot;, # Required. 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 -0800913 &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/*`.
914 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.
915 &quot;zone&quot;: &quot;A String&quot;, # Required. 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 -0700916 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800917 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700918 }
919
920 x__xgafv: string, V1 error format.
921 Allowed values
922 1 - v1 error format
923 2 - v2 error format
924
925Returns:
926 An object of the form:
927
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700928 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
929 &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 -0800930 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700931 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800932 &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.
933 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700934 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700935 &quot;stages&quot;: [ # Substages of an operation or a stage.
936 # Object with schema name: OperationProgress
937 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800938 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
939 &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}]
940 { # Progress metric is (string, int|float|string) pair.
941 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
942 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
943 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
944 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
945 },
946 ],
947 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700948 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700949 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
950 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700951 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700952 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800953 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700954 },
955 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800956 &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.
957 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700958 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700959 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
960 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700961 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
962 {
963 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
964 },
965 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700966 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800967 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
968 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
969 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
970 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
971 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
972 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
973 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
974 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
975 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
976 },
977 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700978 }</pre>
979</div>
980
981<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700982 <code class="details" id="update">update(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700983 <pre>Updates the version and/or image type of a specific node pool.
984
985Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700986 projectId: string, Required. 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)
987 zone: string, Required. 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)
988 clusterId: string, Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. (required)
989 nodePoolId: string, Required. 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 -0700990 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700991 The object takes the form of:
992
993{ # SetNodePoolVersionRequest updates the version of a node pool.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800994 &quot;projectId&quot;: &quot;A String&quot;, # Required. 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.
995 &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.
996 &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.
997 &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.
998 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700999 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001000 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
1001 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001002 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001003 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001004 &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.
1005 &quot;A String&quot;,
1006 ],
1007 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
1008 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
1009 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001010 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001011 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001012 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001013 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001014 &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
1015 &quot;zone&quot;: &quot;A String&quot;, # Required. 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.
1016 &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/*`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001017 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001018 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001019 &quot;a_key&quot;: &quot;A String&quot;,
1020 },
1021 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001022 }
1023
1024 x__xgafv: string, V1 error format.
1025 Allowed values
1026 1 - v1 error format
1027 2 - v2 error format
1028
1029Returns:
1030 An object of the form:
1031
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001032 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
1033 &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 -08001034 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001035 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001036 &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.
1037 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001038 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001039 &quot;stages&quot;: [ # Substages of an operation or a stage.
1040 # Object with schema name: OperationProgress
1041 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001042 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
1043 &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}]
1044 { # Progress metric is (string, int|float|string) pair.
1045 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1046 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1047 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1048 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1049 },
1050 ],
1051 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001052 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001053 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
1054 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001055 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001056 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001057 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001058 },
1059 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001060 &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.
1061 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001062 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001063 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1064 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001065 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1066 {
1067 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1068 },
1069 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001070 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001071 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
1072 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1073 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1074 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1075 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
1076 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
1077 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
1078 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1079 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
1080 },
1081 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001082 }</pre>
1083</div>
1084
1085</body></html>