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

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

A flexible specification of machine types for instances to create.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#instance_selections

def instance_selections() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Compute::V1::InstanceFlexibilityPolicyInstanceSelection}
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Compute::V1::InstanceFlexibilityPolicyInstanceSelection}) —

    Specification of alternative, flexible instance subsets. One of them will be selected to create the instances based on various criteria, like:

    • ranks,
    • location policy,
    • current capacity,
    • available reservations (you can specify affinity in InstanceProperties),
    • SWAN/GOOSE limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection.

#instance_selections=

def instance_selections=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Compute::V1::InstanceFlexibilityPolicyInstanceSelection}
Parameter
  • value (::Google::Protobuf::Map{::String => ::Google::Cloud::Compute::V1::InstanceFlexibilityPolicyInstanceSelection}) —

    Specification of alternative, flexible instance subsets. One of them will be selected to create the instances based on various criteria, like:

    • ranks,
    • location policy,
    • current capacity,
    • available reservations (you can specify affinity in InstanceProperties),
    • SWAN/GOOSE limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection.
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Compute::V1::InstanceFlexibilityPolicyInstanceSelection}) —

    Specification of alternative, flexible instance subsets. One of them will be selected to create the instances based on various criteria, like:

    • ranks,
    • location policy,
    • current capacity,
    • available reservations (you can specify affinity in InstanceProperties),
    • SWAN/GOOSE limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection.