public sealed class ReservationAffinity : IMessage<ReservationAffinity>, IEquatable<ReservationAffinity>, IDeepCloneable<ReservationAffinity>, IBufferMessage, IMessage
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 "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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `ReservationAffinity` class in the `Google.Cloud.Container.V1` namespace defines the configuration for how instances can consume capacity from reservations, with the latest version being 3.33.0."],["The class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits from `Object`, providing it with various functionalities for message handling and object comparison."],["It has properties like `ConsumeReservationType`, `Key`, and `Values` that correspond to the type of reservation consumption, the label key, and the label value(s) of reservation resources, respectively."],["The class offers two constructors, a default one and another that takes a `ReservationAffinity` object, allowing for the creation of new instances and the cloning of existing ones."],["A wide array of versions are available for the class, from version 2.3.0 to the latest version 3.33.0, all in the same class of `ReservationAffinity`."]]],[]]