417 lines
16 KiB
C#
417 lines
16 KiB
C#
/*
|
||
* 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.Es.V20180416.Models
|
||
{
|
||
using Newtonsoft.Json;
|
||
using System.Collections.Generic;
|
||
using TencentCloud.Common;
|
||
|
||
public class InstanceInfo : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 实例ID
|
||
/// </summary>
|
||
[JsonProperty("InstanceId")]
|
||
public string InstanceId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例名称
|
||
/// </summary>
|
||
[JsonProperty("InstanceName")]
|
||
public string InstanceName{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 地域
|
||
/// </summary>
|
||
[JsonProperty("Region")]
|
||
public string Region{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 可用区
|
||
/// </summary>
|
||
[JsonProperty("Zone")]
|
||
public string Zone{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户ID
|
||
/// </summary>
|
||
[JsonProperty("AppId")]
|
||
public ulong? AppId{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户UIN
|
||
/// </summary>
|
||
[JsonProperty("Uin")]
|
||
public string Uin{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例所属VPC的UID
|
||
/// </summary>
|
||
[JsonProperty("VpcUid")]
|
||
public string VpcUid{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例所属子网的UID
|
||
/// </summary>
|
||
[JsonProperty("SubnetUid")]
|
||
public string SubnetUid{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例状态,0:处理中,1:正常,-1停止,-2:销毁中,-3:已销毁
|
||
/// </summary>
|
||
[JsonProperty("Status")]
|
||
public long? Status{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例计费模式。取值范围: PREPAID:表示预付费,即包年包月 POSTPAID_BY_HOUR:表示后付费,即按量计费 CDHPAID:CDH付费,即只对CDH计费,不对CDH上的实例计费。
|
||
/// </summary>
|
||
[JsonProperty("ChargeType")]
|
||
public string ChargeType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 包年包月购买时长,单位:月
|
||
/// </summary>
|
||
[JsonProperty("ChargePeriod")]
|
||
public ulong? ChargePeriod{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 自动续费标识。取值范围: NOTIFY_AND_AUTO_RENEW:通知过期且自动续费 NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费 DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费 默认取值:NOTIFY_AND_AUTO_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
|
||
/// </summary>
|
||
[JsonProperty("RenewFlag")]
|
||
public string RenewFlag{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 节点规格<li>ES.S1.SMALL2:1核2G</li><li>ES.S1.MEDIUM4:2核4G</li><li>ES.S1.MEDIUM8:2核8G</li><li>ES.S1.LARGE16:4核16G</li><li>ES.S1.2XLARGE32:8核32G</li><li>ES.S1.4XLARGE32:16核32G</li><li>ES.S1.4XLARGE64:16核64G</li>
|
||
/// </summary>
|
||
[JsonProperty("NodeType")]
|
||
public string NodeType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 节点个数
|
||
/// </summary>
|
||
[JsonProperty("NodeNum")]
|
||
public ulong? NodeNum{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 节点CPU核数
|
||
/// </summary>
|
||
[JsonProperty("CpuNum")]
|
||
public ulong? CpuNum{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 节点内存大小,单位GB
|
||
/// </summary>
|
||
[JsonProperty("MemSize")]
|
||
public ulong? MemSize{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 节点磁盘类型
|
||
/// </summary>
|
||
[JsonProperty("DiskType")]
|
||
public string DiskType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 节点磁盘大小,单位GB
|
||
/// </summary>
|
||
[JsonProperty("DiskSize")]
|
||
public ulong? DiskSize{ get; set; }
|
||
|
||
/// <summary>
|
||
/// ES域名
|
||
/// </summary>
|
||
[JsonProperty("EsDomain")]
|
||
public string EsDomain{ get; set; }
|
||
|
||
/// <summary>
|
||
/// ES VIP
|
||
/// </summary>
|
||
[JsonProperty("EsVip")]
|
||
public string EsVip{ get; set; }
|
||
|
||
/// <summary>
|
||
/// ES端口
|
||
/// </summary>
|
||
[JsonProperty("EsPort")]
|
||
public ulong? EsPort{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Kibana访问url
|
||
/// </summary>
|
||
[JsonProperty("KibanaUrl")]
|
||
public string KibanaUrl{ get; set; }
|
||
|
||
/// <summary>
|
||
/// ES版本号
|
||
/// </summary>
|
||
[JsonProperty("EsVersion")]
|
||
public string EsVersion{ get; set; }
|
||
|
||
/// <summary>
|
||
/// ES配置项
|
||
/// </summary>
|
||
[JsonProperty("EsConfig")]
|
||
public string EsConfig{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Kibana访问控制配置
|
||
/// </summary>
|
||
[JsonProperty("EsAcl")]
|
||
public EsAcl EsAcl{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例创建时间
|
||
/// </summary>
|
||
[JsonProperty("CreateTime")]
|
||
public string CreateTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例最后修改操作时间
|
||
/// </summary>
|
||
[JsonProperty("UpdateTime")]
|
||
public string UpdateTime{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例到期时间
|
||
/// </summary>
|
||
[JsonProperty("Deadline")]
|
||
public string Deadline{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例类型(实例类型标识,当前只有1,2两种)
|
||
/// </summary>
|
||
[JsonProperty("InstanceType")]
|
||
public ulong? InstanceType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Ik分词器配置
|
||
/// </summary>
|
||
[JsonProperty("IkConfig")]
|
||
public EsDictionaryInfo IkConfig{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 专用主节点配置
|
||
/// </summary>
|
||
[JsonProperty("MasterNodeInfo")]
|
||
public MasterNodeInfo MasterNodeInfo{ get; set; }
|
||
|
||
/// <summary>
|
||
/// cos自动备份配置
|
||
/// </summary>
|
||
[JsonProperty("CosBackup")]
|
||
public CosBackup CosBackup{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否允许cos自动备份
|
||
/// </summary>
|
||
[JsonProperty("AllowCosBackup")]
|
||
public bool? AllowCosBackup{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例拥有的标签列表
|
||
/// </summary>
|
||
[JsonProperty("TagList")]
|
||
public TagInfo[] TagList{ get; set; }
|
||
|
||
/// <summary>
|
||
/// License类型<li>oss:开源版</li><li>basic:基础版</li><li>platinum:白金版</li>默认值platinum
|
||
/// </summary>
|
||
[JsonProperty("LicenseType")]
|
||
public string LicenseType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否为冷热集群<li>true: 冷热集群</li><li>false: 非冷热集群</li>
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("EnableHotWarmMode")]
|
||
public bool? EnableHotWarmMode{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 冷节点规格<li>ES.S1.SMALL2:1核2G</li><li>ES.S1.MEDIUM4:2核4G</li><li>ES.S1.MEDIUM8:2核8G</li><li>ES.S1.LARGE16:4核16G</li><li>ES.S1.2XLARGE32:8核32G</li><li>ES.S1.4XLARGE32:16核32G</li><li>ES.S1.4XLARGE64:16核64G</li>
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("WarmNodeType")]
|
||
public string WarmNodeType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 冷节点个数
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("WarmNodeNum")]
|
||
public ulong? WarmNodeNum{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 冷节点CPU核数
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("WarmCpuNum")]
|
||
public ulong? WarmCpuNum{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 冷节点内存内存大小,单位GB
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("WarmMemSize")]
|
||
public ulong? WarmMemSize{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 冷节点磁盘类型
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("WarmDiskType")]
|
||
public string WarmDiskType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 冷节点磁盘大小,单位GB
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("WarmDiskSize")]
|
||
public ulong? WarmDiskSize{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 集群节点信息列表
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("NodeInfoList")]
|
||
public NodeInfo[] NodeInfoList{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Es公网地址
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("EsPublicUrl")]
|
||
public string EsPublicUrl{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 多可用区网络信息
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("MultiZoneInfo")]
|
||
public ZoneDetail[] MultiZoneInfo{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 部署模式<li>0:单可用区</li><li>1:多可用区</li>
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("DeployMode")]
|
||
public ulong? DeployMode{ get; set; }
|
||
|
||
/// <summary>
|
||
/// ES公网访问状态<li>OPEN:开启</li><li>CLOSE:关闭
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("PublicAccess")]
|
||
public string PublicAccess{ get; set; }
|
||
|
||
/// <summary>
|
||
/// ES公网访问控制配置
|
||
/// </summary>
|
||
[JsonProperty("EsPublicAcl")]
|
||
public EsAcl EsPublicAcl{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Kibana内网地址
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("KibanaPrivateUrl")]
|
||
public string KibanaPrivateUrl{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Kibana公网访问状态<li>OPEN:开启</li><li>CLOSE:关闭
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("KibanaPublicAccess")]
|
||
public string KibanaPublicAccess{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Kibana内网访问状态<li>OPEN:开启</li><li>CLOSE:关闭
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("KibanaPrivateAccess")]
|
||
public string KibanaPrivateAccess{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 6.8(及以上版本)基础版是否开启xpack security认证<li>1:不开启</li><li>2:开启</li>
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("SecurityType")]
|
||
public ulong? SecurityType{ 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 + "InstanceId", this.InstanceId);
|
||
this.SetParamSimple(map, prefix + "InstanceName", this.InstanceName);
|
||
this.SetParamSimple(map, prefix + "Region", this.Region);
|
||
this.SetParamSimple(map, prefix + "Zone", this.Zone);
|
||
this.SetParamSimple(map, prefix + "AppId", this.AppId);
|
||
this.SetParamSimple(map, prefix + "Uin", this.Uin);
|
||
this.SetParamSimple(map, prefix + "VpcUid", this.VpcUid);
|
||
this.SetParamSimple(map, prefix + "SubnetUid", this.SubnetUid);
|
||
this.SetParamSimple(map, prefix + "Status", this.Status);
|
||
this.SetParamSimple(map, prefix + "ChargeType", this.ChargeType);
|
||
this.SetParamSimple(map, prefix + "ChargePeriod", this.ChargePeriod);
|
||
this.SetParamSimple(map, prefix + "RenewFlag", this.RenewFlag);
|
||
this.SetParamSimple(map, prefix + "NodeType", this.NodeType);
|
||
this.SetParamSimple(map, prefix + "NodeNum", this.NodeNum);
|
||
this.SetParamSimple(map, prefix + "CpuNum", this.CpuNum);
|
||
this.SetParamSimple(map, prefix + "MemSize", this.MemSize);
|
||
this.SetParamSimple(map, prefix + "DiskType", this.DiskType);
|
||
this.SetParamSimple(map, prefix + "DiskSize", this.DiskSize);
|
||
this.SetParamSimple(map, prefix + "EsDomain", this.EsDomain);
|
||
this.SetParamSimple(map, prefix + "EsVip", this.EsVip);
|
||
this.SetParamSimple(map, prefix + "EsPort", this.EsPort);
|
||
this.SetParamSimple(map, prefix + "KibanaUrl", this.KibanaUrl);
|
||
this.SetParamSimple(map, prefix + "EsVersion", this.EsVersion);
|
||
this.SetParamSimple(map, prefix + "EsConfig", this.EsConfig);
|
||
this.SetParamObj(map, prefix + "EsAcl.", this.EsAcl);
|
||
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
|
||
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
|
||
this.SetParamSimple(map, prefix + "Deadline", this.Deadline);
|
||
this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType);
|
||
this.SetParamObj(map, prefix + "IkConfig.", this.IkConfig);
|
||
this.SetParamObj(map, prefix + "MasterNodeInfo.", this.MasterNodeInfo);
|
||
this.SetParamObj(map, prefix + "CosBackup.", this.CosBackup);
|
||
this.SetParamSimple(map, prefix + "AllowCosBackup", this.AllowCosBackup);
|
||
this.SetParamArrayObj(map, prefix + "TagList.", this.TagList);
|
||
this.SetParamSimple(map, prefix + "LicenseType", this.LicenseType);
|
||
this.SetParamSimple(map, prefix + "EnableHotWarmMode", this.EnableHotWarmMode);
|
||
this.SetParamSimple(map, prefix + "WarmNodeType", this.WarmNodeType);
|
||
this.SetParamSimple(map, prefix + "WarmNodeNum", this.WarmNodeNum);
|
||
this.SetParamSimple(map, prefix + "WarmCpuNum", this.WarmCpuNum);
|
||
this.SetParamSimple(map, prefix + "WarmMemSize", this.WarmMemSize);
|
||
this.SetParamSimple(map, prefix + "WarmDiskType", this.WarmDiskType);
|
||
this.SetParamSimple(map, prefix + "WarmDiskSize", this.WarmDiskSize);
|
||
this.SetParamArrayObj(map, prefix + "NodeInfoList.", this.NodeInfoList);
|
||
this.SetParamSimple(map, prefix + "EsPublicUrl", this.EsPublicUrl);
|
||
this.SetParamArrayObj(map, prefix + "MultiZoneInfo.", this.MultiZoneInfo);
|
||
this.SetParamSimple(map, prefix + "DeployMode", this.DeployMode);
|
||
this.SetParamSimple(map, prefix + "PublicAccess", this.PublicAccess);
|
||
this.SetParamObj(map, prefix + "EsPublicAcl.", this.EsPublicAcl);
|
||
this.SetParamSimple(map, prefix + "KibanaPrivateUrl", this.KibanaPrivateUrl);
|
||
this.SetParamSimple(map, prefix + "KibanaPublicAccess", this.KibanaPublicAccess);
|
||
this.SetParamSimple(map, prefix + "KibanaPrivateAccess", this.KibanaPrivateAccess);
|
||
this.SetParamSimple(map, prefix + "SecurityType", this.SecurityType);
|
||
}
|
||
}
|
||
}
|
||
|