public sealed class ReservationAffinity : IMessage<ReservationAffinity>, IEquatable<ReservationAffinity>, IDeepCloneable<ReservationAffinity>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Kubernetes Engine v1 API class ReservationAffinity.
ReservationAffinity
is the configuration of desired reservation which instances could take
capacity from.
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.
[[["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-07 UTC."],[[["\u003cp\u003eThe latest version available for the \u003ccode\u003eReservationAffinity\u003c/code\u003e class in the Google Kubernetes Engine v1 API is version 3.33.0, with multiple previous versions ranging from 3.32.0 to 2.3.0 also accessible.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eReservationAffinity\u003c/code\u003e is a class that configures the desired reservation from which instances can take capacity and is documented for version 3.9.0, which implements several interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReservationAffinity\u003c/code\u003e class has properties such as \u003ccode\u003eConsumeReservationType\u003c/code\u003e, \u003ccode\u003eKey\u003c/code\u003e, and \u003ccode\u003eValues\u003c/code\u003e, which determine the type of reservation consumption, the reservation resource label key, and the label values, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for creating a \u003ccode\u003eReservationAffinity\u003c/code\u003e object: a default constructor and a constructor that takes another \u003ccode\u003eReservationAffinity\u003c/code\u003e object as a parameter for creating a copy.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation is part of the Google Cloud .NET client library, specifically within the \u003ccode\u003eGoogle.Cloud.Container.V1\u003c/code\u003e namespace, and the corresponding assembly is \u003ccode\u003eGoogle.Cloud.Container.V1.dll\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]