internal static string ToSerializedValue(this RollingUpgradeStatusCode value) { switch (value) { case RollingUpgradeStatusCode.RollingForward: return("RollingForward"); case RollingUpgradeStatusCode.Cancelled: return("Cancelled"); case RollingUpgradeStatusCode.Completed: return("Completed"); case RollingUpgradeStatusCode.Faulted: return("Faulted"); } return(null); }
public static string ToSerialString(this RollingUpgradeStatusCode value) => value switch {