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.
Enums
Name
Description
UNDEFINED_CONSUME_RESERVATION_TYPE
A value indicating that the enum field is not set.
ANY_RESERVATION
Consume any allocation available.
NO_RESERVATION
Do not consume from any allocated capacity.
SPECIFIC_RESERVATION
Must consume from a specific reservation. Must specify key value fields for specifying the reservations.
SPECIFIC_THEN_ANY_RESERVATION
Prefer to consume from a specific reservation, but still consume any reservation available if the specified reservation is not available or exhausted. Must specify key value fields for specifying the reservations.
SPECIFIC_THEN_NO_RESERVATION
Prefer to consume from a specific reservation, but still consume from the on-demand pool if the specified reservation is exhausted. Must specify key value fields for specifying the reservations.
[[["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 ConsumeReservationType (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.ConsumeReservationType)\n- [0.1.4](/python/docs/reference/google-cloud-compute-v1beta/0.1.4/google.cloud.compute_v1beta.types.ReservationAffinity.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."]]