tencentcloud-sdk-python-autoscaling 3.0.1017__tar.gz → 3.0.1028__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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/setup.py +1 -1
  3. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/tencentcloud/autoscaling/v20180419/models.py +90 -0
  5. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/tencentcloud_sdk_python_autoscaling.egg-info/PKG-INFO +1 -1
  6. tencentcloud-sdk-python-autoscaling-3.0.1028/tencentcloud_sdk_python_autoscaling.egg-info/requires.txt +1 -0
  7. tencentcloud-sdk-python-autoscaling-3.0.1017/tencentcloud_sdk_python_autoscaling.egg-info/requires.txt +0 -1
  8. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/README.rst +0 -0
  9. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/setup.cfg +0 -0
  10. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/tencentcloud/autoscaling/__init__.py +0 -0
  11. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/tencentcloud/autoscaling/v20180419/__init__.py +0 -0
  12. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/tencentcloud/autoscaling/v20180419/autoscaling_client.py +0 -0
  13. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/tencentcloud/autoscaling/v20180419/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/tencentcloud_sdk_python_autoscaling.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/tencentcloud_sdk_python_autoscaling.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-autoscaling-3.0.1017 → tencentcloud-sdk-python-autoscaling-3.0.1028}/tencentcloud_sdk_python_autoscaling.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-autoscaling
3
- Version: 3.0.1017
3
+ Version: 3.0.1028
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
@@ -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.0.1017"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1028"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Autoscaling SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1017'
17
+ __version__ = '3.0.1028'
@@ -722,6 +722,9 @@ class AutoScalingGroup(AbstractModel):
722
722
  <br><li> TRUE,开启该功能,当伸缩组内的竞价实例即将被竞价实例服务自动回收前,AS 主动发起竞价实例销毁流程,如果有配置过缩容 hook,则销毁前 hook 会生效。销毁流程启动后,AS 会异步开启一个扩容活动,用于补齐期望实例数。
723
723
  <br><li> FALSE,不开启该功能,则 AS 等待竞价实例被销毁后才会去扩容补齐伸缩组期望实例数。
724
724
  :type CapacityRebalance: bool
725
+ :param _InstanceNameIndexSettings: 实例名称序号相关设置。
726
+ 注意:此字段可能返回 null,表示取不到有效值。
727
+ :type InstanceNameIndexSettings: :class:`tencentcloud.autoscaling.v20180419.models.InstanceNameIndexSettings`
725
728
  """
726
729
  self._AutoScalingGroupId = None
727
730
  self._AutoScalingGroupName = None
@@ -754,6 +757,7 @@ class AutoScalingGroup(AbstractModel):
754
757
  self._InstanceAllocationPolicy = None
755
758
  self._SpotMixedAllocationPolicy = None
756
759
  self._CapacityRebalance = None
760
+ self._InstanceNameIndexSettings = None
757
761
 
758
762
  @property
759
763
  def AutoScalingGroupId(self):
@@ -1003,6 +1007,14 @@ class AutoScalingGroup(AbstractModel):
1003
1007
  def CapacityRebalance(self, CapacityRebalance):
1004
1008
  self._CapacityRebalance = CapacityRebalance
1005
1009
 
1010
+ @property
1011
+ def InstanceNameIndexSettings(self):
1012
+ return self._InstanceNameIndexSettings
1013
+
1014
+ @InstanceNameIndexSettings.setter
1015
+ def InstanceNameIndexSettings(self, InstanceNameIndexSettings):
1016
+ self._InstanceNameIndexSettings = InstanceNameIndexSettings
1017
+
1006
1018
 
1007
1019
  def _deserialize(self, params):
1008
1020
  self._AutoScalingGroupId = params.get("AutoScalingGroupId")
@@ -1050,6 +1062,9 @@ class AutoScalingGroup(AbstractModel):
1050
1062
  self._SpotMixedAllocationPolicy = SpotMixedAllocationPolicy()
1051
1063
  self._SpotMixedAllocationPolicy._deserialize(params.get("SpotMixedAllocationPolicy"))
1052
1064
  self._CapacityRebalance = params.get("CapacityRebalance")
1065
+ if params.get("InstanceNameIndexSettings") is not None:
1066
+ self._InstanceNameIndexSettings = InstanceNameIndexSettings()
1067
+ self._InstanceNameIndexSettings._deserialize(params.get("InstanceNameIndexSettings"))
1053
1068
  memeber_set = set(params.keys())
1054
1069
  for name, value in vars(self).items():
1055
1070
  property_name = name[1:]
@@ -1693,6 +1708,8 @@ class CreateAutoScalingGroupRequest(AbstractModel):
1693
1708
 
1694
1709
  默认取 FALSE。
1695
1710
  :type CapacityRebalance: bool
1711
+ :param _InstanceNameIndexSettings: 实例名称序号相关设置。若不指定该参数,则默认不开启。开启后为伸缩组内自动创建的实例名称添加递增的数字序号。
1712
+ :type InstanceNameIndexSettings: :class:`tencentcloud.autoscaling.v20180419.models.InstanceNameIndexSettings`
1696
1713
  """
