public sealed class ReservationAffinity : IMessage<ReservationAffinity>, IEquatable<ReservationAffinity>, IDeepCloneable<ReservationAffinity>, IBufferMessage, IMessage
Reference documentation and code samples for the AI Platform Notebooks v1 API class ReservationAffinity.
Reservation Affinity for consuming Zonal reservation.
[[["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-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eReservationAffinity\u003c/code\u003e class within the AI Platform Notebooks v1 API, specifically detailing its use in consuming zonal reservations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReservationAffinity\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role in handling message structures and data comparison.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors: a default constructor (\u003ccode\u003eReservationAffinity()\u003c/code\u003e) and a copy constructor (\u003ccode\u003eReservationAffinity(ReservationAffinity other)\u003c/code\u003e) for creating new instances or copies of the object.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eReservationAffinity\u003c/code\u003e includes three key properties: \u003ccode\u003eConsumeReservationType\u003c/code\u003e (specifying the type of reservation), \u003ccode\u003eKey\u003c/code\u003e (label key of the reservation resource), and \u003ccode\u003eValues\u003c/code\u003e (label values of the reservation resource).\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available in the content is \u003ccode\u003e2.5.0\u003c/code\u003e while \u003ccode\u003e2.4.0\u003c/code\u003e is the current version being described within this document, other previous versions are also accessible.\u003c/p\u003e\n"]]],[],null,[]]