public sealed class SoleTenancyPreferences : IMessage<SoleTenancyPreferences>, IEquatable<SoleTenancyPreferences>, IDeepCloneable<SoleTenancyPreferences>, IBufferMessage, IMessage
Reference documentation and code samples for the Migration Center v1 API class SoleTenancyPreferences.
Preferences concerning Sole Tenancy nodes and VMs.
public SoleTenancyPreferences.Types.CommitmentPlan CommitmentPlan { get; set; }
Commitment plan to consider when calculating costs for virtual machine
insights and recommendations.
If you are unsure which value to set, a 3 year commitment plan is often a
good value to start with.
[[["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 is for the \u003ccode\u003eSoleTenancyPreferences\u003c/code\u003e class within the Google Cloud Migration Center v1 API, specifically version 1.0.0, and it outlines how to configure preferences for Sole Tenancy nodes and VMs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSoleTenancyPreferences\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and 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, defining its behavior and capabilities.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides properties like \u003ccode\u003eCommitmentPlan\u003c/code\u003e, \u003ccode\u003eCpuOvercommitRatio\u003c/code\u003e, \u003ccode\u003eHostMaintenancePolicy\u003c/code\u003e, and \u003ccode\u003eNodeTypes\u003c/code\u003e to set specific preferences for sole tenancy, including commitment duration, CPU overcommit ratio, node maintenance policy, and a list of preferred node types.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for the \u003ccode\u003eSoleTenancyPreferences\u003c/code\u003e class, one is a default constructor, and the second can take another \u003ccode\u003eSoleTenancyPreferences\u003c/code\u003e object to create a new object of the same value.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for \u003ccode\u003eSoleTenancyPreferences\u003c/code\u003e is 1.4.0, and the documentation lists prior versions including 1.3.0, 1.2.0, 1.1.0, and the current version 1.0.0, for reference.\u003c/p\u003e\n"]]],[],null,[]]