# Google Cloud Hypercompute Cluster V1 Client - Class SlurmNodeSet (0.3.0)

0.3.0 (latest) 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1 Client class SlurmNodeSet.

Configuration for Slurm nodesets in the cluster. Nodesets are groups of
compute nodes used by Slurm that are responsible for running workloads
submitted to the cluster.

Generated from protobuf message `google.cloud.hypercomputecluster.v1.SlurmNodeSet`

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ compute_instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.ComputeInstanceSlurmNodeSet` Optional. If set, indicates that the nodeset should be backed by Compute Engine instances. |
| `↳ id` | `string` Required. Identifier for the nodeset, which allows it to be referenced by partitions. Must conform to [RFC-1034](https://datatracker.ietf.org/doc/html/rfc1034) (lower-case, alphanumeric, and at most 63 characters). |
| `↳ compute_id` | `string` Optional. ID of the compute resource on which this nodeset will run. Must match a key in the cluster's [compute_resources](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.Cluster#_Google_Cloud_HypercomputeCluster_V1_Cluster__getComputeResources__). |
| `↳ storage_configs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.StorageConfig>` Optional. How [storage resources](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.StorageResource) should be mounted on each compute node. |
| `↳ static_node_count` | `int|string` Optional. Number of nodes to be statically created for this nodeset. The cluster will attempt to ensure that at least this many nodes exist at all times. |
| `↳ max_dynamic_node_count` | `int|string` Optional. Controls how many additional nodes a cluster can bring online to handle workloads. Set this value to enable dynamic node creation and limit the number of additional nodes the cluster can bring online. Leave empty if you do not want the cluster to create nodes dynamically, and instead rely only on static nodes. |

### getComputeInstance

Optional. If set, indicates that the nodeset should be backed by Compute
Engine instances.

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

### hasComputeInstance

### setComputeInstance

Optional. If set, indicates that the nodeset should be backed by Compute
Engine instances.

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

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

### getId

Required. Identifier for the nodeset, which allows it to be referenced by
partitions. Must conform to
[RFC-1034](https://datatracker.ietf.org/doc/html/rfc1034) (lower-case,
alphanumeric, and at most 63 characters).

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

### setId

Required. Identifier for the nodeset, which allows it to be referenced by
partitions. Must conform to
[RFC-1034](https://datatracker.ietf.org/doc/html/rfc1034) (lower-case,
alphanumeric, and at most 63 characters).

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

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

### getComputeId

Optional. ID of the compute resource on which this nodeset will run. Must
match a key in the cluster's
[compute_resources](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.Cluster#_Google_Cloud_HypercomputeCluster_V1_Cluster__getComputeResources__).

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

### setComputeId

Optional. ID of the compute resource on which this nodeset will run. Must
match a key in the cluster's
[compute_resources](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.Cluster#_Google_Cloud_HypercomputeCluster_V1_Cluster__getComputeResources__).

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

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

### getStorageConfigs

Optional. How [storage
resources](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.StorageResource) should be
mounted on each compute node.

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

### setStorageConfigs

Optional. How [storage
resources](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.StorageResource) should be
mounted on each compute node.

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

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

### getStaticNodeCount

Optional. Number of nodes to be statically created for this nodeset. The
cluster will attempt to ensure that at least this many nodes exist at all
times.

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

### setStaticNodeCount

Optional. Number of nodes to be statically created for this nodeset. The
cluster will attempt to ensure that at least this many nodes exist at all
times.

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

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

### getMaxDynamicNodeCount

Optional. Controls how many additional nodes a cluster can bring online to
handle workloads. Set this value to enable dynamic node creation and limit
the number of additional nodes the cluster can bring online. Leave empty if
you do not want the cluster to create nodes dynamically, and instead rely
only on static nodes.

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

### setMaxDynamicNodeCount

Optional. Controls how many additional nodes a cluster can bring online to
handle workloads. Set this value to enable dynamic node creation and limit
the number of additional nodes the cluster can bring online. Leave empty if
you do not want the cluster to create nodes dynamically, and instead rely
only on static nodes.

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

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

### getType

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