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

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

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## 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/V1.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/V1.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/V1.ComputeResourceConfig` |

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