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 provides details for the \u003ccode\u003eAllocationAffinity\u003c/code\u003e class within the Google Cloud Backup and DR Service v1 API, focusing on version 1.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAllocationAffinity\u003c/code\u003e class, used to specify reservation consumption for instances, implements several interfaces including \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 class provides 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 type and details of the reservation being used.\u003c/p\u003e\n"],["\u003cp\u003eAvailable constructors for the \u003ccode\u003eAllocationAffinity\u003c/code\u003e class include a default constructor and one that accepts another \u003ccode\u003eAllocationAffinity\u003c/code\u003e instance for object duplication.\u003c/p\u003e\n"],["\u003cp\u003eThis class is found within the \u003ccode\u003eGoogle.Cloud.BackupDR.V1\u003c/code\u003e namespace and is part of the \u003ccode\u003eGoogle.Cloud.BackupDR.V1.dll\u003c/code\u003e assembly, with links to the documentation of prior versions of the class.\u003c/p\u003e\n"]]],[],null,[]]