/* * 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.Dcdb.V20180411.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DCDBShardInfo : AbstractModel { /// /// 所属实例Id /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// 分片SQL透传Id,用于将sql透传到指定分片执行 /// [JsonProperty("ShardSerialId")] public string ShardSerialId{ get; set; } /// /// 全局唯一的分片Id /// [JsonProperty("ShardInstanceId")] public string ShardInstanceId{ get; set; } /// /// 状态:0 创建中,1 流程处理中, 2 运行中,3 分片未初始化 /// [JsonProperty("Status")] public long? Status{ get; set; } /// /// 状态中文描述 /// [JsonProperty("StatusDesc")] public string StatusDesc{ get; set; } /// /// 创建时间 /// [JsonProperty("CreateTime")] public string CreateTime{ get; set; } /// /// 字符串格式的私有网络Id /// [JsonProperty("VpcId")] public string VpcId{ get; set; } /// /// 字符串格式的私有网络子网Id /// [JsonProperty("SubnetId")] public string SubnetId{ get; set; } /// /// 项目ID /// [JsonProperty("ProjectId")] public long? ProjectId{ get; set; } /// /// 地域 /// [JsonProperty("Region")] public string Region{ get; set; } /// /// 可用区 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// 内存大小,单位 GB /// [JsonProperty("Memory")] public long? Memory{ get; set; } /// /// 存储大小,单位 GB /// [JsonProperty("Storage")] public long? Storage{ get; set; } /// /// 到期时间 /// [JsonProperty("PeriodEndTime")] public string PeriodEndTime{ get; set; } /// /// 节点数,2 为一主一从, 3 为一主二从 /// [JsonProperty("NodeCount")] public long? NodeCount{ get; set; } /// /// 存储使用率,单位为 % /// [JsonProperty("StorageUsage")] public float? StorageUsage{ get; set; } /// /// 内存使用率,单位为 % /// [JsonProperty("MemoryUsage")] public float? MemoryUsage{ get; set; } /// /// 数字分片Id(过时字段,请勿依赖该值) /// [JsonProperty("ShardId")] public long? ShardId{ get; set; } /// /// 产品ProductID /// [JsonProperty("Pid")] public long? Pid{ get; set; } /// /// Proxy版本 /// [JsonProperty("ProxyVersion")] public string ProxyVersion{ get; set; } /// /// 付费模型 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Paymode")] public string Paymode{ get; set; } /// /// 分片的主可用区 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ShardMasterZone")] public string ShardMasterZone{ get; set; } /// /// 分片的从可用区列表 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ShardSlaveZones")] public string[] ShardSlaveZones{ get; set; } /// /// CPU核数 /// [JsonProperty("Cpu")] public long? Cpu{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId); this.SetParamSimple(map, prefix + "ShardSerialId", this.ShardSerialId); this.SetParamSimple(map, prefix + "ShardInstanceId", this.ShardInstanceId); this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamSimple(map, prefix + "StatusDesc", this.StatusDesc); this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime); this.SetParamSimple(map, prefix + "VpcId", this.VpcId); this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId); this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId); this.SetParamSimple(map, prefix + "Region", this.Region); this.SetParamSimple(map, prefix + "Zone", this.Zone); this.SetParamSimple(map, prefix + "Memory", this.Memory); this.SetParamSimple(map, prefix + "Storage", this.Storage); this.SetParamSimple(map, prefix + "PeriodEndTime", this.PeriodEndTime); this.SetParamSimple(map, prefix + "NodeCount", this.NodeCount); this.SetParamSimple(map, prefix + "StorageUsage", this.StorageUsage); this.SetParamSimple(map, prefix + "MemoryUsage", this.MemoryUsage); this.SetParamSimple(map, prefix + "ShardId", this.ShardId); this.SetParamSimple(map, prefix + "Pid", this.Pid); this.SetParamSimple(map, prefix + "ProxyVersion", this.ProxyVersion); this.SetParamSimple(map, prefix + "Paymode", this.Paymode); this.SetParamSimple(map, prefix + "ShardMasterZone", this.ShardMasterZone); this.SetParamArraySimple(map, prefix + "ShardSlaveZones.", this.ShardSlaveZones); this.SetParamSimple(map, prefix + "Cpu", this.Cpu); } } }