Esempio n. 1
0
        /// <summary>
        /// 获取udb实例信息
        /// </summary>
        /// <param name="requestParams">请求参数.</param>
        /// <returns>返回对象<see cref="UCloudSDK.Models.DescribeUDBInstanceResponse"/></returns>
        public DescribeUDBInstanceResponse DescribeUDBInstance(DescribeUDBInstanceRequest requestParams)
        {
            var request = new RestRequest(Method.GET);

            request.AddUObject(requestParams);
            return(Execute <DescribeUDBInstanceResponse>(request));
        }
Esempio n. 2
0
        public void DescribeUDBInstanceTest()
        {
            var entity = new DescribeUDBInstanceRequest(Config.region);

            entity.Offset    = 0;
            entity.Limit     = 20;
            entity.ClassType = UDBClassType.SQL.ToString();
            var response = udb.DescribeUDBInstance(entity);

            Assert.AreEqual(response.RetCode, 0);
        }