InstanceSelection(mapping=None, *, ignore_unknown_fields=False, **kwargs)Defines an instance selection for a given instance flexibility policy.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes |
|
|---|---|
| Name | Description |
machine_types |
MutableSequence[str]
Required. The Compute Engine machine type IDs. Only the machine type ID is supported, such as n1-standard-16.
Full or partial URLs are not accepted. The total maximum
number of machine types across all instance selections is
200. Exceeding this limit results in a validation error with
code INVALID_ARGUMENT.
|
rank |
int
Optional. Indicates the preference of this instance selection. Lower number means higher preference. First try is to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference. This field is a member of oneof_ _rank.
|
disks |
MutableSequence[google.cloud.batch_v1alpha.types.AllocationPolicy.AttachedDisk]
Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties. |
boot_disk |
google.cloud.batch_v1alpha.types.AllocationPolicy.Disk
Optional. Boot disk to be created and attached to instances created from this selection. It overrides the boot disk specified in the instance properties. (e.g., overriding boot disk type to Hyperdisk for 4th-gen machine types)
|