# Cluster Director v1beta API - Class ComputeResourceConfig (1.0.0-beta01)

    public sealed class ComputeResourceConfig : IMessage<ComputeResourceConfig>, IEquatable<ComputeResourceConfig>, IDeepCloneable<ComputeResourceConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Cluster Director v1beta API class ComputeResourceConfig.

Describes how a compute resource should be created at runtime.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ComputeResourceConfig

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ComputeResourceConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.ComputeResourceConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ComputeResourceConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.ComputeResourceConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ComputeResourceConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.ComputeResourceConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.HypercomputeCluster.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta)

## Assembly

Google.Cloud.HypercomputeCluster.V1Beta.dll

## Constructors

### ComputeResourceConfig()

    public ComputeResourceConfig()

### ComputeResourceConfig(ComputeResourceConfig)

    public ComputeResourceConfig(ComputeResourceConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.ComputeResourceConfig` |

## Properties

### ConfigCase

    public ComputeResourceConfig.ConfigOneofCase ConfigCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.ComputeResourceConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.ComputeResourceConfig.ConfigOneofCase` |   |

### NewFlexStartInstances

    public NewFlexStartInstancesConfig NewFlexStartInstances { get; set; }

Optional. Immutable. If set, indicates that this resource should use
flex-start VMs.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.NewFlexStartInstancesConfig` |   |

### NewOnDemandInstances

    public NewOnDemandInstancesConfig NewOnDemandInstances { get; set; }

Optional. Immutable. If set, indicates that this resource should use
on-demand VMs.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.NewOnDemandInstancesConfig` |   |

### NewReservedInstances

    public NewReservedInstancesConfig NewReservedInstances { get; set; }

Optional. Immutable. If set, indicates that this resource should use
reserved VMs.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.NewReservedInstancesConfig` |   |

### NewSpotInstances

    public NewSpotInstancesConfig NewSpotInstances { get; set; }

Optional. Immutable. If set, indicates that this resource should use spot
VMs.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.HypercomputeCluster.V1Beta/latest/Google.Cloud.HypercomputeCluster.V1Beta.NewSpotInstancesConfig` |   |