aliyun-net-sdk-rds/Rds/Model/V20140815/ModifyDBInstanceSpecRequest.cs (433 lines of code) (raw):
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
using System.Collections.Generic;
using Newtonsoft.Json;
using Aliyun.Acs.Core;
using Aliyun.Acs.Core.Http;
using Aliyun.Acs.Core.Transform;
using Aliyun.Acs.Core.Utils;
using Aliyun.Acs.Rds.Transform;
using Aliyun.Acs.Rds.Transform.V20140815;
namespace Aliyun.Acs.Rds.Model.V20140815
{
public class ModifyDBInstanceSpecRequest : RpcAcsRequest<ModifyDBInstanceSpecResponse>
{
public ModifyDBInstanceSpecRequest()
: base("Rds", "2014-08-15", "ModifyDBInstanceSpec", "rds", "openAPI")
{
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
{
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.Rds.Endpoint.endpointMap, null);
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.Rds.Endpoint.endpointRegionalType, null);
}
Method = MethodType.POST;
}
private long? resourceOwnerId;
private int? dBInstanceStorage;
private string engineVersion;
private bool? autoUseCoupon;
private string ioAccelerationEnabled;
private bool? coldDataEnabled;
private string resourceGroupId;
private ServerlessConfiguration serverlessConfiguration_;
private string effectiveTime;
private string dBInstanceId;
private string switchTime;
private string dBInstanceStorageType;
private string sourceBiz;
private string dedicatedHostGroupId;
private string direction;
private string resourceOwnerAccount;
private string ownerAccount;
private long? ownerId;
private long? usedTime;
private bool? burstingEnabled;
private string targetMinorVersion;
private string dBInstanceClass;
private string zoneId;
private string category;
private string payType;
[JsonProperty(PropertyName = "ResourceOwnerId")]
public long? ResourceOwnerId
{
get
{
return resourceOwnerId;
}
set
{
resourceOwnerId = value;
DictionaryUtil.Add(QueryParameters, "ResourceOwnerId", value.ToString());
}
}
[JsonProperty(PropertyName = "DBInstanceStorage")]
public int? DBInstanceStorage
{
get
{
return dBInstanceStorage;
}
set
{
dBInstanceStorage = value;
DictionaryUtil.Add(QueryParameters, "DBInstanceStorage", value.ToString());
}
}
[JsonProperty(PropertyName = "EngineVersion")]
public string EngineVersion
{
get
{
return engineVersion;
}
set
{
engineVersion = value;
DictionaryUtil.Add(QueryParameters, "EngineVersion", value);
}
}
[JsonProperty(PropertyName = "AutoUseCoupon")]
public bool? AutoUseCoupon
{
get
{
return autoUseCoupon;
}
set
{
autoUseCoupon = value;
DictionaryUtil.Add(QueryParameters, "AutoUseCoupon", value.ToString());
}
}
[JsonProperty(PropertyName = "IoAccelerationEnabled")]
public string IoAccelerationEnabled
{
get
{
return ioAccelerationEnabled;
}
set
{
ioAccelerationEnabled = value;
DictionaryUtil.Add(QueryParameters, "IoAccelerationEnabled", value);
}
}
[JsonProperty(PropertyName = "ColdDataEnabled")]
public bool? ColdDataEnabled
{
get
{
return coldDataEnabled;
}
set
{
coldDataEnabled = value;
DictionaryUtil.Add(QueryParameters, "ColdDataEnabled", value.ToString());
}
}
[JsonProperty(PropertyName = "ResourceGroupId")]
public string ResourceGroupId
{
get
{
return resourceGroupId;
}
set
{
resourceGroupId = value;
DictionaryUtil.Add(QueryParameters, "ResourceGroupId", value);
}
}
[JsonProperty(PropertyName = "ServerlessConfiguration")]
public ServerlessConfiguration ServerlessConfiguration_
{
get
{
return serverlessConfiguration_;
}
set
{
serverlessConfiguration_ = value;
DictionaryUtil.Add(QueryParameters, "ServerlessConfiguration", JsonConvert.SerializeObject(value));
}
}
[JsonProperty(PropertyName = "EffectiveTime")]
public string EffectiveTime
{
get
{
return effectiveTime;
}
set
{
effectiveTime = value;
DictionaryUtil.Add(QueryParameters, "EffectiveTime", value);
}
}
[JsonProperty(PropertyName = "DBInstanceId")]
public string DBInstanceId
{
get
{
return dBInstanceId;
}
set
{
dBInstanceId = value;
DictionaryUtil.Add(QueryParameters, "DBInstanceId", value);
}
}
[JsonProperty(PropertyName = "SwitchTime")]
public string SwitchTime
{
get
{
return switchTime;
}
set
{
switchTime = value;
DictionaryUtil.Add(QueryParameters, "SwitchTime", value);
}
}
[JsonProperty(PropertyName = "DBInstanceStorageType")]
public string DBInstanceStorageType
{
get
{
return dBInstanceStorageType;
}
set
{
dBInstanceStorageType = value;
DictionaryUtil.Add(QueryParameters, "DBInstanceStorageType", value);
}
}
[JsonProperty(PropertyName = "SourceBiz")]
public string SourceBiz
{
get
{
return sourceBiz;
}
set
{
sourceBiz = value;
DictionaryUtil.Add(QueryParameters, "SourceBiz", value);
}
}
[JsonProperty(PropertyName = "DedicatedHostGroupId")]
public string DedicatedHostGroupId
{
get
{
return dedicatedHostGroupId;
}
set
{
dedicatedHostGroupId = value;
DictionaryUtil.Add(QueryParameters, "DedicatedHostGroupId", value);
}
}
[JsonProperty(PropertyName = "Direction")]
public string Direction
{
get
{
return direction;
}
set
{
direction = value;
DictionaryUtil.Add(QueryParameters, "Direction", value);
}
}
[JsonProperty(PropertyName = "ResourceOwnerAccount")]
public string ResourceOwnerAccount
{
get
{
return resourceOwnerAccount;
}
set
{
resourceOwnerAccount = value;
DictionaryUtil.Add(QueryParameters, "ResourceOwnerAccount", value);
}
}
[JsonProperty(PropertyName = "OwnerAccount")]
public string OwnerAccount
{
get
{
return ownerAccount;
}
set
{
ownerAccount = value;
DictionaryUtil.Add(QueryParameters, "OwnerAccount", value);
}
}
[JsonProperty(PropertyName = "OwnerId")]
public long? OwnerId
{
get
{
return ownerId;
}
set
{
ownerId = value;
DictionaryUtil.Add(QueryParameters, "OwnerId", value.ToString());
}
}
[JsonProperty(PropertyName = "UsedTime")]
public long? UsedTime
{
get
{
return usedTime;
}
set
{
usedTime = value;
DictionaryUtil.Add(QueryParameters, "UsedTime", value.ToString());
}
}
[JsonProperty(PropertyName = "BurstingEnabled")]
public bool? BurstingEnabled
{
get
{
return burstingEnabled;
}
set
{
burstingEnabled = value;
DictionaryUtil.Add(QueryParameters, "BurstingEnabled", value.ToString());
}
}
[JsonProperty(PropertyName = "TargetMinorVersion")]
public string TargetMinorVersion
{
get
{
return targetMinorVersion;
}
set
{
targetMinorVersion = value;
DictionaryUtil.Add(QueryParameters, "TargetMinorVersion", value);
}
}
[JsonProperty(PropertyName = "DBInstanceClass")]
public string DBInstanceClass
{
get
{
return dBInstanceClass;
}
set
{
dBInstanceClass = value;
DictionaryUtil.Add(QueryParameters, "DBInstanceClass", value);
}
}
[JsonProperty(PropertyName = "ZoneId")]
public string ZoneId
{
get
{
return zoneId;
}
set
{
zoneId = value;
DictionaryUtil.Add(QueryParameters, "ZoneId", value);
}
}
[JsonProperty(PropertyName = "Category")]
public string Category
{
get
{
return category;
}
set
{
category = value;
DictionaryUtil.Add(QueryParameters, "Category", value);
}
}
[JsonProperty(PropertyName = "PayType")]
public string PayType
{
get
{
return payType;
}
set
{
payType = value;
DictionaryUtil.Add(QueryParameters, "PayType", value);
}
}
public class ServerlessConfiguration
{
private double? minCapacity;
private double? maxCapacity;
private bool? autoPause;
private bool? switchForce;
[JsonProperty(PropertyName = "MinCapacity")]
public double? MinCapacity
{
get
{
return minCapacity;
}
set
{
minCapacity = value;
}
}
[JsonProperty(PropertyName = "MaxCapacity")]
public double? MaxCapacity
{
get
{
return maxCapacity;
}
set
{
maxCapacity = value;
}
}
[JsonProperty(PropertyName = "AutoPause")]
public bool? AutoPause
{
get
{
return autoPause;
}
set
{
autoPause = value;
}
}
[JsonProperty(PropertyName = "SwitchForce")]
public bool? SwitchForce
{
get
{
return switchForce;
}
set
{
switchForce = value;
}
}
}
public override ModifyDBInstanceSpecResponse GetResponse(UnmarshallerContext unmarshallerContext)
{
return ModifyDBInstanceSpecResponseUnmarshaller.Unmarshall(unmarshallerContext);
}
}
}