internal static string ConvertTo(this HighAvailabilitySyncModes mode) { switch (mode) { case HighAvailabilitySyncModes.Manual: return("manual"); case HighAvailabilitySyncModes.Automatic: return("automatic"); default: throw new ArgumentOutOfRangeException(nameof(mode), mode, null); } }
public void SetHighAvailabilitySyncMode(HighAvailabilitySyncModes mode) { SetArg("ha-sync-mode", mode.ConvertTo()); }
public void SetHighAvailabilitySyncMode(HighAvailabilitySyncModes mode) { Validate("ha-sync-mode"); Arguments.Add("ha-sync-mode", mode.ConvertTo()); }