/* * 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.V20190725.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class InquirePriceCreateDBInstancesRequest : AbstractModel { /// /// 实例所属区域名称,格式如:ap-guangzhou-2 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// 每个副本集内节点个数,当前副本集节点数固定为3,分片从节点数可选,具体参照查询云数据库的售卖规格返回参数 /// [JsonProperty("NodeNum")] public long? NodeNum{ get; set; } /// /// 实例内存大小,单位:GB /// [JsonProperty("Memory")] public long? Memory{ get; set; } /// /// 实例硬盘大小,单位:GB /// [JsonProperty("Volume")] public long? Volume{ get; set; } /// /// 版本号,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。参数与版本对应关系是MONGO_3_WT:MongoDB 3.2 WiredTiger存储引擎版本,MONGO_3_ROCKS:MongoDB 3.2 RocksDB存储引擎版本,MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本,MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本 /// [JsonProperty("MongoVersion")] public string MongoVersion{ get; set; } /// /// 机器类型,HIO:高IO型;HIO10G:高IO万兆型;STDS5:标准型 /// [JsonProperty("MachineCode")] public string MachineCode{ get; set; } /// /// 实例数量, 最小值1,最大值为10 /// [JsonProperty("GoodsNum")] public long? GoodsNum{ get; set; } /// /// 实例时长,单位:月,可选值包括[1,2,3,4,5,6,7,8,9,10,11,12,24,36] /// [JsonProperty("Period")] public long? Period{ get; set; } /// /// 实例类型,REPLSET-副本集,SHARD-分片集群,STANDALONE-单节点 /// [JsonProperty("ClusterType")] public string ClusterType{ get; set; } /// /// 副本集个数,创建副本集实例时,该参数必须设置为1;创建分片实例时,具体参照查询云数据库的售卖规格返回参数;若为单节点实例,该参数设置为0 /// [JsonProperty("ReplicateSetNum")] public long? ReplicateSetNum{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Zone", this.Zone); this.SetParamSimple(map, prefix + "NodeNum", this.NodeNum); 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 + "Period", this.Period); this.SetParamSimple(map, prefix + "ClusterType", this.ClusterType); this.SetParamSimple(map, prefix + "ReplicateSetNum", this.ReplicateSetNum); } } }