/* * 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 ZoneSellConf : AbstractModel { /// /// 可用区状态。可能的返回值为:0-未上线;1-上线;2-开放;3-停售;4-不展示 /// [JsonProperty("Status")] public long? Status{ get; set; } /// /// 可用区中文名称 /// [JsonProperty("ZoneName")] public string ZoneName{ get; set; } /// /// 实例类型是否为自定义类型 /// [JsonProperty("IsCustom")] public bool? IsCustom{ get; set; } /// /// 是否支持灾备 /// [JsonProperty("IsSupportDr")] public bool? IsSupportDr{ get; set; } /// /// 是否支持私有网络 /// [JsonProperty("IsSupportVpc")] public bool? IsSupportVpc{ get; set; } /// /// 小时计费实例最大售卖数量 /// [JsonProperty("HourInstanceSaleMaxNum")] public long? HourInstanceSaleMaxNum{ get; set; } /// /// 是否为默认可用区 /// [JsonProperty("IsDefaultZone")] public bool? IsDefaultZone{ get; set; } /// /// 是否为黑石区 /// [JsonProperty("IsBm")] public bool? IsBm{ get; set; } /// /// 支持的付费类型。可能的返回值为:0-包年包月;1-小时计费;2-后付费 /// [JsonProperty("PayType")] public string[] PayType{ get; set; } /// /// 数据复制类型。0-异步复制;1-半同步复制;2-强同步复制 /// [JsonProperty("ProtectMode")] public string[] ProtectMode{ get; set; } /// /// 可用区名称 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// 售卖实例类型数组 /// [JsonProperty("SellType")] public SellType[] SellType{ get; set; } /// /// 多可用区信息 /// [JsonProperty("ZoneConf")] public ZoneConf ZoneConf{ get; set; } /// /// 可支持的灾备可用区信息 /// [JsonProperty("DrZone")] public string[] DrZone{ get; set; } /// /// 是否支持跨可用区只读 /// [JsonProperty("IsSupportRemoteRo")] public bool? IsSupportRemoteRo{ get; set; } /// /// 可支持的跨可用区只读区信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("RemoteRoZone")] public string[] RemoteRoZone{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamSimple(map, prefix + "ZoneName", this.ZoneName); this.SetParamSimple(map, prefix + "IsCustom", this.IsCustom); this.SetParamSimple(map, prefix + "IsSupportDr", this.IsSupportDr); this.SetParamSimple(map, prefix + "IsSupportVpc", this.IsSupportVpc); this.SetParamSimple(map, prefix + "HourInstanceSaleMaxNum", this.HourInstanceSaleMaxNum); this.SetParamSimple(map, prefix + "IsDefaultZone", this.IsDefaultZone); this.SetParamSimple(map, prefix + "IsBm", this.IsBm); this.SetParamArraySimple(map, prefix + "PayType.", this.PayType); this.SetParamArraySimple(map, prefix + "ProtectMode.", this.ProtectMode); this.SetParamSimple(map, prefix + "Zone", this.Zone); this.SetParamArrayObj(map, prefix + "SellType.", this.SellType); this.SetParamObj(map, prefix + "ZoneConf.", this.ZoneConf); this.SetParamArraySimple(map, prefix + "DrZone.", this.DrZone); this.SetParamSimple(map, prefix + "IsSupportRemoteRo", this.IsSupportRemoteRo); this.SetParamArraySimple(map, prefix + "RemoteRoZone.", this.RemoteRoZone); } } }