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

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