tccli 3.0.1215.1__py2.py3-none-any.whl → 3.0.1217.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (282) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/argparser.py +1 -1
  3. tccli/command.py +2 -2
  4. tccli/configure.py +46 -1
  5. tccli/credentials.py +25 -0
  6. tccli/main.py +6 -2
  7. tccli/plugins/sso/__init__.py +61 -0
  8. tccli/plugins/sso/configs.py +4 -0
  9. tccli/plugins/sso/configure.py +45 -0
  10. tccli/plugins/sso/login.py +144 -0
  11. tccli/plugins/sso/logout.py +21 -0
  12. tccli/plugins/sso/terminal.py +161 -0
  13. tccli/plugins/sso/texts.py +40 -0
  14. tccli/services/__init__.py +6 -3
  15. tccli/services/acp/v20220105/api.json +7 -7
  16. tccli/services/acp/v20220105/examples.json +2 -2
  17. tccli/services/aiart/v20221229/api.json +29 -29
  18. tccli/services/aiart/v20221229/examples.json +8 -8
  19. tccli/services/apigateway/v20180808/api.json +18 -17
  20. tccli/services/apigateway/v20180808/examples.json +12 -12
  21. tccli/services/apm/v20210622/api.json +118 -4
  22. tccli/services/asr/v20190614/api.json +21 -20
  23. tccli/services/asr/v20190614/examples.json +13 -13
  24. tccli/services/autoscaling/v20180419/api.json +371 -309
  25. tccli/services/autoscaling/v20180419/examples.json +17 -17
  26. tccli/services/batch/v20170312/api.json +7 -7
  27. tccli/services/bda/v20200324/api.json +39 -31
  28. tccli/services/bda/v20200324/examples.json +9 -9
  29. tccli/services/bh/__init__.py +4 -0
  30. tccli/services/bh/bh_client.py +3428 -0
  31. tccli/services/bh/v20230418/api.json +8180 -0
  32. tccli/services/bh/v20230418/examples.json +519 -0
  33. tccli/services/bi/v20220105/api.json +80 -4
  34. tccli/services/bi/v20220105/examples.json +1 -1
  35. tccli/services/billing/billing_client.py +53 -0
  36. tccli/services/billing/v20180709/api.json +330 -24
  37. tccli/services/billing/v20180709/examples.json +8 -0
  38. tccli/services/bsca/v20210811/api.json +223 -18
  39. tccli/services/bsca/v20210811/examples.json +4 -4
  40. tccli/services/btoe/v20210514/api.json +4 -4
  41. tccli/services/btoe/v20210514/examples.json +2 -2
  42. tccli/services/ca/v20230228/api.json +60 -0
  43. tccli/services/cam/v20190116/api.json +11 -11
  44. tccli/services/cat/v20180409/api.json +9 -0
  45. tccli/services/cbs/v20170312/api.json +200 -188
  46. tccli/services/cbs/v20170312/examples.json +4 -4
  47. tccli/services/ccc/ccc_client.py +53 -0
  48. tccli/services/ccc/v20200210/api.json +541 -325
  49. tccli/services/ccc/v20200210/examples.json +26 -18
  50. tccli/services/cdb/cdb_client.py +13 -13
  51. tccli/services/cdb/v20170320/api.json +308 -274
  52. tccli/services/cdb/v20170320/examples.json +38 -38
  53. tccli/services/cdc/v20201214/api.json +283 -270
  54. tccli/services/cdc/v20201214/examples.json +26 -26
  55. tccli/services/cdn/v20180606/api.json +5 -3
  56. tccli/services/cds/v20180420/api.json +82 -76
  57. tccli/services/cds/v20180420/examples.json +1 -1
  58. tccli/services/cdwch/v20200915/api.json +1 -1
  59. tccli/services/cdwdoris/v20211228/api.json +54 -4
  60. tccli/services/cdz/v20221123/api.json +41 -5
  61. tccli/services/cfg/v20210820/api.json +31 -0
  62. tccli/services/cfs/v20190719/api.json +89 -1
  63. tccli/services/cfs/v20190719/examples.json +1 -1
  64. tccli/services/cfw/cfw_client.py +0 -53
  65. tccli/services/cfw/v20190904/api.json +1895 -2011
  66. tccli/services/cfw/v20190904/examples.json +175 -171
  67. tccli/services/ciam/v20220331/api.json +316 -315
  68. tccli/services/ciam/v20220331/examples.json +49 -49
  69. tccli/services/ckafka/v20190819/api.json +104 -75
  70. tccli/services/clb/v20180317/api.json +48 -26
  71. tccli/services/clb/v20180317/examples.json +1 -1
  72. tccli/services/cloudapp/v20220530/api.json +5 -1
  73. tccli/services/cloudaudit/cloudaudit_client.py +30 -30
  74. tccli/services/cloudaudit/v20190319/api.json +254 -211
  75. tccli/services/cloudaudit/v20190319/examples.json +19 -19
  76. tccli/services/cloudstudio/v20230508/api.json +38 -37
  77. tccli/services/cloudstudio/v20230508/examples.json +4 -4
  78. tccli/services/cls/cls_client.py +216 -4
  79. tccli/services/cls/v20201016/api.json +935 -147
  80. tccli/services/cls/v20201016/examples.json +43 -5
  81. tccli/services/csip/v20221121/api.json +2566 -2386
  82. tccli/services/csip/v20221121/examples.json +108 -108
  83. tccli/services/cvm/v20170312/api.json +191 -112
  84. tccli/services/cvm/v20170312/examples.json +2 -2
  85. tccli/services/cwp/cwp_client.py +4 -110
  86. tccli/services/cwp/v20180228/api.json +6498 -6252
  87. tccli/services/cwp/v20180228/examples.json +372 -412
  88. tccli/services/cynosdb/v20190107/api.json +170 -110
  89. tccli/services/cynosdb/v20190107/examples.json +91 -91
  90. tccli/services/dasb/v20191018/api.json +859 -637
  91. tccli/services/dasb/v20191018/examples.json +101 -101
  92. tccli/services/dcdb/dcdb_client.py +114 -61
  93. tccli/services/dcdb/v20180411/api.json +141 -7
  94. tccli/services/dcdb/v20180411/examples.json +32 -0
  95. tccli/services/dlc/v20210125/api.json +21 -11
  96. tccli/services/dnspod/dnspod_client.py +417 -46
  97. tccli/services/dnspod/v20210323/api.json +751 -30
  98. tccli/services/dnspod/v20210323/examples.json +62 -0
  99. tccli/services/domain/v20180808/api.json +3 -3
  100. tccli/services/domain/v20180808/examples.json +3 -3
  101. tccli/services/dts/v20211206/api.json +4 -4
  102. tccli/services/eb/v20210416/api.json +15 -15
  103. tccli/services/eb/v20210416/examples.json +1 -1
  104. tccli/services/ecm/v20190719/api.json +2 -2
  105. tccli/services/emr/v20190103/api.json +339 -114
  106. tccli/services/emr/v20190103/examples.json +64 -82
  107. tccli/services/es/es_client.py +249 -37
  108. tccli/services/es/v20180416/api.json +550 -0
  109. tccli/services/es/v20180416/examples.json +33 -1
  110. tccli/services/ess/ess_client.py +53 -0
  111. tccli/services/ess/v20201111/api.json +192 -38
  112. tccli/services/ess/v20201111/examples.json +35 -9
  113. tccli/services/essbasic/essbasic_client.py +106 -0
  114. tccli/services/essbasic/v20210526/api.json +287 -60
  115. tccli/services/essbasic/v20210526/examples.json +58 -18
  116. tccli/services/facefusion/v20181201/api.json +47 -45
  117. tccli/services/facefusion/v20181201/examples.json +2 -2
  118. tccli/services/facefusion/v20220927/api.json +54 -48
  119. tccli/services/facefusion/v20220927/examples.json +5 -5
  120. tccli/services/faceid/v20180301/api.json +497 -496
  121. tccli/services/faceid/v20180301/examples.json +219 -101
  122. tccli/services/fmu/v20191213/api.json +59 -67
  123. tccli/services/fmu/v20191213/examples.json +22 -22
  124. tccli/services/ft/v20200304/api.json +53 -57
  125. tccli/services/ft/v20200304/examples.json +14 -14
  126. tccli/services/gaap/v20180529/api.json +44 -26
  127. tccli/services/gaap/v20180529/examples.json +24 -30
  128. tccli/services/gme/v20180711/api.json +21 -11
  129. tccli/services/gme/v20180711/examples.json +1 -1
  130. tccli/services/hai/v20230812/api.json +116 -9
  131. tccli/services/hai/v20230812/examples.json +4 -4
  132. tccli/services/hunyuan/hunyuan_client.py +436 -12
  133. tccli/services/hunyuan/v20230901/api.json +1482 -118
  134. tccli/services/hunyuan/v20230901/examples.json +82 -18
  135. tccli/services/iai/v20180301/api.json +23 -19
  136. tccli/services/iai/v20180301/examples.json +2 -2
  137. tccli/services/iai/v20200303/api.json +530 -511
  138. tccli/services/iai/v20200303/examples.json +116 -86
  139. tccli/services/ig/__init__.py +4 -0
  140. tccli/services/ig/ig_client.py +195 -0
  141. tccli/services/ig/v20210518/api.json +83 -0
  142. tccli/services/ig/v20210518/examples.json +13 -0
  143. tccli/services/ioa/ioa_client.py +53 -0
  144. tccli/services/ioa/v20220601/api.json +662 -413
  145. tccli/services/ioa/v20220601/examples.json +24 -10
  146. tccli/services/iotexplorer/v20190423/api.json +73 -13
  147. tccli/services/iotexplorer/v20190423/examples.json +3 -3
  148. tccli/services/iotvideo/iotvideo_client.py +106 -0
  149. tccli/services/iotvideo/v20191126/api.json +256 -24
  150. tccli/services/iotvideo/v20191126/examples.json +19 -3
  151. tccli/services/iotvideo/v20201215/api.json +1 -1
  152. tccli/services/iotvideo/v20201215/examples.json +1 -1
  153. tccli/services/iotvideo/v20211125/api.json +1 -1
  154. tccli/services/iotvideo/v20211125/examples.json +2 -2
  155. tccli/services/iss/iss_client.py +69 -122
  156. tccli/services/iss/v20230517/api.json +10 -54
  157. tccli/services/iss/v20230517/examples.json +0 -14
  158. tccli/services/kms/v20190118/api.json +301 -268
  159. tccli/services/kms/v20190118/examples.json +45 -51
  160. tccli/services/lcic/lcic_client.py +159 -0
  161. tccli/services/lcic/v20220817/api.json +273 -1
  162. tccli/services/lcic/v20220817/examples.json +24 -0
  163. tccli/services/lighthouse/v20200324/api.json +56 -0
  164. tccli/services/live/live_client.py +159 -0
  165. tccli/services/live/v20180801/api.json +279 -9
  166. tccli/services/live/v20180801/examples.json +24 -0
  167. tccli/services/lke/v20231130/api.json +17 -17
  168. tccli/services/lke/v20231130/examples.json +19 -25
  169. tccli/services/mariadb/v20170312/api.json +7 -7
  170. tccli/services/market/v20191010/api.json +3 -3
  171. tccli/services/market/v20191010/examples.json +2 -2
  172. tccli/services/mmps/v20200710/api.json +47 -47
  173. tccli/services/mmps/v20200710/examples.json +3 -3
  174. tccli/services/mongodb/v20190725/api.json +10 -12
  175. tccli/services/monitor/v20180724/api.json +46 -19
  176. tccli/services/mps/v20190612/api.json +282 -5
  177. tccli/services/mps/v20190612/examples.json +25 -1
  178. tccli/services/mqtt/v20240516/api.json +2 -2
  179. tccli/services/mrs/v20200910/api.json +72 -34
  180. tccli/services/mrs/v20200910/examples.json +2 -2
  181. tccli/services/ms/v20180408/api.json +535 -506
  182. tccli/services/ms/v20180408/examples.json +25 -25
  183. tccli/services/oceanus/v20190422/api.json +130 -0
  184. tccli/services/ocr/ocr_client.py +232 -20
  185. tccli/services/ocr/v20181119/api.json +2263 -758
  186. tccli/services/ocr/v20181119/examples.json +200 -180
  187. tccli/services/omics/v20221128/api.json +614 -553
  188. tccli/services/omics/v20221128/examples.json +9 -9
  189. tccli/services/organization/organization_client.py +352 -34
  190. tccli/services/organization/v20210331/api.json +464 -4
  191. tccli/services/organization/v20210331/examples.json +49 -1
  192. tccli/services/partners/v20180321/api.json +244 -234
  193. tccli/services/partners/v20180321/examples.json +19 -19
  194. tccli/services/privatedns/privatedns_client.py +428 -4
  195. tccli/services/privatedns/v20201028/api.json +815 -11
  196. tccli/services/privatedns/v20201028/examples.json +64 -0
  197. tccli/services/pts/v20210728/api.json +18 -0
  198. tccli/services/pts/v20210728/examples.json +1 -1
  199. tccli/services/rce/rce_client.py +53 -0
  200. tccli/services/rce/v20201103/api.json +146 -0
  201. tccli/services/rce/v20201103/examples.json +8 -0
  202. tccli/services/redis/v20180412/api.json +42 -42
  203. tccli/services/redis/v20180412/examples.json +19 -19
  204. tccli/services/region/v20220627/api.json +1 -1
  205. tccli/services/rum/v20210622/api.json +9 -0
  206. tccli/services/scf/scf_client.py +269 -4
  207. tccli/services/scf/v20180416/api.json +569 -15
  208. tccli/services/scf/v20180416/examples.json +47 -1
  209. tccli/services/smop/v20201203/api.json +46 -42
  210. tccli/services/smop/v20201203/examples.json +2 -2
  211. tccli/services/soe/v20180724/api.json +10 -10
  212. tccli/services/sqlserver/v20180328/api.json +21 -8
  213. tccli/services/sqlserver/v20180328/examples.json +5 -5
  214. tccli/services/ssl/v20191205/api.json +98 -5
  215. tccli/services/ssm/v20190923/api.json +292 -231
  216. tccli/services/ssm/v20190923/examples.json +42 -42
  217. tccli/services/tat/v20201028/api.json +124 -122
  218. tccli/services/tat/v20201028/examples.json +24 -30
  219. tccli/services/tchd/v20230306/api.json +5 -5
  220. tccli/services/tchd/v20230306/examples.json +3 -3
  221. tccli/services/tcr/v20190924/api.json +1 -1
  222. tccli/services/tcr/v20190924/examples.json +1 -1
  223. tccli/services/tcss/v20201101/api.json +1984 -1437
  224. tccli/services/tcss/v20201101/examples.json +350 -368
  225. tccli/services/tdmq/v20200217/api.json +603 -464
  226. tccli/services/tdmq/v20200217/examples.json +105 -105
  227. tccli/services/tds/v20220801/api.json +4 -4
  228. tccli/services/tem/v20210701/api.json +429 -372
  229. tccli/services/tem/v20210701/examples.json +85 -85
  230. tccli/services/teo/teo_client.py +277 -12
  231. tccli/services/teo/v20220901/api.json +1029 -124
  232. tccli/services/teo/v20220901/examples.json +84 -8
  233. tccli/services/thpc/v20230321/api.json +5 -5
  234. tccli/services/tke/tke_client.py +270 -58
  235. tccli/services/tke/v20180525/api.json +79 -27
  236. tccli/services/tke/v20180525/examples.json +9 -1
  237. tccli/services/tke/v20220501/api.json +176 -0
  238. tccli/services/tke/v20220501/examples.json +24 -0
  239. tccli/services/tms/tms_client.py +4 -57
  240. tccli/services/tms/v20201229/api.json +0 -354
  241. tccli/services/tms/v20201229/examples.json +0 -8
  242. tccli/services/tmt/v20180321/api.json +38 -8
  243. tccli/services/trp/v20210515/api.json +86 -74
  244. tccli/services/trp/v20210515/examples.json +65 -65
  245. tccli/services/trro/v20220325/api.json +72 -71
  246. tccli/services/trro/v20220325/examples.json +8 -8
  247. tccli/services/trtc/trtc_client.py +8 -61
  248. tccli/services/trtc/v20190722/api.json +293 -52
  249. tccli/services/trtc/v20190722/examples.json +3 -11
  250. tccli/services/tse/tse_client.py +110 -4
  251. tccli/services/tse/v20201207/api.json +122 -7
  252. tccli/services/tse/v20201207/examples.json +25 -9
  253. tccli/services/vclm/v20240523/api.json +225 -82
  254. tccli/services/vclm/v20240523/examples.json +13 -19
  255. tccli/services/vod/v20180717/api.json +431 -4
  256. tccli/services/vod/v20180717/examples.json +25 -5
  257. tccli/services/vod/v20240718/api.json +11 -11
  258. tccli/services/vod/v20240718/examples.json +4 -4
  259. tccli/services/vod/vod_client.py +53 -0
  260. tccli/services/vpc/v20170312/api.json +1195 -892
  261. tccli/services/vpc/v20170312/examples.json +84 -68
  262. tccli/services/vpc/vpc_client.py +168 -62
  263. tccli/services/waf/v20180125/api.json +2611 -2187
  264. tccli/services/waf/v20180125/examples.json +224 -284
  265. tccli/services/waf/waf_client.py +225 -119
  266. tccli/services/wav/v20210129/api.json +48 -48
  267. tccli/services/wav/v20210129/examples.json +4 -4
  268. tccli/services/wedata/v20210820/api.json +1595 -25
  269. tccli/services/wedata/v20210820/examples.json +44 -4
  270. tccli/services/wedata/wedata_client.py +265 -0
  271. tccli/services/weilingwith/v20230427/api.json +6 -6
  272. tccli/services/weilingwith/v20230427/examples.json +3 -3
  273. tccli/sso.py +229 -0
  274. {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/METADATA +6 -2
  275. {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/RECORD +278 -265
  276. tccli/services/cr/__init__.py +0 -4
  277. tccli/services/cr/cr_client.py +0 -1626
  278. tccli/services/cr/v20180321/api.json +0 -2829
  279. tccli/services/cr/v20180321/examples.json +0 -235
  280. {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/WHEEL +0 -0
  281. {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/entry_points.txt +0 -0
  282. {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,12 +1,5 @@
1
1
  {
2
2
  "actions": {
3
- "ModerateText": {
4
- "document": "天御文本内容安全定制标签文本审核接口为定制接口,会按照客户定制标签输出审核结果,如需使用请联系商务经理或[在线客服](https://cloud.tencent.com/online-service?from=doc_1125)咨询。",
5
- "input": "ModerateTextRequest",
6
- "name": "客户定制标签文本审核",
7
- "output": "ModerateTextResponse",
8
- "status": "online"
9
- },
10
3
  "TextModeration": {
11
4
  "document": "本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。\n\n### 接口使用说明\n- 前往“[内容安全控制台-文本内容安全](https://console.cloud.tencent.com/cms)”开启使用文本内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**3000条**文本识别额度,有效期为15天。\n- 该接口为收费接口,计费方式敬请参见 [腾讯云文本内容安全定价](https://cloud.tencent.com/product/tms/pricing)。\n\n### 接口功能说明:\n- 支持对文本文件进行检测,通过深度学习技术,识别可能令人反感、不安全或不适宜的违规文本内容;\n- 支持识别多种违规场景,包括:低俗、谩骂、色情、广告等场景;\n- 支持根据不同的业务场景配置自定义的审核策略,可在控制台文本内容安全-策略管理中配置;\n- 支持用户自定义配置词库黑白名单,打击自定义识别类型的违规文本(目前仅支持黑名单配置);\n- 支持在审核文本内容时同时关联账号或设备信息,可识别违规风险账号或设备。\n\n### 接口调用说明:\n- 文本内容大小支持:文本原文长度不能超过unicode编码长度10000个字符;\n- 文本审核语言支持:目前支持中文、英文、阿拉伯数字的检测;\n- 默认接口请求频率限制:**1000次/秒**,超过该频率限制则接口会报错。",
12
5
  "input": "TextModerationRequest",
@@ -250,353 +243,6 @@
250
243
  ],
251
244
  "usage": "out"
252
245
  },
253
- "LabelGrade": {
254
- "document": "内容审核多级标签结构",
255
- "members": [
256
- {
257
- "disabled": false,
258
- "document": "内容审核结果客户定制标签码\n注意:此字段可能返回 null,表示取不到有效值。",
259
- "example": "20001",
260
- "member": "string",
261
- "name": "Code",
262
- "output_required": true,
263
- "type": "string",
264
- "value_allowed_null": true
265
- },
266
- {
267
- "disabled": false,
268
- "document": "内容审核结果客户定制一级标签\n注意:此字段可能返回 null,表示取不到有效值。",
269
- "example": "违法",
270
- "member": "string",
271
- "name": "Grade1",
272
- "output_required": false,
273
- "type": "string",
274
- "value_allowed_null": true
275
- },
276
- {
277
- "disabled": false,
278
- "document": "内容审核结果客户定制二级标签\n注意:此字段可能返回 null,表示取不到有效值。",
279
- "example": "违法直播",
280
- "member": "string",
281
- "name": "Grade2",
282
- "output_required": false,
283
- "type": "string",
284
- "value_allowed_null": true
285
- },
286
- {
287
- "disabled": false,
288
- "document": "内容审核结果客户定制三级标签\n注意:此字段可能返回 null,表示取不到有效值。",
289
- "example": "开车直播",
290
- "member": "string",
291
- "name": "Grade3",
292
- "output_required": false,
293
- "type": "string",
294
- "value_allowed_null": true
295
- }
296
- ],
297
- "usage": "out"
298
- },
299
- "LibCheckResult": {
300
- "document": "库检测结果",
301
- "members": [
302
- {
303
- "disabled": false,
304
- "document": "库ID\n注意:此字段可能返回 null,表示取不到有效值。",
305
- "example": "dg2a89a9hjfdkx0lc",
306
- "member": "string",
307
- "name": "LibId",
308
- "output_required": false,
309
- "type": "string",
310
- "value_allowed_null": true
311
- },
312
- {
313
- "disabled": false,
314
- "document": "库名称\n注意:此字段可能返回 null,表示取不到有效值。",
315
- "example": "辱骂词汇库",
316
- "member": "string",
317
- "name": "LibName",
318
- "output_required": false,
319
- "type": "string",
320
- "value_allowed_null": true
321
- },
322
- {
323
- "disabled": false,
324
- "document": "库类型\n注意:此字段可能返回 null,表示取不到有效值。",
325
- "example": "1",
326
- "member": "uint64",
327
- "name": "LibType",
328
- "output_required": false,
329
- "type": "int",
330
- "value_allowed_null": true
331
- },
332
- {
333
- "disabled": false,
334
- "document": "命中的关键词\n注意:此字段可能返回 null,表示取不到有效值。",
335
- "example": "卧槽",
336
- "member": "string",
337
- "name": "Keyword",
338
- "output_required": false,
339
- "type": "string",
340
- "value_allowed_null": true
341
- },
342
- {
343
- "disabled": false,
344
- "document": "命中的关键词在送审文本的位置,可能存在多个位置,每个位置显示开始位置和结束位置\n注意:此字段可能返回 null,表示取不到有效值。",
345
- "example": "无",
346
- "member": "Positions",
347
- "name": "Positions",
348
- "output_required": false,
349
- "type": "list",
350
- "value_allowed_null": true
351
- }
352
- ],
353
- "usage": "out"
354
- },
355
- "ModelResult": {
356
- "document": "模型检测结果",
357
- "members": [
358
- {
359
- "disabled": false,
360
- "document": "模型检测出的违规内容\n注意:此字段可能返回 null,表示取不到有效值。",
361
- "example": "无",
362
- "member": "string",
363
- "name": "Content",
364
- "output_required": false,
365
- "type": "string",
366
- "value_allowed_null": true
367
- },
368
- {
369
- "disabled": false,
370
- "document": "模型检测出的违规内容的位置\n注意:此字段可能返回 null,表示取不到有效值。",
371
- "example": "无",
372
- "member": "Positions",
373
- "name": "Positions",
374
- "output_required": false,
375
- "type": "list",
376
- "value_allowed_null": true
377
- }
378
- ],
379
- "usage": "out"
380
- },
381
- "ModerateTextRequest": {
382
- "document": "ModerateText请求参数结构体",
383
- "members": [
384
- {
385
- "disabled": false,
386
- "document": "该字段表示待检测对象的文本内容,文本需要按utf-8格式编码,长度不能超过10000个字符(按unicode编码计算),并进行 Base64加密",
387
- "example": "无",
388
- "member": "string",
389
- "name": "Content",
390
- "required": true,
391
- "type": "string"
392
- },
393
- {
394
- "disabled": false,
395
- "document": "该字段表示策略的具体编号,用于接口调度,在内容安全控制台中可配置。若不传入Biztype参数(留空),则代表采用默认的识别策略;传入则会在审核时根据业务场景采取不同的审核策略。\n备注:Biztype仅为数字、字母与下划线的组合,长度为3-32个字符;不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype",
396
- "example": "无",
397
- "member": "string",
398
- "name": "BizType",
399
- "required": false,
400
- "type": "string"
401
- },
402
- {
403
- "disabled": false,
404
- "document": "该字段表示您为待检测对象分配的数据ID,传入后可方便您对文件进行标识和管理。\n取值:由英文字母(大小写均可)、数字及四个特殊符号(_,-,@,#)组成,长度不超过64个字符",
405
- "example": "无",
406
- "member": "string",
407
- "name": "DataId",
408
- "required": false,
409
- "type": "string"
410
- },
411
- {
412
- "disabled": false,
413
- "document": "该字段表示待检测对象对应的用户相关信息,传入后可便于甄别相应违规风险用户",
414
- "example": "无",
415
- "member": "User",
416
- "name": "User",
417
- "required": false,
418
- "type": "object"
419
- },
420
- {
421
- "disabled": false,
422
- "document": "该字段表示待检测对象对应的设备相关信息,传入后可便于甄别相应违规风险设备",
423
- "example": "无",
424
- "member": "Device",
425
- "name": "Device",
426
- "required": false,
427
- "type": "object"
428
- }
429
- ],
430
- "type": "object"
431
- },
432
- "ModerateTextResponse": {
433
- "document": "ModerateText返回参数结构体",
434
- "members": [
435
- {
436
- "disabled": false,
437
- "document": "该字段用于返回检测对象对应请求参数中的DataId,与输入的DataId字段中的内容对应",
438
- "example": "无",
439
- "member": "string",
440
- "name": "DataId",
441
- "output_required": false,
442
- "type": "string",
443
- "value_allowed_null": false
444
- },
445
- {
446
- "disabled": false,
447
- "document": "该字段用于返回请求参数中的BizType参数",
448
- "example": "无",
449
- "member": "string",
450
- "name": "BizType",
451
- "output_required": false,
452
- "type": "string",
453
- "value_allowed_null": false
454
- },
455
- {
456
- "disabled": false,
457
- "document": "该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示系统推荐的后续操作;建议您按照业务所需,对不同违规类型与建议值进行处理。\n返回值:Block:建议屏蔽,Review :建议人工复审,Pass:建议通过",
458
- "example": "无",
459
- "member": "string",
460
- "name": "Suggestion",
461
- "output_required": false,
462
- "type": "string",
463
- "value_allowed_null": false
464
- },
465
- {
466
- "disabled": false,
467
- "document": "命中标签,可参阅对应数据结构(LabelGrade)的详细描述",
468
- "example": "无",
469
- "member": "LabelGrade",
470
- "name": "Label",
471
- "output_required": false,
472
- "type": "object",
473
- "value_allowed_null": false
474
- },
475
- {
476
- "disabled": false,
477
- "document": "命中标签对应腾讯侧定义的标签",
478
- "example": "无",
479
- "member": "string",
480
- "name": "TcLabelCodes",
481
- "output_required": false,
482
- "type": "list",
483
- "value_allowed_null": false
484
- },
485
- {
486
- "disabled": false,
487
- "document": "该字段用于返回当前标签(Label)下被检测文本命中的关键词信息,用于标注文本违规的具体原因(如:加我微信)。该参数可能会有多个返回值,代表命中的多个关键词;如返回值为空且Score不为空,则代表识别结果所对应的恶意标签(Label)是来自于语义模型判断的返回值",
488
- "example": "无",
489
- "member": "string",
490
- "name": "Keywords",
491
- "output_required": false,
492
- "type": "list",
493
- "value_allowed_null": false
494
- },
495
- {
496
- "disabled": false,
497
- "document": "该字段用于返回文本审核的详细结果,返回值信息可参阅对应数据结构(ModerationDetail)的详细描述",
498
- "example": "无",
499
- "member": "ModerationDetail",
500
- "name": "ModerationDetails",
501
- "output_required": false,
502
- "type": "list",
503
- "value_allowed_null": false
504
- },
505
- {
506
- "disabled": false,
507
- "document": "该字段用于返回审核结果置信度,使用百分制。分数越高表示结果可信度越高。",
508
- "example": "90",
509
- "member": "uint64",
510
- "name": "Score",
511
- "output_required": false,
512
- "type": "int",
513
- "value_allowed_null": false
514
- },
515
- {
516
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
517
- "member": "string",
518
- "name": "RequestId",
519
- "type": "string"
520
- }
521
- ],
522
- "type": "object"
523
- },
524
- "ModerationDetail": {
525
- "document": "文本审核明细结果",
526
- "members": [
527
- {
528
- "disabled": false,
529
- "document": "审核建议,Block表示建议拦截,Review表示建议人工复审,Pass表示建议放行\n注意:此字段可能返回 null,表示取不到有效值。",
530
- "example": "Block",
531
- "member": "string",
532
- "name": "Suggestion",
533
- "output_required": false,
534
- "type": "string",
535
- "value_allowed_null": true
536
- },
537
- {
538
- "disabled": false,
539
- "document": "命中标签,含标签码和一二三级标签名\n注意:此字段可能返回 null,表示取不到有效值。",
540
- "example": "无",
541
- "member": "LabelGrade",
542
- "name": "Label",
543
- "output_required": false,
544
- "type": "object",
545
- "value_allowed_null": true
546
- },
547
- {
548
- "disabled": false,
549
- "document": "标签得分\n注意:此字段可能返回 null,表示取不到有效值。",
550
- "example": "98",
551
- "member": "uint64",
552
- "name": "Score",
553
- "output_required": false,
554
- "type": "int",
555
- "value_allowed_null": true
556
- },
557
- {
558
- "disabled": false,
559
- "document": "label对应腾讯侧命中标签码\n注意:此字段可能返回 null,表示取不到有效值。",
560
- "example": "[20001002,20001003]",
561
- "member": "string",
562
- "name": "TcLabelCodes",
563
- "output_required": false,
564
- "type": "list",
565
- "value_allowed_null": true
566
- },
567
- {
568
- "disabled": false,
569
- "document": "库检测命中详情\n注意:此字段可能返回 null,表示取不到有效值。",
570
- "example": "无",
571
- "member": "LibCheckResult",
572
- "name": "LibResults",
573
- "output_required": false,
574
- "type": "list",
575
- "value_allowed_null": true
576
- },
577
- {
578
- "disabled": false,
579
- "document": "模型检测详情\n注意:此字段可能返回 null,表示取不到有效值。",
580
- "example": "无",
581
- "member": "ModelResult",
582
- "name": "ModelResults",
583
- "output_required": false,
584
- "type": "list",
585
- "value_allowed_null": true
586
- },
587
- {
588
- "disabled": false,
589
- "document": "情绪正负向检测结果\n注意:此字段可能返回 null,表示取不到有效值。",
590
- "example": "无",
591
- "member": "SentimentDetail",
592
- "name": "SentimentResult",
593
- "output_required": false,
594
- "type": "object",
595
- "value_allowed_null": true
596
- }
597
- ],
598
- "usage": "out"
599
- },
600
246
  "Positions": {
601
247
  "document": "标识命中的违规关键词位置信息",
602
248
  "members": [
@@ -1,13 +1,5 @@
1
1
  {
2
2
  "actions": {
3
- "ModerateText": [
4
- {
5
- "document": "用于客户自有标签体系的内容审核,审核结果会以客户定义的标签体系输出结果",
6
- "input": "POST / HTTP/1.1\nHost: tms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModerateText\n<公共请求参数>\n\n{\n \"Content\": \"5Yqg5oiR5aW95Y+LIOe7meS9oOS8mOaDoOWIuA==\",\n \"BizType\": \"test\"\n}",
7
- "output": "{\n \"Response\": {\n \"RequestId\": \"123\",\n \"DataId\": \"123\",\n \"BizType\": \"test\",\n \"Label\": {\n \"Code\": \"20003001001\",\n \"Grade1\": \"广告\",\n \"Grade2\": \"电商广告\",\n \"Grade3\": \"拍拍网\"\n },\n \"TcLabelCodes\": [\n \"20001001001\",\n \"20001001002\",\n \"20001001003\"\n ],\n \"Suggestion\": \"Block\",\n \"Keywords\": [\n \"优惠券\"\n ],\n \"ModerationDetails\": [\n {\n \"Label\": {\n \"Code\": \"20003001001\",\n \"Grade1\": \"广告\",\n \"Grade2\": \"电商广告\",\n \"Grade3\": \"拍拍网\"\n },\n \"TcLabelCodes\": [\n \"20001001001\",\n \"20001001002\",\n \"20001001003\"\n ],\n \"LibResults\": [\n {\n \"Keyword\": \"123\",\n \"Positions\": [\n {\n \"Start\": 1,\n \"End\": 3\n }\n ],\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"LibType\": 0\n }\n ],\n \"ModelResults\": [\n {\n \"Content\": \"123\",\n \"Positions\": [\n {\n \"Start\": 1,\n \"End\": 3\n }\n ]\n }\n ],\n \"Suggestion\": \"Block\",\n \"Score\": 80\n }\n ]\n }\n}",
8
- "title": "客制标签文本内容审核"
9
- }
10
- ],
11
3
  "TextModeration": [
12
4
  {
13
5
  "document": "",
@@ -158,7 +158,7 @@
158
158
  "type": "object"
159
159
  },
160
160
  "GetFileTranslateData": {
161
- "document": "查询文件翻译任务",
161
+ "document": "文件翻译任务结果",
162
162
  "members": [
163
163
  {
164
164
  "disabled": false,
@@ -172,8 +172,8 @@
172
172
  },
173
173
  {
174
174
  "disabled": false,
175
- "document": "状态",
176
- "example": "init:任务已初始化;wait:任务等待执行;success:任务执行成功;fail:任务执行失败",
175
+ "document": "任务状态\n\n- init:任务已初始化\n- wait:任务等待执行\n- success:任务执行成功\n- fail:任务执行失败",
176
+ "example": "success",
177
177
  "member": "string",
178
178
  "name": "Status",
179
179
  "output_required": true,
@@ -202,13 +202,23 @@
202
202
  },
203
203
  {
204
204
  "disabled": false,
205
- "document": "翻译进度",
205
+ "document": "任务进度",
206
206
  "example": "100",
207
207
  "member": "int64",
208
208
  "name": "Progress",
209
209
  "output_required": true,
210
210
  "type": "int",
211
211
  "value_allowed_null": false
212
+ },
213
+ {
214
+ "disabled": false,
215
+ "document": "本次翻译消耗的字符数\t",
216
+ "example": "10",
217
+ "member": "int64",
218
+ "name": "UsedAmount",
219
+ "output_required": false,
220
+ "type": "int",
221
+ "value_allowed_null": false
212
222
  }
213
223
  ],
214
224
  "usage": "out"
@@ -736,7 +746,7 @@
736
746
  {
737
747
  "disabled": false,
738
748
  "document": "需要使用的术语库列表",
739
- "example": "[\"144aed8218c911eb97b88eb0fc7321d4\"]",
749
+ "example": "[\"144aed******************fc7321d4\"]",
740
750
  "member": "string",
741
751
  "name": "TermRepoIDList",
742
752
  "required": false,
@@ -745,7 +755,7 @@
745
755
  {
746
756
  "disabled": false,
747
757
  "document": "需要使用的例句库列表",
748
- "example": "[\"b77f64e518ec11ebb2aabf416d88df30\"]",
758
+ "example": "[\"b77f64******************6d88df30\"]",
749
759
  "member": "string",
750
760
  "name": "SentRepoIDList",
751
761
  "required": false,
@@ -787,6 +797,16 @@
787
797
  "type": "list",
788
798
  "value_allowed_null": false
789
799
  },
800
+ {
801
+ "disabled": false,
802
+ "document": "本次翻译消耗的字符数",
803
+ "example": "10",
804
+ "member": "int64",
805
+ "name": "UsedAmount",
806
+ "output_required": false,
807
+ "type": "int",
808
+ "value_allowed_null": false
809
+ },
790
810
  {
791
811
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
792
812
  "member": "string",
@@ -847,7 +867,7 @@
847
867
  {
848
868
  "disabled": false,
849
869
  "document": "需要使用的术语库列表",
850
- "example": "[\"144aed8218c911eb97b88eb0fc7321d4\"]",
870
+ "example": "[\"144aed******************fc7321d4\"]",
851
871
  "member": "string",
852
872
  "name": "TermRepoIDList",
853
873
  "required": false,
@@ -856,7 +876,7 @@
856
876
  {
857
877
  "disabled": false,
858
878
  "document": "需要使用的例句库列表",
859
- "example": "[\"b77f64e518ec11ebb2aabf416d88df30\"]",
879
+ "example": "[\"b77f64******************6d88df30\"]",
860
880
  "member": "string",
861
881
  "name": "SentRepoIDList",
862
882
  "required": false,
@@ -898,6 +918,16 @@
898
918
  "type": "string",
899
919
  "value_allowed_null": false
900
920
  },
921
+ {
922
+ "disabled": false,
923
+ "document": "本次翻译消耗的字符数",
924
+ "example": "10",
925
+ "member": "int64",
926
+ "name": "UsedAmount",
927
+ "output_required": false,
928
+ "type": "int",
929
+ "value_allowed_null": false
930
+ },
901
931
  {
902
932
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
903
933
  "member": "string",