# Google Cloud Container V1 Client - Class UpdateNodePoolRequest (2.10.0)

2.10.0 (latest) 2.9.0 2.8.1 2.7.0 2.6.1 2.5.0 2.4.0 2.3.4 2.2.1 2.1.0 2.0.0 1.33.0 1.32.0 1.31.0 1.30.3 1.24.0 1.23.0 1.22.0 1.21.1 1.20.0 1.19.0 1.18.0 1.17.1 1.16.0 1.15.0 1.14.0 1.13.1 1.12.1 1.10.3 1.9.1 Reference documentation and code samples for the Google Cloud Container V1 Client class UpdateNodePoolRequest.

UpdateNodePoolRequests update a node pool's image and/or version.

Generated from protobuf message `google.container.v1.UpdateNodePoolRequest`

## Namespace

Google \\ Cloud \\ Container \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getProjectId

Deprecated. The Google Developers Console [project ID or project
number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).

This field has been deprecated and replaced by the name field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setProjectId

Deprecated. The Google Developers Console [project ID or project
number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).

This field has been deprecated and replaced by the name field.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getZone

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setZone

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getClusterId

Deprecated. The name of the cluster to upgrade.

This field has been deprecated and replaced by the name field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setClusterId

Deprecated. The name of the cluster to upgrade.

This field has been deprecated and replaced by the name field.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNodePoolId

Deprecated. The name of the node pool to upgrade.

This field has been deprecated and replaced by the name field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setNodePoolId

Deprecated. The name of the node pool to upgrade.

This field has been deprecated and replaced by the name field.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNodeVersion

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:

- "latest": picks the highest valid Kubernetes version
- "1.X": picks the highest valid patch+gke.N patch in the 1.X version
- "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
- "1.X.Y-gke.N": picks an explicit Kubernetes version
- "-": picks the Kubernetes master version

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setNodeVersion

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:

- "latest": picks the highest valid Kubernetes version
- "1.X": picks the highest valid patch+gke.N patch in the 1.X version
- "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
- "1.X.Y-gke.N": picks an explicit Kubernetes version
- "-": picks the Kubernetes master version

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImageType

Required. The desired image type for the node pool. Please see
<https://cloud.google.com/kubernetes-engine/docs/concepts/node-images>
for available image types.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setImageType

Required. The desired image type for the node pool. Please see
<https://cloud.google.com/kubernetes-engine/docs/concepts/node-images>
for available image types.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getName

The name (project, location, cluster, node pool) of the node pool to
update. Specified in the format
`projects/*/locations/*/clusters/*/nodePools/*`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

The name (project, location, cluster, node pool) of the node pool to
update. Specified in the format
`projects/*/locations/*/clusters/*/nodePools/*`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImage

The desired name of the image name to use for this node.

This is used to create clusters using a custom image.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setImage

The desired name of the image name to use for this node.

This is used to create clusters using a custom image.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImageProject

The project containing the desired image to use for this node pool.

This is used to create clusters using a custom image.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setImageProject

The project containing the desired image to use for this node pool.

This is used to create clusters using a custom image.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLocations

