[[["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\u003eThe latest version of the \u003ccode\u003eSchedulingNodeAffinity\u003c/code\u003e class in the VM Migration v1 API is 2.6.0, and previous versions are available for reference as well.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSchedulingNodeAffinity\u003c/code\u003e is a class that configures the desired nodes onto which a VM instance can be scheduled, based on Google Cloud's compute documentation.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from the base \u003ccode\u003eobject\u003c/code\u003e class and 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\u003e\u003ccode\u003eSchedulingNodeAffinity\u003c/code\u003e has properties such as \u003ccode\u003eKey\u003c/code\u003e, \u003ccode\u003eOperator\u003c/code\u003e, and \u003ccode\u003eValues\u003c/code\u003e, which allow specification of node label keys, operators, and associated label values for VM scheduling.\u003c/p\u003e\n"],["\u003cp\u003eIt has two constructors, one empty and another that takes a \u003ccode\u003eSchedulingNodeAffinity\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,["# VM Migration v1 API - Class SchedulingNodeAffinity (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.SchedulingNodeAffinity)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.5.0/Google.Cloud.VMMigration.V1.SchedulingNodeAffinity)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.4.0/Google.Cloud.VMMigration.V1.SchedulingNodeAffinity)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.3.0/Google.Cloud.VMMigration.V1.SchedulingNodeAffinity)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.2.0/Google.Cloud.VMMigration.V1.SchedulingNodeAffinity)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.1.0/Google.Cloud.VMMigration.V1.SchedulingNodeAffinity)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.0.0/Google.Cloud.VMMigration.V1.SchedulingNodeAffinity)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/1.0.0/Google.Cloud.VMMigration.V1.SchedulingNodeAffinity) \n\n public sealed class SchedulingNodeAffinity : IMessage\u003cSchedulingNodeAffinity\u003e, IEquatable\u003cSchedulingNodeAffinity\u003e, IDeepCloneable\u003cSchedulingNodeAffinity\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the VM Migration v1 API class SchedulingNodeAffinity.\n\nNode Affinity: the configuration of desired nodes onto which this Instance\ncould be scheduled. Based on\n\u003chttps://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling\u003e \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SchedulingNodeAffinity \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SchedulingNodeAffinity](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.SchedulingNodeAffinity), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SchedulingNodeAffinity](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.SchedulingNodeAffinity), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SchedulingNodeAffinity](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.SchedulingNodeAffinity), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.VMMigration.V1](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.VMMigration.V1.dll\n\nConstructors\n------------\n\n### SchedulingNodeAffinity()\n\n public SchedulingNodeAffinity()\n\n### SchedulingNodeAffinity(SchedulingNodeAffinity)\n\n public SchedulingNodeAffinity(SchedulingNodeAffinity other)\n\nProperties\n----------\n\n### Key\n\n public string Key { get; set; }\n\nThe label key of Node resource to reference.\n\n### Operator\n\n public SchedulingNodeAffinity.Types.Operator Operator { get; set; }\n\nThe operator to use for the node resources specified in the `values`\nparameter.\n\n### Values\n\n public RepeatedField\u003cstring\u003e Values { get; }\n\nCorresponds to the label values of Node resource."]]