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

Configuration for Slurm [login
nodes](https://slurm.schedmd.com/quickstart_admin.html#login) in the cluster.

Login nodes are Compute Engine VM instances that allow users to access the
cluster over SSH.

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ count` | `int|string` Required. Number of login node instances to create. |
| `↳ zone` | `string` Required. Name of the zone in which login nodes should run, e.g., `us-central1-a`. Must be in the same region as the cluster, and must match the zone of any other resources specified in the cluster. |
| `↳ machine_type` | `string` Required. Name of the Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-resource) to use for login nodes, e.g. `n2-standard-2`. |
| `↳ startup_script` | `string` Optional. [Startup script](https://cloud.google.com/compute/docs/instances/startup-scripts/linux) to be run on each login node instance. Max 256KB. |
| `↳ enable_os_login` | `bool` Optional. Whether [OS Login](https://cloud.google.com/compute/docs/oslogin) should be enabled on login node instances. |
| `↳ enable_public_ips` | `bool` Optional. Whether login node instances should be assigned [external IP addresses](https://cloud.google.com/compute/docs/ip-addresses#externaladdresses). |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. [Labels](https://cloud.google.com/compute/docs/labeling-resources) that should be applied to each login node instance. |
| `↳ storage_configs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.StorageConfig>` Optional. How [storage resources](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.StorageResource) should be mounted on each login node. |
| `↳ instances` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.ComputeInstance>` Output only. Information about the login node instances that were created in Compute Engine. |
| `↳ boot_disk` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.BootDisk` Optional. Boot disk for the login node. |

### getCount

Required. Number of login node instances to create.

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

### setCount

Required. Number of login node instances to create.

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

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

### getZone

Required. Name of the zone in which login nodes should run, e.g.,
`us-central1-a`. Must be in the same region as the cluster, and must match
the zone of any other resources specified in the cluster.

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

### setZone

Required. Name of the zone in which login nodes should run, e.g.,
`us-central1-a`. Must be in the same region as the cluster, and must match
the zone of any other resources specified in the cluster.

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

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

### getMachineType

Required. Name of the Compute Engine [machine
type](https://cloud.google.com/compute/docs/machine-resource) to use for
login nodes, e.g. `n2-standard-2`.

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

### setMachineType

Required. Name of the Compute Engine [machine
type](https://cloud.google.com/compute/docs/machine-resource) to use for
login nodes, e.g. `n2-standard-2`.

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

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

### getStartupScript

Optional. [Startup
script](https://cloud.google.com/compute/docs/instances/startup-scripts/linux)
to be run on each login node instance. Max 256KB.

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

### setStartupScript

Optional. [Startup
script](https://cloud.google.com/compute/docs/instances/startup-scripts/linux)
to be run on each login node instance. Max 256KB.

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

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

### getEnableOsLogin

Optional. Whether [OS Login](https://cloud.google.com/compute/docs/oslogin)
should be enabled on login node instances.

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

### setEnableOsLogin

Optional. Whether [OS Login](https://cloud.google.com/compute/docs/oslogin)
should be enabled on login node instances.

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

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

### getEnablePublicIps

Optional. Whether login node instances should be assigned [external IP
addresses](https://cloud.google.com/compute/docs/ip-addresses#externaladdresses).

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

### setEnablePublicIps

Optional. Whether login node instances should be assigned [external IP
addresses](https://cloud.google.com/compute/docs/ip-addresses#externaladdresses).

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

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

### getLabels

Optional.

[Labels](https://cloud.google.com/compute/docs/labeling-resources) that
should be applied to each login node instance.

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

### setLabels

Optional.

[Labels](https://cloud.google.com/compute/docs/labeling-resources) that
should be applied to each login node instance.

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

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

### getStorageConfigs

Optional. How [storage
resources](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.StorageResource) should
be mounted on each login 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/V1beta.StorageConfig>` |   |

### setStorageConfigs

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

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

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

### getInstances

Output only. Information about the login node instances that were created
in Compute Engine.

| **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.ComputeInstance>` |   |

### setInstances

Output only. Information about the login node instances that were created
in Compute Engine.

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

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

### getBootDisk

Optional. Boot disk for the login node.

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

### hasBootDisk

### clearBootDisk

### setBootDisk

Optional. Boot disk for the login node.

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

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