tencentcloud-sdk-as 3.0.1174 → 3.0.1186
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180419/models.rb +145 -48
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c04f39fe07b4cd6c13370c156d9e380a748ca59e
|
|
4
|
+
data.tar.gz: 5a17c585104b9782acdd8891e7fd65c502de1bab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 538d80246920aad55b2e043d58b0d6688462a8f68e1791cb06f0d8c10d8b41193cd34878072259c9e03518f4a2fe1fc7c51a95ac0fe446cb90fad237e54516b1
|
|
7
|
+
data.tar.gz: d71b220f97d89de39968b5e0bc20cdd272a76f1505766a231fd5d8c65d062330e9bdbbf08dae8be5e208b9ef390c6e0b7f9f3c4b0a2529cff05b81efe0250e76
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1186
|
data/lib/v20180419/models.rb
CHANGED
|
@@ -70,8 +70,8 @@ module TencentCloud
|
|
|
70
70
|
|
|
71
71
|
attr_accessor :AutoScalingGroupId, :ActivityId, :ActivityType, :StatusCode, :StatusMessage, :Cause, :Description, :StartTime, :EndTime, :CreatedTime, :ActivityRelatedInstanceSet, :StatusMessageSimplified, :LifecycleActionResultSet, :DetailedStatusMessageSet, :InvocationResultSet, :RelatedInstanceSet
|
|
72
72
|
extend Gem::Deprecate
|
|
73
|
-
deprecate :ActivityRelatedInstanceSet, :none, 2025,
|
|
74
|
-
deprecate :ActivityRelatedInstanceSet=, :none, 2025,
|
|
73
|
+
deprecate :ActivityRelatedInstanceSet, :none, 2025, 12
|
|
74
|
+
deprecate :ActivityRelatedInstanceSet=, :none, 2025, 12
|
|
75
75
|
|
|
76
76
|
def initialize(autoscalinggroupid=nil, activityid=nil, activitytype=nil, statuscode=nil, statusmessage=nil, cause=nil, description=nil, starttime=nil, endtime=nil, createdtime=nil, activityrelatedinstanceset=nil, statusmessagesimplified=nil, lifecycleactionresultset=nil, detailedstatusmessageset=nil, invocationresultset=nil, relatedinstanceset=nil)
|
|
77
77
|
@AutoScalingGroupId = autoscalinggroupid
|
|
@@ -417,10 +417,14 @@ module TencentCloud
|
|
|
417
417
|
# @type CapacityRebalance: Boolean
|
|
418
418
|
# @param InstanceNameIndexSettings: 实例名称序号相关设置。
|
|
419
419
|
# @type InstanceNameIndexSettings: :class:`Tencentcloud::As.v20180419.models.InstanceNameIndexSettings`
|
|
420
|
+
# @param HostNameIndexSettings: 实例主机名序号相关设置。
|
|
421
|
+
# @type HostNameIndexSettings: :class:`Tencentcloud::As.v20180419.models.HostNameIndexSettings`
|
|
422
|
+
# @param ConcurrentScaleOutForDesiredCapacity: 匹配期望数并发扩容功能,不能在InstanceAllocationPolicy为竞价混合模式时设置,也不能在ScalingMode为扩容优先开机模式时设置。目前仅支持两个匹配期望数扩容活动并发进行,不支持指定数量扩容、缩容等其他类型活动并发。默认值为FALSE,表示不开启。
|
|
423
|
+
# @type ConcurrentScaleOutForDesiredCapacity: Boolean
|
|
420
424
|
|
|
421
|
-
attr_accessor :AutoScalingGroupId, :AutoScalingGroupName, :AutoScalingGroupStatus, :CreatedTime, :DefaultCooldown, :DesiredCapacity, :EnabledStatus, :ForwardLoadBalancerSet, :InstanceCount, :InServiceInstanceCount, :LaunchConfigurationId, :LaunchConfigurationName, :LoadBalancerIdSet, :MaxSize, :MinSize, :ProjectId, :SubnetIdSet, :TerminationPolicySet, :VpcId, :ZoneSet, :RetryPolicy, :InActivityStatus, :Tags, :ServiceSettings, :Ipv6AddressCount, :MultiZoneSubnetPolicy, :HealthCheckType, :LoadBalancerHealthCheckGracePeriod, :InstanceAllocationPolicy, :SpotMixedAllocationPolicy, :CapacityRebalance, :InstanceNameIndexSettings
|
|
425
|
+
attr_accessor :AutoScalingGroupId, :AutoScalingGroupName, :AutoScalingGroupStatus, :CreatedTime, :DefaultCooldown, :DesiredCapacity, :EnabledStatus, :ForwardLoadBalancerSet, :InstanceCount, :InServiceInstanceCount, :LaunchConfigurationId, :LaunchConfigurationName, :LoadBalancerIdSet, :MaxSize, :MinSize, :ProjectId, :SubnetIdSet, :TerminationPolicySet, :VpcId, :ZoneSet, :RetryPolicy, :InActivityStatus, :Tags, :ServiceSettings, :Ipv6AddressCount, :MultiZoneSubnetPolicy, :HealthCheckType, :LoadBalancerHealthCheckGracePeriod, :InstanceAllocationPolicy, :SpotMixedAllocationPolicy, :CapacityRebalance, :InstanceNameIndexSettings, :HostNameIndexSettings, :ConcurrentScaleOutForDesiredCapacity
|
|
422
426
|
|
|
423
|
-
def initialize(autoscalinggroupid=nil, autoscalinggroupname=nil, autoscalinggroupstatus=nil, createdtime=nil, defaultcooldown=nil, desiredcapacity=nil, enabledstatus=nil, forwardloadbalancerset=nil, instancecount=nil, inserviceinstancecount=nil, launchconfigurationid=nil, launchconfigurationname=nil, loadbalanceridset=nil, maxsize=nil, minsize=nil, projectid=nil, subnetidset=nil, terminationpolicyset=nil, vpcid=nil, zoneset=nil, retrypolicy=nil, inactivitystatus=nil, tags=nil, servicesettings=nil, ipv6addresscount=nil, multizonesubnetpolicy=nil, healthchecktype=nil, loadbalancerhealthcheckgraceperiod=nil, instanceallocationpolicy=nil, spotmixedallocationpolicy=nil, capacityrebalance=nil, instancenameindexsettings=nil)
|
|
427
|
+
def initialize(autoscalinggroupid=nil, autoscalinggroupname=nil, autoscalinggroupstatus=nil, createdtime=nil, defaultcooldown=nil, desiredcapacity=nil, enabledstatus=nil, forwardloadbalancerset=nil, instancecount=nil, inserviceinstancecount=nil, launchconfigurationid=nil, launchconfigurationname=nil, loadbalanceridset=nil, maxsize=nil, minsize=nil, projectid=nil, subnetidset=nil, terminationpolicyset=nil, vpcid=nil, zoneset=nil, retrypolicy=nil, inactivitystatus=nil, tags=nil, servicesettings=nil, ipv6addresscount=nil, multizonesubnetpolicy=nil, healthchecktype=nil, loadbalancerhealthcheckgraceperiod=nil, instanceallocationpolicy=nil, spotmixedallocationpolicy=nil, capacityrebalance=nil, instancenameindexsettings=nil, hostnameindexsettings=nil, concurrentscaleoutfordesiredcapacity=nil)
|
|
424
428
|
@AutoScalingGroupId = autoscalinggroupid
|
|
425
429
|
@AutoScalingGroupName = autoscalinggroupname
|
|
426
430
|
@AutoScalingGroupStatus = autoscalinggroupstatus
|
|
@@ -453,6 +457,8 @@ module TencentCloud
|
|
|
453
457
|
@SpotMixedAllocationPolicy = spotmixedallocationpolicy
|
|
454
458
|
@CapacityRebalance = capacityrebalance
|
|
455
459
|
@InstanceNameIndexSettings = instancenameindexsettings
|
|
460
|
+
@HostNameIndexSettings = hostnameindexsettings
|
|
461
|
+
@ConcurrentScaleOutForDesiredCapacity = concurrentscaleoutfordesiredcapacity
|
|
456
462
|
end
|
|
457
463
|
|
|
458
464
|
def deserialize(params)
|
|
@@ -511,6 +517,11 @@ module TencentCloud
|
|
|
511
517
|
@InstanceNameIndexSettings = InstanceNameIndexSettings.new
|
|
512
518
|
@InstanceNameIndexSettings.deserialize(params['InstanceNameIndexSettings'])
|
|
513
519
|
end
|
|
520
|
+
unless params['HostNameIndexSettings'].nil?
|
|
521
|
+
@HostNameIndexSettings = HostNameIndexSettings.new
|
|
522
|
+
@HostNameIndexSettings.deserialize(params['HostNameIndexSettings'])
|
|
523
|
+
end
|
|
524
|
+
@ConcurrentScaleOutForDesiredCapacity = params['ConcurrentScaleOutForDesiredCapacity']
|
|
514
525
|
end
|
|
515
526
|
end
|
|
516
527
|
|
|
@@ -867,10 +878,14 @@ module TencentCloud
|
|
|
867
878
|
# @type CapacityRebalance: Boolean
|
|
868
879
|
# @param InstanceNameIndexSettings: 实例名称序号相关设置。若不指定该参数,则默认不开启。开启后为伸缩组内自动创建的实例名称添加递增的数字序号。
|
|
869
880
|
# @type InstanceNameIndexSettings: :class:`Tencentcloud::As.v20180419.models.InstanceNameIndexSettings`
|
|
881
|
+
# @param HostNameIndexSettings: 实例主机名序号相关设置。若不指定该参数,则默认不开启。开启后为伸缩组内自动创建的实例主机名添加递增的数字序号。
|
|
882
|
+
# @type HostNameIndexSettings: :class:`Tencentcloud::As.v20180419.models.HostNameIndexSettings`
|
|
883
|
+
# @param ConcurrentScaleOutForDesiredCapacity: 匹配期望数并发扩容功能,不能在InstanceAllocationPolicy为竞价混合模式时设置,也不能在ScalingMode为扩容优先开机模式时设置。目前仅支持两个匹配期望数扩容活动并发进行,不支持指定数量扩容、缩容等其他类型活动并发。默认值为FALSE,表示不开启。
|
|
884
|
+
# @type ConcurrentScaleOutForDesiredCapacity: Boolean
|
|
870
885
|
|
|
871
|
-
attr_accessor :AutoScalingGroupName, :LaunchConfigurationId, :MaxSize, :MinSize, :VpcId, :DefaultCooldown, :DesiredCapacity, :LoadBalancerIds, :ProjectId, :ForwardLoadBalancers, :SubnetIds, :TerminationPolicies, :Zones, :RetryPolicy, :ZonesCheckPolicy, :Tags, :ServiceSettings, :Ipv6AddressCount, :MultiZoneSubnetPolicy, :HealthCheckType, :LoadBalancerHealthCheckGracePeriod, :InstanceAllocationPolicy, :SpotMixedAllocationPolicy, :CapacityRebalance, :InstanceNameIndexSettings
|
|
886
|
+
attr_accessor :AutoScalingGroupName, :LaunchConfigurationId, :MaxSize, :MinSize, :VpcId, :DefaultCooldown, :DesiredCapacity, :LoadBalancerIds, :ProjectId, :ForwardLoadBalancers, :SubnetIds, :TerminationPolicies, :Zones, :RetryPolicy, :ZonesCheckPolicy, :Tags, :ServiceSettings, :Ipv6AddressCount, :MultiZoneSubnetPolicy, :HealthCheckType, :LoadBalancerHealthCheckGracePeriod, :InstanceAllocationPolicy, :SpotMixedAllocationPolicy, :CapacityRebalance, :InstanceNameIndexSettings, :HostNameIndexSettings, :ConcurrentScaleOutForDesiredCapacity
|
|
872
887
|
|
|
873
|
-
def initialize(autoscalinggroupname=nil, launchconfigurationid=nil, maxsize=nil, minsize=nil, vpcid=nil, defaultcooldown=nil, desiredcapacity=nil, loadbalancerids=nil, projectid=nil, forwardloadbalancers=nil, subnetids=nil, terminationpolicies=nil, zones=nil, retrypolicy=nil, zonescheckpolicy=nil, tags=nil, servicesettings=nil, ipv6addresscount=nil, multizonesubnetpolicy=nil, healthchecktype=nil, loadbalancerhealthcheckgraceperiod=nil, instanceallocationpolicy=nil, spotmixedallocationpolicy=nil, capacityrebalance=nil, instancenameindexsettings=nil)
|
|
888
|
+
def initialize(autoscalinggroupname=nil, launchconfigurationid=nil, maxsize=nil, minsize=nil, vpcid=nil, defaultcooldown=nil, desiredcapacity=nil, loadbalancerids=nil, projectid=nil, forwardloadbalancers=nil, subnetids=nil, terminationpolicies=nil, zones=nil, retrypolicy=nil, zonescheckpolicy=nil, tags=nil, servicesettings=nil, ipv6addresscount=nil, multizonesubnetpolicy=nil, healthchecktype=nil, loadbalancerhealthcheckgraceperiod=nil, instanceallocationpolicy=nil, spotmixedallocationpolicy=nil, capacityrebalance=nil, instancenameindexsettings=nil, hostnameindexsettings=nil, concurrentscaleoutfordesiredcapacity=nil)
|
|
874
889
|
@AutoScalingGroupName = autoscalinggroupname
|
|
875
890
|
@LaunchConfigurationId = launchconfigurationid
|
|
876
891
|
@MaxSize = maxsize
|
|
@@ -896,6 +911,8 @@ module TencentCloud
|
|
|
896
911
|
@SpotMixedAllocationPolicy = spotmixedallocationpolicy
|
|
897
912
|
@CapacityRebalance = capacityrebalance
|
|
898
913
|
@InstanceNameIndexSettings = instancenameindexsettings
|
|
914
|
+
@HostNameIndexSettings = hostnameindexsettings
|
|
915
|
+
@ConcurrentScaleOutForDesiredCapacity = concurrentscaleoutfordesiredcapacity
|
|
899
916
|
end
|
|
900
917
|
|
|
901
918
|
def deserialize(params)
|
|
@@ -947,6 +964,11 @@ module TencentCloud
|
|
|
947
964
|
@InstanceNameIndexSettings = InstanceNameIndexSettings.new
|
|
948
965
|
@InstanceNameIndexSettings.deserialize(params['InstanceNameIndexSettings'])
|
|
949
966
|
end
|
|
967
|
+
unless params['HostNameIndexSettings'].nil?
|
|
968
|
+
@HostNameIndexSettings = HostNameIndexSettings.new
|
|
969
|
+
@HostNameIndexSettings.deserialize(params['HostNameIndexSettings'])
|
|
970
|
+
end
|
|
971
|
+
@ConcurrentScaleOutForDesiredCapacity = params['ConcurrentScaleOutForDesiredCapacity']
|
|
950
972
|
end
|
|
951
973
|
end
|
|
952
974
|
|
|
@@ -1448,41 +1470,51 @@ module TencentCloud
|
|
|
1448
1470
|
# @type AutoScalingGroupId: String
|
|
1449
1471
|
# @param ScheduledActionName: 定时任务名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。同一伸缩组下必须唯一。
|
|
1450
1472
|
# @type ScheduledActionName: String
|
|
1451
|
-
# @param MaxSize: 当定时任务触发时,设置的伸缩组最大实例数。
|
|
1452
|
-
# @type MaxSize: Integer
|
|
1453
1473
|
# @param MinSize: 当定时任务触发时,设置的伸缩组最小实例数。
|
|
1454
1474
|
# @type MinSize: Integer
|
|
1455
|
-
# @param DesiredCapacity: 当定时任务触发时,设置的伸缩组期望实例数。
|
|
1456
|
-
# @type DesiredCapacity: Integer
|
|
1457
1475
|
# @param StartTime: 定时任务的首次触发时间,取值为`北京时间`(UTC+8),按照`ISO8601`标准,格式:`YYYY-MM-DDThh:mm:ss+08:00`。
|
|
1458
1476
|
# @type StartTime: String
|
|
1477
|
+
# @param DesiredCapacity: 当定时任务触发时,设置的伸缩组期望实例数。
|
|
1478
|
+
# @type DesiredCapacity: Integer
|
|
1479
|
+
# @param MaxSize: 当定时任务触发时,设置的伸缩组最大实例数。
|
|
1480
|
+
# @type MaxSize: Integer
|
|
1459
1481
|
# @param EndTime: 定时任务的结束时间,取值为`北京时间`(UTC+8),按照`ISO8601`标准,格式:`YYYY-MM-DDThh:mm:ss+08:00`。<br><br>此参数与`Recurrence`需要同时指定,到达结束时间之后,定时任务将不再生效。
|
|
1460
1482
|
# @type EndTime: String
|
|
1461
1483
|
# @param Recurrence: 定时任务的重复方式。为标准 Cron 格式。定时任务中的 [Recurrence参数限制](https://cloud.tencent.com/document/product/377/88119) 为5个字段,由空格分开,结构为:分,小时,日期,月份,星期。此参数与`EndTime`需要同时指定。
|
|
1462
1484
|
# @type Recurrence: String
|
|
1485
|
+
# @param DisableUpdateDesiredCapacity: 停用期望数更新。默认值为 False,表示定时任务触发时期望实例数正常更新。
|
|
1486
|
+
# 该值为 True 时,定时任务触发时不会主动修改期望实例数,但可能会因最大最小值机制修改期望实例数。
|
|
1487
|
+
# 以下案例的前提都是停用期望数更新为 True:
|
|
1488
|
+
|
|
1489
|
+
# - 定时任务触发时,原期望数为 5,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 5 小于最小值 10,最终新期望数为 10。
|
|
1490
|
+
# - 定时任务触发时,原期望数为 25,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 25 大于最大值 20,最终新期望数为 20。
|
|
1491
|
+
# - 定时任务触发时,原期望数为 13,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,期望数保持为 13 。
|
|
1492
|
+
# @type DisableUpdateDesiredCapacity: Boolean
|
|
1463
1493
|
|
|
1464
|
-
attr_accessor :AutoScalingGroupId, :ScheduledActionName, :
|
|
1494
|
+
attr_accessor :AutoScalingGroupId, :ScheduledActionName, :MinSize, :StartTime, :DesiredCapacity, :MaxSize, :EndTime, :Recurrence, :DisableUpdateDesiredCapacity
|
|
1465
1495
|
|
|
1466
|
-
def initialize(autoscalinggroupid=nil, scheduledactionname=nil,
|
|
1496
|
+
def initialize(autoscalinggroupid=nil, scheduledactionname=nil, minsize=nil, starttime=nil, desiredcapacity=nil, maxsize=nil, endtime=nil, recurrence=nil, disableupdatedesiredcapacity=nil)
|
|
1467
1497
|
@AutoScalingGroupId = autoscalinggroupid
|
|
1468
1498
|
@ScheduledActionName = scheduledactionname
|
|
1469
|
-
@MaxSize = maxsize
|
|
1470
1499
|
@MinSize = minsize
|
|
1471
|
-
@DesiredCapacity = desiredcapacity
|
|
1472
1500
|
@StartTime = starttime
|
|
1501
|
+
@DesiredCapacity = desiredcapacity
|
|
1502
|
+
@MaxSize = maxsize
|
|
1473
1503
|
@EndTime = endtime
|
|
1474
1504
|
@Recurrence = recurrence
|
|
1505
|
+
@DisableUpdateDesiredCapacity = disableupdatedesiredcapacity
|
|
1475
1506
|
end
|
|
1476
1507
|
|
|
1477
1508
|
def deserialize(params)
|
|
1478
1509
|
@AutoScalingGroupId = params['AutoScalingGroupId']
|
|
1479
1510
|
@ScheduledActionName = params['ScheduledActionName']
|
|
1480
|
-
@MaxSize = params['MaxSize']
|
|
1481
1511
|
@MinSize = params['MinSize']
|
|
1482
|
-
@DesiredCapacity = params['DesiredCapacity']
|
|
1483
1512
|
@StartTime = params['StartTime']
|
|
1513
|
+
@DesiredCapacity = params['DesiredCapacity']
|
|
1514
|
+
@MaxSize = params['MaxSize']
|
|
1484
1515
|
@EndTime = params['EndTime']
|
|
1485
1516
|
@Recurrence = params['Recurrence']
|
|
1517
|
+
@DisableUpdateDesiredCapacity = params['DisableUpdateDesiredCapacity']
|
|
1486
1518
|
end
|
|
1487
1519
|
end
|
|
1488
1520
|
|
|
@@ -2751,8 +2783,8 @@ module TencentCloud
|
|
|
2751
2783
|
|
|
2752
2784
|
attr_accessor :SecurityService, :MonitorService, :AutomationService, :AutomationToolsService
|
|
2753
2785
|
extend Gem::Deprecate
|
|
2754
|
-
deprecate :AutomationService, :none, 2025,
|
|
2755
|
-
deprecate :AutomationService=, :none, 2025,
|
|
2786
|
+
deprecate :AutomationService, :none, 2025, 12
|
|
2787
|
+
deprecate :AutomationService=, :none, 2025, 12
|
|
2756
2788
|
|
|
2757
2789
|
def initialize(securityservice=nil, monitorservice=nil, automationservice=nil, automationtoolsservice=nil)
|
|
2758
2790
|
@SecurityService = securityservice
|
|
@@ -3011,6 +3043,42 @@ module TencentCloud
|
|
|
3011
3043
|
end
|
|
3012
3044
|
end
|
|
3013
3045
|
|
|
3046
|
+
# 实例主机名称序号相关设置。
|
|
3047
|
+
class HostNameIndexSettings < TencentCloud::Common::AbstractModel
|
|
3048
|
+
# @param Enabled: 是否开启实例主机名创建序号,默认不开启。取值范围:
|
|
3049
|
+
|
|
3050
|
+
# TRUE:表示开启实例主机名创建序号
|
|
3051
|
+
# FALSE:表示不开启实例主机名创建序号
|
|
3052
|
+
# @type Enabled: Boolean
|
|
3053
|
+
# @param BeginIndex: 初始序号。取值范围与 IndexLength 参数有关:
|
|
3054
|
+
# - IndexLength 为 0 时,取值范围为 [0, 99999999]。
|
|
3055
|
+
# - IndexLength 为 [1, 8] 时,取值范围为为 [0, 10^IndexLength-1],最大值即为指定位数的最大数字。
|
|
3056
|
+
# 初始序号默认值如下:
|
|
3057
|
+
# - 首次启用递增序号:初始序号默认值为 0 ( 展示位数与 IndexLength 有关,例如 IndexLength 为 4,展示值为 0000)
|
|
3058
|
+
# - 非首次开启递增序号:顺延之前的递增序号,例如上次使用递增至序号 069,则新的初始序号默认值为 070。
|
|
3059
|
+
# 注意:修改初始序号可能会造成伸缩组内序号重复。
|
|
3060
|
+
# @type BeginIndex: Integer
|
|
3061
|
+
# @param IndexLength: 递增序号长度,默认为0,表示不指定序号长度。 取值范围:0-8,最大为整数8。
|
|
3062
|
+
# - 长度设置为3,序号展示形式为:000、001、002 ... 010、011 ... 100 ... 999,序号上限为999
|
|
3063
|
+
# - 长度设置为0,序号展示形式为:0、1、2 ... 10、11 ... 100 ... 1000 ...10000 ... 99999999,序号上限为99999999
|
|
3064
|
+
# 注意:递增序号持续超出上限会导致扩容失败,请不要设置过小的递增序号长度。
|
|
3065
|
+
# @type IndexLength: Integer
|
|
3066
|
+
|
|
3067
|
+
attr_accessor :Enabled, :BeginIndex, :IndexLength
|
|
3068
|
+
|
|
3069
|
+
def initialize(enabled=nil, beginindex=nil, indexlength=nil)
|
|
3070
|
+
@Enabled = enabled
|
|
3071
|
+
@BeginIndex = beginindex
|
|
3072
|
+
@IndexLength = indexlength
|
|
3073
|
+
end
|
|
3074
|
+
|
|
3075
|
+
def deserialize(params)
|
|
3076
|
+
@Enabled = params['Enabled']
|
|
3077
|
+
@BeginIndex = params['BeginIndex']
|
|
3078
|
+
@IndexLength = params['IndexLength']
|
|
3079
|
+
end
|
|
3080
|
+
end
|
|
3081
|
+
|
|
3014
3082
|
# 云服务器主机名(HostName)的相关设置
|
|
3015
3083
|
class HostNameSettings < TencentCloud::Common::AbstractModel
|
|
3016
3084
|
# @param HostName: 云服务器的主机名。
|
|
@@ -3025,18 +3093,16 @@ module TencentCloud
|
|
|
3025
3093
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3026
3094
|
# @type HostNameStyle: String
|
|
3027
3095
|
# @param HostNameSuffix: 云服务器的主机名后缀。
|
|
3028
|
-
#
|
|
3029
|
-
# <li> 点号(.)和短横线(-)不能作为 HostNameSuffix 的首尾字符,不能连续使用。</li>
|
|
3096
|
+
# <li> 点号(.)和短横线(-)不能作为 HostNameSuffix 的尾字符,不能连续使用。</li>
|
|
3030
3097
|
# <li> 不支持 Windows 实例。</li>
|
|
3031
3098
|
# <li>其他类型(Linux 等)实例:字符长度为[1, 39],且与 HostName 的长度和不能超过 41,允许支持多个点号,点之间为一段,每段允许字母(不限制大小写)、数字和短横线(-)组成。</li>
|
|
3032
|
-
# 假设后缀名称为 suffix,原主机名为 test.0,最终主机名为 test.0.suffix。
|
|
3033
3099
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3034
3100
|
# @type HostNameSuffix: String
|
|
3035
|
-
# @param HostNameDelimiter:
|
|
3036
|
-
#
|
|
3037
|
-
#
|
|
3038
|
-
|
|
3039
|
-
#
|
|
3101
|
+
# @param HostNameDelimiter: 云服务器的主机名分隔符。默认的分隔符是点号(.),可选短横线(-)或空字符串。
|
|
3102
|
+
# 分隔符用于拼接主机名,递增序号,后缀。假设主机名为 testGpu4090 ,递增序号为 0007,后缀为 server:
|
|
3103
|
+
# - 分隔符为英文点号(.),最终拼接为 testGpu4090.007.server
|
|
3104
|
+
# - 分隔符为短横线(-),最终拼接为 testGpu4090-007-server
|
|
3105
|
+
# - 分隔符为空字符串,最终拼接为 testGpu4090007server
|
|
3040
3106
|
# @type HostNameDelimiter: String
|
|
3041
3107
|
|
|
3042
3108
|
attr_accessor :HostName, :HostNameStyle, :HostNameSuffix, :HostNameDelimiter
|
|
@@ -3233,19 +3299,19 @@ module TencentCloud
|
|
|
3233
3299
|
# **TRUE**:表示开启实例创建序号; **FALSE**:表示不开启实例创建序号
|
|
3234
3300
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3235
3301
|
# @type Enabled: Boolean
|
|
3236
|
-
# @param BeginIndex:
|
|
3237
|
-
|
|
3238
|
-
#
|
|
3239
|
-
|
|
3240
|
-
#
|
|
3241
|
-
#
|
|
3242
|
-
#
|
|
3302
|
+
# @param BeginIndex: 初始序号。取值范围与 IndexLength 参数有关:
|
|
3303
|
+
# - IndexLength 为 0 时,取值范围为 [0, 99999999]。
|
|
3304
|
+
# - IndexLength 为 [1, 8] 时,取值范围为为 [0, 10^IndexLength-1],最大值即为指定位数的最大数字。
|
|
3305
|
+
# 初始序号默认值如下:
|
|
3306
|
+
# - 首次启用递增序号:初始序号默认值为 0 ( 展示位数与 IndexLength 有关,例如 IndexLength 为 4,展示值为 0000)
|
|
3307
|
+
# - 非首次开启递增序号:顺延之前的递增序号,例如上次使用递增至序号 069,则新的初始序号默认值为 070。
|
|
3308
|
+
# 注意:修改初始序号可能会造成伸缩组内序号重复。
|
|
3243
3309
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3244
3310
|
# @type BeginIndex: Integer
|
|
3245
|
-
# @param IndexLength:
|
|
3246
|
-
|
|
3247
|
-
#
|
|
3248
|
-
#
|
|
3311
|
+
# @param IndexLength: 递增序号长度,默认为0,表示不指定序号长度。 取值范围:0-8,最大为整数8。
|
|
3312
|
+
# - 长度设置为3,序号展示形式为:000、001、002 ... 010、011 ... 100 ... 999,序号上限为999
|
|
3313
|
+
# - 长度设置为0,序号展示形式为:0、1、2 ... 10、11 ... 100 ... 1000 ...10000 ... 99999999,序号上限为99999999
|
|
3314
|
+
# 注意:递增序号持续超出上限会导致扩容失败,请不要设置过小的递增序号长度。
|
|
3249
3315
|
# @type IndexLength: Integer
|
|
3250
3316
|
|
|
3251
3317
|
attr_accessor :Enabled, :BeginIndex, :IndexLength
|
|
@@ -3274,13 +3340,13 @@ module TencentCloud
|
|
|
3274
3340
|
# UNIQUE,入参所填的 InstanceName 相当于实例名前缀,AS 和 CVM 会对其进行拓展,伸缩组中实例的 InstanceName 可以保证唯一。
|
|
3275
3341
|
# @type InstanceNameStyle: String
|
|
3276
3342
|
# @param InstanceNameSuffix: 云服务器实例名后缀。字符长度为[1,105],且与 InstanceName 的长度和不能超过107。
|
|
3277
|
-
|
|
3278
|
-
# 假设后缀名称为 suffix,原实例名为 test.0,最终实例名为 test.0.suffix。
|
|
3279
3343
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3280
3344
|
# @type InstanceNameSuffix: String
|
|
3281
|
-
# @param InstanceNameDelimiter:
|
|
3282
|
-
|
|
3283
|
-
#
|
|
3345
|
+
# @param InstanceNameDelimiter: 云服务器的实例名分隔符。默认的分隔符是点号(.),可选短横线(-)或空字符串。
|
|
3346
|
+
# 分隔符用于拼接实例名,递增序号,后缀。假设实例名为 testGpu4090 ,递增序号为 0007,后缀为 server:
|
|
3347
|
+
# - 分隔符为英文点号(.),最终拼接为 testGpu4090.007.server
|
|
3348
|
+
# - 分隔符为短横线(-),最终拼接为 testGpu4090-007-server
|
|
3349
|
+
# - 分隔符为空字符串,最终拼接为 testGpu4090007server
|
|
3284
3350
|
# @type InstanceNameDelimiter: String
|
|
3285
3351
|
|
|
3286
3352
|
attr_accessor :InstanceName, :InstanceNameStyle, :InstanceNameSuffix, :InstanceNameDelimiter
|
|
@@ -3980,10 +4046,14 @@ module TencentCloud
|
|
|
3980
4046
|
# @type CapacityRebalance: Boolean
|
|
3981
4047
|
# @param InstanceNameIndexSettings: 实例名称序号相关设置。开启后为伸缩组内自动创建的实例名称添加递增的数字序号。
|
|
3982
4048
|
# @type InstanceNameIndexSettings: :class:`Tencentcloud::As.v20180419.models.InstanceNameIndexSettings`
|
|
4049
|
+
# @param HostNameIndexSettings: 实例主机名序号相关设置。开启后为伸缩组内自动创建的实例主机名添加递增的数字序号。
|
|
4050
|
+
# @type HostNameIndexSettings: :class:`Tencentcloud::As.v20180419.models.HostNameIndexSettings`
|
|
4051
|
+
# @param ConcurrentScaleOutForDesiredCapacity: 匹配期望数并发扩容功能,不能在InstanceAllocationPolicy为竞价混合模式时设置,也不能在ScalingMode为扩容优先开机模式时设置。目前仅支持两个匹配期望数扩容活动并发进行,不支持指定数量扩容、缩容等其他类型活动并发。设置为FALSE表示不开启。
|
|
4052
|
+
# @type ConcurrentScaleOutForDesiredCapacity: Boolean
|
|
3983
4053
|
|
|
3984
|
-
attr_accessor :AutoScalingGroupId, :AutoScalingGroupName, :DefaultCooldown, :DesiredCapacity, :LaunchConfigurationId, :MaxSize, :MinSize, :ProjectId, :SubnetIds, :TerminationPolicies, :VpcId, :Zones, :RetryPolicy, :ZonesCheckPolicy, :ServiceSettings, :Ipv6AddressCount, :MultiZoneSubnetPolicy, :HealthCheckType, :LoadBalancerHealthCheckGracePeriod, :InstanceAllocationPolicy, :SpotMixedAllocationPolicy, :CapacityRebalance, :InstanceNameIndexSettings
|
|
4054
|
+
attr_accessor :AutoScalingGroupId, :AutoScalingGroupName, :DefaultCooldown, :DesiredCapacity, :LaunchConfigurationId, :MaxSize, :MinSize, :ProjectId, :SubnetIds, :TerminationPolicies, :VpcId, :Zones, :RetryPolicy, :ZonesCheckPolicy, :ServiceSettings, :Ipv6AddressCount, :MultiZoneSubnetPolicy, :HealthCheckType, :LoadBalancerHealthCheckGracePeriod, :InstanceAllocationPolicy, :SpotMixedAllocationPolicy, :CapacityRebalance, :InstanceNameIndexSettings, :HostNameIndexSettings, :ConcurrentScaleOutForDesiredCapacity
|
|
3985
4055
|
|
|
3986
|
-
def initialize(autoscalinggroupid=nil, autoscalinggroupname=nil, defaultcooldown=nil, desiredcapacity=nil, launchconfigurationid=nil, maxsize=nil, minsize=nil, projectid=nil, subnetids=nil, terminationpolicies=nil, vpcid=nil, zones=nil, retrypolicy=nil, zonescheckpolicy=nil, servicesettings=nil, ipv6addresscount=nil, multizonesubnetpolicy=nil, healthchecktype=nil, loadbalancerhealthcheckgraceperiod=nil, instanceallocationpolicy=nil, spotmixedallocationpolicy=nil, capacityrebalance=nil, instancenameindexsettings=nil)
|
|
4056
|
+
def initialize(autoscalinggroupid=nil, autoscalinggroupname=nil, defaultcooldown=nil, desiredcapacity=nil, launchconfigurationid=nil, maxsize=nil, minsize=nil, projectid=nil, subnetids=nil, terminationpolicies=nil, vpcid=nil, zones=nil, retrypolicy=nil, zonescheckpolicy=nil, servicesettings=nil, ipv6addresscount=nil, multizonesubnetpolicy=nil, healthchecktype=nil, loadbalancerhealthcheckgraceperiod=nil, instanceallocationpolicy=nil, spotmixedallocationpolicy=nil, capacityrebalance=nil, instancenameindexsettings=nil, hostnameindexsettings=nil, concurrentscaleoutfordesiredcapacity=nil)
|
|
3987
4057
|
@AutoScalingGroupId = autoscalinggroupid
|
|
3988
4058
|
@AutoScalingGroupName = autoscalinggroupname
|
|
3989
4059
|
@DefaultCooldown = defaultcooldown
|
|
@@ -4007,6 +4077,8 @@ module TencentCloud
|
|
|
4007
4077
|
@SpotMixedAllocationPolicy = spotmixedallocationpolicy
|
|
4008
4078
|
@CapacityRebalance = capacityrebalance
|
|
4009
4079
|
@InstanceNameIndexSettings = instancenameindexsettings
|
|
4080
|
+
@HostNameIndexSettings = hostnameindexsettings
|
|
4081
|
+
@ConcurrentScaleOutForDesiredCapacity = concurrentscaleoutfordesiredcapacity
|
|
4010
4082
|
end
|
|
4011
4083
|
|
|
4012
4084
|
def deserialize(params)
|
|
@@ -4042,6 +4114,11 @@ module TencentCloud
|
|
|
4042
4114
|
@InstanceNameIndexSettings = InstanceNameIndexSettings.new
|
|
4043
4115
|
@InstanceNameIndexSettings.deserialize(params['InstanceNameIndexSettings'])
|
|
4044
4116
|
end
|
|
4117
|
+
unless params['HostNameIndexSettings'].nil?
|
|
4118
|
+
@HostNameIndexSettings = HostNameIndexSettings.new
|
|
4119
|
+
@HostNameIndexSettings.deserialize(params['HostNameIndexSettings'])
|
|
4120
|
+
end
|
|
4121
|
+
@ConcurrentScaleOutForDesiredCapacity = params['ConcurrentScaleOutForDesiredCapacity']
|
|
4045
4122
|
end
|
|
4046
4123
|
end
|
|
4047
4124
|
|
|
@@ -4636,10 +4713,18 @@ module TencentCloud
|
|
|
4636
4713
|
# @type EndTime: String
|
|
4637
4714
|
# @param Recurrence: 定时任务的重复方式。为标准 Cron 格式,[Recurrence参数限制](https://cloud.tencent.com/document/product/377/88119)为5个字段,由空格分开,结构为:分,小时,日期,月份,星期。此参数与`EndTime`需要同时指定。
|
|
4638
4715
|
# @type Recurrence: String
|
|
4716
|
+
# @param DisableUpdateDesiredCapacity: 停用期望数更新。默认值为 False,表示定时任务触发时期望实例数正常更新。
|
|
4717
|
+
# 该值为 True 时,定时任务触发时不会主动修改期望实例数,但可能会因最大最小值机制修改期望实例数。
|
|
4718
|
+
# 以下案例的前提都是停用期望数更新为 True:
|
|
4719
|
+
|
|
4720
|
+
# - 定时任务触发时,原期望数为 5,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 5 小于最小值 10,最终新期望数为 10。
|
|
4721
|
+
# - 定时任务触发时,原期望数为 25,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 25 大于最大值 20,最终新期望数为 20。
|
|
4722
|
+
# - 定时任务触发时,原期望数为 13,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,期望数保持为 13 。
|
|
4723
|
+
# @type DisableUpdateDesiredCapacity: Boolean
|
|
4639
4724
|
|
|
4640
|
-
attr_accessor :ScheduledActionId, :ScheduledActionName, :MaxSize, :MinSize, :DesiredCapacity, :StartTime, :EndTime, :Recurrence
|
|
4725
|
+
attr_accessor :ScheduledActionId, :ScheduledActionName, :MaxSize, :MinSize, :DesiredCapacity, :StartTime, :EndTime, :Recurrence, :DisableUpdateDesiredCapacity
|
|
4641
4726
|
|
|
4642
|
-
def initialize(scheduledactionid=nil, scheduledactionname=nil, maxsize=nil, minsize=nil, desiredcapacity=nil, starttime=nil, endtime=nil, recurrence=nil)
|
|
4727
|
+
def initialize(scheduledactionid=nil, scheduledactionname=nil, maxsize=nil, minsize=nil, desiredcapacity=nil, starttime=nil, endtime=nil, recurrence=nil, disableupdatedesiredcapacity=nil)
|
|
4643
4728
|
@ScheduledActionId = scheduledactionid
|
|
4644
4729
|
@ScheduledActionName = scheduledactionname
|
|
4645
4730
|
@MaxSize = maxsize
|
|
@@ -4648,6 +4733,7 @@ module TencentCloud
|
|
|
4648
4733
|
@StartTime = starttime
|
|
4649
4734
|
@EndTime = endtime
|
|
4650
4735
|
@Recurrence = recurrence
|
|
4736
|
+
@DisableUpdateDesiredCapacity = disableupdatedesiredcapacity
|
|
4651
4737
|
end
|
|
4652
4738
|
|
|
4653
4739
|
def deserialize(params)
|
|
@@ -4659,6 +4745,7 @@ module TencentCloud
|
|
|
4659
4745
|
@StartTime = params['StartTime']
|
|
4660
4746
|
@EndTime = params['EndTime']
|
|
4661
4747
|
@Recurrence = params['Recurrence']
|
|
4748
|
+
@DisableUpdateDesiredCapacity = params['DisableUpdateDesiredCapacity']
|
|
4662
4749
|
end
|
|
4663
4750
|
end
|
|
4664
4751
|
|
|
@@ -5335,10 +5422,18 @@ module TencentCloud
|
|
|
5335
5422
|
# <li>CRONTAB:代表定时任务为重复执行。</li>
|
|
5336
5423
|
# <li>ONCE:代表定时任务为单次执行。</li>
|
|
5337
5424
|
# @type ScheduledType: String
|
|
5425
|
+
# @param DisableUpdateDesiredCapacity: 停用期望数更新。表示定时任务触发时期望实例数正常更新。
|
|
5426
|
+
# 该值为 True 时,定时任务触发时不会主动修改期望实例数,但可能会因最大最小值机制修改期望实例数。
|
|
5427
|
+
# 以下案例的前提都是停用期望数更新为 True:
|
|
5428
|
+
|
|
5429
|
+
# - 定时任务触发时,原期望数为 5,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 5 小于最小值 10,最终新期望数为 10。
|
|
5430
|
+
# - 定时任务触发时,原期望数为 25,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 25 大于最大值 20,最终新期望数为 20。
|
|
5431
|
+
# - 定时任务触发时,原期望数为 13,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,期望数保持为 13 。
|
|
5432
|
+
# @type DisableUpdateDesiredCapacity: Boolean
|
|
5338
5433
|
|
|
5339
|
-
attr_accessor :ScheduledActionId, :ScheduledActionName, :AutoScalingGroupId, :StartTime, :Recurrence, :EndTime, :MaxSize, :DesiredCapacity, :MinSize, :CreatedTime, :ScheduledType
|
|
5434
|
+
attr_accessor :ScheduledActionId, :ScheduledActionName, :AutoScalingGroupId, :StartTime, :Recurrence, :EndTime, :MaxSize, :DesiredCapacity, :MinSize, :CreatedTime, :ScheduledType, :DisableUpdateDesiredCapacity
|
|
5340
5435
|
|
|
5341
|
-
def initialize(scheduledactionid=nil, scheduledactionname=nil, autoscalinggroupid=nil, starttime=nil, recurrence=nil, endtime=nil, maxsize=nil, desiredcapacity=nil, minsize=nil, createdtime=nil, scheduledtype=nil)
|
|
5436
|
+
def initialize(scheduledactionid=nil, scheduledactionname=nil, autoscalinggroupid=nil, starttime=nil, recurrence=nil, endtime=nil, maxsize=nil, desiredcapacity=nil, minsize=nil, createdtime=nil, scheduledtype=nil, disableupdatedesiredcapacity=nil)
|
|
5342
5437
|
@ScheduledActionId = scheduledactionid
|
|
5343
5438
|
@ScheduledActionName = scheduledactionname
|
|
5344
5439
|
@AutoScalingGroupId = autoscalinggroupid
|
|
@@ -5350,6 +5445,7 @@ module TencentCloud
|
|
|
5350
5445
|
@MinSize = minsize
|
|
5351
5446
|
@CreatedTime = createdtime
|
|
5352
5447
|
@ScheduledType = scheduledtype
|
|
5448
|
+
@DisableUpdateDesiredCapacity = disableupdatedesiredcapacity
|
|
5353
5449
|
end
|
|
5354
5450
|
|
|
5355
5451
|
def deserialize(params)
|
|
@@ -5364,6 +5460,7 @@ module TencentCloud
|
|
|
5364
5460
|
@MinSize = params['MinSize']
|
|
5365
5461
|
@CreatedTime = params['CreatedTime']
|
|
5366
5462
|
@ScheduledType = params['ScheduledType']
|
|
5463
|
+
@DisableUpdateDesiredCapacity = params['DisableUpdateDesiredCapacity']
|
|
5367
5464
|
end
|
|
5368
5465
|
end
|
|
5369
5466
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-as
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1186
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,9 +33,9 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
-
- lib/tencentcloud-sdk-as.rb
|
|
37
|
-
- lib/v20180419/models.rb
|
|
38
36
|
- lib/v20180419/client.rb
|
|
37
|
+
- lib/v20180419/models.rb
|
|
38
|
+
- lib/tencentcloud-sdk-as.rb
|
|
39
39
|
- lib/VERSION
|
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
41
41
|
licenses:
|