/*
* 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 CreateDBInstanceHourRequest : AbstractModel
{
///
/// 实例内存大小,单位:GB
///
[JsonProperty("Memory")]
public ulong? Memory{ get; set; }
///
/// 实例硬盘大小,单位:GB
///
[JsonProperty("Volume")]
public ulong? Volume{ get; set; }
///
/// 副本集个数,1为单副本集实例,大于1为分片集群实例,最大不超过10
///
[JsonProperty("ReplicateSetNum")]
public ulong? ReplicateSetNum{ get; set; }
///
/// 每个副本集内从节点个数,目前只支持从节点数为2
///
[JsonProperty("SecondaryNum")]
public ulong? SecondaryNum{ get; set; }
///
/// MongoDB引擎版本,值包括MONGO_3_WT 、MONGO_3_ROCKS和MONGO_36_WT
///
[JsonProperty("EngineVersion")]
public string EngineVersion{ get; set; }
///
/// 实例类型,GIO:高IO版;TGIO:高IO万兆
///
[JsonProperty("Machine")]
public string Machine{ get; set; }
///
/// 实例数量,默认值为1, 最小值1,最大值为10
///
[JsonProperty("GoodsNum")]
public ulong? GoodsNum{ get; set; }
///
/// 可用区信息,格式如:ap-guangzhou-2
///
[JsonProperty("Zone")]
public string Zone{ get; set; }
///
/// 实例角色,支持值包括:MASTER-表示主实例,DR-表示灾备实例,RO-表示只读实例
///
[JsonProperty("InstanceRole")]
public string InstanceRole{ get; set; }
///
/// 实例类型,REPLSET-副本集,SHARD-分片集群
///
[JsonProperty("InstanceType")]
public string InstanceType{ get; set; }
///
/// 数据是否加密,当且仅当引擎版本为MONGO_3_ROCKS,可以选择加密
///
[JsonProperty("Encrypt")]
public ulong? Encrypt{ get; set; }
///
/// 私有网络ID,如果不传则默认选择基础网络
///
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
///
/// 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填
///
[JsonProperty("SubnetId")]
public string SubnetId{ get; set; }
///
/// 项目ID,不填为默认项目
///
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
///
/// 安全组参数
///
[JsonProperty("SecurityGroup")]
public string[] SecurityGroup{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "Memory", this.Memory);
this.SetParamSimple(map, prefix + "Volume", this.Volume);
this.SetParamSimple(map, prefix + "ReplicateSetNum", this.ReplicateSetNum);
this.SetParamSimple(map, prefix + "SecondaryNum", this.SecondaryNum);
this.SetParamSimple(map, prefix + "EngineVersion", this.EngineVersion);
this.SetParamSimple(map, prefix + "Machine", this.Machine);
this.SetParamSimple(map, prefix + "GoodsNum", this.GoodsNum);
this.SetParamSimple(map, prefix + "Zone", this.Zone);
this.SetParamSimple(map, prefix + "InstanceRole", this.InstanceRole);
this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.SetParamSimple(map, prefix + "Encrypt", this.Encrypt);
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamArraySimple(map, prefix + "SecurityGroup.", this.SecurityGroup);
}
}
}