# Class ComputeResourceConfig (0.4.1)

0.4.1 (latest) 0.4.0 0.2.0 0.1.0

    ComputeResourceConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Describes how a compute resource should be created at
runtime.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `new_on_demand_instances` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-hypercomputecluster/latest/google.cloud.hypercomputecluster_v1.types.NewOnDemandInstancesConfig` Optional. Immutable. If set, indicates that this resource should use on-demand VMs. This field is a member of `oneof`_ `config`. |
| `new_spot_instances` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-hypercomputecluster/latest/google.cloud.hypercomputecluster_v1.types.NewSpotInstancesConfig` Optional. Immutable. If set, indicates that this resource should use spot VMs. This field is a member of `oneof`_ `config`. |
| `new_reserved_instances` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-hypercomputecluster/latest/google.cloud.hypercomputecluster_v1.types.NewReservedInstancesConfig` Optional. Immutable. If set, indicates that this resource should use reserved VMs. This field is a member of `oneof`_ `config`. |
| `new_flex_start_instances` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-hypercomputecluster/latest/google.cloud.hypercomputecluster_v1.types.NewFlexStartInstancesConfig` Optional. Immutable. If set, indicates that this resource should use flex-start VMs. This field is a member of `oneof`_ `config`. |