[Output Only] Absolute value of VM instances calculated based on the specific mode. - If the value is fixed, then the calculated value is equal to the fixed value. - If the value is a percent, then the calculated value is percent/100 * targetSize. For example, the calculated value of a 80% of a managed instance group with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, the number is rounded.
[[["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-08 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eFixedOrPercent\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace, detailing its usage in managing VM instance numbers, either as absolute values or percentages.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFixedOrPercent\u003c/code\u003e class, which can be found in various versions of the \u003ccode\u003e.NET\u003c/code\u003e library from version \u003ccode\u003e1.0.0\u003c/code\u003e to the latest version \u003ccode\u003e3.6.0\u003c/code\u003e, implements interfaces like \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 allows setting a fixed number of VM instances via the \u003ccode\u003eFixed\u003c/code\u003e property, or specifying a percentage of instances through the \u003ccode\u003ePercent\u003c/code\u003e property, both of which are integer types.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCalculated\u003c/code\u003e property, an output-only field, shows the resulting number of VM instances based on whether \u003ccode\u003eFixed\u003c/code\u003e or \u003ccode\u003ePercent\u003c/code\u003e was used, and has fields that check whether \u003ccode\u003ecalculated\u003c/code\u003e, \u003ccode\u003efixed\u003c/code\u003e, or \u003ccode\u003epercent\u003c/code\u003e have been set.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one parameterless and one where you can pass a copy of the \u003ccode\u003eFixedOrPercent\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,[]]