Files
2026-02-07 15:48:27 +08:00

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