tencentcloud-sdk-python-intl-en 3.0.1241__py2.py3-none-any.whl → 3.0.1243__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 +49 -22
- tencentcloud/autoscaling/v20180419/errorcodes.py +6 -0
- tencentcloud/autoscaling/v20180419/models.py +1093 -677
- tencentcloud/iai/v20200303/errorcodes.py +2 -2
- tencentcloud/iai/v20200303/models.py +38 -28
- tencentcloud/intlpartnersmgt/v20220928/models.py +2 -2
- tencentcloud/mps/v20190612/models.py +676 -300
- tencentcloud/ocr/v20181119/models.py +450 -0
- tencentcloud/ocr/v20181119/ocr_client.py +27 -0
- tencentcloud/teo/v20220901/errorcodes.py +3 -0
- tencentcloud/teo/v20220901/models.py +2606 -61
- tencentcloud/teo/v20220901/teo_client.py +115 -0
- tencentcloud/trtc/v20190722/models.py +545 -0
- tencentcloud/trtc/v20190722/trtc_client.py +69 -0
- {tencentcloud_sdk_python_intl_en-3.0.1241.dist-info → tencentcloud_sdk_python_intl_en-3.0.1243.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1241.dist-info → tencentcloud_sdk_python_intl_en-3.0.1243.dist-info}/RECORD +19 -19
- {tencentcloud_sdk_python_intl_en-3.0.1241.dist-info → tencentcloud_sdk_python_intl_en-3.0.1243.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1241.dist-info → tencentcloud_sdk_python_intl_en-3.0.1243.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -27,9 +27,9 @@ class AutoscalingClient(AbstractClient):
|
|
27
27
|
|
28
28
|
|
29
29
|
def AttachInstances(self, request):
|
30
|
-
"""This
|
30
|
+
"""This interface (AttachInstances) is used to add CVM instances to a scaling group.
|
31
31
|
* Only CVM instances in `RUNNING` or `STOPPED` status can be added.
|
32
|
-
|
32
|
+
This API is used to ensure added CVM instances match the VPC network of the scaling group.
|
33
33
|
|
34
34
|
:param request: Request instance for AttachInstances.
|
35
35
|
:type request: :class:`tencentcloud.autoscaling.v20180419.models.AttachInstancesRequest`
|
@@ -76,10 +76,11 @@ class AutoscalingClient(AbstractClient):
|
|
76
76
|
|
77
77
|
def CancelInstanceRefresh(self, request):
|
78
78
|
"""This API is used to cancel the instance refresh activity of the scaling group.
|
79
|
-
* The batches that have already been refreshed
|
80
|
-
* If a
|
81
|
-
|
82
|
-
*
|
79
|
+
* The batches that have already been refreshed remain unaffected, but the batches pending refresh will be canceled.
|
80
|
+
* If a batch is currently refreshing, cancellation is not allowed. You can suspend the event and wait until the current batch finishes before canceling.
|
81
|
+
This API is used to refresh the failed instances. If a refresh fails, the affected instances will remain in standby status, and require manual intervention to exit the standby status or terminate the instances.
|
82
|
+
* Rollback operations are not allowed after cancellation, and recovery is unsupported.
|
83
|
+
Temporarily expanded instances due to the maxSurge parameter are automatically destroyed after cancellation.
|
83
84
|
* During scale-in, all instances have already been updated and cannot be canceled.
|
84
85
|
|
85
86
|
:param request: Request instance for CancelInstanceRefresh.
|
@@ -199,11 +200,11 @@ class AutoscalingClient(AbstractClient):
|
|
199
200
|
|
200
201
|
|
201
202
|
def CreateLaunchConfiguration(self, request):
|
202
|
-
"""This
|
203
|
+
"""This interface (CreateLaunchConfiguration) is used to create new launch configuration.
|
203
204
|
|
204
|
-
* To modify a launch configuration,
|
205
|
+
* To modify a launch configuration, use [ModifyLaunchConfigurationAttributes](https://intl.cloud.tencent.com/document/api/377/31298?from_cn_redirect=1) to partially modify fields. If needed, create a new launch configuration.
|
205
206
|
|
206
|
-
|
207
|
+
By default, 50 launch configurations can be created per region. For details, see [Usage Limits](https://intl.cloud.tencent.com/document/product/377/3120?from_cn_redirect=1).
|
207
208
|
|
208
209
|
:param request: Request instance for CreateLaunchConfiguration.
|
209
210
|
:type request: :class:`tencentcloud.autoscaling.v20180419.models.CreateLaunchConfigurationRequest`
|
@@ -226,11 +227,11 @@ class AutoscalingClient(AbstractClient):
|
|
226
227
|
|
227
228
|
|
228
229
|
def CreateLifecycleHook(self, request):
|
229
|
-
"""This
|
230
|
+
"""This interface (CreateLifecycleHook) is used for creating a lifecycle hook.
|
230
231
|
|
231
|
-
* You can configure notifications or automation commands
|
232
|
+
* You can configure notifications or automation commands for the lifecycle hook.
|
232
233
|
|
233
|
-
If you configured a notification, Auto Scaling will notify the TDMQ
|
234
|
+
If you configured a notification, Auto Scaling will notify the TDMQ Message Queue of the following information:.
|
234
235
|
|
235
236
|
```
|
236
237
|
{
|
@@ -238,11 +239,11 @@ class AutoscalingClient(AbstractClient):
|
|
238
239
|
"Time": "2019-03-14T10:15:11Z",
|
239
240
|
"AppId": "1251783334",
|
240
241
|
"ActivityId": "asa-fznnvrja",
|
241
|
-
"AutoScalingGroupId": "asg-
|
242
|
-
"LifecycleHookId": "ash-
|
242
|
+
"AutoScalingGroupId": "asg-ft6y7u8n",
|
243
|
+
"LifecycleHookId": "ash-p9i7y6t5",
|
243
244
|
"LifecycleHookName": "my-hook",
|
244
245
|
"LifecycleActionToken": "3080e1c9-0efe-4dd7-ad3b-90cd6618298f",
|
245
|
-
"InstanceId": "ins-
|
246
|
+
"InstanceId": "ins-y6dr5e43",
|
246
247
|
"LifecycleTransition": "INSTANCE_LAUNCHING",
|
247
248
|
"NotificationMetadata": ""
|
248
249
|
}
|
@@ -390,7 +391,7 @@ class AutoscalingClient(AbstractClient):
|
|
390
391
|
def DeleteLaunchConfiguration(self, request):
|
391
392
|
"""This API (DeleteLaunchConfiguration) is used to delete a launch configuration.
|
392
393
|
|
393
|
-
* If the launch configuration is active in
|
394
|
+
* If the launch configuration is active in a scaling group, it cannot be deleted.
|
394
395
|
|
395
396
|
:param request: Request instance for DeleteLaunchConfiguration.
|
396
397
|
:type request: :class:`tencentcloud.autoscaling.v20180419.models.DeleteLaunchConfigurationRequest`
|
@@ -906,6 +907,32 @@ class AutoscalingClient(AbstractClient):
|
|
906
907
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
907
908
|
|
908
909
|
|
910
|
+
def EnterStandby(self, request):
|
911
|
+
"""This API is used to set instances within the scaling group to standby status.
|
912
|
+
Instances in standby status have a CLB weight value of 0 and will not be selected for scaling in, unhealthy replacement, or refresh operation.
|
913
|
+
This API is used to call the Auto Scaling power-on/power-off API which may change the standby status, while the Cloud Virtual Machine server power on/off API will not affect it.
|
914
|
+
The instance enters standby status, and the scaling group attempts to lower the expected number of instances, which will not be less than the minimum value.
|
915
|
+
|
916
|
+
:param request: Request instance for EnterStandby.
|
917
|
+
:type request: :class:`tencentcloud.autoscaling.v20180419.models.EnterStandbyRequest`
|
918
|
+
:rtype: :class:`tencentcloud.autoscaling.v20180419.models.EnterStandbyResponse`
|
919
|
+
|
920
|
+
"""
|
921
|
+
try:
|
922
|
+
params = request._serialize()
|
923
|
+
headers = request.headers
|
924
|
+
body = self.call("EnterStandby", params, headers=headers)
|
925
|
+
response = json.loads(body)
|
926
|
+
model = models.EnterStandbyResponse()
|
927
|
+
model._deserialize(response["Response"])
|
928
|
+
return model
|
929
|
+
except Exception as e:
|
930
|
+
if isinstance(e, TencentCloudSDKException):
|
931
|
+
raise
|
932
|
+
else:
|
933
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
934
|
+
|
935
|
+
|
909
936
|
def ExecuteScalingPolicy(self, request):
|
910
937
|
"""This API is used to execute a scaling policy.
|
911
938
|
|
@@ -934,9 +961,10 @@ class AutoscalingClient(AbstractClient):
|
|
934
961
|
|
935
962
|
|
936
963
|
def ExitStandby(self, request):
|
937
|
-
"""This API is used to exit instances from
|
938
|
-
*
|
939
|
-
|
964
|
+
"""This API is used to exit instances from standby status in the scaling group.
|
965
|
+
* After exiting standby status, the instance enters running state and the CLB weight value is restored to the default value.
|
966
|
+
This API is used to call the Auto Scaling power-on/power-off API which may change the standby status, while the Cloud Virtual Machine server power on/off API will not affect it.
|
967
|
+
After instances exit standby status, the scaling group will raise the expected number of instances. The new expected number cannot exceed the maximum value.
|
940
968
|
|
941
969
|
:param request: Request instance for ExitStandby.
|
942
970
|
:type request: :class:`tencentcloud.autoscaling.v20180419.models.ExitStandbyRequest`
|
@@ -1005,10 +1033,9 @@ class AutoscalingClient(AbstractClient):
|
|
1005
1033
|
|
1006
1034
|
|
1007
1035
|
def ModifyLaunchConfigurationAttributes(self, request):
|
1008
|
-
"""This API (ModifyLaunchConfigurationAttributes) is used to modify
|
1036
|
+
"""This API (ModifyLaunchConfigurationAttributes) is used to modify part of a launch configuration's attributes.
|
1009
1037
|
|
1010
|
-
|
1011
|
-
* This API supports modifying certain simple types of attributes.
|
1038
|
+
This API is used to modify the startup configuration. Existing instances scaled out using this configuration will not change, while newly added instances using this launch configuration will scale out according to the new configuration.
|
1012
1039
|
|
1013
1040
|
:param request: Request instance for ModifyLaunchConfigurationAttributes.
|
1014
1041
|
:type request: :class:`tencentcloud.autoscaling.v20180419.models.ModifyLaunchConfigurationAttributesRequest`
|
@@ -287,6 +287,9 @@ INVALIDPARAMETERVALUE_STARTTIMEBEFORECURRENTTIME = 'InvalidParameterValue.StartT
|
|
287
287
|
# The subnet information is invalid.
|
288
288
|
INVALIDPARAMETERVALUE_SUBNETIDS = 'InvalidParameterValue.SubnetIds'
|
289
289
|
|
290
|
+
# The subnet is not in the designated local dedicated cluster.
|
291
|
+
INVALIDPARAMETERVALUE_SUBNETNOTINDEDICATEDCLUSTER = 'InvalidParameterValue.SubnetNotInDedicatedCluster'
|
292
|
+
|
290
293
|
# The backend port of the CLB layer-4 listener already exists.
|
291
294
|
INVALIDPARAMETERVALUE_TARGETPORTDUPLICATED = 'InvalidParameterValue.TargetPortDuplicated'
|
292
295
|
|
@@ -398,6 +401,9 @@ RESOURCENOTFOUND_AUTOSCALINGNOTIFICATIONNOTFOUND = 'ResourceNotFound.AutoScaling
|
|
398
401
|
# The specified bandwidth package ID is not found.
|
399
402
|
RESOURCENOTFOUND_BANDWIDTHPACKAGEIDNOTFOUND = 'ResourceNotFound.BandwidthPackageIdNotFound'
|
400
403
|
|
404
|
+
#
|
405
|
+
RESOURCENOTFOUND_CLASSICLOADBALANCERNOTFOUND = 'ResourceNotFound.ClassicLoadBalancerNotFound'
|
406
|
+
|
401
407
|
# The specified CMQ queue does not exist.
|
402
408
|
RESOURCENOTFOUND_CMQQUEUENOTFOUND = 'ResourceNotFound.CmqQueueNotFound'
|
403
409
|
|