1697
1714
  self._AutoScalingGroupName = None
1698
1715
  self._LaunchConfigurationId = None
@@ -1718,6 +1735,7 @@ class CreateAutoScalingGroupRequest(AbstractModel):
1718
1735
  self._InstanceAllocationPolicy = None
1719
1736
  self._SpotMixedAllocationPolicy = None
1720
1737
  self._CapacityRebalance = None
1738
+ self._InstanceNameIndexSettings = None
1721
1739
 
1722
1740
  @property
1723
1741
  def AutoScalingGroupName(self):
@@ -1911,6 +1929,14 @@ class CreateAutoScalingGroupRequest(AbstractModel):
1911
1929
  def CapacityRebalance(self, CapacityRebalance):
1912
1930
  self._CapacityRebalance = CapacityRebalance
1913
1931
 
1932
+ @property
1933
+ def InstanceNameIndexSettings(self):
1934
+ return self._InstanceNameIndexSettings
1935
+
1936
+ @InstanceNameIndexSettings.setter
1937
+ def InstanceNameIndexSettings(self, InstanceNameIndexSettings):
1938
+ self._InstanceNameIndexSettings = InstanceNameIndexSettings
1939
+
1914
1940
 
1915
1941
  def _deserialize(self, params):
1916
1942
  self._AutoScalingGroupName = params.get("AutoScalingGroupName")
@@ -1951,6 +1977,9 @@ class CreateAutoScalingGroupRequest(AbstractModel):
1951
1977
  self._SpotMixedAllocationPolicy = SpotMixedAllocationPolicy()
1952
1978
  self._SpotMixedAllocationPolicy._deserialize(params.get("SpotMixedAllocationPolicy"))
1953
1979
  self._CapacityRebalance = params.get("CapacityRebalance")
1980
+ if params.get("InstanceNameIndexSettings") is not None:
1981
+ self._InstanceNameIndexSettings = InstanceNameIndexSettings()
1982
+ self._InstanceNameIndexSettings._deserialize(params.get("InstanceNameIndexSettings"))
1954
1983
  memeber_set = set(params.keys())
1955
1984
  for name, value in vars(self).items():
1956
1985
  property_name = name[1:]
@@ -6267,6 +6296,53 @@ class InstanceMarketOptionsRequest(AbstractModel):
6267
6296
 
6268
6297
 
6269
6298
 
6299
+ class InstanceNameIndexSettings(AbstractModel):
6300
+ """实例名称序号相关设置。
6301
+
6302
+ """
6303
+
6304
+ def __init__(self):
6305
+ r"""
6306
+ :param _Enabled: 是否开启实例创建序号,默认不开启。取值范围:<li>TRUE:表示开启实例创建序号<li>FALSE:表示不开启实例创建序号
6307
+ 注意:此字段可能返回 null,表示取不到有效值。
6308
+ :type Enabled: bool
6309
+ :param _BeginIndex: 初始序号,取值范围为 [0, 99999999]。当序号递增后超出取值范围时,扩容活动会失败。<li>首次开启实例名称序号:默认值为 0。<li>非首次开启实例名称序号:若不指定该参数,沿用历史序号。下调初始序号可能会造成伸缩组内实例名称序号重复。
6310
+ 注意:此字段可能返回 null,表示取不到有效值。
6311
+ :type BeginIndex: int
6312
+ """
6313
+ self._Enabled = None
6314
+ self._BeginIndex = None
6315
+
6316
+ @property
6317
+ def Enabled(self):
6318
+ return self._Enabled
6319
+
6320
+ @Enabled.setter
6321
+ def Enabled(self, Enabled):
6322
+ self._Enabled = Enabled
6323
+
6324
+ @property
6325
+ def BeginIndex(self):
6326
+ return self._BeginIndex
6327
+
6328
+ @BeginIndex.setter
6329
+ def BeginIndex(self, BeginIndex):
6330
+ self._BeginIndex = BeginIndex
6331
+
6332
+
6333
+ def _deserialize(self, params):
6334
+ self._Enabled = params.get("Enabled")
6335
+ self._BeginIndex = params.get("BeginIndex")
6336
+ memeber_set = set(params.keys())
6337
+ for name, value in vars(self).items():
6338
+ property_name = name[1:]
6339
+ if property_name in memeber_set:
6340
+ memeber_set.remove(property_name)
6341
+ if len(memeber_set) > 0:
6342
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6343
+
6344
+
6345
+
6270
6346
  class InstanceNameSettings(AbstractModel):