The desired list of Google Compute Engine
[zones](https://cloud.google.com/compute/docs/zones#available)
in which the node pool'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.

Warning: It is recommended to update node pool locations in a standalone
API call. Do not combine a location update with changes to other fields
(such as `tags`, `labels`, `taints`, etc.) in the same request.
Otherwise, the API performs a structural modification where changes to
other fields will only apply to newly created nodes and will not be
applied to existing nodes in the node pool. To ensure all nodes are updated
consistently, use a separate API call for location changes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setLocations

The desired list of Google Compute Engine
[zones](https://cloud.google.com/compute/docs/zones#available)
in which the node pool'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.

Warning: It is recommended to update node pool locations in a standalone
API call. Do not combine a location update with changes to other fields
(such as `tags`, `labels`, `taints`, etc.) in the same request.
Otherwise, the API performs a structural modification where changes to
other fields will only apply to newly created nodes and will not be
applied to existing nodes in the node pool. To ensure all nodes are updated
consistently, use a separate API call for location changes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getWorkloadMetadataConfig

The desired workload metadata config for the node pool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.WorkloadMetadataConfig|null` |   |

### hasWorkloadMetadataConfig

### clearWorkloadMetadataConfig

### setWorkloadMetadataConfig

The desired workload metadata config for the node pool.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.WorkloadMetadataConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUpgradeSettings

Upgrade settings control disruption and speed of the upgrade.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodePool.UpgradeSettings|null` |   |

### hasUpgradeSettings

### clearUpgradeSettings

### setUpgradeSettings

Upgrade settings control disruption and speed of the upgrade.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodePool.UpgradeSettings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTags

The desired network tags to be applied to all nodes in the node pool.

If this field is not present, the tags will not be changed. Otherwise,
the existing network tags will be *replaced* with the provided tags.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NetworkTags|null` |   |

### hasTags

### clearTags

### setTags

The desired network tags to be applied to all nodes in the node pool.

If this field is not present, the tags will not be changed. Otherwise,
the existing network tags will be *replaced* with the provided tags.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NetworkTags` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTaints

The desired node taints to be applied to all nodes in the node pool.

If this field is not present, the taints will not be changed. Otherwise,
the existing node taints will be *replaced* with the provided taints.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeTaints|null` |   |

### hasTaints

### clearTaints

### setTaints

The desired node taints to be applied to all nodes in the node pool.

If this field is not present, the taints will not be changed. Otherwise,
the existing node taints will be *replaced* with the provided taints.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeTaints` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabels

The desired node labels to be applied to all nodes in the node pool.

If this field is not present, the labels will not be changed. Otherwise,
the existing node labels will be *replaced* with the provided labels.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeLabels|null` |   |

### hasLabels

### clearLabels

### setLabels

The desired node labels to be applied to all nodes in the node pool.

If this field is not present, the labels will not be changed. Otherwise,
the existing node labels will be *replaced* with the provided labels.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeLabels` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLinuxNodeConfig

Parameters that can be configured on Linux nodes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.LinuxNodeConfig|null` |   |

### hasLinuxNodeConfig

### clearLinuxNodeConfig

### setLinuxNodeConfig

Parameters that can be configured on Linux nodes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.LinuxNodeConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKubeletConfig

Node kubelet configs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeKubeletConfig|null` |   |

### hasKubeletConfig

### clearKubeletConfig

### setKubeletConfig

Node kubelet configs.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeKubeletConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNodeNetworkConfig

Node network config.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeNetworkConfig|null` |   |

### hasNodeNetworkConfig

### clearNodeNetworkConfig

### setNodeNetworkConfig

Node network config.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeNetworkConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGcfsConfig

GCFS config.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GcfsConfig|null` |   |

### hasGcfsConfig

### clearGcfsConfig

### setGcfsConfig

GCFS config.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GcfsConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConfidentialNodes

Confidential nodes config.

All the nodes in the node pool will be Confidential VM once enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ConfidentialNodes|null` |   |

### hasConfidentialNodes

### clearConfidentialNodes

### setConfidentialNodes

Confidential nodes config.

All the nodes in the node pool will be Confidential VM once enabled.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ConfidentialNodes` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGvnic

Enable or disable gvnic on the node pool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.VirtualNIC|null` |   |

### hasGvnic

### clearGvnic

### setGvnic

Enable or disable gvnic on the node pool.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.VirtualNIC` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEtag

The current etag of the node pool.

If an etag is provided and does not match the current etag of the node
pool, update will be blocked and an ABORTED error will be returned.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEtag

The current etag of the node pool.

If an etag is provided and does not match the current etag of the node
pool, update will be blocked and an ABORTED error will be returned.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFastSocket

Enable or disable NCCL fast socket for the node pool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.FastSocket|null` |   |

### hasFastSocket

### clearFastSocket

### setFastSocket

Enable or disable NCCL fast socket for the node pool.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.FastSocket` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLoggingConfig

Logging configuration.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodePoolLoggingConfig|null` |   |

### hasLoggingConfig

### clearLoggingConfig

### setLoggingConfig

Logging configuration.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodePoolLoggingConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResourceLabels

The resource labels for the node pool to use to annotate any related
Google Compute Engine resources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ResourceLabels|null` |   |

### hasResourceLabels

### clearResourceLabels

### setResourceLabels

The resource labels for the node pool to use to annotate any related
Google Compute Engine resources.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ResourceLabels` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getWindowsNodeConfig

Parameters that can be configured on Windows nodes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.WindowsNodeConfig|null` |   |

### hasWindowsNodeConfig

### clearWindowsNodeConfig

### setWindowsNodeConfig

Parameters that can be configured on Windows nodes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.WindowsNodeConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAccelerators

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.AcceleratorConfig>` |   |

### setAccelerators

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.AcceleratorConfig>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMachineType

Optional. The desired [Google Compute Engine machine
type](https://cloud.google.com/compute/docs/machine-types)
for nodes in the node pool. Initiates an upgrade operation that migrates
the nodes in the node pool to the specified machine type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setMachineType

Optional. The desired [Google Compute Engine machine
type](https://cloud.google.com/compute/docs/machine-types)
for nodes in the node pool. Initiates an upgrade operation that migrates
the nodes in the node pool to the specified machine type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDiskType

Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
'pd-balanced') for nodes in the node pool.

Initiates an upgrade operation that migrates the nodes in the
node pool to the specified disk type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDiskType

Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
'pd-balanced') for nodes in the node pool.

Initiates an upgrade operation that migrates the nodes in the
node pool to the specified disk type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDiskSizeGb

Optional. The desired disk size for nodes in the node pool specified in GB.

The smallest allowed disk size is 10GB.
Initiates an upgrade operation that migrates the nodes in the
node pool to the specified disk size.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setDiskSizeGb

Optional. The desired disk size for nodes in the node pool specified in GB.

The smallest allowed disk size is 10GB.
Initiates an upgrade operation that migrates the nodes in the
node pool to the specified disk size.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResourceManagerTags

Desired resource manager tag keys and values to be attached to the nodes
for managing Compute Engine firewalls using Network Firewall Policies.

Existing tags will be replaced with new values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ResourceManagerTags|null` |   |

### hasResourceManagerTags

### clearResourceManagerTags

### setResourceManagerTags

Desired resource manager tag keys and values to be attached to the nodes
for managing Compute Engine firewalls using Network Firewall Policies.

Existing tags will be replaced with new values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ResourceManagerTags` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getContainerdConfig

The desired containerd config for nodes in the node pool.

Initiates an upgrade operation that recreates the nodes with the new
config.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ContainerdConfig|null` |   |

### hasContainerdConfig

### clearContainerdConfig

### setContainerdConfig

The desired containerd config for nodes in the node pool.

Initiates an upgrade operation that recreates the nodes with the new
config.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ContainerdConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getQueuedProvisioning

Specifies the configuration of queued provisioning.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodePool.QueuedProvisioning|null` |   |

### hasQueuedProvisioning

### clearQueuedProvisioning

### setQueuedProvisioning

Specifies the configuration of queued provisioning.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodePool.QueuedProvisioning` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStoragePools

List of Storage Pools where boot disks are provisioned.

Existing Storage Pools will be replaced with storage-pools.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setStoragePools

List of Storage Pools where boot disks are provisioned.

Existing Storage Pools will be replaced with storage-pools.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMaxRunDuration

The maximum duration for the nodes to exist.

If unspecified, the nodes can exist indefinitely.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasMaxRunDuration

### clearMaxRunDuration

### setMaxRunDuration

The maximum duration for the nodes to exist.

If unspecified, the nodes can exist indefinitely.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFlexStart

Flex Start flag for enabling Flex Start VM.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasFlexStart

### clearFlexStart

### setFlexStart

Flex Start flag for enabling Flex Start VM.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBootDisk

The desired boot disk config for nodes in the node pool.

Initiates an upgrade operation that migrates the nodes in the
node pool to the specified boot disk config.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.BootDisk|null` |   |

### hasBootDisk

### clearBootDisk

### setBootDisk

The desired boot disk config for nodes in the node pool.

Initiates an upgrade operation that migrates the nodes in the
node pool to the specified boot disk config.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.BootDisk` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNodeDrainConfig

The desired node drain configuration for nodes in the node pool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodePool.NodeDrainConfig|null` |   |

### hasNodeDrainConfig

### clearNodeDrainConfig

### setNodeDrainConfig

The desired node drain configuration for nodes in the node pool.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodePool.NodeDrainConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConsolidationDelay

Consolidation delay defines duration after which the Cluster Autoscaler can
scale down underutilized nodes. If not set, nodes are scaled down by
default behavior, i.e. according to the chosen autoscaling profile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasConsolidationDelay

### clearConsolidationDelay

### setConsolidationDelay

Consolidation delay defines duration after which the Cluster Autoscaler can
scale down underutilized nodes. If not set, nodes are scaled down by
default behavior, i.e. according to the chosen autoscaling profile.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTaintConfig

The taint configuration for the node pool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.TaintConfig|null` |   |

### hasTaintConfig

### clearTaintConfig

### setTaintConfig

The taint configuration for the node pool.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.TaintConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |