/// <summary> /// 更新机器组 /// </summary> /// <param name="hostGroup">机器组对象</param> /// <returns>Null</returns> public static async Task UpdateAsync(HostGroup hostGroup) { await ClsClient.Client.UpdateAsync("machinegroup", hostGroup); }
/// <summary> /// 创建机器组 /// </summary> /// <param name="hostGroup">机器组对象</param> /// <returns>机器组id</returns> public static async Task <string> CreateAsync(HostGroup hostGroup) { return((await ClsClient.Client.CreateAsync("machinegroup", hostGroup)).group_id); }