Files
g.hnyhua.cn/TencentCloud/Tke/V20180525/Models/ExistedInstance.cs
2026-02-07 15:48:27 +08:00

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