tencentcloud-sdk-python 3.0.1202__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 +214 -15
- 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/autoscaling/v20180419/errorcodes.py +6 -0
- tencentcloud/autoscaling/v20180419/models.py +67 -20
- 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/cbs/v20170312/models.py +1 -1
- tencentcloud/ccc/v20200210/models.py +42 -12
- tencentcloud/cdb/v20170320/cdb_client.py +46 -0
- tencentcloud/cdb/v20170320/models.py +359 -11
- tencentcloud/cdwch/v20200915/models.py +1 -1
- tencentcloud/cdwdoris/v20211228/cdwdoris_client.py +618 -66
- tencentcloud/cdwdoris/v20211228/errorcodes.py +0 -3
- tencentcloud/cdwdoris/v20211228/models.py +8041 -3844
- tencentcloud/cfg/v20210820/models.py +195 -1
- tencentcloud/cfs/v20190719/cfs_client.py +2 -2
- tencentcloud/cfs/v20190719/errorcodes.py +9 -0
- tencentcloud/cfs/v20190719/models.py +55 -5
- 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 +409 -0
- tencentcloud/cvm/v20170312/cvm_client.py +24 -1
- tencentcloud/cvm/v20170312/errorcodes.py +24 -0
- tencentcloud/cvm/v20170312/models.py +185 -10
- 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 +661 -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 +193 -15
- 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 +12 -0
- tencentcloud/emr/v20190103/models.py +6832 -3365
- tencentcloud/es/v20180416/es_client.py +47 -0
- tencentcloud/es/v20180416/models.py +547 -1
- tencentcloud/ess/v20201111/errorcodes.py +6 -0
- tencentcloud/ess/v20201111/ess_client.py +142 -24
- tencentcloud/ess/v20201111/models.py +763 -103
- tencentcloud/essbasic/v20210526/essbasic_client.py +77 -3
- tencentcloud/essbasic/v20210526/models.py +413 -24
- 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 +39 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +99 -1
- tencentcloud/hunyuan/v20230901/models.py +661 -13
- 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/errorcodes.py +15 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +46 -0
- tencentcloud/iotexplorer/v20190423/models.py +357 -2
- 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 +285 -0
- tencentcloud/lighthouse/v20200324/errorcodes.py +6 -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 +18 -4
- tencentcloud/mps/v20190612/models.py +658 -21
- tencentcloud/oceanus/v20190422/models.py +25 -0
- tencentcloud/ocr/v20181119/errorcodes.py +6 -0
- tencentcloud/ocr/v20181119/models.py +345 -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 +12635 -4016
- tencentcloud/organization/v20210331/organization_client.py +1342 -123
- tencentcloud/postgres/v20170312/errorcodes.py +15 -0
- tencentcloud/pts/v20210728/errorcodes.py +3 -0
- tencentcloud/pts/v20210728/models.py +1 -1
- tencentcloud/rce/v20201103/models.py +2905 -435
- tencentcloud/rce/v20201103/rce_client.py +207 -0
- tencentcloud/redis/v20180412/models.py +944 -67
- tencentcloud/redis/v20180412/redis_client.py +93 -1
- 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 +6 -6
- tencentcloud/sqlserver/v20180328/errorcodes.py +3 -0
- tencentcloud/sqlserver/v20180328/models.py +243 -1
- tencentcloud/sqlserver/v20180328/sqlserver_client.py +46 -0
- tencentcloud/ssl/v20191205/errorcodes.py +6 -0
- tencentcloud/ssl/v20191205/models.py +245 -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/tcb/v20180608/models.py +13 -0
- tencentcloud/tcbr/v20220217/models.py +15 -0
- tencentcloud/tcr/v20190924/errorcodes.py +3 -0
- tencentcloud/tcss/v20201101/models.py +140 -5
- tencentcloud/tdmq/v20200217/models.py +155 -0
- tencentcloud/tds/v20220801/models.py +117 -0
- tencentcloud/teo/v20220901/errorcodes.py +12 -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 +32 -32
- 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/errorcodes.py +3 -0
- tencentcloud/trtc/v20190722/models.py +374 -55
- tencentcloud/trtc/v20190722/trtc_client.py +51 -39
- tencentcloud/tse/v20201207/models.py +127 -25
- tencentcloud/tsf/v20180326/models.py +51 -0
- tencentcloud/tsi/v20210325/models.py +24 -4
- tencentcloud/tsi/v20210325/tsi_client.py +12 -1
- tencentcloud/tts/v20190823/models.py +4 -3
- tencentcloud/vclm/v20240523/errorcodes.py +60 -0
- 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 +538 -10
- tencentcloud/vpc/v20170312/vpc_client.py +4 -2
- tencentcloud/vrs/v20200824/models.py +166 -8
- tencentcloud/vrs/v20200824/vrs_client.py +2 -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 +3941 -493
- tencentcloud/wedata/v20210820/wedata_client.py +184 -0
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/RECORD +214 -205
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/top_level.txt +0 -0
@@ -49,6 +49,33 @@ class AsrClient(AbstractClient):
|
|
49
49
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
50
|
|
51
51
|
|
52
|
+
def CreateAsrKeyWordLib(self, request):
|
53
|
+
"""用户通过本接口进行关键字词表的创建。
|
54
|
+
<br>• 默认每个用户最多可创建30个关键字词表。
|
55
|
+
<br>• 每个关键词词表最多可添加100个词,每个词最多5个汉字或15个字符。
|
56
|
+
<br>• 词表通过本地文件形式上传。
|
57
|
+
<br>• 本地文件必须为UTF-8编码格式,每行仅添加一个词且不能包含标点和特殊字符。
|
58
|
+
|
59
|
+
:param request: Request instance for CreateAsrKeyWordLib.
|
60
|
+
:type request: :class:`tencentcloud.asr.v20190614.models.CreateAsrKeyWordLibRequest`
|
61
|
+
:rtype: :class:`tencentcloud.asr.v20190614.models.CreateAsrKeyWordLibResponse`
|
62
|
+
|
63
|
+
"""
|
64
|
+
try:
|
65
|
+
params = request._serialize()
|
66
|
+
headers = request.headers
|
67
|
+
body = self.call("CreateAsrKeyWordLib", params, headers=headers)
|
68
|
+
response = json.loads(body)
|
69
|
+
model = models.CreateAsrKeyWordLibResponse()
|
70
|
+
model._deserialize(response["Response"])
|
71
|
+
return model
|
72
|
+
except Exception as e:
|
73
|
+
if isinstance(e, TencentCloudSDKException):
|
74
|
+
raise
|
75
|
+
else:
|
76
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
77
|
+
|
78
|
+
|
52
79
|
def CreateAsrVocab(self, request):
|
53
80
|
"""用户通过本接口进行热词表的创建。
|
54
81
|
<br>• 默认最多可创建30个热词表。
|
@@ -163,6 +190,29 @@ class AsrClient(AbstractClient):
|
|
163
190
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
164
191
|
|
165
192
|
|
193
|
+
def DeleteAsrKeyWordLib(self, request):
|
194
|
+
"""用户通过本接口进行关键词表的删除。
|
195
|
+
|
196
|
+
:param request: Request instance for DeleteAsrKeyWordLib.
|
197
|
+
:type request: :class:`tencentcloud.asr.v20190614.models.DeleteAsrKeyWordLibRequest`
|
198
|
+
:rtype: :class:`tencentcloud.asr.v20190614.models.DeleteAsrKeyWordLibResponse`
|
199
|
+
|
200
|
+
"""
|
201
|
+
try:
|
202
|
+
params = request._serialize()
|
203
|
+
headers = request.headers
|
204
|
+
body = self.call("DeleteAsrKeyWordLib", params, headers=headers)
|
205
|
+
response = json.loads(body)
|
206
|
+
model = models.DeleteAsrKeyWordLibResponse()
|
207
|
+
model._deserialize(response["Response"])
|
208
|
+
return model
|
209
|
+
except Exception as e:
|
210
|
+
if isinstance(e, TencentCloudSDKException):
|
211
|
+
raise
|
212
|
+
else:
|
213
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
214
|
+
|
215
|
+
|
166
216
|
def DeleteAsrVocab(self, request):
|
167
217
|
"""用户通过本接口进行热词表的删除。
|
168
218
|
|
@@ -308,6 +358,29 @@ class AsrClient(AbstractClient):
|
|
308
358
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
309
359
|
|
310
360
|
|
361
|
+
def GetAsrKeyWordLibList(self, request):
|
362
|
+
"""用户通过该接口,可获得所有的关键词表及其信息。
|
363
|
+
|
364
|
+
:param request: Request instance for GetAsrKeyWordLibList.
|
365
|
+
:type request: :class:`tencentcloud.asr.v20190614.models.GetAsrKeyWordLibListRequest`
|
366
|
+
:rtype: :class:`tencentcloud.asr.v20190614.models.GetAsrKeyWordLibListResponse`
|
367
|
+
|
368
|
+
"""
|
369
|
+
try:
|
370
|
+
params = request._serialize()
|
371
|
+
headers = request.headers
|
372
|
+
body = self.call("GetAsrKeyWordLibList", params, headers=headers)
|
373
|
+
response = json.loads(body)
|
374
|
+
model = models.GetAsrKeyWordLibListResponse()
|
375
|
+
model._deserialize(response["Response"])
|
376
|
+
return model
|
377
|
+
except Exception as e:
|
378
|
+
if isinstance(e, TencentCloudSDKException):
|
379
|
+
raise
|
380
|
+
else:
|
381
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
382
|
+
|
383
|
+
|
311
384
|
def GetAsrVocab(self, request):
|
312
385
|
"""用户根据词表的ID可以获取对应的热词表信息
|
313
386
|
|
@@ -447,7 +520,13 @@ class AsrClient(AbstractClient):
|
|
447
520
|
|
448
521
|
|
449
522
|
def SentenceRecognition(self, request):
|
450
|
-
"""本接口用于对60
|
523
|
+
"""本接口用于对60秒之内的短音频文件进行识别。
|
524
|
+
• 支持中文普通话、英语、粤语、日语、越南语、马来语、印度尼西亚语、菲律宾语、泰语、葡萄牙语、土耳其语、阿拉伯语、印地语、法语、德语、上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话。
|
525
|
+
• 支持本地语音文件上传和语音URL上传两种请求方式,音频时长不能超过60s,音频文件大小不能超过3MB。推荐使用 [腾讯云COS](https://cloud.tencent.com/document/product/436/38484) 来存储音频、生成URL并提交请求,此种方式会走内网下载音频,极大降低整体请求时延;并且不会产生外网和流量下行费用,可节约成本(COS桶权限需要设置公有读私有写,或URL设置时效访问签名)
|
526
|
+
• 音频格式支持wav、pcm、ogg-opus、speex、silk、mp3、m4a、aac、 amr。
|
527
|
+
• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
|
528
|
+
• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。
|
529
|
+
• 默认接口请求频率限制:30次/秒,如您有提高请求频率限制的需求,请[前往购买](https://buy.cloud.tencent.com/asr)。
|
451
530
|
|
452
531
|
:param request: Request instance for SentenceRecognition.
|
453
532
|
:type request: :class:`tencentcloud.asr.v20190614.models.SentenceRecognitionRequest`
|
@@ -492,6 +571,29 @@ class AsrClient(AbstractClient):
|
|
492
571
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
493
572
|
|
494
573
|
|
574
|
+
def UpdateAsrKeyWordLib(self, request):
|
575
|
+
"""用户通过本接口进行对应的关键词表信息更新。
|
576
|
+
|
577
|
+
:param request: Request instance for UpdateAsrKeyWordLib.
|
578
|
+
:type request: :class:`tencentcloud.asr.v20190614.models.UpdateAsrKeyWordLibRequest`
|
579
|
+
:rtype: :class:`tencentcloud.asr.v20190614.models.UpdateAsrKeyWordLibResponse`
|
580
|
+
|
581
|
+
"""
|
582
|
+
try:
|
583
|
+
params = request._serialize()
|
584
|
+
headers = request.headers
|
585
|
+
body = self.call("UpdateAsrKeyWordLib", params, headers=headers)
|
586
|
+
response = json.loads(body)
|
587
|
+
model = models.UpdateAsrKeyWordLibResponse()
|
588
|
+
model._deserialize(response["Response"])
|
589
|
+
return model
|
590
|
+
except Exception as e:
|
591
|
+
if isinstance(e, TencentCloudSDKException):
|
592
|
+
raise
|
593
|
+
else:
|
594
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
595
|
+
|
596
|
+
|
495
597
|
def UpdateAsrVocab(self, request):
|
496
598
|
"""用户通过本接口进行对应的词表信息更新。
|
497
599
|
|
@@ -140,6 +140,9 @@ INVALIDPARAMETER_INVALIDPARAMETER = 'InvalidParameter.InvalidParameter'
|
|
140
140
|
# 非法的词表状态。
|
141
141
|
INVALIDPARAMETER_INVALIDVOCABSTATE = 'InvalidParameter.InvalidVocabState'
|
142
142
|
|
143
|
+
# 关键词库名字已存在
|
144
|
+
INVALIDPARAMETER_KEYWORDLIBNAMEEXIST = 'InvalidParameter.KeyWordLibNameExist'
|
145
|
+
|
143
146
|
# 该模型状态不允许删除。
|
144
147
|
INVALIDPARAMETER_MODELSTATE = 'InvalidParameter.ModelState'
|
145
148
|
|