Compute V1 Client - Class ResourcePolicyWorkloadPolicy (1.35.0)

Reference documentation and code samples for the Compute V1 Client class ResourcePolicyWorkloadPolicy.

Represents the workload policy.

Generated from protobuf message google.cloud.compute.v1.ResourcePolicyWorkloadPolicy

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ accelerator_topology string

Specifies the topology required to create a partition for VMs that have interconnected GPUs.

↳ max_topology_distance string

Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.

↳ type string

Specifies the intent of the instance placement in the MIG. Check the Type enum for the list of possible values.

getAcceleratorTopology

Specifies the topology required to create a partition for VMs that have interconnected GPUs.

Returns
Type Description
string

hasAcceleratorTopology

clearAcceleratorTopology

setAcceleratorTopology

Specifies the topology required to create a partition for VMs that have interconnected GPUs.

Parameter
Name Description
var string
Returns
Type Description
$this

getMaxTopologyDistance

Specifies the maximum distance between instances.

Check the MaxTopologyDistance enum for the list of possible values.

Returns
Type Description
string

hasMaxTopologyDistance

clearMaxTopologyDistance

setMaxTopologyDistance

Specifies the maximum distance between instances.

Check the MaxTopologyDistance enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

Specifies the intent of the instance placement in the MIG.

Check the Type enum for the list of possible values.

Returns
Type Description
string

hasType

clearType

setType

Specifies the intent of the instance placement in the MIG.

Check the Type enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this