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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## 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. The script must complete within the system-defined default timeout of 5 minutes. For tasks that require more time, consider running them in the background using methods such as `&` or `nohup`. |
| `↳ 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/V1.StorageConfig>` Optional. How [storage resources](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.StorageResource) should be mounted on each login node. |
| `↳ instances` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.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/V1.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.

The script must complete within the system-defined default timeout of 5
minutes. For tasks that require more time, consider running them in the
background using methods such as `&` or `nohup`.

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

The script must complete within the system-defined default timeout of 5
minutes. For tasks that require more time, consider running them in the
background using methods such as `&` or `nohup`.

| **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/V1.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/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 login node.

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

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