Exemplo n.º 1
0
        public void RestartUDBInstanceTest()
        {
            var entity   = new RestartUDBInstanceRequest(Config.region, dbid);
            var response = udb.RestartUDBInstance(entity);

            Assert.AreEqual(response.RetCode, 0);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 重启udb实例
        /// </summary>
        /// <param name="requestParams">请求参数.</param>
        /// <returns>返回对象<see cref="UCloudSDK.Models.RestartUDBInstanceResponse"/></returns>
        public RestartUDBInstanceResponse RestartUDBInstance(RestartUDBInstanceRequest requestParams)
        {
            var request = new RestRequest(Method.GET);

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