Пример #1
0
 /// <summary>
 /// 更新机器组
 /// </summary>
 /// <param name="hostGroup">机器组对象</param>
 /// <returns>Null</returns>
 public static async Task UpdateAsync(HostGroup hostGroup)
 {
     await ClsClient.Client.UpdateAsync("machinegroup", hostGroup);
 }
Пример #2
0
 /// <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);
 }