Class ReservationAffinity (2.47.1)

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.