# Class InstanceFlexibilityPolicyInstanceSelection (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

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

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.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `disks` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.AttachedDisk]` Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties. |
| `machine_types` | `MutableSequence[str]` 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` | `int` 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. This field is a member of `oneof`_ `_rank`. |