blob: b1912af688a77a57e55306793b9288330faf7f43 [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">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Creates a node pool for a cluster.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes a node pool from a cluster.</p>
86<p class="toc_element">
87 <code><a href="#get">get(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Retrieves the requested node pool.</p>
89<p class="toc_element">
90 <code><a href="#list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Lists the node pools for a cluster.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#rollback">rollback(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Rolls back a previously Aborted or Failed NodePool upgrade.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <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 -070097<p class="firstline">Sets the NodeManagement options for a node pool.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#setSize">setSize(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 size for a specific node pool.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#update">update(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Updates the version and/or image type of a specific node pool.</p>
104<h3>Method Details</h3>
105<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code class="details" id="autoscaling">autoscaling(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107 <pre>Sets the autoscaling settings of a specific node pool.
108
109Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700110 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700111number](https://support.google.com/cloud/answer/6158840).
112This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 zone: string, Required. Deprecated. The name of the Google Compute Engine
114[zone](https://cloud.google.com/compute/docs/zones#available) in which the
115cluster resides. This field has been deprecated and replaced by the name
116field. (required)
117 clusterId: string, Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700119 nodePoolId: string, Required. Deprecated. The name of the node pool to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700120This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 The object takes the form of:
123
124{ # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to set
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 # autoscaler settings. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700127 # `projects/*/locations/*/clusters/*/nodePools/*`.
128 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Required. Autoscaling configuration for the node pool.
129 # adjust the size of the node pool to the current cluster usage.
130 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
131 # max_node_count.
132 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
133 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
134 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
135 # has to enough quota to scale up the cluster.
136 },
137 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
138 # number](https://support.google.com/cloud/answer/6158840).
139 # This field has been deprecated and replaced by the name field.
140 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
141 # This field has been deprecated and replaced by the name field.
142 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to upgrade.
143 # This field has been deprecated and replaced by the name field.
144 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700145 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
146 # cluster resides. This field has been deprecated and replaced by the name
147 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148 }
149
150 x__xgafv: string, V1 error format.
151 Allowed values
152 1 - v1 error format
153 2 - v2 error format
154
155Returns:
156 An object of the form:
157
158 { # This operation resource represents operations that may have happened or are
159 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700160 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700161 { # StatusCondition describes why a cluster or a node pool has a certain status
162 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700163 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
164 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700165 },
166 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700168 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
169 # or
170 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
171 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
173 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
174 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
175 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
176 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
177 { # StatusCondition describes why a cluster or a node pool has a certain status
178 # (e.g., ERROR or DEGRADED).
179 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
180 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
181 },
182 ],
183 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
184 &quot;stages&quot;: [ # Substages of an operation or a stage.
185 # Object with schema name: OperationProgress
186 ],
187 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
188 # Unset for single-stage operations.
189 &quot;metrics&quot;: [ # Progress metric bundle, for example:
190 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
191 # {name: &quot;nodes total&quot;, int_value: 32}]
192 # or
193 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
194 # {name: &quot;progress scale&quot;, double_value: 1.0}]
195 { # Progress metric is (string, int|float|string) pair.
196 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
197 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
198 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
199 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
200 },
201 ],
202 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
203 # Unset for single-stage operations.
204 },
205 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
206 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
207 # operation is taking place. This field is deprecated, use location instead.
208 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
209 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
210 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
211 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
212 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
213 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
214 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700215 }</pre>
216</div>
217
218<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700219 <code class="details" id="create">create(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700220 <pre>Creates a node pool for a cluster.
221
222Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700223 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224number](https://developers.google.com/console/help/new/#projectnumber).
225This field has been deprecated and replaced by the parent field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700226 zone: string, Required. Deprecated. The name of the Google Compute Engine
227[zone](https://cloud.google.com/compute/docs/zones#available) in which the
228cluster resides. This field has been deprecated and replaced by the parent
229field. (required)
230 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700231This field has been deprecated and replaced by the parent field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700232 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700233 The object takes the form of:
234
235{ # CreateNodePoolRequest creates a node pool for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700237 # number](https://developers.google.com/console/help/new/#projectnumber).
238 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700239 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
240 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
241 # cluster resides. This field has been deprecated and replaced by the parent
242 # field.
243 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700244 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 &quot;nodePool&quot;: { # NodePool contains the name and configuration for a cluster&#x27;s node pool. # Required. The node pool to create.
246 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700247 # specification, under the control of the cluster master. They may have a set
248 # of Kubernetes labels applied to them, which may be used to reference them
249 # during pod scheduling. They may also be resized up or down, to accommodate
250 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
252 # node pool instance, if available.
253 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700254 # only if a valid configuration is present.
255 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700256 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700257 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
259 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
260 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700261 # has to enough quota to scale up the cluster.
262 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700263 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
264 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
265 # is sufficient for this number of instances. You must also have available
266 # firewall and routes quota.
267 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -0700268 # disruption caused by an upgrade.
269 #
270 # maxUnavailable controls the number of nodes that can be simultaneously
271 # unavailable.
272 #
273 # maxSurge controls the number of additional nodes that can be added to the
274 # node pool temporarily for the time of the upgrade to increase the number of
275 # available nodes.
276 #
277 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
278 # nodes are being upgraded at the same time).
279 #
280 # Note: upgrades inevitably introduce some disruption since workloads need to
281 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
282 # this holds true. (Disruption stays within the limits of
283 # PodDisruptionBudget, if it is configured.)
284 #
285 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
286 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
287 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
288 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
289 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
Dan O'Mearadd494642020-05-01 07:42:23 -0700291 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -0700292 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700293 # the upgrade process. A node is considered available if its status is
294 # Ready.
295 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
297 &quot;locations&quot;: [ # The list of Google Compute Engine
298 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
299 # NodePool&#x27;s nodes should be located.
300 &quot;A String&quot;,
301 ],
302 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
Dan O'Mearadd494642020-05-01 07:42:23 -0700303 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
304 # associated with this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700306 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
308 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
309 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
310 { # StatusCondition describes why a cluster or a node pool has a certain status
311 # (e.g., ERROR or DEGRADED).
312 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
313 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700314 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 ],
316 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
317 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
318 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
319 # The smallest allowed disk size is 10GB.
320 #
321 # If unspecified, the default disk size is 100GB.
322 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
323 # workloads on the node pool.
324 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
325 # workloads running on the node.
326 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
327 # on the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700328 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
330 # See https://cloud.google.com/compute/docs/gpus for more information about
331 # support for GPUs.
332 { # AcceleratorConfig represents a Hardware Accelerator request.
333 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
334 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
335 # [here](https://cloud.google.com/compute/docs/gpus)
336 },
337 ],
338 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -0700339 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700340 # `n1-standard-1`).
341 #
342 # If unspecified, the default machine type is
343 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700344 &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;)
345 #
346 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
347 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
348 # The Customer Managed Encryption Key used to encrypt the boot disk attached
349 # to each node in the node pool. This should be of the form
350 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
351 # For more information about protecting resources with Cloud KMS Keys please
352 # see:
353 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
354 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
355 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
356 #
357 # Secure Boot helps ensure that the system only runs authentic software by
358 # verifying the digital signature of all boot components, and halting the
359 # boot process if signature verification fails.
360 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700361 #
362 # Enables monitoring and attestation of the boot integrity of the instance.
363 # The attestation is performed against the integrity policy baseline. This
364 # baseline is initially derived from the implicitly trusted boot image when
365 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700366 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700367 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
368 # scheduled on the specified or newer CPU platform. Applicable values are the
369 # friendly names of CPU platforms, such as
370 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
371 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
372 # information, read [how to specify min CPU
373 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
374 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
375 # https://cloud.google.com/compute/docs/instances/preemptible for more
376 # inforamtion about preemptible VM instances.
377 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700378 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700379 # The limit for this value is dependent upon the maximum number of
380 # disks available on a machine per zone. See:
381 # https://cloud.google.com/compute/docs/disks/local-ssd
382 # for more information.
383 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
384 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
385 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
386 },
387 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
388 #
389 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
390 # in length. These are reflected as part of a URL in the metadata server.
391 # Additionally, to avoid ambiguity, keys must not conflict with any other
392 # metadata keys for the project or be one of the reserved keys:
393 # &quot;cluster-location&quot;
394 # &quot;cluster-name&quot;
395 # &quot;cluster-uid&quot;
396 # &quot;configure-sh&quot;
397 # &quot;containerd-configure-sh&quot;
398 # &quot;enable-oslogin&quot;
399 # &quot;gci-ensure-gke-docker&quot;
400 # &quot;gci-metrics-enabled&quot;
401 # &quot;gci-update-strategy&quot;
402 # &quot;instance-template&quot;
403 # &quot;kube-env&quot;
404 # &quot;startup-script&quot;
405 # &quot;user-data&quot;
406 # &quot;disable-address-manager&quot;
407 # &quot;windows-startup-script-ps1&quot;
408 # &quot;common-psm1&quot;
409 # &quot;k8s-node-setup-psm1&quot;
410 # &quot;install-ssh-psm1&quot;
411 # &quot;user-profile-psm1&quot;
412 # &quot;serial-port-logging-enable&quot;
413 # Values are free-form strings, and only have meaning as interpreted by
414 # the image running in the instance. The only restriction placed on them is
415 # that each value&#x27;s size must be less than or equal to 32 KB.
416 #
417 # The total size of all keys and values must be less than 512 KB.
418 &quot;a_key&quot;: &quot;A String&quot;,
419 },
420 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
421 # the specified [Zonal Compute
422 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
423 # to this node pool.
424 # is the configuration of desired reservation which instances could take
425 # capacity from.
426 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
427 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
428 # the key and specify the name of your reservation as its value.
429 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
430 &quot;A String&quot;,
431 ],
432 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
433 },
434 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700435 # valid sources or targets for network firewalls and are specified by
436 # the client during cluster or node pool creation. Each tag within the list
437 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700438 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700439 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700440 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700441 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700442 # Account is specified, the &quot;default&quot; service account is used.
443 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
444 # the latest version of it will be used.
445 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
446 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700447 #
448 # The following scopes are recommended, but not required, and by default are
449 # not included:
450 #
451 # * `https://www.googleapis.com/auth/compute` is required for mounting
452 # persistent storage on your nodes.
453 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
454 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700455 # (the [Google Container
456 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700457 #
458 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
459 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700460 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700461 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700463 #
464 # For more information, including usage and the valid values, see:
465 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
466 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
467 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
468 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700469 # See
470 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
471 # for more information, including usage and the valid values.
472 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
473 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
474 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700475 },
476 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700477 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
478 # These will added in addition to any default label(s) that
479 # Kubernetes may apply to the node.
480 # In case of conflict in label keys, the applied set may differ depending on
481 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
482 # and conflicts should be avoided.
483 # For more information, including usage and the valid values, see:
484 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
485 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700486 },
487 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700488 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
489 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
490 # simultaneously on a node in the node pool.
491 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
492 },
493 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
494 # node pool.
495 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
496 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
497 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
498 # the Auto Upgrades will proceed.
499 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
500 # with the description of the upgrade.
501 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
502 # with the approximate start time for the upgrades, in
503 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
504 },
505 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700506 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700507 &quot;parent&quot;: &quot;A String&quot;, # The parent (project, location, cluster id) where the node pool will be
508 # created. Specified in the format
509 # `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700510 }
511
512 x__xgafv: string, V1 error format.
513 Allowed values
514 1 - v1 error format
515 2 - v2 error format
516
517Returns:
518 An object of the form:
519
520 { # This operation resource represents operations that may have happened or are
521 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700522 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700523 { # StatusCondition describes why a cluster or a node pool has a certain status
524 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700525 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
526 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700527 },
528 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700529 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700530 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
531 # or
532 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
533 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700534 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
535 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
536 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
537 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
538 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
539 { # StatusCondition describes why a cluster or a node pool has a certain status
540 # (e.g., ERROR or DEGRADED).
541 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
542 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
543 },
544 ],
545 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
546 &quot;stages&quot;: [ # Substages of an operation or a stage.
547 # Object with schema name: OperationProgress
548 ],
549 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
550 # Unset for single-stage operations.
551 &quot;metrics&quot;: [ # Progress metric bundle, for example:
552 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
553 # {name: &quot;nodes total&quot;, int_value: 32}]
554 # or
555 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
556 # {name: &quot;progress scale&quot;, double_value: 1.0}]
557 { # Progress metric is (string, int|float|string) pair.
558 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
559 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
560 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
561 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
562 },
563 ],
564 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
565 # Unset for single-stage operations.
566 },
567 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
568 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
569 # operation is taking place. This field is deprecated, use location instead.
570 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
571 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
572 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
573 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
574 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
575 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
576 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700577 }</pre>
578</div>
579
580<div class="method">
581 <code class="details" id="delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
582 <pre>Deletes a node pool from a cluster.
583
584Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700585 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700586number](https://developers.google.com/console/help/new/#projectnumber).
587This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700588 zone: string, Required. Deprecated. The name of the Google Compute Engine
589[zone](https://cloud.google.com/compute/docs/zones#available) in which the
590cluster resides. This field has been deprecated and replaced by the name
591field. (required)
592 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700593This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700594 nodePoolId: string, Required. Deprecated. The name of the node pool to delete.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700595This field has been deprecated and replaced by the name field. (required)
596 name: string, The name (project, location, cluster, node pool id) of the node pool to
597delete. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700598`projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700599 x__xgafv: string, V1 error format.
600 Allowed values
601 1 - v1 error format
602 2 - v2 error format
603
604Returns:
605 An object of the form:
606
607 { # This operation resource represents operations that may have happened or are
608 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700609 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700610 { # StatusCondition describes why a cluster or a node pool has a certain status
611 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700612 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
613 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700614 },
615 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700616 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700617 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
618 # or
619 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
620 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700621 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
622 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
623 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
624 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
625 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
626 { # StatusCondition describes why a cluster or a node pool has a certain status
627 # (e.g., ERROR or DEGRADED).
628 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
629 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
630 },
631 ],
632 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
633 &quot;stages&quot;: [ # Substages of an operation or a stage.
634 # Object with schema name: OperationProgress
635 ],
636 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
637 # Unset for single-stage operations.
638 &quot;metrics&quot;: [ # Progress metric bundle, for example:
639 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
640 # {name: &quot;nodes total&quot;, int_value: 32}]
641 # or
642 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
643 # {name: &quot;progress scale&quot;, double_value: 1.0}]
644 { # Progress metric is (string, int|float|string) pair.
645 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
646 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
647 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
648 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
649 },
650 ],
651 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
652 # Unset for single-stage operations.
653 },
654 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
655 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
656 # operation is taking place. This field is deprecated, use location instead.
657 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
658 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
659 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
660 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
661 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
662 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
663 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700664 }</pre>
665</div>
666
667<div class="method">
668 <code class="details" id="get">get(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code>
669 <pre>Retrieves the requested node pool.
670
671Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700672 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700673number](https://developers.google.com/console/help/new/#projectnumber).
674This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700675 zone: string, Required. Deprecated. The name of the Google Compute Engine
676[zone](https://cloud.google.com/compute/docs/zones#available) in which the
677cluster resides. This field has been deprecated and replaced by the name
678field. (required)
679 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700680This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700681 nodePoolId: string, Required. Deprecated. The name of the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700682This field has been deprecated and replaced by the name field. (required)
683 name: string, The name (project, location, cluster, node pool id) of the node pool to
684get. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700685`projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700686 x__xgafv: string, V1 error format.
687 Allowed values
688 1 - v1 error format
689 2 - v2 error format
690
691Returns:
692 An object of the form:
693
Bu Sun Kim65020912020-05-20 12:08:20 -0700694 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
695 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700696 # specification, under the control of the cluster master. They may have a set
697 # of Kubernetes labels applied to them, which may be used to reference them
698 # during pod scheduling. They may also be resized up or down, to accommodate
699 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700700 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
701 # node pool instance, if available.
702 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700703 # only if a valid configuration is present.
704 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700705 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700706 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -0700707 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
708 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
709 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700710 # has to enough quota to scale up the cluster.
711 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700712 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
713 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
714 # is sufficient for this number of instances. You must also have available
715 # firewall and routes quota.
716 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -0700717 # disruption caused by an upgrade.
718 #
719 # maxUnavailable controls the number of nodes that can be simultaneously
720 # unavailable.
721 #
722 # maxSurge controls the number of additional nodes that can be added to the
723 # node pool temporarily for the time of the upgrade to increase the number of
724 # available nodes.
725 #
726 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
727 # nodes are being upgraded at the same time).
728 #
729 # Note: upgrades inevitably introduce some disruption since workloads need to
730 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
731 # this holds true. (Disruption stays within the limits of
732 # PodDisruptionBudget, if it is configured.)
733 #
734 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
735 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
736 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
737 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
738 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700739 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
Dan O'Mearadd494642020-05-01 07:42:23 -0700740 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -0700741 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700742 # the upgrade process. A node is considered available if its status is
743 # Ready.
744 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700745 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
746 &quot;locations&quot;: [ # The list of Google Compute Engine
747 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
748 # NodePool&#x27;s nodes should be located.
749 &quot;A String&quot;,
750 ],
751 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
Dan O'Mearadd494642020-05-01 07:42:23 -0700752 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
753 # associated with this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700754 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700755 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700756 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
757 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
758 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
759 { # StatusCondition describes why a cluster or a node pool has a certain status
760 # (e.g., ERROR or DEGRADED).
761 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
762 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700763 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700764 ],
765 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
766 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
767 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
768 # The smallest allowed disk size is 10GB.
769 #
770 # If unspecified, the default disk size is 100GB.
771 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
772 # workloads on the node pool.
773 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
774 # workloads running on the node.
775 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
776 # on the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700777 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700778 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
779 # See https://cloud.google.com/compute/docs/gpus for more information about
780 # support for GPUs.
781 { # AcceleratorConfig represents a Hardware Accelerator request.
782 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
783 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
784 # [here](https://cloud.google.com/compute/docs/gpus)
785 },
786 ],
787 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -0700788 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700789 # `n1-standard-1`).
790 #
791 # If unspecified, the default machine type is
792 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700793 &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;)
794 #
795 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
796 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
797 # The Customer Managed Encryption Key used to encrypt the boot disk attached
798 # to each node in the node pool. This should be of the form
799 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
800 # For more information about protecting resources with Cloud KMS Keys please
801 # see:
802 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
803 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
804 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
805 #
806 # Secure Boot helps ensure that the system only runs authentic software by
807 # verifying the digital signature of all boot components, and halting the
808 # boot process if signature verification fails.
809 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700810 #
811 # Enables monitoring and attestation of the boot integrity of the instance.
812 # The attestation is performed against the integrity policy baseline. This
813 # baseline is initially derived from the implicitly trusted boot image when
814 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700815 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700816 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
817 # scheduled on the specified or newer CPU platform. Applicable values are the
818 # friendly names of CPU platforms, such as
819 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
820 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
821 # information, read [how to specify min CPU
822 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
823 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
824 # https://cloud.google.com/compute/docs/instances/preemptible for more
825 # inforamtion about preemptible VM instances.
826 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700827 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700828 # The limit for this value is dependent upon the maximum number of
829 # disks available on a machine per zone. See:
830 # https://cloud.google.com/compute/docs/disks/local-ssd
831 # for more information.
832 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
833 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
834 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
835 },
836 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
837 #
838 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
839 # in length. These are reflected as part of a URL in the metadata server.
840 # Additionally, to avoid ambiguity, keys must not conflict with any other
841 # metadata keys for the project or be one of the reserved keys:
842 # &quot;cluster-location&quot;
843 # &quot;cluster-name&quot;
844 # &quot;cluster-uid&quot;
845 # &quot;configure-sh&quot;
846 # &quot;containerd-configure-sh&quot;
847 # &quot;enable-oslogin&quot;
848 # &quot;gci-ensure-gke-docker&quot;
849 # &quot;gci-metrics-enabled&quot;
850 # &quot;gci-update-strategy&quot;
851 # &quot;instance-template&quot;
852 # &quot;kube-env&quot;
853 # &quot;startup-script&quot;
854 # &quot;user-data&quot;
855 # &quot;disable-address-manager&quot;
856 # &quot;windows-startup-script-ps1&quot;
857 # &quot;common-psm1&quot;
858 # &quot;k8s-node-setup-psm1&quot;
859 # &quot;install-ssh-psm1&quot;
860 # &quot;user-profile-psm1&quot;
861 # &quot;serial-port-logging-enable&quot;
862 # Values are free-form strings, and only have meaning as interpreted by
863 # the image running in the instance. The only restriction placed on them is
864 # that each value&#x27;s size must be less than or equal to 32 KB.
865 #
866 # The total size of all keys and values must be less than 512 KB.
867 &quot;a_key&quot;: &quot;A String&quot;,
868 },
869 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
870 # the specified [Zonal Compute
871 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
872 # to this node pool.
873 # is the configuration of desired reservation which instances could take
874 # capacity from.
875 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
876 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
877 # the key and specify the name of your reservation as its value.
878 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
879 &quot;A String&quot;,
880 ],
881 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
882 },
883 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700884 # valid sources or targets for network firewalls and are specified by
885 # the client during cluster or node pool creation. Each tag within the list
886 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700887 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700888 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700889 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700890 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700891 # Account is specified, the &quot;default&quot; service account is used.
892 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
893 # the latest version of it will be used.
894 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
895 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700896 #
897 # The following scopes are recommended, but not required, and by default are
898 # not included:
899 #
900 # * `https://www.googleapis.com/auth/compute` is required for mounting
901 # persistent storage on your nodes.
902 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
903 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700904 # (the [Google Container
905 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700906 #
907 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
908 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700909 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700910 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700911 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700912 #
913 # For more information, including usage and the valid values, see:
914 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
915 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
916 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
917 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700918 # See
919 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
920 # for more information, including usage and the valid values.
921 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
922 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
923 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700924 },
925 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700926 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
927 # These will added in addition to any default label(s) that
928 # Kubernetes may apply to the node.
929 # In case of conflict in label keys, the applied set may differ depending on
930 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
931 # and conflicts should be avoided.
932 # For more information, including usage and the valid values, see:
933 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
934 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700935 },
936 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700937 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
938 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
939 # simultaneously on a node in the node pool.
940 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
941 },
942 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
943 # node pool.
944 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
945 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
946 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
947 # the Auto Upgrades will proceed.
948 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
949 # with the description of the upgrade.
950 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
951 # with the approximate start time for the upgrades, in
952 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
953 },
954 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700955 }</pre>
956</div>
957
958<div class="method">
959 <code class="details" id="list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</code>
960 <pre>Lists the node pools for a cluster.
961
962Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700963 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700964number](https://developers.google.com/console/help/new/#projectnumber).
965This field has been deprecated and replaced by the parent field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700966 zone: string, Required. Deprecated. The name of the Google Compute Engine
967[zone](https://cloud.google.com/compute/docs/zones#available) in which the
968cluster resides. This field has been deprecated and replaced by the parent
969field. (required)
970 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700971This field has been deprecated and replaced by the parent field. (required)
972 parent: string, The parent (project, location, cluster id) where the node pools will be
Bu Sun Kim65020912020-05-20 12:08:20 -0700973listed. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700974 x__xgafv: string, V1 error format.
975 Allowed values
976 1 - v1 error format
977 2 - v2 error format
978
979Returns:
980 An object of the form:
981
982 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700983 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
984 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
985 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700986 # specification, under the control of the cluster master. They may have a set
987 # of Kubernetes labels applied to them, which may be used to reference them
988 # during pod scheduling. They may also be resized up or down, to accommodate
989 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700990 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
991 # node pool instance, if available.
992 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700993 # only if a valid configuration is present.
994 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700995 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700996 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -0700997 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
998 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
999 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001000 # has to enough quota to scale up the cluster.
1001 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001002 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
1003 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
1004 # is sufficient for this number of instances. You must also have available
1005 # firewall and routes quota.
1006 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -07001007 # disruption caused by an upgrade.
1008 #
1009 # maxUnavailable controls the number of nodes that can be simultaneously
1010 # unavailable.
1011 #
1012 # maxSurge controls the number of additional nodes that can be added to the
1013 # node pool temporarily for the time of the upgrade to increase the number of
1014 # available nodes.
1015 #
1016 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1017 # nodes are being upgraded at the same time).
1018 #
1019 # Note: upgrades inevitably introduce some disruption since workloads need to
1020 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1021 # this holds true. (Disruption stays within the limits of
1022 # PodDisruptionBudget, if it is configured.)
1023 #
1024 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1025 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1026 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1027 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1028 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001029 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
Dan O'Mearadd494642020-05-01 07:42:23 -07001030 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07001031 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001032 # the upgrade process. A node is considered available if its status is
1033 # Ready.
1034 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001035 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1036 &quot;locations&quot;: [ # The list of Google Compute Engine
1037 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1038 # NodePool&#x27;s nodes should be located.
1039 &quot;A String&quot;,
1040 ],
1041 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
Dan O'Mearadd494642020-05-01 07:42:23 -07001042 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1043 # associated with this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001044 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001045 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001046 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1047 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1048 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1049 { # StatusCondition describes why a cluster or a node pool has a certain status
1050 # (e.g., ERROR or DEGRADED).
1051 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1052 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07001053 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001054 ],
1055 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
1056 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
1057 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1058 # The smallest allowed disk size is 10GB.
1059 #
1060 # If unspecified, the default disk size is 100GB.
1061 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1062 # workloads on the node pool.
1063 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
1064 # workloads running on the node.
1065 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1066 # on the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001067 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001068 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1069 # See https://cloud.google.com/compute/docs/gpus for more information about
1070 # support for GPUs.
1071 { # AcceleratorConfig represents a Hardware Accelerator request.
1072 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1073 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1074 # [here](https://cloud.google.com/compute/docs/gpus)
1075 },
1076 ],
1077 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -07001078 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001079 # `n1-standard-1`).
1080 #
1081 # If unspecified, the default machine type is
1082 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001083 &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;)
1084 #
1085 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1086 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
1087 # The Customer Managed Encryption Key used to encrypt the boot disk attached
1088 # to each node in the node pool. This should be of the form
1089 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
1090 # For more information about protecting resources with Cloud KMS Keys please
1091 # see:
1092 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1093 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1094 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1095 #
1096 # Secure Boot helps ensure that the system only runs authentic software by
1097 # verifying the digital signature of all boot components, and halting the
1098 # boot process if signature verification fails.
1099 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001100 #
1101 # Enables monitoring and attestation of the boot integrity of the instance.
1102 # The attestation is performed against the integrity policy baseline. This
1103 # baseline is initially derived from the implicitly trusted boot image when
1104 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001105 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001106 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1107 # scheduled on the specified or newer CPU platform. Applicable values are the
1108 # friendly names of CPU platforms, such as
1109 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1110 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1111 # information, read [how to specify min CPU
1112 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1113 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1114 # https://cloud.google.com/compute/docs/instances/preemptible for more
1115 # inforamtion about preemptible VM instances.
1116 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001117 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001118 # The limit for this value is dependent upon the maximum number of
1119 # disks available on a machine per zone. See:
1120 # https://cloud.google.com/compute/docs/disks/local-ssd
1121 # for more information.
1122 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1123 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1124 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
1125 },
1126 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1127 #
1128 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1129 # in length. These are reflected as part of a URL in the metadata server.
1130 # Additionally, to avoid ambiguity, keys must not conflict with any other
1131 # metadata keys for the project or be one of the reserved keys:
1132 # &quot;cluster-location&quot;
1133 # &quot;cluster-name&quot;
1134 # &quot;cluster-uid&quot;
1135 # &quot;configure-sh&quot;
1136 # &quot;containerd-configure-sh&quot;
1137 # &quot;enable-oslogin&quot;
1138 # &quot;gci-ensure-gke-docker&quot;
1139 # &quot;gci-metrics-enabled&quot;
1140 # &quot;gci-update-strategy&quot;
1141 # &quot;instance-template&quot;
1142 # &quot;kube-env&quot;
1143 # &quot;startup-script&quot;
1144 # &quot;user-data&quot;
1145 # &quot;disable-address-manager&quot;
1146 # &quot;windows-startup-script-ps1&quot;
1147 # &quot;common-psm1&quot;
1148 # &quot;k8s-node-setup-psm1&quot;
1149 # &quot;install-ssh-psm1&quot;
1150 # &quot;user-profile-psm1&quot;
1151 # &quot;serial-port-logging-enable&quot;
1152 # Values are free-form strings, and only have meaning as interpreted by
1153 # the image running in the instance. The only restriction placed on them is
1154 # that each value&#x27;s size must be less than or equal to 32 KB.
1155 #
1156 # The total size of all keys and values must be less than 512 KB.
1157 &quot;a_key&quot;: &quot;A String&quot;,
1158 },
1159 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1160 # the specified [Zonal Compute
1161 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1162 # to this node pool.
1163 # is the configuration of desired reservation which instances could take
1164 # capacity from.
1165 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1166 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1167 # the key and specify the name of your reservation as its value.
1168 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1169 &quot;A String&quot;,
1170 ],
1171 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1172 },
1173 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001174 # valid sources or targets for network firewalls and are specified by
1175 # the client during cluster or node pool creation. Each tag within the list
1176 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07001177 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001178 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001179 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07001180 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07001181 # Account is specified, the &quot;default&quot; service account is used.
1182 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1183 # the latest version of it will be used.
1184 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1185 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001186 #
1187 # The following scopes are recommended, but not required, and by default are
1188 # not included:
1189 #
1190 # * `https://www.googleapis.com/auth/compute` is required for mounting
1191 # persistent storage on your nodes.
1192 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1193 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001194 # (the [Google Container
1195 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001196 #
1197 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1198 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001199 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001200 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001201 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001202 #
1203 # For more information, including usage and the valid values, see:
1204 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1205 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1206 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1207 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001208 # See
1209 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1210 # for more information, including usage and the valid values.
1211 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1212 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1213 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001214 },
1215 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001216 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1217 # These will added in addition to any default label(s) that
1218 # Kubernetes may apply to the node.
1219 # In case of conflict in label keys, the applied set may differ depending on
1220 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1221 # and conflicts should be avoided.
1222 # For more information, including usage and the valid values, see:
1223 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1224 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001225 },
1226 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001227 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1228 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1229 # simultaneously on a node in the node pool.
1230 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1231 },
1232 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1233 # node pool.
1234 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
1235 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
1236 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1237 # the Auto Upgrades will proceed.
1238 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1239 # with the description of the upgrade.
1240 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1241 # with the approximate start time for the upgrades, in
1242 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1243 },
1244 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001245 },
1246 ],
1247 }</pre>
1248</div>
1249
1250<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001251 <code class="details" id="rollback">rollback(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001252 <pre>Rolls back a previously Aborted or Failed NodePool upgrade.
1253This makes no changes if the last upgrade successfully completed.
1254
1255Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001256 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001257number](https://support.google.com/cloud/answer/6158840).
1258This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001259 zone: string, Required. Deprecated. The name of the Google Compute Engine
1260[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1261cluster resides. This field has been deprecated and replaced by the name
1262field. (required)
1263 clusterId: string, Required. Deprecated. The name of the cluster to rollback.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001264This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001265 nodePoolId: string, Required. Deprecated. The name of the node pool to rollback.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001266This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001267 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001268 The object takes the form of:
1269
1270{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
1271 # NodePool upgrade. This will be an no-op if the last upgrade successfully
1272 # completed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001273 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node poll to
1274 # rollback upgrade.
1275 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1276 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001277 # number](https://support.google.com/cloud/answer/6158840).
1278 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001279 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001280 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1281 # cluster resides. This field has been deprecated and replaced by the name
1282 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001283 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to rollback.
1284 # This field has been deprecated and replaced by the name field.
1285 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to rollback.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001286 # This field has been deprecated and replaced by the name field.
1287 }
1288
1289 x__xgafv: string, V1 error format.
1290 Allowed values
1291 1 - v1 error format
1292 2 - v2 error format
1293
1294Returns:
1295 An object of the form:
1296
1297 { # This operation resource represents operations that may have happened or are
1298 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001299 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001300 { # StatusCondition describes why a cluster or a node pool has a certain status
1301 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001302 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1303 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001304 },
1305 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001306 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001307 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1308 # or
1309 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1310 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001311 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1312 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1313 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1314 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1315 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1316 { # StatusCondition describes why a cluster or a node pool has a certain status
1317 # (e.g., ERROR or DEGRADED).
1318 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1319 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1320 },
1321 ],
1322 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1323 &quot;stages&quot;: [ # Substages of an operation or a stage.
1324 # Object with schema name: OperationProgress
1325 ],
1326 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1327 # Unset for single-stage operations.
1328 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1329 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1330 # {name: &quot;nodes total&quot;, int_value: 32}]
1331 # or
1332 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1333 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1334 { # Progress metric is (string, int|float|string) pair.
1335 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1336 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1337 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1338 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1339 },
1340 ],
1341 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1342 # Unset for single-stage operations.
1343 },
1344 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1345 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1346 # operation is taking place. This field is deprecated, use location instead.
1347 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1348 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1349 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1350 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1351 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1352 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1353 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001354 }</pre>
1355</div>
1356
1357<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001358 <code class="details" id="setManagement">setManagement(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001359 <pre>Sets the NodeManagement options for a node pool.
1360
1361Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001362 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001363number](https://support.google.com/cloud/answer/6158840).
1364This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001365 zone: string, Required. Deprecated. The name of the Google Compute Engine
1366[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1367cluster resides. This field has been deprecated and replaced by the name
1368field. (required)
1369 clusterId: string, Required. Deprecated. The name of the cluster to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001370This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001371 nodePoolId: string, Required. Deprecated. The name of the node pool to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001372This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001373 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001374 The object takes the form of:
1375
1376{ # SetNodePoolManagementRequest sets the node management properties of a node
1377 # pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001378 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
1379 # This field has been deprecated and replaced by the name field.
1380 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update.
1381 # This field has been deprecated and replaced by the name field.
1382 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001383 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1384 # cluster resides. This field has been deprecated and replaced by the name
1385 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001386 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1387 # management properties. Specified in the format
1388 # `projects/*/locations/*/clusters/*/nodePools/*`.
1389 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001390 # number](https://support.google.com/cloud/answer/6158840).
1391 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001392 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Required. NodeManagement configuration for the node pool.
1393 # node pool.
1394 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
1395 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
1396 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1397 # the Auto Upgrades will proceed.
1398 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1399 # with the description of the upgrade.
1400 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1401 # with the approximate start time for the upgrades, in
1402 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1403 },
1404 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001405 }
1406
1407 x__xgafv: string, V1 error format.
1408 Allowed values
1409 1 - v1 error format
1410 2 - v2 error format
1411
1412Returns:
1413 An object of the form:
1414
1415 { # This operation resource represents operations that may have happened or are
1416 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001417 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001418 { # StatusCondition describes why a cluster or a node pool has a certain status
1419 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001420 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1421 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001422 },
1423 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001424 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001425 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1426 # or
1427 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1428 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001429 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1430 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1431 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1432 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1433 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1434 { # StatusCondition describes why a cluster or a node pool has a certain status
1435 # (e.g., ERROR or DEGRADED).
1436 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1437 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1438 },
1439 ],
1440 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1441 &quot;stages&quot;: [ # Substages of an operation or a stage.
1442 # Object with schema name: OperationProgress
1443 ],
1444 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1445 # Unset for single-stage operations.
1446 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1447 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1448 # {name: &quot;nodes total&quot;, int_value: 32}]
1449 # or
1450 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1451 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1452 { # Progress metric is (string, int|float|string) pair.
1453 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1454 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1455 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1456 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1457 },
1458 ],
1459 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1460 # Unset for single-stage operations.
1461 },
1462 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1463 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1464 # operation is taking place. This field is deprecated, use location instead.
1465 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1466 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1467 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1468 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1469 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1470 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1471 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001472 }</pre>
1473</div>
1474
1475<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001476 <code class="details" id="setSize">setSize(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001477 <pre>Sets the size for a specific node pool.
1478
1479Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001480 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001481number](https://support.google.com/cloud/answer/6158840).
1482This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001483 zone: string, Required. Deprecated. The name of the Google Compute Engine
1484[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1485cluster resides. This field has been deprecated and replaced by the name
1486field. (required)
1487 clusterId: string, Required. Deprecated. The name of the cluster to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001488This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001489 nodePoolId: string, Required. Deprecated. The name of the node pool to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001490This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001491 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001492 The object takes the form of:
1493
1494{ # SetNodePoolSizeRequest sets the size a node
1495 # pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001496 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001497 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1498 # cluster resides. This field has been deprecated and replaced by the name
1499 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001500 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
1501 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1502 # size.
1503 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1504 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001505 # number](https://support.google.com/cloud/answer/6158840).
1506 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001507 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001508 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001509 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001510 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001511 }
1512
1513 x__xgafv: string, V1 error format.
1514 Allowed values
1515 1 - v1 error format
1516 2 - v2 error format
1517
1518Returns:
1519 An object of the form:
1520
1521 { # This operation resource represents operations that may have happened or are
1522 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001523 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001524 { # StatusCondition describes why a cluster or a node pool has a certain status
1525 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001526 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1527 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001528 },
1529 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001530 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001531 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1532 # or
1533 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1534 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001535 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1536 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1537 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1538 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1539 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1540 { # StatusCondition describes why a cluster or a node pool has a certain status
1541 # (e.g., ERROR or DEGRADED).
1542 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1543 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1544 },
1545 ],
1546 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1547 &quot;stages&quot;: [ # Substages of an operation or a stage.
1548 # Object with schema name: OperationProgress
1549 ],
1550 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1551 # Unset for single-stage operations.
1552 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1553 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1554 # {name: &quot;nodes total&quot;, int_value: 32}]
1555 # or
1556 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1557 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1558 { # Progress metric is (string, int|float|string) pair.
1559 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1560 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1561 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1562 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1563 },
1564 ],
1565 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1566 # Unset for single-stage operations.
1567 },
1568 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1569 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1570 # operation is taking place. This field is deprecated, use location instead.
1571 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1572 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1573 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1574 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1575 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1576 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1577 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001578 }</pre>
1579</div>
1580
1581<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001582 <code class="details" id="update">update(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001583 <pre>Updates the version and/or image type of a specific node pool.
1584
1585Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001586 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001587number](https://support.google.com/cloud/answer/6158840).
1588This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001589 zone: string, Required. Deprecated. The name of the Google Compute Engine
1590[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1591cluster resides. This field has been deprecated and replaced by the name
1592field. (required)
1593 clusterId: string, Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001594This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001595 nodePoolId: string, Required. Deprecated. The name of the node pool to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001596This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001597 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001598 The object takes the form of:
1599
1600{ # SetNodePoolVersionRequest updates the version of a node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001601 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001602 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1603 # cluster resides. This field has been deprecated and replaced by the name
1604 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001605 &quot;nodeVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the nodes to (typically an
1606 # upgrade).
1607 #
1608 # Users may specify either explicit versions offered by Kubernetes Engine or
1609 # version aliases, which have the following behavior:
1610 #
1611 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1612 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1613 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1614 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1615 # - &quot;-&quot;: picks the Kubernetes master version
1616 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to
1617 # update. Specified in the format
1618 # `projects/*/locations/*/clusters/*/nodePools/*`.
1619 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001620 # number](https://support.google.com/cloud/answer/6158840).
1621 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001622 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -07001623 # disruption caused by an upgrade.
1624 #
1625 # maxUnavailable controls the number of nodes that can be simultaneously
1626 # unavailable.
1627 #
1628 # maxSurge controls the number of additional nodes that can be added to the
1629 # node pool temporarily for the time of the upgrade to increase the number of
1630 # available nodes.
1631 #
1632 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1633 # nodes are being upgraded at the same time).
1634 #
1635 # Note: upgrades inevitably introduce some disruption since workloads need to
1636 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1637 # this holds true. (Disruption stays within the limits of
1638 # PodDisruptionBudget, if it is configured.)
1639 #
1640 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1641 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1642 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1643 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1644 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001645 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
Dan O'Mearadd494642020-05-01 07:42:23 -07001646 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07001647 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001648 # the upgrade process. A node is considered available if its status is
1649 # Ready.
1650 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001651 &quot;locations&quot;: [ # The desired list of Google Compute Engine
1652 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1653 # node pool&#x27;s nodes should be located. Changing the locations for a node pool
1654 # will result in nodes being either created or removed from the node pool,
1655 # depending on whether locations are being added or removed.
1656 &quot;A String&quot;,
1657 ],
1658 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
1659 # This field has been deprecated and replaced by the name field.
1660 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The desired workload metadata config for the node pool.
1661 # workloads on the node pool.
1662 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
1663 # workloads running on the node.
1664 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1665 # on the node pool.
1666 },
1667 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to upgrade.
1668 # This field has been deprecated and replaced by the name field.
1669 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001670 }
1671
1672 x__xgafv: string, V1 error format.
1673 Allowed values
1674 1 - v1 error format
1675 2 - v2 error format
1676
1677Returns:
1678 An object of the form:
1679
1680 { # This operation resource represents operations that may have happened or are
1681 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001682 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001683 { # StatusCondition describes why a cluster or a node pool has a certain status
1684 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001685 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1686 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001687 },
1688 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001689 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001690 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1691 # or
1692 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1693 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001694 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1695 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1696 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1697 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1698 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1699 { # StatusCondition describes why a cluster or a node pool has a certain status
1700 # (e.g., ERROR or DEGRADED).
1701 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1702 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1703 },
1704 ],
1705 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1706 &quot;stages&quot;: [ # Substages of an operation or a stage.
1707 # Object with schema name: OperationProgress
1708 ],
1709 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1710 # Unset for single-stage operations.
1711 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1712 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1713 # {name: &quot;nodes total&quot;, int_value: 32}]
1714 # or
1715 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1716 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1717 { # Progress metric is (string, int|float|string) pair.
1718 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1719 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1720 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1721 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1722 },
1723 ],
1724 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1725 # Unset for single-stage operations.
1726 },
1727 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1728 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1729 # operation is taking place. This field is deprecated, use location instead.
1730 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1731 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1732 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1733 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1734 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1735 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1736 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001737 }</pre>
1738</div>
1739
1740</body></html>