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

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

            case ComputeNodeRebootOption.TaskCompletion:
                return("taskcompletion");

            case ComputeNodeRebootOption.RetainedData:
                return("retaineddata");
            }
            return(null);
        }
Esempio n. 2
0
 public static string ToSerialString(this ComputeNodeRebootOption value) => value switch
 {