blob: aaf2ce29ab5297c67d034e9c902cf5184f7cc8f6 [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_v1.html">Kubernetes Engine API</a> . <a href="container_v1.projects.html">projects</a> . <a href="container_v1.projects.locations.html">locations</a> . <a href="container_v1.projects.locations.clusters.html">clusters</a> . <a href="container_v1.projects.locations.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="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates a node pool for a cluster.</p>
80<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070081 <code><a href="#delete">delete(name, projectId=None, nodePoolId=None, clusterId=None, zone=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Deletes a node pool from a cluster.</p>
83<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070084 <code><a href="#get">get(name, zone=None, nodePoolId=None, projectId=None, clusterId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Retrieves the requested node pool.</p>
86<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <code><a href="#list">list(parent, clusterId=None, projectId=None, zone=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Lists the node pools for a cluster.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#rollback">rollback(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Rolls back a previously Aborted or Failed NodePool upgrade.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#setAutoscaling">setAutoscaling(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Sets the autoscaling settings for the specified node pool.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#setManagement">setManagement(name, 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(name, 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(name, 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 for the specified 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="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107 <pre>Creates a node pool for a cluster.
108
109Args:
110 parent: string, The parent (project, location, cluster id) where the node pool will be
111created. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700112`projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 The object takes the form of:
115
116{ # CreateNodePoolRequest creates a node pool for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118 # number](https://developers.google.com/console/help/new/#projectnumber).
119 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
121 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
122 # cluster resides. This field has been deprecated and replaced by the parent
123 # field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700124 &quot;parent&quot;: &quot;A String&quot;, # The parent (project, location, cluster id) where the node pool will be
125 # created. Specified in the format
126 # `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700127 &quot;nodePool&quot;: { # NodePool contains the name and configuration for a cluster&#x27;s node pool. # Required. The node pool to create.
128 # 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 -0700129 # specification, under the control of the cluster master. They may have a set
130 # of Kubernetes labels applied to them, which may be used to reference them
131 # during pod scheduling. They may also be resized up or down, to accommodate
132 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700133 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700134 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
135 # node pool.
136 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
137 # the Auto Upgrades will proceed.
138 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
139 # with the description of the upgrade.
140 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
141 # with the approximate start time for the upgrades, in
142 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
143 },
144 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
145 # pool. If enabled, the nodes in this node pool will be monitored and, if
146 # they fail health checks too many times, an automatic repair action will be
147 # triggered.
148 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
149 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
150 # up to date with the latest release version of Kubernetes.
151 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &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 -0700153 # disruption caused by an upgrade.
154 #
155 # maxUnavailable controls the number of nodes that can be simultaneously
156 # unavailable.
157 #
158 # maxSurge controls the number of additional nodes that can be added to the
159 # node pool temporarily for the time of the upgrade to increase the number of
160 # available nodes.
161 #
162 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
163 # nodes are being upgraded at the same time).
164 #
165 # Note: upgrades inevitably introduce some disruption since workloads need to
166 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
167 # this holds true. (Disruption stays within the limits of
168 # PodDisruptionBudget, if it is configured.)
169 #
170 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
171 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
172 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
173 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
174 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700175 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700176 # the upgrade process. A node is considered available if its status is
177 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
179 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700180 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700181 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
182 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
183 # is sufficient for this number of instances. You must also have available
184 # firewall and routes quota.
185 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
186 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700187 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
189 { # StatusCondition describes why a cluster or a node pool has a certain status
190 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700191 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700192 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700193 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700194 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700196 &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;)
197 #
198 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
199 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
200 # The Customer Managed Encryption Key used to encrypt the boot disk attached
201 # to each node in the node pool. This should be of the form
202 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
203 # For more information about protecting resources with Cloud KMS Keys please
204 # see:
205 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
206 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
207 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
208 #
209 # Enables monitoring and attestation of the boot integrity of the instance.
210 # The attestation is performed against the integrity policy baseline. This
211 # baseline is initially derived from the implicitly trusted boot image when
212 # the instance is created.
213 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
214 #
215 # Secure Boot helps ensure that the system only runs authentic software by
216 # verifying the digital signature of all boot components, and halting the
217 # boot process if signature verification fails.
218 },
219 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
220 # These will added in addition to any default label(s) that
221 # Kubernetes may apply to the node.
222 # In case of conflict in label keys, the applied set may differ depending on
223 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
224 # and conflicts should be avoided.
225 # For more information, including usage and the valid values, see:
226 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
227 &quot;a_key&quot;: &quot;A String&quot;,
228 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
230 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700231 #
232 # The following scopes are recommended, but not required, and by default are
233 # not included:
234 #
235 # * `https://www.googleapis.com/auth/compute` is required for mounting
236 # persistent storage on your nodes.
237 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
238 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700239 # (the [Google Container
240 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700241 #
242 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
243 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700244 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700245 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700246 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
247 # scheduled on the specified or newer CPU platform. Applicable values are the
248 # friendly names of CPU platforms, such as
249 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
250 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
251 # information, read [how to specify min CPU
252 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
253 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
254 #
255 # The limit for this value is dependent upon the maximum number of
256 # disks available on a machine per zone. See:
257 # https://cloud.google.com/compute/docs/disks/local-ssd
258 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700259 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700260 #
261 # For more information, including usage and the valid values, see:
262 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
263 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
264 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
265 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700266 # See
267 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
268 # for more information, including usage and the valid values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700269 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
270 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700271 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700272 },
273 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700274 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
275 # the latest version of it will be used.
276 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
277 # the specified [Zonal Compute
278 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
279 # to this node pool.
280 # is the configuration of desired reservation which instances could take
281 # capacity from.
282 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
283 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
284 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
285 # the key and specify the name of your reservation as its value.
286 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
287 &quot;A String&quot;,
288 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
291 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
292 # `n1-standard-1`).
293 #
294 # If unspecified, the default machine type is
295 # `n1-standard-1`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700296 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
297 # pool to run on the specified node group. This is useful for running
298 # workloads on [sole tenant
299 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
301 #
302 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
303 # in length. These are reflected as part of a URL in the metadata server.
304 # Additionally, to avoid ambiguity, keys must not conflict with any other
305 # metadata keys for the project or be one of the reserved keys:
306 # &quot;cluster-location&quot;
307 # &quot;cluster-name&quot;
308 # &quot;cluster-uid&quot;
309 # &quot;configure-sh&quot;
310 # &quot;containerd-configure-sh&quot;
311 # &quot;enable-os-login&quot;
312 # &quot;gci-ensure-gke-docker&quot;
313 # &quot;gci-metrics-enabled&quot;
314 # &quot;gci-update-strategy&quot;
315 # &quot;instance-template&quot;
316 # &quot;kube-env&quot;
317 # &quot;startup-script&quot;
318 # &quot;user-data&quot;
319 # &quot;disable-address-manager&quot;
320 # &quot;windows-startup-script-ps1&quot;
321 # &quot;common-psm1&quot;
322 # &quot;k8s-node-setup-psm1&quot;
323 # &quot;install-ssh-psm1&quot;
324 # &quot;user-profile-psm1&quot;
325 # &quot;serial-port-logging-enable&quot;
326 #
327 # Values are free-form strings, and only have meaning as interpreted by
328 # the image running in the instance. The only restriction placed on them is
329 # that each value&#x27;s size must be less than or equal to 32 KB.
330 #
331 # The total size of all keys and values must be less than 512 KB.
332 &quot;a_key&quot;: &quot;A String&quot;,
333 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700334 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
335 # 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.
338 &quot;A String&quot;,
339 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700340 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
341 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
342 },
343 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
344 # https://cloud.google.com/compute/docs/instances/preemptible for more
345 # information about preemptible VM instances.
346 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
347 # workloads on the node pool.
348 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
349 # on the node pool.
350 },
351 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
352 # The smallest allowed disk size is 10GB.
353 #
354 # If unspecified, the default disk size is 100GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700355 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
356 # Specify the email address of the Service Account; otherwise, if no Service
357 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700358 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
359 # See https://cloud.google.com/compute/docs/gpus for more information about
360 # support for GPUs.
361 { # AcceleratorConfig represents a Hardware Accelerator request.
362 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
363 # [here](https://cloud.google.com/compute/docs/gpus)
364 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
365 },
366 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700367 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700368 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700369 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
370 # simultaneously on a node in the node pool.
371 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
372 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700373 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
374 # only if a valid configuration is present.
375 # adjust the size of the node pool to the current cluster usage.
376 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
377 # max_node_count.
378 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
379 # has to enough quota to scale up the cluster.
380 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
381 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Bu Sun Kim65020912020-05-20 12:08:20 -0700382 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700383 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
384 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
385 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
386 # associated with this node pool.
387 &quot;A String&quot;,
388 ],
389 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
390 &quot;locations&quot;: [ # The list of Google Compute Engine
391 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
392 # NodePool&#x27;s nodes should be located.
393 &quot;A String&quot;,
394 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700395 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700396 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
397 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700398 }
399
400 x__xgafv: string, V1 error format.
401 Allowed values
402 1 - v1 error format
403 2 - v2 error format
404
405Returns:
406 An object of the form:
407
408 { # This operation resource represents operations that may have happened or are
409 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700410 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
411 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
412 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700413 &quot;metrics&quot;: [ # Progress metric bundle, for example:
414 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
415 # {name: &quot;nodes total&quot;, int_value: 32}]
416 # or
417 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
418 # {name: &quot;progress scale&quot;, double_value: 1.0}]
419 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700420 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700421 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
422 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700423 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700424 },
425 ],
426 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
427 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700428 &quot;stages&quot;: [ # Substages of an operation or a stage.
429 # Object with schema name: OperationProgress
430 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700431 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700432 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
433 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
434 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
435 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
436 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
437 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
438 { # StatusCondition describes why a cluster or a node pool has a certain status
439 # (e.g., ERROR or DEGRADED).
440 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
441 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
442 },
443 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700444 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
445 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
446 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700447 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700448 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700449 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
450 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
451 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700452 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700453 { # StatusCondition describes why a cluster or a node pool has a certain status
454 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700455 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700456 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700457 },
458 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700459 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700460 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
461 # or
462 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
463 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700464 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700465 }</pre>
466</div>
467
468<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700469 <code class="details" id="delete">delete(name, projectId=None, nodePoolId=None, clusterId=None, zone=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700470 <pre>Deletes a node pool from a cluster.
471
472Args:
473 name: string, The name (project, location, cluster, node pool id) of the node pool to
474delete. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700475`projects/*/locations/*/clusters/*/nodePools/*`. (required)
476 projectId: string, Deprecated. The Google Developers Console [project ID or project
477number](https://developers.google.com/console/help/new/#projectnumber).
478This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700479 nodePoolId: string, Deprecated. The name of the node pool to delete.
480This field has been deprecated and replaced by the name field.
481 clusterId: string, Deprecated. The name of the cluster.
482This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700483 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700484[zone](https://cloud.google.com/compute/docs/zones#available) in which the
485cluster resides. This field has been deprecated and replaced by the name
486field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700487 x__xgafv: string, V1 error format.
488 Allowed values
489 1 - v1 error format
490 2 - v2 error format
491
492Returns:
493 An object of the form:
494
495 { # This operation resource represents operations that may have happened or are
496 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700497 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
498 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
499 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700500 &quot;metrics&quot;: [ # Progress metric bundle, for example:
501 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
502 # {name: &quot;nodes total&quot;, int_value: 32}]
503 # or
504 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
505 # {name: &quot;progress scale&quot;, double_value: 1.0}]
506 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700507 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700508 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
509 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700510 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700511 },
512 ],
513 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
514 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700515 &quot;stages&quot;: [ # Substages of an operation or a stage.
516 # Object with schema name: OperationProgress
517 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700518 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700519 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
520 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
521 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
522 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
523 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
524 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
525 { # StatusCondition describes why a cluster or a node pool has a certain status
526 # (e.g., ERROR or DEGRADED).
527 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
528 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
529 },
530 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700531 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
532 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
533 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700534 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700535 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700536 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
537 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
538 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700539 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700540 { # StatusCondition describes why a cluster or a node pool has a certain status
541 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700542 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700543 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700544 },
545 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700546 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700547 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
548 # or
549 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
550 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700551 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700552 }</pre>
553</div>
554
555<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700556 <code class="details" id="get">get(name, zone=None, nodePoolId=None, projectId=None, clusterId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700557 <pre>Retrieves the requested node pool.
558
559Args:
560 name: string, The name (project, location, cluster, node pool id) of the node pool to
561get. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700562`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700563 zone: string, Deprecated. The name of the Google Compute Engine
564[zone](https://cloud.google.com/compute/docs/zones#available) in which the
565cluster resides. This field has been deprecated and replaced by the name
566field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700567 nodePoolId: string, Deprecated. The name of the node pool.
568This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700569 projectId: string, Deprecated. The Google Developers Console [project ID or project
570number](https://developers.google.com/console/help/new/#projectnumber).
571This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700572 clusterId: string, Deprecated. The name of the cluster.
573This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700574 x__xgafv: string, V1 error format.
575 Allowed values
576 1 - v1 error format
577 2 - v2 error format
578
579Returns:
580 An object of the form:
581
Bu Sun Kim65020912020-05-20 12:08:20 -0700582 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
583 # 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 -0700584 # specification, under the control of the cluster master. They may have a set
585 # of Kubernetes labels applied to them, which may be used to reference them
586 # during pod scheduling. They may also be resized up or down, to accommodate
587 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700588 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700589 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
590 # node pool.
591 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
592 # the Auto Upgrades will proceed.
593 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
594 # with the description of the upgrade.
595 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
596 # with the approximate start time for the upgrades, in
597 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
598 },
599 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
600 # pool. If enabled, the nodes in this node pool will be monitored and, if
601 # they fail health checks too many times, an automatic repair action will be
602 # triggered.
603 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
604 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
605 # up to date with the latest release version of Kubernetes.
606 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 &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 -0700608 # disruption caused by an upgrade.
609 #
610 # maxUnavailable controls the number of nodes that can be simultaneously
611 # unavailable.
612 #
613 # maxSurge controls the number of additional nodes that can be added to the
614 # node pool temporarily for the time of the upgrade to increase the number of
615 # available nodes.
616 #
617 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
618 # nodes are being upgraded at the same time).
619 #
620 # Note: upgrades inevitably introduce some disruption since workloads need to
621 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
622 # this holds true. (Disruption stays within the limits of
623 # PodDisruptionBudget, if it is configured.)
624 #
625 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
626 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
627 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
628 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
629 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700631 # the upgrade process. A node is considered available if its status is
632 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700633 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
634 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700635 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700636 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
637 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
638 # is sufficient for this number of instances. You must also have available
639 # firewall and routes quota.
640 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
641 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700642 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
Bu Sun Kim65020912020-05-20 12:08:20 -0700643 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
644 { # StatusCondition describes why a cluster or a node pool has a certain status
645 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700646 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700647 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700648 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700649 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700650 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700651 &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;)
652 #
653 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
654 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
655 # The Customer Managed Encryption Key used to encrypt the boot disk attached
656 # to each node in the node pool. This should be of the form
657 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
658 # For more information about protecting resources with Cloud KMS Keys please
659 # see:
660 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
661 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
662 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
663 #
664 # Enables monitoring and attestation of the boot integrity of the instance.
665 # The attestation is performed against the integrity policy baseline. This
666 # baseline is initially derived from the implicitly trusted boot image when
667 # the instance is created.
668 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
669 #
670 # Secure Boot helps ensure that the system only runs authentic software by
671 # verifying the digital signature of all boot components, and halting the
672 # boot process if signature verification fails.
673 },
674 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
675 # These will added in addition to any default label(s) that
676 # Kubernetes may apply to the node.
677 # In case of conflict in label keys, the applied set may differ depending on
678 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
679 # and conflicts should be avoided.
680 # For more information, including usage and the valid values, see:
681 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
682 &quot;a_key&quot;: &quot;A String&quot;,
683 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700684 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
685 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700686 #
687 # The following scopes are recommended, but not required, and by default are
688 # not included:
689 #
690 # * `https://www.googleapis.com/auth/compute` is required for mounting
691 # persistent storage on your nodes.
692 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
693 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700694 # (the [Google Container
695 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700696 #
697 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
698 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700699 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700700 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700701 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
702 # scheduled on the specified or newer CPU platform. Applicable values are the
703 # friendly names of CPU platforms, such as
704 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
705 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
706 # information, read [how to specify min CPU
707 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
708 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
709 #
710 # The limit for this value is dependent upon the maximum number of
711 # disks available on a machine per zone. See:
712 # https://cloud.google.com/compute/docs/disks/local-ssd
713 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700714 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700715 #
716 # For more information, including usage and the valid values, see:
717 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
718 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
719 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
720 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700721 # See
722 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
723 # for more information, including usage and the valid values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700724 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
725 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700726 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700727 },
728 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700729 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
730 # the latest version of it will be used.
731 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
732 # the specified [Zonal Compute
733 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
734 # to this node pool.
735 # is the configuration of desired reservation which instances could take
736 # capacity from.
737 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
738 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
739 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
740 # the key and specify the name of your reservation as its value.
741 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
742 &quot;A String&quot;,
743 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700744 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700745 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
746 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
747 # `n1-standard-1`).
748 #
749 # If unspecified, the default machine type is
750 # `n1-standard-1`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700751 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
752 # pool to run on the specified node group. This is useful for running
753 # workloads on [sole tenant
754 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700755 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
756 #
757 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
758 # in length. These are reflected as part of a URL in the metadata server.
759 # Additionally, to avoid ambiguity, keys must not conflict with any other
760 # metadata keys for the project or be one of the reserved keys:
761 # &quot;cluster-location&quot;
762 # &quot;cluster-name&quot;
763 # &quot;cluster-uid&quot;
764 # &quot;configure-sh&quot;
765 # &quot;containerd-configure-sh&quot;
766 # &quot;enable-os-login&quot;
767 # &quot;gci-ensure-gke-docker&quot;
768 # &quot;gci-metrics-enabled&quot;
769 # &quot;gci-update-strategy&quot;
770 # &quot;instance-template&quot;
771 # &quot;kube-env&quot;
772 # &quot;startup-script&quot;
773 # &quot;user-data&quot;
774 # &quot;disable-address-manager&quot;
775 # &quot;windows-startup-script-ps1&quot;
776 # &quot;common-psm1&quot;
777 # &quot;k8s-node-setup-psm1&quot;
778 # &quot;install-ssh-psm1&quot;
779 # &quot;user-profile-psm1&quot;
780 # &quot;serial-port-logging-enable&quot;
781 #
782 # Values are free-form strings, and only have meaning as interpreted by
783 # the image running in the instance. The only restriction placed on them is
784 # that each value&#x27;s size must be less than or equal to 32 KB.
785 #
786 # The total size of all keys and values must be less than 512 KB.
787 &quot;a_key&quot;: &quot;A String&quot;,
788 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700789 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
790 # valid sources or targets for network firewalls and are specified by
791 # the client during cluster or node pool creation. Each tag within the list
792 # must comply with RFC1035.
793 &quot;A String&quot;,
794 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700795 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
796 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
797 },
798 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
799 # https://cloud.google.com/compute/docs/instances/preemptible for more
800 # information about preemptible VM instances.
801 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
802 # workloads on the node pool.
803 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
804 # on the node pool.
805 },
806 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
807 # The smallest allowed disk size is 10GB.
808 #
809 # If unspecified, the default disk size is 100GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700810 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
811 # Specify the email address of the Service Account; otherwise, if no Service
812 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700813 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
814 # See https://cloud.google.com/compute/docs/gpus for more information about
815 # support for GPUs.
816 { # AcceleratorConfig represents a Hardware Accelerator request.
817 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
818 # [here](https://cloud.google.com/compute/docs/gpus)
819 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
820 },
821 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700822 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700823 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700824 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
825 # simultaneously on a node in the node pool.
826 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
827 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700828 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
829 # only if a valid configuration is present.
830 # adjust the size of the node pool to the current cluster usage.
831 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
832 # max_node_count.
833 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
834 # has to enough quota to scale up the cluster.
835 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
836 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Bu Sun Kim65020912020-05-20 12:08:20 -0700837 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700838 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
839 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
840 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
841 # associated with this node pool.
842 &quot;A String&quot;,
843 ],
844 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
845 &quot;locations&quot;: [ # The list of Google Compute Engine
846 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
847 # NodePool&#x27;s nodes should be located.
848 &quot;A String&quot;,
849 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700850 }</pre>
851</div>
852
853<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700854 <code class="details" id="list">list(parent, clusterId=None, projectId=None, zone=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700855 <pre>Lists the node pools for a cluster.
856
857Args:
858 parent: string, The parent (project, location, cluster id) where the node pools will be
Bu Sun Kim65020912020-05-20 12:08:20 -0700859listed. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700860 clusterId: string, Deprecated. The name of the cluster.
861This field has been deprecated and replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700862 projectId: string, Deprecated. The Google Developers Console [project ID or project
863number](https://developers.google.com/console/help/new/#projectnumber).
864This field has been deprecated and replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700865 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700866[zone](https://cloud.google.com/compute/docs/zones#available) in which the
867cluster resides. This field has been deprecated and replaced by the parent
868field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700869 x__xgafv: string, V1 error format.
870 Allowed values
871 1 - v1 error format
872 2 - v2 error format
873
874Returns:
875 An object of the form:
876
877 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700878 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
879 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
880 # 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 -0700881 # specification, under the control of the cluster master. They may have a set
882 # of Kubernetes labels applied to them, which may be used to reference them
883 # during pod scheduling. They may also be resized up or down, to accommodate
884 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700885 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700886 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
887 # node pool.
888 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
889 # the Auto Upgrades will proceed.
890 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
891 # with the description of the upgrade.
892 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
893 # with the approximate start time for the upgrades, in
894 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
895 },
896 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
897 # pool. If enabled, the nodes in this node pool will be monitored and, if
898 # they fail health checks too many times, an automatic repair action will be
899 # triggered.
900 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
901 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
902 # up to date with the latest release version of Kubernetes.
903 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 &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 -0700905 # disruption caused by an upgrade.
906 #
907 # maxUnavailable controls the number of nodes that can be simultaneously
908 # unavailable.
909 #
910 # maxSurge controls the number of additional nodes that can be added to the
911 # node pool temporarily for the time of the upgrade to increase the number of
912 # available nodes.
913 #
914 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
915 # nodes are being upgraded at the same time).
916 #
917 # Note: upgrades inevitably introduce some disruption since workloads need to
918 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
919 # this holds true. (Disruption stays within the limits of
920 # PodDisruptionBudget, if it is configured.)
921 #
922 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
923 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
924 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
925 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
926 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700927 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700928 # the upgrade process. A node is considered available if its status is
929 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700930 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
931 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700932 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700933 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
934 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
935 # is sufficient for this number of instances. You must also have available
936 # firewall and routes quota.
937 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
938 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700939 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
Bu Sun Kim65020912020-05-20 12:08:20 -0700940 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
941 { # StatusCondition describes why a cluster or a node pool has a certain status
942 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700943 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700944 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700945 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700946 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700947 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700948 &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;)
949 #
950 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
951 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
952 # The Customer Managed Encryption Key used to encrypt the boot disk attached
953 # to each node in the node pool. This should be of the form
954 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
955 # For more information about protecting resources with Cloud KMS Keys please
956 # see:
957 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
958 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
959 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
960 #
961 # Enables monitoring and attestation of the boot integrity of the instance.
962 # The attestation is performed against the integrity policy baseline. This
963 # baseline is initially derived from the implicitly trusted boot image when
964 # the instance is created.
965 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
966 #
967 # Secure Boot helps ensure that the system only runs authentic software by
968 # verifying the digital signature of all boot components, and halting the
969 # boot process if signature verification fails.
970 },
971 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
972 # These will added in addition to any default label(s) that
973 # Kubernetes may apply to the node.
974 # In case of conflict in label keys, the applied set may differ depending on
975 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
976 # and conflicts should be avoided.
977 # For more information, including usage and the valid values, see:
978 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
979 &quot;a_key&quot;: &quot;A String&quot;,
980 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700981 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
982 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700983 #
984 # The following scopes are recommended, but not required, and by default are
985 # not included:
986 #
987 # * `https://www.googleapis.com/auth/compute` is required for mounting
988 # persistent storage on your nodes.
989 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
990 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700991 # (the [Google Container
992 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700993 #
994 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
995 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700996 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700997 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700998 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
999 # scheduled on the specified or newer CPU platform. Applicable values are the
1000 # friendly names of CPU platforms, such as
1001 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1002 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1003 # information, read [how to specify min CPU
1004 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1005 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
1006 #
1007 # The limit for this value is dependent upon the maximum number of
1008 # disks available on a machine per zone. See:
1009 # https://cloud.google.com/compute/docs/disks/local-ssd
1010 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001011 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07001012 #
1013 # For more information, including usage and the valid values, see:
1014 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1015 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1016 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1017 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001018 # See
1019 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1020 # for more information, including usage and the valid values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001021 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1022 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001023 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07001024 },
1025 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001026 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1027 # the latest version of it will be used.
1028 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1029 # the specified [Zonal Compute
1030 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1031 # to this node pool.
1032 # is the configuration of desired reservation which instances could take
1033 # capacity from.
1034 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1035 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1036 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1037 # the key and specify the name of your reservation as its value.
1038 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1039 &quot;A String&quot;,
1040 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001041 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001042 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1043 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1044 # `n1-standard-1`).
1045 #
1046 # If unspecified, the default machine type is
1047 # `n1-standard-1`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001048 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
1049 # pool to run on the specified node group. This is useful for running
1050 # workloads on [sole tenant
1051 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
Bu Sun Kim65020912020-05-20 12:08:20 -07001052 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1053 #
1054 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1055 # in length. These are reflected as part of a URL in the metadata server.
1056 # Additionally, to avoid ambiguity, keys must not conflict with any other
1057 # metadata keys for the project or be one of the reserved keys:
1058 # &quot;cluster-location&quot;
1059 # &quot;cluster-name&quot;
1060 # &quot;cluster-uid&quot;
1061 # &quot;configure-sh&quot;
1062 # &quot;containerd-configure-sh&quot;
1063 # &quot;enable-os-login&quot;
1064 # &quot;gci-ensure-gke-docker&quot;
1065 # &quot;gci-metrics-enabled&quot;
1066 # &quot;gci-update-strategy&quot;
1067 # &quot;instance-template&quot;
1068 # &quot;kube-env&quot;
1069 # &quot;startup-script&quot;
1070 # &quot;user-data&quot;
1071 # &quot;disable-address-manager&quot;
1072 # &quot;windows-startup-script-ps1&quot;
1073 # &quot;common-psm1&quot;
1074 # &quot;k8s-node-setup-psm1&quot;
1075 # &quot;install-ssh-psm1&quot;
1076 # &quot;user-profile-psm1&quot;
1077 # &quot;serial-port-logging-enable&quot;
1078 #
1079 # Values are free-form strings, and only have meaning as interpreted by
1080 # the image running in the instance. The only restriction placed on them is
1081 # that each value&#x27;s size must be less than or equal to 32 KB.
1082 #
1083 # The total size of all keys and values must be less than 512 KB.
1084 &quot;a_key&quot;: &quot;A String&quot;,
1085 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001086 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
1087 # valid sources or targets for network firewalls and are specified by
1088 # the client during cluster or node pool creation. Each tag within the list
1089 # must comply with RFC1035.
1090 &quot;A String&quot;,
1091 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001092 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1093 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1094 },
1095 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1096 # https://cloud.google.com/compute/docs/instances/preemptible for more
1097 # information about preemptible VM instances.
1098 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1099 # workloads on the node pool.
1100 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1101 # on the node pool.
1102 },
1103 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1104 # The smallest allowed disk size is 10GB.
1105 #
1106 # If unspecified, the default disk size is 100GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001107 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
1108 # Specify the email address of the Service Account; otherwise, if no Service
1109 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001110 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1111 # See https://cloud.google.com/compute/docs/gpus for more information about
1112 # support for GPUs.
1113 { # AcceleratorConfig represents a Hardware Accelerator request.
1114 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1115 # [here](https://cloud.google.com/compute/docs/gpus)
1116 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1117 },
1118 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001119 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001120 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001121 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1122 # simultaneously on a node in the node pool.
1123 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1124 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001125 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
1126 # only if a valid configuration is present.
1127 # adjust the size of the node pool to the current cluster usage.
1128 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1129 # max_node_count.
1130 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1131 # has to enough quota to scale up the cluster.
1132 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1133 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Bu Sun Kim65020912020-05-20 12:08:20 -07001134 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001135 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1136 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
1137 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1138 # associated with this node pool.
1139 &quot;A String&quot;,
1140 ],
1141 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
1142 &quot;locations&quot;: [ # The list of Google Compute Engine
1143 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1144 # NodePool&#x27;s nodes should be located.
1145 &quot;A String&quot;,
1146 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001147 },
1148 ],
1149 }</pre>
1150</div>
1151
1152<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001153 <code class="details" id="rollback">rollback(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001154 <pre>Rolls back a previously Aborted or Failed NodePool upgrade.
1155This makes no changes if the last upgrade successfully completed.
1156
1157Args:
1158 name: string, The name (project, location, cluster, node pool id) of the node poll to
1159rollback upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07001160Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001161 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001162 The object takes the form of:
1163
1164{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
1165 # NodePool upgrade. This will be an no-op if the last upgrade successfully
1166 # completed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001167 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001168 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1169 # cluster resides. This field has been deprecated and replaced by the name
1170 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001171 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1172 # number](https://support.google.com/cloud/answer/6158840).
1173 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001174 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to rollback.
1175 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001176 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node poll to
1177 # rollback upgrade.
1178 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001179 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to rollback.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001180 # This field has been deprecated and replaced by the name field.
1181 }
1182
1183 x__xgafv: string, V1 error format.
1184 Allowed values
1185 1 - v1 error format
1186 2 - v2 error format
1187
1188Returns:
1189 An object of the form:
1190
1191 { # This operation resource represents operations that may have happened or are
1192 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001193 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1194 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1195 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001196 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1197 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1198 # {name: &quot;nodes total&quot;, int_value: 32}]
1199 # or
1200 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1201 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1202 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001203 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001204 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1205 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001206 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001207 },
1208 ],
1209 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1210 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001211 &quot;stages&quot;: [ # Substages of an operation or a stage.
1212 # Object with schema name: OperationProgress
1213 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001214 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001215 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1216 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1217 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1218 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1219 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1220 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1221 { # StatusCondition describes why a cluster or a node pool has a certain status
1222 # (e.g., ERROR or DEGRADED).
1223 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1224 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1225 },
1226 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001227 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1228 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1229 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001230 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001231 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001232 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1233 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1234 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001235 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001236 { # StatusCondition describes why a cluster or a node pool has a certain status
1237 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001238 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001239 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001240 },
1241 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001242 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001243 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1244 # or
1245 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1246 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001247 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001248 }</pre>
1249</div>
1250
1251<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001252 <code class="details" id="setAutoscaling">setAutoscaling(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001253 <pre>Sets the autoscaling settings for the specified node pool.
1254
1255Args:
1256 name: string, The name (project, location, cluster, node pool) of the node pool to set
1257autoscaler settings. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001258`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001259 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001260 The object takes the form of:
1261
1262{ # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001263 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Required. Autoscaling configuration for the node pool.
1264 # adjust the size of the node pool to the current cluster usage.
1265 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1266 # max_node_count.
1267 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1268 # has to enough quota to scale up the cluster.
1269 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1270 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1271 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001272 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001273 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1274 # cluster resides. This field has been deprecated and replaced by the name
1275 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001276 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001277 # This field has been deprecated and replaced by the name field.
1278 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
1279 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001280 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to set
1281 # autoscaler settings. Specified in the format
1282 # `projects/*/locations/*/clusters/*/nodePools/*`.
1283 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1284 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001285 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001286 }
1287
1288 x__xgafv: string, V1 error format.
1289 Allowed values
1290 1 - v1 error format
1291 2 - v2 error format
1292
1293Returns:
1294 An object of the form:
1295
1296 { # This operation resource represents operations that may have happened or are
1297 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001298 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1299 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1300 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001301 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1302 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1303 # {name: &quot;nodes total&quot;, int_value: 32}]
1304 # or
1305 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1306 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1307 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001308 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001309 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1310 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001311 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001312 },
1313 ],
1314 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1315 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001316 &quot;stages&quot;: [ # Substages of an operation or a stage.
1317 # Object with schema name: OperationProgress
1318 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001319 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001320 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1321 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1322 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1323 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1324 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1325 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1326 { # StatusCondition describes why a cluster or a node pool has a certain status
1327 # (e.g., ERROR or DEGRADED).
1328 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1329 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1330 },
1331 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001332 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1333 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1334 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001335 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001336 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001337 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1338 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1339 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001340 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001341 { # StatusCondition describes why a cluster or a node pool has a certain status
1342 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001343 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001344 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001345 },
1346 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001347 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001348 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1349 # or
1350 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1351 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001352 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001353 }</pre>
1354</div>
1355
1356<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001357 <code class="details" id="setManagement">setManagement(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001358 <pre>Sets the NodeManagement options for a node pool.
1359
1360Args:
1361 name: string, The name (project, location, cluster, node pool id) of the node pool to set
1362management properties. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001363`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001364 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001365 The object takes the form of:
1366
1367{ # SetNodePoolManagementRequest sets the node management properties of a node
1368 # pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001369 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update.
1370 # This field has been deprecated and replaced by the name field.
1371 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1372 # management properties. Specified in the format
1373 # `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001374 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001375 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1376 # cluster resides. This field has been deprecated and replaced by the name
1377 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001378 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Required. NodeManagement configuration for the node pool.
1379 # node pool.
1380 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1381 # the Auto Upgrades will proceed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001382 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1383 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07001384 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1385 # with the approximate start time for the upgrades, in
1386 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1387 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001388 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1389 # pool. If enabled, the nodes in this node pool will be monitored and, if
1390 # they fail health checks too many times, an automatic repair action will be
1391 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001392 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1393 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1394 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001395 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001396 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
1397 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001398 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1399 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001400 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001401 }
1402
1403 x__xgafv: string, V1 error format.
1404 Allowed values
1405 1 - v1 error format
1406 2 - v2 error format
1407
1408Returns:
1409 An object of the form:
1410
1411 { # This operation resource represents operations that may have happened or are
1412 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001413 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1414 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1415 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001416 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1417 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1418 # {name: &quot;nodes total&quot;, int_value: 32}]
1419 # or
1420 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1421 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1422 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001423 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001424 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1425 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001426 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001427 },
1428 ],
1429 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1430 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001431 &quot;stages&quot;: [ # Substages of an operation or a stage.
1432 # Object with schema name: OperationProgress
1433 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001434 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001435 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1436 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1437 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1438 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1439 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1440 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1441 { # StatusCondition describes why a cluster or a node pool has a certain status
1442 # (e.g., ERROR or DEGRADED).
1443 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1444 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1445 },
1446 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001447 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1448 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1449 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001450 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001451 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001452 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1453 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1454 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001455 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001456 { # StatusCondition describes why a cluster or a node pool has a certain status
1457 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001458 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001459 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001460 },
1461 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001462 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001463 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1464 # or
1465 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1466 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001467 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001468 }</pre>
1469</div>
1470
1471<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001472 <code class="details" id="setSize">setSize(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001473 <pre>Sets the size for a specific node pool.
1474
1475Args:
1476 name: string, The name (project, location, cluster, node pool id) of the node pool to set
1477size.
Bu Sun Kim65020912020-05-20 12:08:20 -07001478Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001479 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001480 The object takes the form of:
1481
1482{ # SetNodePoolSizeRequest sets the size a node
1483 # pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001484 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001485 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001486 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1487 # cluster resides. This field has been deprecated and replaced by the name
1488 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001489 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update.
1490 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001491 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001492 # number](https://support.google.com/cloud/answer/6158840).
1493 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001494 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1495 # size.
1496 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001497 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
1498 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001499 }
1500
1501 x__xgafv: string, V1 error format.
1502 Allowed values
1503 1 - v1 error format
1504 2 - v2 error format
1505
1506Returns:
1507 An object of the form:
1508
1509 { # This operation resource represents operations that may have happened or are
1510 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001511 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1512 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1513 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001514 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1515 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1516 # {name: &quot;nodes total&quot;, int_value: 32}]
1517 # or
1518 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1519 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1520 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001521 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001522 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1523 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001524 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001525 },
1526 ],
1527 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1528 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001529 &quot;stages&quot;: [ # Substages of an operation or a stage.
1530 # Object with schema name: OperationProgress
1531 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001532 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001533 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1534 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1535 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1536 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1537 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1538 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1539 { # StatusCondition describes why a cluster or a node pool has a certain status
1540 # (e.g., ERROR or DEGRADED).
1541 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1542 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1543 },
1544 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001545 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1546 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1547 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001548 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001549 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001550 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1551 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1552 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001553 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001554 { # StatusCondition describes why a cluster or a node pool has a certain status
1555 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001556 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001557 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001558 },
1559 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001560 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001561 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1562 # or
1563 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1564 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001565 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001566 }</pre>
1567</div>
1568
1569<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001570 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001571 <pre>Updates the version and/or image type for the specified node pool.
1572
1573Args:
1574 name: string, The name (project, location, cluster, node pool) of the node pool to
1575update. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001576`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001577 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001578 The object takes the form of:
1579
Bu Sun Kim65020912020-05-20 12:08:20 -07001580{ # UpdateNodePoolRequests update a node pool&#x27;s image and/or version.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001581 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
1582 # This field has been deprecated and replaced by the name field.
1583 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The desired workload metadata config for the node pool.
1584 # workloads on the node pool.
1585 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1586 # on the node pool.
1587 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001588 &quot;nodeVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the nodes to (typically an
1589 # upgrade).
1590 #
1591 # Users may specify either explicit versions offered by Kubernetes Engine or
1592 # version aliases, which have the following behavior:
1593 #
1594 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1595 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1596 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1597 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1598 # - &quot;-&quot;: picks the Kubernetes master version
Bu Sun Kim65020912020-05-20 12:08:20 -07001599 &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 -07001600 # disruption caused by an upgrade.
1601 #
1602 # maxUnavailable controls the number of nodes that can be simultaneously
1603 # unavailable.
1604 #
1605 # maxSurge controls the number of additional nodes that can be added to the
1606 # node pool temporarily for the time of the upgrade to increase the number of
1607 # available nodes.
1608 #
1609 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1610 # nodes are being upgraded at the same time).
1611 #
1612 # Note: upgrades inevitably introduce some disruption since workloads need to
1613 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1614 # this holds true. (Disruption stays within the limits of
1615 # PodDisruptionBudget, if it is configured.)
1616 #
1617 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1618 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1619 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1620 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1621 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001622 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001623 # the upgrade process. A node is considered available if its status is
1624 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001625 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1626 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001627 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001628 &quot;locations&quot;: [ # The desired list of Google Compute Engine
1629 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1630 # node pool&#x27;s nodes should be located. Changing the locations for a node pool
1631 # will result in nodes being either created or removed from the node pool,
1632 # depending on whether locations are being added or removed.
1633 &quot;A String&quot;,
1634 ],
1635 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1636 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001637 # This field has been deprecated and replaced by the name field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001638 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade.
1639 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001640 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
1641 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
1642 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1643 # cluster resides. This field has been deprecated and replaced by the name
1644 # field.
1645 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to
1646 # update. Specified in the format
1647 # `projects/*/locations/*/clusters/*/nodePools/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001648 }
1649
1650 x__xgafv: string, V1 error format.
1651 Allowed values
1652 1 - v1 error format
1653 2 - v2 error format
1654
1655Returns:
1656 An object of the form:
1657
1658 { # This operation resource represents operations that may have happened or are
1659 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001660 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1661 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1662 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001663 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1664 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1665 # {name: &quot;nodes total&quot;, int_value: 32}]
1666 # or
1667 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1668 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1669 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001670 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001671 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1672 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001673 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001674 },
1675 ],
1676 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1677 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001678 &quot;stages&quot;: [ # Substages of an operation or a stage.
1679 # Object with schema name: OperationProgress
1680 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001681 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001682 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1683 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1684 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1685 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1686 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1687 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1688 { # StatusCondition describes why a cluster or a node pool has a certain status
1689 # (e.g., ERROR or DEGRADED).
1690 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1691 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1692 },
1693 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001694 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1695 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1696 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001697 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001698 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001699 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1700 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1701 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001702 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001703 { # StatusCondition describes why a cluster or a node pool has a certain status
1704 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001705 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001706 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001707 },
1708 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001709 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001710 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1711 # or
1712 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1713 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001714 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001715 }</pre>
1716</div>
1717
1718</body></html>