blob: 7f8febd392fcb2ee4dd424681c06ca390da822af [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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -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/*`.
122 &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.
123 &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.
124 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700125 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700126 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700127 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700128 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700130 &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.
131 &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 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.
144 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700145 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700146 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
147 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
148 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
149 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
150 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
151 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
152 },
153 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700154 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700155 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700156 &quot;stages&quot;: [ # Substages of an operation or a stage.
157 # Object with schema name: OperationProgress
158 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700159 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
160 &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}]
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700162 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
163 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700164 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
165 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 },
167 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700169 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700170 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700171 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
172 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700173 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700174 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
175 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700176 },
177 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700178 &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.
179 &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 Kimd059ad82020-07-22 17:02:09 -0700180 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700181 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
182 &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.
183 &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.
184 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
185 {
186 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
187 },
188 ],
189 &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.
190 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700212 &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.
213 &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.
214 &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.
215 &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/*`.
216 &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.
217 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
218 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700220 &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.
221 &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.
222 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700223 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700224 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700225 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
226 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
227 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
228 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700229 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
230 &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
231 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700232 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700233 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700234 &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/
Bu Sun Kim65020912020-05-20 12:08:20 -0700235 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700236 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700237 &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.
238 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700239 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700240 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
241 &quot;A String&quot;,
242 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700243 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700244 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700245 &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;
246 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
247 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
248 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
249 },
250 &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; - &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.
251 &quot;a_key&quot;: &quot;A String&quot;,
252 },
253 &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)
254 &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`.
255 &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.
256 &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).
257 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700258 &quot;A String&quot;,
259 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700260 &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.
261 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700262 { # AcceleratorConfig represents a Hardware Accelerator request.
263 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700264 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700265 },
266 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700267 &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/
268 { # 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.
269 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
270 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
271 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
272 },
273 ],
274 &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.
275 &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
276 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
277 &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.
278 &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.
279 },
280 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
281 &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.
282 &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.
283 &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.
284 },
285 &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.
286 &quot;A String&quot;,
287 ],
288 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700289 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700290 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700291 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700292 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700293 &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.
294 &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.
295 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700297 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700298 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700299 &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.
300 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
301 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
302 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
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 },
305 &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 -0700306 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
307 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700308 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700309 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700310 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700311 &quot;A String&quot;,
312 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700313 &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.
314 &quot;A String&quot;,
315 ],
316 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
317 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
318 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
319 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
320 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
321 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
322 },
323 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700324 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700325 }
326
327 x__xgafv: string, V1 error format.
328 Allowed values
329 1 - v1 error format
330 2 - v2 error format
331
332Returns:
333 An object of the form:
334
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700335 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
336 &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.
337 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700338 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700339 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
340 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
341 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
342 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
343 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
344 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
345 },
346 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700347 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700348 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700349 &quot;stages&quot;: [ # Substages of an operation or a stage.
350 # Object with schema name: OperationProgress
351 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700352 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
353 &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}]
Bu Sun Kim65020912020-05-20 12:08:20 -0700354 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700355 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
356 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700357 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
358 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700359 },
360 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700361 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700362 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700363 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700364 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
365 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700366 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700367 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
368 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700369 },
370 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700371 &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.
372 &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 Kimd059ad82020-07-22 17:02:09 -0700373 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700374 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
375 &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.
376 &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.
377 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
378 {
379 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
380 },
381 ],
382 &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.
383 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
384 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700385 }</pre>
386</div>
387
388<div class="method">
389 <code class="details" id="delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
390 <pre>Deletes a node pool from a cluster.
391
392Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700393 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)
394 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)
395 clusterId: string, Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. (required)
396 nodePoolId: string, Required. Deprecated. The name of the node pool to delete. This field has been deprecated and replaced by the name field. (required)
397 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 -0700398 x__xgafv: string, V1 error format.
399 Allowed values
400 1 - v1 error format
401 2 - v2 error format
402
403Returns:
404 An object of the form:
405
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700406 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
407 &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.
408 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700409 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700410 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
411 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
412 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
413 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
414 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
415 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
416 },
417 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700419 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700420 &quot;stages&quot;: [ # Substages of an operation or a stage.
421 # Object with schema name: OperationProgress
422 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700423 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
424 &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}]
Bu Sun Kim65020912020-05-20 12:08:20 -0700425 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700426 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
427 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700428 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
429 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700430 },
431 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700432 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700433 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700434 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700435 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
436 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700437 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700438 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
439 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700440 },
441 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700442 &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.
443 &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 Kimd059ad82020-07-22 17:02:09 -0700444 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700445 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
446 &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.
447 &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.
448 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
449 {
450 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
451 },
452 ],
453 &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.
454 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
455 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700456 }</pre>
457</div>
458
459<div class="method">
460 <code class="details" id="get">get(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
461 <pre>Retrieves the requested node pool.
462
463Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700464 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)
465 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)
466 clusterId: string, Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. (required)
467 nodePoolId: string, Required. Deprecated. The name of the node pool. This field has been deprecated and replaced by the name field. (required)
468 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 -0700469 x__xgafv: string, V1 error format.
470 Allowed values
471 1 - v1 error format
472 2 - v2 error format
473
474Returns:
475 An object of the form:
476
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700477 { # 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.
478 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
479 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700480 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700481 &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.
482 &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.
483 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700484 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700485 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700486 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
487 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
488 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
489 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700490 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
491 &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
492 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700493 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700494 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700495 &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/
Bu Sun Kim65020912020-05-20 12:08:20 -0700496 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700497 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700498 &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.
499 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700500 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700501 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
502 &quot;A String&quot;,
503 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700504 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700505 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700506 &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;
507 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
508 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
509 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
510 },
511 &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; - &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.
512 &quot;a_key&quot;: &quot;A String&quot;,
513 },
514 &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)
515 &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`.
516 &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.
517 &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).
518 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700519 &quot;A String&quot;,
520 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700521 &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.
522 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700523 { # AcceleratorConfig represents a Hardware Accelerator request.
524 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700525 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700526 },
527 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700528 &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/
529 { # 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.
530 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
531 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
532 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
533 },
534 ],
535 &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.
536 &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
537 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
538 &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.
539 &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.
540 },
541 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
542 &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.
543 &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.
544 &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.
545 },
546 &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.
547 &quot;A String&quot;,
548 ],
549 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700550 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700551 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700552 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700553 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700554 &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.
555 &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.
556 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700557 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700558 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700559 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700560 &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.
561 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
562 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
563 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
564 &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.
565 },
566 &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 -0700567 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
568 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700569 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700570 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700571 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700572 &quot;A String&quot;,
573 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700574 &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.
575 &quot;A String&quot;,
576 ],
577 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
578 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
579 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
580 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
581 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
582 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
583 },
584 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700585 }</pre>
586</div>
587
588<div class="method">
589 <code class="details" id="list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</code>
590 <pre>Lists the node pools for a cluster.
591
592Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700593 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)
594 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)
595 clusterId: string, Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field. (required)
596 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 -0700597 x__xgafv: string, V1 error format.
598 Allowed values
599 1 - v1 error format
600 2 - v2 error format
601
602Returns:
603 An object of the form:
604
605 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700606 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700607 { # 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.
608 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
609 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700610 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700611 &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.
612 &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.
613 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700614 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700615 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700616 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
617 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
618 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
619 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700620 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
621 &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
622 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700623 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700624 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700625 &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/
Bu Sun Kim65020912020-05-20 12:08:20 -0700626 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700627 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700628 &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.
629 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700630 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700631 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
632 &quot;A String&quot;,
633 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700634 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700635 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700636 &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;
637 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
638 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
639 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
640 },
641 &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; - &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.
642 &quot;a_key&quot;: &quot;A String&quot;,
643 },
644 &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)
645 &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`.
646 &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.
647 &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).
648 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700649 &quot;A String&quot;,
650 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700651 &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.
652 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700653 { # AcceleratorConfig represents a Hardware Accelerator request.
654 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700655 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700656 },
657 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700658 &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/
659 { # 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.
660 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
661 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
662 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
663 },
664 ],
665 &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.
666 &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
667 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
668 &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.
669 &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.
670 },
671 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
672 &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.
673 &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.
674 &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.
675 },
676 &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.
677 &quot;A String&quot;,
678 ],
679 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700680 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700681 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700682 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700683 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700684 &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.
685 &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.
686 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700687 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700688 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700689 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700690 &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.
691 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
692 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
693 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
694 &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.
695 },
696 &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 -0700697 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
698 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700699 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700700 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700701 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700702 &quot;A String&quot;,
703 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700704 &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.
705 &quot;A String&quot;,
706 ],
707 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
708 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
709 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
710 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
711 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
712 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
713 },
714 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700715 },
716 ],
717 }</pre>
718</div>
719
720<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700721 <code class="details" id="rollback">rollback(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700722 <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 -0700723
724Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700725 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)
726 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)
727 clusterId: string, Required. Deprecated. The name of the cluster to rollback. This field has been deprecated and replaced by the name field. (required)
728 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 -0700729 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700730 The object takes the form of:
731
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700732{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.
733 &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.
734 &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.
735 &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.
736 &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/*`.
737 &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 Kim715bd7f2019-06-14 16:50:42 -0700738 }
739
740 x__xgafv: string, V1 error format.
741 Allowed values
742 1 - v1 error format
743 2 - v2 error format
744
745Returns:
746 An object of the form:
747
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700748 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
749 &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.
750 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700751 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700752 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
753 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
754 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
755 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
756 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
757 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
758 },
759 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700760 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700761 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700762 &quot;stages&quot;: [ # Substages of an operation or a stage.
763 # Object with schema name: OperationProgress
764 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700765 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
766 &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}]
Bu Sun Kim65020912020-05-20 12:08:20 -0700767 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700768 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
769 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700770 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
771 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700772 },
773 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700774 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700775 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700776 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700777 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
778 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700779 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700780 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
781 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700782 },
783 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700784 &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.
785 &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 Kimd059ad82020-07-22 17:02:09 -0700786 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700787 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
788 &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.
789 &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.
790 &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 ],
795 &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.
796 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
797 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700798 }</pre>
799</div>
800
801<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700802 <code class="details" id="setManagement">setManagement(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700803 <pre>Sets the NodeManagement options for a node pool.
804
805Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700806 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)
807 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)
808 clusterId: string, Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. (required)
809 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 -0700810 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700811 The object takes the form of:
812
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700813{ # SetNodePoolManagementRequest sets the node management properties of a node pool.
814 &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.
815 &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/*`.
816 &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.
817 &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 -0700818 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700819 &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.
820 &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.
821 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700822 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700823 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700824 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700825 &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.
826 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700827 }
828
829 x__xgafv: string, V1 error format.
830 Allowed values
831 1 - v1 error format
832 2 - v2 error format
833
834Returns:
835 An object of the form:
836
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700837 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
838 &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.
839 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700840 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700841 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
842 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
843 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
844 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
845 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
846 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
847 },
848 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700849 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700850 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700851 &quot;stages&quot;: [ # Substages of an operation or a stage.
852 # Object with schema name: OperationProgress
853 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700854 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
855 &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}]
Bu Sun Kim65020912020-05-20 12:08:20 -0700856 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700857 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
858 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700859 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
860 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700861 },
862 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700863 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700864 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700865 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700866 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
867 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700868 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700869 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
870 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700871 },
872 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700873 &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.
874 &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 Kimd059ad82020-07-22 17:02:09 -0700875 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700876 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
877 &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.
878 &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.
879 &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 ],
884 &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.
885 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
886 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700887 }</pre>
888</div>
889
890<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700891 <code class="details" id="setSize">setSize(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700892 <pre>Sets the size for a specific node pool.
893
894Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700895 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)
896 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)
897 clusterId: string, Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. (required)
898 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 -0700899 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700900 The object takes the form of:
901
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700902{ # SetNodePoolSizeRequest sets the size a node pool.
903 &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/*`.
904 &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.
905 &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.
906 &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.
907 &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 Kim65020912020-05-20 12:08:20 -0700908 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700909 }
910
911 x__xgafv: string, V1 error format.
912 Allowed values
913 1 - v1 error format
914 2 - v2 error format
915
916Returns:
917 An object of the form:
918
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700919 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
920 &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.
921 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700922 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700923 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
924 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
925 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
926 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
927 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
928 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
929 },
930 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700931 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700932 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700933 &quot;stages&quot;: [ # Substages of an operation or a stage.
934 # Object with schema name: OperationProgress
935 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700936 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
937 &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}]
Bu Sun Kim65020912020-05-20 12:08:20 -0700938 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700939 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
940 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700941 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
942 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700943 },
944 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700945 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700946 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700947 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700948 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
949 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700950 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700951 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
952 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700953 },
954 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700955 &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.
956 &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 Kimd059ad82020-07-22 17:02:09 -0700957 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700958 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
959 &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.
960 &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.
961 &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 ],
966 &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.
967 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
968 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700969 }</pre>
970</div>
971
972<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700973 <code class="details" id="update">update(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700974 <pre>Updates the version and/or image type of a specific node pool.
975
976Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700977 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)
978 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)
979 clusterId: string, Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. (required)
980 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 -0700981 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700982 The object takes the form of:
983
984{ # SetNodePoolVersionRequest updates the version of a node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700985 &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 -0700986 &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 -0700987 &quot;a_key&quot;: &quot;A String&quot;,
988 },
989 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700990 &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
991 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
992 &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.
993 &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.
994 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
995 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
996 },
997 &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.
998 &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.
999 &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.
1000 &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.
1001 },
1002 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
1003 &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.
1004 &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.
1005 &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.
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;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/*`.
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.
1010 &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.
1011 &quot;A String&quot;,
1012 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001013 }
1014
1015 x__xgafv: string, V1 error format.
1016 Allowed values
1017 1 - v1 error format
1018 2 - v2 error format
1019
1020Returns:
1021 An object of the form:
1022
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001023 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
1024 &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.
1025 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001026 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001027 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1028 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
1029 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
1030 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1031 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
1032 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
1033 },
1034 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001035 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001036 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001037 &quot;stages&quot;: [ # Substages of an operation or a stage.
1038 # Object with schema name: OperationProgress
1039 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001040 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
1041 &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}]
Bu Sun Kim65020912020-05-20 12:08:20 -07001042 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001043 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1044 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001045 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1046 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001047 },
1048 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001049 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001050 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001051 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001052 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
1053 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001054 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001055 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
1056 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001057 },
1058 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001059 &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.
1060 &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 Kimd059ad82020-07-22 17:02:09 -07001061 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001062 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1063 &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.
1064 &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.
1065 &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 ],
1070 &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.
1071 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1072 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001073 }</pre>
1074</div>
1075
1076</body></html>