/* * 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 Instance : AbstractModel { /// /// 实例ID /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// 节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER /// [JsonProperty("InstanceRole")] public string InstanceRole{ get; set; } /// /// 实例异常(或者处于初始化中)的原因 /// [JsonProperty("FailedReason")] public string FailedReason{ get; set; } /// /// 实例的状态(running 运行中,initializing 初始化中,failed 异常) /// [JsonProperty("InstanceState")] public string InstanceState{ get; set; } /// /// 实例是否封锁状态 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("DrainStatus")] public string DrainStatus{ get; set; } /// /// 节点配置 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceAdvancedSettings")] public InstanceAdvancedSettings InstanceAdvancedSettings{ get; set; } /// /// 添加时间 /// [JsonProperty("CreatedTime")] public string CreatedTime{ get; set; } /// /// 节点内网IP /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("LanIP")] public string LanIP{ 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 + "InstanceRole", this.InstanceRole); this.SetParamSimple(map, prefix + "FailedReason", this.FailedReason); this.SetParamSimple(map, prefix + "InstanceState", this.InstanceState); this.SetParamSimple(map, prefix + "DrainStatus", this.DrainStatus); this.SetParamObj(map, prefix + "InstanceAdvancedSettings.", this.InstanceAdvancedSettings); this.SetParamSimple(map, prefix + "CreatedTime", this.CreatedTime); this.SetParamSimple(map, prefix + "LanIP", this.LanIP); } } }