/// <summary> /// 重新安装指定UHost实例的操作系统 /// </summary> /// <param name="requestParams">请求参数.</param> /// <returns>返回对象<see cref="UCloudSDK.Models.ReinstallUHostInstanceResponse"/></returns> public ReinstallUHostInstanceResponse ReinstallUHostInstance(ReinstallUHostInstanceRequest requestParams) { var request = new RestRequest(Method.GET); request.AddUObject(requestParams); return(Execute <ReinstallUHostInstanceResponse>(request)); }
public void ReinstallUHostInstanceTest() { //先关闭UHost再进行些测试 var entity = new ReinstallUHostInstanceRequest(Config.region, Config.UhostId); entity.Password = "******"; var response = uhost.ReinstallUHostInstance(entity); Assert.AreEqual(response.RetCode, 0); }