Exemplo n.º 1
0
        public void DescribeUDiskPriceTest()
        {
            var entity   = new DescribeUDiskPriceRequest(Config.region, 200);
            var response = udisk.DescribeUDiskPrice(entity);

            Assert.AreEqual(response.RetCode, 0);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取udisk实例价格信息
        /// </summary>
        /// <param name="requestParams">请求参数.</param>
        /// <returns>返回对象<see cref="UCloudSDK.Models.DescribeUDiskPriceResponse"/></returns>
        public DescribeUDiskPriceResponse DescribeUDiskPrice(DescribeUDiskPriceRequest requestParams)
        {
            var request = new RestRequest(Method.GET);

            request.AddUObject(requestParams);
            return(Execute <DescribeUDiskPriceResponse>(request));
        }