Files
2026-02-07 15:48:27 +08:00

162 lines
6.0 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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
{
/// <summary>
/// 集群ID
/// </summary>
[JsonProperty("ClusterId")]
public string ClusterId{ get; set; }
/// <summary>
/// 集群名称
/// </summary>
[JsonProperty("ClusterName")]
public string ClusterName{ get; set; }
/// <summary>
/// 集群描述
/// </summary>
[JsonProperty("ClusterDescription")]
public string ClusterDescription{ get; set; }
/// <summary>
/// 集群版本默认值为1.10.5
/// </summary>
[JsonProperty("ClusterVersion")]
public string ClusterVersion{ get; set; }
/// <summary>
/// 集群系统。centos7.2x86_64 或者 ubuntu16.04.1 LTSx86_64默认取值为ubuntu16.04.1 LTSx86_64
/// </summary>
[JsonProperty("ClusterOs")]
public string ClusterOs{ get; set; }
/// <summary>
/// 集群类型托管集群MANAGED_CLUSTER独立集群INDEPENDENT_CLUSTER。
/// </summary>
[JsonProperty("ClusterType")]
public string ClusterType{ get; set; }
/// <summary>
/// 集群网络相关参数
/// </summary>
[JsonProperty("ClusterNetworkSettings")]
public ClusterNetworkSettings ClusterNetworkSettings{ get; set; }
/// <summary>
/// 集群当前node数量
/// </summary>
[JsonProperty("ClusterNodeNum")]
public ulong? ClusterNodeNum{ get; set; }
/// <summary>
/// 集群所属的项目ID
/// </summary>
[JsonProperty("ProjectId")]
public ulong? ProjectId{ get; set; }
/// <summary>
/// 标签描述列表。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("TagSpecification")]
public TagSpecification[] TagSpecification{ get; set; }
/// <summary>
/// 集群状态 (Running 运行中 Creating 创建中 Abnormal 异常 )
/// </summary>
[JsonProperty("ClusterStatus")]
public string ClusterStatus{ get; set; }
/// <summary>
/// 集群属性(包括集群不同属性的MAP属性字段包括NodeNameType (lan-ip模式和hostname 模式默认无lan-ip模式))
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Property")]
public string Property{ get; set; }
/// <summary>
/// 集群当前master数量
/// </summary>
[JsonProperty("ClusterMaterNodeNum")]
public ulong? ClusterMaterNodeNum{ get; set; }
/// <summary>
/// 集群使用镜像id
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ImageId")]
public string ImageId{ get; set; }
/// <summary>
/// OsCustomizeType
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("OsCustomizeType")]
public string OsCustomizeType{ get; set; }
/// <summary>
/// 集群运行环境docker或container
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ContainerRuntime")]
public string ContainerRuntime{ get; set; }
/// <summary>
/// 创建时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CreatedTime")]
public string CreatedTime{ 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 + "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);
}
}
}