str
Specifies the type of reservation from which this instance
can consume resources: ANY_RESERVATION (default),
SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming
reserved instances for examples. Check the
ConsumeReservationType enum for the list of possible values.
This field is a member of oneof_ _consume_reservation_type.
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.
This field is a member of oneof_ _key.
values
MutableSequence[str]
Corresponds to the label values of a
reservation resource. This can be either a name
to a reservation in the same project or
"projects/different-project/reservations/some-reservation-name"
to target a shared reservation in the same zone
but in a different project.
Classes
ConsumeReservationType
ConsumeReservationType(value)
Specifies the type of reservation from which this instance can
consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION,
or NO_RESERVATION. See Consuming reserved instances for examples.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class ReservationAffinity (0.1.5)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.5 (latest)](/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.ReservationAffinity)\n- [0.1.4](/python/docs/reference/google-cloud-compute-v1beta/0.1.4/google.cloud.compute_v1beta.types.ReservationAffinity) \n\n ReservationAffinity(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nSpecifies the reservations that this instance can consume\nfrom.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e\n\nClasses\n-------\n\n### ConsumeReservationType\n\n ConsumeReservationType(value)\n\nSpecifies the type of reservation from which this instance can\nconsume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION,\nor NO_RESERVATION. See Consuming reserved instances for examples."]]