Files
g.hnyhua.cn/TencentCloud/Dcdb/V20180411/Models/DCDBShardInfo.cs

208 lines
6.9 KiB
C#
Raw Normal View History

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