tencentcloud-sdk-python-autoscaling 3.1.4__tar.gz → 3.1.16__tar.gz
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.
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/setup.py +1 -1
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/tencentcloud/autoscaling/v20180419/models.py +337 -74
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/tencentcloud_sdk_python_autoscaling.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_autoscaling-3.1.16/tencentcloud_sdk_python_autoscaling.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_autoscaling-3.1.4/tencentcloud_sdk_python_autoscaling.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/README.rst +0 -0
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/setup.cfg +0 -0
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/tencentcloud/autoscaling/__init__.py +0 -0
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/tencentcloud/autoscaling/v20180419/__init__.py +0 -0
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/tencentcloud/autoscaling/v20180419/autoscaling_client.py +0 -0
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/tencentcloud/autoscaling/v20180419/autoscaling_client_async.py +0 -0
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/tencentcloud/autoscaling/v20180419/errorcodes.py +0 -0
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/tencentcloud_sdk_python_autoscaling.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/tencentcloud_sdk_python_autoscaling.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/tencentcloud_sdk_python_autoscaling.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-autoscaling
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.16
|
|
4
4
|
Summary: Tencent Cloud Autoscaling SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.16
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-autoscaling',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.16,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Autoscaling SDK for Python',
|
|
@@ -865,6 +865,10 @@ class AutoScalingGroup(AbstractModel):
|
|
|
865
865
|
:type CapacityRebalance: bool
|
|
866
866
|
:param _InstanceNameIndexSettings: 实例名称序号相关设置。
|
|
867
867
|
:type InstanceNameIndexSettings: :class:`tencentcloud.autoscaling.v20180419.models.InstanceNameIndexSettings`
|
|
868
|
+
:param _HostNameIndexSettings: 实例主机名序号相关设置。
|
|
869
|
+
:type HostNameIndexSettings: :class:`tencentcloud.autoscaling.v20180419.models.HostNameIndexSettings`
|
|
870
|
+
:param _ConcurrentScaleOutForDesiredCapacity: 匹配期望数并发扩容功能,不能在InstanceAllocationPolicy为竞价混合模式时设置,也不能在ScalingMode为扩容优先开机模式时设置。目前仅支持两个匹配期望数扩容活动并发进行,不支持指定数量扩容、缩容等其他类型活动并发。默认值为FALSE,表示不开启。
|
|
871
|
+
:type ConcurrentScaleOutForDesiredCapacity: bool
|
|
868
872
|
"""
|
|
869
873
|
self._AutoScalingGroupId = None
|
|
870
874
|
self._AutoScalingGroupName = None
|
|
@@ -898,6 +902,8 @@ class AutoScalingGroup(AbstractModel):
|
|
|
898
902
|
self._SpotMixedAllocationPolicy = None
|
|
899
903
|
self._CapacityRebalance = None
|
|
900
904
|
self._InstanceNameIndexSettings = None
|
|
905
|
+
self._HostNameIndexSettings = None
|
|
906
|
+
self._ConcurrentScaleOutForDesiredCapacity = None
|
|
901
907
|
|
|
902
908
|
@property
|
|
903
909
|
def AutoScalingGroupId(self):
|
|
@@ -1276,6 +1282,28 @@ class AutoScalingGroup(AbstractModel):
|
|
|
1276
1282
|
def InstanceNameIndexSettings(self, InstanceNameIndexSettings):
|
|
1277
1283
|
self._InstanceNameIndexSettings = InstanceNameIndexSettings
|
|
1278
1284
|
|
|
1285
|
+
@property
|
|
1286
|
+
def HostNameIndexSettings(self):
|
|
1287
|
+
r"""实例主机名序号相关设置。
|
|
1288
|
+
:rtype: :class:`tencentcloud.autoscaling.v20180419.models.HostNameIndexSettings`
|
|
1289
|
+
"""
|
|
1290
|
+
return self._HostNameIndexSettings
|
|
1291
|
+
|
|
1292
|
+
@HostNameIndexSettings.setter
|
|
1293
|
+
def HostNameIndexSettings(self, HostNameIndexSettings):
|
|
1294
|
+
self._HostNameIndexSettings = HostNameIndexSettings
|
|
1295
|
+
|
|
1296
|
+
@property
|
|
1297
|
+
def ConcurrentScaleOutForDesiredCapacity(self):
|
|
1298
|
+
r"""匹配期望数并发扩容功能,不能在InstanceAllocationPolicy为竞价混合模式时设置,也不能在ScalingMode为扩容优先开机模式时设置。目前仅支持两个匹配期望数扩容活动并发进行,不支持指定数量扩容、缩容等其他类型活动并发。默认值为FALSE,表示不开启。
|
|
1299
|
+
:rtype: bool
|
|
1300
|
+
"""
|
|
1301
|
+
return self._ConcurrentScaleOutForDesiredCapacity
|
|
1302
|
+
|
|
1303
|
+
@ConcurrentScaleOutForDesiredCapacity.setter
|
|
1304
|
+
def ConcurrentScaleOutForDesiredCapacity(self, ConcurrentScaleOutForDesiredCapacity):
|
|
1305
|
+
self._ConcurrentScaleOutForDesiredCapacity = ConcurrentScaleOutForDesiredCapacity
|
|
1306
|
+
|
|
1279
1307
|
|
|
1280
1308
|
def _deserialize(self, params):
|
|
1281
1309
|
self._AutoScalingGroupId = params.get("AutoScalingGroupId")
|
|
@@ -1326,6 +1354,10 @@ class AutoScalingGroup(AbstractModel):
|
|
|
1326
1354
|
if params.get("InstanceNameIndexSettings") is not None:
|
|
1327
1355
|
self._InstanceNameIndexSettings = InstanceNameIndexSettings()
|
|
1328
1356
|
self._InstanceNameIndexSettings._deserialize(params.get("InstanceNameIndexSettings"))
|
|
1357
|
+
if params.get("HostNameIndexSettings") is not None:
|
|
1358
|
+
self._HostNameIndexSettings = HostNameIndexSettings()
|
|
1359
|
+
self._HostNameIndexSettings._deserialize(params.get("HostNameIndexSettings"))
|
|
1360
|
+
self._ConcurrentScaleOutForDesiredCapacity = params.get("ConcurrentScaleOutForDesiredCapacity")
|
|
1329
1361
|
memeber_set = set(params.keys())
|
|
1330
1362
|
for name, value in vars(self).items():
|
|
1331
1363
|
property_name = name[1:]
|
|
@@ -2138,6 +2170,10 @@ class CreateAutoScalingGroupRequest(AbstractModel):
|
|
|
2138
2170
|
:type CapacityRebalance: bool
|
|
2139
2171
|
:param _InstanceNameIndexSettings: 实例名称序号相关设置。若不指定该参数,则默认不开启。开启后为伸缩组内自动创建的实例名称添加递增的数字序号。
|
|
2140
2172
|
:type InstanceNameIndexSettings: :class:`tencentcloud.autoscaling.v20180419.models.InstanceNameIndexSettings`
|
|
2173
|
+
:param _HostNameIndexSettings: 实例主机名序号相关设置。若不指定该参数,则默认不开启。开启后为伸缩组内自动创建的实例主机名添加递增的数字序号。
|
|
2174
|
+
:type HostNameIndexSettings: :class:`tencentcloud.autoscaling.v20180419.models.HostNameIndexSettings`
|
|
2175
|
+
:param _ConcurrentScaleOutForDesiredCapacity: 匹配期望数并发扩容功能,不能在InstanceAllocationPolicy为竞价混合模式时设置,也不能在ScalingMode为扩容优先开机模式时设置。目前仅支持两个匹配期望数扩容活动并发进行,不支持指定数量扩容、缩容等其他类型活动并发。默认值为FALSE,表示不开启。
|
|
2176
|
+
:type ConcurrentScaleOutForDesiredCapacity: bool
|
|
2141
2177
|
"""
|
|
2142
2178
|
self._AutoScalingGroupName = None
|
|
2143
2179
|
self._LaunchConfigurationId = None
|
|
@@ -2164,6 +2200,8 @@ class CreateAutoScalingGroupRequest(AbstractModel):
|
|
|
2164
2200
|
self._SpotMixedAllocationPolicy = None
|
|
2165
2201
|
self._CapacityRebalance = None
|
|
2166
2202
|
self._InstanceNameIndexSettings = None
|
|
2203
|
+
self._HostNameIndexSettings = None
|
|
2204
|
+
self._ConcurrentScaleOutForDesiredCapacity = None
|
|
2167
2205
|
|
|
2168
2206
|
@property
|
|
2169
2207
|
def AutoScalingGroupName(self):
|
|
@@ -2466,6 +2504,28 @@ class CreateAutoScalingGroupRequest(AbstractModel):
|
|
|
2466
2504
|
def InstanceNameIndexSettings(self, InstanceNameIndexSettings):
|
|
2467
2505
|
self._InstanceNameIndexSettings = InstanceNameIndexSettings
|
|
2468
2506
|
|
|
2507
|
+
@property
|
|
2508
|
+
def HostNameIndexSettings(self):
|
|
2509
|
+
r"""实例主机名序号相关设置。若不指定该参数,则默认不开启。开启后为伸缩组内自动创建的实例主机名添加递增的数字序号。
|
|
2510
|
+
:rtype: :class:`tencentcloud.autoscaling.v20180419.models.HostNameIndexSettings`
|
|
2511
|
+
"""
|
|
2512
|
+
return self._HostNameIndexSettings
|
|
2513
|
+
|
|
2514
|
+
@HostNameIndexSettings.setter
|
|
2515
|
+
def HostNameIndexSettings(self, HostNameIndexSettings):
|
|
2516
|
+
self._HostNameIndexSettings = HostNameIndexSettings
|
|
2517
|
+
|
|
2518
|
+
@property
|
|
2519
|
+
def ConcurrentScaleOutForDesiredCapacity(self):
|
|
2520
|
+
r"""匹配期望数并发扩容功能,不能在InstanceAllocationPolicy为竞价混合模式时设置,也不能在ScalingMode为扩容优先开机模式时设置。目前仅支持两个匹配期望数扩容活动并发进行,不支持指定数量扩容、缩容等其他类型活动并发。默认值为FALSE,表示不开启。
|
|
2521
|
+
:rtype: bool
|
|
2522
|
+
"""
|
|
2523
|
+
return self._ConcurrentScaleOutForDesiredCapacity
|
|
2524
|
+
|
|
2525
|
+
@ConcurrentScaleOutForDesiredCapacity.setter
|
|
2526
|
+
def ConcurrentScaleOutForDesiredCapacity(self, ConcurrentScaleOutForDesiredCapacity):
|
|
2527
|
+
self._ConcurrentScaleOutForDesiredCapacity = ConcurrentScaleOutForDesiredCapacity
|
|
2528
|
+
|
|
2469
2529
|
|
|
2470
2530
|
def _deserialize(self, params):
|
|
2471
2531
|
self._AutoScalingGroupName = params.get("AutoScalingGroupName")
|
|
@@ -2509,6 +2569,10 @@ class CreateAutoScalingGroupRequest(AbstractModel):
|
|
|
2509
2569
|
if params.get("InstanceNameIndexSettings") is not None:
|
|
2510
2570
|
self._InstanceNameIndexSettings = InstanceNameIndexSettings()
|
|
2511
2571
|
self._InstanceNameIndexSettings._deserialize(params.get("InstanceNameIndexSettings"))
|
|
2572
|
+
if params.get("HostNameIndexSettings") is not None:
|
|
2573
|
+
self._HostNameIndexSettings = HostNameIndexSettings()
|
|
2574
|
+
self._HostNameIndexSettings._deserialize(params.get("HostNameIndexSettings"))
|
|
2575
|
+
self._ConcurrentScaleOutForDesiredCapacity = params.get("ConcurrentScaleOutForDesiredCapacity")
|
|
2512
2576
|
memeber_set = set(params.keys())
|
|
2513
2577
|
for name, value in vars(self).items():
|
|
2514
2578
|
property_name = name[1:]
|
|
@@ -3821,27 +3885,36 @@ class CreateScheduledActionRequest(AbstractModel):
|
|
|
3821
3885
|
:type AutoScalingGroupId: str
|
|
3822
3886
|
:param _ScheduledActionName: 定时任务名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。同一伸缩组下必须唯一。
|
|
3823
3887
|
:type ScheduledActionName: str
|
|
3824
|
-
:param _MaxSize: 当定时任务触发时,设置的伸缩组最大实例数。
|
|
3825
|
-
:type MaxSize: int
|
|
3826
3888
|
:param _MinSize: 当定时任务触发时,设置的伸缩组最小实例数。
|
|
3827
3889
|
:type MinSize: int
|
|
3828
|
-
:param _DesiredCapacity: 当定时任务触发时,设置的伸缩组期望实例数。
|
|
3829
|
-
:type DesiredCapacity: int
|
|
3830
3890
|
:param _StartTime: 定时任务的首次触发时间,取值为`北京时间`(UTC+8),按照`ISO8601`标准,格式:`YYYY-MM-DDThh:mm:ss+08:00`。
|
|
3831
3891
|
:type StartTime: str
|
|
3892
|
+
:param _DesiredCapacity: 当定时任务触发时,设置的伸缩组期望实例数。
|
|
3893
|
+
:type DesiredCapacity: int
|
|
3894
|
+
:param _MaxSize: 当定时任务触发时,设置的伸缩组最大实例数。
|
|
3895
|
+
:type MaxSize: int
|
|
3832
3896
|
:param _EndTime: 定时任务的结束时间,取值为`北京时间`(UTC+8),按照`ISO8601`标准,格式:`YYYY-MM-DDThh:mm:ss+08:00`。<br><br>此参数与`Recurrence`需要同时指定,到达结束时间之后,定时任务将不再生效。
|
|
3833
3897
|
:type EndTime: str
|
|
3834
3898
|
:param _Recurrence: 定时任务的重复方式。为标准 Cron 格式。定时任务中的 [Recurrence参数限制](https://cloud.tencent.com/document/product/377/88119) 为5个字段,由空格分开,结构为:分,小时,日期,月份,星期。此参数与`EndTime`需要同时指定。
|
|
3835
3899
|
:type Recurrence: str
|
|
3900
|
+
:param _DisableUpdateDesiredCapacity: 停用期望数更新。默认值为 False,表示定时任务触发时期望实例数正常更新。
|
|
3901
|
+
该值为 True 时,定时任务触发时不会主动修改期望实例数,但可能会因最大最小值机制修改期望实例数。
|
|
3902
|
+
以下案例的前提都是停用期望数更新为 True:
|
|
3903
|
+
|
|
3904
|
+
- 定时任务触发时,原期望数为 5,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 5 小于最小值 10,最终新期望数为 10。
|
|
3905
|
+
- 定时任务触发时,原期望数为 25,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 25 大于最大值 20,最终新期望数为 20。
|
|
3906
|
+
- 定时任务触发时,原期望数为 13,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,期望数保持为 13 。
|
|
3907
|
+
:type DisableUpdateDesiredCapacity: bool
|
|
3836
3908
|
"""
|
|
3837
3909
|
self._AutoScalingGroupId = None
|
|
3838
3910
|
self._ScheduledActionName = None
|
|
3839
|
-
self._MaxSize = None
|
|
3840
3911
|
self._MinSize = None
|
|
3841
|
-
self._DesiredCapacity = None
|
|
3842
3912
|
self._StartTime = None
|
|
3913
|
+
self._DesiredCapacity = None
|
|
3914
|
+
self._MaxSize = None
|
|
3843
3915
|
self._EndTime = None
|
|
3844
3916
|
self._Recurrence = None
|
|
3917
|
+
self._DisableUpdateDesiredCapacity = None
|
|
3845
3918
|
|
|
3846
3919
|
@property
|
|
3847
3920
|
def AutoScalingGroupId(self):
|
|
@@ -3867,17 +3940,6 @@ class CreateScheduledActionRequest(AbstractModel):
|
|
|
3867
3940
|
def ScheduledActionName(self, ScheduledActionName):
|
|
3868
3941
|
self._ScheduledActionName = ScheduledActionName
|
|
3869
3942
|
|
|
3870
|
-
@property
|
|
3871
|
-
def MaxSize(self):
|
|
3872
|
-
r"""当定时任务触发时,设置的伸缩组最大实例数。
|
|
3873
|
-
:rtype: int
|
|
3874
|
-
"""
|
|
3875
|
-
return self._MaxSize
|
|
3876
|
-
|
|
3877
|
-
@MaxSize.setter
|
|
3878
|
-
def MaxSize(self, MaxSize):
|
|
3879
|
-
self._MaxSize = MaxSize
|
|
3880
|
-
|
|
3881
3943
|
@property
|
|
3882
3944
|
def MinSize(self):
|
|
3883
3945
|
r"""当定时任务触发时,设置的伸缩组最小实例数。
|
|
@@ -3889,6 +3951,17 @@ class CreateScheduledActionRequest(AbstractModel):
|
|
|
3889
3951
|
def MinSize(self, MinSize):
|
|
3890
3952
|
self._MinSize = MinSize
|
|
3891
3953
|
|
|
3954
|
+
@property
|
|
3955
|
+
def StartTime(self):
|
|
3956
|
+
r"""定时任务的首次触发时间,取值为`北京时间`(UTC+8),按照`ISO8601`标准,格式:`YYYY-MM-DDThh:mm:ss+08:00`。
|
|
3957
|
+
:rtype: str
|
|
3958
|
+
"""
|
|
3959
|
+
return self._StartTime
|
|
3960
|
+
|
|
3961
|
+
@StartTime.setter
|
|
3962
|
+
def StartTime(self, StartTime):
|
|
3963
|
+
self._StartTime = StartTime
|
|
3964
|
+
|
|
3892
3965
|
@property
|
|
3893
3966
|
def DesiredCapacity(self):
|
|
3894
3967
|
r"""当定时任务触发时,设置的伸缩组期望实例数。
|
|
@@ -3901,15 +3974,15 @@ class CreateScheduledActionRequest(AbstractModel):
|
|
|
3901
3974
|
self._DesiredCapacity = DesiredCapacity
|
|
3902
3975
|
|
|
3903
3976
|
@property
|
|
3904
|
-
def
|
|
3905
|
-
r"""
|
|
3906
|
-
:rtype:
|
|
3977
|
+
def MaxSize(self):
|
|
3978
|
+
r"""当定时任务触发时,设置的伸缩组最大实例数。
|
|
3979
|
+
:rtype: int
|
|
3907
3980
|
"""
|
|
3908
|
-
return self.
|
|
3981
|
+
return self._MaxSize
|
|
3909
3982
|
|
|
3910
|
-
@
|
|
3911
|
-
def
|
|
3912
|
-
self.
|
|
3983
|
+
@MaxSize.setter
|
|
3984
|
+
def MaxSize(self, MaxSize):
|
|
3985
|
+
self._MaxSize = MaxSize
|
|
3913
3986
|
|
|
3914
3987
|
@property
|
|
3915
3988
|
def EndTime(self):
|
|
@@ -3933,16 +4006,34 @@ class CreateScheduledActionRequest(AbstractModel):
|
|
|
3933
4006
|
def Recurrence(self, Recurrence):
|
|
3934
4007
|
self._Recurrence = Recurrence
|
|
3935
4008
|
|
|
4009
|
+
@property
|
|
4010
|
+
def DisableUpdateDesiredCapacity(self):
|
|
4011
|
+
r"""停用期望数更新。默认值为 False,表示定时任务触发时期望实例数正常更新。
|
|
4012
|
+
该值为 True 时,定时任务触发时不会主动修改期望实例数,但可能会因最大最小值机制修改期望实例数。
|
|
4013
|
+
以下案例的前提都是停用期望数更新为 True:
|
|
4014
|
+
|
|
4015
|
+
- 定时任务触发时,原期望数为 5,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 5 小于最小值 10,最终新期望数为 10。
|
|
4016
|
+
- 定时任务触发时,原期望数为 25,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 25 大于最大值 20,最终新期望数为 20。
|
|
4017
|
+
- 定时任务触发时,原期望数为 13,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,期望数保持为 13 。
|
|
4018
|
+
:rtype: bool
|
|
4019
|
+
"""
|
|
4020
|
+
return self._DisableUpdateDesiredCapacity
|
|
4021
|
+
|
|
4022
|
+
@DisableUpdateDesiredCapacity.setter
|
|
4023
|
+
def DisableUpdateDesiredCapacity(self, DisableUpdateDesiredCapacity):
|
|
4024
|
+
self._DisableUpdateDesiredCapacity = DisableUpdateDesiredCapacity
|
|
4025
|
+
|
|
3936
4026
|
|
|
3937
4027
|
def _deserialize(self, params):
|
|
3938
4028
|
self._AutoScalingGroupId = params.get("AutoScalingGroupId")
|
|
3939
4029
|
self._ScheduledActionName = params.get("ScheduledActionName")
|
|
3940
|
-
self._MaxSize = params.get("MaxSize")
|
|
3941
4030
|
self._MinSize = params.get("MinSize")
|
|
3942
|
-
self._DesiredCapacity = params.get("DesiredCapacity")
|
|
3943
4031
|
self._StartTime = params.get("StartTime")
|
|
4032
|
+
self._DesiredCapacity = params.get("DesiredCapacity")
|
|
4033
|
+
self._MaxSize = params.get("MaxSize")
|
|
3944
4034
|
self._EndTime = params.get("EndTime")
|
|
3945
4035
|
self._Recurrence = params.get("Recurrence")
|
|
4036
|
+
self._DisableUpdateDesiredCapacity = params.get("DisableUpdateDesiredCapacity")
|
|
3946
4037
|
memeber_set = set(params.keys())
|
|
3947
4038
|
for name, value in vars(self).items():
|
|
3948
4039
|
property_name = name[1:]
|
|
@@ -7394,6 +7485,96 @@ class ForwardLoadBalancerIdentification(AbstractModel):
|
|
|
7394
7485
|
|
|
7395
7486
|
|
|
7396
7487
|
|
|
7488
|
+
class HostNameIndexSettings(AbstractModel):
|
|
7489
|
+
r"""实例主机名称序号相关设置。
|
|
7490
|
+
|
|
7491
|
+
"""
|
|
7492
|
+
|
|
7493
|
+
def __init__(self):
|
|
7494
|
+
r"""
|
|
7495
|
+
:param _Enabled: 是否开启实例主机名创建序号,默认不开启。取值范围:
|
|
7496
|
+
|
|
7497
|
+
TRUE:表示开启实例主机名创建序号
|
|
7498
|
+
FALSE:表示不开启实例主机名创建序号
|
|
7499
|
+
:type Enabled: bool
|
|
7500
|
+
:param _BeginIndex: 初始序号。取值范围与 IndexLength 参数有关:
|
|
7501
|
+
- IndexLength 为 0 时,取值范围为 [0, 99999999]。
|
|
7502
|
+
- IndexLength 为 [1, 8] 时,取值范围为为 [0, 10^IndexLength-1],最大值即为指定位数的最大数字。
|
|
7503
|
+
初始序号默认值如下:
|
|
7504
|
+
- 首次启用递增序号:初始序号默认值为 0 ( 展示位数与 IndexLength 有关,例如 IndexLength 为 4,展示值为 0000)
|
|
7505
|
+
- 非首次开启递增序号:顺延之前的递增序号,例如上次使用递增至序号 069,则新的初始序号默认值为 070。
|
|
7506
|
+
注意:修改初始序号可能会造成伸缩组内序号重复。
|
|
7507
|
+
:type BeginIndex: int
|
|
7508
|
+
:param _IndexLength: 递增序号长度,默认为0,表示不指定序号长度。 取值范围:0-8,最大为整数8。
|
|
7509
|
+
- 长度设置为3,序号展示形式为:000、001、002 ... 010、011 ... 100 ... 999,序号上限为999
|
|
7510
|
+
- 长度设置为0,序号展示形式为:0、1、2 ... 10、11 ... 100 ... 1000 ...10000 ... 99999999,序号上限为99999999
|
|
7511
|
+
注意:递增序号持续超出上限会导致扩容失败,请不要设置过小的递增序号长度。
|
|
7512
|
+
:type IndexLength: int
|
|
7513
|
+
"""
|
|
7514
|
+
self._Enabled = None
|
|
7515
|
+
self._BeginIndex = None
|
|
7516
|
+
self._IndexLength = None
|
|
7517
|
+
|
|
7518
|
+
@property
|
|
7519
|
+
def Enabled(self):
|
|
7520
|
+
r"""是否开启实例主机名创建序号,默认不开启。取值范围:
|
|
7521
|
+
|
|
7522
|
+
TRUE:表示开启实例主机名创建序号
|
|
7523
|
+
FALSE:表示不开启实例主机名创建序号
|
|
7524
|
+
:rtype: bool
|
|
7525
|
+
"""
|
|
7526
|
+
return self._Enabled
|
|
7527
|
+
|
|
7528
|
+
@Enabled.setter
|
|
7529
|
+
def Enabled(self, Enabled):
|
|
7530
|
+
self._Enabled = Enabled
|
|
7531
|
+
|
|
7532
|
+
@property
|
|
7533
|
+
def BeginIndex(self):
|
|
7534
|
+
r"""初始序号。取值范围与 IndexLength 参数有关:
|
|
7535
|
+
- IndexLength 为 0 时,取值范围为 [0, 99999999]。
|
|
7536
|
+
- IndexLength 为 [1, 8] 时,取值范围为为 [0, 10^IndexLength-1],最大值即为指定位数的最大数字。
|
|
7537
|
+
初始序号默认值如下:
|
|
7538
|
+
- 首次启用递增序号:初始序号默认值为 0 ( 展示位数与 IndexLength 有关,例如 IndexLength 为 4,展示值为 0000)
|
|
7539
|
+
- 非首次开启递增序号:顺延之前的递增序号,例如上次使用递增至序号 069,则新的初始序号默认值为 070。
|
|
7540
|
+
注意:修改初始序号可能会造成伸缩组内序号重复。
|
|
7541
|
+
:rtype: int
|
|
7542
|
+
"""
|
|
7543
|
+
return self._BeginIndex
|
|
7544
|
+
|
|
7545
|
+
@BeginIndex.setter
|
|
7546
|
+
def BeginIndex(self, BeginIndex):
|
|
7547
|
+
self._BeginIndex = BeginIndex
|
|
7548
|
+
|
|
7549
|
+
@property
|
|
7550
|
+
def IndexLength(self):
|
|
7551
|
+
r"""递增序号长度,默认为0,表示不指定序号长度。 取值范围:0-8,最大为整数8。
|
|
7552
|
+
- 长度设置为3,序号展示形式为:000、001、002 ... 010、011 ... 100 ... 999,序号上限为999
|
|
7553
|
+
- 长度设置为0,序号展示形式为:0、1、2 ... 10、11 ... 100 ... 1000 ...10000 ... 99999999,序号上限为99999999
|
|
7554
|
+
注意:递增序号持续超出上限会导致扩容失败,请不要设置过小的递增序号长度。
|
|
7555
|
+
:rtype: int
|
|
7556
|
+
"""
|
|
7557
|
+
return self._IndexLength
|
|
7558
|
+
|
|
7559
|
+
@IndexLength.setter
|
|
7560
|
+
def IndexLength(self, IndexLength):
|
|
7561
|
+
self._IndexLength = IndexLength
|
|
7562
|
+
|
|
7563
|
+
|
|
7564
|
+
def _deserialize(self, params):
|
|
7565
|
+
self._Enabled = params.get("Enabled")
|
|
7566
|
+
self._BeginIndex = params.get("BeginIndex")
|
|
7567
|
+
self._IndexLength = params.get("IndexLength")
|
|
7568
|
+
memeber_set = set(params.keys())
|
|
7569
|
+
for name, value in vars(self).items():
|
|
7570
|
+
property_name = name[1:]
|
|
7571
|
+
if property_name in memeber_set:
|
|
7572
|
+
memeber_set.remove(property_name)
|
|
7573
|
+
if len(memeber_set) > 0:
|
|
7574
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7575
|
+
|
|
7576
|
+
|
|
7577
|
+
|
|
7397
7578
|
class HostNameSettings(AbstractModel):
|
|
7398
7579
|
r"""云服务器主机名(HostName)的相关设置
|
|
7399
7580
|
|
|
@@ -7413,18 +7594,16 @@ class HostNameSettings(AbstractModel):
|
|
|
7413
7594
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7414
7595
|
:type HostNameStyle: str
|
|
7415
7596
|
:param _HostNameSuffix: 云服务器的主机名后缀。
|
|
7416
|
-
|
|
7417
|
-
<li> 点号(.)和短横线(-)不能作为 HostNameSuffix 的首尾字符,不能连续使用。</li>
|
|
7597
|
+
<li> 点号(.)和短横线(-)不能作为 HostNameSuffix 的尾字符,不能连续使用。</li>
|
|
7418
7598
|
<li> 不支持 Windows 实例。</li>
|
|
7419
7599
|
<li>其他类型(Linux 等)实例:字符长度为[1, 39],且与 HostName 的长度和不能超过 41,允许支持多个点号,点之间为一段,每段允许字母(不限制大小写)、数字和短横线(-)组成。</li>
|
|
7420
|
-
假设后缀名称为 suffix,原主机名为 test.0,最终主机名为 test.0.suffix。
|
|
7421
7600
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7422
7601
|
:type HostNameSuffix: str
|
|
7423
|
-
:param _HostNameDelimiter:
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7602
|
+
:param _HostNameDelimiter: 云服务器的主机名分隔符。默认的分隔符是点号(.),可选短横线(-)或空字符串。
|
|
7603
|
+
分隔符用于拼接主机名,递增序号,后缀。假设主机名为 testGpu4090 ,递增序号为 0007,后缀为 server:
|
|
7604
|
+
- 分隔符为英文点号(.),最终拼接为 testGpu4090.007.server
|
|
7605
|
+
- 分隔符为短横线(-),最终拼接为 testGpu4090-007-server
|
|
7606
|
+
- 分隔符为空字符串,最终拼接为 testGpu4090007server
|
|
7428
7607
|
:type HostNameDelimiter: str
|
|
7429
7608
|
"""
|
|
7430
7609
|
self._HostName = None
|
|
@@ -7464,11 +7643,9 @@ HostNameSettings的该入参非必选,未选时不设置主机名后缀。
|
|
|
7464
7643
|
@property
|
|
7465
7644
|
def HostNameSuffix(self):
|
|
7466
7645
|
r"""云服务器的主机名后缀。
|
|
7467
|
-
|
|
7468
|
-
<li> 点号(.)和短横线(-)不能作为 HostNameSuffix 的首尾字符,不能连续使用。</li>
|
|
7646
|
+
<li> 点号(.)和短横线(-)不能作为 HostNameSuffix 的尾字符,不能连续使用。</li>
|
|
7469
7647
|
<li> 不支持 Windows 实例。</li>
|
|
7470
7648
|
<li>其他类型(Linux 等)实例:字符长度为[1, 39],且与 HostName 的长度和不能超过 41,允许支持多个点号,点之间为一段,每段允许字母(不限制大小写)、数字和短横线(-)组成。</li>
|
|
7471
|
-
假设后缀名称为 suffix,原主机名为 test.0,最终主机名为 test.0.suffix。
|
|
7472
7649
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7473
7650
|
:rtype: str
|
|
7474
7651
|
"""
|
|
@@ -7480,11 +7657,11 @@ HostNameSettings的该入参非必选,未选时不设置主机名后缀。
|
|
|
7480
7657
|
|
|
7481
7658
|
@property
|
|
7482
7659
|
def HostNameDelimiter(self):
|
|
7483
|
-
r"""
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7660
|
+
r"""云服务器的主机名分隔符。默认的分隔符是点号(.),可选短横线(-)或空字符串。
|
|
7661
|
+
分隔符用于拼接主机名,递增序号,后缀。假设主机名为 testGpu4090 ,递增序号为 0007,后缀为 server:
|
|
7662
|
+
- 分隔符为英文点号(.),最终拼接为 testGpu4090.007.server
|
|
7663
|
+
- 分隔符为短横线(-),最终拼接为 testGpu4090-007-server
|
|
7664
|
+
- 分隔符为空字符串,最终拼接为 testGpu4090007server
|
|
7488
7665
|
:rtype: str
|
|
7489
7666
|
"""
|
|
7490
7667
|
return self._HostNameDelimiter
|
|
@@ -7999,19 +8176,19 @@ class InstanceNameIndexSettings(AbstractModel):
|
|
|
7999
8176
|
**TRUE**:表示开启实例创建序号; **FALSE**:表示不开启实例创建序号
|
|
8000
8177
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8001
8178
|
:type Enabled: bool
|
|
8002
|
-
:param _BeginIndex:
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8179
|
+
:param _BeginIndex: 初始序号。取值范围与 IndexLength 参数有关:
|
|
8180
|
+
- IndexLength 为 0 时,取值范围为 [0, 99999999]。
|
|
8181
|
+
- IndexLength 为 [1, 8] 时,取值范围为为 [0, 10^IndexLength-1],最大值即为指定位数的最大数字。
|
|
8182
|
+
初始序号默认值如下:
|
|
8183
|
+
- 首次启用递增序号:初始序号默认值为 0 ( 展示位数与 IndexLength 有关,例如 IndexLength 为 4,展示值为 0000)
|
|
8184
|
+
- 非首次开启递增序号:顺延之前的递增序号,例如上次使用递增至序号 069,则新的初始序号默认值为 070。
|
|
8185
|
+
注意:修改初始序号可能会造成伸缩组内序号重复。
|
|
8009
8186
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8010
8187
|
:type BeginIndex: int
|
|
8011
|
-
:param _IndexLength:
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8188
|
+
:param _IndexLength: 递增序号长度,默认为0,表示不指定序号长度。 取值范围:0-8,最大为整数8。
|
|
8189
|
+
- 长度设置为3,序号展示形式为:000、001、002 ... 010、011 ... 100 ... 999,序号上限为999
|
|
8190
|
+
- 长度设置为0,序号展示形式为:0、1、2 ... 10、11 ... 100 ... 1000 ...10000 ... 99999999,序号上限为99999999
|
|
8191
|
+
注意:递增序号持续超出上限会导致扩容失败,请不要设置过小的递增序号长度。
|
|
8015
8192
|
:type IndexLength: int
|
|
8016
8193
|
"""
|
|
8017
8194
|
self._Enabled = None
|
|
@@ -8034,13 +8211,13 @@ class InstanceNameIndexSettings(AbstractModel):
|
|
|
8034
8211
|
|
|
8035
8212
|
@property
|
|
8036
8213
|
def BeginIndex(self):
|
|
8037
|
-
r"""
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8214
|
+
r"""初始序号。取值范围与 IndexLength 参数有关:
|
|
8215
|
+
- IndexLength 为 0 时,取值范围为 [0, 99999999]。
|
|
8216
|
+
- IndexLength 为 [1, 8] 时,取值范围为为 [0, 10^IndexLength-1],最大值即为指定位数的最大数字。
|
|
8217
|
+
初始序号默认值如下:
|
|
8218
|
+
- 首次启用递增序号:初始序号默认值为 0 ( 展示位数与 IndexLength 有关,例如 IndexLength 为 4,展示值为 0000)
|
|
8219
|
+
- 非首次开启递增序号:顺延之前的递增序号,例如上次使用递增至序号 069,则新的初始序号默认值为 070。
|
|
8220
|
+
注意:修改初始序号可能会造成伸缩组内序号重复。
|
|
8044
8221
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8045
8222
|
:rtype: int
|
|
8046
8223
|
"""
|
|
@@ -8052,10 +8229,10 @@ class InstanceNameIndexSettings(AbstractModel):
|
|
|
8052
8229
|
|
|
8053
8230
|
@property
|
|
8054
8231
|
def IndexLength(self):
|
|
8055
|
-
r"""
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8232
|
+
r"""递增序号长度,默认为0,表示不指定序号长度。 取值范围:0-8,最大为整数8。
|
|
8233
|
+
- 长度设置为3,序号展示形式为:000、001、002 ... 010、011 ... 100 ... 999,序号上限为999
|
|
8234
|
+
- 长度设置为0,序号展示形式为:0、1、2 ... 10、11 ... 100 ... 1000 ...10000 ... 99999999,序号上限为99999999
|
|
8235
|
+
注意:递增序号持续超出上限会导致扩容失败,请不要设置过小的递增序号长度。
|
|
8059
8236
|
:rtype: int
|
|
8060
8237
|
"""
|
|
8061
8238
|
return self._IndexLength
|
|
@@ -8095,13 +8272,13 @@ ORIGINAL,AS 直接将入参中所填的 InstanceName 传递给 CVM,CVM 可
|
|
|
8095
8272
|
UNIQUE,入参所填的 InstanceName 相当于实例名前缀,AS 和 CVM 会对其进行拓展,伸缩组中实例的 InstanceName 可以保证唯一。
|
|
8096
8273
|
:type InstanceNameStyle: str
|
|
8097
8274
|
:param _InstanceNameSuffix: 云服务器实例名后缀。字符长度为[1,105],且与 InstanceName 的长度和不能超过107。
|
|
8098
|
-
|
|
8099
|
-
假设后缀名称为 suffix,原实例名为 test.0,最终实例名为 test.0.suffix。
|
|
8100
8275
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8101
8276
|
:type InstanceNameSuffix: str
|
|
8102
|
-
:param _InstanceNameDelimiter:
|
|
8103
|
-
|
|
8104
|
-
|
|
8277
|
+
:param _InstanceNameDelimiter: 云服务器的实例名分隔符。默认的分隔符是点号(.),可选短横线(-)或空字符串。
|
|
8278
|
+
分隔符用于拼接实例名,递增序号,后缀。假设实例名为 testGpu4090 ,递增序号为 0007,后缀为 server:
|
|
8279
|
+
- 分隔符为英文点号(.),最终拼接为 testGpu4090.007.server
|
|
8280
|
+
- 分隔符为短横线(-),最终拼接为 testGpu4090-007-server
|
|
8281
|
+
- 分隔符为空字符串,最终拼接为 testGpu4090007server
|
|
8105
8282
|
:type InstanceNameDelimiter: str
|
|
8106
8283
|
"""
|
|
8107
8284
|
self._InstanceName = None
|
|
@@ -8138,8 +8315,6 @@ UNIQUE,入参所填的 InstanceName 相当于实例名前缀,AS 和 CVM 会
|
|
|
8138
8315
|
@property
|
|
8139
8316
|
def InstanceNameSuffix(self):
|
|
8140
8317
|
r"""云服务器实例名后缀。字符长度为[1,105],且与 InstanceName 的长度和不能超过107。
|
|
8141
|
-
|
|
8142
|
-
假设后缀名称为 suffix,原实例名为 test.0,最终实例名为 test.0.suffix。
|
|
8143
8318
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8144
8319
|
:rtype: str
|
|
8145
8320
|
"""
|
|
@@ -8151,9 +8326,11 @@ UNIQUE,入参所填的 InstanceName 相当于实例名前缀,AS 和 CVM 会
|
|
|
8151
8326
|
|
|
8152
8327
|
@property
|
|
8153
8328
|
def InstanceNameDelimiter(self):
|
|
8154
|
-
r"""
|
|
8155
|
-
|
|
8156
|
-
|
|
8329
|
+
r"""云服务器的实例名分隔符。默认的分隔符是点号(.),可选短横线(-)或空字符串。
|
|
8330
|
+
分隔符用于拼接实例名,递增序号,后缀。假设实例名为 testGpu4090 ,递增序号为 0007,后缀为 server:
|
|
8331
|
+
- 分隔符为英文点号(.),最终拼接为 testGpu4090.007.server
|
|
8332
|
+
- 分隔符为短横线(-),最终拼接为 testGpu4090-007-server
|
|
8333
|
+
- 分隔符为空字符串,最终拼接为 testGpu4090007server
|
|
8157
8334
|
:rtype: str
|
|
8158
8335
|
"""
|
|
8159
8336
|
return self._InstanceNameDelimiter
|
|
@@ -9927,6 +10104,10 @@ class ModifyAutoScalingGroupRequest(AbstractModel):
|
|
|
9927
10104
|
:type CapacityRebalance: bool
|
|
9928
10105
|
:param _InstanceNameIndexSettings: 实例名称序号相关设置。开启后为伸缩组内自动创建的实例名称添加递增的数字序号。
|
|
9929
10106
|
:type InstanceNameIndexSettings: :class:`tencentcloud.autoscaling.v20180419.models.InstanceNameIndexSettings`
|
|
10107
|
+
:param _HostNameIndexSettings: 实例主机名序号相关设置。开启后为伸缩组内自动创建的实例主机名添加递增的数字序号。
|
|
10108
|
+
:type HostNameIndexSettings: :class:`tencentcloud.autoscaling.v20180419.models.HostNameIndexSettings`
|
|
10109
|
+
:param _ConcurrentScaleOutForDesiredCapacity: 匹配期望数并发扩容功能,不能在InstanceAllocationPolicy为竞价混合模式时设置,也不能在ScalingMode为扩容优先开机模式时设置。目前仅支持两个匹配期望数扩容活动并发进行,不支持指定数量扩容、缩容等其他类型活动并发。设置为FALSE表示不开启。
|
|
10110
|
+
:type ConcurrentScaleOutForDesiredCapacity: bool
|
|
9930
10111
|
"""
|
|
9931
10112
|
self._AutoScalingGroupId = None
|
|
9932
10113
|
self._AutoScalingGroupName = None
|
|
@@ -9951,6 +10132,8 @@ class ModifyAutoScalingGroupRequest(AbstractModel):
|
|
|
9951
10132
|
self._SpotMixedAllocationPolicy = None
|
|
9952
10133
|
self._CapacityRebalance = None
|
|
9953
10134
|
self._InstanceNameIndexSettings = None
|
|
10135
|
+
self._HostNameIndexSettings = None
|
|
10136
|
+
self._ConcurrentScaleOutForDesiredCapacity = None
|
|
9954
10137
|
|
|
9955
10138
|
@property
|
|
9956
10139
|
def AutoScalingGroupId(self):
|
|
@@ -10233,6 +10416,28 @@ class ModifyAutoScalingGroupRequest(AbstractModel):
|
|
|
10233
10416
|
def InstanceNameIndexSettings(self, InstanceNameIndexSettings):
|
|
10234
10417
|
self._InstanceNameIndexSettings = InstanceNameIndexSettings
|
|
10235
10418
|
|
|
10419
|
+
@property
|
|
10420
|
+
def HostNameIndexSettings(self):
|
|
10421
|
+
r"""实例主机名序号相关设置。开启后为伸缩组内自动创建的实例主机名添加递增的数字序号。
|
|
10422
|
+
:rtype: :class:`tencentcloud.autoscaling.v20180419.models.HostNameIndexSettings`
|
|
10423
|
+
"""
|
|
10424
|
+
return self._HostNameIndexSettings
|
|
10425
|
+
|
|
10426
|
+
@HostNameIndexSettings.setter
|
|
10427
|
+
def HostNameIndexSettings(self, HostNameIndexSettings):
|
|
10428
|
+
self._HostNameIndexSettings = HostNameIndexSettings
|
|
10429
|
+
|
|
10430
|
+
@property
|
|
10431
|
+
def ConcurrentScaleOutForDesiredCapacity(self):
|
|
10432
|
+
r"""匹配期望数并发扩容功能,不能在InstanceAllocationPolicy为竞价混合模式时设置,也不能在ScalingMode为扩容优先开机模式时设置。目前仅支持两个匹配期望数扩容活动并发进行,不支持指定数量扩容、缩容等其他类型活动并发。设置为FALSE表示不开启。
|
|
10433
|
+
:rtype: bool
|
|
10434
|
+
"""
|
|
10435
|
+
return self._ConcurrentScaleOutForDesiredCapacity
|
|
10436
|
+
|
|
10437
|
+
@ConcurrentScaleOutForDesiredCapacity.setter
|
|
10438
|
+
def ConcurrentScaleOutForDesiredCapacity(self, ConcurrentScaleOutForDesiredCapacity):
|
|
10439
|
+
self._ConcurrentScaleOutForDesiredCapacity = ConcurrentScaleOutForDesiredCapacity
|
|
10440
|
+
|
|
10236
10441
|
|
|
10237
10442
|
def _deserialize(self, params):
|
|
10238
10443
|
self._AutoScalingGroupId = params.get("AutoScalingGroupId")
|
|
@@ -10264,6 +10469,10 @@ class ModifyAutoScalingGroupRequest(AbstractModel):
|
|
|
10264
10469
|
if params.get("InstanceNameIndexSettings") is not None:
|
|
10265
10470
|
self._InstanceNameIndexSettings = InstanceNameIndexSettings()
|
|
10266
10471
|
self._InstanceNameIndexSettings._deserialize(params.get("InstanceNameIndexSettings"))
|
|
10472
|
+
if params.get("HostNameIndexSettings") is not None:
|
|
10473
|
+
self._HostNameIndexSettings = HostNameIndexSettings()
|
|
10474
|
+
self._HostNameIndexSettings._deserialize(params.get("HostNameIndexSettings"))
|
|
10475
|
+
self._ConcurrentScaleOutForDesiredCapacity = params.get("ConcurrentScaleOutForDesiredCapacity")
|
|
10267
10476
|
memeber_set = set(params.keys())
|
|
10268
10477
|
for name, value in vars(self).items():
|
|
10269
10478
|
property_name = name[1:]
|
|
@@ -11743,6 +11952,14 @@ class ModifyScheduledActionRequest(AbstractModel):
|
|
|
11743
11952
|
:type EndTime: str
|
|
11744
11953
|
:param _Recurrence: 定时任务的重复方式。为标准 Cron 格式,[Recurrence参数限制](https://cloud.tencent.com/document/product/377/88119)为5个字段,由空格分开,结构为:分,小时,日期,月份,星期。此参数与`EndTime`需要同时指定。
|
|
11745
11954
|
:type Recurrence: str
|
|
11955
|
+
:param _DisableUpdateDesiredCapacity: 停用期望数更新。默认值为 False,表示定时任务触发时期望实例数正常更新。
|
|
11956
|
+
该值为 True 时,定时任务触发时不会主动修改期望实例数,但可能会因最大最小值机制修改期望实例数。
|
|
11957
|
+
以下案例的前提都是停用期望数更新为 True:
|
|
11958
|
+
|
|
11959
|
+
- 定时任务触发时,原期望数为 5,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 5 小于最小值 10,最终新期望数为 10。
|
|
11960
|
+
- 定时任务触发时,原期望数为 25,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 25 大于最大值 20,最终新期望数为 20。
|
|
11961
|
+
- 定时任务触发时,原期望数为 13,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,期望数保持为 13 。
|
|
11962
|
+
:type DisableUpdateDesiredCapacity: bool
|
|
11746
11963
|
"""
|
|
11747
11964
|
self._ScheduledActionId = None
|
|
11748
11965
|
self._ScheduledActionName = None
|
|
@@ -11752,6 +11969,7 @@ class ModifyScheduledActionRequest(AbstractModel):
|
|
|
11752
11969
|
self._StartTime = None
|
|
11753
11970
|
self._EndTime = None
|
|
11754
11971
|
self._Recurrence = None
|
|
11972
|
+
self._DisableUpdateDesiredCapacity = None
|
|
11755
11973
|
|
|
11756
11974
|
@property
|
|
11757
11975
|
def ScheduledActionId(self):
|
|
@@ -11841,6 +12059,23 @@ class ModifyScheduledActionRequest(AbstractModel):
|
|
|
11841
12059
|
def Recurrence(self, Recurrence):
|
|
11842
12060
|
self._Recurrence = Recurrence
|
|
11843
12061
|
|
|
12062
|
+
@property
|
|
12063
|
+
def DisableUpdateDesiredCapacity(self):
|
|
12064
|
+
r"""停用期望数更新。默认值为 False,表示定时任务触发时期望实例数正常更新。
|
|
12065
|
+
该值为 True 时,定时任务触发时不会主动修改期望实例数,但可能会因最大最小值机制修改期望实例数。
|
|
12066
|
+
以下案例的前提都是停用期望数更新为 True:
|
|
12067
|
+
|
|
12068
|
+
- 定时任务触发时,原期望数为 5,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 5 小于最小值 10,最终新期望数为 10。
|
|
12069
|
+
- 定时任务触发时,原期望数为 25,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 25 大于最大值 20,最终新期望数为 20。
|
|
12070
|
+
- 定时任务触发时,原期望数为 13,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,期望数保持为 13 。
|
|
12071
|
+
:rtype: bool
|
|
12072
|
+
"""
|
|
12073
|
+
return self._DisableUpdateDesiredCapacity
|
|
12074
|
+
|
|
12075
|
+
@DisableUpdateDesiredCapacity.setter
|
|
12076
|
+
def DisableUpdateDesiredCapacity(self, DisableUpdateDesiredCapacity):
|
|
12077
|
+
self._DisableUpdateDesiredCapacity = DisableUpdateDesiredCapacity
|
|
12078
|
+
|
|
11844
12079
|
|
|
11845
12080
|
def _deserialize(self, params):
|
|
11846
12081
|
self._ScheduledActionId = params.get("ScheduledActionId")
|
|
@@ -11851,6 +12086,7 @@ class ModifyScheduledActionRequest(AbstractModel):
|
|
|
11851
12086
|
self._StartTime = params.get("StartTime")
|
|
11852
12087
|
self._EndTime = params.get("EndTime")
|
|
11853
12088
|
self._Recurrence = params.get("Recurrence")
|
|
12089
|
+
self._DisableUpdateDesiredCapacity = params.get("DisableUpdateDesiredCapacity")
|
|
11854
12090
|
memeber_set = set(params.keys())
|
|
11855
12091
|
for name, value in vars(self).items():
|
|
11856
12092
|
property_name = name[1:]
|
|
@@ -13540,6 +13776,14 @@ class ScheduledAction(AbstractModel):
|
|
|
13540
13776
|
<li>CRONTAB:代表定时任务为重复执行。</li>
|
|
13541
13777
|
<li>ONCE:代表定时任务为单次执行。</li>
|
|
13542
13778
|
:type ScheduledType: str
|
|
13779
|
+
:param _DisableUpdateDesiredCapacity: 停用期望数更新。表示定时任务触发时期望实例数正常更新。
|
|
13780
|
+
该值为 True 时,定时任务触发时不会主动修改期望实例数,但可能会因最大最小值机制修改期望实例数。
|
|
13781
|
+
以下案例的前提都是停用期望数更新为 True:
|
|
13782
|
+
|
|
13783
|
+
- 定时任务触发时,原期望数为 5,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 5 小于最小值 10,最终新期望数为 10。
|
|
13784
|
+
- 定时任务触发时,原期望数为 25,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 25 大于最大值 20,最终新期望数为 20。
|
|
13785
|
+
- 定时任务触发时,原期望数为 13,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,期望数保持为 13 。
|
|
13786
|
+
:type DisableUpdateDesiredCapacity: bool
|
|
13543
13787
|
"""
|
|
13544
13788
|
self._ScheduledActionId = None
|
|
13545
13789
|
self._ScheduledActionName = None
|
|
@@ -13552,6 +13796,7 @@ class ScheduledAction(AbstractModel):
|
|
|
13552
13796
|
self._MinSize = None
|
|
13553
13797
|
self._CreatedTime = None
|
|
13554
13798
|
self._ScheduledType = None
|
|
13799
|
+
self._DisableUpdateDesiredCapacity = None
|
|
13555
13800
|
|
|
13556
13801
|
@property
|
|
13557
13802
|
def ScheduledActionId(self):
|
|
@@ -13676,6 +13921,23 @@ class ScheduledAction(AbstractModel):
|
|
|
13676
13921
|
def ScheduledType(self, ScheduledType):
|
|
13677
13922
|
self._ScheduledType = ScheduledType
|
|
13678
13923
|
|
|
13924
|
+
@property
|
|
13925
|
+
def DisableUpdateDesiredCapacity(self):
|
|
13926
|
+
r"""停用期望数更新。表示定时任务触发时期望实例数正常更新。
|
|
13927
|
+
该值为 True 时,定时任务触发时不会主动修改期望实例数,但可能会因最大最小值机制修改期望实例数。
|
|
13928
|
+
以下案例的前提都是停用期望数更新为 True:
|
|
13929
|
+
|
|
13930
|
+
- 定时任务触发时,原期望数为 5,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 5 小于最小值 10,最终新期望数为 10。
|
|
13931
|
+
- 定时任务触发时,原期望数为 25,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,但原期望数 25 大于最大值 20,最终新期望数为 20。
|
|
13932
|
+
- 定时任务触发时,原期望数为 13,定时任务将最小值改为 10,最大值改为 20,期望数改为 15,由于停用期望数更新,15不生效,期望数保持为 13 。
|
|
13933
|
+
:rtype: bool
|
|
13934
|
+
"""
|
|
13935
|
+
return self._DisableUpdateDesiredCapacity
|
|
13936
|
+
|
|
13937
|
+
@DisableUpdateDesiredCapacity.setter
|
|
13938
|
+
def DisableUpdateDesiredCapacity(self, DisableUpdateDesiredCapacity):
|
|
13939
|
+
self._DisableUpdateDesiredCapacity = DisableUpdateDesiredCapacity
|
|
13940
|
+
|
|
13679
13941
|
|
|
13680
13942
|
def _deserialize(self, params):
|
|
13681
13943
|
self._ScheduledActionId = params.get("ScheduledActionId")
|
|
@@ -13689,6 +13951,7 @@ class ScheduledAction(AbstractModel):
|
|
|
13689
13951
|
self._MinSize = params.get("MinSize")
|
|
13690
13952
|
self._CreatedTime = params.get("CreatedTime")
|
|
13691
13953
|
self._ScheduledType = params.get("ScheduledType")
|
|
13954
|
+
self._DisableUpdateDesiredCapacity = params.get("DisableUpdateDesiredCapacity")
|
|
13692
13955
|
memeber_set = set(params.keys())
|
|
13693
13956
|
for name, value in vars(self).items():
|
|
13694
13957
|
property_name = name[1:]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-autoscaling
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.16
|
|
4
4
|
Summary: Tencent Cloud Autoscaling SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.16
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
tencentcloud_sdk_python_autoscaling-3.1.16/tencentcloud_sdk_python_autoscaling.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.16
|
tencentcloud_sdk_python_autoscaling-3.1.4/tencentcloud_sdk_python_autoscaling.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.4
|
{tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/README.rst
RENAMED
|
File without changes
|
{tencentcloud_sdk_python_autoscaling-3.1.4 → tencentcloud_sdk_python_autoscaling-3.1.16}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|