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); }
public static string ToSerialString(this ComputeNodeRebootOption value) => value switch {