tccli 3.0.1216.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 (252) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/argparser.py +1 -1
  3. tccli/command.py +2 -2
  4. tccli/credentials.py +25 -0
  5. tccli/main.py +6 -2
  6. tccli/plugins/sso/__init__.py +61 -0
  7. tccli/plugins/sso/configs.py +4 -0
  8. tccli/plugins/sso/configure.py +45 -0
  9. tccli/plugins/sso/login.py +144 -0
  10. tccli/plugins/sso/logout.py +21 -0
  11. tccli/plugins/sso/terminal.py +161 -0
  12. tccli/plugins/sso/texts.py +40 -0
  13. tccli/services/__init__.py +6 -0
  14. tccli/services/acp/v20220105/api.json +7 -7
  15. tccli/services/acp/v20220105/examples.json +2 -2
  16. tccli/services/aiart/v20221229/api.json +29 -29
  17. tccli/services/aiart/v20221229/examples.json +8 -8
  18. tccli/services/apigateway/v20180808/api.json +18 -17
  19. tccli/services/apigateway/v20180808/examples.json +12 -12
  20. tccli/services/apm/v20210622/api.json +98 -4
  21. tccli/services/asr/v20190614/api.json +18 -17
  22. tccli/services/asr/v20190614/examples.json +13 -13
  23. tccli/services/autoscaling/v20180419/api.json +371 -309
  24. tccli/services/autoscaling/v20180419/examples.json +17 -17
  25. tccli/services/batch/v20170312/api.json +7 -7
  26. tccli/services/bda/v20200324/api.json +39 -31
  27. tccli/services/bda/v20200324/examples.json +9 -9
  28. tccli/services/bh/__init__.py +4 -0
  29. tccli/services/bh/bh_client.py +3428 -0
  30. tccli/services/bh/v20230418/api.json +8180 -0
  31. tccli/services/bh/v20230418/examples.json +519 -0
  32. tccli/services/bi/v20220105/api.json +48 -0
  33. tccli/services/billing/v20180709/api.json +26 -24
  34. tccli/services/bsca/v20210811/api.json +1 -1
  35. tccli/services/btoe/v20210514/api.json +4 -4
  36. tccli/services/btoe/v20210514/examples.json +2 -2
  37. tccli/services/ca/v20230228/api.json +60 -0
  38. tccli/services/cam/v20190116/api.json +11 -11
  39. tccli/services/cat/v20180409/api.json +9 -0
  40. tccli/services/cbs/v20170312/api.json +200 -188
  41. tccli/services/cbs/v20170312/examples.json +4 -4
  42. tccli/services/ccc/v20200210/api.json +390 -323
  43. tccli/services/ccc/v20200210/examples.json +15 -15
  44. tccli/services/cdb/cdb_client.py +13 -13
  45. tccli/services/cdb/v20170320/api.json +295 -270
  46. tccli/services/cdb/v20170320/examples.json +38 -38
  47. tccli/services/cdc/v20201214/api.json +283 -270
  48. tccli/services/cdc/v20201214/examples.json +26 -26
  49. tccli/services/cds/v20180420/api.json +82 -76
  50. tccli/services/cds/v20180420/examples.json +1 -1
  51. tccli/services/cdwch/v20200915/api.json +1 -1
  52. tccli/services/cdwdoris/v20211228/api.json +42 -2
  53. tccli/services/cdz/v20221123/api.json +41 -5
  54. tccli/services/cfg/v20210820/api.json +31 -0
  55. tccli/services/cfs/v20190719/api.json +89 -1
  56. tccli/services/cfs/v20190719/examples.json +1 -1
  57. tccli/services/cfw/cfw_client.py +0 -53
  58. tccli/services/cfw/v20190904/api.json +1849 -1999
  59. tccli/services/cfw/v20190904/examples.json +157 -159
  60. tccli/services/ckafka/v20190819/api.json +104 -75
  61. tccli/services/clb/v20180317/api.json +48 -26
  62. tccli/services/clb/v20180317/examples.json +1 -1
  63. tccli/services/cloudapp/v20220530/api.json +5 -1
  64. tccli/services/cloudaudit/v20190319/api.json +58 -44
  65. tccli/services/cloudaudit/v20190319/examples.json +6 -6
  66. tccli/services/cloudstudio/v20230508/api.json +38 -37
  67. tccli/services/cloudstudio/v20230508/examples.json +4 -4
  68. tccli/services/cls/cls_client.py +216 -4
  69. tccli/services/cls/v20201016/api.json +536 -47
  70. tccli/services/cls/v20201016/examples.json +34 -2
  71. tccli/services/csip/v20221121/api.json +2562 -2382
  72. tccli/services/csip/v20221121/examples.json +108 -108
  73. tccli/services/cvm/v20170312/api.json +149 -112
  74. tccli/services/cvm/v20170312/examples.json +2 -2
  75. tccli/services/cwp/cwp_client.py +4 -110
  76. tccli/services/cwp/v20180228/api.json +6338 -6146
  77. tccli/services/cwp/v20180228/examples.json +342 -370
  78. tccli/services/cynosdb/v20190107/api.json +93 -81
  79. tccli/services/cynosdb/v20190107/examples.json +70 -70
  80. tccli/services/dasb/v20191018/api.json +796 -651
  81. tccli/services/dasb/v20191018/examples.json +101 -101
  82. tccli/services/dcdb/dcdb_client.py +114 -61
  83. tccli/services/dcdb/v20180411/api.json +141 -7
  84. tccli/services/dcdb/v20180411/examples.json +32 -0
  85. tccli/services/dlc/v20210125/api.json +21 -11
  86. tccli/services/dnspod/dnspod_client.py +417 -46
  87. tccli/services/dnspod/v20210323/api.json +751 -30
  88. tccli/services/dnspod/v20210323/examples.json +62 -0
  89. tccli/services/dts/v20211206/api.json +4 -4
  90. tccli/services/ecm/v20190719/api.json +2 -2
  91. tccli/services/emr/v20190103/api.json +339 -114
  92. tccli/services/emr/v20190103/examples.json +64 -82
  93. tccli/services/es/v20180416/api.json +29 -0
  94. tccli/services/es/v20180416/examples.json +1 -1
  95. tccli/services/ess/v20201111/api.json +49 -31
  96. tccli/services/ess/v20201111/examples.json +20 -8
  97. tccli/services/essbasic/v20210526/api.json +54 -49
  98. tccli/services/essbasic/v20210526/examples.json +36 -18
  99. tccli/services/facefusion/v20181201/api.json +47 -45
  100. tccli/services/facefusion/v20181201/examples.json +2 -2
  101. tccli/services/facefusion/v20220927/api.json +54 -48
  102. tccli/services/facefusion/v20220927/examples.json +5 -5
  103. tccli/services/faceid/v20180301/api.json +497 -496
  104. tccli/services/faceid/v20180301/examples.json +219 -101
  105. tccli/services/fmu/v20191213/api.json +59 -67
  106. tccli/services/fmu/v20191213/examples.json +22 -22
  107. tccli/services/ft/v20200304/api.json +53 -57
  108. tccli/services/ft/v20200304/examples.json +14 -14
  109. tccli/services/gme/v20180711/api.json +21 -11
  110. tccli/services/gme/v20180711/examples.json +1 -1
  111. tccli/services/hai/v20230812/api.json +116 -9
  112. tccli/services/hai/v20230812/examples.json +4 -4
  113. tccli/services/hunyuan/hunyuan_client.py +436 -12
  114. tccli/services/hunyuan/v20230901/api.json +1482 -118
  115. tccli/services/hunyuan/v20230901/examples.json +82 -18
  116. tccli/services/iai/v20180301/api.json +23 -19
  117. tccli/services/iai/v20180301/examples.json +2 -2
  118. tccli/services/iai/v20200303/api.json +530 -511
  119. tccli/services/iai/v20200303/examples.json +116 -86
  120. tccli/services/ig/__init__.py +4 -0
  121. tccli/services/ig/ig_client.py +195 -0
  122. tccli/services/ig/v20210518/api.json +83 -0
  123. tccli/services/ig/v20210518/examples.json +13 -0
  124. tccli/services/ioa/ioa_client.py +53 -0
  125. tccli/services/ioa/v20220601/api.json +662 -413
  126. tccli/services/ioa/v20220601/examples.json +24 -10
  127. tccli/services/iotexplorer/v20190423/api.json +33 -13
  128. tccli/services/iotexplorer/v20190423/examples.json +3 -3
  129. tccli/services/iotvideo/iotvideo_client.py +106 -0
  130. tccli/services/iotvideo/v20191126/api.json +256 -24
  131. tccli/services/iotvideo/v20191126/examples.json +19 -3
  132. tccli/services/iotvideo/v20201215/api.json +1 -1
  133. tccli/services/iotvideo/v20201215/examples.json +1 -1
  134. tccli/services/iotvideo/v20211125/api.json +1 -1
  135. tccli/services/iotvideo/v20211125/examples.json +2 -2
  136. tccli/services/iss/iss_client.py +69 -122
  137. tccli/services/iss/v20230517/api.json +10 -54
  138. tccli/services/iss/v20230517/examples.json +0 -14
  139. tccli/services/kms/v20190118/api.json +301 -268
  140. tccli/services/kms/v20190118/examples.json +45 -51
  141. tccli/services/lcic/lcic_client.py +159 -0
  142. tccli/services/lcic/v20220817/api.json +273 -1
  143. tccli/services/lcic/v20220817/examples.json +24 -0
  144. tccli/services/lighthouse/v20200324/api.json +56 -0
  145. tccli/services/live/live_client.py +159 -0
  146. tccli/services/live/v20180801/api.json +244 -0
  147. tccli/services/live/v20180801/examples.json +24 -0
  148. tccli/services/lke/v20231130/api.json +17 -17
  149. tccli/services/lke/v20231130/examples.json +19 -25
  150. tccli/services/mariadb/v20170312/api.json +7 -7
  151. tccli/services/market/v20191010/api.json +3 -3
  152. tccli/services/market/v20191010/examples.json +2 -2
  153. tccli/services/mmps/v20200710/api.json +47 -47
  154. tccli/services/mmps/v20200710/examples.json +3 -3
  155. tccli/services/mongodb/v20190725/api.json +4 -4
  156. tccli/services/monitor/v20180724/api.json +46 -19
  157. tccli/services/mps/v20190612/api.json +282 -5
  158. tccli/services/mps/v20190612/examples.json +25 -1
  159. tccli/services/mqtt/v20240516/api.json +2 -2
  160. tccli/services/mrs/v20200910/api.json +72 -34
  161. tccli/services/mrs/v20200910/examples.json +2 -2
  162. tccli/services/ms/v20180408/api.json +535 -506
  163. tccli/services/ms/v20180408/examples.json +25 -25
  164. tccli/services/oceanus/v20190422/api.json +130 -0
  165. tccli/services/ocr/ocr_client.py +232 -20
  166. tccli/services/ocr/v20181119/api.json +2265 -760
  167. tccli/services/ocr/v20181119/examples.json +200 -180
  168. tccli/services/omics/v20221128/api.json +614 -553
  169. tccli/services/omics/v20221128/examples.json +9 -9
  170. tccli/services/organization/v20210331/api.json +13 -4
  171. tccli/services/organization/v20210331/examples.json +2 -2
  172. tccli/services/partners/v20180321/api.json +244 -234
  173. tccli/services/partners/v20180321/examples.json +19 -19
  174. tccli/services/privatedns/privatedns_client.py +428 -4
  175. tccli/services/privatedns/v20201028/api.json +815 -11
  176. tccli/services/privatedns/v20201028/examples.json +64 -0
  177. tccli/services/pts/v20210728/api.json +18 -0
  178. tccli/services/pts/v20210728/examples.json +1 -1
  179. tccli/services/rce/rce_client.py +53 -0
  180. tccli/services/rce/v20201103/api.json +146 -0
  181. tccli/services/rce/v20201103/examples.json +8 -0
  182. tccli/services/redis/v20180412/api.json +42 -42
  183. tccli/services/redis/v20180412/examples.json +19 -19
  184. tccli/services/rum/v20210622/api.json +9 -0
  185. tccli/services/scf/v20180416/api.json +15 -15
  186. tccli/services/scf/v20180416/examples.json +1 -1
  187. tccli/services/smop/v20201203/api.json +46 -42
  188. tccli/services/smop/v20201203/examples.json +2 -2
  189. tccli/services/soe/v20180724/api.json +10 -10
  190. tccli/services/sqlserver/v20180328/api.json +21 -8
  191. tccli/services/sqlserver/v20180328/examples.json +5 -5
  192. tccli/services/ssl/v20191205/api.json +97 -4
  193. tccli/services/ssm/v20190923/api.json +292 -231
  194. tccli/services/ssm/v20190923/examples.json +42 -42
  195. tccli/services/tat/v20201028/api.json +97 -97
  196. tccli/services/tat/v20201028/examples.json +20 -26
  197. tccli/services/tchd/v20230306/api.json +5 -5
  198. tccli/services/tchd/v20230306/examples.json +3 -3
  199. tccli/services/tcr/v20190924/api.json +1 -1
  200. tccli/services/tcr/v20190924/examples.json +1 -1
  201. tccli/services/tcss/v20201101/api.json +1973 -1426
  202. tccli/services/tcss/v20201101/examples.json +346 -364
  203. tccli/services/tdmq/v20200217/api.json +539 -401
  204. tccli/services/tdmq/v20200217/examples.json +104 -104
  205. tccli/services/tds/v20220801/api.json +4 -4
  206. tccli/services/tem/v20210701/api.json +287 -271
  207. tccli/services/tem/v20210701/examples.json +59 -59
  208. tccli/services/teo/v20220901/api.json +37 -9
  209. tccli/services/teo/v20220901/examples.json +13 -7
  210. tccli/services/thpc/v20230321/api.json +5 -5
  211. tccli/services/tke/tke_client.py +217 -58
  212. tccli/services/tke/v20180525/api.json +36 -27
  213. tccli/services/tke/v20180525/examples.json +1 -1
  214. tccli/services/tke/v20220501/api.json +176 -0
  215. tccli/services/tke/v20220501/examples.json +24 -0
  216. tccli/services/tmt/v20180321/api.json +38 -8
  217. tccli/services/trp/v20210515/api.json +86 -74
  218. tccli/services/trp/v20210515/examples.json +65 -65
  219. tccli/services/trro/v20220325/api.json +72 -71
  220. tccli/services/trro/v20220325/examples.json +8 -8
  221. tccli/services/trtc/trtc_client.py +8 -61
  222. tccli/services/trtc/v20190722/api.json +72 -30
  223. tccli/services/trtc/v20190722/examples.json +3 -11
  224. tccli/services/tse/tse_client.py +110 -4
  225. tccli/services/tse/v20201207/api.json +122 -7
  226. tccli/services/tse/v20201207/examples.json +25 -9
  227. tccli/services/vclm/v20240523/api.json +225 -82
  228. tccli/services/vclm/v20240523/examples.json +13 -19
  229. tccli/services/vod/v20180717/api.json +431 -4
  230. tccli/services/vod/v20180717/examples.json +25 -5
  231. tccli/services/vod/v20240718/api.json +11 -11
  232. tccli/services/vod/v20240718/examples.json +4 -4
  233. tccli/services/vod/vod_client.py +53 -0
  234. tccli/services/vpc/v20170312/api.json +1090 -862
  235. tccli/services/vpc/v20170312/examples.json +74 -66
  236. tccli/services/vpc/vpc_client.py +61 -8
  237. tccli/services/waf/v20180125/api.json +2540 -2177
  238. tccli/services/waf/v20180125/examples.json +216 -284
  239. tccli/services/waf/waf_client.py +172 -119
  240. tccli/services/wav/v20210129/api.json +48 -48
  241. tccli/services/wav/v20210129/examples.json +4 -4
  242. tccli/services/wedata/v20210820/api.json +909 -25
  243. tccli/services/wedata/v20210820/examples.json +28 -4
  244. tccli/services/wedata/wedata_client.py +159 -0
  245. tccli/services/weilingwith/v20230427/api.json +6 -6
  246. tccli/services/weilingwith/v20230427/examples.json +3 -3
  247. tccli/sso.py +229 -0
  248. {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/METADATA +2 -2
  249. {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/RECORD +252 -235
  250. {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/WHEEL +0 -0
  251. {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/entry_points.txt +0 -0
  252. {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/license_files/LICENSE +0 -0
@@ -138,6 +138,14 @@
138
138
  "title": "创建视频分类"
139
139
  }
140
140
  ],
141
+ "CreateComplexAdaptiveDynamicStreamingTask": [
142
+ {
143
+ "document": "将一个媒体文件(带有视频和中文音频)转码并打包为自适应码流,同时额外添加片头、英文音频、中文字幕和英文字幕。\n主媒体的 FileId 为4424135347909043783,且设置 Chinese 和 English 两个字幕;与主媒体匹配的英文音频的 FileId 为4424135347909043652;自适应码流模板为220368;片头模板为14591。",
144
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateComplexAdaptiveDynamicStreamingTask\n<公共请求参数>\n\n{\n \"SubAppId\": 1250000000,\n \"FileId\": \"4424135347909043783\",\n \"StreamParaSet\": [\n {\n \"Definition\": 220368\n }\n ],\n \"HeadTailSet\": [\n {\n \"Definition\": 14591\n }\n ],\n \"AudioSet\": [\n {\n \"FileId\": \"4424135347909043783\",\n \"Name\": \"Chinese\",\n \"Language\": \"zh\",\n \"Default\": \"YES\"\n },\n {\n \"FileId\": \"4424135347909043652\",\n \"Name\": \"English\",\n \"Language\": \"en\"\n }\n ],\n \"SubtitleSet\": [\n {\n \"Id\": \"Chinese\",\n \"Default\": \"YES\"\n },\n {\n \"Id\": \"English\"\n }\n ]\n}",
145
+ "output": "{\n \"Response\": {\n \"RequestId\": \"2e1af3fa-a55f-4078-9d61-df448c1e6e34\",\n \"TaskId\": \"1250000000-ComplexAdaptiveDynamicStreaming-a9e3993dd4fdee822862cd80c43ac4c4t\"\n }\n}",
146
+ "title": "创建复杂自适应码流任务"
147
+ }
148
+ ],
141
149
  "CreateContentReviewTemplate": [
142
150
  {
143
151
  "document": "创建一个自定义 AI 内容审核模板,开启画面内容令人反感的信息任务,同时开启画面令人不安全的信息及画面令人不适宜的信息任务,判定为违规的分数阈值及判定为需要人工识别的分数阈值都为默认,且不指定过滤标签。",
@@ -1024,25 +1032,25 @@
1024
1032
  {
1025
1033
  "document": "获取任务详情-编辑视频",
1026
1034
  "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskDetail\n<公共请求参数>\n\n{\n \"TaskId\": \"12530394xx-procedurev2-61c975da05662fd9d3bf9d89a63361c0t0\"\n}",
1027
- "output": "{\n \"Response\": {\n \"TaskType\": \"EditMedia\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-02-25T10:56:02Z\",\n \"BeginProcessTime\": \"2019-02-25T10:56:02Z\",\n \"FinishTime\": \"2019-02-25T10:56:13Z\",\n \"ProcedureTask\": null,\n \"EditMediaTask\": {\n \"TaskId\": \"12530394xx-procedurev2-61c975da05662fd9d3bf9d89a63361c0t0\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"ErrCodeExt\": \"\",\n \"Message\": \"\",\n \"Progress\": 100,\n \"ReviewAudioVideoTaskId\": \"\",\n \"SessionContext\": \"\",\n \"SessionId\": \"\",\n \"MetaData\": {\n \"AudioDuration\": 3601,\n \"VideoDuration\": 3601,\n \"Md5\": \"\",\n \"Size\": 10556,\n \"Container\": \"m4a\",\n \"Duration\": 3601,\n \"Bitrate\": 246035,\n \"Height\": 480,\n \"Width\": 640,\n \"Rotate\": 0,\n \"VideoStreamSet\": [\n {\n \"Bitrate\": 246000,\n \"Height\": 480,\n \"Width\": 640,\n \"Codec\": \"h264\",\n \"Fps\": 222,\n \"CodecTag\": \"\",\n \"DynamicRangeInfo\": {\n \"Type\": \"SDR\",\n \"HDRType\": \"\"\n }\n }\n ],\n \"AudioStreamSet\": [\n {\n \"Codec\": \"aac\",\n \"SamplingRate\": 44100,\n \"Bitrate\": 35\n }\n ]\n },\n \"Input\": {\n \"InputType\": \"Stream\",\n \"FileInfoSet\": [\n {\n \"FileId\": \"4565514956192708397\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 30\n },\n {\n \"FileId\": \"4565514956192708396\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 30\n }\n ],\n \"StreamInfoSet\": [\n {\n \"StreamId\": \"29920_stream\",\n \"StartTime\": \"2019-02-20T06:21:00Z\",\n \"EndTime\": \"2019-02-20T06:21:30Z\"\n }\n ]\n },\n \"Output\": {\n \"FileType\": \"mp4\",\n \"FileId\": \"4565514956222184986\",\n \"FileUrl\": \"http://12530394xx.vod2.myqcloud.com/9395476dvodcq1253039488/f0e1f8314565514956222184986/playlist.f9.mp4\"\n },\n \"ProcedureTaskId\": \"\"\n },\n \"ComposeMediaTask\": null,\n \"SplitMediaTask\": null,\n \"WechatMiniProgramPublishTask\": null,\n \"WechatPublishTask\": null,\n \"TranscodeTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"PullUploadTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"QualityInspectTask\": null,\n \"QualityEnhanceTask\": null,\n \"RequestId\": \"sdfadf\"\n }\n}",
1035
+ "output": "{\n \"Response\": {\n \"TaskType\": \"EditMedia\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-02-25T10:56:02Z\",\n \"BeginProcessTime\": \"2019-02-25T10:56:02Z\",\n \"FinishTime\": \"2019-02-25T10:56:13Z\",\n \"ProcedureTask\": null,\n \"EditMediaTask\": {\n \"TaskId\": \"12530394xx-procedurev2-61c975da05662fd9d3bf9d89a63361c0t0\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"ErrCodeExt\": \"\",\n \"Message\": \"\",\n \"Progress\": 100,\n \"ReviewAudioVideoTaskId\": \"\",\n \"SessionContext\": \"\",\n \"SessionId\": \"\",\n \"MetaData\": {\n \"AudioDuration\": 3601,\n \"VideoDuration\": 3601,\n \"Md5\": \"\",\n \"Size\": 10556,\n \"Container\": \"m4a\",\n \"Duration\": 3601,\n \"Bitrate\": 246035,\n \"Height\": 480,\n \"Width\": 640,\n \"Rotate\": 0,\n \"VideoStreamSet\": [\n {\n \"Bitrate\": 246000,\n \"Height\": 480,\n \"Width\": 640,\n \"Codec\": \"h264\",\n \"Fps\": 222,\n \"CodecTag\": \"\",\n \"DynamicRangeInfo\": {\n \"Type\": \"SDR\",\n \"HDRType\": \"\"\n }\n }\n ],\n \"AudioStreamSet\": [\n {\n \"Codec\": \"aac\",\n \"SamplingRate\": 44100,\n \"Bitrate\": 35\n }\n ]\n },\n \"Input\": {\n \"InputType\": \"Stream\",\n \"FileInfoSet\": [\n {\n \"FileId\": \"4565514956192708397\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 30\n },\n {\n \"FileId\": \"4565514956192708396\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 30\n }\n ],\n \"StreamInfoSet\": [\n {\n \"StreamId\": \"29920_stream\",\n \"StartTime\": \"2019-02-20T06:21:00Z\",\n \"EndTime\": \"2019-02-20T06:21:30Z\"\n }\n ]\n },\n \"Output\": {\n \"FileType\": \"mp4\",\n \"FileId\": \"4565514956222184986\",\n \"FileUrl\": \"http://12530394xx.vod2.myqcloud.com/9395476dvodcq1253039488/f0e1f8314565514956222184986/playlist.f9.mp4\"\n },\n \"ProcedureTaskId\": \"\"\n },\n \"ComposeMediaTask\": null,\n \"SplitMediaTask\": null,\n \"WechatMiniProgramPublishTask\": null,\n \"WechatPublishTask\": null,\n \"TranscodeTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"PullUploadTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"QualityInspectTask\": null,\n \"QualityEnhanceTask\": null,\n \"ComplexAdaptiveDynamicStreamingTask\": null,\n \"RequestId\": \"sdfadf\"\n }\n}",
1028
1036
  "title": "获取任务详情-EditMedia"
1029
1037
  },
1030
1038
  {
1031
1039
  "document": "获取任务详情-任务流",
1032
1040
  "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskDetail\n<公共请求参数>\n\n{\n \"TaskId\": \"12567683xx-Procedure-633031cd8293ef29d39251ea751b69f2t0\"\n}",
1033
- "output": "{\n \"Response\": {\n \"TaskType\": \"Procedure\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-02-21T08:27:42Z\",\n \"BeginProcessTime\": \"2019-02-21T08:27:43Z\",\n \"FinishTime\": \"2019-02-21T08:27:44Z\",\n \"ProcedureTask\": {\n \"TaskId\": \"12567683xx-Procedure-2e1af2456351812be963e309cc133403t0\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"SessionContext\": \"\",\n \"SessionId\": \"\",\n \"Operator\": \"\",\n \"OperationType\": \"\",\n \"FileId\": \"5285890784246869930\",\n \"FileName\": \"small\",\n \"FileUrl\": \"http://12567683xx.vod2.myqcloud.com/1c1ae5d2vodgzp12567683xx/c643347c5285890784246869930/AtUCmy6gmIYA.mp4\",\n \"MetaData\": {\n \"AudioDuration\": 3601,\n \"VideoDuration\": 3601,\n \"Md5\": \"\",\n \"Size\": 10556,\n \"Container\": \"m4a\",\n \"Duration\": 3601,\n \"Bitrate\": 246035,\n \"Height\": 480,\n \"Width\": 640,\n \"Rotate\": 0,\n \"VideoStreamSet\": [\n {\n \"Bitrate\": 246000,\n \"Height\": 480,\n \"Width\": 640,\n \"Codec\": \"h264\",\n \"Fps\": 222,\n \"CodecTag\": \"\",\n \"DynamicRangeInfo\": {\n \"Type\": \"SDR\",\n \"HDRType\": \"\"\n }\n }\n ],\n \"AudioStreamSet\": [\n {\n \"Codec\": \"aac\",\n \"SamplingRate\": 44100,\n \"Bitrate\": 35\n }\n ]\n },\n \"MediaProcessResultSet\": [],\n \"AiContentReviewResultSet\": [],\n \"AiRecognitionResultSet\": [],\n \"AiAnalysisResultSet\": [],\n \"TasksPriority\": 0,\n \"TasksNotifyMode\": \"\"\n },\n \"ComposeMediaTask\": null,\n \"SplitMediaTask\": null,\n \"WechatMiniProgramPublishTask\": null,\n \"EditMediaTask\": null,\n \"WechatPublishTask\": null,\n \"TranscodeTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"PullUploadTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"QualityInspectTask\": null,\n \"QualityEnhanceTask\": null,\n \"RequestId\": \"sdfadf\"\n }\n}",
1041
+ "output": "{\n \"Response\": {\n \"TaskType\": \"Procedure\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-02-21T08:27:42Z\",\n \"BeginProcessTime\": \"2019-02-21T08:27:43Z\",\n \"FinishTime\": \"2019-02-21T08:27:44Z\",\n \"ProcedureTask\": {\n \"TaskId\": \"12567683xx-Procedure-2e1af2456351812be963e309cc133403t0\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"SessionContext\": \"\",\n \"SessionId\": \"\",\n \"Operator\": \"\",\n \"OperationType\": \"\",\n \"FileId\": \"5285890784246869930\",\n \"FileName\": \"small\",\n \"FileUrl\": \"http://12567683xx.vod2.myqcloud.com/1c1ae5d2vodgzp12567683xx/c643347c5285890784246869930/AtUCmy6gmIYA.mp4\",\n \"MetaData\": {\n \"AudioDuration\": 3601,\n \"VideoDuration\": 3601,\n \"Md5\": \"\",\n \"Size\": 10556,\n \"Container\": \"m4a\",\n \"Duration\": 3601,\n \"Bitrate\": 246035,\n \"Height\": 480,\n \"Width\": 640,\n \"Rotate\": 0,\n \"VideoStreamSet\": [\n {\n \"Bitrate\": 246000,\n \"Height\": 480,\n \"Width\": 640,\n \"Codec\": \"h264\",\n \"Fps\": 222,\n \"CodecTag\": \"\",\n \"DynamicRangeInfo\": {\n \"Type\": \"SDR\",\n \"HDRType\": \"\"\n }\n }\n ],\n \"AudioStreamSet\": [\n {\n \"Codec\": \"aac\",\n \"SamplingRate\": 44100,\n \"Bitrate\": 35\n }\n ]\n },\n \"MediaProcessResultSet\": [],\n \"AiContentReviewResultSet\": [],\n \"AiRecognitionResultSet\": [],\n \"AiAnalysisResultSet\": [],\n \"TasksPriority\": 0,\n \"TasksNotifyMode\": \"\"\n },\n \"ComposeMediaTask\": null,\n \"SplitMediaTask\": null,\n \"WechatMiniProgramPublishTask\": null,\n \"EditMediaTask\": null,\n \"WechatPublishTask\": null,\n \"TranscodeTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"PullUploadTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"QualityInspectTask\": null,\n \"QualityEnhanceTask\": null,\n \"ComplexAdaptiveDynamicStreamingTask\": null,\n \"RequestId\": \"sdfadf\"\n }\n}",
1034
1042
  "title": "获取任务详情-Procedure"
1035
1043
  },
1036
1044
  {
1037
1045
  "document": "获取任务详情-转码",
1038
1046
  "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskDetail\n<公共请求参数>\n\n{\n \"TaskId\": \"12567683xx-transcode-58a1bc57b1c23ed1079597ec17a47666t0\"\n}",
1039
- "output": "{\n \"Response\": {\n \"TaskType\": \"Transcode\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-01-22T06:50:31Z\",\n \"BeginProcessTime\": \"2019-01-22T06:50:32Z\",\n \"FinishTime\": \"2019-01-22T06:50:45Z\",\n \"ProcedureTask\": null,\n \"EditMediaTask\": null,\n \"TranscodeTask\": {\n \"TaskId\": \"12567683xx-transcode-58a1bc57b1c23ed1079597ec17a47666t0\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"FileId\": \"5285890784246869930\",\n \"FileName\": \"small\",\n \"Duration\": 60,\n \"CoverUrl\": \"http://12567683xx.vod2.myqcloud.com/d042887avodtransgzp12567683xx/c643347c5285890784246869930/1546950643_4191274987.100_0.jpg\",\n \"PlayInfoSet\": [\n {\n \"Url\": \"http://12567683xx.vod2.myqcloud.com/1c1ae5d2vodgzp12567683xx/c643347c5285890784246869930/AtUCmy6gmIYA.mp4\",\n \"Definition\": 0,\n \"Bitrate\": 1021028,\n \"Height\": 480,\n \"Width\": 640\n },\n {\n \"Url\": \"http://12567683xx.vod2.myqcloud.com/d042887avodtransgzp12567683xx/c643347c5285890784246869930/v.f10.mp4\",\n \"Definition\": 10,\n \"Bitrate\": 304695,\n \"Height\": 240,\n \"Width\": 320\n }\n ]\n },\n \"ComposeMediaTask\": null,\n \"WechatMiniProgramPublishTask\": null,\n \"SplitMediaTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"WechatPublishTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"PullUploadTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"QualityInspectTask\": null,\n \"QualityEnhanceTask\": null,\n \"RequestId\": \"62597d15-3fad-4234-af1a-ed33602a6118\"\n }\n}",
1047
+ "output": "{\n \"Response\": {\n \"TaskType\": \"Transcode\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-01-22T06:50:31Z\",\n \"BeginProcessTime\": \"2019-01-22T06:50:32Z\",\n \"FinishTime\": \"2019-01-22T06:50:45Z\",\n \"ProcedureTask\": null,\n \"EditMediaTask\": null,\n \"TranscodeTask\": {\n \"TaskId\": \"12567683xx-transcode-58a1bc57b1c23ed1079597ec17a47666t0\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"FileId\": \"5285890784246869930\",\n \"FileName\": \"small\",\n \"Duration\": 60,\n \"CoverUrl\": \"http://12567683xx.vod2.myqcloud.com/d042887avodtransgzp12567683xx/c643347c5285890784246869930/1546950643_4191274987.100_0.jpg\",\n \"PlayInfoSet\": [\n {\n \"Url\": \"http://12567683xx.vod2.myqcloud.com/1c1ae5d2vodgzp12567683xx/c643347c5285890784246869930/AtUCmy6gmIYA.mp4\",\n \"Definition\": 0,\n \"Bitrate\": 1021028,\n \"Height\": 480,\n \"Width\": 640\n },\n {\n \"Url\": \"http://12567683xx.vod2.myqcloud.com/d042887avodtransgzp12567683xx/c643347c5285890784246869930/v.f10.mp4\",\n \"Definition\": 10,\n \"Bitrate\": 304695,\n \"Height\": 240,\n \"Width\": 320\n }\n ]\n },\n \"ComposeMediaTask\": null,\n \"WechatMiniProgramPublishTask\": null,\n \"SplitMediaTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"WechatPublishTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"PullUploadTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"QualityInspectTask\": null,\n \"QualityEnhanceTask\": null,\n \"ComplexAdaptiveDynamicStreamingTask\": null,\n \"RequestId\": \"62597d15-3fad-4234-af1a-ed33602a6118\"\n }\n}",
1040
1048
  "title": "获取任务详情-Transcode"
1041
1049
  },
1042
1050
  {
1043
1051
  "document": "获取任务详情-微信小程序发布",
1044
1052
  "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskDetail\n<公共请求参数>\n\n{\n \"TaskId\": \"1253339xxx-wechat-mini-program-publish-e576984516ec3b3c8e49753adf6b0688t0\"\n}",
1045
- "output": "{\n \"Response\": {\n \"TaskType\": \"WechatMiniProgramPublish\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-06-23T13:04:42Z\",\n \"BeginProcessTime\": \"2019-06-23T13:04:42Z\",\n \"FinishTime\": \"2019-06-23T13:04:53Z\",\n \"ProcedureTask\": null,\n \"EditMediaTask\": null,\n \"ComposeMediaTask\": null,\n \"WechatPublishTask\": null,\n \"PullUploadTask\": null,\n \"WechatMiniProgramPublishTask\": {\n \"TaskId\": \"1253339xxx-wechat-mini-program-publish-e576984516ec3b3c8e49753adf6b0688t0\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"FileId\": \"5285890789444337543\",\n \"SourceDefinition\": 0,\n \"PublishResult\": \"Pass\"\n },\n \"SplitMediaTask\": null,\n \"TranscodeTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"QualityInspectTask\": null,\n \"QualityEnhanceTask\": null,\n \"RequestId\": \"04db7d25-f590-414a-a341-8f1584f15f84\"\n }\n}",
1053
+ "output": "{\n \"Response\": {\n \"TaskType\": \"WechatMiniProgramPublish\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-06-23T13:04:42Z\",\n \"BeginProcessTime\": \"2019-06-23T13:04:42Z\",\n \"FinishTime\": \"2019-06-23T13:04:53Z\",\n \"ProcedureTask\": null,\n \"EditMediaTask\": null,\n \"ComposeMediaTask\": null,\n \"WechatPublishTask\": null,\n \"PullUploadTask\": null,\n \"WechatMiniProgramPublishTask\": {\n \"TaskId\": \"1253339xxx-wechat-mini-program-publish-e576984516ec3b3c8e49753adf6b0688t0\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"FileId\": \"5285890789444337543\",\n \"SourceDefinition\": 0,\n \"PublishResult\": \"Pass\"\n },\n \"SplitMediaTask\": null,\n \"TranscodeTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"QualityInspectTask\": null,\n \"QualityEnhanceTask\": null,\n \"ComplexAdaptiveDynamicStreamingTask\": null,\n \"RequestId\": \"04db7d25-f590-414a-a341-8f1584f15f84\"\n }\n}",
1046
1054
  "title": "获取任务详情-WechatMiniProgramPublish"
1047
1055
  }
1048
1056
  ],
@@ -1078,7 +1086,7 @@
1078
1086
  {
1079
1087
  "document": "查询所有域名的信息。",
1080
1088
  "input": "https://vod.tencentcloudapi.com/?Action=DescribeVodDomains\n&<公共请求参数>",
1081
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"DomainSet\": [\n {\n \"Domain\": \"myexample.com\",\n \"AccelerateAreaInfos\": [\n {\n \"Area\": \"Internation\",\n \"TencentDisableReason\": \"\",\n \"TencentEdgeDomain\": \"myexmample.com.dnsv1.com\"\n }\n ],\n \"RefererAuthPolicy\": {\n \"Status\": \"Disabled\",\n \"AuthType\": \"\",\n \"BlankRefererAllowed\": \"No\",\n \"Referers\": []\n },\n \"DeployStatus\": \"Deploying\",\n \"HTTPSConfig\": {\n \"CloudCertId\": \"abc\",\n \"CertExpireTime\": \"2030-01-23T07:25:52Z\"\n },\n \"UrlSignatureAuthPolicy\": {\n \"Status\": \"Enabled\",\n \"EncryptedKey\": \"acmowmeomeo13432a\"\n },\n \"CreateTime\": \"2019-12-23T07:25:52Z\",\n \"QUICConfig\": null\n }\n ],\n \"RequestId\": \"aeomo-133w3-amomow-22\"\n }\n}",
1089
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"DomainSet\": [\n {\n \"Domain\": \"myexample.com\",\n \"AccelerateAreaInfos\": [\n {\n \"Area\": \"Internation\",\n \"TencentDisableReason\": \"\",\n \"TencentEdgeDomain\": \"myexmample.com.dnsv1.com\"\n }\n ],\n \"RefererAuthPolicy\": {\n \"Status\": \"Disabled\",\n \"AuthType\": \"\",\n \"BlankRefererAllowed\": \"No\",\n \"Referers\": []\n },\n \"DeployStatus\": \"Deploying\",\n \"HTTPSConfig\": {\n \"CloudCertId\": \"abc\",\n \"CertExpireTime\": \"2030-01-23T07:25:52Z\"\n },\n \"UrlSignatureAuthPolicy\": {\n \"Status\": \"Enabled\",\n \"EncryptedKey\": \"acmowmeomeo13432a\"\n },\n \"CreateTime\": \"2019-12-23T07:25:52Z\",\n \"QUICConfig\": null,\n \"IPFilterPolicy\": null\n }\n ],\n \"RequestId\": \"aeomo-133w3-amomow-22\"\n }\n}",
1082
1090
  "title": "查询所有域名"
1083
1091
  }
1084
1092
  ],
@@ -1566,6 +1574,18 @@
1566
1574
  "input": "https://vod.tencentcloudapi.com/?Action=ModifyVodDomainConfig\n&Domain=myexample.com\n&RefererAuthPolicy.Status=Enabled\n&RefererAuthPolicy.AuthType=Black\n&RefererAuthPolicy.Referers.0=example.com\n&RefererAuthPolicy.BlankRefererAllowed=Yes\n&<公共请求参数>",
1567
1575
  "output": "{\n \"Response\": {\n \"RequestId\": \"12ae8d8e-dce3-4551-9d4b-5594145287e1\"\n }\n}",
1568
1576
  "title": "设置域名的 Referer 防盗链"
1577
+ },
1578
+ {
1579
+ "document": "设置域名的 IP 黑名单,拦截来自该黑名单的请求对加速域名的访问。",
1580
+ "input": "https://vod.tencentcloudapi.com/?Action=ModifyVodDomainConfig\n&Domain=myexample.com\n&IPFilterPolicy.Status=Enabled\n&IPFilterPolicy.FilterType=Black\n&IPFilterPolicy.IPList.0=1.1.1.1\n&IPFilterPolicy.IPList.1=2.3.4.5\n&<公共请求参数>",
1581
+ "output": "{\n \"Response\": {\n \"RequestId\": \"12ae8d8e-dce3-4551-9d4b-55941457e1\"\n }\n}",
1582
+ "title": "设置域名的 IP 黑名单"
1583
+ },
1584
+ {
1585
+ "document": "设置域名的 IP 白名单,允许来自该白名单的请求对加速域名的访问。",
1586
+ "input": "https://vod.tencentcloudapi.com/?Action=ModifyVodDomainConfig\n&Domain=myexample.com\n&IPFilterPolicy.Status=Enabled\n&IPFilterPolicy.FilterType=White\n&IPFilterPolicy.IPList.0=1.2.3.4\n&IPFilterPolicy.IPList.1=2.3.4.5\n&<公共请求参数>",
1587
+ "output": "{\n \"Response\": {\n \"RequestId\": \"1536ae8d8e-dce3-4551-9d4b-55f78201\"\n }\n}",
1588
+ "title": "设置域名的 IP 白名单"
1569
1589
  }
1570
1590
  ],
1571
1591
  "ModifyWatermarkTemplate": [
@@ -20,7 +20,7 @@
20
20
  "members": [
21
21
  {
22
22
  "disabled": false,
23
- "document": "<b>点播[应用](/document/product/266/14574) ID。</b>",
23
+ "document": "<b>点播专业版[应用](/document/product/266/14574) ID。</b>",
24
24
  "example": "123456789012",
25
25
  "member": "uint64",
26
26
  "name": "SubAppId",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  {
31
31
  "disabled": false,
32
- "document": "按照下方语法组装好策略后,先序列化为字符串,再做 urlencode,结果作为 Policy 字段入参。服务端会对该字段做 urldecode,并按解析后的策略授予临时访问凭证权限,请按规范传入参数。\n注意: \n1.策略语法参照[访问管理策略](/document/product/598/10603)。\n2.策略中不能包含 principal 元素。\n3.策略的 action 元素仅支持:<li>name/vod:PutObject;</li><li>name/vod:ListParts;</li><li>name/vod:PostObject;</li><li>name/vod:InitiateMultipartUpload;</li><li>name/vod:UploadPart;</li><li>name/vod:CompleteMultipartUpload;</li><li>name/vod:AbortMultipartUpload;</li><li>name/vod:ListMultipartUploads;</li>4.策略的 resource 元素填写格式为:qcs::vod::uid/[账号AppID]:prefix//[子应用ID]/[存储桶ID]/[存储路径],其中账号AppID、子应用ID、存储桶ID和存储路径要按需填写,其他内容不允许改动,例:qcs::vod::uid/1:prefix//1/1/path。\n",
33
- "example": "%7B%22statement%22%3A%5B%7B%22action%22%3A%5B%22name%2Fvod%3APutObject%22%2C%22name%2Fvod%3AListParts%22%2C%22name%2Fvod%3APostObject%22%2C%22name%2Fvod%3AInitiateMultipartUpload%22%2C%22name%2Fvod%3AUploadPart%22%2C%22name%2Fvod%3ACompleteMultipartUpload%22%2C%22name%2Fvod%3AAbortMultipartUpload%22%2C%22name%2Fvod%3AListMultipartUploads%22%5D%2C%22effect%22%3A%22allow%22%2C%22resource%22%3A%5B%22qcs%3A%3Avod%3A%3Auid%2F1%3Aprefix%2F%2F1%2F1%2Fpath%22%5D%7D%5D%2C%22version%22%3A%222.0%22%7D",
32
+ "document": "按照下方语法组装好策略后,先序列化为字符串,再做 URL Encode,结果作为 Policy 字段入参。服务端会对该字段做 URL Decode,并按解析后的策略授予临时访问凭证权限,请按规范传入参数。\n注意: \n1.策略语法参照[访问管理策略](/document/product/598/10603)。\n2.策略中不能包含 principal 元素。\n3.策略的 action 元素仅支持:<li>name/vod:PutObject;</li><li>name/vod:ListParts;</li><li>name/vod:PostObject;</li><li>name/vod:InitiateMultipartUpload;</li><li>name/vod:UploadPart;</li><li>name/vod:CompleteMultipartUpload;</li><li>name/vod:AbortMultipartUpload;</li><li>name/vod:ListMultipartUploads;</li>4.策略的 resource 元素填写格式为:`qcs::vod:[存储地域]:uid/[账号AppID]:prefix//[点播应用ID]/[存储桶ID]/[存储路径]`,其中存储地域、账号 AppID、点播应用 ID、存储桶 ID 和存储路径要按需填写,其他内容不允许改动,例:`qcs:ap-chongqing:vod::uid/1231456789:prefix//1234567890/2ceds3ew323w3mu/file_path`。\n",
33
+ "example": "%7B%22statement%22%3A%5B%7B%22action%22%3A%5B%22name%2Fvod%3APutObject%22%2C%22name%2Fvod%3AListParts%22%2C%22name%2Fvod%3APostObject%22%2C%22name%2Fvod%3AInitiateMultipartUpload%22%2C%22name%2Fvod%3AUploadPart%22%2C%22name%2Fvod%3ACompleteMultipartUpload%22%2C%22name%2Fvod%3AAbortMultipartUpload%22%2C%22name%2Fvod%3AListMultipartUploads%22%5D%2C%22effect%22%3A%22allow%22%2C%22resource%22%3A%5B%22qcs%3Aap-chongqing%3Avod%3A%3Auid%2F1231456789%3Aprefix%2F%2F1234567890%2F2ceds3ew323w3mu%2Ffile_path%22%5D%7D%5D%2C%22version%22%3A%222.0%22%7D",
34
34
  "member": "string",
35
35
  "name": "Policy",
36
36
  "required": true,
@@ -71,12 +71,12 @@
71
71
  "type": "object"
72
72
  },
73
73
  "Credentials": {
74
- "document": "临时证书。",
74
+ "document": "临时访问凭证。",
75
75
  "members": [
76
76
  {
77
77
  "disabled": false,
78
- "document": "秘钥 ID。",
79
- "example": "AKID8GFED7s****QrFXkmb",
78
+ "document": "访问凭证 ID。",
79
+ "example": "***********************************",
80
80
  "member": "string",
81
81
  "name": "AccessKeyId",
82
82
  "output_required": false,
@@ -85,8 +85,8 @@
85
85
  },
86
86
  {
87
87
  "disabled": false,
88
- "document": "秘钥 Key。",
89
- "example": "iDVjy****tNzX",
88
+ "document": "访问凭证 Key。",
89
+ "example": "***********************************",
90
90
  "member": "string",
91
91
  "name": "SecretAccessKey",
92
92
  "output_required": false,
@@ -95,8 +95,8 @@
95
95
  },
96
96
  {
97
97
  "disabled": false,
98
- "document": "token。token长度和绑定的策略有关,最长不超过4096字节。",
99
- "example": "DmDnufzndGdwbCgFOnOdknwD8_uqeFwN0LqvDpfgHA6kBp1uMsIVRAil87ENVCnKZwe5GXUlPr7KTgAzTFf_3duZMpscnGh6Iyg7cjo_Hr4tIcMiZaK6NI8DO_fX5gcLqsI8qKeTaw2cVekzXnynAW",
98
+ "document": "访问凭证 Token,长度和绑定的策略有关,最长不超过 4096 字节。",
99
+ "example": "***********************************",
100
100
  "member": "string",
101
101
  "name": "SessionToken",
102
102
  "output_required": false,
@@ -105,7 +105,7 @@
105
105
  },
106
106
  {
107
107
  "disabled": false,
108
- "document": "凭据的过期时间。",
108
+ "document": "访问凭证的过期时间。",
109
109
  "example": "1800",
110
110
  "member": "datetime_iso",
111
111
  "name": "Expiration",
@@ -4,25 +4,25 @@
4
4
  {
5
5
  "document": "申请上传单个文件临时凭证",
6
6
  "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateStorageCredentials\n<公共请求参数>\n\n{\n \"SubAppId\": 220209,\n \"DurationSeconds\": 7200,\n \"Policy\": \"%7B%22statement%22%3A%5B%7B%22action%22%3A%5B%22name%2Fvod%3AInitiateMultipartUpload%22%2C%22name%2Fvod%3AListMultipartUploads%22%2C%22name%2Fvod%3AListParts%22%2C%22name%2Fvod%3AUploadPart%22%2C%22name%2Fvod%3ACompleteMultipartUpload%22%5D%2C%22effect%22%3A%22allow%22%2C%22resource%22%3A%5B%22qcs%3A%3Avod%3Aap-beijing%3Auid%2F251197738%3Aprefix%2F%2F220209%2Fa%2F001.png%22%5D%7D%5D%2C%22version%22%3A%222.0%22%7D\"\n}",
7
- "output": "{\n \"Response\": {\n \"Credentials\": {\n \"SessionToken\": \"kTRt***Jb7m\",\n \"AccessKeyId\": \"AKID****CjE6\",\n \"SecretAccessKey\": \"Eo28***7ps=\",\n \"Expiration\": \"2024-08-20T13:55:53Z\"\n },\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
7
+ "output": "{\n \"Response\": {\n \"Credentials\": {\n \"SessionToken\": \"***********************************\",\n \"AccessKeyId\": \"***********************************\",\n \"SecretAccessKey\": \"***********************************\",\n \"Expiration\": \"2024-08-20T13:55:53Z\"\n },\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
8
8
  "title": "申请上传单个文件临时凭证"
9
9
  },
10
10
  {
11
11
  "document": "申请上传多个文件临时凭证",
12
12
  "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateStorageCredentials\n<公共请求参数>\n\n{\n \"SubAppId\": 220209,\n \"DurationSeconds\": 7200,\n \"Policy\": \"%7B%22statement%22%3A%5B%7B%22action%22%3A%5B%22name%2Fvod%3AInitiateMultipartUpload%22%2C%22name%2Fvod%3AListMultipartUploads%22%2C%22name%2Fvod%3AListParts%22%2C%22name%2Fvod%3AUploadPart%22%2C%22name%2Fvod%3ACompleteMultipartUpload%22%5D%2C%22effect%22%3A%22allow%22%2C%22resource%22%3A%5B%22qcs%3A%3Avod%3Aap-beijing%3Auid%2F251197738%3Aprefix%2F%2F220209%2Fa%2F1024x1024.png%22%2C%22qcs%3A%3Avod%3Aap-beijing%3Auid%2F251197738%3Aprefix%2F%2F220209%2Fa%2Fb%2Fc%2F1042x1042.png%22%2C%22qcs%3A%3Avod%3Aap-beijing%3Auid%2F251197738%3Aprefix%2F%2F220209%2Fpath%2F2060.gif_wh300.gif%22%5D%7D%5D%2C%22version%22%3A%222.0%22%7D\"\n}",
13
- "output": "{\n \"Response\": {\n \"Credentials\": {\n \"SessionToken\": \"kTRt***Jb7m\",\n \"AccessKeyId\": \"AKID****CjE6\",\n \"SecretAccessKey\": \"Eo28***7ps=\",\n \"Expiration\": \"2024-08-20T13:55:53Z\"\n },\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
13
+ "output": "{\n \"Response\": {\n \"Credentials\": {\n \"SessionToken\": \"***********************************\",\n \"AccessKeyId\": \"***********************************\",\n \"SecretAccessKey\": \"***********************************\",\n \"Expiration\": \"2024-08-20T13:55:53Z\"\n },\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
14
14
  "title": "申请上传多个文件临时凭证"
15
15
  },
16
16
  {
17
17
  "document": "申请列出桶内指定对象键前缀所有对象的临时凭证",
18
18
  "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateStorageCredentials\n<公共请求参数>\n\n{\n \"SubAppId\": 220209,\n \"DurationSeconds\": 7200,\n \"Policy\": \"%7B%22statement%22%3A%5B%7B%22action%22%3A%5B%22name%2Fvod%3AGetBucket%22%5D%2C%22effect%22%3A%22allow%22%2C%22resource%22%3A%5B%22qcs%3A%3Avod%3Aap-beijing%3Auid%2F251197738%3Aprefix%2F%2F220209%2F98gw6e1b4hds0zh%2F%22%5D%7D%5D%2C%22version%22%3A%222.0%22%7D\"\n}",
19
- "output": "{\n \"Response\": {\n \"Credentials\": {\n \"SessionToken\": \"kTRt***Jb7m\",\n \"AccessKeyId\": \"AKID****CjE6\",\n \"SecretAccessKey\": \"Eo28***7ps=\",\n \"Expiration\": \"2024-08-20T13:55:53Z\"\n },\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
19
+ "output": "{\n \"Response\": {\n \"Credentials\": {\n \"SessionToken\": \"***********************************\",\n \"AccessKeyId\": \"***********************************\",\n \"SecretAccessKey\": \"***********************************\",\n \"Expiration\": \"2024-08-20T13:55:53Z\"\n },\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
20
20
  "title": "申请列出桶内指定对象键前缀所有对象的临时凭证"
21
21
  },
22
22
  {
23
23
  "document": "申请自动就近上传文件的临时凭证",
24
24
  "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateStorageCredentials\n<公共请求参数>\n\n{\n \"SubAppId\": 220209,\n \"DurationSeconds\": 7200,\n \"Policy\": \"%7B%22statement%22%3A%5B%7B%22action%22%3A%5B%22name%2Fvod%3AInitiateMultipartUpload%22%2C%22name%2Fvod%3AListMultipartUploads%22%2C%22name%2Fvod%3AListParts%22%2C%22name%2Fvod%3AUploadPart%22%2C%22name%2Fvod%3ACompleteMultipartUpload%22%5D%2C%22effect%22%3A%22allow%22%2C%22resource%22%3A%5B%22qcs%3A%3Avod%3Aauto%3Auid%2F251197738%3Aprefix%2F%2F220209%2Fauto%2F001.png%22%5D%7D%5D%2C%22version%22%3A%222.0%22%7D\"\n}",
25
- "output": "{\n \"Response\": {\n \"Credentials\": {\n \"SessionToken\": \"kTRt***Jb7m\",\n \"AccessKeyId\": \"AKID****CjE6\",\n \"SecretAccessKey\": \"Eo28***7ps=\",\n \"Expiration\": \"2024-08-20T13:55:53Z\"\n },\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
25
+ "output": "{\n \"Response\": {\n \"Credentials\": {\n \"SessionToken\": \"***********************************\",\n \"AccessKeyId\": \"***********************************\",\n \"SecretAccessKey\": \"***********************************\",\n \"Expiration\": \"2024-08-20T13:55:53Z\"\n },\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
26
26
  "title": "申请自动就近上传文件的临时凭证"
27
27
  }
28
28
  ]
@@ -5271,6 +5271,58 @@ def doPullUpload(args, parsed_globals):
5271
5271
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5272
5272
 
5273
5273
 
5274
+ def doCreateComplexAdaptiveDynamicStreamingTask(args, parsed_globals):
5275
+ g_param = parse_global_arg(parsed_globals)
5276
+
5277
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5278
+ cred = credential.CVMRoleCredential()
5279
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5280
+ cred = credential.STSAssumeRoleCredential(
5281
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5282
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5283
+ )
5284
+ 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):
5285
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5286
+ else:
5287
+ cred = credential.Credential(
5288
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5289
+ )
5290
+ http_profile = HttpProfile(
5291
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5292
+ reqMethod="POST",
5293
+ endpoint=g_param[OptionsDefine.Endpoint],
5294
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5295
+ )
5296
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5297
+ if g_param[OptionsDefine.Language]:
5298
+ profile.language = g_param[OptionsDefine.Language]
5299
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5300
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
5301
+ client._sdkVersion += ("_CLI_" + __version__)
5302
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5303
+ model = models.CreateComplexAdaptiveDynamicStreamingTaskRequest()
5304
+ model.from_json_string(json.dumps(args))
5305
+ start_time = time.time()
5306
+ while True:
5307
+ rsp = client.CreateComplexAdaptiveDynamicStreamingTask(model)
5308
+ result = rsp.to_json_string()
5309
+ try:
5310
+ json_obj = json.loads(result)
5311
+ except TypeError as e:
5312
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5313
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5314
+ break
5315
+ cur_time = time.time()
5316
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5317
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5318
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5319
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5320
+ else:
5321
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5322
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5323
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5324
+
5325
+
5274
5326
  def doModifyTranscodeTemplate(args, parsed_globals):
5275
5327
  g_param = parse_global_arg(parsed_globals)
5276
5328
 
@@ -9545,6 +9597,7 @@ ACTION_MAP = {
9545
9597
  "ModifyVodDomainConfig": doModifyVodDomainConfig,
9546
9598
  "DescribeSnapshotByTimeOffsetTemplates": doDescribeSnapshotByTimeOffsetTemplates,
9547
9599
  "PullUpload": doPullUpload,
9600
+ "CreateComplexAdaptiveDynamicStreamingTask": doCreateComplexAdaptiveDynamicStreamingTask,
9548
9601
  "ModifyTranscodeTemplate": doModifyTranscodeTemplate,
9549
9602
  "ReviewAudioVideo": doReviewAudioVideo,
9550
9603
  "ModifyHeadTailTemplate": doModifyHeadTailTemplate,