/*
* 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 ExistedInstance : AbstractModel
{
///
/// 实例是否支持加入集群(TRUE 可以加入 FALSE 不能加入)。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("Usable")]
public bool? Usable{ get; set; }
///
/// 实例不支持加入的原因。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("UnusableReason")]
public string UnusableReason{ get; set; }
///
/// 实例已经所在的集群ID。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("AlreadyInCluster")]
public string AlreadyInCluster{ get; set; }
///
/// 实例ID形如:ins-xxxxxxxx。
///
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
///
/// 实例名称。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("InstanceName")]
public string InstanceName{ get; set; }
///
/// 实例主网卡的内网IP列表。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("PrivateIpAddresses")]
public string[] PrivateIpAddresses{ get; set; }
///
/// 实例主网卡的公网IP列表。
/// 注意:此字段可能返回 null,表示取不到有效值。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("PublicIpAddresses")]
public string[] PublicIpAddresses{ get; set; }
///
/// 创建时间。按照ISO8601标准表示,并且使用UTC时间。格式为:YYYY-MM-DDThh:mm:ssZ。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("CreatedTime")]
public string CreatedTime{ get; set; }
///
/// 实例计费模式。取值范围:
/// PREPAID:表示预付费,即包年包月
/// POSTPAID_BY_HOUR:表示后付费,即按量计费
/// CDHPAID:CDH付费,即只对CDH计费,不对CDH上的实例计费。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("InstanceChargeType")]
public string InstanceChargeType{ get; set; }
///
/// 实例的CPU核数,单位:核。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("CPU")]
public ulong? CPU{ get; set; }
///
/// 实例内存容量,单位:GB。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("Memory")]
public ulong? Memory{ get; set; }
///
/// 操作系统名称。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("OsName")]
public string OsName{ get; set; }
///
/// 实例机型。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("InstanceType")]
public string InstanceType{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "Usable", this.Usable);
this.SetParamSimple(map, prefix + "UnusableReason", this.UnusableReason);
this.SetParamSimple(map, prefix + "AlreadyInCluster", this.AlreadyInCluster);
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "InstanceName", this.InstanceName);
this.SetParamArraySimple(map, prefix + "PrivateIpAddresses.", this.PrivateIpAddresses);
this.SetParamArraySimple(map, prefix + "PublicIpAddresses.", this.PublicIpAddresses);
this.SetParamSimple(map, prefix + "CreatedTime", this.CreatedTime);
this.SetParamSimple(map, prefix + "InstanceChargeType", this.InstanceChargeType);
this.SetParamSimple(map, prefix + "CPU", this.CPU);
this.SetParamSimple(map, prefix + "Memory", this.Memory);
this.SetParamSimple(map, prefix + "OsName", this.OsName);
this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType);
}
}
}