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"]],[["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 latest version of the Google Cloud Container V1 API is 3.33.0, with a range of previous versions available from 3.32.0 down to 2.3.0, allowing for access to specific version documentation."],["The `ReservationAffinity` class, part of the `Google.Cloud.Container.V1` namespace, configures the desired reservation from which instances can draw capacity, as referenced in the [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) documentation."],["`ReservationAffinity` implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits members from the base `object` class, offering various functionalities."],["The `ReservationAffinity` class includes properties such as `ConsumeReservationType`, `Key`, and `Values`, which define the type, key, and values related to reservation consumption."],["`ReservationAffinity` has two constructors; one is the default, and the other is used for copy constructors, taking another `ReservationAffinity` object as a parameter."]]],[]]