Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::ResourcePolicyGroupPlacementPolicy (v2.12.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::ResourcePolicyGroupPlacementPolicy.

A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure bucket separation

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#availability_domain_count

def availability_domain_count() -> ::Integer
Returns
  • (::Integer) — 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.

#availability_domain_count=

def availability_domain_count=(value) -> ::Integer
Parameter
  • value (::Integer) — 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.
Returns
  • (::Integer) — 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

def collocation() -> ::String
Returns
  • (::String) — Specifies network collocation Check the Collocation enum for the list of possible values.

#collocation=

def collocation=(value) -> ::String
Parameter
  • value (::String) — Specifies network collocation Check the Collocation enum for the list of possible values.
Returns
  • (::String) — Specifies network collocation Check the Collocation enum for the list of possible values.

#vm_count

def vm_count() -> ::Integer
Returns
  • (::Integer) — 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.

#vm_count=

def vm_count=(value) -> ::Integer
Parameter
  • value (::Integer) — 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.
Returns
  • (::Integer) — 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.