tencentcloud-sdk-python 3.0.1207__py2.py3-none-any.whl → 3.0.1233__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/aiart/v20221229/aiart_client.py +24 -0
- tencentcloud/aiart/v20221229/models.py +201 -2
- tencentcloud/ams/v20201229/models.py +24 -0
- tencentcloud/antiddos/v20200309/models.py +13 -1
- tencentcloud/apm/v20210622/errorcodes.py +3 -0
- tencentcloud/apm/v20210622/models.py +25 -0
- tencentcloud/asr/v20190614/asr_client.py +103 -1
- tencentcloud/asr/v20190614/errorcodes.py +3 -0
- tencentcloud/asr/v20190614/models.py +620 -0
- tencentcloud/batch/v20170312/models.py +2 -2
- tencentcloud/bi/v20220105/models.py +25 -0
- tencentcloud/billing/v20180709/models.py +155 -0
- tencentcloud/cam/v20190116/cam_client.py +46 -0
- tencentcloud/cam/v20190116/errorcodes.py +6 -0
- tencentcloud/cam/v20190116/models.py +301 -0
- tencentcloud/ccc/v20200210/models.py +42 -12
- tencentcloud/cdb/v20170320/cdb_client.py +46 -0
- tencentcloud/cdb/v20170320/models.py +296 -4
- tencentcloud/cdwch/v20200915/models.py +1 -1
- tencentcloud/cdwdoris/v20211228/cdwdoris_client.py +211 -165
- tencentcloud/cdwdoris/v20211228/errorcodes.py +0 -3
- tencentcloud/cdwdoris/v20211228/models.py +2316 -2164
- tencentcloud/cfg/v20210820/models.py +195 -1
- tencentcloud/cfw/v20190904/cfw_client.py +46 -25
- tencentcloud/cfw/v20190904/models.py +1056 -249
- tencentcloud/ckafka/v20190819/ckafka_client.py +24 -1
- tencentcloud/ckafka/v20190819/models.py +175 -2
- tencentcloud/clb/v20180317/models.py +147 -3
- tencentcloud/cls/v20201016/cls_client.py +92 -0
- tencentcloud/cls/v20201016/models.py +764 -16
- tencentcloud/controlcenter/__init__.py +0 -0
- tencentcloud/controlcenter/v20230110/__init__.py +0 -0
- tencentcloud/controlcenter/v20230110/controlcenter_client.py +49 -0
- tencentcloud/controlcenter/v20230110/errorcodes.py +45 -0
- tencentcloud/controlcenter/v20230110/models.py +140 -0
- tencentcloud/csip/v20221121/models.py +385 -0
- tencentcloud/cvm/v20170312/cvm_client.py +23 -0
- tencentcloud/cvm/v20170312/errorcodes.py +24 -0
- tencentcloud/cvm/v20170312/models.py +178 -6
- tencentcloud/cwp/v20180228/cwp_client.py +29 -2
- tencentcloud/cwp/v20180228/models.py +314 -13
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +115 -0
- tencentcloud/cynosdb/v20190107/errorcodes.py +3 -0
- tencentcloud/cynosdb/v20190107/models.py +862 -52
- tencentcloud/dasb/v20191018/dasb_client.py +23 -0
- tencentcloud/dasb/v20191018/errorcodes.py +3 -0
- tencentcloud/dasb/v20191018/models.py +277 -0
- tencentcloud/dbbrain/v20210527/models.py +212 -2
- tencentcloud/dc/v20180410/dc_client.py +7 -8
- tencentcloud/dc/v20180410/models.py +84 -25
- tencentcloud/dcdb/v20180411/dcdb_client.py +71 -0
- tencentcloud/dcdb/v20180411/models.py +636 -0
- tencentcloud/dlc/v20210125/dlc_client.py +47 -1
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +637 -6
- tencentcloud/dnspod/v20210323/dnspod_client.py +23 -0
- tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
- tencentcloud/dnspod/v20210323/models.py +185 -0
- tencentcloud/dsgc/v20190723/models.py +179 -1
- tencentcloud/dts/v20211206/errorcodes.py +3 -0
- tencentcloud/ecc/v20181213/ecc_client.py +1 -2
- tencentcloud/emr/v20190103/emr_client.py +331 -4
- tencentcloud/emr/v20190103/errorcodes.py +9 -0
- tencentcloud/emr/v20190103/models.py +8787 -5344
- tencentcloud/es/v20180416/es_client.py +47 -0
- tencentcloud/es/v20180416/models.py +510 -1
- tencentcloud/ess/v20201111/errorcodes.py +6 -0
- tencentcloud/ess/v20201111/ess_client.py +106 -15
- tencentcloud/ess/v20201111/models.py +742 -96
- tencentcloud/essbasic/v20210526/essbasic_client.py +64 -2
- tencentcloud/essbasic/v20210526/models.py +395 -18
- tencentcloud/facefusion/v20181201/models.py +9 -3
- tencentcloud/facefusion/v20220927/errorcodes.py +13 -67
- tencentcloud/facefusion/v20220927/models.py +41 -13
- tencentcloud/faceid/v20180301/faceid_client.py +1 -1
- tencentcloud/faceid/v20180301/models.py +66 -0
- tencentcloud/gme/v20180711/models.py +2 -2
- tencentcloud/goosefs/v20220519/models.py +61 -0
- tencentcloud/hunyuan/v20230901/errorcodes.py +21 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +53 -1
- tencentcloud/hunyuan/v20230901/models.py +528 -10
- tencentcloud/ims/v20201229/ims_client.py +3 -3
- tencentcloud/ims/v20201229/models.py +1 -1
- tencentcloud/ioa/v20220601/models.py +6 -5
- tencentcloud/iotexplorer/v20190423/models.py +14 -6
- tencentcloud/irp/v20220805/models.py +13 -1
- tencentcloud/iss/v20230517/errorcodes.py +15 -0
- tencentcloud/iss/v20230517/iss_client.py +23 -0
- tencentcloud/iss/v20230517/models.py +233 -0
- tencentcloud/lcic/v20220817/lcic_client.py +23 -0
- tencentcloud/lcic/v20220817/models.py +261 -0
- tencentcloud/lighthouse/v20200324/errorcodes.py +3 -0
- tencentcloud/lighthouse/v20200324/models.py +28 -0
- tencentcloud/live/v20180801/models.py +2 -10
- tencentcloud/lke/v20231130/errorcodes.py +1 -1
- tencentcloud/lke/v20231130/lke_client.py +1 -1
- tencentcloud/lke/v20231130/models.py +366 -6
- tencentcloud/mariadb/v20170312/errorcodes.py +6 -0
- tencentcloud/mariadb/v20170312/mariadb_client.py +71 -0
- tencentcloud/mariadb/v20170312/models.py +601 -1
- tencentcloud/mna/v20210119/errorcodes.py +6 -0
- tencentcloud/mna/v20210119/mna_client.py +23 -0
- tencentcloud/mna/v20210119/models.py +146 -0
- tencentcloud/mongodb/v20180408/errorcodes.py +1 -1
- tencentcloud/mongodb/v20190725/errorcodes.py +1 -1
- tencentcloud/mongodb/v20190725/models.py +72 -45
- tencentcloud/monitor/v20180724/models.py +13 -0
- tencentcloud/mps/v20190612/models.py +631 -21
- tencentcloud/oceanus/v20190422/models.py +25 -0
- tencentcloud/ocr/v20181119/errorcodes.py +6 -0
- tencentcloud/ocr/v20181119/models.py +333 -10
- tencentcloud/ocr/v20181119/ocr_client.py +54 -2
- tencentcloud/omics/v20221128/models.py +15 -3
- tencentcloud/organization/v20210331/errorcodes.py +246 -0
- tencentcloud/organization/v20210331/models.py +12482 -4167
- tencentcloud/organization/v20210331/organization_client.py +1326 -130
- tencentcloud/postgres/v20170312/errorcodes.py +15 -0
- tencentcloud/rce/v20201103/rce_client.py +2 -2
- tencentcloud/redis/v20180412/models.py +335 -20
- tencentcloud/redis/v20180412/redis_client.py +46 -0
- tencentcloud/region/v20220627/models.py +0 -1
- tencentcloud/rum/v20210622/models.py +12 -0
- tencentcloud/scf/v20180416/models.py +51 -15
- tencentcloud/ses/v20201002/models.py +177 -0
- tencentcloud/smh/v20210712/errorcodes.py +69 -0
- tencentcloud/smh/v20210712/models.py +1173 -36
- tencentcloud/smh/v20210712/smh_client.py +115 -0
- tencentcloud/sms/v20190711/errorcodes.py +6 -0
- tencentcloud/sms/v20190711/models.py +21 -22
- tencentcloud/sms/v20190711/sms_client.py +28 -60
- tencentcloud/sms/v20210111/errorcodes.py +6 -0
- tencentcloud/sms/v20210111/models.py +5 -4
- tencentcloud/sqlserver/v20180328/errorcodes.py +3 -0
- tencentcloud/sqlserver/v20180328/models.py +185 -1
- tencentcloud/sqlserver/v20180328/sqlserver_client.py +23 -0
- tencentcloud/ssl/v20191205/errorcodes.py +6 -0
- tencentcloud/ssl/v20191205/models.py +209 -0
- tencentcloud/ssl/v20191205/ssl_client.py +24 -1
- tencentcloud/tag/v20180813/models.py +33 -33
- tencentcloud/tat/v20201028/errorcodes.py +9 -0
- tencentcloud/tat/v20201028/models.py +234 -1
- tencentcloud/tat/v20201028/tat_client.py +23 -0
- tencentcloud/tcr/v20190924/errorcodes.py +3 -0
- tencentcloud/tcss/v20201101/models.py +140 -5
- tencentcloud/tdmq/v20200217/models.py +155 -0
- tencentcloud/teo/v20220901/models.py +35 -16
- tencentcloud/thpc/v20230321/models.py +1432 -82
- tencentcloud/thpc/v20230321/thpc_client.py +92 -0
- tencentcloud/tiia/v20190529/models.py +0 -469
- tencentcloud/tiia/v20190529/tiia_client.py +0 -29
- tencentcloud/tke/v20180525/errorcodes.py +3 -0
- tencentcloud/tke/v20180525/models.py +24 -0
- tencentcloud/tke/v20220501/models.py +852 -8
- tencentcloud/tke/v20220501/tke_client.py +138 -0
- tencentcloud/tms/v20201229/errorcodes.py +0 -6
- tencentcloud/tms/v20201229/models.py +0 -70
- tencentcloud/tms/v20201229/tms_client.py +0 -23
- tencentcloud/tmt/v20180321/errorcodes.py +3 -0
- tencentcloud/tmt/v20180321/models.py +31 -31
- tencentcloud/tmt/v20180321/tmt_client.py +1 -1
- tencentcloud/trocket/v20230308/models.py +241 -7
- tencentcloud/trocket/v20230308/trocket_client.py +23 -0
- tencentcloud/trtc/v20190722/models.py +259 -30
- tencentcloud/trtc/v20190722/trtc_client.py +48 -38
- tencentcloud/tse/v20201207/models.py +114 -25
- tencentcloud/tsf/v20180326/models.py +51 -0
- tencentcloud/tts/v20190823/models.py +2 -2
- tencentcloud/vclm/v20240523/errorcodes.py +30 -3
- tencentcloud/vclm/v20240523/models.py +41 -4
- tencentcloud/vclm/v20240523/vclm_client.py +53 -1
- tencentcloud/vdb/v20230616/errorcodes.py +21 -0
- tencentcloud/vdb/v20230616/models.py +805 -0
- tencentcloud/vdb/v20230616/vdb_client.py +115 -0
- tencentcloud/vod/v20180717/errorcodes.py +18 -0
- tencentcloud/vod/v20180717/models.py +671 -12
- tencentcloud/vod/v20180717/vod_client.py +71 -2
- tencentcloud/vod/v20240718/__init__.py +0 -0
- tencentcloud/vod/v20240718/errorcodes.py +15 -0
- tencentcloud/vod/v20240718/models.py +189 -0
- tencentcloud/vod/v20240718/vod_client.py +49 -0
- tencentcloud/vpc/v20170312/models.py +399 -10
- tencentcloud/vpc/v20170312/vpc_client.py +2 -2
- tencentcloud/vrs/v20200824/models.py +1 -0
- tencentcloud/vrs/v20200824/vrs_client.py +1 -0
- tencentcloud/vtc/v20240223/models.py +30 -4
- tencentcloud/vtc/v20240223/vtc_client.py +53 -1
- tencentcloud/waf/v20180125/models.py +1 -1
- tencentcloud/wedata/v20210820/errorcodes.py +6 -0
- tencentcloud/wedata/v20210820/models.py +2905 -366
- tencentcloud/wedata/v20210820/wedata_client.py +161 -0
- {tencentcloud_sdk_python-3.0.1207.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1207.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/RECORD +196 -187
- {tencentcloud_sdk_python-3.0.1207.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1207.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1207.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/top_level.txt +0 -0
@@ -26,6 +26,29 @@ class TkeClient(AbstractClient):
|
|
26
26
|
_service = 'tke'
|
27
27
|
|
28
28
|
|
29
|
+
def CreateHealthCheckPolicy(self, request):
|
30
|
+
"""创建健康检测策略
|
31
|
+
|
32
|
+
:param request: Request instance for CreateHealthCheckPolicy.
|
33
|
+
:type request: :class:`tencentcloud.tke.v20220501.models.CreateHealthCheckPolicyRequest`
|
34
|
+
:rtype: :class:`tencentcloud.tke.v20220501.models.CreateHealthCheckPolicyResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("CreateHealthCheckPolicy", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.CreateHealthCheckPolicyResponse()
|
43
|
+
model._deserialize(response["Response"])
|
44
|
+
return model
|
45
|
+
except Exception as e:
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
47
|
+
raise
|
48
|
+
else:
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
|
+
|
51
|
+
|
29
52
|
def CreateNodePool(self, request):
|
30
53
|
"""创建 TKE 节点池
|
31
54
|
|
@@ -49,6 +72,29 @@ class TkeClient(AbstractClient):
|
|
49
72
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
73
|
|
51
74
|
|
75
|
+
def DeleteHealthCheckPolicy(self, request):
|
76
|
+
"""删除健康检测策略
|
77
|
+
|
78
|
+
:param request: Request instance for DeleteHealthCheckPolicy.
|
79
|
+
:type request: :class:`tencentcloud.tke.v20220501.models.DeleteHealthCheckPolicyRequest`
|
80
|
+
:rtype: :class:`tencentcloud.tke.v20220501.models.DeleteHealthCheckPolicyResponse`
|
81
|
+
|
82
|
+
"""
|
83
|
+
try:
|
84
|
+
params = request._serialize()
|
85
|
+
headers = request.headers
|
86
|
+
body = self.call("DeleteHealthCheckPolicy", params, headers=headers)
|
87
|
+
response = json.loads(body)
|
88
|
+
model = models.DeleteHealthCheckPolicyResponse()
|
89
|
+
model._deserialize(response["Response"])
|
90
|
+
return model
|
91
|
+
except Exception as e:
|
92
|
+
if isinstance(e, TencentCloudSDKException):
|
93
|
+
raise
|
94
|
+
else:
|
95
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
96
|
+
|
97
|
+
|
52
98
|
def DeleteNodePool(self, request):
|
53
99
|
"""删除 TKE 节点池
|
54
100
|
|
@@ -95,6 +141,75 @@ class TkeClient(AbstractClient):
|
|
95
141
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
96
142
|
|
97
143
|
|
144
|
+
def DescribeHealthCheckPolicies(self, request):
|
145
|
+
"""查询健康检测策略
|
146
|
+
|
147
|
+
:param request: Request instance for DescribeHealthCheckPolicies.
|
148
|
+
:type request: :class:`tencentcloud.tke.v20220501.models.DescribeHealthCheckPoliciesRequest`
|
149
|
+
:rtype: :class:`tencentcloud.tke.v20220501.models.DescribeHealthCheckPoliciesResponse`
|
150
|
+
|
151
|
+
"""
|
152
|
+
try:
|
153
|
+
params = request._serialize()
|
154
|
+
headers = request.headers
|
155
|
+
body = self.call("DescribeHealthCheckPolicies", params, headers=headers)
|
156
|
+
response = json.loads(body)
|
157
|
+
model = models.DescribeHealthCheckPoliciesResponse()
|
158
|
+
model._deserialize(response["Response"])
|
159
|
+
return model
|
160
|
+
except Exception as e:
|
161
|
+
if isinstance(e, TencentCloudSDKException):
|
162
|
+
raise
|
163
|
+
else:
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
165
|
+
|
166
|
+
|
167
|
+
def DescribeHealthCheckPolicyBindings(self, request):
|
168
|
+
"""查询健康检测策略绑定关系
|
169
|
+
|
170
|
+
:param request: Request instance for DescribeHealthCheckPolicyBindings.
|
171
|
+
:type request: :class:`tencentcloud.tke.v20220501.models.DescribeHealthCheckPolicyBindingsRequest`
|
172
|
+
:rtype: :class:`tencentcloud.tke.v20220501.models.DescribeHealthCheckPolicyBindingsResponse`
|
173
|
+
|
174
|
+
"""
|
175
|
+
try:
|
176
|
+
params = request._serialize()
|
177
|
+
headers = request.headers
|
178
|
+
body = self.call("DescribeHealthCheckPolicyBindings", params, headers=headers)
|
179
|
+
response = json.loads(body)
|
180
|
+
model = models.DescribeHealthCheckPolicyBindingsResponse()
|
181
|
+
model._deserialize(response["Response"])
|
182
|
+
return model
|
183
|
+
except Exception as e:
|
184
|
+
if isinstance(e, TencentCloudSDKException):
|
185
|
+
raise
|
186
|
+
else:
|
187
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
188
|
+
|
189
|
+
|
190
|
+
def DescribeHealthCheckTemplate(self, request):
|
191
|
+
"""查询健康检测策略模板
|
192
|
+
|
193
|
+
:param request: Request instance for DescribeHealthCheckTemplate.
|
194
|
+
:type request: :class:`tencentcloud.tke.v20220501.models.DescribeHealthCheckTemplateRequest`
|
195
|
+
:rtype: :class:`tencentcloud.tke.v20220501.models.DescribeHealthCheckTemplateResponse`
|
196
|
+
|
197
|
+
"""
|
198
|
+
try:
|
199
|
+
params = request._serialize()
|
200
|
+
headers = request.headers
|
201
|
+
body = self.call("DescribeHealthCheckTemplate", params, headers=headers)
|
202
|
+
response = json.loads(body)
|
203
|
+
model = models.DescribeHealthCheckTemplateResponse()
|
204
|
+
model._deserialize(response["Response"])
|
205
|
+
return model
|
206
|
+
except Exception as e:
|
207
|
+
if isinstance(e, TencentCloudSDKException):
|
208
|
+
raise
|
209
|
+
else:
|
210
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
211
|
+
|
212
|
+
|
98
213
|
def DescribeNodePools(self, request):
|
99
214
|
"""查询 TKE 节点池列表
|
100
215
|
|
@@ -118,6 +233,29 @@ class TkeClient(AbstractClient):
|
|
118
233
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
119
234
|
|
120
235
|
|
236
|
+
def ModifyHealthCheckPolicy(self, request):
|
237
|
+
"""修改健康检测策略
|
238
|
+
|
239
|
+
:param request: Request instance for ModifyHealthCheckPolicy.
|
240
|
+
:type request: :class:`tencentcloud.tke.v20220501.models.ModifyHealthCheckPolicyRequest`
|
241
|
+
:rtype: :class:`tencentcloud.tke.v20220501.models.ModifyHealthCheckPolicyResponse`
|
242
|
+
|
243
|
+
"""
|
244
|
+
try:
|
245
|
+
params = request._serialize()
|
246
|
+
headers = request.headers
|
247
|
+
body = self.call("ModifyHealthCheckPolicy", params, headers=headers)
|
248
|
+
response = json.loads(body)
|
249
|
+
model = models.ModifyHealthCheckPolicyResponse()
|
250
|
+
model._deserialize(response["Response"])
|
251
|
+
return model
|
252
|
+
except Exception as e:
|
253
|
+
if isinstance(e, TencentCloudSDKException):
|
254
|
+
raise
|
255
|
+
else:
|
256
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
257
|
+
|
258
|
+
|
121
259
|
def ModifyNodePool(self, request):
|
122
260
|
"""更新 TKE 节点池
|
123
261
|
|
@@ -14,9 +14,6 @@
|
|
14
14
|
# limitations under the License.
|
15
15
|
|
16
16
|
|
17
|
-
# 内部错误。
|
18
|
-
INTERNALERROR = 'InternalError'
|
19
|
-
|
20
17
|
# 请求超时。
|
21
18
|
INTERNALERROR_ERRTEXTTIMEOUT = 'InternalError.ErrTextTimeOut'
|
22
19
|
|
@@ -29,9 +26,6 @@ INVALIDPARAMETER_ERRTEXTCONTENTLEN = 'InvalidParameter.ErrTextContentLen'
|
|
29
26
|
# 文本类型错误,需要base64的文本。
|
30
27
|
INVALIDPARAMETER_ERRTEXTCONTENTTYPE = 'InvalidParameter.ErrTextContentType'
|
31
28
|
|
32
|
-
# Question参数错误
|
33
|
-
INVALIDPARAMETER_INVALIDQUESTION = 'InvalidParameter.InvalidQuestion'
|
34
|
-
|
35
29
|
# InvalidParameter.ParameterError
|
36
30
|
INVALIDPARAMETER_PARAMETERERROR = 'InvalidParameter.ParameterError'
|
37
31
|
|
@@ -18,76 +18,6 @@ import warnings
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
19
19
|
|
20
20
|
|
21
|
-
class AnswerQuestionRequest(AbstractModel):
|
22
|
-
"""AnswerQuestion请求参数结构体
|
23
|
-
|
24
|
-
"""
|
25
|
-
|
26
|
-
def __init__(self):
|
27
|
-
r"""
|
28
|
-
:param _Question: 用户问题
|
29
|
-
:type Question: str
|
30
|
-
"""
|
31
|
-
self._Question = None
|
32
|
-
|
33
|
-
@property
|
34
|
-
def Question(self):
|
35
|
-
return self._Question
|
36
|
-
|
37
|
-
@Question.setter
|
38
|
-
def Question(self, Question):
|
39
|
-
self._Question = Question
|
40
|
-
|
41
|
-
|
42
|
-
def _deserialize(self, params):
|
43
|
-
self._Question = params.get("Question")
|
44
|
-
memeber_set = set(params.keys())
|
45
|
-
for name, value in vars(self).items():
|
46
|
-
property_name = name[1:]
|
47
|
-
if property_name in memeber_set:
|
48
|
-
memeber_set.remove(property_name)
|
49
|
-
if len(memeber_set) > 0:
|
50
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
class AnswerQuestionResponse(AbstractModel):
|
55
|
-
"""AnswerQuestion返回参数结构体
|
56
|
-
|
57
|
-
"""
|
58
|
-
|
59
|
-
def __init__(self):
|
60
|
-
r"""
|
61
|
-
:param _Answer: 匹配到的答案
|
62
|
-
:type Answer: str
|
63
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
64
|
-
:type RequestId: str
|
65
|
-
"""
|
66
|
-
self._Answer = None
|
67
|
-
self._RequestId = None
|
68
|
-
|
69
|
-
@property
|
70
|
-
def Answer(self):
|
71
|
-
return self._Answer
|
72
|
-
|
73
|
-
@Answer.setter
|
74
|
-
def Answer(self, Answer):
|
75
|
-
self._Answer = Answer
|
76
|
-
|
77
|
-
@property
|
78
|
-
def RequestId(self):
|
79
|
-
return self._RequestId
|
80
|
-
|
81
|
-
@RequestId.setter
|
82
|
-
def RequestId(self, RequestId):
|
83
|
-
self._RequestId = RequestId
|
84
|
-
|
85
|
-
|
86
|
-
def _deserialize(self, params):
|
87
|
-
self._Answer = params.get("Answer")
|
88
|
-
self._RequestId = params.get("RequestId")
|
89
|
-
|
90
|
-
|
91
21
|
class DetailResults(AbstractModel):
|
92
22
|
"""文本审核返回的详细结果
|
93
23
|
|
@@ -26,29 +26,6 @@ class TmsClient(AbstractClient):
|
|
26
26
|
_service = 'tms'
|
27
27
|
|
28
28
|
|
29
|
-
def AnswerQuestion(self, request):
|
30
|
-
""""AIGC代答"产品帮助客户在其AIGC场景下,对于敏感类的问题,不是由客户的大模型机器人来回答,而是我们来进行代答,尽最大可能帮助客户规避风险。
|
31
|
-
|
32
|
-
:param request: Request instance for AnswerQuestion.
|
33
|
-
:type request: :class:`tencentcloud.tms.v20201229.models.AnswerQuestionRequest`
|
34
|
-
:rtype: :class:`tencentcloud.tms.v20201229.models.AnswerQuestionResponse`
|
35
|
-
|
36
|
-
"""
|
37
|
-
try:
|
38
|
-
params = request._serialize()
|
39
|
-
headers = request.headers
|
40
|
-
body = self.call("AnswerQuestion", params, headers=headers)
|
41
|
-
response = json.loads(body)
|
42
|
-
model = models.AnswerQuestionResponse()
|
43
|
-
model._deserialize(response["Response"])
|
44
|
-
return model
|
45
|
-
except Exception as e:
|
46
|
-
if isinstance(e, TencentCloudSDKException):
|
47
|
-
raise
|
48
|
-
else:
|
49
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
|
-
|
51
|
-
|
52
29
|
def ModerateText(self, request):
|
53
30
|
"""天御文本内容安全定制标签文本审核接口为定制接口,会按照客户定制标签输出审核结果,如需使用请联系商务经理或[在线客服](https://cloud.tencent.com/online-service?from=doc_1125)咨询。
|
54
31
|
|
@@ -44,6 +44,9 @@ FAILEDOPERATION_SUBMISSIONLIMITREACHED = 'FailedOperation.SubmissionLimitReached
|
|
44
44
|
# 过多未完成任务
|
45
45
|
FAILEDOPERATION_TOOMANYWAITPROCESS = 'FailedOperation.TooManyWaitProcess'
|
46
46
|
|
47
|
+
# 本月免费额度已用完,如需继续使用您可以在机器翻译控制台购买资源包或开通后付费使用。
|
48
|
+
FAILEDOPERATION_USERHASNOFREEAMOUNT = 'FailedOperation.UserHasNoFreeAmount'
|
49
|
+
|
47
50
|
# 服务未开通,请在腾讯云官网机器翻译控制台开通服务。
|
48
51
|
FAILEDOPERATION_USERNOTREGISTERED = 'FailedOperation.UserNotRegistered'
|
49
52
|
|
@@ -26,11 +26,11 @@ class FileTranslateRequest(AbstractModel):
|
|
26
26
|
def __init__(self):
|
27
27
|
r"""
|
28
28
|
:param _Source: 源语言,支持
|
29
|
-
zh
|
29
|
+
zh:简体中文
|
30
30
|
zh-HK:繁体中文
|
31
|
-
zh-TW
|
32
|
-
zh-TR
|
33
|
-
en
|
31
|
+
zh-TW:繁体中文
|
32
|
+
zh-TR:繁体中文
|
33
|
+
en:英语
|
34
34
|
ar:阿拉伯语
|
35
35
|
de:德语
|
36
36
|
es:西班牙语
|
@@ -40,36 +40,36 @@ ja:日语
|
|
40
40
|
pt:葡萄牙语
|
41
41
|
ru:俄语
|
42
42
|
ko:韩语
|
43
|
-
|
44
|
-
lo:老挝语
|
43
|
+
th:泰语
|
45
44
|
:type Source: str
|
46
45
|
:param _Target: 目标语言,各源语言的目标语言支持列表如下
|
47
|
-
zh(简体中文):
|
48
|
-
zh-HK
|
49
|
-
zh-TW(繁体中文):en
|
50
|
-
zh-TR
|
51
|
-
en
|
52
|
-
ar
|
53
|
-
de
|
54
|
-
es(西班牙语):zh(简体中文)、zh-HK(繁体中文)、
|
55
|
-
fr(法语):zh(简体中文)、zh-HK(繁体中文)、
|
56
|
-
it(意大利语):zh(简体中文)、zh-HK(繁体中文)、
|
57
|
-
ja(日语):zh(简体中文)、zh-HK(繁体中文)、
|
58
|
-
pt(葡萄牙语):zh(简体中文)、zh-HK(繁体中文)、
|
59
|
-
ru(俄语):zh(简体中文)、zh-HK(繁体中文)、
|
60
|
-
ko(韩语):zh(简体中文)、zh-HK(繁体中文)、
|
61
|
-
|
62
|
-
|
46
|
+
zh(简体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
|
47
|
+
zh-HK(繁体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
|
48
|
+
zh-TW(繁体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
|
49
|
+
zh-TR(繁体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
|
50
|
+
en(英语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
|
51
|
+
ar(阿拉伯语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
52
|
+
de(德语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
53
|
+
es(西班牙语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)、fr(法语)
|
54
|
+
fr(法语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)、es(西班牙语)
|
55
|
+
it(意大利语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
56
|
+
ja(日语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
57
|
+
pt(葡萄牙语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
58
|
+
ru(俄语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
59
|
+
ko(韩语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
60
|
+
tr(土耳其语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
61
|
+
vi(越南语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
62
|
+
th(泰语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
63
63
|
:type Target: str
|
64
64
|
:param _DocumentType: 文档类型:可支持以下几种(pdf,docx,pptx,xlsx,txt,xml,html,markdown,properties)
|
65
65
|
:type DocumentType: str
|
66
66
|
:param _SourceType: 数据来源,0:url,1:直接传文件编码后数据
|
67
67
|
:type SourceType: int
|
68
|
-
:param _Url: 需要翻译文件url
|
68
|
+
:param _Url: 需要翻译文件url,URL长度不能超过1000字符。文件限制如下:docx/xIsx/html/markdown文件不超过800万字符,doc/pdf/pptx文件不超过300页,txt/po文件不超过10MB,pdf/docx/pptx/xlsx不超过40MB
|
69
69
|
:type Url: str
|
70
70
|
:param _BasicDocumentType: 原始文档类型。该参数为高级参数,请留空,如需使用,请与工作人员确认后再使用。
|
71
71
|
:type BasicDocumentType: str
|
72
|
-
:param _CallbackUrl: 回调url
|
72
|
+
:param _CallbackUrl: 回调url,URL长度不能超过256字符。文件大于10MB或字符较多时,建议采用回调方式;回调时,所有内容会放入 Body 中,具体请参见[文件翻译回调说明](https://cloud.tencent.com/document/product/551/91138)。
|
73
73
|
:type CallbackUrl: str
|
74
74
|
:param _Data: 文件数据,当SourceType 值为1时必须填写,为0可不写。要base64编码(采用python语言时注意读取文件应该为string而不是byte,以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。数据要小于5MB。
|
75
75
|
:type Data: str
|
@@ -217,7 +217,7 @@ class GetFileTranslateData(AbstractModel):
|
|
217
217
|
:type TaskId: str
|
218
218
|
:param _Status: 状态
|
219
219
|
:type Status: str
|
220
|
-
:param _FileData:
|
220
|
+
:param _FileData: 文件数据,目标文件必须小于50M,否则请通过回调方式请求文件翻译接口
|
221
221
|
注意:此字段可能返回 null,表示取不到有效值。
|
222
222
|
:type FileData: str
|
223
223
|
:param _Message: 错误提示
|
@@ -1090,8 +1090,8 @@ hi:印地语
|
|
1090
1090
|
:type Source: str
|
1091
1091
|
:param _Target: 目标语言,各源语言的目标语言支持列表如下
|
1092
1092
|
|
1093
|
-
<li> zh(简体中文):en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms
|
1094
|
-
<li>zh-TW(繁体中文):en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms
|
1093
|
+
<li> zh(简体中文):en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)</li>
|
1094
|
+
<li>zh-TW(繁体中文):en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)</li>
|
1095
1095
|
<li>en(英语):zh(中文)、zh-TW(繁体中文)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)、hi(印地语)</li>
|
1096
1096
|
<li>ja(日语):zh(中文)、zh-TW(繁体中文)、en(英语)、ko(韩语)</li>
|
1097
1097
|
<li>ko(韩语):zh(中文)、zh-TW(繁体中文)、en(英语)、ja(日语)</li>
|
@@ -1106,7 +1106,7 @@ hi:印地语
|
|
1106
1106
|
<li>id(印尼语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1107
1107
|
<li>th(泰语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1108
1108
|
<li>ms(马来语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1109
|
-
<li>ar(阿拉伯语):en(英语)</li>
|
1109
|
+
<li>ar(阿拉伯语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1110
1110
|
<li>hi(印地语):en(英语)</li>
|
1111
1111
|
:type Target: str
|
1112
1112
|
:param _ProjectId: 项目ID,可以根据控制台-账号中心-项目管理中的配置填写,如无配置请填写默认项目ID:0
|
@@ -1284,8 +1284,8 @@ hi:印地语
|
|
1284
1284
|
:type Source: str
|
1285
1285
|
:param _Target: 目标语言,各源语言的目标语言支持列表如下
|
1286
1286
|
|
1287
|
-
<li> zh(简体中文):zh-TW(繁体中文)、en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms
|
1288
|
-
<li>zh-TW(繁体中文):zh(简体中文)、en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms
|
1287
|
+
<li> zh(简体中文):zh-TW(繁体中文)、en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)</li>
|
1288
|
+
<li>zh-TW(繁体中文):zh(简体中文)、en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)</li>
|
1289
1289
|
<li>en(英语):zh(中文)、zh-TW(繁体中文)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)、hi(印地语)</li>
|
1290
1290
|
<li>ja(日语):zh(中文)、zh-TW(繁体中文)、en(英语)、ko(韩语)</li>
|
1291
1291
|
<li>ko(韩语):zh(中文)、zh-TW(繁体中文)、en(英语)、ja(日语)</li>
|
@@ -1300,7 +1300,7 @@ hi:印地语
|
|
1300
1300
|
<li>id(印尼语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1301
1301
|
<li>th(泰语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1302
1302
|
<li>ms(马来语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1303
|
-
<li>ar(阿拉伯语):en(英语)</li>
|
1303
|
+
<li>ar(阿拉伯语):zh(中文)、zh-TW(繁体中文)、en(英语)</li>
|
1304
1304
|
<li>hi(印地语):en(英语)</li>
|
1305
1305
|
:type Target: str
|
1306
1306
|
:param _ProjectId: 项目ID,可以根据控制台-账号中心-项目管理中的配置填写,如无配置请填写默认项目ID:0
|
@@ -124,7 +124,7 @@ class TmtClient(AbstractClient):
|
|
124
124
|
|
125
125
|
def SpeechTranslate(self, request):
|
126
126
|
"""本接口提供上传音频,将音频进行语音识别并翻译成文本的服务,目前开放中英互译的语音翻译服务。
|
127
|
-
待识别和翻译的音频文件可以是 pcm、mp3和speex 格式,pcm采样率要求16kHz、位深16bit、单声道,音频内语音清晰。<br/>
|
127
|
+
待识别和翻译的音频文件可以是 pcm、mp3和speex 格式,其中支持流式传输的只有pcm格式,pcm采样率要求16kHz、位深16bit、单声道,音频内语音清晰。<br/>
|
128
128
|
如果采用流式传输的方式,要求每个分片时长200ms~500ms;如果采用非流式的传输方式,要求音频时长不超过8s。注意最后一个分片的IsEnd参数设置为1。<br />
|
129
129
|
提示:对于一般开发者,我们建议优先使用SDK接入简化开发。SDK使用介绍请直接查看 5. 开发者资源部分。
|
130
130
|
|