tccli 3.0.1181.1__py2.py3-none-any.whl → 3.0.1183.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/ams/v20201229/api.json +20 -0
- tccli/services/ams/v20201229/examples.json +1 -1
- tccli/services/asr/asr_client.py +229 -17
- tccli/services/asr/v20190614/api.json +379 -0
- tccli/services/asr/v20190614/examples.json +32 -0
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/bi/v20220105/api.json +10 -0
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +185 -0
- tccli/services/cdb/v20170320/examples.json +17 -1
- tccli/services/cdwdoris/v20211228/api.json +70 -8
- tccli/services/cdwdoris/v20211228/examples.json +2 -2
- tccli/services/cfg/v20210820/api.json +134 -11
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +44 -0
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/ckafka/v20190819/api.json +46 -16
- tccli/services/ckafka/v20190819/examples.json +8 -8
- tccli/services/clb/v20180317/api.json +99 -2
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/controlcenter/__init__.py +4 -0
- tccli/services/controlcenter/controlcenter_client.py +195 -0
- tccli/services/controlcenter/v20230110/api.json +82 -0
- tccli/services/controlcenter/v20230110/examples.json +13 -0
- tccli/services/csip/v20221121/api.json +308 -1
- tccli/services/cvm/v20170312/api.json +20 -20
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/cwp/v20180228/api.json +3 -3
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/cynosdb/cynosdb_client.py +110 -4
- tccli/services/cynosdb/v20190107/api.json +296 -11
- tccli/services/cynosdb/v20190107/examples.json +19 -3
- tccli/services/dasb/v20191018/api.json +20 -1
- tccli/services/dbbrain/v20210527/api.json +15 -15
- tccli/services/dc/v20180410/api.json +117 -73
- tccli/services/dc/v20180410/examples.json +11 -11
- tccli/services/dcdb/dcdb_client.py +53 -0
- tccli/services/dcdb/v20180411/api.json +54 -0
- tccli/services/dcdb/v20180411/examples.json +8 -0
- tccli/services/emr/emr_client.py +53 -0
- tccli/services/emr/v20190103/api.json +52 -0
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/es/es_client.py +53 -0
- tccli/services/es/v20180416/api.json +64 -1
- tccli/services/es/v20180416/examples.json +8 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +9 -9
- tccli/services/hunyuan/hunyuan_client.py +106 -0
- tccli/services/hunyuan/v20230901/api.json +236 -1
- tccli/services/hunyuan/v20230901/examples.json +16 -0
- tccli/services/ims/v20201229/api.json +1 -1
- tccli/services/iotexplorer/v20190423/api.json +2 -2
- tccli/services/iss/v20230517/api.json +18 -0
- tccli/services/iss/v20230517/examples.json +3 -3
- tccli/services/lke/v20231130/api.json +141 -2
- tccli/services/mariadb/mariadb_client.py +57 -4
- tccli/services/mariadb/v20170312/api.json +54 -0
- tccli/services/mariadb/v20170312/examples.json +8 -0
- tccli/services/oceanus/v20190422/api.json +10 -0
- tccli/services/ocr/v20181119/api.json +7 -7
- tccli/services/organization/organization_client.py +53 -0
- tccli/services/organization/v20210331/api.json +43 -0
- tccli/services/organization/v20210331/examples.json +8 -0
- tccli/services/postgres/v20170312/api.json +3 -0
- tccli/services/redis/v20180412/api.json +16 -16
- tccli/services/scf/v20180416/api.json +26 -16
- tccli/services/ses/v20201002/api.json +148 -11
- tccli/services/sms/v20190711/api.json +49 -49
- tccli/services/sms/v20190711/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +3 -3
- tccli/services/ssl/v20191205/examples.json +2 -2
- tccli/services/tdmq/v20200217/api.json +180 -93
- tccli/services/tdmq/v20200217/examples.json +8 -8
- tccli/services/tke/v20180525/api.json +14 -2
- tccli/services/tke/v20180525/examples.json +3 -3
- tccli/services/tms/tms_client.py +0 -53
- tccli/services/tms/v20201229/api.json +2 -46
- tccli/services/tms/v20201229/examples.json +0 -8
- tccli/services/tmt/v20180321/api.json +4 -4
- tccli/services/trocket/v20230308/api.json +62 -12
- tccli/services/vpc/v20170312/api.json +23 -0
- tccli/services/wedata/v20210820/api.json +1909 -175
- tccli/services/wedata/v20210820/examples.json +62 -0
- tccli/services/wedata/wedata_client.py +387 -16
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/RECORD +91 -87
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/license_files/LICENSE +0 -0
@@ -7,6 +7,13 @@
|
|
7
7
|
"output": "CloseAsyncRecognitionTaskResponse",
|
8
8
|
"status": "online"
|
9
9
|
},
|
10
|
+
"CreateAsrKeyWordLib": {
|
11
|
+
"document": "用户通过本接口进行关键字词表的创建。\n<br>• 默认每个用户最多可创建30个关键字词表。\n<br>• 每个关键词词表最多可添加100个词,每个词最多5个汉字或15个字符。\n<br>• 词表通过本地文件形式上传。\n<br>• 本地文件必须为UTF-8编码格式,每行仅添加一个词且不能包含标点和特殊字符。",
|
12
|
+
"input": "CreateAsrKeyWordLibRequest",
|
13
|
+
"name": "创建关键词表",
|
14
|
+
"output": "CreateAsrKeyWordLibResponse",
|
15
|
+
"status": "online"
|
16
|
+
},
|
10
17
|
"CreateAsrVocab": {
|
11
18
|
"document": "用户通过本接口进行热词表的创建。\n<br>• 默认最多可创建30个热词表。\n<br>• 每个热词表最多可添加1000个词,每个词最长10个汉字或30个英文字符,不能超出限制。\n<br>• 热词表可以通过数组或者本地文件形式上传。\n<br>• 本地文件必须为UTF-8编码格式,每行仅添加一个热词且不能包含标点和特殊字符。\n<br>• 热词权重取值范围为[1,11]之间的整数或者100,权重越大代表该词被识别出来的概率越大。\n<br>• 注意: 热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。",
|
12
19
|
"input": "CreateAsrVocabRequest",
|
@@ -35,6 +42,13 @@
|
|
35
42
|
"output": "CreateRecTaskResponse",
|
36
43
|
"status": "online"
|
37
44
|
},
|
45
|
+
"DeleteAsrKeyWordLib": {
|
46
|
+
"document": "用户通过本接口进行关键词表的删除。",
|
47
|
+
"input": "DeleteAsrKeyWordLibRequest",
|
48
|
+
"name": "删除关键词表",
|
49
|
+
"output": "DeleteAsrKeyWordLibResponse",
|
50
|
+
"status": "online"
|
51
|
+
},
|
38
52
|
"DeleteAsrVocab": {
|
39
53
|
"document": "用户通过本接口进行热词表的删除。",
|
40
54
|
"input": "DeleteAsrVocabRequest",
|
@@ -77,6 +91,13 @@
|
|
77
91
|
"output": "DownloadCustomizationResponse",
|
78
92
|
"status": "online"
|
79
93
|
},
|
94
|
+
"GetAsrKeyWordLibList": {
|
95
|
+
"document": "用户通过该接口,可获得所有的关键词表及其信息。",
|
96
|
+
"input": "GetAsrKeyWordLibListRequest",
|
97
|
+
"name": "列举关键词表",
|
98
|
+
"output": "GetAsrKeyWordLibListResponse",
|
99
|
+
"status": "online"
|
100
|
+
},
|
80
101
|
"GetAsrVocab": {
|
81
102
|
"document": "用户根据词表的ID可以获取对应的热词表信息",
|
82
103
|
"input": "GetAsrVocabRequest",
|
@@ -133,6 +154,13 @@
|
|
133
154
|
"output": "SetVocabStateResponse",
|
134
155
|
"status": "online"
|
135
156
|
},
|
157
|
+
"UpdateAsrKeyWordLib": {
|
158
|
+
"document": "用户通过本接口进行对应的关键词表信息更新。",
|
159
|
+
"input": "UpdateAsrKeyWordLibRequest",
|
160
|
+
"name": "更新关键词表",
|
161
|
+
"output": "UpdateAsrKeyWordLibResponse",
|
162
|
+
"status": "online"
|
163
|
+
},
|
136
164
|
"UpdateAsrVocab": {
|
137
165
|
"document": "用户通过本接口进行对应的词表信息更新。",
|
138
166
|
"input": "UpdateAsrVocabRequest",
|
@@ -266,6 +294,52 @@
|
|
266
294
|
],
|
267
295
|
"type": "object"
|
268
296
|
},
|
297
|
+
"CreateAsrKeyWordLibRequest": {
|
298
|
+
"document": "CreateAsrKeyWordLib请求参数结构体",
|
299
|
+
"members": [
|
300
|
+
{
|
301
|
+
"disabled": false,
|
302
|
+
"document": "词表名称,长度在1-20之间\n仅限中英文数字-_",
|
303
|
+
"example": "测试词表",
|
304
|
+
"member": "string",
|
305
|
+
"name": "Name",
|
306
|
+
"required": true,
|
307
|
+
"type": "string"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"disabled": false,
|
311
|
+
"document": "词文件(纯文本文件)的二进制base64编码,以行分隔\n格式要求:TXT\n每行只有一个词,不满足格式则报错无法上传\n每个词限制**5个汉字,15个字符**,单个词库最多不超过100个词\n注意不要有空行,尤其是最后一行",
|
312
|
+
"example": "避风港(进行bas64编码)",
|
313
|
+
"member": "string",
|
314
|
+
"name": "KeyWordFile",
|
315
|
+
"required": false,
|
316
|
+
"type": "string"
|
317
|
+
}
|
318
|
+
],
|
319
|
+
"type": "object"
|
320
|
+
},
|
321
|
+
"CreateAsrKeyWordLibResponse": {
|
322
|
+
"document": "CreateAsrKeyWordLib返回参数结构体",
|
323
|
+
"members": [
|
324
|
+
{
|
325
|
+
"disabled": false,
|
326
|
+
"document": "词表ID数据",
|
327
|
+
"example": "空",
|
328
|
+
"member": "KeyWordLibIdData",
|
329
|
+
"name": "Data",
|
330
|
+
"output_required": true,
|
331
|
+
"type": "object",
|
332
|
+
"value_allowed_null": false
|
333
|
+
},
|
334
|
+
{
|
335
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
336
|
+
"member": "string",
|
337
|
+
"name": "RequestId",
|
338
|
+
"type": "string"
|
339
|
+
}
|
340
|
+
],
|
341
|
+
"type": "object"
|
342
|
+
},
|
269
343
|
"CreateAsrVocabRequest": {
|
270
344
|
"document": "CreateAsrVocab请求参数结构体",
|
271
345
|
"members": [
|
@@ -721,6 +795,15 @@
|
|
721
795
|
"name": "HotwordList",
|
722
796
|
"required": false,
|
723
797
|
"type": "string"
|
798
|
+
},
|
799
|
+
{
|
800
|
+
"disabled": false,
|
801
|
+
"document": "关键词识别ID列表,默认空为不进行识别,最多10个\n",
|
802
|
+
"example": "无",
|
803
|
+
"member": "string",
|
804
|
+
"name": "KeyWordLibIdList",
|
805
|
+
"required": false,
|
806
|
+
"type": "list"
|
724
807
|
}
|
725
808
|
],
|
726
809
|
"type": "object"
|
@@ -747,6 +830,33 @@
|
|
747
830
|
],
|
748
831
|
"type": "object"
|
749
832
|
},
|
833
|
+
"DeleteAsrKeyWordLibRequest": {
|
834
|
+
"document": "DeleteAsrKeyWordLib请求参数结构体",
|
835
|
+
"members": [
|
836
|
+
{
|
837
|
+
"disabled": false,
|
838
|
+
"document": "关键词表ID",
|
839
|
+
"example": "ed9d5b5a9fa14f4a86dc71360e6a3835",
|
840
|
+
"member": "string",
|
841
|
+
"name": "KeyWordLibId",
|
842
|
+
"required": true,
|
843
|
+
"type": "string"
|
844
|
+
}
|
845
|
+
],
|
846
|
+
"type": "object"
|
847
|
+
},
|
848
|
+
"DeleteAsrKeyWordLibResponse": {
|
849
|
+
"document": "DeleteAsrKeyWordLib返回参数结构体",
|
850
|
+
"members": [
|
851
|
+
{
|
852
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
853
|
+
"member": "string",
|
854
|
+
"name": "RequestId",
|
855
|
+
"type": "string"
|
856
|
+
}
|
857
|
+
],
|
858
|
+
"type": "object"
|
859
|
+
},
|
750
860
|
"DeleteAsrVocabRequest": {
|
751
861
|
"document": "DeleteAsrVocab请求参数结构体",
|
752
862
|
"members": [
|
@@ -948,6 +1058,70 @@
|
|
948
1058
|
],
|
949
1059
|
"type": "object"
|
950
1060
|
},
|
1061
|
+
"GetAsrKeyWordLibListRequest": {
|
1062
|
+
"document": "GetAsrKeyWordLibList请求参数结构体",
|
1063
|
+
"members": [
|
1064
|
+
{
|
1065
|
+
"disabled": false,
|
1066
|
+
"document": "分页Offset",
|
1067
|
+
"example": "无",
|
1068
|
+
"member": "uint64",
|
1069
|
+
"name": "Offset",
|
1070
|
+
"required": false,
|
1071
|
+
"type": "int"
|
1072
|
+
},
|
1073
|
+
{
|
1074
|
+
"disabled": false,
|
1075
|
+
"document": "分页Limit",
|
1076
|
+
"example": "无",
|
1077
|
+
"member": "uint64",
|
1078
|
+
"name": "Limit",
|
1079
|
+
"required": false,
|
1080
|
+
"type": "int"
|
1081
|
+
},
|
1082
|
+
{
|
1083
|
+
"disabled": false,
|
1084
|
+
"document": "词库名称或者UIN检索",
|
1085
|
+
"example": "无",
|
1086
|
+
"member": "string",
|
1087
|
+
"name": "SpecifyNames",
|
1088
|
+
"required": false,
|
1089
|
+
"type": "list"
|
1090
|
+
},
|
1091
|
+
{
|
1092
|
+
"disabled": false,
|
1093
|
+
"document": "只看用户自己创建的",
|
1094
|
+
"example": "无",
|
1095
|
+
"member": "bool",
|
1096
|
+
"name": "OnlySelf",
|
1097
|
+
"required": false,
|
1098
|
+
"type": "bool"
|
1099
|
+
}
|
1100
|
+
],
|
1101
|
+
"type": "object"
|
1102
|
+
},
|
1103
|
+
"GetAsrKeyWordLibListResponse": {
|
1104
|
+
"document": "GetAsrKeyWordLibList返回参数结构体",
|
1105
|
+
"members": [
|
1106
|
+
{
|
1107
|
+
"disabled": false,
|
1108
|
+
"document": "关键词列表返回数据",
|
1109
|
+
"example": "无",
|
1110
|
+
"member": "KeyWordLibListData",
|
1111
|
+
"name": "Data",
|
1112
|
+
"output_required": false,
|
1113
|
+
"type": "object",
|
1114
|
+
"value_allowed_null": false
|
1115
|
+
},
|
1116
|
+
{
|
1117
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1118
|
+
"member": "string",
|
1119
|
+
"name": "RequestId",
|
1120
|
+
"type": "string"
|
1121
|
+
}
|
1122
|
+
],
|
1123
|
+
"type": "object"
|
1124
|
+
},
|
951
1125
|
"GetAsrVocabListRequest": {
|
952
1126
|
"document": "GetAsrVocabList请求参数结构体",
|
953
1127
|
"members": [
|
@@ -1240,6 +1414,146 @@
|
|
1240
1414
|
],
|
1241
1415
|
"usage": "both"
|
1242
1416
|
},
|
1417
|
+
"KeyWordLib": {
|
1418
|
+
"document": "关键词表信息",
|
1419
|
+
"members": [
|
1420
|
+
{
|
1421
|
+
"disabled": false,
|
1422
|
+
"document": "关键词表ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
1423
|
+
"example": "aa6f402f263f12ea856fc81fbecfd0sd",
|
1424
|
+
"member": "string",
|
1425
|
+
"name": "KeyWordLibId",
|
1426
|
+
"output_required": false,
|
1427
|
+
"required": false,
|
1428
|
+
"type": "string",
|
1429
|
+
"value_allowed_null": true
|
1430
|
+
},
|
1431
|
+
{
|
1432
|
+
"disabled": false,
|
1433
|
+
"document": "关键词表名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
1434
|
+
"example": "测试词表",
|
1435
|
+
"member": "string",
|
1436
|
+
"name": "Name",
|
1437
|
+
"output_required": false,
|
1438
|
+
"required": false,
|
1439
|
+
"type": "string",
|
1440
|
+
"value_allowed_null": true
|
1441
|
+
},
|
1442
|
+
{
|
1443
|
+
"disabled": false,
|
1444
|
+
"document": "关键词列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
1445
|
+
"example": "[\"a\",\"b\"]",
|
1446
|
+
"member": "string",
|
1447
|
+
"name": "KeyWordList",
|
1448
|
+
"output_required": false,
|
1449
|
+
"required": false,
|
1450
|
+
"type": "list",
|
1451
|
+
"value_allowed_null": true
|
1452
|
+
},
|
1453
|
+
{
|
1454
|
+
"disabled": false,
|
1455
|
+
"document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
1456
|
+
"example": "无",
|
1457
|
+
"member": "datetime_iso",
|
1458
|
+
"name": "CreateTime",
|
1459
|
+
"output_required": false,
|
1460
|
+
"required": false,
|
1461
|
+
"type": "string",
|
1462
|
+
"value_allowed_null": true
|
1463
|
+
},
|
1464
|
+
{
|
1465
|
+
"disabled": false,
|
1466
|
+
"document": "更新时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
1467
|
+
"example": "无",
|
1468
|
+
"member": "datetime_iso",
|
1469
|
+
"name": "UpdateTime",
|
1470
|
+
"output_required": false,
|
1471
|
+
"required": false,
|
1472
|
+
"type": "string",
|
1473
|
+
"value_allowed_null": true
|
1474
|
+
}
|
1475
|
+
],
|
1476
|
+
"usage": "both"
|
1477
|
+
},
|
1478
|
+
"KeyWordLibIdData": {
|
1479
|
+
"document": "关键词ID",
|
1480
|
+
"members": [
|
1481
|
+
{
|
1482
|
+
"disabled": false,
|
1483
|
+
"document": "关键词ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
1484
|
+
"example": "无",
|
1485
|
+
"member": "string",
|
1486
|
+
"name": "KeyWordLibId",
|
1487
|
+
"output_required": false,
|
1488
|
+
"required": false,
|
1489
|
+
"type": "string",
|
1490
|
+
"value_allowed_null": true
|
1491
|
+
}
|
1492
|
+
],
|
1493
|
+
"usage": "both"
|
1494
|
+
},
|
1495
|
+
"KeyWordLibListData": {
|
1496
|
+
"document": "查询列表返回数据",
|
1497
|
+
"members": [
|
1498
|
+
{
|
1499
|
+
"disabled": false,
|
1500
|
+
"document": "关键词表列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
1501
|
+
"example": "无",
|
1502
|
+
"member": "KeyWordLib",
|
1503
|
+
"name": "KeyWordLibList",
|
1504
|
+
"output_required": true,
|
1505
|
+
"type": "list",
|
1506
|
+
"value_allowed_null": true
|
1507
|
+
},
|
1508
|
+
{
|
1509
|
+
"disabled": false,
|
1510
|
+
"document": "关键词列表总数\n注意:此字段可能返回 null,表示取不到有效值。",
|
1511
|
+
"example": "无",
|
1512
|
+
"member": "uint64",
|
1513
|
+
"name": "TotalCount",
|
1514
|
+
"output_required": true,
|
1515
|
+
"type": "int",
|
1516
|
+
"value_allowed_null": true
|
1517
|
+
}
|
1518
|
+
],
|
1519
|
+
"usage": "out"
|
1520
|
+
},
|
1521
|
+
"KeyWordResult": {
|
1522
|
+
"document": "关键字识别结果",
|
1523
|
+
"members": [
|
1524
|
+
{
|
1525
|
+
"disabled": false,
|
1526
|
+
"document": "关键词库ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
1527
|
+
"example": "abcdedfh",
|
1528
|
+
"member": "string",
|
1529
|
+
"name": "KeyWordLibID",
|
1530
|
+
"output_required": false,
|
1531
|
+
"type": "string",
|
1532
|
+
"value_allowed_null": true
|
1533
|
+
},
|
1534
|
+
{
|
1535
|
+
"disabled": false,
|
1536
|
+
"document": "关键词库名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
1537
|
+
"example": "测试词库",
|
1538
|
+
"member": "string",
|
1539
|
+
"name": "KeyWordLibName",
|
1540
|
+
"output_required": false,
|
1541
|
+
"type": "string",
|
1542
|
+
"value_allowed_null": true
|
1543
|
+
},
|
1544
|
+
{
|
1545
|
+
"disabled": false,
|
1546
|
+
"document": "匹配到的关键词\n注意:此字段可能返回 null,表示取不到有效值。",
|
1547
|
+
"example": "[\"冰淇淋\",\"月亮\",\"六便士\"]",
|
1548
|
+
"member": "string",
|
1549
|
+
"name": "KeyWords",
|
1550
|
+
"output_required": false,
|
1551
|
+
"type": "list",
|
1552
|
+
"value_allowed_null": true
|
1553
|
+
}
|
1554
|
+
],
|
1555
|
+
"usage": "out"
|
1556
|
+
},
|
1243
1557
|
"Model": {
|
1244
1558
|
"document": "[自学习模型信息](https://cloud.tencent.com/document/product/1093/90813#3.-.E8.BE.93.E5.87.BA.E5.8F.82.E6.95.B0)",
|
1245
1559
|
"members": [
|
@@ -1548,6 +1862,16 @@
|
|
1548
1862
|
"output_required": true,
|
1549
1863
|
"type": "list",
|
1550
1864
|
"value_allowed_null": true
|
1865
|
+
},
|
1866
|
+
{
|
1867
|
+
"disabled": false,
|
1868
|
+
"document": "关键词识别结果列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
1869
|
+
"example": "[ { \"KeyWordLibID\": \"abcdedfh\", \"KeyWordLibName\": \"测试词库\", \"KeyWords\": [\"冰淇淋\",\"月亮\",\"六便士\"] } ]",
|
1870
|
+
"member": "KeyWordResult",
|
1871
|
+
"name": "KeyWordResults",
|
1872
|
+
"output_required": false,
|
1873
|
+
"type": "list",
|
1874
|
+
"value_allowed_null": true
|
1551
1875
|
}
|
1552
1876
|
],
|
1553
1877
|
"usage": "out"
|
@@ -1991,6 +2315,61 @@
|
|
1991
2315
|
],
|
1992
2316
|
"usage": "out"
|
1993
2317
|
},
|
2318
|
+
"UpdateAsrKeyWordLibRequest": {
|
2319
|
+
"document": "UpdateAsrKeyWordLib请求参数结构体",
|
2320
|
+
"members": [
|
2321
|
+
{
|
2322
|
+
"disabled": false,
|
2323
|
+
"document": "关键词表ID",
|
2324
|
+
"example": "aa6f402f263f12ea856fc81fbecfd0sd",
|
2325
|
+
"member": "string",
|
2326
|
+
"name": "KeyWordLibId",
|
2327
|
+
"required": true,
|
2328
|
+
"type": "string"
|
2329
|
+
},
|
2330
|
+
{
|
2331
|
+
"disabled": false,
|
2332
|
+
"document": "词表名称,长度在1-20之间\n仅限中英文数字-_",
|
2333
|
+
"example": "新的词表名称",
|
2334
|
+
"member": "string",
|
2335
|
+
"name": "Name",
|
2336
|
+
"required": false,
|
2337
|
+
"type": "string"
|
2338
|
+
},
|
2339
|
+
{
|
2340
|
+
"disabled": false,
|
2341
|
+
"document": "- 词文件(纯文本文件)以行分隔 ,进行二进制base64编码\n- 格式要求:TXT 每行只有一个词,不满足格式则报错无法上传 \n- 每个词最多5个汉字或15个字符,单个词库最多不超过100个词\n- 此参数为空则只更新词表名称",
|
2342
|
+
"example": "无",
|
2343
|
+
"member": "string",
|
2344
|
+
"name": "KeyWordFile",
|
2345
|
+
"required": false,
|
2346
|
+
"type": "string"
|
2347
|
+
}
|
2348
|
+
],
|
2349
|
+
"type": "object"
|
2350
|
+
},
|
2351
|
+
"UpdateAsrKeyWordLibResponse": {
|
2352
|
+
"document": "UpdateAsrKeyWordLib返回参数结构体",
|
2353
|
+
"members": [
|
2354
|
+
{
|
2355
|
+
"disabled": false,
|
2356
|
+
"document": "关键词表ID数据",
|
2357
|
+
"example": "无",
|
2358
|
+
"member": "KeyWordLibIdData",
|
2359
|
+
"name": "Data",
|
2360
|
+
"output_required": true,
|
2361
|
+
"type": "object",
|
2362
|
+
"value_allowed_null": false
|
2363
|
+
},
|
2364
|
+
{
|
2365
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2366
|
+
"member": "string",
|
2367
|
+
"name": "RequestId",
|
2368
|
+
"type": "string"
|
2369
|
+
}
|
2370
|
+
],
|
2371
|
+
"type": "object"
|
2372
|
+
},
|
1994
2373
|
"UpdateAsrVocabRequest": {
|
1995
2374
|
"document": "UpdateAsrVocab请求参数结构体",
|
1996
2375
|
"members": [
|
@@ -8,6 +8,14 @@
|
|
8
8
|
"title": "语音流异步识别任务关闭"
|
9
9
|
}
|
10
10
|
],
|
11
|
+
"CreateAsrKeyWordLib": [
|
12
|
+
{
|
13
|
+
"document": "用户通过上传文件方式创建关键词表",
|
14
|
+
"input": "https://asr.tencentcloudapi.com/?Action=CreateAsrKeyWordLib\n&Name=词表名称& KeyWordFile=<文件base64>\n&<公共请求参数>",
|
15
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"KeyWordLibId\": \"aa6f402f263f12ea856fc81fbecfd0sd\"\n },\n \"RequestId\": \"b3808ad3-d8dd-4b65-96c9-7d6f1f81b6b6\"\n }\n}",
|
16
|
+
"title": "创建关键词表"
|
17
|
+
}
|
18
|
+
],
|
11
19
|
"CreateAsrVocab": [
|
12
20
|
{
|
13
21
|
"document": "用户通过上传词权重数组方式创建热词表",
|
@@ -46,6 +54,14 @@
|
|
46
54
|
"title": "通过音频数据来调用接口"
|
47
55
|
}
|
48
56
|
],
|
57
|
+
"DeleteAsrKeyWordLib": [
|
58
|
+
{
|
59
|
+
"document": "用户通过该API,传入词表ID,可以删除对应的关键词表",
|
60
|
+
"input": "https://asr.tencentcloudapi.com/?Action=DeleteAsrKeyWordLib\n&KeyWordLibId=aa6f402f263f12ea856fc81fbecfd0sd\n&<公共请求参数>",
|
61
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"7eccebcb-2d60-4cee-8fa8-7f8001a71ab2\"\n }\n}",
|
62
|
+
"title": "删除关键词表"
|
63
|
+
}
|
64
|
+
],
|
49
65
|
"DeleteAsrVocab": [
|
50
66
|
{
|
51
67
|
"document": "用户通过该API,传入热词表ID,可以删除对应的热词表",
|
@@ -112,6 +128,14 @@
|
|
112
128
|
"title": "下载自学习模型"
|
113
129
|
}
|
114
130
|
],
|
131
|
+
"GetAsrKeyWordLibList": [
|
132
|
+
{
|
133
|
+
"document": "用户通过该接口,可获得所有的关键词表及其信息。",
|
134
|
+
"input": "https://asr.tencentcloudapi.com/?Action=GetAsrKeyWordLibList\n&<公共请求参数>",
|
135
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"KeyWordLibList\": [\n {\n \"KeyWordLibId\": \"aa6f402f263f12ea856fc81fbecfd0sd\",\n \"Name\": \"示例词表\",\n \"KeyWordList\": [\n \"避风港\"\n ],\n \"CreateTime\": \"2024-08-24T13:28:48+00:00\",\n \"UpdateTime\": \"2024-08-24T13:28:48+00:00\"\n }\n ],\n \"TotalCount\": 1\n },\n \"RequestId\": \"b3808ad3-d8dd-4b65-96c9-7d6f1f81b6b6\"\n }\n}",
|
136
|
+
"title": "列举关键词表"
|
137
|
+
}
|
138
|
+
],
|
115
139
|
"GetAsrVocab": [
|
116
140
|
{
|
117
141
|
"document": "用户通过热词表ID获取热词表内容",
|
@@ -182,6 +206,14 @@
|
|
182
206
|
"title": "设置热词表状态"
|
183
207
|
}
|
184
208
|
],
|
209
|
+
"UpdateAsrKeyWordLib": [
|
210
|
+
{
|
211
|
+
"document": "用户通过该API传入已经创建的关键词表ID,可以更新其相应的内容",
|
212
|
+
"input": "https://asr.tencentcloudapi.com/?Action=UpdateAsrKeyWordLibId\n&KeyWordLibId=aa6f402f263f12ea856fc81fbecfd0sd\n&Name=新的词表名称\n&<公共请求参数>",
|
213
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"KeyWordLibId\": \"aa6f402f263f12ea856fc81fbecfd0sd\"\n },\n \"RequestId\": \"3290cfb2-91a7-4989-91de-d1d624a77c12\"\n }\n}",
|
214
|
+
"title": "更新关键词表"
|
215
|
+
}
|
216
|
+
],
|
185
217
|
"UpdateAsrVocab": [
|
186
218
|
{
|
187
219
|
"document": "用户通过该API传入已经创建的热词表ID,可以更新其相应的内容",
|
@@ -6199,7 +6199,7 @@
|
|
6199
6199
|
},
|
6200
6200
|
{
|
6201
6201
|
"disabled": false,
|
6202
|
-
"document": "是否用作公网网关。公网网关只有在实例拥有公网IP以及处于私有网络下时才能正常使用。取值范围:<
|
6202
|
+
"document": "是否用作公网网关。公网网关只有在实例拥有公网IP以及处于私有网络下时才能正常使用。取值范围:<li>true:表示用作公网网关</li><li>false:表示不作为公网网关</li>默认取值:false。",
|
6203
6203
|
"example": "false",
|
6204
6204
|
"member": "bool",
|
6205
6205
|
"name": "AsVpcGateway",
|
@@ -1732,6 +1732,16 @@
|
|
1732
1732
|
"output_required": false,
|
1733
1733
|
"type": "string",
|
1734
1734
|
"value_allowed_null": true
|
1735
|
+
},
|
1736
|
+
{
|
1737
|
+
"disabled": false,
|
1738
|
+
"document": "数据源名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
1739
|
+
"example": "无",
|
1740
|
+
"member": "string",
|
1741
|
+
"name": "DbTypeName",
|
1742
|
+
"output_required": false,
|
1743
|
+
"type": "string",
|
1744
|
+
"value_allowed_null": true
|
1735
1745
|
}
|
1736
1746
|
],
|
1737
1747
|
"usage": "out"
|
tccli/services/cdb/cdb_client.py
CHANGED
@@ -641,6 +641,58 @@ def doDescribeTimeWindow(args, parsed_globals):
|
|
641
641
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
642
|
|
643
643
|
|
644
|
+
def doDescribeInstanceUpgradeCheckJob(args, parsed_globals):
|
645
|
+
g_param = parse_global_arg(parsed_globals)
|
646
|
+
|
647
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
648
|
+
cred = credential.CVMRoleCredential()
|
649
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
650
|
+
cred = credential.STSAssumeRoleCredential(
|
651
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
652
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
653
|
+
)
|
654
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
655
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
656
|
+
else:
|
657
|
+
cred = credential.Credential(
|
658
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
659
|
+
)
|
660
|
+
http_profile = HttpProfile(
|
661
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
662
|
+
reqMethod="POST",
|
663
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
664
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
665
|
+
)
|
666
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
667
|
+
if g_param[OptionsDefine.Language]:
|
668
|
+
profile.language = g_param[OptionsDefine.Language]
|
669
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
670
|
+
client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
|
671
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
672
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
673
|
+
model = models.DescribeInstanceUpgradeCheckJobRequest()
|
674
|
+
model.from_json_string(json.dumps(args))
|
675
|
+
start_time = time.time()
|
676
|
+
while True:
|
677
|
+
rsp = client.DescribeInstanceUpgradeCheckJob(model)
|
678
|
+
result = rsp.to_json_string()
|
679
|
+
try:
|
680
|
+
json_obj = json.loads(result)
|
681
|
+
except TypeError as e:
|
682
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
683
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
684
|
+
break
|
685
|
+
cur_time = time.time()
|
686
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
687
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
688
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
689
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
690
|
+
else:
|
691
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
692
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
693
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
|
+
|
695
|
+
|
644
696
|
def doDescribeBackupOverview(args, parsed_globals):
|
645
697
|
g_param = parse_global_arg(parsed_globals)
|
646
698
|
|
@@ -6621,6 +6673,58 @@ def doModifyAuditRuleTemplates(args, parsed_globals):
|
|
6621
6673
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6622
6674
|
|
6623
6675
|
|
6676
|
+
def doSubmitInstanceUpgradeCheckJob(args, parsed_globals):
|
6677
|
+
g_param = parse_global_arg(parsed_globals)
|
6678
|
+
|
6679
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6680
|
+
cred = credential.CVMRoleCredential()
|
6681
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6682
|
+
cred = credential.STSAssumeRoleCredential(
|
6683
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6684
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6685
|
+
)
|
6686
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
6687
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6688
|
+
else:
|
6689
|
+
cred = credential.Credential(
|
6690
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6691
|
+
)
|
6692
|
+
http_profile = HttpProfile(
|
6693
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6694
|
+
reqMethod="POST",
|
6695
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6696
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6697
|
+
)
|
6698
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6699
|
+
if g_param[OptionsDefine.Language]:
|
6700
|
+
profile.language = g_param[OptionsDefine.Language]
|
6701
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6702
|
+
client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
|
6703
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6704
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6705
|
+
model = models.SubmitInstanceUpgradeCheckJobRequest()
|
6706
|
+
model.from_json_string(json.dumps(args))
|
6707
|
+
start_time = time.time()
|
6708
|
+
while True:
|
6709
|
+
rsp = client.SubmitInstanceUpgradeCheckJob(model)
|
6710
|
+
result = rsp.to_json_string()
|
6711
|
+
try:
|
6712
|
+
json_obj = json.loads(result)
|
6713
|
+
except TypeError as e:
|
6714
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6715
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6716
|
+
break
|
6717
|
+
cur_time = time.time()
|
6718
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6719
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6720
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6721
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6722
|
+
else:
|
6723
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6724
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6725
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6726
|
+
|
6727
|
+
|
6624
6728
|
def doDeleteRotationPassword(args, parsed_globals):
|
6625
6729
|
g_param = parse_global_arg(parsed_globals)
|
6626
6730
|
|
@@ -8776,6 +8880,7 @@ ACTION_MAP = {
|
|
8776
8880
|
"DescribeAccounts": doDescribeAccounts,
|
8777
8881
|
"ModifyInstanceTag": doModifyInstanceTag,
|
8778
8882
|
"DescribeTimeWindow": doDescribeTimeWindow,
|
8883
|
+
"DescribeInstanceUpgradeCheckJob": doDescribeInstanceUpgradeCheckJob,
|
8779
8884
|
"DescribeBackupOverview": doDescribeBackupOverview,
|
8780
8885
|
"StopReplication": doStopReplication,
|
8781
8886
|
"ModifyDBInstanceLogToCLS": doModifyDBInstanceLogToCLS,
|
@@ -8891,6 +8996,7 @@ ACTION_MAP = {
|
|
8891
8996
|
"DescribeBackupDownloadRestriction": doDescribeBackupDownloadRestriction,
|
8892
8997
|
"ResetRootAccount": doResetRootAccount,
|
8893
8998
|
"ModifyAuditRuleTemplates": doModifyAuditRuleTemplates,
|
8999
|
+
"SubmitInstanceUpgradeCheckJob": doSubmitInstanceUpgradeCheckJob,
|
8894
9000
|
"DeleteRotationPassword": doDeleteRotationPassword,
|
8895
9001
|
"ModifyAccountPassword": doModifyAccountPassword,
|
8896
9002
|
"DescribeInstanceAlarmEvents": doDescribeInstanceAlarmEvents,
|