tencentcloud-sdk-python 3.0.1339__py2.py3-none-any.whl → 3.0.1341__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/autoscaling/v20180419/autoscaling_client.py +26 -0
- tencentcloud/autoscaling/v20180419/models.py +94 -0
- tencentcloud/cdc/v20201214/models.py +29 -74
- tencentcloud/cdwch/v20200915/models.py +124 -0
- tencentcloud/cdz/v20221123/models.py +0 -8
- tencentcloud/cynosdb/v20190107/models.py +0 -290
- tencentcloud/dbbrain/v20210527/models.py +15 -0
- tencentcloud/dlc/v20210125/dlc_client.py +23 -0
- tencentcloud/dlc/v20210125/models.py +452 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +25 -0
- tencentcloud/hunyuan/v20230901/models.py +532 -0
- tencentcloud/lcic/v20220817/models.py +4 -4
- tencentcloud/lighthouse/v20200324/lighthouse_client.py +12 -3
- tencentcloud/lighthouse/v20200324/models.py +139 -39
- tencentcloud/lke/v20231130/lke_client.py +1 -1
- tencentcloud/lke/v20231130/models.py +6 -6
- tencentcloud/ocr/v20181119/models.py +82 -0
- tencentcloud/ssl/v20191205/models.py +7 -319
- tencentcloud/tchd/v20230306/models.py +168 -0
- tencentcloud/tchd/v20230306/tchd_client.py +24 -0
- tencentcloud/tiw/v20190919/errorcodes.py +3 -24
- tencentcloud/tiw/v20190919/models.py +3657 -8172
- tencentcloud/tiw/v20190919/tiw_client.py +1 -580
- tencentcloud/wedata/v20210820/models.py +133 -254
- {tencentcloud_sdk_python-3.0.1339.dist-info → tencentcloud_sdk_python-3.0.1341.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1339.dist-info → tencentcloud_sdk_python-3.0.1341.dist-info}/RECORD +30 -30
- {tencentcloud_sdk_python-3.0.1339.dist-info → tencentcloud_sdk_python-3.0.1341.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1339.dist-info → tencentcloud_sdk_python-3.0.1341.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1339.dist-info → tencentcloud_sdk_python-3.0.1341.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -906,6 +906,32 @@ class AutoscalingClient(AbstractClient):
|
|
906
906
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
907
907
|
|
908
908
|
|
909
|
+
def EnterStandby(self, request):
|
910
|
+
"""伸缩组内实例进入备用中状态。
|
911
|
+
* 备用中状态实例的 CLB 权重值为 0,不会被自动缩容、不健康替换、实例刷新操作选中
|
912
|
+
* 调用弹性伸缩开关机接口会使得备用中状态发生变化,而云服务器开关机接口不会影响
|
913
|
+
* 实例进入备用中状态后,伸缩组会尝试下调期望实例数,新期望数不会小于最小值
|
914
|
+
|
915
|
+
:param request: Request instance for EnterStandby.
|
916
|
+
:type request: :class:`tencentcloud.autoscaling.v20180419.models.EnterStandbyRequest`
|
917
|
+
:rtype: :class:`tencentcloud.autoscaling.v20180419.models.EnterStandbyResponse`
|
918
|
+
|
919
|
+
"""
|
920
|
+
try:
|
921
|
+
params = request._serialize()
|
922
|
+
headers = request.headers
|
923
|
+
body = self.call("EnterStandby", params, headers=headers)
|
924
|
+
response = json.loads(body)
|
925
|
+
model = models.EnterStandbyResponse()
|
926
|
+
model._deserialize(response["Response"])
|
927
|
+
return model
|
928
|
+
except Exception as e:
|
929
|
+
if isinstance(e, TencentCloudSDKException):
|
930
|
+
raise
|
931
|
+
else:
|
932
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
933
|
+
|
934
|
+
|
909
935
|
def ExecuteScalingPolicy(self, request):
|
910
936
|
"""本接口(ExecuteScalingPolicy)用于执行伸缩策略。
|
911
937
|
|
@@ -6729,6 +6729,100 @@ class EnhancedService(AbstractModel):
|
|
6729
6729
|
|
6730
6730
|
|
6731
6731
|
|
6732
|
+
class EnterStandbyRequest(AbstractModel):
|
6733
|
+
"""EnterStandby请求参数结构体
|
6734
|
+
|
6735
|
+
"""
|
6736
|
+
|
6737
|
+
def __init__(self):
|
6738
|
+
r"""
|
6739
|
+
:param _AutoScalingGroupId: 伸缩组 ID。
|
6740
|
+
:type AutoScalingGroupId: str
|
6741
|
+
:param _InstanceIds: 运行中状态实例列表,不支持传入非运行中状态实例。
|
6742
|
+
:type InstanceIds: list of str
|
6743
|
+
"""
|
6744
|
+
self._AutoScalingGroupId = None
|
6745
|
+
self._InstanceIds = None
|
6746
|
+
|
6747
|
+
@property
|
6748
|
+
def AutoScalingGroupId(self):
|
6749
|
+
"""伸缩组 ID。
|
6750
|
+
:rtype: str
|
6751
|
+
"""
|
6752
|
+
return self._AutoScalingGroupId
|
6753
|
+
|
6754
|
+
@AutoScalingGroupId.setter
|
6755
|
+
def AutoScalingGroupId(self, AutoScalingGroupId):
|
6756
|
+
self._AutoScalingGroupId = AutoScalingGroupId
|
6757
|
+
|
6758
|
+
@property
|
6759
|
+
def InstanceIds(self):
|
6760
|
+
"""运行中状态实例列表,不支持传入非运行中状态实例。
|
6761
|
+
:rtype: list of str
|
6762
|
+
"""
|
6763
|
+
return self._InstanceIds
|
6764
|
+
|
6765
|
+
@InstanceIds.setter
|
6766
|
+
def InstanceIds(self, InstanceIds):
|
6767
|
+
self._InstanceIds = InstanceIds
|
6768
|
+
|
6769
|
+
|
6770
|
+
def _deserialize(self, params):
|
6771
|
+
self._AutoScalingGroupId = params.get("AutoScalingGroupId")
|
6772
|
+
self._InstanceIds = params.get("InstanceIds")
|
6773
|
+
memeber_set = set(params.keys())
|
6774
|
+
for name, value in vars(self).items():
|
6775
|
+
property_name = name[1:]
|
6776
|
+
if property_name in memeber_set:
|
6777
|
+
memeber_set.remove(property_name)
|
6778
|
+
if len(memeber_set) > 0:
|
6779
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
6780
|
+
|
6781
|
+
|
6782
|
+
|
6783
|
+
class EnterStandbyResponse(AbstractModel):
|
6784
|
+
"""EnterStandby返回参数结构体
|
6785
|
+
|
6786
|
+
"""
|
6787
|
+
|
6788
|
+
def __init__(self):
|
6789
|
+
r"""
|
6790
|
+
:param _ActivityId: 伸缩活动ID。
|
6791
|
+
:type ActivityId: str
|
6792
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6793
|
+
:type RequestId: str
|
6794
|
+
"""
|
6795
|
+
self._ActivityId = None
|
6796
|
+
self._RequestId = None
|
6797
|
+
|
6798
|
+
@property
|
6799
|
+
def ActivityId(self):
|
6800
|
+
"""伸缩活动ID。
|
6801
|
+
:rtype: str
|
6802
|
+
"""
|
6803
|
+
return self._ActivityId
|
6804
|
+
|
6805
|
+
@ActivityId.setter
|
6806
|
+
def ActivityId(self, ActivityId):
|
6807
|
+
self._ActivityId = ActivityId
|
6808
|
+
|
6809
|
+
@property
|
6810
|
+
def RequestId(self):
|
6811
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6812
|
+
:rtype: str
|
6813
|
+
"""
|
6814
|
+
return self._RequestId
|
6815
|
+
|
6816
|
+
@RequestId.setter
|
6817
|
+
def RequestId(self, RequestId):
|
6818
|
+
self._RequestId = RequestId
|
6819
|
+
|
6820
|
+
|
6821
|
+
def _deserialize(self, params):
|
6822
|
+
self._ActivityId = params.get("ActivityId")
|
6823
|
+
self._RequestId = params.get("RequestId")
|
6824
|
+
|
6825
|
+
|
6732
6826
|
class ExecuteScalingPolicyRequest(AbstractModel):
|
6733
6827
|
"""ExecuteScalingPolicy请求参数结构体
|
6734
6828
|
|