public sealed class ReservationAffinity : IMessage<ReservationAffinity>, IEquatable<ReservationAffinity>, IDeepCloneable<ReservationAffinity>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class ReservationAffinity.
Specifies the reservations that this instance can consume from.
public string ConsumeReservationType { get; set; }
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.
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.
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.
[[["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-08 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eReservationAffinity\u003c/code\u003e class within the Google Compute Engine v1 API, specifically version 2.8.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReservationAffinity\u003c/code\u003e class is used to specify the reservations from which an instance can consume resources, as documented by inheritance, implementation, and specification details.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API is documented as 3.6.0, with a total of 29 listed versions between 1.0.0 and 3.6.0, and with version 2.8.0 as the one specifically detailed in the given content.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReservationAffinity\u003c/code\u003e class includes properties like \u003ccode\u003eConsumeReservationType\u003c/code\u003e, \u003ccode\u003eHasConsumeReservationType\u003c/code\u003e, \u003ccode\u003eHasKey\u003c/code\u003e, \u003ccode\u003eKey\u003c/code\u003e, and \u003ccode\u003eValues\u003c/code\u003e, which are used to configure how instances interact with reservations.\u003c/p\u003e\n"],["\u003cp\u003eThe document contains information on the \u003ccode\u003eReservationAffinity\u003c/code\u003e class' constructors, properties, the various types associated with it, and its place within the Google Compute Engine V1 API's namespace and assembly.\u003c/p\u003e\n"]]],[],null,[]]