public sealed class AllocationAffinity : IMessage<AllocationAffinity>, IEquatable<AllocationAffinity>, IDeepCloneable<AllocationAffinity>, IBufferMessage, IMessage
Reference documentation and code samples for the Backup and DR Service v1 API class AllocationAffinity.
Specifies the reservations that this instance can consume from.
[[["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\u003eThis documentation covers the \u003ccode\u003eAllocationAffinity\u003c/code\u003e class within the Google Cloud Backup and DR Service v1 API, specifically version 2.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAllocationAffinity\u003c/code\u003e class specifies the reservation types from which an instance can consume, and it implements multiple interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAllocationAffinity\u003c/code\u003e includes properties such as \u003ccode\u003eConsumeAllocationType\u003c/code\u003e, \u003ccode\u003eHasConsumeAllocationType\u003c/code\u003e, \u003ccode\u003eHasKey\u003c/code\u003e, \u003ccode\u003eKey\u003c/code\u003e, and \u003ccode\u003eValues\u003c/code\u003e to define the specifics of the reservation usage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAllocationAffinity\u003c/code\u003e class has two constructors: a parameterless constructor and one that takes another \u003ccode\u003eAllocationAffinity\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThere are other previous versions of the API listed, such as 2.1.0, 1.2.0, 1.1.0 and 1.0.0-beta02, which users can access by clicking on the version links provided.\u003c/p\u003e\n"]]],[],null,[]]