/* * 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.Cdb.V20170320.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DescribeDBPriceRequest : AbstractModel { /// /// 可用区信息,格式如 "ap-guangzhou-2"。具体能设置的值请通过 DescribeDBZoneConfig 接口查询。 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// 实例数量,默认值为 1,最小值 1,最大值为 100。 /// [JsonProperty("GoodsNum")] public long? GoodsNum{ get; set; } /// /// 实例内存大小,单位:MB。 /// [JsonProperty("Memory")] public long? Memory{ get; set; } /// /// 实例硬盘大小,单位:GB。 /// [JsonProperty("Volume")] public long? Volume{ get; set; } /// /// 付费类型,支持值包括:PRE_PAID - 包年包月,HOUR_PAID - 按量计费。 /// [JsonProperty("PayType")] public string PayType{ get; set; } /// /// 实例时长,单位:月,最小值 1,最大值为 36;查询按量计费价格时,该字段无效。 /// [JsonProperty("Period")] public long? Period{ get; set; } /// /// 实例类型,默认为 master,支持值包括:master - 表示主实例,ro - 表示只读实例,dr - 表示灾备实例。 /// [JsonProperty("InstanceRole")] public string InstanceRole{ get; set; } /// /// 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。 /// [JsonProperty("ProtectMode")] public long? ProtectMode{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Zone", this.Zone); this.SetParamSimple(map, prefix + "GoodsNum", this.GoodsNum); this.SetParamSimple(map, prefix + "Memory", this.Memory); this.SetParamSimple(map, prefix + "Volume", this.Volume); this.SetParamSimple(map, prefix + "PayType", this.PayType); this.SetParamSimple(map, prefix + "Period", this.Period); this.SetParamSimple(map, prefix + "InstanceRole", this.InstanceRole); this.SetParamSimple(map, prefix + "ProtectMode", this.ProtectMode); } } }