Compute V1 Client - Class ResourcePolicyGroupPlacementPolicy (1.5.0)

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

A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure bucket separation as well as network locality

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ availability_domain_count int

The number of availability domains to spread instances across. If two instances are in different availability domain, they are not in the same low latency network.

↳ collocation string

Specifies network collocation Check the Collocation enum for the list of possible values.

↳ vm_count int

Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.

getAvailabilityDomainCount

The number of availability domains to spread instances across. If two instances are in different availability domain, they are not in the same low latency network.

Generated from protobuf field optional int32 availability_domain_count = 12453432;

Returns
TypeDescription
int

hasAvailabilityDomainCount

clearAvailabilityDomainCount

setAvailabilityDomainCount

The number of availability domains to spread instances across. If two instances are in different availability domain, they are not in the same low latency network.

Generated from protobuf field optional int32 availability_domain_count = 12453432;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCollocation

Specifies network collocation Check the Collocation enum for the list of possible values.

Generated from protobuf field optional string collocation = 511156533;

Returns
TypeDescription
string

hasCollocation

clearCollocation

setCollocation

Specifies network collocation Check the Collocation enum for the list of possible values.

Generated from protobuf field optional string collocation = 511156533;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVmCount

Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.

Generated from protobuf field optional int32 vm_count = 261463431;

Returns
TypeDescription
int

hasVmCount

clearVmCount

setVmCount

Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.

Generated from protobuf field optional int32 vm_count = 261463431;

Parameter
NameDescription
var int
Returns
TypeDescription
$this