tencentcloud-sdk-python-autoscaling 3.0.1253__tar.gz → 3.0.1259__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.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-autoscaling-3.0.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/setup.py +1 -1
  3. {tencentcloud-sdk-python-autoscaling-3.0.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-autoscaling-3.0.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/tencentcloud/autoscaling/v20180419/autoscaling_client.py +7 -1
  5. {tencentcloud-sdk-python-autoscaling-3.0.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/tencentcloud/autoscaling/v20180419/errorcodes.py +3 -0
  6. {tencentcloud-sdk-python-autoscaling-3.0.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/tencentcloud/autoscaling/v20180419/models.py +18 -2
  7. {tencentcloud-sdk-python-autoscaling-3.0.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/tencentcloud_sdk_python_autoscaling.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-autoscaling-3.0.1259/tencentcloud_sdk_python_autoscaling.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-autoscaling-3.0.1253/tencentcloud_sdk_python_autoscaling.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-autoscaling-3.0.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/README.rst +0 -0
  11. {tencentcloud-sdk-python-autoscaling-3.0.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-autoscaling-3.0.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/tencentcloud/autoscaling/__init__.py +0 -0
  13. {tencentcloud-sdk-python-autoscaling-3.0.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/tencentcloud/autoscaling/v20180419/__init__.py +0 -0
  14. {tencentcloud-sdk-python-autoscaling-3.0.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/tencentcloud_sdk_python_autoscaling.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-autoscaling-3.0.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/tencentcloud_sdk_python_autoscaling.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-autoscaling-3.0.1253 → tencentcloud-sdk-python-autoscaling-3.0.1259}/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.1253
3
+ Version: 3.0.1259
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.1253"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1259"],
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.1253'
17
+ __version__ = '3.0.1259'
@@ -79,6 +79,8 @@ class AutoscalingClient(AbstractClient):
79
79
  * 已刷新/正在刷新的批次不受影响,待刷新批次被取消
80
80
  * 刷新失败的实例保持备用中状态,需用户手动处理后尝试退出备用中状态或销毁
81
81
  * 取消后不允许回滚操作,也不支持恢复操作
82
+ * 因 maxSurge 参数而临时扩容的实例在取消后会自动销毁
83
+ * 进行缩容时,所有实例都已经更新完成,此时无法取消
82
84
 
83
85
  :param request: Request instance for CancelInstanceRefresh.
84
86
  :type request: :class:`tencentcloud.autoscaling.v20180419.models.CancelInstanceRefreshRequest`
@@ -1200,6 +1202,8 @@ class AutoscalingClient(AbstractClient):
1200
1202
  def ResumeInstanceRefresh(self, request):
1201
1203
  """恢复暂停状态的实例刷新活动,使其重试当前批次刷新失败实例或继续刷新后续批次,非暂停状态下调用该接口无效。
1202
1204
 
1205
+ - 使用 MaxSurge 参数时活动可能会处于扩容或缩容失败导致的暂停状态,也可以使用该接口重试扩缩容。
1206
+
1203
1207
  :param request: Request instance for ResumeInstanceRefresh.
1204
1208
  :type request: :class:`tencentcloud.autoscaling.v20180419.models.ResumeInstanceRefreshRequest`
1205
1209
  :rtype: :class:`tencentcloud.autoscaling.v20180419.models.ResumeInstanceRefreshResponse`
@@ -1226,6 +1230,7 @@ class AutoscalingClient(AbstractClient):
1226
1230
  * 原活动中正在刷新的实例不会立刻终止,刷新结束后再执行回滚活动
1227
1231
  * 暂停状态或最近一次成功的刷新活动支持回滚,其他状态不支持回滚
1228
1232
  * 原活动刷新方式为重装实例时,对于 ImageId参数,会自动恢复到回滚前镜像 ID;对于 UserData、EnhancedService、LoginSettings、 HostName 参数,依然会从启动配置中读取,需用户在回滚前自行修改启动配置
1233
+ * 回滚活动暂不支持 MaxSurge 参数
1229
1234
 
1230
1235
  :param request: Request instance for RollbackInstanceRefresh.
1231
1236
  :type request: :class:`tencentcloud.autoscaling.v20180419.models.RollbackInstanceRefreshRequest`
@@ -1411,7 +1416,8 @@ class AutoscalingClient(AbstractClient):
1411
1416
  def StopInstanceRefresh(self, request):
1412
1417
  """暂停正在执行的实例刷新活动。
1413
1418
  * 暂停状态下,伸缩组也会处于停用中状态
1414
- * 当前正在更新的实例不会暂停,待更新的实例会暂停更新
1419
+ * 当前正在更新或扩容的实例不会暂停,待更新的实例会暂停更新
1420
+ * 进行缩容时,所有实例都已经更新完成,此时无法暂停
1415
1421
 
1416
1422
  :param request: Request instance for StopInstanceRefresh.
1417
1423
  :type request: :class:`tencentcloud.autoscaling.v20180419.models.StopInstanceRefreshRequest`
@@ -251,6 +251,9 @@ INVALIDPARAMETERVALUE_LIMITEXCEEDED = 'InvalidParameterValue.LimitExceeded'
251
251
  # 不支持目标组类型的监听器。
252
252
  INVALIDPARAMETERVALUE_LISTENERTARGETTYPENOTSUPPORTED = 'InvalidParameterValue.ListenerTargetTypeNotSupported'
253
253
 
254
+ # 最大额外数量取值过大。
255
+ INVALIDPARAMETERVALUE_MAXSURGETOOLARGE = 'InvalidParameterValue.MaxSurgeTooLarge'
256
+
254
257
  # 当前账户在带宽包模式中必须填写带宽包ID参数。
255
258
  INVALIDPARAMETERVALUE_MISSINGBANDWIDTHPACKAGEID = 'InvalidParameterValue.MissingBandwidthPackageId'
256
259
 
@@ -9881,7 +9881,7 @@ class ResumeInstanceRefreshRequest(AbstractModel):
9881
9881
  :type AutoScalingGroupId: str
9882
9882
  :param _RefreshActivityId: 刷新活动ID。
9883
9883
  :type RefreshActivityId: str
9884
- :param _ResumeMode: 当前批次刷新失败实例的恢复方式,如不存在失败实例,该参数无效。默认值为RETRY,取值范围如下:<br><li>RETRY: 重试当前批次刷新失败实例</li><li>CONTINUE: 跳过当前批次刷新失败实例
9884
+ :param _ResumeMode: 当前批次刷新失败实例的恢复方式,如不存在失败实例,该参数无效。默认值为RETRY,取值范围如下:<li>RETRY: 重试当前批次刷新失败实例</li><li>CONTINUE: 跳过当前批次刷新失败实例</li>
9885
9885
  :type ResumeMode: str
9886
9886
  """
9887
9887
  self._AutoScalingGroupId = None
@@ -10069,11 +10069,18 @@ class RollingUpdateSettings(AbstractModel):
10069
10069
  r"""
10070
10070
  :param _BatchNumber: 批次数量。批次数量为大于 0 的正整数,但不能大于待刷新实例数量。
10071
10071
  :type BatchNumber: int
10072
- :param _BatchPause: 批次间暂停策略。默认值为 Automatic,取值范围如下:<br><li>FIRST_BATCH_PAUSE:第一批次更新完成后暂停</li><li>BATCH_INTERVAL_PAUSE:批次间暂停</li><li>AUTOMATIC:不暂停
10072
+ :param _BatchPause: 批次间暂停策略。默认值为 Automatic,取值范围如下:
10073
+ <li>FIRST_BATCH_PAUSE:第一批次更新完成后暂停</li>
10074
+ <li>BATCH_INTERVAL_PAUSE:批次间暂停</li>
10075
+ <li>AUTOMATIC:不暂停</li>
10073
10076
  :type BatchPause: str
10077
+ :param _MaxSurge: 最大额外数量。设置该参数后,在滚动更新开始前根据启动配置创建一批按量计费的额外实例,滚动更新完成后销毁额外实例。
10078
+ 该参数用于保证滚动更新过程中可用实例的数量,最大额外数量不能超过滚动更新单个批次的刷新实例数。回滚流程暂不支持该参数。
10079
+ :type MaxSurge: int
10074
10080
  """
10075
10081
  self._BatchNumber = None
10076
10082
  self._BatchPause = None
10083
+ self._MaxSurge = None
10077
10084
 
10078
10085
  @property
10079
10086
  def BatchNumber(self):
@@ -10091,10 +10098,19 @@ class RollingUpdateSettings(AbstractModel):
10091
10098
  def BatchPause(self, BatchPause):
10092
10099
  self._BatchPause = BatchPause
10093
10100
 
10101
+ @property
10102
+ def MaxSurge(self):
10103
+ return self._MaxSurge
10104
+
10105
+ @MaxSurge.setter
10106
+ def MaxSurge(self, MaxSurge):
10107
+ self._MaxSurge = MaxSurge
10108
+
10094
10109
 
10095
10110
  def _deserialize(self, params):
10096
10111
  self._BatchNumber = params.get("BatchNumber")
10097
10112
  self._BatchPause = params.get("BatchPause")
10113
+ self._MaxSurge = params.get("MaxSurge")
10098
10114
  memeber_set = set(params.keys())
10099
10115
  for name, value in vars(self).items():
10100
10116
  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.1253
3
+ Version: 3.0.1259
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.1259
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1253