blob: b4d3f488cdabc095eeb0fdaf9068eff6c049600f [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="container_v1beta1.html">Kubernetes Engine API</a> . <a href="container_v1beta1.projects.html">projects</a> . <a href="container_v1beta1.projects.locations.html">locations</a> . <a href="container_v1beta1.projects.locations.clusters.html">clusters</a> . <a href="container_v1beta1.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 Kim65020912020-05-20 12:08:20 -070081 <code><a href="#delete">delete(name, projectId=None, zone=None, clusterId=None, nodePoolId=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 Kim65020912020-05-20 12:08:20 -070084 <code><a href="#get">get(name, projectId=None, zone=None, clusterId=None, nodePoolId=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 Kim65020912020-05-20 12:08:20 -070087 <code><a href="#list">list(parent, projectId=None, zone=None, clusterId=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 of a specific 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 of a specific node pool.</p>
104<h3>Method Details</h3>
105<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code class="details" id="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;, # Required. 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;, # Required. 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.
124 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;nodePool&quot;: { # NodePool contains the name and configuration for a cluster&#x27;s node pool. # Required. The node pool to create.
127 # 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 -0700128 # specification, under the control of the cluster master. They may have a set
129 # of Kubernetes labels applied to them, which may be used to reference them
130 # during pod scheduling. They may also be resized up or down, to accommodate
131 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
133 # node pool instance, if available.
134 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700135 # only if a valid configuration is present.
136 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700138 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -0700139 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
140 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
141 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700142 # has to enough quota to scale up the cluster.
143 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700144 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
145 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
146 # is sufficient for this number of instances. You must also have available
147 # firewall and routes quota.
148 &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 -0700149 # disruption caused by an upgrade.
150 #
151 # maxUnavailable controls the number of nodes that can be simultaneously
152 # unavailable.
153 #
154 # maxSurge controls the number of additional nodes that can be added to the
155 # node pool temporarily for the time of the upgrade to increase the number of
156 # available nodes.
157 #
158 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
159 # nodes are being upgraded at the same time).
160 #
161 # Note: upgrades inevitably introduce some disruption since workloads need to
162 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
163 # this holds true. (Disruption stays within the limits of
164 # PodDisruptionBudget, if it is configured.)
165 #
166 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
167 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
168 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
169 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
170 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700171 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
Dan O'Mearadd494642020-05-01 07:42:23 -0700172 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700174 # the upgrade process. A node is considered available if its status is
175 # Ready.
176 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700177 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
178 &quot;locations&quot;: [ # The list of Google Compute Engine
179 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
180 # NodePool&#x27;s nodes should be located.
181 &quot;A String&quot;,
182 ],
183 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
Dan O'Mearadd494642020-05-01 07:42:23 -0700184 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
185 # associated with this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700187 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
189 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
190 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
191 { # StatusCondition describes why a cluster or a node pool has a certain status
192 # (e.g., ERROR or DEGRADED).
193 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
194 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700195 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700196 ],
197 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
198 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
199 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
200 # The smallest allowed disk size is 10GB.
201 #
202 # If unspecified, the default disk size is 100GB.
203 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
204 # workloads on the node pool.
205 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
206 # workloads running on the node.
207 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
208 # on the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
211 # See https://cloud.google.com/compute/docs/gpus for more information about
212 # support for GPUs.
213 { # AcceleratorConfig represents a Hardware Accelerator request.
214 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
215 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
216 # [here](https://cloud.google.com/compute/docs/gpus)
217 },
218 ],
219 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -0700220 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700221 # `n1-standard-1`).
222 #
223 # If unspecified, the default machine type is
224 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &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;)
226 #
227 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
228 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
229 # The Customer Managed Encryption Key used to encrypt the boot disk attached
230 # to each node in the node pool. This should be of the form
231 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
232 # For more information about protecting resources with Cloud KMS Keys please
233 # see:
234 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
235 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
236 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
237 #
238 # Secure Boot helps ensure that the system only runs authentic software by
239 # verifying the digital signature of all boot components, and halting the
240 # boot process if signature verification fails.
241 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700242 #
243 # Enables monitoring and attestation of the boot integrity of the instance.
244 # The attestation is performed against the integrity policy baseline. This
245 # baseline is initially derived from the implicitly trusted boot image when
246 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700247 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
249 # scheduled on the specified or newer CPU platform. Applicable values are the
250 # friendly names of CPU platforms, such as
251 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
252 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
253 # information, read [how to specify min CPU
254 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
255 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
256 # https://cloud.google.com/compute/docs/instances/preemptible for more
257 # inforamtion about preemptible VM instances.
258 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 # The limit for this value is dependent upon the maximum number of
261 # disks available on a machine per zone. See:
262 # https://cloud.google.com/compute/docs/disks/local-ssd
263 # for more information.
264 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
265 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
266 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
267 },
268 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
269 #
270 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
271 # in length. These are reflected as part of a URL in the metadata server.
272 # Additionally, to avoid ambiguity, keys must not conflict with any other
273 # metadata keys for the project or be one of the reserved keys:
274 # &quot;cluster-location&quot;
275 # &quot;cluster-name&quot;
276 # &quot;cluster-uid&quot;
277 # &quot;configure-sh&quot;
278 # &quot;containerd-configure-sh&quot;
279 # &quot;enable-oslogin&quot;
280 # &quot;gci-ensure-gke-docker&quot;
281 # &quot;gci-metrics-enabled&quot;
282 # &quot;gci-update-strategy&quot;
283 # &quot;instance-template&quot;
284 # &quot;kube-env&quot;
285 # &quot;startup-script&quot;
286 # &quot;user-data&quot;
287 # &quot;disable-address-manager&quot;
288 # &quot;windows-startup-script-ps1&quot;
289 # &quot;common-psm1&quot;
290 # &quot;k8s-node-setup-psm1&quot;
291 # &quot;install-ssh-psm1&quot;
292 # &quot;user-profile-psm1&quot;
293 # &quot;serial-port-logging-enable&quot;
294 # Values are free-form strings, and only have meaning as interpreted by
295 # the image running in the instance. The only restriction placed on them is
296 # that each value&#x27;s size must be less than or equal to 32 KB.
297 #
298 # The total size of all keys and values must be less than 512 KB.
299 &quot;a_key&quot;: &quot;A String&quot;,
300 },
301 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
302 # the specified [Zonal Compute
303 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
304 # to this node pool.
305 # is the configuration of desired reservation which instances could take
306 # capacity from.
307 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
308 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
309 # the key and specify the name of your reservation as its value.
310 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
311 &quot;A String&quot;,
312 ],
313 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
314 },
315 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700316 # valid sources or targets for network firewalls and are specified by
317 # the client during cluster or node pool creation. Each tag within the list
318 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700319 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700320 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700321 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700322 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700323 # Account is specified, the &quot;default&quot; service account is used.
324 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
325 # the latest version of it will be used.
326 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
327 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700328 #
329 # The following scopes are recommended, but not required, and by default are
330 # not included:
331 #
332 # * `https://www.googleapis.com/auth/compute` is required for mounting
333 # persistent storage on your nodes.
334 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
335 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700336 # (the [Google Container
337 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700338 #
339 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
340 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700342 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700344 #
345 # For more information, including usage and the valid values, see:
346 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
347 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
348 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
349 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700350 # See
351 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
352 # for more information, including usage and the valid values.
353 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
354 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
355 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700356 },
357 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700358 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
359 # These will added in addition to any default label(s) that
360 # Kubernetes may apply to the node.
361 # In case of conflict in label keys, the applied set may differ depending on
362 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
363 # and conflicts should be avoided.
364 # For more information, including usage and the valid values, see:
365 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
366 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700367 },
368 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700369 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
370 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
371 # simultaneously on a node in the node pool.
372 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
373 },
374 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
375 # node pool.
376 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
377 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
378 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
379 # the Auto Upgrades will proceed.
380 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
381 # with the description of the upgrade.
382 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
383 # with the approximate start time for the upgrades, in
384 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
385 },
386 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700387 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700388 &quot;parent&quot;: &quot;A String&quot;, # The parent (project, location, cluster id) where the node pool will be
389 # created. Specified in the format
390 # `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700391 }
392
393 x__xgafv: string, V1 error format.
394 Allowed values
395 1 - v1 error format
396 2 - v2 error format
397
398Returns:
399 An object of the form:
400
401 { # This operation resource represents operations that may have happened or are
402 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700403 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700404 { # StatusCondition describes why a cluster or a node pool has a certain status
405 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700406 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
407 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700408 },
409 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700410 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700411 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
412 # or
413 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
414 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700415 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
416 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
417 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
418 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
419 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
420 { # StatusCondition describes why a cluster or a node pool has a certain status
421 # (e.g., ERROR or DEGRADED).
422 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
423 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
424 },
425 ],
426 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
427 &quot;stages&quot;: [ # Substages of an operation or a stage.
428 # Object with schema name: OperationProgress
429 ],
430 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
431 # Unset for single-stage operations.
432 &quot;metrics&quot;: [ # Progress metric bundle, for example:
433 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
434 # {name: &quot;nodes total&quot;, int_value: 32}]
435 # or
436 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
437 # {name: &quot;progress scale&quot;, double_value: 1.0}]
438 { # Progress metric is (string, int|float|string) pair.
439 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
440 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
441 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
442 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
443 },
444 ],
445 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
446 # Unset for single-stage operations.
447 },
448 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
449 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
450 # operation is taking place. This field is deprecated, use location instead.
451 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
452 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
453 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
454 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
455 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
456 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
457 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700458 }</pre>
459</div>
460
461<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 <code class="details" id="delete">delete(name, projectId=None, zone=None, clusterId=None, nodePoolId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700463 <pre>Deletes a node pool from a cluster.
464
465Args:
466 name: string, The name (project, location, cluster, node pool id) of the node pool to
467delete. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700468`projects/*/locations/*/clusters/*/nodePools/*`. (required)
469 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
470number](https://developers.google.com/console/help/new/#projectnumber).
471This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700472 zone: string, Required. Deprecated. The name of the Google Compute Engine
473[zone](https://cloud.google.com/compute/docs/zones#available) in which the
474cluster resides. This field has been deprecated and replaced by the name
475field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700476 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700477This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700478 nodePoolId: string, Required. Deprecated. The name of the node pool to delete.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700479This field has been deprecated and replaced by the name field.
480 x__xgafv: string, V1 error format.
481 Allowed values
482 1 - v1 error format
483 2 - v2 error format
484
485Returns:
486 An object of the form:
487
488 { # This operation resource represents operations that may have happened or are
489 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700490 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700491 { # StatusCondition describes why a cluster or a node pool has a certain status
492 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700493 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
494 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700495 },
496 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700497 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700498 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
499 # or
500 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
501 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700502 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
503 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
504 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
505 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
506 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
507 { # StatusCondition describes why a cluster or a node pool has a certain status
508 # (e.g., ERROR or DEGRADED).
509 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
510 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
511 },
512 ],
513 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
514 &quot;stages&quot;: [ # Substages of an operation or a stage.
515 # Object with schema name: OperationProgress
516 ],
517 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
518 # Unset for single-stage operations.
519 &quot;metrics&quot;: [ # Progress metric bundle, for example:
520 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
521 # {name: &quot;nodes total&quot;, int_value: 32}]
522 # or
523 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
524 # {name: &quot;progress scale&quot;, double_value: 1.0}]
525 { # Progress metric is (string, int|float|string) pair.
526 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
527 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
528 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
529 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
530 },
531 ],
532 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
533 # Unset for single-stage operations.
534 },
535 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
536 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
537 # operation is taking place. This field is deprecated, use location instead.
538 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
539 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
540 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
541 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
542 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
543 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
544 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700545 }</pre>
546</div>
547
548<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700549 <code class="details" id="get">get(name, projectId=None, zone=None, clusterId=None, nodePoolId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700550 <pre>Retrieves the requested node pool.
551
552Args:
553 name: string, The name (project, location, cluster, node pool id) of the node pool to
554get. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -0700555`projects/*/locations/*/clusters/*/nodePools/*`. (required)
556 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
557number](https://developers.google.com/console/help/new/#projectnumber).
558This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700559 zone: string, Required. Deprecated. The name of the Google Compute Engine
560[zone](https://cloud.google.com/compute/docs/zones#available) in which the
561cluster resides. This field has been deprecated and replaced by the name
562field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700563 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700564This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700565 nodePoolId: string, Required. Deprecated. The name of the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700566This field has been deprecated and replaced by the name field.
567 x__xgafv: string, V1 error format.
568 Allowed values
569 1 - v1 error format
570 2 - v2 error format
571
572Returns:
573 An object of the form:
574
Bu Sun Kim65020912020-05-20 12:08:20 -0700575 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
576 # 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 -0700577 # specification, under the control of the cluster master. They may have a set
578 # of Kubernetes labels applied to them, which may be used to reference them
579 # during pod scheduling. They may also be resized up or down, to accommodate
580 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700581 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
582 # node pool instance, if available.
583 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700584 # only if a valid configuration is present.
585 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700586 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700587 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -0700588 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
589 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
590 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700591 # has to enough quota to scale up the cluster.
592 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700593 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
594 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
595 # is sufficient for this number of instances. You must also have available
596 # firewall and routes quota.
597 &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 -0700598 # disruption caused by an upgrade.
599 #
600 # maxUnavailable controls the number of nodes that can be simultaneously
601 # unavailable.
602 #
603 # maxSurge controls the number of additional nodes that can be added to the
604 # node pool temporarily for the time of the upgrade to increase the number of
605 # available nodes.
606 #
607 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
608 # nodes are being upgraded at the same time).
609 #
610 # Note: upgrades inevitably introduce some disruption since workloads need to
611 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
612 # this holds true. (Disruption stays within the limits of
613 # PodDisruptionBudget, if it is configured.)
614 #
615 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
616 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
617 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
618 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
619 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700620 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
Dan O'Mearadd494642020-05-01 07:42:23 -0700621 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -0700622 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700623 # the upgrade process. A node is considered available if its status is
624 # Ready.
625 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700626 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
627 &quot;locations&quot;: [ # The list of Google Compute Engine
628 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
629 # NodePool&#x27;s nodes should be located.
630 &quot;A String&quot;,
631 ],
632 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
Dan O'Mearadd494642020-05-01 07:42:23 -0700633 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
634 # associated with this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700635 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700636 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700637 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
638 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
639 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
640 { # StatusCondition describes why a cluster or a node pool has a certain status
641 # (e.g., ERROR or DEGRADED).
642 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
643 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700644 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700645 ],
646 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
647 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
648 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
649 # The smallest allowed disk size is 10GB.
650 #
651 # If unspecified, the default disk size is 100GB.
652 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
653 # workloads on the node pool.
654 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
655 # workloads running on the node.
656 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
657 # on the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700658 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
660 # See https://cloud.google.com/compute/docs/gpus for more information about
661 # support for GPUs.
662 { # AcceleratorConfig represents a Hardware Accelerator request.
663 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
664 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
665 # [here](https://cloud.google.com/compute/docs/gpus)
666 },
667 ],
668 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -0700669 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700670 # `n1-standard-1`).
671 #
672 # If unspecified, the default machine type is
673 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700674 &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;)
675 #
676 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
677 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
678 # The Customer Managed Encryption Key used to encrypt the boot disk attached
679 # to each node in the node pool. This should be of the form
680 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
681 # For more information about protecting resources with Cloud KMS Keys please
682 # see:
683 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
684 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
685 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
686 #
687 # Secure Boot helps ensure that the system only runs authentic software by
688 # verifying the digital signature of all boot components, and halting the
689 # boot process if signature verification fails.
690 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700691 #
692 # Enables monitoring and attestation of the boot integrity of the instance.
693 # The attestation is performed against the integrity policy baseline. This
694 # baseline is initially derived from the implicitly trusted boot image when
695 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700696 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700697 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
698 # scheduled on the specified or newer CPU platform. Applicable values are the
699 # friendly names of CPU platforms, such as
700 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
701 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
702 # information, read [how to specify min CPU
703 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
704 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
705 # https://cloud.google.com/compute/docs/instances/preemptible for more
706 # inforamtion about preemptible VM instances.
707 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700708 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700709 # The limit for this value is dependent upon the maximum number of
710 # disks available on a machine per zone. See:
711 # https://cloud.google.com/compute/docs/disks/local-ssd
712 # for more information.
713 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
714 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
715 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
716 },
717 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
718 #
719 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
720 # in length. These are reflected as part of a URL in the metadata server.
721 # Additionally, to avoid ambiguity, keys must not conflict with any other
722 # metadata keys for the project or be one of the reserved keys:
723 # &quot;cluster-location&quot;
724 # &quot;cluster-name&quot;
725 # &quot;cluster-uid&quot;
726 # &quot;configure-sh&quot;
727 # &quot;containerd-configure-sh&quot;
728 # &quot;enable-oslogin&quot;
729 # &quot;gci-ensure-gke-docker&quot;
730 # &quot;gci-metrics-enabled&quot;
731 # &quot;gci-update-strategy&quot;
732 # &quot;instance-template&quot;
733 # &quot;kube-env&quot;
734 # &quot;startup-script&quot;
735 # &quot;user-data&quot;
736 # &quot;disable-address-manager&quot;
737 # &quot;windows-startup-script-ps1&quot;
738 # &quot;common-psm1&quot;
739 # &quot;k8s-node-setup-psm1&quot;
740 # &quot;install-ssh-psm1&quot;
741 # &quot;user-profile-psm1&quot;
742 # &quot;serial-port-logging-enable&quot;
743 # Values are free-form strings, and only have meaning as interpreted by
744 # the image running in the instance. The only restriction placed on them is
745 # that each value&#x27;s size must be less than or equal to 32 KB.
746 #
747 # The total size of all keys and values must be less than 512 KB.
748 &quot;a_key&quot;: &quot;A String&quot;,
749 },
750 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
751 # the specified [Zonal Compute
752 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
753 # to this node pool.
754 # is the configuration of desired reservation which instances could take
755 # capacity from.
756 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
757 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
758 # the key and specify the name of your reservation as its value.
759 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
760 &quot;A String&quot;,
761 ],
762 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
763 },
764 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700765 # valid sources or targets for network firewalls and are specified by
766 # the client during cluster or node pool creation. Each tag within the list
767 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700768 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700769 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700770 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700771 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700772 # Account is specified, the &quot;default&quot; service account is used.
773 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
774 # the latest version of it will be used.
775 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
776 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700777 #
778 # The following scopes are recommended, but not required, and by default are
779 # not included:
780 #
781 # * `https://www.googleapis.com/auth/compute` is required for mounting
782 # persistent storage on your nodes.
783 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
784 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700785 # (the [Google Container
786 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700787 #
788 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
789 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700790 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700791 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700792 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700793 #
794 # For more information, including usage and the valid values, see:
795 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
796 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
797 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
798 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700799 # See
800 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
801 # for more information, including usage and the valid values.
802 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
803 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
804 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700805 },
806 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700807 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
808 # These will added in addition to any default label(s) that
809 # Kubernetes may apply to the node.
810 # In case of conflict in label keys, the applied set may differ depending on
811 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
812 # and conflicts should be avoided.
813 # For more information, including usage and the valid values, see:
814 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
815 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700816 },
817 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700818 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
819 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
820 # simultaneously on a node in the node pool.
821 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
822 },
823 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
824 # node pool.
825 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
826 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
827 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
828 # the Auto Upgrades will proceed.
829 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
830 # with the description of the upgrade.
831 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
832 # with the approximate start time for the upgrades, in
833 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
834 },
835 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700836 }</pre>
837</div>
838
839<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700840 <code class="details" id="list">list(parent, projectId=None, zone=None, clusterId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700841 <pre>Lists the node pools for a cluster.
842
843Args:
844 parent: string, The parent (project, location, cluster id) where the node pools will be
Bu Sun Kim65020912020-05-20 12:08:20 -0700845listed. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700846 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700847number](https://developers.google.com/console/help/new/#projectnumber).
848This field has been deprecated and replaced by the parent field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700849 zone: string, Required. Deprecated. The name of the Google Compute Engine
850[zone](https://cloud.google.com/compute/docs/zones#available) in which the
851cluster resides. This field has been deprecated and replaced by the parent
852field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700853 clusterId: string, Required. Deprecated. The name of the cluster.
854This field has been deprecated and replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700855 x__xgafv: string, V1 error format.
856 Allowed values
857 1 - v1 error format
858 2 - v2 error format
859
860Returns:
861 An object of the form:
862
863 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700864 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
865 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
866 # 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 -0700867 # specification, under the control of the cluster master. They may have a set
868 # of Kubernetes labels applied to them, which may be used to reference them
869 # during pod scheduling. They may also be resized up or down, to accommodate
870 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700871 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
872 # node pool instance, if available.
873 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700874 # only if a valid configuration is present.
875 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700876 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700877 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -0700878 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
879 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
880 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700881 # has to enough quota to scale up the cluster.
882 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700883 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
884 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
885 # is sufficient for this number of instances. You must also have available
886 # firewall and routes quota.
887 &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 -0700888 # disruption caused by an upgrade.
889 #
890 # maxUnavailable controls the number of nodes that can be simultaneously
891 # unavailable.
892 #
893 # maxSurge controls the number of additional nodes that can be added to the
894 # node pool temporarily for the time of the upgrade to increase the number of
895 # available nodes.
896 #
897 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
898 # nodes are being upgraded at the same time).
899 #
900 # Note: upgrades inevitably introduce some disruption since workloads need to
901 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
902 # this holds true. (Disruption stays within the limits of
903 # PodDisruptionBudget, if it is configured.)
904 #
905 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
906 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
907 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
908 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
909 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700910 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
Dan O'Mearadd494642020-05-01 07:42:23 -0700911 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -0700912 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700913 # the upgrade process. A node is considered available if its status is
914 # Ready.
915 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700916 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
917 &quot;locations&quot;: [ # The list of Google Compute Engine
918 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
919 # NodePool&#x27;s nodes should be located.
920 &quot;A String&quot;,
921 ],
922 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
Dan O'Mearadd494642020-05-01 07:42:23 -0700923 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
924 # associated with this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700925 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700926 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700927 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
928 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
929 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
930 { # StatusCondition describes why a cluster or a node pool has a certain status
931 # (e.g., ERROR or DEGRADED).
932 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
933 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700934 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700935 ],
936 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
937 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
938 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
939 # The smallest allowed disk size is 10GB.
940 #
941 # If unspecified, the default disk size is 100GB.
942 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
943 # workloads on the node pool.
944 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
945 # workloads running on the node.
946 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
947 # on the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700948 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700949 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
950 # See https://cloud.google.com/compute/docs/gpus for more information about
951 # support for GPUs.
952 { # AcceleratorConfig represents a Hardware Accelerator request.
953 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
954 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
955 # [here](https://cloud.google.com/compute/docs/gpus)
956 },
957 ],
958 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -0700959 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700960 # `n1-standard-1`).
961 #
962 # If unspecified, the default machine type is
963 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700964 &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;)
965 #
966 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
967 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
968 # The Customer Managed Encryption Key used to encrypt the boot disk attached
969 # to each node in the node pool. This should be of the form
970 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
971 # For more information about protecting resources with Cloud KMS Keys please
972 # see:
973 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
974 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
975 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
976 #
977 # Secure Boot helps ensure that the system only runs authentic software by
978 # verifying the digital signature of all boot components, and halting the
979 # boot process if signature verification fails.
980 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700981 #
982 # Enables monitoring and attestation of the boot integrity of the instance.
983 # The attestation is performed against the integrity policy baseline. This
984 # baseline is initially derived from the implicitly trusted boot image when
985 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700986 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700987 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
988 # scheduled on the specified or newer CPU platform. Applicable values are the
989 # friendly names of CPU platforms, such as
990 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
991 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
992 # information, read [how to specify min CPU
993 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
994 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
995 # https://cloud.google.com/compute/docs/instances/preemptible for more
996 # inforamtion about preemptible VM instances.
997 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700998 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700999 # The limit for this value is dependent upon the maximum number of
1000 # disks available on a machine per zone. See:
1001 # https://cloud.google.com/compute/docs/disks/local-ssd
1002 # for more information.
1003 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1004 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1005 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
1006 },
1007 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1008 #
1009 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1010 # in length. These are reflected as part of a URL in the metadata server.
1011 # Additionally, to avoid ambiguity, keys must not conflict with any other
1012 # metadata keys for the project or be one of the reserved keys:
1013 # &quot;cluster-location&quot;
1014 # &quot;cluster-name&quot;
1015 # &quot;cluster-uid&quot;
1016 # &quot;configure-sh&quot;
1017 # &quot;containerd-configure-sh&quot;
1018 # &quot;enable-oslogin&quot;
1019 # &quot;gci-ensure-gke-docker&quot;
1020 # &quot;gci-metrics-enabled&quot;
1021 # &quot;gci-update-strategy&quot;
1022 # &quot;instance-template&quot;
1023 # &quot;kube-env&quot;
1024 # &quot;startup-script&quot;
1025 # &quot;user-data&quot;
1026 # &quot;disable-address-manager&quot;
1027 # &quot;windows-startup-script-ps1&quot;
1028 # &quot;common-psm1&quot;
1029 # &quot;k8s-node-setup-psm1&quot;
1030 # &quot;install-ssh-psm1&quot;
1031 # &quot;user-profile-psm1&quot;
1032 # &quot;serial-port-logging-enable&quot;
1033 # Values are free-form strings, and only have meaning as interpreted by
1034 # the image running in the instance. The only restriction placed on them is
1035 # that each value&#x27;s size must be less than or equal to 32 KB.
1036 #
1037 # The total size of all keys and values must be less than 512 KB.
1038 &quot;a_key&quot;: &quot;A String&quot;,
1039 },
1040 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1041 # the specified [Zonal Compute
1042 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1043 # to this node pool.
1044 # is the configuration of desired reservation which instances could take
1045 # capacity from.
1046 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1047 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1048 # the key and specify the name of your reservation as its value.
1049 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1050 &quot;A String&quot;,
1051 ],
1052 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1053 },
1054 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001055 # valid sources or targets for network firewalls and are specified by
1056 # the client during cluster or node pool creation. Each tag within the list
1057 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07001058 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001059 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001060 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07001061 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07001062 # Account is specified, the &quot;default&quot; service account is used.
1063 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1064 # the latest version of it will be used.
1065 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1066 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001067 #
1068 # The following scopes are recommended, but not required, and by default are
1069 # not included:
1070 #
1071 # * `https://www.googleapis.com/auth/compute` is required for mounting
1072 # persistent storage on your nodes.
1073 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1074 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001075 # (the [Google Container
1076 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001077 #
1078 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1079 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001080 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001081 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001082 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001083 #
1084 # For more information, including usage and the valid values, see:
1085 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1086 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1087 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1088 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001089 # See
1090 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1091 # for more information, including usage and the valid values.
1092 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1093 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1094 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001095 },
1096 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001097 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1098 # These will added in addition to any default label(s) that
1099 # Kubernetes may apply to the node.
1100 # In case of conflict in label keys, the applied set may differ depending on
1101 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1102 # and conflicts should be avoided.
1103 # For more information, including usage and the valid values, see:
1104 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1105 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001106 },
1107 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001108 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1109 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1110 # simultaneously on a node in the node pool.
1111 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1112 },
1113 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1114 # node pool.
1115 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
1116 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
1117 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1118 # the Auto Upgrades will proceed.
1119 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1120 # with the description of the upgrade.
1121 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1122 # with the approximate start time for the upgrades, in
1123 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1124 },
1125 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001126 },
1127 ],
1128 }</pre>
1129</div>
1130
1131<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001132 <code class="details" id="rollback">rollback(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001133 <pre>Rolls back a previously Aborted or Failed NodePool upgrade.
1134This makes no changes if the last upgrade successfully completed.
1135
1136Args:
1137 name: string, The name (project, location, cluster, node pool id) of the node poll to
1138rollback upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07001139Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001140 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001141 The object takes the form of:
1142
1143{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
1144 # NodePool upgrade. This will be an no-op if the last upgrade successfully
1145 # completed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001146 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node poll to
1147 # rollback upgrade.
1148 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1149 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001150 # number](https://support.google.com/cloud/answer/6158840).
1151 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001152 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001153 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1154 # cluster resides. This field has been deprecated and replaced by the name
1155 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001156 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to rollback.
1157 # This field has been deprecated and replaced by the name field.
1158 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to rollback.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001159 # This field has been deprecated and replaced by the name field.
1160 }
1161
1162 x__xgafv: string, V1 error format.
1163 Allowed values
1164 1 - v1 error format
1165 2 - v2 error format
1166
1167Returns:
1168 An object of the form:
1169
1170 { # This operation resource represents operations that may have happened or are
1171 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001172 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001173 { # StatusCondition describes why a cluster or a node pool has a certain status
1174 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001175 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1176 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001177 },
1178 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001179 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001180 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1181 # or
1182 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1183 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001184 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1185 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1186 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1187 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1188 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1189 { # StatusCondition describes why a cluster or a node pool has a certain status
1190 # (e.g., ERROR or DEGRADED).
1191 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1192 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1193 },
1194 ],
1195 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1196 &quot;stages&quot;: [ # Substages of an operation or a stage.
1197 # Object with schema name: OperationProgress
1198 ],
1199 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1200 # Unset for single-stage operations.
1201 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1202 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1203 # {name: &quot;nodes total&quot;, int_value: 32}]
1204 # or
1205 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1206 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1207 { # Progress metric is (string, int|float|string) pair.
1208 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1209 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1210 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1211 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1212 },
1213 ],
1214 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1215 # Unset for single-stage operations.
1216 },
1217 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1218 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1219 # operation is taking place. This field is deprecated, use location instead.
1220 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1221 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1222 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1223 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1224 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1225 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1226 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001227 }</pre>
1228</div>
1229
1230<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001231 <code class="details" id="setAutoscaling">setAutoscaling(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001232 <pre>Sets the autoscaling settings of a specific node pool.
1233
1234Args:
1235 name: string, The name (project, location, cluster, node pool) of the node pool to set
1236autoscaler settings. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001237`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001238 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001239 The object takes the form of:
1240
1241{ # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001242 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to set
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001243 # autoscaler settings. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001244 # `projects/*/locations/*/clusters/*/nodePools/*`.
1245 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Required. Autoscaling configuration for the node pool.
1246 # adjust the size of the node pool to the current cluster usage.
1247 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1248 # max_node_count.
1249 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1250 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1251 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1252 # has to enough quota to scale up the cluster.
1253 },
1254 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
1255 # number](https://support.google.com/cloud/answer/6158840).
1256 # This field has been deprecated and replaced by the name field.
1257 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
1258 # This field has been deprecated and replaced by the name field.
1259 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to upgrade.
1260 # This field has been deprecated and replaced by the name field.
1261 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001262 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1263 # cluster resides. This field has been deprecated and replaced by the name
1264 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001265 }
1266
1267 x__xgafv: string, V1 error format.
1268 Allowed values
1269 1 - v1 error format
1270 2 - v2 error format
1271
1272Returns:
1273 An object of the form:
1274
1275 { # This operation resource represents operations that may have happened or are
1276 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001277 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001278 { # StatusCondition describes why a cluster or a node pool has a certain status
1279 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001280 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1281 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001282 },
1283 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001284 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001285 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1286 # or
1287 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1288 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001289 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1290 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1291 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1292 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1293 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1294 { # StatusCondition describes why a cluster or a node pool has a certain status
1295 # (e.g., ERROR or DEGRADED).
1296 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1297 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1298 },
1299 ],
1300 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1301 &quot;stages&quot;: [ # Substages of an operation or a stage.
1302 # Object with schema name: OperationProgress
1303 ],
1304 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1305 # Unset for single-stage operations.
1306 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1307 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1308 # {name: &quot;nodes total&quot;, int_value: 32}]
1309 # or
1310 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1311 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1312 { # Progress metric is (string, int|float|string) pair.
1313 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1314 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1315 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1316 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1317 },
1318 ],
1319 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1320 # Unset for single-stage operations.
1321 },
1322 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1323 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1324 # operation is taking place. This field is deprecated, use location instead.
1325 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1326 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1327 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1328 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1329 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1330 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1331 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001332 }</pre>
1333</div>
1334
1335<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001336 <code class="details" id="setManagement">setManagement(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001337 <pre>Sets the NodeManagement options for a node pool.
1338
1339Args:
1340 name: string, The name (project, location, cluster, node pool id) of the node pool to set
1341management properties. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001342`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001343 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001344 The object takes the form of:
1345
1346{ # SetNodePoolManagementRequest sets the node management properties of a node
1347 # pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001348 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
1349 # This field has been deprecated and replaced by the name field.
1350 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update.
1351 # This field has been deprecated and replaced by the name field.
1352 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001353 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1354 # cluster resides. This field has been deprecated and replaced by the name
1355 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001356 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1357 # management properties. Specified in the format
1358 # `projects/*/locations/*/clusters/*/nodePools/*`.
1359 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001360 # number](https://support.google.com/cloud/answer/6158840).
1361 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001362 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Required. NodeManagement configuration for the node pool.
1363 # node pool.
1364 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
1365 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
1366 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1367 # the Auto Upgrades will proceed.
1368 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1369 # with the description of the upgrade.
1370 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1371 # with the approximate start time for the upgrades, in
1372 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1373 },
1374 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001375 }
1376
1377 x__xgafv: string, V1 error format.
1378 Allowed values
1379 1 - v1 error format
1380 2 - v2 error format
1381
1382Returns:
1383 An object of the form:
1384
1385 { # This operation resource represents operations that may have happened or are
1386 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001387 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001388 { # StatusCondition describes why a cluster or a node pool has a certain status
1389 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001390 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1391 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001392 },
1393 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001394 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001395 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1396 # or
1397 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1398 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001399 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1400 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1401 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1402 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1403 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1404 { # StatusCondition describes why a cluster or a node pool has a certain status
1405 # (e.g., ERROR or DEGRADED).
1406 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1407 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1408 },
1409 ],
1410 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1411 &quot;stages&quot;: [ # Substages of an operation or a stage.
1412 # Object with schema name: OperationProgress
1413 ],
1414 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1415 # Unset for single-stage operations.
1416 &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.
1423 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1424 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1425 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1426 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1427 },
1428 ],
1429 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1430 # Unset for single-stage operations.
1431 },
1432 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1433 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1434 # operation is taking place. This field is deprecated, use location instead.
1435 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1436 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1437 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1438 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1439 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1440 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1441 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001442 }</pre>
1443</div>
1444
1445<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001446 <code class="details" id="setSize">setSize(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001447 <pre>Sets the size for a specific node pool.
1448
1449Args:
1450 name: string, The name (project, location, cluster, node pool id) of the node pool to set
1451size.
Bu Sun Kim65020912020-05-20 12:08:20 -07001452Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001453 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001454 The object takes the form of:
1455
1456{ # SetNodePoolSizeRequest sets the size a node
1457 # pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001458 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001459 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1460 # cluster resides. This field has been deprecated and replaced by the name
1461 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001462 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
1463 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set
1464 # size.
1465 # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1466 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001467 # number](https://support.google.com/cloud/answer/6158840).
1468 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001469 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001470 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001471 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001472 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001473 }
1474
1475 x__xgafv: string, V1 error format.
1476 Allowed values
1477 1 - v1 error format
1478 2 - v2 error format
1479
1480Returns:
1481 An object of the form:
1482
1483 { # This operation resource represents operations that may have happened or are
1484 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001485 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001486 { # StatusCondition describes why a cluster or a node pool has a certain status
1487 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001488 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1489 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001490 },
1491 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001492 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001493 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1494 # or
1495 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1496 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001497 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1498 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1499 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1500 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1501 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1502 { # StatusCondition describes why a cluster or a node pool has a certain status
1503 # (e.g., ERROR or DEGRADED).
1504 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1505 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1506 },
1507 ],
1508 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1509 &quot;stages&quot;: [ # Substages of an operation or a stage.
1510 # Object with schema name: OperationProgress
1511 ],
1512 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1513 # Unset for single-stage operations.
1514 &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.
1521 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1522 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1523 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1524 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1525 },
1526 ],
1527 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1528 # Unset for single-stage operations.
1529 },
1530 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1531 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1532 # operation is taking place. This field is deprecated, use location instead.
1533 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1534 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1535 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1536 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1537 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1538 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1539 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001540 }</pre>
1541</div>
1542
1543<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001544 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001545 <pre>Updates the version and/or image type of a specific node pool.
1546
1547Args:
1548 name: string, The name (project, location, cluster, node pool) of the node pool to
1549update. Specified in the format
Bu Sun Kim65020912020-05-20 12:08:20 -07001550`projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001551 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001552 The object takes the form of:
1553
1554{ # SetNodePoolVersionRequest updates the version of a node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001555 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001556 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1557 # cluster resides. This field has been deprecated and replaced by the name
1558 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001559 &quot;nodeVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the nodes to (typically an
1560 # upgrade).
1561 #
1562 # Users may specify either explicit versions offered by Kubernetes Engine or
1563 # version aliases, which have the following behavior:
1564 #
1565 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1566 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1567 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1568 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1569 # - &quot;-&quot;: picks the Kubernetes master version
1570 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to
1571 # update. Specified in the format
1572 # `projects/*/locations/*/clusters/*/nodePools/*`.
1573 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001574 # number](https://support.google.com/cloud/answer/6158840).
1575 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001576 &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 -07001577 # disruption caused by an upgrade.
1578 #
1579 # maxUnavailable controls the number of nodes that can be simultaneously
1580 # unavailable.
1581 #
1582 # maxSurge controls the number of additional nodes that can be added to the
1583 # node pool temporarily for the time of the upgrade to increase the number of
1584 # available nodes.
1585 #
1586 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1587 # nodes are being upgraded at the same time).
1588 #
1589 # Note: upgrades inevitably introduce some disruption since workloads need to
1590 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1591 # this holds true. (Disruption stays within the limits of
1592 # PodDisruptionBudget, if it is configured.)
1593 #
1594 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1595 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1596 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1597 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1598 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001599 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
Dan O'Mearadd494642020-05-01 07:42:23 -07001600 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07001601 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001602 # the upgrade process. A node is considered available if its status is
1603 # Ready.
1604 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001605 &quot;locations&quot;: [ # The desired list of Google Compute Engine
1606 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1607 # node pool&#x27;s nodes should be located. Changing the locations for a node pool
1608 # will result in nodes being either created or removed from the node pool,
1609 # depending on whether locations are being added or removed.
1610 &quot;A String&quot;,
1611 ],
1612 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
1613 # This field has been deprecated and replaced by the name field.
1614 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The desired workload metadata config for the node pool.
1615 # workloads on the node pool.
1616 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
1617 # workloads running on the node.
1618 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1619 # on the node pool.
1620 },
1621 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to upgrade.
1622 # This field has been deprecated and replaced by the name field.
1623 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001624 }
1625
1626 x__xgafv: string, V1 error format.
1627 Allowed values
1628 1 - v1 error format
1629 2 - v2 error format
1630
1631Returns:
1632 An object of the form:
1633
1634 { # This operation resource represents operations that may have happened or are
1635 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001636 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001637 { # StatusCondition describes why a cluster or a node pool has a certain status
1638 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001639 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1640 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001641 },
1642 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001643 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001644 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1645 # or
1646 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1647 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001648 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1649 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1650 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1651 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1652 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1653 { # StatusCondition describes why a cluster or a node pool has a certain status
1654 # (e.g., ERROR or DEGRADED).
1655 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1656 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1657 },
1658 ],
1659 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1660 &quot;stages&quot;: [ # Substages of an operation or a stage.
1661 # Object with schema name: OperationProgress
1662 ],
1663 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1664 # Unset for single-stage operations.
1665 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1666 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1667 # {name: &quot;nodes total&quot;, int_value: 32}]
1668 # or
1669 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1670 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1671 { # Progress metric is (string, int|float|string) pair.
1672 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1673 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1674 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1675 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1676 },
1677 ],
1678 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1679 # Unset for single-stage operations.
1680 },
1681 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1682 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1683 # operation is taking place. This field is deprecated, use location instead.
1684 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1685 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1686 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1687 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1688 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1689 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1690 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001691 }</pre>
1692</div>
1693
1694</body></html>