blob: 3c96d5e6c38ff793abe2277760b3c7eda29fcade [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="container_v1.html">Kubernetes Engine API</a> . <a href="container_v1.projects.html">projects</a> . <a href="container_v1.projects.locations.html">locations</a> . <a href="container_v1.projects.locations.clusters.html">clusters</a> . <a href="container_v1.projects.locations.clusters.nodePools.html">nodePools</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
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 Botcc94ec82021-01-15 07:10:04 -080084 <code><a href="#delete">delete(name, clusterId=None, nodePoolId=None, projectId=None, x__xgafv=None, zone=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 Botcc94ec82021-01-15 07:10:04 -080087 <code><a href="#get">get(name, clusterId=None, nodePoolId=None, projectId=None, x__xgafv=None, zone=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 Botcc94ec82021-01-15 07:10:04 -080090 <code><a href="#list">list(parent, clusterId=None, projectId=None, x__xgafv=None, zone=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 for the specified 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 for the specified 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 Botcc94ec82021-01-15 07:10:04 -0800123 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
124 &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.
125 &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.
126 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
127 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
128 &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.
129 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700130 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800131 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800132 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
133 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
134 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
135 },
136 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800137 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800138 &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.
139 { # AcceleratorConfig represents a Hardware Accelerator request.
140 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
141 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
142 },
143 ],
144 &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
145 &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.
146 &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;
147 &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.
148 &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/
149 &quot;a_key&quot;: &quot;A String&quot;,
150 },
151 &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.
152 &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`.
153 &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-os-login&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.
154 &quot;a_key&quot;: &quot;A String&quot;,
155 },
156 &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)
157 &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).
158 &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.
159 &quot;A String&quot;,
160 ],
161 &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 information about preemptible VM instances.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800162 &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.
163 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
164 &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.
165 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
166 &quot;A String&quot;,
167 ],
168 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800169 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
170 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
171 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800172 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800173 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800174 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800175 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800176 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800177 &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.
178 &quot;A String&quot;,
179 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800180 &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/
181 { # 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.
182 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
183 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
184 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
185 },
186 ],
187 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
188 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
189 },
190 },
191 &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.
192 &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.
193 &quot;A String&quot;,
194 ],
195 &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.
196 &quot;A String&quot;,
197 ],
198 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
199 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered.
200 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes.
201 &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.
202 &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.
203 &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.
204 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800205 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800206 &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.
207 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
208 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800209 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800210 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
211 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800212 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800213 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800214 &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.
215 &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.
216 &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.
217 },
218 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
219 },
220 &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/*`.
221 &quot;projectId&quot;: &quot;A String&quot;, # 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.
222 &quot;zone&quot;: &quot;A String&quot;, # 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.
223}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700225 x__xgafv: string, V1 error format.
226 Allowed values
227 1 - v1 error format
228 2 - v2 error format
229
230Returns:
231 An object of the form:
232
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800233 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
234 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
235 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
236 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
237 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
238 },
239 ],
240 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
241 &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.
242 &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.
243 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
244 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
245 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
246 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
247 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
248 },
249 ],
250 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
251 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
252 &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}]
253 { # Progress metric is (string, int|float|string) pair.
254 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
255 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
256 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
257 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700258 },
259 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800260 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
261 &quot;stages&quot;: [ # Substages of an operation or a stage.
262 # Object with schema name: OperationProgress
263 ],
264 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
265 },
266 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
267 &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.
268 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
269 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
270 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
271 &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.
272}</pre>
273</div>
274
275<div class="method">
276 <code class="details" id="delete">delete(name, clusterId=None, nodePoolId=None, projectId=None, x__xgafv=None, zone=None)</code>
277 <pre>Deletes a node pool from a cluster.
278
279Args:
280 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)
281 clusterId: string, Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
282 nodePoolId: string, Deprecated. The name of the node pool to delete. This field has been deprecated and replaced by the name field.
283 projectId: string, 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.
284 x__xgafv: string, V1 error format.
285 Allowed values
286 1 - v1 error format
287 2 - v2 error format
288 zone: string, 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.
289
290Returns:
291 An object of the form:
292
293 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
294 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
295 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
296 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
297 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
298 },
299 ],
300 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
301 &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.
302 &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.
303 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
304 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
305 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
306 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
307 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
308 },
309 ],
310 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
311 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
312 &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}]
313 { # Progress metric is (string, int|float|string) pair.
314 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
315 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
316 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
317 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
318 },
319 ],
320 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
321 &quot;stages&quot;: [ # Substages of an operation or a stage.
322 # Object with schema name: OperationProgress
323 ],
324 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
325 },
326 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
327 &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.
328 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
329 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
330 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
331 &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.
332}</pre>
333</div>
334
335<div class="method">
336 <code class="details" id="get">get(name, clusterId=None, nodePoolId=None, projectId=None, x__xgafv=None, zone=None)</code>
337 <pre>Retrieves the requested node pool.
338
339Args:
340 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)
341 clusterId: string, Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
342 nodePoolId: string, Deprecated. The name of the node pool. This field has been deprecated and replaced by the name field.
343 projectId: string, 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.
344 x__xgafv: string, V1 error format.
345 Allowed values
346 1 - v1 error format
347 2 - v2 error format
348 zone: string, 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.
349
350Returns:
351 An object of the form:
352
353 { # 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.
354 &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.
355 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
356 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
357 &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.
358 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
359 },
360 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
361 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
362 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
363 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
364 },
365 ],
366 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
367 &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.
368 { # AcceleratorConfig represents a Hardware Accelerator request.
369 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
370 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
371 },
372 ],
373 &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
374 &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.
375 &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;
376 &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.
377 &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/
378 &quot;a_key&quot;: &quot;A String&quot;,
379 },
380 &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.
381 &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`.
382 &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-os-login&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.
383 &quot;a_key&quot;: &quot;A String&quot;,
384 },
385 &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)
386 &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).
387 &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.
388 &quot;A String&quot;,
389 ],
390 &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 information about preemptible VM instances.
391 &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.
392 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
393 &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.
394 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
395 &quot;A String&quot;,
396 ],
397 },
398 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
399 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
400 },
401 &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.
402 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
403 &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.
404 &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.
405 },
406 &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.
407 &quot;A String&quot;,
408 ],
409 &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/
410 { # 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.
411 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
412 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
413 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
414 },
415 ],
416 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
417 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
418 },
419 },
420 &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.
421 &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.
422 &quot;A String&quot;,
423 ],
424 &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.
425 &quot;A String&quot;,
426 ],
427 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
428 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered.
429 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes.
430 &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.
431 &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.
432 &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.
433 },
434 },
435 &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.
436 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
437 },
438 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
439 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
440 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
441 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
442 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
443 &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.
444 &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.
445 &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.
446 },
447 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
448}</pre>
449</div>
450
451<div class="method">
452 <code class="details" id="list">list(parent, clusterId=None, projectId=None, x__xgafv=None, zone=None)</code>
453 <pre>Lists the node pools for a cluster.
454
455Args:
456 parent: string, The parent (project, location, cluster id) where the node pools will be listed. Specified in the format `projects/*/locations/*/clusters/*`. (required)
457 clusterId: string, Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
458 projectId: string, 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.
459 x__xgafv: string, V1 error format.
460 Allowed values
461 1 - v1 error format
462 2 - v2 error format
463 zone: string, 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.
464
465Returns:
466 An object of the form:
467
468 { # ListNodePoolsResponse is the result of ListNodePoolsRequest.
469 &quot;nodePools&quot;: [ # A list of node pools for a cluster.
470 { # 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.
471 &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.
472 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
473 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
474 &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.
475 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
476 },
477 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
478 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
479 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
480 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
481 },
482 ],
483 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
484 &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.
485 { # AcceleratorConfig represents a Hardware Accelerator request.
486 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
487 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
488 },
489 ],
490 &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
491 &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.
492 &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;
493 &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.
494 &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/
495 &quot;a_key&quot;: &quot;A String&quot;,
496 },
497 &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.
498 &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`.
499 &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-os-login&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.
500 &quot;a_key&quot;: &quot;A String&quot;,
501 },
502 &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)
503 &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).
504 &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.
505 &quot;A String&quot;,
506 ],
507 &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 information about preemptible VM instances.
508 &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.
509 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
510 &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.
511 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
512 &quot;A String&quot;,
513 ],
514 },
515 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
516 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
517 },
518 &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.
519 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
520 &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.
521 &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.
522 },
523 &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.
524 &quot;A String&quot;,
525 ],
526 &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/
527 { # 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.
528 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
529 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
530 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
531 },
532 ],
533 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
534 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
535 },
536 },
537 &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.
538 &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.
539 &quot;A String&quot;,
540 ],
541 &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.
542 &quot;A String&quot;,
543 ],
544 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
545 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered.
546 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes.
547 &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.
548 &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.
549 &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.
550 },
551 },
552 &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.
553 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
554 },
555 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
556 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
557 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
558 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
559 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
560 &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.
561 &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.
562 &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.
563 },
564 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
565 },
566 ],
567}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700568</div>
569
570<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700571 <code class="details" id="rollback">rollback(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700572 <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 -0700573
574Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700575 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 -0700576 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700577 The object takes the form of:
578
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700579{ # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800580 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to rollback. This field has been deprecated and replaced by the name field.
581 &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/*`.
582 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to rollback. This field has been deprecated and replaced by the name field.
583 &quot;projectId&quot;: &quot;A String&quot;, # 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.
584 &quot;zone&quot;: &quot;A String&quot;, # 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.
585}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700586
587 x__xgafv: string, V1 error format.
588 Allowed values
589 1 - v1 error format
590 2 - v2 error format
591
592Returns:
593 An object of the form:
594
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700595 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800596 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
597 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
598 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
599 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800600 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800601 ],
602 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
603 &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.
604 &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.
605 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
606 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
607 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
608 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
609 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
610 },
611 ],
612 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
613 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
614 &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}]
615 { # Progress metric is (string, int|float|string) pair.
616 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
617 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
618 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
619 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800620 },
621 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800622 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
623 &quot;stages&quot;: [ # Substages of an operation or a stage.
624 # Object with schema name: OperationProgress
625 ],
626 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
627 },
628 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
629 &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.
630 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
631 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
632 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
633 &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.
634}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700635</div>
636
637<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700638 <code class="details" id="setAutoscaling">setAutoscaling(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700639 <pre>Sets the autoscaling settings for the specified node pool.
640
641Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700642 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 -0700643 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700644 The object takes the form of:
645
646{ # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800647 &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.
648 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
649 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
650 &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.
651 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
652 },
653 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
654 &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/*`.
655 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.
656 &quot;projectId&quot;: &quot;A String&quot;, # 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.
657 &quot;zone&quot;: &quot;A String&quot;, # 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.
658}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700659
660 x__xgafv: string, V1 error format.
661 Allowed values
662 1 - v1 error format
663 2 - v2 error format
664
665Returns:
666 An object of the form:
667
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700668 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800669 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
670 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
671 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
672 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800673 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800674 ],
675 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
676 &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.
677 &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.
678 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
679 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
680 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
681 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
682 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
683 },
684 ],
685 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
686 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
687 &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}]
688 { # Progress metric is (string, int|float|string) pair.
689 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
690 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
691 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
692 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800693 },
694 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800695 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
696 &quot;stages&quot;: [ # Substages of an operation or a stage.
697 # Object with schema name: OperationProgress
698 ],
699 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
700 },
701 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
702 &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.
703 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
704 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
705 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
706 &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.
707}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700708</div>
709
710<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700711 <code class="details" id="setManagement">setManagement(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700712 <pre>Sets the NodeManagement options for a node pool.
713
714Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700715 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 -0700716 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700717 The object takes the form of:
718
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700719{ # SetNodePoolManagementRequest sets the node management properties of a node pool.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800720 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.
721 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # Required. NodeManagement configuration for the node pool.
722 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered.
723 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes.
724 &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.
725 &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.
726 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800728 },
729 &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/*`.
730 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.
731 &quot;projectId&quot;: &quot;A String&quot;, # 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.
732 &quot;zone&quot;: &quot;A String&quot;, # 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.
733}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700734
735 x__xgafv: string, V1 error format.
736 Allowed values
737 1 - v1 error format
738 2 - v2 error format
739
740Returns:
741 An object of the form:
742
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700743 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800744 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
745 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
746 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
747 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800748 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800749 ],
750 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
751 &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.
752 &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.
753 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
754 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
755 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
756 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
757 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
758 },
759 ],
760 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
761 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
762 &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}]
763 { # Progress metric is (string, int|float|string) pair.
764 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
765 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
766 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
767 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800768 },
769 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800770 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
771 &quot;stages&quot;: [ # Substages of an operation or a stage.
772 # Object with schema name: OperationProgress
773 ],
774 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
775 },
776 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
777 &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.
778 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
779 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
780 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
781 &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.
782}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700783</div>
784
785<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700786 <code class="details" id="setSize">setSize(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700787 <pre>Sets the size for a specific node pool.
788
789Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700790 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 -0700791 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700792 The object takes the form of:
793
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700794{ # SetNodePoolSizeRequest sets the size a node pool.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800795 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.
796 &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/*`.
797 &quot;nodeCount&quot;: 42, # Required. The desired node count for the pool.
798 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.
799 &quot;projectId&quot;: &quot;A String&quot;, # 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.
800 &quot;zone&quot;: &quot;A String&quot;, # 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.
801}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700802
803 x__xgafv: string, V1 error format.
804 Allowed values
805 1 - v1 error format
806 2 - v2 error format
807
808Returns:
809 An object of the form:
810
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700811 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800812 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
813 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
814 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
815 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800816 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800817 ],
818 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
819 &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.
820 &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.
821 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
822 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
823 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
824 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
825 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
826 },
827 ],
828 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
829 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
830 &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}]
831 { # Progress metric is (string, int|float|string) pair.
832 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
833 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
834 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
835 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800836 },
837 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800838 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
839 &quot;stages&quot;: [ # Substages of an operation or a stage.
840 # Object with schema name: OperationProgress
841 ],
842 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
843 },
844 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
845 &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.
846 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
847 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
848 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
849 &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.
850}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700851</div>
852
853<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700854 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700855 <pre>Updates the version and/or image type for the specified node pool.
856
857Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700858 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 -0700859 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700860 The object takes the form of:
861
Bu Sun Kim65020912020-05-20 12:08:20 -0700862{ # UpdateNodePoolRequests update a node pool&#x27;s image and/or version.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800863 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
864 &quot;imageType&quot;: &quot;A String&quot;, # Required. The desired image type for the node pool.
865 &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.
866 &quot;A String&quot;,
867 ],
868 &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/*`.
869 &quot;nodePoolId&quot;: &quot;A String&quot;, # Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.
870 &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
871 &quot;projectId&quot;: &quot;A String&quot;, # 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.
872 &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.
873 &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.
874 &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.
875 },
876 &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.
877 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
878 },
879 &quot;zone&quot;: &quot;A String&quot;, # 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.
880}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700881
882 x__xgafv: string, V1 error format.
883 Allowed values
884 1 - v1 error format
885 2 - v2 error format
886
887Returns:
888 An object of the form:
889
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700890 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800891 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
892 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
893 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
894 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800895 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800896 ],
897 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
898 &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.
899 &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.
900 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
901 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
902 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
903 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
904 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
905 },
906 ],
907 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
908 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
909 &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}]
910 { # Progress metric is (string, int|float|string) pair.
911 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
912 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
913 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
914 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800915 },
916 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800917 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
918 &quot;stages&quot;: [ # Substages of an operation or a stage.
919 # Object with schema name: OperationProgress
920 ],
921 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
922 },
923 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
924 &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.
925 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
926 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
927 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
928 &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.
929}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700930</div>
931
932</body></html>