# Class ResourcePolicyWorkloadPolicy (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

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

Represents the workload policy.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `accelerator_topology` | `str` Specifies the topology required to create a partition for VMs that have interconnected GPUs. This field is a member of `oneof`_ `_accelerator_topology`. |
| `accelerator_topology_mode` | `str` Specifies the connection mode for the accelerator topology. If not specified, the default is AUTO_CONNECT. Check the AcceleratorTopologyMode enum for the list of possible values. This field is a member of `oneof`_ `_accelerator_topology_mode`. |
| `max_topology_distance` | `str` Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values. This field is a member of `oneof`_ `_max_topology_distance`. |
| `type_` | `str` Specifies the intent of the instance placement in the MIG. Check the Type enum for the list of possible values. This field is a member of `oneof`_ `_type`. |

## Classes

### AcceleratorTopologyMode

    AcceleratorTopologyMode(value)

Specifies the connection mode for the accelerator topology. If not
specified, the default is AUTO_CONNECT.

### MaxTopologyDistance

    MaxTopologyDistance(value)

Specifies the maximum distance between instances.

### Type

    Type(value)

Specifies the intent of the instance placement in the MIG.