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

A resource defining how virtual machines and accelerators should be
provisioned for the cluster.

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ config` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.ComputeResourceConfig` Required. Immutable. Configuration for this compute resource, which describes how it should be created at runtime. |

### getConfig

Required. Immutable. Configuration for this compute resource, which
describes how it should be created at runtime.

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

### hasConfig

### clearConfig

### setConfig

Required. Immutable. Configuration for this compute resource, which
describes how it should be created at runtime.

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

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