Files
g.hnyhua.cn/TencentCloud/As/V20180419/Models/ModifyAutoScalingGroupRequest.cs
2026-02-07 15:48:27 +08:00

174 lines
8.6 KiB
C#
Raw 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 ModifyAutoScalingGroupRequest : AbstractModel
{
/// <summary>
/// 伸缩组ID
/// </summary>
[JsonProperty("AutoScalingGroupId")]
public string AutoScalingGroupId{ get; set; }
/// <summary>
/// 伸缩组名称,在您账号中必须唯一。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点最大长度不能超55个字节。
/// </summary>
[JsonProperty("AutoScalingGroupName")]
public string AutoScalingGroupName{ get; set; }
/// <summary>
/// 默认冷却时间单位秒默认值为300
/// </summary>
[JsonProperty("DefaultCooldown")]
public ulong? DefaultCooldown{ get; set; }
/// <summary>
/// 期望实例数,大小介于最小实例数和最大实例数之间
/// </summary>
[JsonProperty("DesiredCapacity")]
public ulong? DesiredCapacity{ get; set; }
/// <summary>
/// 启动配置ID
/// </summary>
[JsonProperty("LaunchConfigurationId")]
public string LaunchConfigurationId{ get; set; }
/// <summary>
/// 最大实例数取值范围为0-2000。
/// </summary>
[JsonProperty("MaxSize")]
public ulong? MaxSize{ get; set; }
/// <summary>
/// 最小实例数取值范围为0-2000。
/// </summary>
[JsonProperty("MinSize")]
public ulong? MinSize{ get; set; }
/// <summary>
/// 项目ID
/// </summary>
[JsonProperty("ProjectId")]
public ulong? ProjectId{ get; set; }
/// <summary>
/// 子网ID列表
/// </summary>
[JsonProperty("SubnetIds")]
public string[] SubnetIds{ get; set; }
/// <summary>
/// 销毁策略目前长度上限为1。取值包括 OLDEST_INSTANCE 和 NEWEST_INSTANCE。
/// <br><li> OLDEST_INSTANCE 优先销毁伸缩组中最旧的实例。
/// <br><li> NEWEST_INSTANCE优先销毁伸缩组中最新的实例。
/// </summary>
[JsonProperty("TerminationPolicies")]
public string[] TerminationPolicies{ get; set; }
/// <summary>
/// VPC ID基础网络则填空字符串。修改为具体VPC ID时需指定相应的SubnetIds修改为基础网络时需指定相应的Zones。
/// </summary>
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
/// <summary>
/// 可用区列表
/// </summary>
[JsonProperty("Zones")]
public string[] Zones{ get; set; }
/// <summary>
/// 重试策略,取值包括 IMMEDIATE_RETRY、 INCREMENTAL_INTERVALS、NO_RETRY默认取值为 IMMEDIATE_RETRY。
/// <br><li> IMMEDIATE_RETRY立即重试在较短时间内快速重试连续失败超过一定次数5次后不再重试。
/// <br><li> INCREMENTAL_INTERVALS间隔递增重试随着连续失败次数的增加重试间隔逐渐增大重试间隔从秒级到1天不等。
/// <br><li> NO_RETRY不进行重试直到再次收到用户调用或者告警信息后才会重试。
/// </summary>
[JsonProperty("RetryPolicy")]
public string RetryPolicy{ get; set; }
/// <summary>
/// 可用区校验策略,取值包括 ALL 和 ANY默认取值为ANY。在伸缩组实际变更资源相关字段时启动配置、可用区、子网发挥作用。
/// <br><li> ALL所有可用区Zone或子网SubnetId都可用则通过校验否则校验报错。
/// <br><li> ANY存在任何一个可用区Zone或子网SubnetId可用则通过校验否则校验报错。
///
/// 可用区或子网不可用的常见原因包括该可用区CVM实例类型售罄、该可用区CBS云盘售罄、该可用区配额不足、该子网IP不足等。
/// 如果 Zones/SubnetIds 中可用区或者子网不存在,则无论 ZonesCheckPolicy 采用何种取值,都会校验报错。
/// </summary>
[JsonProperty("ZonesCheckPolicy")]
public string ZonesCheckPolicy{ get; set; }
/// <summary>
/// 服务设置,包括云监控不健康替换等服务设置。
/// </summary>
[JsonProperty("ServiceSettings")]
public ServiceSettings ServiceSettings{ get; set; }
/// <summary>
/// 实例具有IPv6地址数量的配置取值包括0、1。
/// </summary>
[JsonProperty("Ipv6AddressCount")]
public long? Ipv6AddressCount{ get; set; }
/// <summary>
/// 多可用区/子网策略,取值包括 PRIORITY 和 EQUALITY。
/// <br><li> PRIORITY按照可用区/子网列表的顺序,作为优先级来尝试创建实例,如果优先级最高的可用区/子网可以创建成功,则总在该可用区/子网创建。
/// <br><li> EQUALITY每次选择当前实例数最少的可用区/子网进行扩容,使得每个可用区/子网都有机会发生扩容,多次扩容出的实例会打散到多个可用区/子网。
///
/// 与本策略相关的注意点:
/// <br><li> 当伸缩组为基础网络时本策略适用于多可用区当伸缩组为VPC网络时本策略适用于多子网此时不再考虑可用区因素例如四个子网ABCD其中ABC处于可用区1D处于可用区2此时考虑子网ABCD进行排序而不考虑可用区1、2。
/// <br><li> 本策略适用于多可用区/子网,不适用于启动配置的多机型。多机型按照优先级策略进行选择。
/// <br><li> 创建实例时,先保证多机型的策略,后保证多可用区/子网的策略。例如多机型A、B多子网1、2、3按照PRIORITY策略会按照A1、A2、A3、B1、B2、B3 进行尝试如果A1售罄会尝试A2而非B1
/// <br><li> 无论使用哪种策略,单次伸缩活动总是优先保持使用一种具体配置(机型 * 可用区/子网)。
/// </summary>
[JsonProperty("MultiZoneSubnetPolicy")]
public string MultiZoneSubnetPolicy{ 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 + "AutoScalingGroupId", this.AutoScalingGroupId);
this.SetParamSimple(map, prefix + "AutoScalingGroupName", this.AutoScalingGroupName);
this.SetParamSimple(map, prefix + "DefaultCooldown", this.DefaultCooldown);
this.SetParamSimple(map, prefix + "DesiredCapacity", this.DesiredCapacity);
this.SetParamSimple(map, prefix + "LaunchConfigurationId", this.LaunchConfigurationId);
this.SetParamSimple(map, prefix + "MaxSize", this.MaxSize);
this.SetParamSimple(map, prefix + "MinSize", this.MinSize);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamArraySimple(map, prefix + "SubnetIds.", this.SubnetIds);
this.SetParamArraySimple(map, prefix + "TerminationPolicies.", this.TerminationPolicies);
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
this.SetParamArraySimple(map, prefix + "Zones.", this.Zones);
this.SetParamSimple(map, prefix + "RetryPolicy", this.RetryPolicy);
this.SetParamSimple(map, prefix + "ZonesCheckPolicy", this.ZonesCheckPolicy);
this.SetParamObj(map, prefix + "ServiceSettings.", this.ServiceSettings);
this.SetParamSimple(map, prefix + "Ipv6AddressCount", this.Ipv6AddressCount);
this.SetParamSimple(map, prefix + "MultiZoneSubnetPolicy", this.MultiZoneSubnetPolicy);
}
}
}