Batch V1 API - Class Google::Cloud::Batch::V1::AllocationPolicy::InstanceFlexibilityPolicy (v1.12.0)

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

Allows creating VMs from multiple types of machines. Instance flexibility configuration overrides instances configuration.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#instance_selections

def instance_selections() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Batch::V1::AllocationPolicy::InstanceSelection}
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Batch::V1::AllocationPolicy::InstanceSelection}) — Required. Named instance selections configuring properties that the group will use when creating new VMs. The map key is a user-specified name for the instance selection. The key must be 1-63 characters long, and comply with RFC1035. Specifically, the key must consist of lowercase letters, numbers, and hyphens. The first character must be a lowercase letter, and the last character must be a lowercase letter or number. The maximum number of instance selections is 50. Exceeding this limit results in a validation error with code INVALID_ARGUMENT.

#instance_selections=

def instance_selections=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Batch::V1::AllocationPolicy::InstanceSelection}
Parameter
  • value (::Google::Protobuf::Map{::String => ::Google::Cloud::Batch::V1::AllocationPolicy::InstanceSelection}) — Required. Named instance selections configuring properties that the group will use when creating new VMs. The map key is a user-specified name for the instance selection. The key must be 1-63 characters long, and comply with RFC1035. Specifically, the key must consist of lowercase letters, numbers, and hyphens. The first character must be a lowercase letter, and the last character must be a lowercase letter or number. The maximum number of instance selections is 50. Exceeding this limit results in a validation error with code INVALID_ARGUMENT.
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Batch::V1::AllocationPolicy::InstanceSelection}) — Required. Named instance selections configuring properties that the group will use when creating new VMs. The map key is a user-specified name for the instance selection. The key must be 1-63 characters long, and comply with RFC1035. Specifically, the key must consist of lowercase letters, numbers, and hyphens. The first character must be a lowercase letter, and the last character must be a lowercase letter or number. The maximum number of instance selections is 50. Exceeding this limit results in a validation error with code INVALID_ARGUMENT.