ReservationAffinity(mapping=None, *, ignore_unknown_fields=False, **kwargs)ReservationAffinity <https://cloud.google.com/compute/docs/instances/reserving-zonal-resources>__
is the configuration of desired reservation which instances could
take capacity from.
Attributes |
|
|---|---|
| Name | Description |
consume_reservation_type |
google.cloud.container_v1beta1.types.ReservationAffinity.Type
Corresponds to the type of reservation consumption. |
key |
str
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "compute.googleapis.com/reservation-name" as the key and specify the name of your reservation as its value. |
values |
MutableSequence[str]
Corresponds to the label value(s) of reservation resource(s). |
Classes
Type
Type(value)Indicates whether to consume capacity from a reservation or not.
Values: UNSPECIFIED (0): Default value. This should not be used. NO_RESERVATION (1): Do not consume from any reserved capacity. ANY_RESERVATION (2): Consume any reservation available. SPECIFIC_RESERVATION (3): Must consume from a specific reservation. Must specify key value fields for specifying the reservations.