# Google Cloud Hypercompute Cluster V1beta Client - Class SlurmOrchestrator (0.3.0)

0.3.0 (latest) 0.2.0 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1beta Client class SlurmOrchestrator.

When set in
[Orchestrator](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.Orchestrator),
indicates that the cluster should use [Slurm](https://slurm.schedmd.com/) as
the orchestrator.

Generated from protobuf message `google.cloud.hypercomputecluster.v1beta.SlurmOrchestrator`

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ login_nodes` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.SlurmLoginNodes` Required. Configuration for login nodes, which allow users to access the cluster over SSH. |
| `↳ node_sets` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.SlurmNodeSet>` Required. Configuration of Slurm nodesets, which define groups of compute resources that can be used by Slurm. At least one compute node is required. |
| `↳ partitions` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.SlurmPartition>` Required. Configuration of Slurm partitions, which group one or more nodesets. Acts as a queue against which jobs can be submitted. At least one partition is required. |
| `↳ default_partition` | `string` Optional. Default partition to use for submitted jobs that do not explicitly specify a partition. Required if and only if there is more than one partition, in which case it must match the id of one of the partitions. |
| `↳ prolog_bash_scripts` | `string[]` Optional. Slurm [prolog scripts](https://slurm.schedmd.com/prolog_epilog.html), which will be executed by compute nodes before a node begins running a new job. Values must not be empty. |
| `↳ epilog_bash_scripts` | `string[]` Optional. Slurm [epilog scripts](https://slurm.schedmd.com/prolog_epilog.html), which will be executed by compute nodes whenever a node finishes running a job. Values must not be empty. |

### getLoginNodes

Required. Configuration for login nodes, which allow users to access the
cluster over SSH.

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

### hasLoginNodes

### clearLoginNodes

### setLoginNodes

Required. Configuration for login nodes, which allow users to access the
cluster over SSH.

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

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

### getNodeSets

Required. Configuration of Slurm nodesets, which define groups of compute
resources that can be used by Slurm. At least one compute node is required.

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

### setNodeSets

Required. Configuration of Slurm nodesets, which define groups of compute
resources that can be used by Slurm. At least one compute node is required.

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

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

### getPartitions

Required. Configuration of Slurm partitions, which group one or more
nodesets. Acts as a queue against which jobs can be submitted. At least one
partition is required.

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

### setPartitions

Required. Configuration of Slurm partitions, which group one or more
nodesets. Acts as a queue against which jobs can be submitted. At least one
partition is required.

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

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

### getDefaultPartition

Optional. Default partition to use for submitted jobs that do not
explicitly specify a partition. Required if and only if there is more than
one partition, in which case it must match the id of one of the partitions.

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

### setDefaultPartition

Optional. Default partition to use for submitted jobs that do not
explicitly specify a partition. Required if and only if there is more than
one partition, in which case it must match the id of one of the partitions.

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

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

### getPrologBashScripts

Optional. Slurm [prolog
scripts](https://slurm.schedmd.com/prolog_epilog.html), which will be
executed by compute nodes before a node begins running a new job. Values
must not be empty.

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

### setPrologBashScripts

Optional. Slurm [prolog
scripts](https://slurm.schedmd.com/prolog_epilog.html), which will be
executed by compute nodes before a node begins running a new job. Values
must not be empty.

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

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

### getEpilogBashScripts

Optional. Slurm [epilog
scripts](https://slurm.schedmd.com/prolog_epilog.html), which will be
executed by compute nodes whenever a node finishes running a job. Values
must not be empty.

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

### setEpilogBashScripts

Optional. Slurm [epilog
scripts](https://slurm.schedmd.com/prolog_epilog.html), which will be
executed by compute nodes whenever a node finishes running a job. Values
must not be empty.

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

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