/* * 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.As.V20180419.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class Instance : AbstractModel { /// /// 实例ID /// [JsonProperty("InstanceId")] public string InstanceId{ get; set; } /// /// 伸缩组ID /// [JsonProperty("AutoScalingGroupId")] public string AutoScalingGroupId{ get; set; } /// /// 启动配置ID /// [JsonProperty("LaunchConfigurationId")] public string LaunchConfigurationId{ get; set; } /// /// 启动配置名称 /// [JsonProperty("LaunchConfigurationName")] public string LaunchConfigurationName{ get; set; } /// /// 生命周期状态,取值如下:
///
  • IN_SERVICE:运行中 ///
  • CREATING:创建中 ///
  • CREATION_FAILED:创建失败 ///
  • TERMINATING:中止中 ///
  • TERMINATION_FAILED:中止失败 ///
  • ATTACHING:绑定中 ///
  • DETACHING:解绑中 ///
  • ATTACHING_LB:绑定LB中
  • DETACHING_LB:解绑LB中 ///
  • STARTING:开机中 ///
  • START_FAILED:开机失败 ///
  • STOPPING:关机中 ///
  • STOP_FAILED:关机失败 ///
  • STOPPED:已关机 ///
  • [JsonProperty("LifeCycleState")] public string LifeCycleState{ get; set; } /// /// 健康状态,取值包括HEALTHY和UNHEALTHY /// [JsonProperty("HealthStatus")] public string HealthStatus{ get; set; } /// /// 是否加入缩容保护 /// [JsonProperty("ProtectedFromScaleIn")] public bool? ProtectedFromScaleIn{ get; set; } /// /// 可用区 /// [JsonProperty("Zone")] public string Zone{ get; set; } /// /// 创建类型,取值包括AUTO_CREATION, MANUAL_ATTACHING。 /// [JsonProperty("CreationType")] public string CreationType{ get; set; } /// /// 实例加入时间 /// [JsonProperty("AddTime")] public string AddTime{ get; set; } /// /// 实例类型 /// [JsonProperty("InstanceType")] public string InstanceType{ get; set; } /// /// 版本号 /// [JsonProperty("VersionNumber")] public long? VersionNumber{ get; set; } /// /// 伸缩组名称 /// [JsonProperty("AutoScalingGroupName")] public string AutoScalingGroupName{ 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 + "AutoScalingGroupId", this.AutoScalingGroupId); this.SetParamSimple(map, prefix + "LaunchConfigurationId", this.LaunchConfigurationId); this.SetParamSimple(map, prefix + "LaunchConfigurationName", this.LaunchConfigurationName); this.SetParamSimple(map, prefix + "LifeCycleState", this.LifeCycleState); this.SetParamSimple(map, prefix + "HealthStatus", this.HealthStatus); this.SetParamSimple(map, prefix + "ProtectedFromScaleIn", this.ProtectedFromScaleIn); this.SetParamSimple(map, prefix + "Zone", this.Zone); this.SetParamSimple(map, prefix + "CreationType", this.CreationType); this.SetParamSimple(map, prefix + "AddTime", this.AddTime); this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType); this.SetParamSimple(map, prefix + "VersionNumber", this.VersionNumber); this.SetParamSimple(map, prefix + "AutoScalingGroupName", this.AutoScalingGroupName); } } }