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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ accelerator_topology |
string
|
↳ max_topology_distance |
string
Check the MaxTopologyDistance enum for the list of possible values. |
↳ type |
string
Check the Type enum for the list of possible values. |
getAcceleratorTopology
Generated from protobuf field optional string accelerator_topology = 389323203;
| Returns | |
|---|---|
| Type | Description |
string |
|
hasAcceleratorTopology
clearAcceleratorTopology
setAcceleratorTopology
Generated from protobuf field optional string accelerator_topology = 389323203;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMaxTopologyDistance
Check the MaxTopologyDistance enum for the list of possible values.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasMaxTopologyDistance
clearMaxTopologyDistance
setMaxTopologyDistance
Check the MaxTopologyDistance enum for the list of possible values.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getType
Check the Type enum for the list of possible values.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasType
clearType
setType
Check the Type enum for the list of possible values.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|