/*
* 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 CreateDBInstanceRequest : AbstractModel
{
///
/// 每个副本集内节点个数,当前副本集节点数固定为3,分片从节点数可选,具体参照查询云数据库的售卖规格返回参数
///
[JsonProperty("NodeNum")]
public ulong? NodeNum{ get; set; }
///
/// 实例内存大小,单位:GB
///
[JsonProperty("Memory")]
public ulong? Memory{ get; set; }
///
/// 实例硬盘大小,单位:GB
///
[JsonProperty("Volume")]
public ulong? 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存储引擎版本
///
[JsonProperty("MongoVersion")]
public string MongoVersion{ get; set; }
///
/// 实例数量, 最小值1,最大值为10
///
[JsonProperty("GoodsNum")]
public ulong? GoodsNum{ get; set; }
///
/// 实例所属区域名称,格式如:ap-guangzhou-2
///
[JsonProperty("Zone")]
public string Zone{ get; set; }
///
/// 实例时长,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]
///
[JsonProperty("Period")]
public ulong? Period{ get; set; }
///
/// 机器类型,HIO:高IO型;HIO10G:高IO万兆型
///
[JsonProperty("MachineCode")]
public string MachineCode{ get; set; }
///
/// 实例类型,REPLSET-副本集,SHARD-分片集群
///
[JsonProperty("ClusterType")]
public string ClusterType{ get; set; }
///
/// 副本集个数,创建副本集实例时,该参数必须设置为1;创建分片实例时,具体参照查询云数据库的售卖规格返回参数
///
[JsonProperty("ReplicateSetNum")]
public ulong? ReplicateSetNum{ get; set; }
///
/// 项目ID,不设置为默认项目
///
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
///
/// 私有网络 ID,如果不传则默认选择基础网络,请使用 查询私有网络列表
///
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
///
/// 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 查询子网列表
///
[JsonProperty("SubnetId")]
public string SubnetId{ get; set; }
///
/// 实例密码,不设置该参数则需要在创建完成后通过设置密码接口初始化实例密码。密码必须是8-16位字符,且至少包含字母、数字和字符 !@#%^*() 中的两种
///
[JsonProperty("Password")]
public string Password{ get; set; }
///
/// 实例标签信息
///
[JsonProperty("Tags")]
public TagInfo[] Tags{ get; set; }
///
/// 自动续费标记,可选值为:0 - 不自动续费;1 - 自动续费。默认为不自动续费
///
[JsonProperty("AutoRenewFlag")]
public ulong? AutoRenewFlag{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
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 + "GoodsNum", this.GoodsNum);
this.SetParamSimple(map, prefix + "Zone", this.Zone);
this.SetParamSimple(map, prefix + "Period", this.Period);
this.SetParamSimple(map, prefix + "MachineCode", this.MachineCode);
this.SetParamSimple(map, prefix + "ClusterType", this.ClusterType);
this.SetParamSimple(map, prefix + "ReplicateSetNum", this.ReplicateSetNum);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.SetParamSimple(map, prefix + "Password", this.Password);
this.SetParamArrayObj(map, prefix + "Tags.", this.Tags);
this.SetParamSimple(map, prefix + "AutoRenewFlag", this.AutoRenewFlag);
}
}
}