Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection (v4.0.0)

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

Machine specification.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#disks

def disks() -> ::Array<::Google::Cloud::Compute::V1::CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk>

#disks=

def disks=(value) -> ::Array<::Google::Cloud::Compute::V1::CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk>

#guest_accelerators

def guest_accelerators() -> ::Array<::Google::Cloud::Compute::V1::AcceleratorConfig>
Returns

#guest_accelerators=

def guest_accelerators=(value) -> ::Array<::Google::Cloud::Compute::V1::AcceleratorConfig>
Parameter
Returns

#machine_types

def machine_types() -> ::Array<::String>
Returns
  • (::Array<::String>) — Full machine-type names, e.g. "n1-standard-16".

#machine_types=

def machine_types=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Full machine-type names, e.g. "n1-standard-16".
Returns
  • (::Array<::String>) — Full machine-type names, e.g. "n1-standard-16".

#rank

def rank() -> ::Integer
Returns
  • (::Integer) — Optional. Rank when prioritizing the shape flexibilities. The instance selections are considered in the ascending order of the rank. If not set, defaults to 0.

#rank=

def rank=(value) -> ::Integer
Parameter
  • value (::Integer) — Optional. Rank when prioritizing the shape flexibilities. The instance selections are considered in the ascending order of the rank. If not set, defaults to 0.
Returns
  • (::Integer) — Optional. Rank when prioritizing the shape flexibilities. The instance selections are considered in the ascending order of the rank. If not set, defaults to 0.