예제 #1
0
        public void TestModifyInstanceSpec()
        {
            MongodbClient             mongodbClient = GetMongodbClient();
            ModifyInstanceSpecRequest request       = new ModifyInstanceSpecRequest();

            request.InstanceId        = "mongo-hfu1w2uhbc";
            request.RegionId          = "cn-north-1";
            request.InstanceStorageGB = 20;
            request.InstanceClass     = "mongo.s1.small";
            var response = mongodbClient.ModifyInstanceSpec(request).Result;

            _output.WriteLine(JsonConvert.SerializeObject(response));
        }
예제 #2
0
 /// <summary>
 ///  变更实例规格
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public async Task <ModifyInstanceSpecResponse> ModifyInstanceSpec(ModifyInstanceSpecRequest request)
 {
     return(await new ModifyInstanceSpecExecutor().Client(this).Execute <ModifyInstanceSpecResponse, ModifyInstanceSpecResult, ModifyInstanceSpecRequest>(request).ConfigureAwait(false));
 }
예제 #3
0
 /// <summary>
 ///  变更实例规格
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public ModifyInstanceSpecResponse ModifyInstanceSpec(ModifyInstanceSpecRequest request)
 {
     return(new ModifyInstanceSpecExecutor().Client(this).Execute <ModifyInstanceSpecResponse, ModifyInstanceSpecResult, ModifyInstanceSpecRequest>(request));
 }