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
@@ -113,7 +113,7 @@
113
113
  "status": "online"
114
114
  },
115
115
  "SegmentPortraitPic": {
116
- "document": "即二分类人像分割,识别传入图片中人体的完整轮廓,进行抠像。\n",
116
+ "document": "即二分类人像分割,识别传入图片中人体的完整轮廓,进行抠像。",
117
117
  "input": "SegmentPortraitPicRequest",
118
118
  "name": "人像分割",
119
119
  "output": "SegmentPortraitPicResponse",
@@ -672,7 +672,7 @@
672
672
  {
673
673
  "disabled": false,
674
674
  "document": "需要分割的视频URL,可外网访问。",
675
- "example": "test.video.url",
675
+ "example": "https://liudehua-9527.cos.ap-guangzhou.myqcloud.com/input.mp4",
676
676
  "member": "string",
677
677
  "name": "VideoUrl",
678
678
  "required": true,
@@ -681,7 +681,7 @@
681
681
  {
682
682
  "disabled": false,
683
683
  "document": "背景图片URL。 \n可以将视频背景替换为输入的图片。 \n如果不输入背景图片,则输出人像区域mask。",
684
- "example": "test.image.url",
684
+ "example": "https://liudehua-9527.cos.ap-guangzhou.myqcloud.com/input.jpeg",
685
685
  "member": "string",
686
686
  "name": "BackgroundImageUrl",
687
687
  "required": false,
@@ -690,7 +690,7 @@
690
690
  {
691
691
  "disabled": false,
692
692
  "document": "预留字段,后期用于展示更多识别信息。",
693
- "example": "",
693
+ "example": "{\"X-TEST\": \"test\"}",
694
694
  "member": "string",
695
695
  "name": "Config",
696
696
  "required": false,
@@ -705,10 +705,10 @@
705
705
  {
706
706
  "disabled": false,
707
707
  "document": "任务标识ID,可以用与追溯任务状态,查看任务结果",
708
- "example": "fakeTaskID",
708
+ "example": "1243358054699911111",
709
709
  "member": "string",
710
710
  "name": "TaskID",
711
- "required": true,
711
+ "output_required": true,
712
712
  "type": "string",
713
713
  "value_allowed_null": false
714
714
  },
@@ -718,7 +718,7 @@
718
718
  "example": "30",
719
719
  "member": "float",
720
720
  "name": "EstimatedProcessingTime",
721
- "required": true,
721
+ "output_required": true,
722
722
  "type": "float",
723
723
  "value_allowed_null": false
724
724
  },
@@ -867,7 +867,7 @@
867
867
  {
868
868
  "disabled": false,
869
869
  "document": "在提交分割任务成功时返回的任务标识ID。",
870
- "example": "",
870
+ "example": "12433580546999111111",
871
871
  "member": "string",
872
872
  "name": "TaskID",
873
873
  "required": true,
@@ -882,45 +882,50 @@
882
882
  {
883
883
  "disabled": false,
884
884
  "document": "当前任务状态:\nQUEUING 排队中\nPROCESSING 处理中\nFINISHED 处理完成",
885
- "example": "",
885
+ "example": "PROCESSING",
886
886
  "member": "string",
887
887
  "name": "TaskStatus",
888
+ "output_required": true,
888
889
  "type": "string",
889
890
  "value_allowed_null": false
890
891
  },
891
892
  {
892
893
  "disabled": false,
893
894
  "document": "分割后视频URL, 存储于腾讯云COS\n注意:此字段可能返回 null,表示取不到有效值。",
894
- "example": "",
895
+ "example": "https://liudehua-9527.cos.ap-guangzhou.myqcloud.com/result.mp4?q-sign-algorithm=sha1&q-ak=AKID********EXAMPLE&q-sign-time=8888;9999&q-key-time=8888;9999&q-header-list=&q-url-param-list=&q-signature=7de87f7bf9cfd23df9da32f46661e7cf97a5603c",
895
896
  "member": "string",
896
897
  "name": "ResultVideoUrl",
898
+ "output_required": true,
897
899
  "type": "string",
898
900
  "value_allowed_null": true
899
901
  },
900
902
  {
901
903
  "disabled": false,
902
904
  "document": "分割后视频MD5,用于校验\n注意:此字段可能返回 null,表示取不到有效值。",
903
- "example": "",
905
+ "example": "4972F083D7F05E9474FDFA52AA616DEE",
904
906
  "member": "string",
905
907
  "name": "ResultVideoMD5",
908
+ "output_required": true,
906
909
  "type": "string",
907
910
  "value_allowed_null": true
908
911
  },
909
912
  {
910
913
  "disabled": false,
911
914
  "document": "视频基本信息\n注意:此字段可能返回 null,表示取不到有效值。",
912
- "example": "",
915
+ "example": "{\"FrameWidth\":720,\"FrameHeight\":1280,\"FramesPerSecond\":29,\"Duration\":0,\"TotalFrames\":439}",
913
916
  "member": "VideoBasicInformation",
914
917
  "name": "VideoBasicInformation",
918
+ "output_required": true,
915
919
  "type": "object",
916
920
  "value_allowed_null": true
917
921
  },
918
922
  {
919
923
  "disabled": false,
920
924
  "document": "分割任务错误信息\n注意:此字段可能返回 null,表示取不到有效值。",
921
- "example": "",
925
+ "example": "video error",
922
926
  "member": "string",
923
927
  "name": "ErrorMsg",
928
+ "output_required": true,
924
929
  "type": "string",
925
930
  "value_allowed_null": true
926
931
  },
@@ -1778,7 +1783,7 @@
1778
1783
  {
1779
1784
  "disabled": false,
1780
1785
  "document": "此参数为分割选项,请根据需要选择自己所想从图片中分割的部分。注意所有选项均为非必选,如未选择则值默认为false, 但是必须要保证多于一个选项的描述为true。",
1781
- "example": "{",
1786
+ "example": "{\"Background\": false}",
1782
1787
  "member": "SegmentationOptions",
1783
1788
  "name": "SegmentationOptions",
1784
1789
  "required": true,
@@ -1787,7 +1792,7 @@
1787
1792
  {
1788
1793
  "disabled": false,
1789
1794
  "document": "图片 base64 数据,base64 编码后大小不可超过5M。\n图片分辨率须小于2000*2000。 \n支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。",
1790
- "example": "base64",
1795
+ "example": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIo...lftXF/DjFZNXoSP5V2U0HMt/1FQf/Z",
1791
1796
  "member": "string",
1792
1797
  "name": "Image",
1793
1798
  "required": false,
@@ -1796,7 +1801,7 @@
1796
1801
  {
1797
1802
  "disabled": false,
1798
1803
  "document": "图片的 Url 。\nUrl、Image必须提供一个,如果都提供,只使用 Url。\n图片分辨率须小于2000*2000 ,图片 base64 编码后大小不可超过5M。 \n图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。 \n非腾讯云存储的Url速度和稳定性可能受一定影响。 \n支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。",
1799
- "example": "test.jpg",
1804
+ "example": "https://liudehua-9527.cos.ap-guangzhou.myqcloud.com/input.jpeg",
1800
1805
  "member": "string",
1801
1806
  "name": "Url",
1802
1807
  "required": false,
@@ -1811,27 +1816,30 @@
1811
1816
  {
1812
1817
  "disabled": false,
1813
1818
  "document": "根据指定标签分割输出的透明背景人像图片的 base64 数据。",
1814
- "example": "base64",
1819
+ "example": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIo...lftXF/DjFZNXoSP5V2U0HMt/1FQf/Z",
1815
1820
  "member": "string",
1816
1821
  "name": "PortraitImage",
1822
+ "output_required": true,
1817
1823
  "type": "string",
1818
1824
  "value_allowed_null": false
1819
1825
  },
1820
1826
  {
1821
1827
  "disabled": false,
1822
1828
  "document": "指定标签处理后的Mask。一个通过 Base64 编码的文件,解码后文件由 Float 型浮点数组成。这些浮点数代表原图从左上角开始的每一行的每一个像素点,每一个浮点数的值是原图相应像素点位于人体轮廓内的置信度(0-1)转化的灰度值(0-255)",
1823
- "example": "base64",
1829
+ "example": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIo...lftXF/DjFZNXoSP5V2U0HMt/1FQf/Z",
1824
1830
  "member": "string",
1825
1831
  "name": "MaskImage",
1832
+ "output_required": true,
1826
1833
  "type": "string",
1827
1834
  "value_allowed_null": false
1828
1835
  },
1829
1836
  {
1830
1837
  "disabled": false,
1831
1838
  "document": "坐标信息。\n注意:此字段可能返回 null,表示取不到有效值。",
1832
- "example": "[{",
1839
+ "example": "[{\"Y\":1,\"X\":2,\"Height\":3,\"Width\":4,\"Label\":\"Head\"}]",
1833
1840
  "member": "ImageRect",
1834
1841
  "name": "ImageRects",
1842
+ "output_required": true,
1835
1843
  "type": "list",
1836
1844
  "value_allowed_null": true
1837
1845
  },
@@ -1850,7 +1858,7 @@
1850
1858
  {
1851
1859
  "disabled": false,
1852
1860
  "document": "图片 base64 数据,base64 编码后大小不可超过5M。\n图片分辨率须小于2000*2000。 \n支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。",
1853
- "example": "xxxxx",
1861
+ "example": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIo...lftXF/DjFZNXoSP5V2U0HMt/1FQf/Z",
1854
1862
  "member": "string",
1855
1863
  "name": "Image",
1856
1864
  "required": false,
@@ -1859,7 +1867,7 @@
1859
1867
  {
1860
1868
  "disabled": false,
1861
1869
  "document": "图片的 Url 。\nUrl、Image必须提供一个,如果都提供,只使用 Url。\n图片分辨率须小于2000*2000 ,图片 base64 编码后大小不可超过5M。 \n图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。 \n非腾讯云存储的Url速度和稳定性可能受一定影响。 \n支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。",
1862
- "example": "IamNotAUrl",
1870
+ "example": "https://liudehua-9527.cos.ap-guangzhou.myqcloud.com/input.jpeg",
1863
1871
  "member": "string",
1864
1872
  "name": "Url",
1865
1873
  "required": false,
@@ -1892,20 +1900,20 @@
1892
1900
  {
1893
1901
  "disabled": false,
1894
1902
  "document": "处理后的图片 base64 数据,透明背景图。\n注意:此字段可能返回 null,表示取不到有效值。",
1895
- "example": "******",
1903
+ "example": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIo...lftXF/DjFZNXoSP5V2U0HMt/1FQf/Z",
1896
1904
  "member": "string",
1897
1905
  "name": "ResultImage",
1898
- "required": true,
1906
+ "output_required": true,
1899
1907
  "type": "string",
1900
1908
  "value_allowed_null": true
1901
1909
  },
1902
1910
  {
1903
1911
  "disabled": false,
1904
1912
  "document": "一个通过 base64 编码的文件,解码后文件由 Float 型浮点数组成。这些浮点数代表原图从左上角开始的每一行的每一个像素点,每一个浮点数的值是原图相应像素点位于人体轮廓内的置信度(0-1)转化的灰度值(0-255)。\n注意:此字段可能返回 null,表示取不到有效值。",
1905
- "example": "******",
1913
+ "example": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIo...lftXF/DjFZNXoSP5V2U0HMt/1FQf/Z",
1906
1914
  "member": "string",
1907
1915
  "name": "ResultMask",
1908
- "required": true,
1916
+ "output_required": true,
1909
1917
  "type": "string",
1910
1918
  "value_allowed_null": true
1911
1919
  },
@@ -1915,27 +1923,27 @@
1915
1923
  "example": "false",
1916
1924
  "member": "bool",
1917
1925
  "name": "HasForeground",
1918
- "required": true,
1926
+ "output_required": true,
1919
1927
  "type": "bool",
1920
1928
  "value_allowed_null": true
1921
1929
  },
1922
1930
  {
1923
1931
  "disabled": false,
1924
1932
  "document": "支持将处理过的图片 base64 数据,透明背景图以Url的形式返回值,Url有效期为30分钟。\n注意:此字段可能返回 null,表示取不到有效值。",
1925
- "example": "\"\"",
1933
+ "example": "https://liudehua-9527.cos.ap-guangzhou.myqcloud.com/result.mp4?q-sign-algorithm=sha1&q-ak=AKID********EXAMPLE&q-sign-time=8888;9999&q-key-time=8888;9999&q-header-list=&q-url-param-list=&q-signature=7de87f7bf9cfd23df9da32f46661e7cf97a5603c",
1926
1934
  "member": "string",
1927
1935
  "name": "ResultImageUrl",
1928
- "required": true,
1936
+ "output_required": true,
1929
1937
  "type": "string",
1930
1938
  "value_allowed_null": true
1931
1939
  },
1932
1940
  {
1933
1941
  "disabled": false,
1934
1942
  "document": "一个通过 base64 编码的文件,解码后文件由 Float 型浮点数组成。支持以Url形式的返回值;Url有效期为30分钟。\n注意:此字段可能返回 null,表示取不到有效值。",
1935
- "example": "“”",
1943
+ "example": "https://liudehua-9527.cos.ap-guangzhou.myqcloud.com/mask.mp4?q-sign-algorithm=sha1&q-ak=AKID********EXAMPLE&q-sign-time=8888;9999&q-key-time=8888;9999&q-header-list=&q-url-param-list=&q-signature=7de87f7bf9cfd23df9da32f46661e7cf97a5603c",
1936
1944
  "member": "string",
1937
1945
  "name": "ResultMaskUrl",
1938
- "required": true,
1946
+ "output_required": true,
1939
1947
  "type": "string",
1940
1948
  "value_allowed_null": true
1941
1949
  },
@@ -2170,7 +2178,7 @@
2170
2178
  {
2171
2179
  "disabled": false,
2172
2180
  "document": "在提交分割任务成功时返回的任务标识ID。",
2173
- "example": "",
2181
+ "example": "12433580546999111111",
2174
2182
  "member": "string",
2175
2183
  "name": "TaskID",
2176
2184
  "required": true,
@@ -31,8 +31,8 @@
31
31
  "CreateSegmentationTask": [
32
32
  {
33
33
  "document": "创建视频人像分割处理任务成功",
34
- "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSegmentationTask\n<公共请求参数>\n\n{\n \"VideoUrl\": \"test.video.url\",\n \"BackgroundImageUrl\": \"test.image.url\"\n}",
35
- "output": "{\n \"Response\": {\n \"RequestId\": \"33c35bff-27b6-408f-9ca7-19191303fa07\",\n \"TaskID\": \"fakeTaskID\",\n \"EstimatedProcessingTime\": 30\n }\n}",
34
+ "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSegmentationTask\n<公共请求参数>\n\n{\n \"VideoUrl\": \"https://liudehua-9527.cos.ap-guangzhou.myqcloud.com/input.mp4\",\n \"BackgroundImageUrl\": \"https://liudehua-9527.cos.ap-guangzhou.myqcloud.com/input.jpeg\"\n}",
35
+ "output": "{\n \"Response\": {\n \"RequestId\": \"33c35bff-27b6-408f-9ca7-19191303fa07\",\n \"TaskID\": \"12433580546999611111\",\n \"EstimatedProcessingTime\": 30\n }\n}",
36
36
  "title": "创建任务成功"
37
37
  }
38
38
  ],
@@ -81,8 +81,8 @@
81
81
  "DescribeSegmentationTask": [
82
82
  {
83
83
  "document": "查询视频人像分割处理任务成功",
84
- "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSegmentationTask\n<公共请求参数>\n\n{\n \"TaskID\": \"taskID\"\n}",
85
- "output": "{\n \"Response\": {\n \"RequestId\": \"0352ed67-66b0-4515-a04f-ddc0ab129658\",\n \"TaskStatus\": \"FINISHED\",\n \"ErrorMsg\": \"\",\n \"ResultVideoUrl\": \"http://resulturl.com/a.mp4\",\n \"ResultVideoMD5\": \"somemd5\",\n \"VideoBasicInformation\": {\n \"FrameWidth\": 1280,\n \"FrameHeight\": 590,\n \"FramesPerSecond\": 28,\n \"Duration\": 21,\n \"TotalFrames\": 630\n }\n }\n}",
84
+ "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSegmentationTask\n<公共请求参数>\n\n{\n \"TaskID\": \"12433580546999111111\"\n}",
85
+ "output": "{\n \"Response\": {\n \"RequestId\": \"0352ed67-66b0-4515-a04f-ddc0ab129658\",\n \"TaskStatus\": \"FINISHED\",\n \"ErrorMsg\": \"\",\n \"ResultVideoUrl\": \"https://liudehua-9527.cos.ap-guangzhou.myqcloud.com/result.mp4?q-sign-algorithm=sha1&q-ak=AKID********EXAMPLE&q-sign-time=8888;9999&q-key-time=8888;9999&q-header-list=&q-url-param-list=&q-signature=7de87f7bf9cfd23df9da32f46661e7cf97a5603c\",\n \"ResultVideoMD5\": \"somemd5\",\n \"VideoBasicInformation\": {\n \"FrameWidth\": 1280,\n \"FrameHeight\": 590,\n \"FramesPerSecond\": 28,\n \"Duration\": 21,\n \"TotalFrames\": 630\n }\n }\n}",
86
86
  "title": "查询任务成功"
87
87
  }
88
88
  ],
@@ -195,13 +195,13 @@
195
195
  "SegmentCustomizedPortraitPic": [
196
196
  {
197
197
  "document": "",
198
- "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SegmentCustomizedPortraitPic\n<公共请求参数>\n\n{\n \"Url\": \"IamNotAUrl\",\n \"SegmentationOptions\": {\n \"Background\": false\n }\n}",
198
+ "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SegmentCustomizedPortraitPic\n<公共请求参数>\n\n{\n \"Url\": \"https://liudehua-9527.cos.ap-guangzhou.myqcloud.com/input.jpeg\",\n \"SegmentationOptions\": {\n \"Background\": false\n }\n}",
199
199
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.UrlIllegal\",\n \"Message\": \"URL格式不合法。\"\n },\n \"RequestId\": \"46ed6f32-549f-4377-8116-2d55e4574528\"\n }\n}",
200
200
  "title": "调用失败示例"
201
201
  },
202
202
  {
203
203
  "document": "",
204
- "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SegmentCustomizedPortraitPic\n<公共请求参数>\n\n{\n \"Url\": \"test.jpg\",\n \"SegmentationOptions\": {\n \"Head\": true\n }\n}",
204
+ "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SegmentCustomizedPortraitPic\n<公共请求参数>\n\n{\n \"Url\": \"https://liudehua-9527.cos.ap-guangzhou.myqcloud.com/input.jpeg\",\n \"SegmentationOptions\": {\n \"Head\": true\n }\n}",
205
205
  "output": "{\n \"Response\": {\n \"PortraitImage\": \"iVBORw0KGgoAAAANSUhEUgAAAoAAAAHJCAYAAAAVcogaAAAgAElEQVR4AdThgZZlRRYYybpH3ELr/f/fNnm2D5FMVCcMXJVUdOvJzIXxGxUVlUNFZa3FoXKpXPqNd2aGo6LiqKiA4YXAoKLycqGicizkUpHfqRyuxVfJHzzEkVBxVFx7+K5ihIpriGOAiqPiGuKqOCquiqviqPgrFUfFVfHfonxS/pLKoXKttXin4h15T+VSOVQuFZW1Fmst1lqowHDsvThUVHBQUTmW37gqjoprZnhv8bNUDpWj4qhQOSoqZoaKimOKY2aomBkqKipUroqrAgcViL+j8vekEVj871J5R+VnVPwMlaOi4lBRgeHb64XGWou9N3tv1lqstVDZe6Oy92bvzVqLtRYqxyTHzDAzPM/D8zw8z0PF8zwcM0PFzFAxMxwzUHFUHCqHispVcVT8lYqr4qioqKj4aiE8IL9TOVQulb+TwzjkcFRcFcfMcFUcFd/14p2KQ+UrlWO/fkFFRWWthcpai6NCRUVF5auRT478TiqM38TMgB8wgR8c8cGK3wzw4lhrsffG...\",\n \"MaskImage\": \"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAALCAHJAoABAREA/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx...\",\n \"ImageRects\": [\n {\n \"Y\": 1,\n \"X\": 2,\n \"Height\": 3,\n \"Width\": 4,\n \"Label\": \"Head\"\n }\n ],\n \"RequestId\": \"07d71af0-d3af-4d36-8217-1e6836f38007\"\n }\n}",
206
206
  "title": "调用成功示例"
207
207
  }
@@ -209,13 +209,13 @@
209
209
  "SegmentPortraitPic": [
210
210
  {
211
211
  "document": "",
212
- "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SegmentPortraitPic\n<公共请求参数>\n\n{\n \"Url\": \"IamNotAUrl\"\n}",
212
+ "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SegmentPortraitPic\n<公共请求参数>\n\n{\n \"Url\": \"htttttps://liudehua-9527.cos.ap-guangzhou.myqcloud.com/input.jpeg\"\n}",
213
213
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.UrlIllegal\",\n \"Message\": \"URL格式不合法。\"\n },\n \"RequestId\": \"46ed6f32-549f-4377-8116-2d55e4574528\"\n }\n}",
214
214
  "title": "调用失败示例"
215
215
  },
216
216
  {
217
217
  "document": "",
218
- "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SegmentPortraitPic\n<公共请求参数>\n\n{\n \"Url\": \"test.jpg\"\n}",
218
+ "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SegmentPortraitPic\n<公共请求参数>\n\n{\n \"Url\": \"https://liudehua-9527.cos.ap-guangzhou.myqcloud.com/input.jpeg\",\n \"RspImgType\": \"base64\"\n}",
219
219
  "output": "{\n \"Response\": {\n \"ResultImage\": \"iVBORw0KGgoAAAANSUhEUgAAAiYAAAFuCAYAAAC1LdPaAAAgAElEQVR4AbTB0ZJlyXUYy4g8DT1hICNl5P9/50WdFdJqWIJ7ioWahnDl7r/99me+MzM8VTwNh39FxWcqS+Wcw3cqLpUnlUtFZamorMPvqaiorJlBReWcg4rKUuk9/DMqKirWaVCpWBUVFRVXRcWTysi3KpbKUlkq68TfqaioLJWZQWWpqCyVz1SeVN7vN/+IgA4UIaui4vp4x1UxHlbFer//ylWxKr5SsSpWRULFk8pSUXlS+YrKUlkqS0VFZVUsFZWOLBUVFRWVpaKiUlGxVFR+eKioqFBRUVGZGb6jsSqeKtbM8KTyJN8757BUVkVFxTrn8KTyVKHypH...\",\n \"ResultMask\": \"...XWPBHiy5s9MsfGWqRxIlxe+DdQbyLK9a6lDSLpaFbtC21I3GK/okoooooooooooooooooooooooor+Qb/g73/bN1j4HfsbeCP2evCt7qum6x8e9cuDrN5YnT3spfDWi8T6bfrOHvImnnbfHJbKmQMM/av8AMAJJJJOSeST1J9TRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRXV+BvHPi/wCGni3QPHfgPxDqfhXxf4X1K11jQPEGjXUlnqWl6lZyrNbXdrcREPHLFIoYHocYIIJFf7FX/BAn9qf41fthf8E2fgz8Y/j74oXxl8RdRivtL1LxE1lBZXOow6XcPaW096tviOa8aKNTPcbVaaTLsMk1+0dFFFFFFFFFFFFFFFFFFFFFFFf5jX/B5jqOoSft8fCfTZL68fToPg3p88Fg9zO1lDPJqFwJJorUuYI5ZAAHkSMOwADE4r+Oyiiiiv/Z\",\n \"HasForeground\": true,\n \"ResultMaskUrl\": \"\",\n \"ResultImageUrl\": \"\",\n \"RequestId\": \"9cf173a5-4ae5-46fb-9898-6c876263780d\"\n }\n}",
220
220
  "title": "调用成功示例"
221
221
  }
@@ -223,7 +223,7 @@
223
223
  "TerminateSegmentationTask": [
224
224
  {
225
225
  "document": "取消任务成功",
226
- "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: TerminateSegmentationTask\n<公共请求参数>\n\n{\n \"TaskID\": \"fakeID\"\n}",
226
+ "input": "POST / HTTP/1.1\nHost: bda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: TerminateSegmentationTask\n<公共请求参数>\n\n{\n \"TaskID\": \"12433580546999111111\"\n}",
227
227
  "output": "{\n \"Response\": {\n \"RequestId\": \"0352ed67-66b0-4515-a04f-ddc0ab129658\"\n }\n}",
228
228
  "title": "取消任务成功"
229
229
  }
@@ -0,0 +1,4 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ from tccli.services.bh.bh_client import action_caller
4
+