blob: 3afed33f66d637f18bbf1fcf2e811c92b3384145 [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Creates a node pool for a cluster.</p>
83<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080084 <code><a href="#delete">delete(name, nodePoolId=None, clusterId=None, projectId=None, zone=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Deletes a node pool from a cluster.</p>
86<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080087 <code><a href="#get">get(name, zone=None, projectId=None, clusterId=None, nodePoolId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Retrieves the requested node pool.</p>
89<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080090 <code><a href="#list">list(parent, zone=None, clusterId=None, projectId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Lists the node pools for a cluster.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#rollback">rollback(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#setAutoscaling">setAutoscaling(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Sets the autoscaling settings of a specific node pool.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#setManagement">setManagement(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Sets the NodeManagement options for a node pool.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#setSize">setSize(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Sets the size for a specific node pool.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Updates the version and/or image type of a specific node pool.</p>
107<h3>Method Details</h3>
108<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109 <code class="details" id="close">close()</code>
110 <pre>Close httplib2 connections.</pre>
111</div>
112
113<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115 <pre>Creates a node pool for a cluster.
116
117Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118 parent: string, The parent (project, location, cluster id) where the node pool will be created. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700119 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700120 The object takes the form of:
121
122{ # CreateNodePoolRequest creates a node pool for a cluster.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800123 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800124 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the parent field.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700125 &quot;nodePool&quot;: { # NodePool contains the name and configuration for a cluster&#x27;s node pool. Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to reference them during pod scheduling. They may also be resized up or down, to accommodate the workload. # Required. The node pool to create.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800126 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run simultaneously on a node in the node pool.
127 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800128 },
129 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
130 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
131 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
132 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800133 &quot;locations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool&#x27;s nodes should be located. If this value is unspecified during node pool creation, the [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) value will be used, instead. Warning: changing node pool locations will result in nodes being added and/or removed.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700134 &quot;A String&quot;,
135 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800136 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
137 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
138 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
139 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
140 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
141 },
142 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700143 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
144 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700145 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700146 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800147 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700148 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800149 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700150 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800151 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800152 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from. # The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool.
153 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
154 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
155 &quot;A String&quot;,
156 ],
157 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as the key and specify the name of your reservation as its value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800158 },
159 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
160 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800161 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
162 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800163 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800164 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800165 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
166 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
167 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
168 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
169 },
170 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type, the latest version of it will be used.
171 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
172 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800173 ],
174 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
175 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
176 &quot;a_key&quot;: &quot;A String&quot;,
177 },
178 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800179 &quot;ephemeralStorageConfig&quot;: { # EphemeralStorageConfig contains configuration for the ephemeral storage filesystem. # Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk.
180 &quot;localSsdCount&quot;: 42, # Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it means to disable using local SSDs as ephemeral storage.
181 },
182 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types). If unspecified, the default machine type is `e2-medium`.
183 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
184 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
185 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800186 },
187 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
188 &quot;A String&quot;,
189 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800190 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
191 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
192 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
193 },
194 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
195 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
196 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more inforamtion about preemptible VM instances.
197 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
198 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - &quot;cluster-location&quot; - &quot;cluster-name&quot; - &quot;cluster-uid&quot; - &quot;configure-sh&quot; - &quot;containerd-configure-sh&quot; - &quot;enable-oslogin&quot; - &quot;gci-ensure-gke-docker&quot; - &quot;gci-metrics-enabled&quot; - &quot;gci-update-strategy&quot; - &quot;instance-template&quot; - &quot;kube-env&quot; - &quot;startup-script&quot; - &quot;user-data&quot; - &quot;disable-address-manager&quot; - &quot;windows-startup-script-ps1&quot; - &quot;common-psm1&quot; - &quot;k8s-node-setup-psm1&quot; - &quot;install-ssh-psm1&quot; - &quot;user-profile-psm1&quot; The following keys are reserved for Windows nodes: - &quot;serial-port-logging-enable&quot; Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value&#x27;s size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
199 &quot;a_key&quot;: &quot;A String&quot;,
200 },
201 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
202 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it&#x27;s best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
203 &quot;a_key&quot;: &quot;A String&quot;,
204 },
205 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
206 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.
207 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
208 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
209 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800210 },
211 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800212 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
213 { # AcceleratorConfig represents a Hardware Accelerator request.
214 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
215 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
216 },
217 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800218 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700219 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800220 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800221 &quot;A String&quot;,
222 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800223 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. # Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
224 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
225 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
226 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
227 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There has to enough quota to scale up the cluster.
228 },
229 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
230 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
231 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
232 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
233 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800234 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800235 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700236 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800237 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
238 &quot;parent&quot;: &quot;A String&quot;, # The parent (project, location, cluster id) where the node pool will be created. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700239 }
240
241 x__xgafv: string, V1 error format.
242 Allowed values
243 1 - v1 error format
244 2 - v2 error format
245
246Returns:
247 An object of the form:
248
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700249 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700250 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800251 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700252 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700253 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
254 {
255 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
256 },
257 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700258 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800259 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
260 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800261 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800262 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
263 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
264 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
265 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
266 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
267 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
268 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
269 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
270 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
271 },
272 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800273 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
274 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
275 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800276 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800277 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800278 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
279 },
280 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800281 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
282 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
283 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
284 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
285 &quot;stages&quot;: [ # Substages of an operation or a stage.
286 # Object with schema name: OperationProgress
287 ],
288 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
289 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
290 { # Progress metric is (string, int|float|string) pair.
291 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
292 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
293 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
294 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
295 },
296 ],
297 },
298 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700299 }</pre>
300</div>
301
302<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800303 <code class="details" id="delete">delete(name, nodePoolId=None, clusterId=None, projectId=None, zone=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700304 <pre>Deletes a node pool from a cluster.
305
306Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700307 name: string, The name (project, location, cluster, node pool id) of the node pool to delete. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700308 nodePoolId: string, Required. Deprecated. The name of the node pool to delete. This field has been deprecated and replaced by the name field.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800309 clusterId: string, Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800310 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800311 zone: string, Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700312 x__xgafv: string, V1 error format.
313 Allowed values
314 1 - v1 error format
315 2 - v2 error format
316
317Returns:
318 An object of the form:
319
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700320 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700321 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800322 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700323 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700324 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
325 {
326 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
327 },
328 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700329 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800330 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
331 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800332 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800333 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
334 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
335 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
336 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
337 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
338 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
339 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
340 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
341 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
342 },
343 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800344 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
345 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
346 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800347 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800348 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800349 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
350 },
351 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800352 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
353 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
354 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
355 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
356 &quot;stages&quot;: [ # Substages of an operation or a stage.
357 # Object with schema name: OperationProgress
358 ],
359 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
360 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
361 { # Progress metric is (string, int|float|string) pair.
362 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
363 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
364 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
365 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
366 },
367 ],
368 },
369 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700370 }</pre>
371</div>
372
373<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800374 <code class="details" id="get">get(name, zone=None, projectId=None, clusterId=None, nodePoolId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700375 <pre>Retrieves the requested node pool.
376
377Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700378 name: string, The name (project, location, cluster, node pool id) of the node pool to get. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800379 zone: string, Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800380 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800381 clusterId: string, Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
382 nodePoolId: string, Required. Deprecated. The name of the node pool. This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700383 x__xgafv: string, V1 error format.
384 Allowed values
385 1 - v1 error format
386 2 - v2 error format
387
388Returns:
389 An object of the form:
390
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700391 { # NodePool contains the name and configuration for a cluster&#x27;s node pool. Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to reference them during pod scheduling. They may also be resized up or down, to accommodate the workload.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800392 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run simultaneously on a node in the node pool.
393 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800394 },
395 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
396 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
397 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
398 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800399 &quot;locations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool&#x27;s nodes should be located. If this value is unspecified during node pool creation, the [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) value will be used, instead. Warning: changing node pool locations will result in nodes being added and/or removed.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700400 &quot;A String&quot;,
401 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800402 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
403 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
404 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
405 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
406 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
407 },
408 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700409 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
410 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700411 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700412 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800413 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700414 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800415 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700416 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800417 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800418 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from. # The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool.
419 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
420 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
421 &quot;A String&quot;,
422 ],
423 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as the key and specify the name of your reservation as its value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800424 },
425 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
426 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800427 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
428 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800429 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800430 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800431 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
432 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
433 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
434 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
435 },
436 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type, the latest version of it will be used.
437 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
438 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800439 ],
440 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
441 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
442 &quot;a_key&quot;: &quot;A String&quot;,
443 },
444 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800445 &quot;ephemeralStorageConfig&quot;: { # EphemeralStorageConfig contains configuration for the ephemeral storage filesystem. # Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk.
446 &quot;localSsdCount&quot;: 42, # Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it means to disable using local SSDs as ephemeral storage.
447 },
448 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types). If unspecified, the default machine type is `e2-medium`.
449 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
450 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
451 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800452 },
453 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
454 &quot;A String&quot;,
455 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800456 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
457 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
458 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
459 },
460 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
461 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
462 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more inforamtion about preemptible VM instances.
463 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
464 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - &quot;cluster-location&quot; - &quot;cluster-name&quot; - &quot;cluster-uid&quot; - &quot;configure-sh&quot; - &quot;containerd-configure-sh&quot; - &quot;enable-oslogin&quot; - &quot;gci-ensure-gke-docker&quot; - &quot;gci-metrics-enabled&quot; - &quot;gci-update-strategy&quot; - &quot;instance-template&quot; - &quot;kube-env&quot; - &quot;startup-script&quot; - &quot;user-data&quot; - &quot;disable-address-manager&quot; - &quot;windows-startup-script-ps1&quot; - &quot;common-psm1&quot; - &quot;k8s-node-setup-psm1&quot; - &quot;install-ssh-psm1&quot; - &quot;user-profile-psm1&quot; The following keys are reserved for Windows nodes: - &quot;serial-port-logging-enable&quot; Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value&#x27;s size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
465 &quot;a_key&quot;: &quot;A String&quot;,
466 },
467 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
468 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it&#x27;s best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
469 &quot;a_key&quot;: &quot;A String&quot;,
470 },
471 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
472 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.
473 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
474 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
475 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800476 },
477 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800478 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
479 { # AcceleratorConfig represents a Hardware Accelerator request.
480 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
481 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
482 },
483 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800484 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700485 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800486 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800487 &quot;A String&quot;,
488 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800489 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. # Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
490 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
491 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
492 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
493 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There has to enough quota to scale up the cluster.
494 },
495 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
496 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
497 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
498 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
499 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800500 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800501 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700502 }</pre>
503</div>
504
505<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800506 <code class="details" id="list">list(parent, zone=None, clusterId=None, projectId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700507 <pre>Lists the node pools for a cluster.
508
509Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700510 parent: string, The parent (project, location, cluster id) where the node pools will be listed. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700511 zone: string, Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800512 clusterId: string, Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800513 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700514 x__xgafv: string, V1 error format.
515 Allowed values
516 1 - v1 error format
517 2 - v2 error format
518
519Returns:
520 An object of the form:
521
522 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700523 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700524 { # NodePool contains the name and configuration for a cluster&#x27;s node pool. Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to reference them during pod scheduling. They may also be resized up or down, to accommodate the workload.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800525 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run simultaneously on a node in the node pool.
526 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800527 },
528 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
529 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
530 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
531 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800532 &quot;locations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool&#x27;s nodes should be located. If this value is unspecified during node pool creation, the [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) value will be used, instead. Warning: changing node pool locations will result in nodes being added and/or removed.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700533 &quot;A String&quot;,
534 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800535 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
536 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
537 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
538 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
539 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
540 },
541 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700542 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
543 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700544 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700545 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800546 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700547 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800548 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700549 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800550 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800551 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from. # The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool.
552 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
553 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
554 &quot;A String&quot;,
555 ],
556 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as the key and specify the name of your reservation as its value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800557 },
558 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
559 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800560 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
561 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800562 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800563 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800564 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
565 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
566 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
567 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
568 },
569 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type, the latest version of it will be used.
570 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
571 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800572 ],
573 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
574 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
575 &quot;a_key&quot;: &quot;A String&quot;,
576 },
577 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800578 &quot;ephemeralStorageConfig&quot;: { # EphemeralStorageConfig contains configuration for the ephemeral storage filesystem. # Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk.
579 &quot;localSsdCount&quot;: 42, # Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it means to disable using local SSDs as ephemeral storage.
580 },
581 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types). If unspecified, the default machine type is `e2-medium`.
582 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
583 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
584 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800585 },
586 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
587 &quot;A String&quot;,
588 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800589 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
590 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
591 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
592 },
593 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
594 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
595 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more inforamtion about preemptible VM instances.
596 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
597 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - &quot;cluster-location&quot; - &quot;cluster-name&quot; - &quot;cluster-uid&quot; - &quot;configure-sh&quot; - &quot;containerd-configure-sh&quot; - &quot;enable-oslogin&quot; - &quot;gci-ensure-gke-docker&quot; - &quot;gci-metrics-enabled&quot; - &quot;gci-update-strategy&quot; - &quot;instance-template&quot; - &quot;kube-env&quot; - &quot;startup-script&quot; - &quot;user-data&quot; - &quot;disable-address-manager&quot; - &quot;windows-startup-script-ps1&quot; - &quot;common-psm1&quot; - &quot;k8s-node-setup-psm1&quot; - &quot;install-ssh-psm1&quot; - &quot;user-profile-psm1&quot; The following keys are reserved for Windows nodes: - &quot;serial-port-logging-enable&quot; Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value&#x27;s size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
598 &quot;a_key&quot;: &quot;A String&quot;,
599 },
600 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
601 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it&#x27;s best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
602 &quot;a_key&quot;: &quot;A String&quot;,
603 },
604 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
605 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.
606 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
607 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
608 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800609 },
610 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800611 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
612 { # AcceleratorConfig represents a Hardware Accelerator request.
613 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
614 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
615 },
616 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800617 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700618 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800619 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800620 &quot;A String&quot;,
621 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800622 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. # Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
623 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
624 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
625 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
626 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There has to enough quota to scale up the cluster.
627 },
628 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
629 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
630 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
631 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
632 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800633 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800634 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700635 },
636 ],
637 }</pre>
638</div>
639
640<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700641 <code class="details" id="rollback">rollback(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700642 <pre>Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700643
644Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700645 name: string, The name (project, location, cluster, node pool id) of the node poll to rollback upgrade. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700646 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700647 The object takes the form of:
648
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700649{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800650 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to rollback. This field has been deprecated and replaced by the name field.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800651 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
652 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node poll to rollback upgrade. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
653 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to rollback. This field has been deprecated and replaced by the name field.
654 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700655 }
656
657 x__xgafv: string, V1 error format.
658 Allowed values
659 1 - v1 error format
660 2 - v2 error format
661
662Returns:
663 An object of the form:
664
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700665 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700666 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800667 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700668 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700669 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
670 {
671 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
672 },
673 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700674 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800675 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
676 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800677 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800678 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
679 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
680 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
681 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
682 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
683 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
684 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
685 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
686 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
687 },
688 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800689 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
690 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
691 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800692 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800693 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800694 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
695 },
696 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800697 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
698 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
699 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
700 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
701 &quot;stages&quot;: [ # Substages of an operation or a stage.
702 # Object with schema name: OperationProgress
703 ],
704 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
705 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
706 { # Progress metric is (string, int|float|string) pair.
707 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
708 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
709 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
710 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
711 },
712 ],
713 },
714 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700715 }</pre>
716</div>
717
718<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700719 <code class="details" id="setAutoscaling">setAutoscaling(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700720 <pre>Sets the autoscaling settings of a specific node pool.
721
722Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700723 name: string, The name (project, location, cluster, node pool) of the node pool to set autoscaler settings. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700724 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700725 The object takes the form of:
726
727{ # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800728 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800729 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. # Required. Autoscaling configuration for the node pool.
730 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
731 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
732 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
733 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There has to enough quota to scale up the cluster.
734 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800735 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to set autoscaler settings. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800736 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800737 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800738 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700739 }
740
741 x__xgafv: string, V1 error format.
742 Allowed values
743 1 - v1 error format
744 2 - v2 error format
745
746Returns:
747 An object of the form:
748
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700749 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700750 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800751 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700752 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700753 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
754 {
755 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
756 },
757 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700758 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800759 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
760 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800761 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800762 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
763 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
764 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
765 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
766 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
767 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
768 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
769 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
770 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
771 },
772 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800773 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
774 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
775 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800776 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800777 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800778 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
779 },
780 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800781 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
782 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
783 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
784 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
785 &quot;stages&quot;: [ # Substages of an operation or a stage.
786 # Object with schema name: OperationProgress
787 ],
788 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
789 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
790 { # Progress metric is (string, int|float|string) pair.
791 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
792 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
793 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
794 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
795 },
796 ],
797 },
798 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700799 }</pre>
800</div>
801
802<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700803 <code class="details" id="setManagement">setManagement(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700804 <pre>Sets the NodeManagement options for a node pool.
805
806Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700807 name: string, The name (project, location, cluster, node pool id) of the node pool to set management properties. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700808 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 The object takes the form of:
810
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700811{ # SetNodePoolManagementRequest sets the node management properties of a node pool.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800812 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set management properties. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800813 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.
814 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
815 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700816 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # Required. NodeManagement configuration for the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700817 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700818 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700819 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800820 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700821 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800822 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700823 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800824 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700825 }
826
827 x__xgafv: string, V1 error format.
828 Allowed values
829 1 - v1 error format
830 2 - v2 error format
831
832Returns:
833 An object of the form:
834
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700835 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700836 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800837 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700838 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700839 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
840 {
841 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
842 },
843 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700844 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800845 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
846 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800847 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800848 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
849 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
850 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
851 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
852 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
853 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
854 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
855 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
856 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
857 },
858 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800859 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
860 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
861 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800862 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800863 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800864 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
865 },
866 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800867 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
868 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
869 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
870 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
871 &quot;stages&quot;: [ # Substages of an operation or a stage.
872 # Object with schema name: OperationProgress
873 ],
874 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
875 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
876 { # Progress metric is (string, int|float|string) pair.
877 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
878 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
879 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
880 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
881 },
882 ],
883 },
884 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700885 }</pre>
886</div>
887
888<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700889 <code class="details" id="setSize">setSize(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700890 <pre>Sets the size for a specific node pool.
891
892Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700893 name: string, The name (project, location, cluster, node pool id) of the node pool to set size. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700894 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700895 The object takes the form of:
896
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700897{ # SetNodePoolSizeRequest sets the size a node pool.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800898 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.
899 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.
900 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800901 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool id) of the node pool to set size. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800902 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800903 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700904 }
905
906 x__xgafv: string, V1 error format.
907 Allowed values
908 1 - v1 error format
909 2 - v2 error format
910
911Returns:
912 An object of the form:
913
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700914 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700915 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800916 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700917 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700918 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
919 {
920 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
921 },
922 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700923 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800924 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
925 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800926 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800927 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
928 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
929 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
930 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
931 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
932 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
933 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
934 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
935 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
936 },
937 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800938 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
939 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
940 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800941 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800942 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800943 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
944 },
945 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800946 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
947 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
948 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
949 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
950 &quot;stages&quot;: [ # Substages of an operation or a stage.
951 # Object with schema name: OperationProgress
952 ],
953 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
954 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
955 { # Progress metric is (string, int|float|string) pair.
956 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
957 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
958 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
959 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
960 },
961 ],
962 },
963 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700964 }</pre>
965</div>
966
967<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700968 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700969 <pre>Updates the version and/or image type of a specific node pool.
970
971Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700972 name: string, The name (project, location, cluster, node pool) of the node pool to update. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700973 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700974 The object takes the form of:
975
976{ # SetNodePoolVersionRequest updates the version of a node pool.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800977 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The desired workload metadata config for the node pool.
978 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
979 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
980 },
981 &quot;nodePoolId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.
982 &quot;locations&quot;: [ # The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the node pool&#x27;s nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed.
983 &quot;A String&quot;,
984 ],
985 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800986 &quot;nodeVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the nodes to (typically an upgrade). Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - &quot;latest&quot;: picks the highest valid Kubernetes version - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version - &quot;-&quot;: picks the Kubernetes master version
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800987 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800988 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
989 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
990 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
991 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
992 },
993 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster, node pool) of the node pool to update. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
994 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
995 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
996 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
997 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
998 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700999 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001000 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001001 &quot;a_key&quot;: &quot;A String&quot;,
1002 },
1003 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001004 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001005 }
1006
1007 x__xgafv: string, V1 error format.
1008 Allowed values
1009 1 - v1 error format
1010 2 - v2 error format
1011
1012Returns:
1013 An object of the form:
1014
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001015 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001016 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001017 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001018 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001019 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1020 {
1021 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1022 },
1023 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001024 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001025 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
1026 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001027 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001028 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1029 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1030 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
1031 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1032 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
1033 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
1034 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
1035 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
1036 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1037 },
1038 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001039 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1040 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
1041 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001042 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001043 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001044 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1045 },
1046 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001047 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1048 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
1049 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1050 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
1051 &quot;stages&quot;: [ # Substages of an operation or a stage.
1052 # Object with schema name: OperationProgress
1053 ],
1054 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
1055 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
1056 { # Progress metric is (string, int|float|string) pair.
1057 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1058 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1059 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1060 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1061 },
1062 ],
1063 },
1064 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001065 }</pre>
1066</div>
1067
1068</body></html>