Class InstanceFlexibilityPolicy (0.22.1)

InstanceFlexibilityPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attribute

Name Description
instance_selections MutableMapping[str, google.cloud.batch_v1alpha.types.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.

Classes

InstanceSelectionsEntry

InstanceSelectionsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.