/* * 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.Tke.V20180525.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class Cluster : AbstractModel { /// /// 集群ID /// [JsonProperty("ClusterId")] public string ClusterId{ get; set; } /// /// 集群名称 /// [JsonProperty("ClusterName")] public string ClusterName{ get; set; } /// /// 集群描述 /// [JsonProperty("ClusterDescription")] public string ClusterDescription{ get; set; } /// /// 集群版本(默认值为1.10.5) /// [JsonProperty("ClusterVersion")] public string ClusterVersion{ get; set; } /// /// 集群系统。centos7.2x86_64 或者 ubuntu16.04.1 LTSx86_64,默认取值为ubuntu16.04.1 LTSx86_64 /// [JsonProperty("ClusterOs")] public string ClusterOs{ get; set; } /// /// 集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。 /// [JsonProperty("ClusterType")] public string ClusterType{ get; set; } /// /// 集群网络相关参数 /// [JsonProperty("ClusterNetworkSettings")] public ClusterNetworkSettings ClusterNetworkSettings{ get; set; } /// /// 集群当前node数量 /// [JsonProperty("ClusterNodeNum")] public ulong? ClusterNodeNum{ get; set; } /// /// 集群所属的项目ID /// [JsonProperty("ProjectId")] public ulong? ProjectId{ get; set; } /// /// 标签描述列表。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("TagSpecification")] public TagSpecification[] TagSpecification{ get; set; } /// /// 集群状态 (Running 运行中 Creating 创建中 Abnormal 异常 ) /// [JsonProperty("ClusterStatus")] public string ClusterStatus{ get; set; } /// /// 集群属性(包括集群不同属性的MAP,属性字段包括NodeNameType (lan-ip模式和hostname 模式,默认无lan-ip模式)) /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Property")] public string Property{ get; set; } /// /// 集群当前master数量 /// [JsonProperty("ClusterMaterNodeNum")] public ulong? ClusterMaterNodeNum{ get; set; } /// /// 集群使用镜像id /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ImageId")] public string ImageId{ get; set; } /// /// OsCustomizeType /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("OsCustomizeType")] public string OsCustomizeType{ get; set; } /// /// 集群运行环境docker或container /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ContainerRuntime")] public string ContainerRuntime{ get; set; } /// /// 创建时间 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("CreatedTime")] public string CreatedTime{ 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 + "ClusterDescription", this.ClusterDescription); this.SetParamSimple(map, prefix + "ClusterVersion", this.ClusterVersion); this.SetParamSimple(map, prefix + "ClusterOs", this.ClusterOs); this.SetParamSimple(map, prefix + "ClusterType", this.ClusterType); this.SetParamObj(map, prefix + "ClusterNetworkSettings.", this.ClusterNetworkSettings); this.SetParamSimple(map, prefix + "ClusterNodeNum", this.ClusterNodeNum); this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId); this.SetParamArrayObj(map, prefix + "TagSpecification.", this.TagSpecification); this.SetParamSimple(map, prefix + "ClusterStatus", this.ClusterStatus); this.SetParamSimple(map, prefix + "Property", this.Property); this.SetParamSimple(map, prefix + "ClusterMaterNodeNum", this.ClusterMaterNodeNum); this.SetParamSimple(map, prefix + "ImageId", this.ImageId); this.SetParamSimple(map, prefix + "OsCustomizeType", this.OsCustomizeType); this.SetParamSimple(map, prefix + "ContainerRuntime", this.ContainerRuntime); this.SetParamSimple(map, prefix + "CreatedTime", this.CreatedTime); } } }