/* * 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 { /// /// 每个副本集内从节点个数 /// [JsonProperty("SecondaryNum")] public ulong? SecondaryNum{ get; set; } /// /// 实例内存大小,单位:GB /// [JsonProperty("Memory")] public ulong? Memory{ get; set; } /// /// 实例硬盘大小,单位:GB /// [JsonProperty("Volume")] public ulong? Volume{ get; set; } /// /// 版本号,当前支持 MONGO_3_WT、MONGO_3_ROCKS、MONGO_36_WT /// [JsonProperty("MongoVersion")] public string MongoVersion{ get; set; } /// /// 机器类型,GIO:高IO版;TGIO:高IO万兆 /// [JsonProperty("MachineCode")] public string MachineCode{ get; set; } /// /// 实例数量,默认值为1, 最小值1,最大值为10 /// [JsonProperty("GoodsNum")] public ulong? GoodsNum{ get; set; } /// /// 实例所属区域名称,格式如:ap-guangzhou-2 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// 时长,购买月数 /// [JsonProperty("TimeSpan")] public ulong? TimeSpan{ get; set; } /// /// 实例密码 /// [JsonProperty("Password")] public string Password{ get; set; } /// /// 项目ID,不填为默认项目 /// [JsonProperty("ProjectId")] public ulong? ProjectId{ get; set; } /// /// 安全组参数 /// [JsonProperty("SecurityGroup")] public string[] SecurityGroup{ get; set; } /// /// 私有网络ID,如果不传则默认选择基础网络 /// [JsonProperty("UniqVpcId")] public string UniqVpcId{ get; set; } /// /// 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填 /// [JsonProperty("UniqSubnetId")] public string UniqSubnetId{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary 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); } } }