/// <summary> /// Read Health /// </summary> private static void ReadHealth() { var operatorAutopilotGovern = new OperatorAutopilotGovern(); var result = operatorAutopilotGovern.ReadHealth(new ReadHealthParmeter { DC = "dc1" }).GetAwaiter().GetResult(); Console.WriteLine($"back content={EntityToString(result)}"); }
/// <summary> /// Read Configuration /// </summary> private static void AutopilotReadConfiguration() { var operatorAutopilotGovern = new OperatorAutopilotGovern(); var result = operatorAutopilotGovern.ReadConfiguration(new ReadConfigurationParmeter { DC = "dc1", Stale = true }).GetAwaiter().GetResult(); Console.WriteLine($"back content={EntityToString(result)}"); }
/// <summary> /// Update Configuration /// </summary> private static void UpdateConfiguration() { var operatorAutopilotGovern = new OperatorAutopilotGovern(); var result = operatorAutopilotGovern.UpdateConfiguration(new UpdateConfigurationParmeter { DC = "dc1", UpgradeVersionTag = "1a" }).GetAwaiter().GetResult(); Console.WriteLine($"result={result.result}"); Console.WriteLine($"back content={EntityToString(result.jsonContent)}"); }