/* * 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.Tsf.V20180326.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class Instance : AbstractModel { /// /// 机器实例ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// 机器名称 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceName")] public string InstanceName{ get; set; } /// /// 机器内网地址IP /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("LanIp")] public string LanIp{ get; set; } /// /// 机器外网地址IP /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("WanIp")] public string WanIp{ get; set; } /// /// 机器描述信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceDesc")] public string InstanceDesc{ get; set; } /// /// 集群ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ClusterId")] public string ClusterId{ get; set; } /// /// 集群名称 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ClusterName")] public string ClusterName{ get; set; } /// /// VM的状态 虚机:虚机的状态 容器:Pod所在虚机的状态 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceStatus")] public string InstanceStatus{ get; set; } /// /// VM的可使用状态 虚机:虚机是否能够作为资源使用 容器:虚机是否能够作为资源部署POD /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceAvailableStatus")] public string InstanceAvailableStatus{ get; set; } /// /// 服务下的服务实例的状态 虚机:应用是否可用 + Agent状态 容器:Pod状态 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ServiceInstanceStatus")] public string ServiceInstanceStatus{ get; set; } /// /// 标识此instance是否已添加在tsf中 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("CountInTsf")] public long? CountInTsf{ get; set; } /// /// 机器所属部署组ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("GroupId")] public string GroupId{ get; set; } /// /// 机器所属应用ID /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ApplicationId")] public string ApplicationId{ get; set; } /// /// 机器所属应用名称 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ApplicationName")] public string ApplicationName{ get; set; } /// /// 机器实例在CVM的创建时间 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceCreatedTime")] public string InstanceCreatedTime{ get; set; } /// /// 机器实例在CVM的过期时间 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceExpiredTime")] public string InstanceExpiredTime{ get; set; } /// /// 机器实例在CVM的计费模式 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceChargeType")] public string InstanceChargeType{ get; set; } /// /// 机器实例总CPU信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceTotalCpu")] public float? InstanceTotalCpu{ get; set; } /// /// 机器实例总内存信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceTotalMem")] public float? InstanceTotalMem{ get; set; } /// /// 机器实例使用的CPU信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceUsedCpu")] public float? InstanceUsedCpu{ get; set; } /// /// 机器实例使用的内存信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceUsedMem")] public float? InstanceUsedMem{ get; set; } /// /// 机器实例Limit CPU信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceLimitCpu")] public float? InstanceLimitCpu{ get; set; } /// /// 机器实例Limit 内存信息 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceLimitMem")] public float? InstanceLimitMem{ get; set; } /// /// 包版本 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstancePkgVersion")] public string InstancePkgVersion{ get; set; } /// /// 集群类型 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ClusterType")] public string ClusterType{ get; set; } /// /// 机器实例业务状态 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("RestrictState")] public string RestrictState{ get; set; } /// /// 更新时间 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("UpdateTime")] public string UpdateTime{ get; set; } /// /// 实例执行状态 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("OperationState")] public long? OperationState{ get; set; } /// /// NamespaceId /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("NamespaceId")] public string NamespaceId{ get; set; } /// /// InstanceZoneId /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceZoneId")] public string InstanceZoneId{ get; set; } /// /// InstanceImportMode /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("InstanceImportMode")] public string InstanceImportMode{ get; set; } /// /// ApplicationType /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ApplicationType")] public string ApplicationType{ get; set; } /// /// ApplicationResourceType /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ApplicationResourceType")] public string ApplicationResourceType{ get; set; } /// /// ServiceSidecarStatus /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ServiceSidecarStatus")] public string ServiceSidecarStatus{ get; set; } /// /// GroupName /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("GroupName")] public string GroupName{ get; set; } /// /// NamespaceName /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("NamespaceName")] public string NamespaceName{ 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 + "InstanceName", this.InstanceName); this.SetParamSimple(map, prefix + "LanIp", this.LanIp); this.SetParamSimple(map, prefix + "WanIp", this.WanIp); this.SetParamSimple(map, prefix + "InstanceDesc", this.InstanceDesc); this.SetParamSimple(map, prefix + "ClusterId", this.ClusterId); this.SetParamSimple(map, prefix + "ClusterName", this.ClusterName); this.SetParamSimple(map, prefix + "InstanceStatus", this.InstanceStatus); this.SetParamSimple(map, prefix + "InstanceAvailableStatus", this.InstanceAvailableStatus); this.SetParamSimple(map, prefix + "ServiceInstanceStatus", this.ServiceInstanceStatus); this.SetParamSimple(map, prefix + "CountInTsf", this.CountInTsf); this.SetParamSimple(map, prefix + "GroupId", this.GroupId); this.SetParamSimple(map, prefix + "ApplicationId", this.ApplicationId); this.SetParamSimple(map, prefix + "ApplicationName", this.ApplicationName); this.SetParamSimple(map, prefix + "InstanceCreatedTime", this.InstanceCreatedTime); this.SetParamSimple(map, prefix + "InstanceExpiredTime", this.InstanceExpiredTime); this.SetParamSimple(map, prefix + "InstanceChargeType", this.InstanceChargeType); this.SetParamSimple(map, prefix + "InstanceTotalCpu", this.InstanceTotalCpu); this.SetParamSimple(map, prefix + "InstanceTotalMem", this.InstanceTotalMem); this.SetParamSimple(map, prefix + "InstanceUsedCpu", this.InstanceUsedCpu); this.SetParamSimple(map, prefix + "InstanceUsedMem", this.InstanceUsedMem); this.SetParamSimple(map, prefix + "InstanceLimitCpu", this.InstanceLimitCpu); this.SetParamSimple(map, prefix + "InstanceLimitMem", this.InstanceLimitMem); this.SetParamSimple(map, prefix + "InstancePkgVersion", this.InstancePkgVersion); this.SetParamSimple(map, prefix + "ClusterType", this.ClusterType); this.SetParamSimple(map, prefix + "RestrictState", this.RestrictState); this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime); this.SetParamSimple(map, prefix + "OperationState", this.OperationState); this.SetParamSimple(map, prefix + "NamespaceId", this.NamespaceId); this.SetParamSimple(map, prefix + "InstanceZoneId", this.InstanceZoneId); this.SetParamSimple(map, prefix + "InstanceImportMode", this.InstanceImportMode); this.SetParamSimple(map, prefix + "ApplicationType", this.ApplicationType); this.SetParamSimple(map, prefix + "ApplicationResourceType", this.ApplicationResourceType); this.SetParamSimple(map, prefix + "ServiceSidecarStatus", this.ServiceSidecarStatus); this.SetParamSimple(map, prefix + "GroupName", this.GroupName); this.SetParamSimple(map, prefix + "NamespaceName", this.NamespaceName); } } }