blob: 54895a3d4759efaaddc5a304480eb98ec1de21a8 [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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
131 # has to enough quota to scale up the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700132 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
133 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
134 # max_node_count.
135 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700136 },
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 Kim4ed7d3f2020-05-27 12:20:54 -0700160 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
161 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
162 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
163 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
164 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700166 { # StatusCondition describes why a cluster or a node pool has a certain status
167 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
169 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700170 },
171 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700174 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700175 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
176 # or
177 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
178 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
180 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
181 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
182 { # StatusCondition describes why a cluster or a node pool has a certain status
183 # (e.g., ERROR or DEGRADED).
184 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
185 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
186 },
187 ],
188 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &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 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700202 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
203 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700204 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
205 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700206 &quot;stages&quot;: [ # Substages of an operation or a stage.
207 # Object with schema name: OperationProgress
208 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700209 },
210 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
211 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
212 # operation is taking place. This field is deprecated, use location instead.
213 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
214 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700243 &quot;parent&quot;: &quot;A String&quot;, # The parent (project, location, cluster id) where the node pool will be
244 # created. Specified in the format
245 # `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 &quot;nodePool&quot;: { # NodePool contains the name and configuration for a cluster&#x27;s node pool. # Required. The node pool to create.
247 # 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 -0700248 # specification, under the control of the cluster master. They may have a set
249 # of Kubernetes labels applied to them, which may be used to reference them
250 # during pod scheduling. They may also be resized up or down, to accommodate
251 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
253 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
255 # scheduled on the specified or newer CPU platform. Applicable values are the
256 # friendly names of CPU platforms, such as
257 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
258 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
259 # information, read [how to specify min CPU
260 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700261 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
262 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
263 #
264 # Enables monitoring and attestation of the boot integrity of the instance.
265 # The attestation is performed against the integrity policy baseline. This
266 # baseline is initially derived from the implicitly trusted boot image when
267 # the instance is created.
268 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
269 #
270 # Secure Boot helps ensure that the system only runs authentic software by
271 # verifying the digital signature of all boot components, and halting the
272 # boot process if signature verification fails.
273 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700274 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
275 # https://cloud.google.com/compute/docs/instances/preemptible for more
276 # inforamtion about preemptible VM instances.
277 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700278 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700279 # The limit for this value is dependent upon the maximum number of
280 # disks available on a machine per zone. See:
281 # https://cloud.google.com/compute/docs/disks/local-ssd
282 # for more information.
283 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
284 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
285 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
286 },
287 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
288 #
289 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
290 # in length. These are reflected as part of a URL in the metadata server.
291 # Additionally, to avoid ambiguity, keys must not conflict with any other
292 # metadata keys for the project or be one of the reserved keys:
293 # &quot;cluster-location&quot;
294 # &quot;cluster-name&quot;
295 # &quot;cluster-uid&quot;
296 # &quot;configure-sh&quot;
297 # &quot;containerd-configure-sh&quot;
298 # &quot;enable-oslogin&quot;
299 # &quot;gci-ensure-gke-docker&quot;
300 # &quot;gci-metrics-enabled&quot;
301 # &quot;gci-update-strategy&quot;
302 # &quot;instance-template&quot;
303 # &quot;kube-env&quot;
304 # &quot;startup-script&quot;
305 # &quot;user-data&quot;
306 # &quot;disable-address-manager&quot;
307 # &quot;windows-startup-script-ps1&quot;
308 # &quot;common-psm1&quot;
309 # &quot;k8s-node-setup-psm1&quot;
310 # &quot;install-ssh-psm1&quot;
311 # &quot;user-profile-psm1&quot;
312 # &quot;serial-port-logging-enable&quot;
313 # Values are free-form strings, and only have meaning as interpreted by
314 # the image running in the instance. The only restriction placed on them is
315 # that each value&#x27;s size must be less than or equal to 32 KB.
316 #
317 # The total size of all keys and values must be less than 512 KB.
318 &quot;a_key&quot;: &quot;A String&quot;,
319 },
320 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
321 # the specified [Zonal Compute
322 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
323 # to this node pool.
324 # is the configuration of desired reservation which instances could take
325 # capacity from.
326 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
327 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
328 # the key and specify the name of your reservation as its value.
329 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
330 &quot;A String&quot;,
331 ],
332 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
333 },
334 &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 -0700335 # valid sources or targets for network firewalls and are specified by
336 # the client during cluster or node pool creation. Each tag within the list
337 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700338 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700339 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700340 &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 -0700341 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700342 # Account is specified, the &quot;default&quot; service account is used.
343 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
344 # the latest version of it will be used.
345 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
346 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700347 #
348 # The following scopes are recommended, but not required, and by default are
349 # not included:
350 #
351 # * `https://www.googleapis.com/auth/compute` is required for mounting
352 # persistent storage on your nodes.
353 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
354 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700355 # (the [Google Container
356 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700357 #
358 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
359 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700360 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700361 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700362 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700363 #
364 # For more information, including usage and the valid values, see:
365 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
366 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
367 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
368 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700369 # See
370 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
371 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700373 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
374 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700375 },
376 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700377 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
378 # These will added in addition to any default label(s) that
379 # Kubernetes may apply to the node.
380 # In case of conflict in label keys, the applied set may differ depending on
381 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
382 # and conflicts should be avoided.
383 # For more information, including usage and the valid values, see:
384 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
385 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700386 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700387 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
388 # The smallest allowed disk size is 10GB.
389 #
390 # If unspecified, the default disk size is 100GB.
391 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
392 # workloads on the node pool.
393 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
394 # workloads running on the node.
395 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
396 # on the node pool.
397 },
398 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
399 # See https://cloud.google.com/compute/docs/gpus for more information about
400 # support for GPUs.
401 { # AcceleratorConfig represents a Hardware Accelerator request.
402 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
403 # [here](https://cloud.google.com/compute/docs/gpus)
404 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
405 },
406 ],
407 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
408 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
409 # `n1-standard-1`).
410 #
411 # If unspecified, the default machine type is
412 # `n1-standard-1`.
413 &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;)
414 #
415 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
416 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
417 # The Customer Managed Encryption Key used to encrypt the boot disk attached
418 # to each node in the node pool. This should be of the form
419 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
420 # For more information about protecting resources with Cloud KMS Keys please
421 # see:
422 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700423 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700424 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
425 # simultaneously on a node in the node pool.
426 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
427 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700428 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700429 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
430 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700432 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700433 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
434 # the Auto Upgrades will proceed.
435 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
436 # with the description of the upgrade.
437 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
438 # with the approximate start time for the upgrades, in
439 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
440 },
441 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700442 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
443 # node pool instance, if available.
444 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
445 # only if a valid configuration is present.
446 # adjust the size of the node pool to the current cluster usage.
447 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
448 # has to enough quota to scale up the cluster.
449 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
450 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
451 # max_node_count.
452 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
453 },
454 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
455 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
456 # is sufficient for this number of instances. You must also have available
457 # firewall and routes quota.
458 &quot;locations&quot;: [ # The list of Google Compute Engine
459 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
460 # NodePool&#x27;s nodes should be located.
461 &quot;A String&quot;,
462 ],
463 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
464 # disruption caused by an upgrade.
465 #
466 # maxUnavailable controls the number of nodes that can be simultaneously
467 # unavailable.
468 #
469 # maxSurge controls the number of additional nodes that can be added to the
470 # node pool temporarily for the time of the upgrade to increase the number of
471 # available nodes.
472 #
473 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
474 # nodes are being upgraded at the same time).
475 #
476 # Note: upgrades inevitably introduce some disruption since workloads need to
477 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
478 # this holds true. (Disruption stays within the limits of
479 # PodDisruptionBudget, if it is configured.)
480 #
481 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
482 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
483 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
484 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
485 # there are always at least 4 nodes available.
486 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
487 # the upgrade process. A node is considered available if its status is
488 # Ready.
489 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
490 # of the node pool during the upgrade process.
491 },
492 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
493 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
494 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
495 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
496 # associated with this node pool.
497 &quot;A String&quot;,
498 ],
499 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
500 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
501 { # StatusCondition describes why a cluster or a node pool has a certain status
502 # (e.g., ERROR or DEGRADED).
503 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
504 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
505 },
506 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700507 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700508 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
509 # This field has been deprecated and replaced by the parent field.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700522 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
523 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
524 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
525 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
526 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700527 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700528 { # StatusCondition describes why a cluster or a node pool has a certain status
529 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700530 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
531 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700532 },
533 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700536 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700537 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
538 # or
539 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
540 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700541 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
542 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
543 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
544 { # StatusCondition describes why a cluster or a node pool has a certain status
545 # (e.g., ERROR or DEGRADED).
546 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
547 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
548 },
549 ],
550 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700551 &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 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700564 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
565 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700566 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
567 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700568 &quot;stages&quot;: [ # Substages of an operation or a stage.
569 # Object with schema name: OperationProgress
570 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700571 },
572 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
573 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
574 # operation is taking place. This field is deprecated, use location instead.
575 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
576 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700609 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
610 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
611 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
612 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
613 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700614 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700615 { # StatusCondition describes why a cluster or a node pool has a certain status
616 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700617 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
618 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700619 },
620 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700623 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700624 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
625 # or
626 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
627 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700628 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
629 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
630 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
631 { # StatusCondition describes why a cluster or a node pool has a certain status
632 # (e.g., ERROR or DEGRADED).
633 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
634 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
635 },
636 ],
637 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700638 &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 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700651 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
652 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700653 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
654 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700655 &quot;stages&quot;: [ # Substages of an operation or a stage.
656 # Object with schema name: OperationProgress
657 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700658 },
659 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
660 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
661 # operation is taking place. This field is deprecated, use location instead.
662 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
663 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
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;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
701 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700702 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
703 # scheduled on the specified or newer CPU platform. Applicable values are the
704 # friendly names of CPU platforms, such as
705 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
706 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
707 # information, read [how to specify min CPU
708 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700709 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
710 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
711 #
712 # Enables monitoring and attestation of the boot integrity of the instance.
713 # The attestation is performed against the integrity policy baseline. This
714 # baseline is initially derived from the implicitly trusted boot image when
715 # the instance is created.
716 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
717 #
718 # Secure Boot helps ensure that the system only runs authentic software by
719 # verifying the digital signature of all boot components, and halting the
720 # boot process if signature verification fails.
721 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700722 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
723 # https://cloud.google.com/compute/docs/instances/preemptible for more
724 # inforamtion about preemptible VM instances.
725 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700726 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 # The limit for this value is dependent upon the maximum number of
728 # disks available on a machine per zone. See:
729 # https://cloud.google.com/compute/docs/disks/local-ssd
730 # for more information.
731 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
732 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
733 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
734 },
735 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
736 #
737 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
738 # in length. These are reflected as part of a URL in the metadata server.
739 # Additionally, to avoid ambiguity, keys must not conflict with any other
740 # metadata keys for the project or be one of the reserved keys:
741 # &quot;cluster-location&quot;
742 # &quot;cluster-name&quot;
743 # &quot;cluster-uid&quot;
744 # &quot;configure-sh&quot;
745 # &quot;containerd-configure-sh&quot;
746 # &quot;enable-oslogin&quot;
747 # &quot;gci-ensure-gke-docker&quot;
748 # &quot;gci-metrics-enabled&quot;
749 # &quot;gci-update-strategy&quot;
750 # &quot;instance-template&quot;
751 # &quot;kube-env&quot;
752 # &quot;startup-script&quot;
753 # &quot;user-data&quot;
754 # &quot;disable-address-manager&quot;
755 # &quot;windows-startup-script-ps1&quot;
756 # &quot;common-psm1&quot;
757 # &quot;k8s-node-setup-psm1&quot;
758 # &quot;install-ssh-psm1&quot;
759 # &quot;user-profile-psm1&quot;
760 # &quot;serial-port-logging-enable&quot;
761 # Values are free-form strings, and only have meaning as interpreted by
762 # the image running in the instance. The only restriction placed on them is
763 # that each value&#x27;s size must be less than or equal to 32 KB.
764 #
765 # The total size of all keys and values must be less than 512 KB.
766 &quot;a_key&quot;: &quot;A String&quot;,
767 },
768 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
769 # the specified [Zonal Compute
770 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
771 # to this node pool.
772 # is the configuration of desired reservation which instances could take
773 # capacity from.
774 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
775 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
776 # the key and specify the name of your reservation as its value.
777 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
778 &quot;A String&quot;,
779 ],
780 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
781 },
782 &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 -0700783 # valid sources or targets for network firewalls and are specified by
784 # the client during cluster or node pool creation. Each tag within the list
785 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700786 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700787 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700788 &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 -0700789 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700790 # Account is specified, the &quot;default&quot; service account is used.
791 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
792 # the latest version of it will be used.
793 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
794 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700795 #
796 # The following scopes are recommended, but not required, and by default are
797 # not included:
798 #
799 # * `https://www.googleapis.com/auth/compute` is required for mounting
800 # persistent storage on your nodes.
801 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
802 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700803 # (the [Google Container
804 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700805 #
806 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
807 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700808 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700811 #
812 # For more information, including usage and the valid values, see:
813 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
814 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
815 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
816 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700817 # See
818 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
819 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700820 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700821 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
822 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700823 },
824 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700825 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
826 # These will added in addition to any default label(s) that
827 # Kubernetes may apply to the node.
828 # In case of conflict in label keys, the applied set may differ depending on
829 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
830 # and conflicts should be avoided.
831 # For more information, including usage and the valid values, see:
832 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
833 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700834 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700835 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
836 # The smallest allowed disk size is 10GB.
837 #
838 # If unspecified, the default disk size is 100GB.
839 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
840 # workloads on the node pool.
841 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
842 # workloads running on the node.
843 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
844 # on the node pool.
845 },
846 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
847 # See https://cloud.google.com/compute/docs/gpus for more information about
848 # support for GPUs.
849 { # AcceleratorConfig represents a Hardware Accelerator request.
850 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
851 # [here](https://cloud.google.com/compute/docs/gpus)
852 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
853 },
854 ],
855 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
856 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
857 # `n1-standard-1`).
858 #
859 # If unspecified, the default machine type is
860 # `n1-standard-1`.
861 &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;)
862 #
863 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
864 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
865 # The Customer Managed Encryption Key used to encrypt the boot disk attached
866 # to each node in the node pool. This should be of the form
867 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
868 # For more information about protecting resources with Cloud KMS Keys please
869 # see:
870 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700871 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700872 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
873 # simultaneously on a node in the node pool.
874 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
875 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700876 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700877 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
878 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700879 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700880 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700881 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
882 # the Auto Upgrades will proceed.
883 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
884 # with the description of the upgrade.
885 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
886 # with the approximate start time for the upgrades, in
887 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
888 },
889 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700890 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
891 # node pool instance, if available.
892 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
893 # only if a valid configuration is present.
894 # adjust the size of the node pool to the current cluster usage.
895 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
896 # has to enough quota to scale up the cluster.
897 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
898 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
899 # max_node_count.
900 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
901 },
902 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
903 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
904 # is sufficient for this number of instances. You must also have available
905 # firewall and routes quota.
906 &quot;locations&quot;: [ # The list of Google Compute Engine
907 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
908 # NodePool&#x27;s nodes should be located.
909 &quot;A String&quot;,
910 ],
911 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
912 # disruption caused by an upgrade.
913 #
914 # maxUnavailable controls the number of nodes that can be simultaneously
915 # unavailable.
916 #
917 # maxSurge controls the number of additional nodes that can be added to the
918 # node pool temporarily for the time of the upgrade to increase the number of
919 # available nodes.
920 #
921 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
922 # nodes are being upgraded at the same time).
923 #
924 # Note: upgrades inevitably introduce some disruption since workloads need to
925 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
926 # this holds true. (Disruption stays within the limits of
927 # PodDisruptionBudget, if it is configured.)
928 #
929 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
930 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
931 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
932 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
933 # there are always at least 4 nodes available.
934 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
935 # the upgrade process. A node is considered available if its status is
936 # Ready.
937 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
938 # of the node pool during the upgrade process.
939 },
940 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
941 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
942 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
943 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
944 # associated with this node pool.
945 &quot;A String&quot;,
946 ],
947 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
948 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
949 { # StatusCondition describes why a cluster or a node pool has a certain status
950 # (e.g., ERROR or DEGRADED).
951 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
952 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
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;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
991 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700992 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
993 # scheduled on the specified or newer CPU platform. Applicable values are the
994 # friendly names of CPU platforms, such as
995 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
996 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
997 # information, read [how to specify min CPU
998 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700999 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1000 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1001 #
1002 # Enables monitoring and attestation of the boot integrity of the instance.
1003 # The attestation is performed against the integrity policy baseline. This
1004 # baseline is initially derived from the implicitly trusted boot image when
1005 # the instance is created.
1006 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1007 #
1008 # Secure Boot helps ensure that the system only runs authentic software by
1009 # verifying the digital signature of all boot components, and halting the
1010 # boot process if signature verification fails.
1011 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001012 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1013 # https://cloud.google.com/compute/docs/instances/preemptible for more
1014 # inforamtion about preemptible VM instances.
1015 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001016 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001017 # The limit for this value is dependent upon the maximum number of
1018 # disks available on a machine per zone. See:
1019 # https://cloud.google.com/compute/docs/disks/local-ssd
1020 # for more information.
1021 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1022 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1023 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
1024 },
1025 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1026 #
1027 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1028 # in length. These are reflected as part of a URL in the metadata server.
1029 # Additionally, to avoid ambiguity, keys must not conflict with any other
1030 # metadata keys for the project or be one of the reserved keys:
1031 # &quot;cluster-location&quot;
1032 # &quot;cluster-name&quot;
1033 # &quot;cluster-uid&quot;
1034 # &quot;configure-sh&quot;
1035 # &quot;containerd-configure-sh&quot;
1036 # &quot;enable-oslogin&quot;
1037 # &quot;gci-ensure-gke-docker&quot;
1038 # &quot;gci-metrics-enabled&quot;
1039 # &quot;gci-update-strategy&quot;
1040 # &quot;instance-template&quot;
1041 # &quot;kube-env&quot;
1042 # &quot;startup-script&quot;
1043 # &quot;user-data&quot;
1044 # &quot;disable-address-manager&quot;
1045 # &quot;windows-startup-script-ps1&quot;
1046 # &quot;common-psm1&quot;
1047 # &quot;k8s-node-setup-psm1&quot;
1048 # &quot;install-ssh-psm1&quot;
1049 # &quot;user-profile-psm1&quot;
1050 # &quot;serial-port-logging-enable&quot;
1051 # Values are free-form strings, and only have meaning as interpreted by
1052 # the image running in the instance. The only restriction placed on them is
1053 # that each value&#x27;s size must be less than or equal to 32 KB.
1054 #
1055 # The total size of all keys and values must be less than 512 KB.
1056 &quot;a_key&quot;: &quot;A String&quot;,
1057 },
1058 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1059 # the specified [Zonal Compute
1060 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1061 # to this node pool.
1062 # is the configuration of desired reservation which instances could take
1063 # capacity from.
1064 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1065 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1066 # the key and specify the name of your reservation as its value.
1067 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1068 &quot;A String&quot;,
1069 ],
1070 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1071 },
1072 &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 -07001073 # valid sources or targets for network firewalls and are specified by
1074 # the client during cluster or node pool creation. Each tag within the list
1075 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07001076 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001077 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001078 &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 -07001079 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07001080 # Account is specified, the &quot;default&quot; service account is used.
1081 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1082 # the latest version of it will be used.
1083 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1084 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001085 #
1086 # The following scopes are recommended, but not required, and by default are
1087 # not included:
1088 #
1089 # * `https://www.googleapis.com/auth/compute` is required for mounting
1090 # persistent storage on your nodes.
1091 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1092 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001093 # (the [Google Container
1094 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001095 #
1096 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1097 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001098 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001099 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001100 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001101 #
1102 # For more information, including usage and the valid values, see:
1103 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1104 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1105 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1106 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001107 # See
1108 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1109 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07001110 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001111 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1112 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001113 },
1114 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001115 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1116 # These will added in addition to any default label(s) that
1117 # Kubernetes may apply to the node.
1118 # In case of conflict in label keys, the applied set may differ depending on
1119 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1120 # and conflicts should be avoided.
1121 # For more information, including usage and the valid values, see:
1122 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1123 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001124 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001125 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1126 # The smallest allowed disk size is 10GB.
1127 #
1128 # If unspecified, the default disk size is 100GB.
1129 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1130 # workloads on the node pool.
1131 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
1132 # workloads running on the node.
1133 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1134 # on the node pool.
1135 },
1136 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1137 # See https://cloud.google.com/compute/docs/gpus for more information about
1138 # support for GPUs.
1139 { # AcceleratorConfig represents a Hardware Accelerator request.
1140 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1141 # [here](https://cloud.google.com/compute/docs/gpus)
1142 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1143 },
1144 ],
1145 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1146 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1147 # `n1-standard-1`).
1148 #
1149 # If unspecified, the default machine type is
1150 # `n1-standard-1`.
1151 &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;)
1152 #
1153 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1154 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
1155 # The Customer Managed Encryption Key used to encrypt the boot disk attached
1156 # to each node in the node pool. This should be of the form
1157 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
1158 # For more information about protecting resources with Cloud KMS Keys please
1159 # see:
1160 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001161 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001162 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1163 # simultaneously on a node in the node pool.
1164 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1165 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001166 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001167 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1168 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001169 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001170 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -07001171 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1172 # the Auto Upgrades will proceed.
1173 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1174 # with the description of the upgrade.
1175 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1176 # with the approximate start time for the upgrades, in
1177 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1178 },
1179 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001180 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1181 # node pool instance, if available.
1182 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
1183 # only if a valid configuration is present.
1184 # adjust the size of the node pool to the current cluster usage.
1185 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1186 # has to enough quota to scale up the cluster.
1187 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1188 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1189 # max_node_count.
1190 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1191 },
1192 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
1193 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
1194 # is sufficient for this number of instances. You must also have available
1195 # firewall and routes quota.
1196 &quot;locations&quot;: [ # The list of Google Compute Engine
1197 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1198 # NodePool&#x27;s nodes should be located.
1199 &quot;A String&quot;,
1200 ],
1201 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
1202 # disruption caused by an upgrade.
1203 #
1204 # maxUnavailable controls the number of nodes that can be simultaneously
1205 # unavailable.
1206 #
1207 # maxSurge controls the number of additional nodes that can be added to the
1208 # node pool temporarily for the time of the upgrade to increase the number of
1209 # available nodes.
1210 #
1211 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1212 # nodes are being upgraded at the same time).
1213 #
1214 # Note: upgrades inevitably introduce some disruption since workloads need to
1215 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1216 # this holds true. (Disruption stays within the limits of
1217 # PodDisruptionBudget, if it is configured.)
1218 #
1219 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1220 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1221 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1222 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1223 # there are always at least 4 nodes available.
1224 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
1225 # the upgrade process. A node is considered available if its status is
1226 # Ready.
1227 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1228 # of the node pool during the upgrade process.
1229 },
1230 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1231 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1232 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
1233 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1234 # associated with this node pool.
1235 &quot;A String&quot;,
1236 ],
1237 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1238 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1239 { # StatusCondition describes why a cluster or a node pool has a certain status
1240 # (e.g., ERROR or DEGRADED).
1241 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1242 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
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 Kim4ed7d3f2020-05-27 12:20:54 -07001273 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to rollback.
1274 # This field has been deprecated and replaced by the name field.
1275 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to rollback.
1276 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001277 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node poll to
1278 # rollback upgrade.
1279 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1280 &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 -07001281 # number](https://support.google.com/cloud/answer/6158840).
1282 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001283 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001284 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1285 # cluster resides. This field has been deprecated and replaced by the name
1286 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001287 }
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 Kim4ed7d3f2020-05-27 12:20:54 -07001299 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1300 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1301 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1302 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1303 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001304 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001305 { # StatusCondition describes why a cluster or a node pool has a certain status
1306 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001307 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1308 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001309 },
1310 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001313 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001314 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1315 # or
1316 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1317 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001318 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1319 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1320 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1321 { # StatusCondition describes why a cluster or a node pool has a certain status
1322 # (e.g., ERROR or DEGRADED).
1323 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1324 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1325 },
1326 ],
1327 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001328 &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 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001341 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1342 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001343 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1344 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001345 &quot;stages&quot;: [ # Substages of an operation or a stage.
1346 # Object with schema name: OperationProgress
1347 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001348 },
1349 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1350 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1351 # operation is taking place. This field is deprecated, use location instead.
1352 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1353 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
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;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1379 # management properties. Specified in the format
1380 # `projects/*/locations/*/clusters/*/nodePools/*`.
1381 &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 -07001382 # number](https://support.google.com/cloud/answer/6158840).
1383 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001384 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Required. NodeManagement configuration for the node pool.
1385 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001386 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001387 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -07001388 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1389 # the Auto Upgrades will proceed.
1390 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1391 # with the description of the upgrade.
1392 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1393 # with the approximate start time for the upgrades, in
1394 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1395 },
1396 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001397 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
1398 # This field has been deprecated and replaced by the name field.
1399 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update.
1400 # This field has been deprecated and replaced by the name field.
1401 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
1402 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1403 # cluster resides. This field has been deprecated and replaced by the name
1404 # field.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001417 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1418 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1419 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1420 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1421 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001422 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001423 { # StatusCondition describes why a cluster or a node pool has a certain status
1424 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001425 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1426 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001427 },
1428 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001431 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001432 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1433 # or
1434 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1435 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001436 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1437 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1438 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1439 { # StatusCondition describes why a cluster or a node pool has a certain status
1440 # (e.g., ERROR or DEGRADED).
1441 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1442 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1443 },
1444 ],
1445 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001446 &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 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001459 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1460 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001461 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1462 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001463 &quot;stages&quot;: [ # Substages of an operation or a stage.
1464 # Object with schema name: OperationProgress
1465 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001466 },
1467 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1468 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1469 # operation is taking place. This field is deprecated, use location instead.
1470 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1471 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001496 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
1497 # number](https://support.google.com/cloud/answer/6158840).
1498 # This field has been deprecated and replaced by the name field.
1499 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
1500 # This field has been deprecated and replaced by the name field.
1501 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update.
1502 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001503 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001504 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1505 # cluster resides. This field has been deprecated and replaced by the name
1506 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001507 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
1508 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1509 # size.
1510 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001523 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1524 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1525 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1526 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1527 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001528 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001529 { # StatusCondition describes why a cluster or a node pool has a certain status
1530 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001531 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1532 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001533 },
1534 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001537 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001538 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1539 # or
1540 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1541 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001542 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1543 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1544 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1545 { # StatusCondition describes why a cluster or a node pool has a certain status
1546 # (e.g., ERROR or DEGRADED).
1547 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1548 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1549 },
1550 ],
1551 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001552 &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 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001565 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1566 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001567 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1568 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001569 &quot;stages&quot;: [ # Substages of an operation or a stage.
1570 # Object with schema name: OperationProgress
1571 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001572 },
1573 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1574 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1575 # operation is taking place. This field is deprecated, use location instead.
1576 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1577 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001601 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The desired workload metadata config for the node pool.
1602 # workloads on the node pool.
1603 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
1604 # workloads running on the node.
1605 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1606 # on the node pool.
1607 },
1608 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
1609 # This field has been deprecated and replaced by the name field.
1610 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to upgrade.
1611 # This field has been deprecated and replaced by the name field.
1612 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001613 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001614 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1615 # cluster resides. This field has been deprecated and replaced by the name
1616 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001617 &quot;nodeVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the nodes to (typically an
1618 # upgrade).
1619 #
1620 # Users may specify either explicit versions offered by Kubernetes Engine or
1621 # version aliases, which have the following behavior:
1622 #
1623 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1624 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1625 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1626 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1627 # - &quot;-&quot;: picks the Kubernetes master version
1628 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to
1629 # update. Specified in the format
1630 # `projects/*/locations/*/clusters/*/nodePools/*`.
1631 &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 -07001632 # number](https://support.google.com/cloud/answer/6158840).
1633 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001634 &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 -07001635 # disruption caused by an upgrade.
1636 #
1637 # maxUnavailable controls the number of nodes that can be simultaneously
1638 # unavailable.
1639 #
1640 # maxSurge controls the number of additional nodes that can be added to the
1641 # node pool temporarily for the time of the upgrade to increase the number of
1642 # available nodes.
1643 #
1644 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1645 # nodes are being upgraded at the same time).
1646 #
1647 # Note: upgrades inevitably introduce some disruption since workloads need to
1648 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1649 # this holds true. (Disruption stays within the limits of
1650 # PodDisruptionBudget, if it is configured.)
1651 #
1652 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1653 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1654 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1655 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1656 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001657 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001658 # the upgrade process. A node is considered available if its status is
1659 # Ready.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001660 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1661 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001662 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001663 &quot;locations&quot;: [ # The desired list of Google Compute Engine
1664 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1665 # node pool&#x27;s nodes should be located. Changing the locations for a node pool
1666 # will result in nodes being either created or removed from the node pool,
1667 # depending on whether locations are being added or removed.
1668 &quot;A String&quot;,
1669 ],
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 Kim4ed7d3f2020-05-27 12:20:54 -07001682 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1683 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1684 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1685 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1686 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001687 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001688 { # StatusCondition describes why a cluster or a node pool has a certain status
1689 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001690 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1691 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001692 },
1693 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001696 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001697 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1698 # or
1699 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1700 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001701 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1702 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1703 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1704 { # StatusCondition describes why a cluster or a node pool has a certain status
1705 # (e.g., ERROR or DEGRADED).
1706 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1707 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1708 },
1709 ],
1710 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001711 &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 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001724 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1725 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001726 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1727 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001728 &quot;stages&quot;: [ # Substages of an operation or a stage.
1729 # Object with schema name: OperationProgress
1730 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001731 },
1732 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1733 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1734 # operation is taking place. This field is deprecated, use location instead.
1735 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1736 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001737 }</pre>
1738</div>
1739
1740</body></html>