Files
g.hnyhua.cn/TencentCloud/Mongodb/V20180408/Models/CreateDBInstanceHourRequest.cs
2026-02-07 15:48:27 +08:00

142 lines
5.1 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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);
}
}
}