6271
6347
  """云服务器实例名称(InstanceName)的相关设置
6272
6348
 
@@ -7557,6 +7633,8 @@ INCREMENTAL_INTERVALS,间隔递增重试,随着连续失败次数的增加
7557
7633
  <br><li> TRUE,开启该功能,当伸缩组内的竞价实例即将被竞价实例服务自动回收前,AS 主动发起竞价实例销毁流程,如果有配置过缩容 hook,则销毁前 hook 会生效。销毁流程启动后,AS 会异步开启一个扩容活动,用于补齐期望实例数。
7558
7634
  <br><li> FALSE,不开启该功能,则 AS 等待竞价实例被销毁后才会去扩容补齐伸缩组期望实例数。
7559
7635
  :type CapacityRebalance: bool
7636
+ :param _InstanceNameIndexSettings: 实例名称序号相关设置。开启后为伸缩组内自动创建的实例名称添加递增的数字序号。
7637
+ :type InstanceNameIndexSettings: :class:`tencentcloud.autoscaling.v20180419.models.InstanceNameIndexSettings`
7560
7638
  """
7561
7639
  self._AutoScalingGroupId = None
7562
7640
  self._AutoScalingGroupName = None
@@ -7580,6 +7658,7 @@ INCREMENTAL_INTERVALS,间隔递增重试,随着连续失败次数的增加
7580
7658
  self._InstanceAllocationPolicy = None
7581
7659
  self._SpotMixedAllocationPolicy = None
7582
7660
  self._CapacityRebalance = None
7661
+ self._InstanceNameIndexSettings = None
7583
7662
 
7584
7663
  @property
7585
7664
  def AutoScalingGroupId(self):
@@ -7757,6 +7836,14 @@ INCREMENTAL_INTERVALS,间隔递增重试,随着连续失败次数的增加
7757
7836
  def CapacityRebalance(self, CapacityRebalance):
7758
7837
  self._CapacityRebalance = CapacityRebalance
7759
7838
 
7839
+ @property
7840
+ def InstanceNameIndexSettings(self):
7841
+ return self._InstanceNameIndexSettings
7842
+
7843
+ @InstanceNameIndexSettings.setter
7844
+ def InstanceNameIndexSettings(self, InstanceNameIndexSettings):
7845
+ self._InstanceNameIndexSettings = InstanceNameIndexSettings
7846
+
7760
7847
 
7761
7848
  def _deserialize(self, params):
7762
7849
  self._AutoScalingGroupId = params.get("AutoScalingGroupId")
@@ -7785,6 +7872,9 @@ INCREMENTAL_INTERVALS,间隔递增重试,随着连续失败次数的增加
7785
7872
  self._SpotMixedAllocationPolicy = SpotMixedAllocationPolicy()
7786
7873
  self._SpotMixedAllocationPolicy._deserialize(params.get("SpotMixedAllocationPolicy"))
7787
7874
  self._CapacityRebalance = params.get("CapacityRebalance")
7875
+ if params.get("InstanceNameIndexSettings") is not None:
7876
+ self._InstanceNameIndexSettings = InstanceNameIndexSettings()
7877
+ self._InstanceNameIndexSettings._deserialize(params.get("InstanceNameIndexSettings"))
7788
7878
  memeber_set = set(params.keys())
7789
7879
  for name, value in vars(self).items():
7790
7880
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-autoscaling
3
- Version: 3.0.1017
3
+ Version: 3.0.1028
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1028
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1017