Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::InstanceFlexibilityPolicyInstanceSelection (v3.5.0)

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

Specification of machine type to use. Every position inside this message is an alternative. The count specified in the shape flexibility must not exceed the number of entries in per_instance_properties or the capacity of the name_pattern, if used.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#disks

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

#disks=

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

#machine_types

def machine_types() -> ::Array<::String>
Returns
  • (::Array<::String>) — Alternative machine types to use for instances that are created from these properties. This field only accepts a machine type names, for example n2-standard-4 and not URLs or partial URLs.

#machine_types=

def machine_types=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Alternative machine types to use for instances that are created from these properties. This field only accepts a machine type names, for example n2-standard-4 and not URLs or partial URLs.
Returns
  • (::Array<::String>) — Alternative machine types to use for instances that are created from these properties. This field only accepts a machine type names, for example n2-standard-4 and not URLs or partial URLs.

#rank

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

#rank=

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