Class ReservationAffinity

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

NameDescription
consume_reservation_type google.cloud.container_v1.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 "googleapis.com/reservation-name" as the key and specify the name of your reservation as its value.
values Sequence[str]
Corresponds to the label value(s) of reservation resource(s).

Inheritance

builtins.object > proto.message.Message > ReservationAffinity

Classes

Type

Type(value)

Indicates whether to consume capacity from a reservation or not.