/*
* 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.Tsf.V20180326.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Cluster : AbstractModel
{
///
/// 集群ID
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ClusterId")]
public string ClusterId{ get; set; }
///
/// 集群名称
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ClusterName")]
public string ClusterName{ get; set; }
///
/// 集群描述
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ClusterDesc")]
public string ClusterDesc{ get; set; }
///
/// 集群类型
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ClusterType")]
public string ClusterType{ get; set; }
///
/// 集群所属私有网络ID
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
///
/// 集群状态
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ClusterStatus")]
public string ClusterStatus{ get; set; }
///
/// 集群CIDR
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ClusterCIDR")]
public string ClusterCIDR{ get; set; }
///
/// 集群总CPU,单位: 核
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ClusterTotalCpu")]
public float? ClusterTotalCpu{ get; set; }
///
/// 集群总内存,单位: G
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ClusterTotalMem")]
public float? ClusterTotalMem{ get; set; }
///
/// 集群已使用CPU,单位: 核
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ClusterUsedCpu")]
public float? ClusterUsedCpu{ get; set; }
///
/// 集群已使用内存,单位: G
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ClusterUsedMem")]
public float? ClusterUsedMem{ get; set; }
///
/// 集群机器实例数量
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("InstanceCount")]
public long? InstanceCount{ get; set; }
///
/// 集群可用的机器实例数量
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("RunInstanceCount")]
public long? RunInstanceCount{ get; set; }
///
/// 集群正常状态的机器实例数量
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("NormalInstanceCount")]
public long? NormalInstanceCount{ get; set; }
///
/// 删除标记:true:可以删除;false:不可删除
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("DeleteFlag")]
public bool? DeleteFlag{ get; set; }
///
/// 创建时间
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
///
/// 更新时间
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("UpdateTime")]
public string UpdateTime{ get; set; }
///
/// 集群所属TSF地域ID
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("TsfRegionId")]
public string TsfRegionId{ get; set; }
///
/// 集群所属TSF地域名称
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("TsfRegionName")]
public string TsfRegionName{ get; set; }
///
/// 集群所属TSF可用区ID
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("TsfZoneId")]
public string TsfZoneId{ get; set; }
///
/// 集群所属TSF可用区名称
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("TsfZoneName")]
public string TsfZoneName{ get; set; }
///
/// 集群不可删除的原因
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("DeleteFlagReason")]
public string DeleteFlagReason{ get; set; }
///
/// 集群最大CPU限制,单位:核
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ClusterLimitCpu")]
public float? ClusterLimitCpu{ get; set; }
///
/// 集群最大内存限制,单位:G
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ClusterLimitMem")]
public float? ClusterLimitMem{ get; set; }
///
/// 集群可用的服务实例数量
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("RunServiceInstanceCount")]
public long? RunServiceInstanceCount{ get; set; }
///
/// 集群所属子网ID
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("SubnetId")]
public string SubnetId{ get; set; }
///
/// 返回给前端的控制信息
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("OperationInfo")]
public OperationInfo OperationInfo{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "ClusterId", this.ClusterId);
this.SetParamSimple(map, prefix + "ClusterName", this.ClusterName);
this.SetParamSimple(map, prefix + "ClusterDesc", this.ClusterDesc);
this.SetParamSimple(map, prefix + "ClusterType", this.ClusterType);
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
this.SetParamSimple(map, prefix + "ClusterStatus", this.ClusterStatus);
this.SetParamSimple(map, prefix + "ClusterCIDR", this.ClusterCIDR);
this.SetParamSimple(map, prefix + "ClusterTotalCpu", this.ClusterTotalCpu);
this.SetParamSimple(map, prefix + "ClusterTotalMem", this.ClusterTotalMem);
this.SetParamSimple(map, prefix + "ClusterUsedCpu", this.ClusterUsedCpu);
this.SetParamSimple(map, prefix + "ClusterUsedMem", this.ClusterUsedMem);
this.SetParamSimple(map, prefix + "InstanceCount", this.InstanceCount);
this.SetParamSimple(map, prefix + "RunInstanceCount", this.RunInstanceCount);
this.SetParamSimple(map, prefix + "NormalInstanceCount", this.NormalInstanceCount);
this.SetParamSimple(map, prefix + "DeleteFlag", this.DeleteFlag);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "TsfRegionId", this.TsfRegionId);
this.SetParamSimple(map, prefix + "TsfRegionName", this.TsfRegionName);
this.SetParamSimple(map, prefix + "TsfZoneId", this.TsfZoneId);
this.SetParamSimple(map, prefix + "TsfZoneName", this.TsfZoneName);
this.SetParamSimple(map, prefix + "DeleteFlagReason", this.DeleteFlagReason);
this.SetParamSimple(map, prefix + "ClusterLimitCpu", this.ClusterLimitCpu);
this.SetParamSimple(map, prefix + "ClusterLimitMem", this.ClusterLimitMem);
this.SetParamSimple(map, prefix + "RunServiceInstanceCount", this.RunServiceInstanceCount);
this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.SetParamObj(map, prefix + "OperationInfo.", this.OperationInfo);
}
}
}