/* * 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 RoGroup : AbstractModel { /// /// 只读组模式,可选值为:alone-系统自动分配只读组;allinone-新建只读组;join-使用现有只读组。 /// [JsonProperty("RoGroupMode")] public string RoGroupMode{ get; set; } /// /// 只读组 ID。 /// [JsonProperty("RoGroupId")] public string RoGroupId{ get; set; } /// /// 只读组名称。 /// [JsonProperty("RoGroupName")] public string RoGroupName{ get; set; } /// /// 是否启用延迟超限剔除功能,启用该功能后,只读实例与主实例的延迟超过延迟阈值,只读实例将被隔离。可选值:1-启用;0-不启用。 /// [JsonProperty("RoOfflineDelay")] public long? RoOfflineDelay{ get; set; } /// /// 延迟阈值。 /// [JsonProperty("RoMaxDelayTime")] public long? RoMaxDelayTime{ get; set; } /// /// 最少实例保留个数,若购买只读实例数量小于设置数量将不做剔除。 /// [JsonProperty("MinRoInGroup")] public long? MinRoInGroup{ get; set; } /// /// 读写权重分配模式,可选值:system-系统自动分配;custom-自定义。 /// [JsonProperty("WeightMode")] public string WeightMode{ get; set; } /// /// 权重值。 /// [JsonProperty("Weight")] public long? Weight{ get; set; } /// /// 只读组中的只读实例详情。 /// [JsonProperty("RoInstances")] public RoInstanceInfo[] RoInstances{ get; set; } /// /// 只读组的内网 IP。 /// [JsonProperty("Vip")] public string Vip{ get; set; } /// /// 只读组的内网端口号。 /// [JsonProperty("Vport")] public long? Vport{ get; set; } /// /// 私有网络 ID。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("UniqVpcId")] public string UniqVpcId{ get; set; } /// /// 子网 ID。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("UniqSubnetId")] public string UniqSubnetId{ get; set; } /// /// 只读组所在的地域。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("RoGroupRegion")] public string RoGroupRegion{ get; set; } /// /// 只读组所在的可用区。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("RoGroupZone")] public string RoGroupZone{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "RoGroupMode", this.RoGroupMode); this.SetParamSimple(map, prefix + "RoGroupId", this.RoGroupId); this.SetParamSimple(map, prefix + "RoGroupName", this.RoGroupName); this.SetParamSimple(map, prefix + "RoOfflineDelay", this.RoOfflineDelay); this.SetParamSimple(map, prefix + "RoMaxDelayTime", this.RoMaxDelayTime); this.SetParamSimple(map, prefix + "MinRoInGroup", this.MinRoInGroup); this.SetParamSimple(map, prefix + "WeightMode", this.WeightMode); this.SetParamSimple(map, prefix + "Weight", this.Weight); this.SetParamArrayObj(map, prefix + "RoInstances.", this.RoInstances); this.SetParamSimple(map, prefix + "Vip", this.Vip); this.SetParamSimple(map, prefix + "Vport", this.Vport); this.SetParamSimple(map, prefix + "UniqVpcId", this.UniqVpcId); this.SetParamSimple(map, prefix + "UniqSubnetId", this.UniqSubnetId); this.SetParamSimple(map, prefix + "RoGroupRegion", this.RoGroupRegion); this.SetParamSimple(map, prefix + "RoGroupZone", this.RoGroupZone); } } }