Esempio n. 1
0
        public void DeleteUDBInstanceTest()
        {
            var entity   = new DeleteUDBInstanceRequest(Config.region, dbid);
            var response = udb.DeleteUDBInstance(entity);

            Assert.AreEqual(response.RetCode, 0);
        }
Esempio n. 2
0
        /// <summary>
        /// 删除udb实例
        /// </summary>
        /// <param name="requestParams">请求参数.</param>
        /// <returns>返回对象<see cref="UCloudSDK.Models.DeleteUDBInstanceResponse"/></returns>
        public DeleteUDBInstanceResponse DeleteUDBInstance(DeleteUDBInstanceRequest requestParams)
        {
            var request = new RestRequest(Method.GET);

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