Ejemplo n.º 1
0
        internal static string ToSerializedValue(this DeallocationOption value)
        {
            switch (value)
            {
            case DeallocationOption.Requeue:
                return("requeue");

            case DeallocationOption.Terminate:
                return("terminate");

            case DeallocationOption.Waitforjobcompletion:
                return("waitforjobcompletion");

            case DeallocationOption.Unknown:
                return("unknown");
            }
            return(null);
        }
 /// <summary>
 /// Initializes a new instance of the ManualScaleSettings class.
 /// </summary>
 /// <param name="targetNodeCount">Target node count.</param>
 /// <param name="nodeDeallocationOption">Node deallocation
 /// options.</param>
 public ManualScaleSettings(int targetNodeCount, DeallocationOption nodeDeallocationOption = default(DeallocationOption))
 {
     TargetNodeCount        = targetNodeCount;
     NodeDeallocationOption = nodeDeallocationOption;
     CustomInit();
 }