tencentcloud-sdk-python-intl-en 3.0.1069__py2.py3-none-any.whl → 3.0.1071__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/aiart/v20221229/models.py +3 -3
- tencentcloud/apigateway/v20180808/apigateway_client.py +0 -1
- tencentcloud/apigateway/v20180808/models.py +19 -2
- tencentcloud/billing/v20180709/billing_client.py +23 -0
- tencentcloud/billing/v20180709/errorcodes.py +6 -0
- tencentcloud/billing/v20180709/models.py +227 -0
- tencentcloud/captcha/v20190722/models.py +17 -5
- tencentcloud/cvm/v20170312/models.py +0 -1
- tencentcloud/ocr/v20181119/ocr_client.py +1 -0
- tencentcloud/tmt/v20180321/errorcodes.py +21 -0
- tencentcloud/tmt/v20180321/models.py +1 -1
- tencentcloud/vod/v20180717/models.py +896 -9
- tencentcloud/vpc/v20170312/errorcodes.py +1 -1
- tencentcloud/vpc/v20170312/models.py +76 -0
- tencentcloud/vpc/v20170312/vpc_client.py +23 -0
- {tencentcloud_sdk_python_intl_en-3.0.1069.dist-info → tencentcloud_sdk_python_intl_en-3.0.1071.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1069.dist-info → tencentcloud_sdk_python_intl_en-3.0.1071.dist-info}/RECORD +20 -20
- {tencentcloud_sdk_python_intl_en-3.0.1069.dist-info → tencentcloud_sdk_python_intl_en-3.0.1071.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1069.dist-info → tencentcloud_sdk_python_intl_en-3.0.1071.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -35,11 +35,11 @@ Image restrictions: The single-edge resolution must be less than 5,000 and great
|
|
|
35
35
|
:type InputUrl: str
|
|
36
36
|
:param _Prompt: Text description.
|
|
37
37
|
It is used to increase the possibility that the generation result contains the described content.
|
|
38
|
-
|
|
38
|
+
A maximum of 256 UTF-8 characters are supported.
|
|
39
39
|
:type Prompt: str
|
|
40
40
|
:param _NegativePrompt: Negative text description.
|
|
41
41
|
It is used to reduce the possibility that the generation result contains the described content, but such content cannot be completely avoided.
|
|
42
|
-
|
|
42
|
+
English is recommended. A maximum of 256 UTF-8 characters are supported.
|
|
43
43
|
:type NegativePrompt: str
|
|
44
44
|
:param _Styles: Image style.
|
|
45
45
|
Select the desired style from the [Image Style List](https://intl.cloud.tencent.com/document/product/1668/86250?from_cn_redirect=1) and enter the style number.
|
|
@@ -69,7 +69,7 @@ The URL is valid for 1 hour.
|
|
|
69
69
|
:param _EnhanceImage: Switch indicating whether to enhance image clarity. Default value: 0.
|
|
70
70
|
1: on
|
|
71
71
|
0: off
|
|
72
|
-
If the switch is turned on, the image clarity will be enhanced
|
|
72
|
+
If the switch is turned on, the image clarity will be enhanced and the generation time will increase.
|
|
73
73
|
:type EnhanceImage: int
|
|
74
74
|
:param _RestoreFace: Maximum number of faces for detail restoration. Value range: 0 - 6. Default value: 0.
|
|
75
75
|
If the input value is greater than 0, the value will be used as the maximum number of faces with a small area can be restored in each image. The generation time will increase according to the actual number of faces restored.
|
|
@@ -913,7 +913,6 @@ class ApigatewayClient(AbstractClient):
|
|
|
913
913
|
def DescribeApiKeysStatus(self, request):
|
|
914
914
|
"""This API is used to query the information of one or more API keys.
|
|
915
915
|
|
|
916
|
-
|
|
917
916
|
:param request: Request instance for DescribeApiKeysStatus.
|
|
918
917
|
:type request: :class:`tencentcloud.apigateway.v20180808.models.DescribeApiKeysStatusRequest`
|
|
919
918
|
:rtype: :class:`tencentcloud.apigateway.v20180808.models.DescribeApiKeysStatusResponse`
|
|
@@ -3986,15 +3986,18 @@ class CreateApiKeyRequest(AbstractModel):
|
|
|
3986
3986
|
:type SecretName: str
|
|
3987
3987
|
:param _AccessKeyType: Key type. Valid values: auto, manual (custom key). Default value: auto.
|
|
3988
3988
|
:type AccessKeyType: str
|
|
3989
|
-
:param _AccessKeyId: Custom key ID, which is required if `AccessKeyType` is `manual`. It can contain 5
|
|
3989
|
+
:param _AccessKeyId: Custom key ID, which is required if `AccessKeyType` is `manual`. It can contain 5-50 letters, digits, and underscores.
|
|
3990
3990
|
:type AccessKeyId: str
|
|
3991
|
-
:param _AccessKeySecret: Custom key, which is required if `AccessKeyType` is `manual`. It can contain 10
|
|
3991
|
+
:param _AccessKeySecret: Custom key, which is required if `AccessKeyType` is `manual`. It can contain 10-50 letters, digits, and underscores.
|
|
3992
3992
|
:type AccessKeySecret: str
|
|
3993
|
+
:param _Tags:
|
|
3994
|
+
:type Tags: list of Tag
|
|
3993
3995
|
"""
|
|
3994
3996
|
self._SecretName = None
|
|
3995
3997
|
self._AccessKeyType = None
|
|
3996
3998
|
self._AccessKeyId = None
|
|
3997
3999
|
self._AccessKeySecret = None
|
|
4000
|
+
self._Tags = None
|
|
3998
4001
|
|
|
3999
4002
|
@property
|
|
4000
4003
|
def SecretName(self):
|
|
@@ -4028,12 +4031,26 @@ class CreateApiKeyRequest(AbstractModel):
|
|
|
4028
4031
|
def AccessKeySecret(self, AccessKeySecret):
|
|
4029
4032
|
self._AccessKeySecret = AccessKeySecret
|
|
4030
4033
|
|
|
4034
|
+
@property
|
|
4035
|
+
def Tags(self):
|
|
4036
|
+
return self._Tags
|
|
4037
|
+
|
|
4038
|
+
@Tags.setter
|
|
4039
|
+
def Tags(self, Tags):
|
|
4040
|
+
self._Tags = Tags
|
|
4041
|
+
|
|
4031
4042
|
|
|
4032
4043
|
def _deserialize(self, params):
|
|
4033
4044
|
self._SecretName = params.get("SecretName")
|
|
4034
4045
|
self._AccessKeyType = params.get("AccessKeyType")
|
|
4035
4046
|
self._AccessKeyId = params.get("AccessKeyId")
|
|
4036
4047
|
self._AccessKeySecret = params.get("AccessKeySecret")
|
|
4048
|
+
if params.get("Tags") is not None:
|
|
4049
|
+
self._Tags = []
|
|
4050
|
+
for item in params.get("Tags"):
|
|
4051
|
+
obj = Tag()
|
|
4052
|
+
obj._deserialize(item)
|
|
4053
|
+
self._Tags.append(obj)
|
|
4037
4054
|
memeber_set = set(params.keys())
|
|
4038
4055
|
for name, value in vars(self).items():
|
|
4039
4056
|
property_name = name[1:]
|
|
@@ -95,6 +95,29 @@ class BillingClient(AbstractClient):
|
|
|
95
95
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
96
96
|
|
|
97
97
|
|
|
98
|
+
def DescribeBillAdjustInfo(self, request):
|
|
99
|
+
"""This API is used to check whether the current UIN has any adjustment, enabling customers to proactively obtain the adjustment status faster.
|
|
100
|
+
|
|
101
|
+
:param request: Request instance for DescribeBillAdjustInfo.
|
|
102
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.DescribeBillAdjustInfoRequest`
|
|
103
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.DescribeBillAdjustInfoResponse`
|
|
104
|
+
|
|
105
|
+
"""
|
|
106
|
+
try:
|
|
107
|
+
params = request._serialize()
|
|
108
|
+
headers = request.headers
|
|
109
|
+
body = self.call("DescribeBillAdjustInfo", params, headers=headers)
|
|
110
|
+
response = json.loads(body)
|
|
111
|
+
model = models.DescribeBillAdjustInfoResponse()
|
|
112
|
+
model._deserialize(response["Response"])
|
|
113
|
+
return model
|
|
114
|
+
except Exception as e:
|
|
115
|
+
if isinstance(e, TencentCloudSDKException):
|
|
116
|
+
raise
|
|
117
|
+
else:
|
|
118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
119
|
+
|
|
120
|
+
|
|
98
121
|
def DescribeBillDetail(self, request):
|
|
99
122
|
"""u200cThis API is used to get bill details.
|
|
100
123
|
Note:
|
|
@@ -41,12 +41,18 @@ INTERNALERROR = 'InternalError'
|
|
|
41
41
|
# Gateway error.
|
|
42
42
|
INTERNALERROR_GATEWAYERROR = 'InternalError.GatewayError'
|
|
43
43
|
|
|
44
|
+
# An internal system error occurred.
|
|
45
|
+
INTERNALERROR_INTERNALERROR = 'InternalError.InternalError'
|
|
46
|
+
|
|
44
47
|
# Undefined exception.
|
|
45
48
|
INTERNALERROR_UNKNOWNERROR = 'InternalError.UnknownError'
|
|
46
49
|
|
|
47
50
|
# Invalid parameter.
|
|
48
51
|
INVALIDPARAMETER = 'InvalidParameter'
|
|
49
52
|
|
|
53
|
+
# A parameter error occurred.
|
|
54
|
+
INVALIDPARAMETER_INVALIDPARAMETER = 'InvalidParameter.InvalidParameter'
|
|
55
|
+
|
|
50
56
|
# Invalid parameter value.
|
|
51
57
|
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
52
58
|
|
|
@@ -159,6 +159,114 @@ class ActionSummaryOverviewItem(AbstractModel):
|
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
|
|
162
|
+
class AdjustInfoDetail(AbstractModel):
|
|
163
|
+
"""This API is used to view UIN exception adjustment details.
|
|
164
|
+
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
def __init__(self):
|
|
168
|
+
r"""
|
|
169
|
+
:param _PayerUin: Payer UIN, namely the account ID of the payer. The account ID is the user's unique account identifier on Tencent Cloud.
|
|
170
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
171
|
+
Example value: 909619400.
|
|
172
|
+
:type PayerUin: str
|
|
173
|
+
:param _Month: Bill month. Format: yyyy-MM.
|
|
174
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
175
|
+
Example value: 2024-10.
|
|
176
|
+
:type Month: str
|
|
177
|
+
:param _AdjustType: Adjustment type.
|
|
178
|
+
Adjustment: manualAdjustment.
|
|
179
|
+
Supplementary settlement: supplementarySettlement.
|
|
180
|
+
Re-settlement: reSettlement.
|
|
181
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
182
|
+
Example value: manualAdjustment.
|
|
183
|
+
:type AdjustType: str
|
|
184
|
+
:param _AdjustNum: Adjustment order number.
|
|
185
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
186
|
+
Example value: 2220726096135.
|
|
187
|
+
:type AdjustNum: str
|
|
188
|
+
:param _AdjustCompletionTime: Completion time of exception adjustment. Format: yyyy-MM-dd HH:mm:ss.
|
|
189
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
190
|
+
Example value: 2022-12-02 12:39:04.
|
|
191
|
+
:type AdjustCompletionTime: str
|
|
192
|
+
:param _AdjustAmount: Adjustment amount.
|
|
193
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
194
|
+
Example value: 333.00000000.
|
|
195
|
+
:type AdjustAmount: float
|
|
196
|
+
"""
|
|
197
|
+
self._PayerUin = None
|
|
198
|
+
self._Month = None
|
|
199
|
+
self._AdjustType = None
|
|
200
|
+
self._AdjustNum = None
|
|
201
|
+
self._AdjustCompletionTime = None
|
|
202
|
+
self._AdjustAmount = None
|
|
203
|
+
|
|
204
|
+
@property
|
|
205
|
+
def PayerUin(self):
|
|
206
|
+
return self._PayerUin
|
|
207
|
+
|
|
208
|
+
@PayerUin.setter
|
|
209
|
+
def PayerUin(self, PayerUin):
|
|
210
|
+
self._PayerUin = PayerUin
|
|
211
|
+
|
|
212
|
+
@property
|
|
213
|
+
def Month(self):
|
|
214
|
+
return self._Month
|
|
215
|
+
|
|
216
|
+
@Month.setter
|
|
217
|
+
def Month(self, Month):
|
|
218
|
+
self._Month = Month
|
|
219
|
+
|
|
220
|
+
@property
|
|
221
|
+
def AdjustType(self):
|
|
222
|
+
return self._AdjustType
|
|
223
|
+
|
|
224
|
+
@AdjustType.setter
|
|
225
|
+
def AdjustType(self, AdjustType):
|
|
226
|
+
self._AdjustType = AdjustType
|
|
227
|
+
|
|
228
|
+
@property
|
|
229
|
+
def AdjustNum(self):
|
|
230
|
+
return self._AdjustNum
|
|
231
|
+
|
|
232
|
+
@AdjustNum.setter
|
|
233
|
+
def AdjustNum(self, AdjustNum):
|
|
234
|
+
self._AdjustNum = AdjustNum
|
|
235
|
+
|
|
236
|
+
@property
|
|
237
|
+
def AdjustCompletionTime(self):
|
|
238
|
+
return self._AdjustCompletionTime
|
|
239
|
+
|
|
240
|
+
@AdjustCompletionTime.setter
|
|
241
|
+
def AdjustCompletionTime(self, AdjustCompletionTime):
|
|
242
|
+
self._AdjustCompletionTime = AdjustCompletionTime
|
|
243
|
+
|
|
244
|
+
@property
|
|
245
|
+
def AdjustAmount(self):
|
|
246
|
+
return self._AdjustAmount
|
|
247
|
+
|
|
248
|
+
@AdjustAmount.setter
|
|
249
|
+
def AdjustAmount(self, AdjustAmount):
|
|
250
|
+
self._AdjustAmount = AdjustAmount
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
def _deserialize(self, params):
|
|
254
|
+
self._PayerUin = params.get("PayerUin")
|
|
255
|
+
self._Month = params.get("Month")
|
|
256
|
+
self._AdjustType = params.get("AdjustType")
|
|
257
|
+
self._AdjustNum = params.get("AdjustNum")
|
|
258
|
+
self._AdjustCompletionTime = params.get("AdjustCompletionTime")
|
|
259
|
+
self._AdjustAmount = params.get("AdjustAmount")
|
|
260
|
+
memeber_set = set(params.keys())
|
|
261
|
+
for name, value in vars(self).items():
|
|
262
|
+
property_name = name[1:]
|
|
263
|
+
if property_name in memeber_set:
|
|
264
|
+
memeber_set.remove(property_name)
|
|
265
|
+
if len(memeber_set) > 0:
|
|
266
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
162
270
|
class AnalyseActionTypeDetail(AbstractModel):
|
|
163
271
|
"""Cost analysis transaction type complex type
|
|
164
272
|
|
|
@@ -5761,6 +5869,125 @@ class DescribeAccountBalanceResponse(AbstractModel):
|
|
|
5761
5869
|
self._RequestId = params.get("RequestId")
|
|
5762
5870
|
|
|
5763
5871
|
|
|
5872
|
+
class DescribeBillAdjustInfoRequest(AbstractModel):
|
|
5873
|
+
"""DescribeBillAdjustInfo request structure.
|
|
5874
|
+
|
|
5875
|
+
"""
|
|
5876
|
+
|
|
5877
|
+
def __init__(self):
|
|
5878
|
+
r"""
|
|
5879
|
+
:param _Month: Format: yyyy-MM.
|
|
5880
|
+
Billing month. Either Month or the combination of TimeFrom and TimeTo needs to be passed. If the TimeFrom and TimeTo are passed, the Month field is invalid.
|
|
5881
|
+
Example: 2024-10.
|
|
5882
|
+
:type Month: str
|
|
5883
|
+
:param _TimeFrom: Format: yyyy-MM-dd.
|
|
5884
|
+
Start date. Either Month or the combination of TimeFrom and TimeTo needs to be passed. If TimeFrom and TimeTo are passed, the Month field is invalid. TimeFrom and TimeTo should represent the same month and be passed in together. Cross-month queries are not supported. The result will include the full month's data.
|
|
5885
|
+
Example: 2024-10-01.
|
|
5886
|
+
:type TimeFrom: str
|
|
5887
|
+
:param _TimeTo: Format: yyyy-MM-dd.
|
|
5888
|
+
End date. Either Month or the combination of TimeFrom and TimeTo needs to be passed. If TimeFrom and TimeTo are passed, the Month field is invalid. TimeFrom and TimeTo should represent the same month and be passed in together. Cross-month queries are not supported. The result will include the full month's data.
|
|
5889
|
+
Example: 2024-10-02.
|
|
5890
|
+
:type TimeTo: str
|
|
5891
|
+
"""
|
|
5892
|
+
self._Month = None
|
|
5893
|
+
self._TimeFrom = None
|
|
5894
|
+
self._TimeTo = None
|
|
5895
|
+
|
|
5896
|
+
@property
|
|
5897
|
+
def Month(self):
|
|
5898
|
+
return self._Month
|
|
5899
|
+
|
|
5900
|
+
@Month.setter
|
|
5901
|
+
def Month(self, Month):
|
|
5902
|
+
self._Month = Month
|
|
5903
|
+
|
|
5904
|
+
@property
|
|
5905
|
+
def TimeFrom(self):
|
|
5906
|
+
return self._TimeFrom
|
|
5907
|
+
|
|
5908
|
+
@TimeFrom.setter
|
|
5909
|
+
def TimeFrom(self, TimeFrom):
|
|
5910
|
+
self._TimeFrom = TimeFrom
|
|
5911
|
+
|
|
5912
|
+
@property
|
|
5913
|
+
def TimeTo(self):
|
|
5914
|
+
return self._TimeTo
|
|
5915
|
+
|
|
5916
|
+
@TimeTo.setter
|
|
5917
|
+
def TimeTo(self, TimeTo):
|
|
5918
|
+
self._TimeTo = TimeTo
|
|
5919
|
+
|
|
5920
|
+
|
|
5921
|
+
def _deserialize(self, params):
|
|
5922
|
+
self._Month = params.get("Month")
|
|
5923
|
+
self._TimeFrom = params.get("TimeFrom")
|
|
5924
|
+
self._TimeTo = params.get("TimeTo")
|
|
5925
|
+
memeber_set = set(params.keys())
|
|
5926
|
+
for name, value in vars(self).items():
|
|
5927
|
+
property_name = name[1:]
|
|
5928
|
+
if property_name in memeber_set:
|
|
5929
|
+
memeber_set.remove(property_name)
|
|
5930
|
+
if len(memeber_set) > 0:
|
|
5931
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5932
|
+
|
|
5933
|
+
|
|
5934
|
+
|
|
5935
|
+
class DescribeBillAdjustInfoResponse(AbstractModel):
|
|
5936
|
+
"""DescribeBillAdjustInfo response structure.
|
|
5937
|
+
|
|
5938
|
+
"""
|
|
5939
|
+
|
|
5940
|
+
def __init__(self):
|
|
5941
|
+
r"""
|
|
5942
|
+
:param _Total: Total amount of data.
|
|
5943
|
+
Example value: 10.
|
|
5944
|
+
:type Total: int
|
|
5945
|
+
:param _Data: Detailed data.
|
|
5946
|
+
Example value: [].
|
|
5947
|
+
:type Data: list of AdjustInfoDetail
|
|
5948
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
5949
|
+
:type RequestId: str
|
|
5950
|
+
"""
|
|
5951
|
+
self._Total = None
|
|
5952
|
+
self._Data = None
|
|
5953
|
+
self._RequestId = None
|
|
5954
|
+
|
|
5955
|
+
@property
|
|
5956
|
+
def Total(self):
|
|
5957
|
+
return self._Total
|
|
5958
|
+
|
|
5959
|
+
@Total.setter
|
|
5960
|
+
def Total(self, Total):
|
|
5961
|
+
self._Total = Total
|
|
5962
|
+
|
|
5963
|
+
@property
|
|
5964
|
+
def Data(self):
|
|
5965
|
+
return self._Data
|
|
5966
|
+
|
|
5967
|
+
@Data.setter
|
|
5968
|
+
def Data(self, Data):
|
|
5969
|
+
self._Data = Data
|
|
5970
|
+
|
|
5971
|
+
@property
|
|
5972
|
+
def RequestId(self):
|
|
5973
|
+
return self._RequestId
|
|
5974
|
+
|
|
5975
|
+
@RequestId.setter
|
|
5976
|
+
def RequestId(self, RequestId):
|
|
5977
|
+
self._RequestId = RequestId
|
|
5978
|
+
|
|
5979
|
+
|
|
5980
|
+
def _deserialize(self, params):
|
|
5981
|
+
self._Total = params.get("Total")
|
|
5982
|
+
if params.get("Data") is not None:
|
|
5983
|
+
self._Data = []
|
|
5984
|
+
for item in params.get("Data"):
|
|
5985
|
+
obj = AdjustInfoDetail()
|
|
5986
|
+
obj._deserialize(item)
|
|
5987
|
+
self._Data.append(obj)
|
|
5988
|
+
self._RequestId = params.get("RequestId")
|
|
5989
|
+
|
|
5990
|
+
|
|
5764
5991
|
class DescribeBillDetailForOrganizationRequest(AbstractModel):
|
|
5765
5992
|
"""DescribeBillDetailForOrganization request structure.
|
|
5766
5993
|
|
|
@@ -25,7 +25,7 @@ class DescribeCaptchaResultRequest(AbstractModel):
|
|
|
25
25
|
|
|
26
26
|
def __init__(self):
|
|
27
27
|
r"""
|
|
28
|
-
:param _CaptchaType: It must be `9` here.
|
|
28
|
+
:param _CaptchaType: It must be `9` here.
|
|
29
29
|
:type CaptchaType: int
|
|
30
30
|
:param _Ticket: The user verification ticket returned by the frontend callback function
|
|
31
31
|
:type Ticket: str
|
|
@@ -182,9 +182,9 @@ class DescribeCaptchaResultResponse(AbstractModel):
|
|
|
182
182
|
`7 captcha no match`: The passed in `Randstr` is invalid. Make sure it is the same as the `Randstr` returned from the frontend.
|
|
183
183
|
`8 ticket expired`: The `Ticket` has expired. A ticket is valid for five minutes. Please generate a new `Ticket` and `Randstr`.
|
|
184
184
|
`9 ticket reused`: The specified `Ticket` has been used. Please generate a new `Ticket` and `Randstr`.
|
|
185
|
-
`15 decrypt fail`: The specified `Ticket` is invalid. Make sure it
|
|
186
|
-
`16 appid-ticket mismatch`: The specified `CaptchaAppId` is invalid. Make sure it
|
|
187
|
-
`21 diff`. Ticket verification error. Possible reasons: 1) If the ticket contains the `terror` prefix, it
|
|
185
|
+
`15 decrypt fail`: The specified `Ticket` is invalid. Make sure it's the same as the Ticket returned from the frontend.
|
|
186
|
+
`16 appid-ticket mismatch`: The specified `CaptchaAppId` is invalid. Make sure it's the same as the `CaptchaAppId` returned from the frontend. You can obtain it from the CAPTCHA console in **Verification management** > **Basic configuration**.
|
|
187
|
+
`21 diff`. Ticket verification error. Possible reasons: 1) If the ticket contains the `terror` prefix, it's usually the case that a disaster recovery ticket is generated due to the network connection problems of the user. You can choose to ignore it or verify again. 2) If the ticket does not include the `terror` prefix, Captcha detects security risk on this request . You can choose to block it or not.
|
|
188
188
|
`100 appid-secretkey-ticket mismatch`: Parameter error. 1) Make sure `CaptchaAppId` and `AppSecretKey` are correct. `CaptchaAppId` and `AppSecretKey` in the CAPTACHA console under **Verification management** > **Basic configuration**. 2) Make sure the passed-in `Ticket` is generated by using the passed-in `CaptchaAppId`.
|
|
189
189
|
:type CaptchaCode: int
|
|
190
190
|
:param _CaptchaMsg: Status description and verification error message
|
|
@@ -203,7 +203,9 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
203
203
|
:type EvilBitmap: int
|
|
204
204
|
:param _SubmitCaptchaTime: The time when the CAPTCHA is submitted.
|
|
205
205
|
:type SubmitCaptchaTime: int
|
|
206
|
-
:param
|
|
206
|
+
:param _DeviceRiskCategory: Device Risk Category
|
|
207
|
+
:type DeviceRiskCategory: str
|
|
208
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
207
209
|
:type RequestId: str
|
|
208
210
|
"""
|
|
209
211
|
self._CaptchaCode = None
|
|
@@ -212,6 +214,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
212
214
|
self._GetCaptchaTime = None
|
|
213
215
|
self._EvilBitmap = None
|
|
214
216
|
self._SubmitCaptchaTime = None
|
|
217
|
+
self._DeviceRiskCategory = None
|
|
215
218
|
self._RequestId = None
|
|
216
219
|
|
|
217
220
|
@property
|
|
@@ -262,6 +265,14 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
262
265
|
def SubmitCaptchaTime(self, SubmitCaptchaTime):
|
|
263
266
|
self._SubmitCaptchaTime = SubmitCaptchaTime
|
|
264
267
|
|
|
268
|
+
@property
|
|
269
|
+
def DeviceRiskCategory(self):
|
|
270
|
+
return self._DeviceRiskCategory
|
|
271
|
+
|
|
272
|
+
@DeviceRiskCategory.setter
|
|
273
|
+
def DeviceRiskCategory(self, DeviceRiskCategory):
|
|
274
|
+
self._DeviceRiskCategory = DeviceRiskCategory
|
|
275
|
+
|
|
265
276
|
@property
|
|
266
277
|
def RequestId(self):
|
|
267
278
|
return self._RequestId
|
|
@@ -278,4 +289,5 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
278
289
|
self._GetCaptchaTime = params.get("GetCaptchaTime")
|
|
279
290
|
self._EvilBitmap = params.get("EvilBitmap")
|
|
280
291
|
self._SubmitCaptchaTime = params.get("SubmitCaptchaTime")
|
|
292
|
+
self._DeviceRiskCategory = params.get("DeviceRiskCategory")
|
|
281
293
|
self._RequestId = params.get("RequestId")
|
|
@@ -14102,7 +14102,6 @@ The names of availability zones across the network are as follows:
|
|
|
14102
14102
|
<li> ap-shanghai-8 </li>
|
|
14103
14103
|
<li> ap-mumbai-1 </li>
|
|
14104
14104
|
<li> ap-mumbai-2 </li>
|
|
14105
|
-
<li> eu-moscow-1 </li>
|
|
14106
14105
|
<li> ap-beijing-1 (sold out)</li>
|
|
14107
14106
|
<li> ap-beijing-2 </li>
|
|
14108
14107
|
<li> ap-beijing-3 </li>
|
|
@@ -281,6 +281,7 @@ class OcrClient(AbstractClient):
|
|
|
281
281
|
|
|
282
282
|
def MLIDPassportOCR(self, request):
|
|
283
283
|
"""This API is used to recognize a passport issued in Hong Kong/Macao/Taiwan (China) or other countries/regions. Recognizable fields include passport ID, name, date of birth, gender, expiration date, issuing country/region, and nationality. It has the features of cropping identity photos and alarming for photographed or photocopied documents.
|
|
284
|
+
This interface supports regional scope: countries with machine-readable passports
|
|
284
285
|
|
|
285
286
|
:param request: Request instance for MLIDPassportOCR.
|
|
286
287
|
:type request: :class:`tencentcloud.ocr.v20181119.models.MLIDPassportOCRRequest`
|
|
@@ -14,12 +14,24 @@
|
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
#
|
|
18
|
+
FAILEDOPERATION_ERRORUSERAREA = 'FailedOperation.ErrorUserArea'
|
|
19
|
+
|
|
20
|
+
#
|
|
21
|
+
FAILEDOPERATION_LANGUAGERECOGNITIONERR = 'FailedOperation.LanguageRecognitionErr'
|
|
22
|
+
|
|
17
23
|
# The free quota for this month is used up. To continue to use the service, you need to upgrade to a paid account in the TMT console.
|
|
18
24
|
FAILEDOPERATION_NOFREEAMOUNT = 'FailedOperation.NoFreeAmount'
|
|
19
25
|
|
|
26
|
+
#
|
|
27
|
+
FAILEDOPERATION_REQUESTAILABERR = 'FailedOperation.RequestAiLabErr'
|
|
28
|
+
|
|
20
29
|
# The service is suspended due to overdue payments. Top up your account first.
|
|
21
30
|
FAILEDOPERATION_SERVICEISOLATE = 'FailedOperation.ServiceIsolate'
|
|
22
31
|
|
|
32
|
+
#
|
|
33
|
+
FAILEDOPERATION_STOPUSING = 'FailedOperation.StopUsing'
|
|
34
|
+
|
|
23
35
|
# The service is not activated. Activate it in the TMT console first.
|
|
24
36
|
FAILEDOPERATION_USERNOTREGISTERED = 'FailedOperation.UserNotRegistered'
|
|
25
37
|
|
|
@@ -29,6 +41,9 @@ INTERNALERROR = 'InternalError'
|
|
|
29
41
|
# Backend service timeout. Please try again later.
|
|
30
42
|
INTERNALERROR_BACKENDTIMEOUT = 'InternalError.BackendTimeout'
|
|
31
43
|
|
|
44
|
+
#
|
|
45
|
+
INTERNALERROR_ERRORGETROUTE = 'InternalError.ErrorGetRoute'
|
|
46
|
+
|
|
32
47
|
# Unknown error.
|
|
33
48
|
INTERNALERROR_ERRORUNKNOWN = 'InternalError.ErrorUnknown'
|
|
34
49
|
|
|
@@ -41,6 +56,9 @@ INVALIDPARAMETER = 'InvalidParameter'
|
|
|
41
56
|
# Invalid parameter.
|
|
42
57
|
INVALIDPARAMETER_MISSINGPARAMETER = 'InvalidParameter.MissingParameter'
|
|
43
58
|
|
|
59
|
+
#
|
|
60
|
+
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
61
|
+
|
|
44
62
|
# The quota limit is reached.
|
|
45
63
|
LIMITEXCEEDED = 'LimitExceeded'
|
|
46
64
|
|
|
@@ -50,6 +68,9 @@ LIMITEXCEEDED_LIMITEDACCESSFREQUENCY = 'LimitExceeded.LimitedAccessFrequency'
|
|
|
50
68
|
# Missing parameter.
|
|
51
69
|
MISSINGPARAMETER = 'MissingParameter'
|
|
52
70
|
|
|
71
|
+
#
|
|
72
|
+
REQUESTLIMITEXCEEDED_UINLIMITEXCEEDED = 'RequestLimitExceeded.UinLimitExceeded'
|
|
73
|
+
|
|
53
74
|
# Incorrect name entered in the `Action` field.
|
|
54
75
|
UNAUTHORIZEDOPERATION_ACTIONNOTFOUND = 'UnauthorizedOperation.ActionNotFound'
|
|
55
76
|
|
|
@@ -150,7 +150,7 @@ class TextTranslateResponse(AbstractModel):
|
|
|
150
150
|
:type Source: str
|
|
151
151
|
:param _Target: The target language. See the request parameter `Target` for details.
|
|
152
152
|
:type Target: str
|
|
153
|
-
:param _RequestId: The unique request ID,
|
|
153
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
154
154
|
:type RequestId: str
|
|
155
155
|
"""
|
|
156
156
|
self._TargetText = None
|