107 lines
4.2 KiB
C#
107 lines
4.2 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.V20190725.Models
|
|||
|
|
{
|
|||
|
|
using Newtonsoft.Json;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using TencentCloud.Common;
|
|||
|
|
|
|||
|
|
public class InquirePriceCreateDBInstancesRequest : AbstractModel
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例所属区域名称,格式如:ap-guangzhou-2
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Zone")]
|
|||
|
|
public string Zone{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 每个副本集内节点个数,当前副本集节点数固定为3,分片从节点数可选,具体参照查询云数据库的售卖规格返回参数
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("NodeNum")]
|
|||
|
|
public long? NodeNum{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例内存大小,单位:GB
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Memory")]
|
|||
|
|
public long? Memory{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例硬盘大小,单位:GB
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Volume")]
|
|||
|
|
public long? Volume{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 版本号,具体支持的售卖版本请参照查询云数据库的售卖规格(DescribeSpecInfo)返回结果。参数与版本对应关系是MONGO_3_WT:MongoDB 3.2 WiredTiger存储引擎版本,MONGO_3_ROCKS:MongoDB 3.2 RocksDB存储引擎版本,MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本,MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MongoVersion")]
|
|||
|
|
public string MongoVersion{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 机器类型,HIO:高IO型;HIO10G:高IO万兆型;STDS5:标准型
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MachineCode")]
|
|||
|
|
public string MachineCode{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例数量, 最小值1,最大值为10
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("GoodsNum")]
|
|||
|
|
public long? GoodsNum{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例时长,单位:月,可选值包括[1,2,3,4,5,6,7,8,9,10,11,12,24,36]
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Period")]
|
|||
|
|
public long? Period{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 实例类型,REPLSET-副本集,SHARD-分片集群,STANDALONE-单节点
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ClusterType")]
|
|||
|
|
public string ClusterType{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 副本集个数,创建副本集实例时,该参数必须设置为1;创建分片实例时,具体参照查询云数据库的售卖规格返回参数;若为单节点实例,该参数设置为0
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ReplicateSetNum")]
|
|||
|
|
public long? ReplicateSetNum{ 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 + "Zone", this.Zone);
|
|||
|
|
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 + "MachineCode", this.MachineCode);
|
|||
|
|
this.SetParamSimple(map, prefix + "GoodsNum", this.GoodsNum);
|
|||
|
|
this.SetParamSimple(map, prefix + "Period", this.Period);
|
|||
|
|
this.SetParamSimple(map, prefix + "ClusterType", this.ClusterType);
|
|||
|
|
this.SetParamSimple(map, prefix + "ReplicateSetNum", this.ReplicateSetNum);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|