128 lines
4.3 KiB
C#
128 lines
4.3 KiB
C#
|
|
/*
|
|||
|
|
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|||
|
|
*
|
|||
|
|
* Licensed 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.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
namespace TencentCloud.Mongodb.V20180408.Models
|
|||
|
|
{
|
|||
|
|
using Newtonsoft.Json;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using TencentCloud.Common;
|
|||
|
|
|
|||
|
|
public class CreateDBInstanceRequest : AbstractModel
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 每个副本集内从节点个数
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("SecondaryNum")]
|
|||
|
|
public ulong? SecondaryNum{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例内存大小,单位:GB
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Memory")]
|
|||
|
|
public ulong? Memory{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例硬盘大小,单位:GB
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Volume")]
|
|||
|
|
public ulong? Volume{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 版本号,当前支持 MONGO_3_WT、MONGO_3_ROCKS、MONGO_36_WT
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MongoVersion")]
|
|||
|
|
public string MongoVersion{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 机器类型,GIO:高IO版;TGIO:高IO万兆
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MachineCode")]
|
|||
|
|
public string MachineCode{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例数量,默认值为1, 最小值1,最大值为10
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("GoodsNum")]
|
|||
|
|
public ulong? GoodsNum{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例所属区域名称,格式如:ap-guangzhou-2
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Zone")]
|
|||
|
|
public string Zone{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 时长,购买月数
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("TimeSpan")]
|
|||
|
|
public ulong? TimeSpan{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例密码
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Password")]
|
|||
|
|
public string Password{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 项目ID,不填为默认项目
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ProjectId")]
|
|||
|
|
public ulong? ProjectId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 安全组参数
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("SecurityGroup")]
|
|||
|
|
public string[] SecurityGroup{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 私有网络ID,如果不传则默认选择基础网络
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("UniqVpcId")]
|
|||
|
|
public string UniqVpcId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("UniqSubnetId")]
|
|||
|
|
public string UniqSubnetId{ get; set; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// For internal usage only. DO NOT USE IT.
|
|||
|
|
/// </summary>
|
|||
|
|
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
|||
|
|
{
|
|||
|
|
this.SetParamSimple(map, prefix + "SecondaryNum", this.SecondaryNum);
|
|||
|
|
this.SetParamSimple(map, prefix + "Memory", this.Memory);
|
|||
|
|
this.SetParamSimple(map, prefix + "Volume", this.Volume);
|
|||
|
|
this.SetParamSimple(map, prefix + "MongoVersion", this.MongoVersion);
|
|||
|
|
this.SetParamSimple(map, prefix + "MachineCode", this.MachineCode);
|
|||
|
|
this.SetParamSimple(map, prefix + "GoodsNum", this.GoodsNum);
|
|||
|
|
this.SetParamSimple(map, prefix + "Zone", this.Zone);
|
|||
|
|
this.SetParamSimple(map, prefix + "TimeSpan", this.TimeSpan);
|
|||
|
|
this.SetParamSimple(map, prefix + "Password", this.Password);
|
|||
|
|
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
|
|||
|
|
this.SetParamArraySimple(map, prefix + "SecurityGroup.", this.SecurityGroup);
|
|||
|
|
this.SetParamSimple(map, prefix + "UniqVpcId", this.UniqVpcId);
|
|||
|
|
this.SetParamSimple(map, prefix + "UniqSubnetId", this.UniqSubnetId);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|