public void DescribeUDiskTest() { var entity = new DescribeUDiskRequest(Config.region); var response = udisk.DescribeUDisk(entity); Assert.AreEqual(response.RetCode, 0); }
/// <summary> /// 获取UDisk实例 /// </summary> /// <param name="requestParams">请求参数.</param> /// <returns>返回对象<see cref="UCloudSDK.Models.DescribeUDiskResponse"/></returns> public DescribeUDiskResponse DescribeUDisk(DescribeUDiskRequest requestParams) { var request = new RestRequest(Method.GET); request.AddUObject(requestParams); return(Execute <DescribeUDiskResponse>(request)); }