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