# Google Cloud Hypercompute Cluster V1 Client - Class SlurmPartition (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 SlurmPartition.

Configuration for Slurm partitions in the cluster. Partitions are groups of
nodesets, and are how clients specify where their workloads should be run.

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` Required. ID of the partition, which is how users will identify it. Must conform to [RFC-1034](https://datatracker.ietf.org/doc/html/rfc1034) (lower-case, alphanumeric, and at most 63 characters). |
| `↳ node_set_ids` | `string[]` Required. IDs of the nodesets that make up this partition. Values must match [SlurmNodeSet.id](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.SlurmNodeSet#_Google_Cloud_HypercomputeCluster_V1_SlurmNodeSet__getId__). |

### getId

Required. ID of the partition, which is how users will identify it. 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. ID of the partition, which is how users will identify it. 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` |   |

### getNodeSetIds

Required. IDs of the nodesets that make up this partition. Values must
match
[SlurmNodeSet.id](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.SlurmNodeSet#_Google_Cloud_HypercomputeCluster_V1_SlurmNodeSet__getId__).

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

### setNodeSetIds

Required. IDs of the nodesets that make up this partition. Values must
match
[SlurmNodeSet.id](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.SlurmNodeSet#_Google_Cloud_HypercomputeCluster_V1_SlurmNodeSet__getId__).

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

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