/// <summary> /// 重命名UDisk /// </summary> /// <param name="requestParams">请求参数.</param> /// <returns>返回对象<see cref="UCloudSDK.Models.RenameUDiskResponse"/></returns> public RenameUDiskResponse RenameUDisk(RenameUDiskRequest requestParams) { var request = new RestRequest(Method.GET); request.AddUObject(requestParams); return(Execute <RenameUDiskResponse>(request)); }
public void RenameUDiskTest() { //TODO:估计Action错误,RetCode=150 Message=Service unavailable var entity = new RenameUDiskRequest(Config.region, uDiskId, "icynewdisk"); var response = udisk.RenameUDisk(entity); Assert.Fail(); Assert.AreEqual(response.RetCode, 0); }