tccli 3.0.1159.1__py2.py3-none-any.whl → 3.0.1161.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/aiart/v20221229/api.json +12 -15
- tccli/services/apm/v20210622/api.json +9 -0
- tccli/services/cdb/v20170320/api.json +3 -1
- tccli/services/cdwdoris/cdwdoris_client.py +1056 -49
- tccli/services/cdwdoris/v20211228/api.json +3192 -1014
- tccli/services/cdwdoris/v20211228/examples.json +152 -0
- tccli/services/cfg/cfg_client.py +224 -12
- tccli/services/cfg/v20210820/api.json +897 -32
- tccli/services/cfg/v20210820/examples.json +32 -0
- tccli/services/cfw/v20190904/api.json +12 -2
- tccli/services/cls/v20201016/api.json +11 -1
- tccli/services/cme/v20191029/api.json +9 -9
- tccli/services/cme/v20191029/examples.json +1 -1
- tccli/services/csip/csip_client.py +53 -0
- tccli/services/csip/v20221121/api.json +136 -2
- tccli/services/csip/v20221121/examples.json +8 -0
- tccli/services/cwp/v20180228/api.json +66 -46
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/dlc/v20210125/api.json +31 -2
- tccli/services/dnspod/v20210323/api.json +1 -1
- tccli/services/domain/v20180808/api.json +1 -1
- tccli/services/ess/v20201111/api.json +4 -4
- tccli/services/ess/v20201111/examples.json +6 -6
- tccli/services/essbasic/v20210526/api.json +21 -12
- tccli/services/essbasic/v20210526/examples.json +7 -1
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/iotexplorer/v20190423/api.json +25 -25
- tccli/services/iotexplorer/v20190423/examples.json +10 -4
- tccli/services/lcic/lcic_client.py +57 -4
- tccli/services/lcic/v20220817/api.json +52 -0
- tccli/services/lcic/v20220817/examples.json +8 -0
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +563 -9
- tccli/services/ocr/v20181119/api.json +10 -0
- tccli/services/trro/v20220325/api.json +181 -6
- tccli/services/trro/v20220325/examples.json +3 -3
- tccli/services/trtc/trtc_client.py +53 -0
- tccli/services/trtc/v20190722/api.json +83 -10
- tccli/services/trtc/v20190722/examples.json +27 -13
- tccli/services/tsf/v20180326/api.json +8 -7
- tccli/services/tsf/v20180326/examples.json +1 -1
- tccli/services/vclm/v20240523/api.json +137 -1
- tccli/services/vclm/v20240523/examples.json +46 -0
- tccli/services/vclm/vclm_client.py +106 -0
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/vtc/v20240223/api.json +1 -1
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1161.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1161.1.dist-info}/RECORD +52 -52
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1161.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1161.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1159.1.dist-info → tccli-3.0.1161.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"ControlAIConversation": [
|
4
|
+
{
|
5
|
+
"document": "当您想让机器人主动播报文本的时候,可以使用该接口",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ControlAIConversation\n<公共请求参数>\n\n{\n \"TaskId\": \"your-taskid\",\n \"Command\": \"ServerPushText\",\n \"ServerPushText\": {\n \"Text\": \"你好很高兴为您服务\",\n \"Interrupt\": true\n }\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"xxx-xxx\"\n }\n}",
|
8
|
+
"title": "发送播报文本"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"CreateCloudRecording": [
|
4
12
|
{
|
5
13
|
"document": "启动SdkAppId 为 1234 指定房间(房间号为3560)的云端录制。\n\n房间空闲等待时间设置为1分钟。\n录制模式为合流模式。\n录制的流类型为音视频。\n默认订阅所有用户的流。\n录制视频的宽度360,录制视频的高度640,帧率15,比特率500,000bps,默认背景色。\n录制视频布局模式为九宫格布局。\n存储至腾讯云点播VOD",
|
@@ -331,33 +339,39 @@
|
|
331
339
|
"StartPublishCdnStream": [
|
332
340
|
{
|
333
341
|
"document": "无",
|
334
|
-
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"
|
342
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": 720,\n \"Width\": 1280,\n \"Fps\": 15,\n \"BitRate\": 1536,\n \"Gop\": 2\n },\n \"LayoutParams\": {\n \"PureAudioHoldPlaceMode\": 0,\n \"MixLayoutMode\": 4,\n \"MixLayoutList\": [\n {\n \"LocationX\": 0,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n },\n {\n \"LocationX\": 640,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_1\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n }\n ]\n },\n \"BackGroundColor\": \"0xFF0000\",\n \"WaterMarkList\": [\n {\n \"WaterMarkType\": 0,\n \"WaterMarkImage\": {\n \"LocationX\": 64,\n \"LocationY\": 64,\n \"WaterMarkHeight\": 64,\n \"WaterMarkWidth\": 64,\n \"WaterMarkUrl\": \"https://xkt-course-1304449343.cos.ap-beijing.myqcloud.com/test/mark/37f9eb62-ca72-430e-bfca-e700b59b20e0.png\",\n \"ZOrder\": 3\n }\n }\n ]\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 1\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 1,\n \"RoomId\": \"295066\"\n}",
|
335
343
|
"output": "{\n \"Response\": {\n \"TaskId\": \"-m97l2ZU7vxyBSmXYsRx1Xy9Kf4bVVfbbhSKC4K-4pycoZWKv542xbi139uTvGt1zAHoAQ..\",\n \"RequestId\": \"b934c535-8d82-4f52-bd52-a1cbb043c4be\"\n }\n}",
|
336
|
-
"title": "
|
344
|
+
"title": "发起音视频混流转推 CDN"
|
337
345
|
},
|
338
346
|
{
|
339
347
|
"document": "无",
|
340
|
-
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }
|
341
|
-
"output": "{\n \"Response\": {\n \"
|
342
|
-
"title": "
|
348
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n },\n \"SubscribeAudioList\": [\n {\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n },\n {\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_1\"\n }\n }\n ]\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 1\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 1,\n \"RoomId\": \"295066\"\n}",
|
349
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"388014ec-a0b8-4b8f-86bc-1f467448f5f0\",\n \"TaskId\": \"-m9lnV5U7nj4rkLBWMXF9n8-EohONCXbalWuLYK-4pycoZWQndibcqSVnrlqKF5om7EIDVk4awE.\"\n }\n}",
|
350
|
+
"title": "发起纯音频混流转推 CDN"
|
343
351
|
},
|
344
352
|
{
|
345
353
|
"document": "无",
|
346
|
-
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"
|
354
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": 720,\n \"Width\": 1280,\n \"Fps\": 15,\n \"BitRate\": 1536,\n \"Gop\": 2\n }\n },\n \"SingleSubscribeParams\": {\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n }\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 1\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 0,\n \"RoomId\": \"295066\"\n}",
|
347
355
|
"output": "{\n \"Response\": {\n \"TaskId\": \"-m97l2ZU7tq6nEsHR89259B8aCDblqnbGhWKC4K-4pycoZWpyHnld1jC9aCD+EU7V8WRAQ..\",\n \"RequestId\": \"f23d95bf-ddaf-4d0c-86c0-6bf50c74c0a0\"\n }\n}",
|
348
|
-
"title": "发起单流音视频旁路转推"
|
356
|
+
"title": "发起单流音视频旁路转推 CDN"
|
349
357
|
},
|
350
358
|
{
|
351
359
|
"document": "无",
|
352
|
-
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"
|
353
|
-
"output": "{\n \"Response\": {\n \"TaskId\": \"-
|
354
|
-
"title": "
|
360
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"SingleSubscribeParams\": {\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n }\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 1\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 0,\n \"RoomId\": \"295066\"\n}",
|
361
|
+
"output": "{\n \"Response\": {\n \"TaskId\": \"-m97l2ZU7r57nZBesMa84KgzxhH0OBbbCRaKC4K-4pycoZW7yFPtusNuZOen1Ca0qtQQAQ..\",\n \"RequestId\": \"ef089f8b-d0d1-4131-894d-4edd68d61605\"\n }\n}",
|
362
|
+
"title": "发起单流纯音频旁路转推 CDN"
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"document": "",
|
366
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": 720,\n \"Width\": 1280,\n \"Fps\": 15,\n \"BitRate\": 1536,\n \"Gop\": 2\n },\n \"LayoutParams\": {\n \"PureAudioHoldPlaceMode\": 0,\n \"MixLayoutMode\": 4,\n \"MixLayoutList\": [\n {\n \"LocationX\": 0,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n },\n {\n \"LocationX\": 640,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_1\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n }\n ]\n },\n \"BackGroundColor\": \"0xFF0000\",\n \"WaterMarkList\": [\n {\n \"WaterMarkType\": 0,\n \"WaterMarkImage\": {\n \"LocationX\": 64,\n \"LocationY\": 64,\n \"WaterMarkHeight\": 64,\n \"WaterMarkWidth\": 64,\n \"WaterMarkUrl\": \"https://xkt-course-1304449343.cos.ap-beijing.myqcloud.com/test/mark/37f9eb62-ca72-430e-bfca-e700b59b20e0.png\",\n \"ZOrder\": 3\n }\n }\n ]\n },\n \"FeedBackRoomParams\": [\n {\n \"RoomId\": \"630777\",\n \"RoomIdType\": 0,\n \"UserId\": \"trtc_partner_test_2\",\n \"UserSig\": \"eJwtjEELgjAYhv-Ldy10m7mtQYcQOtklU6mLSFs1LVnzq4Tovwfa8Xmel-cD*zQLXsaDAhYQmI9stenQnu2o0eOpcrXHzvgKTY8V*8963dbOWQ2KLgihUkacTwXt3YCigpIlo0KyyZrBWW9ARZyQ-4O9gIJrYfK365M85PEw02HZPneNaJJbg4-1Nj6KQqZZacVhI1fw-QEkCzYe\"\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 1,\n \"RoomId\": \"295066\"\n}",
|
367
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"921e9cf6-b77c-4a7a-ab0e-c66a3e66fc59\",\n \"TaskId\": \"-m9lnV5U7n7TwoLKSsii1JivUn7DLDDbP16uLYK-4pycoZWQndib8GQJZEMMXFyOHe9Ds6WfxAE.\"\n }\n}",
|
368
|
+
"title": "发起音视频混流回推 TRTC 房间"
|
355
369
|
},
|
356
370
|
{
|
357
371
|
"document": "无",
|
358
|
-
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"
|
359
|
-
"output": "{\n \"Response\": {\n \"
|
360
|
-
"title": "
|
372
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": 720,\n \"Width\": 1280,\n \"Fps\": 15,\n \"BitRate\": 1536,\n \"Gop\": 2\n },\n \"LayoutParams\": {\n \"PureAudioHoldPlaceMode\": 0,\n \"MixLayoutMode\": 4,\n \"MixLayoutList\": [\n {\n \"LocationX\": 0,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_0\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n },\n {\n \"LocationX\": 640,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"Trtc_User_1\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 720,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n }\n ]\n },\n \"BackGroundColor\": \"0xFF0000\",\n \"WaterMarkList\": [\n {\n \"WaterMarkType\": 0,\n \"WaterMarkImage\": {\n \"LocationX\": 64,\n \"LocationY\": 64,\n \"WaterMarkHeight\": 64,\n \"WaterMarkWidth\": 64,\n \"WaterMarkUrl\": \"https://xkt-course-1304449343.cos.ap-beijing.myqcloud.com/test/mark/37f9eb62-ca72-430e-bfca-e700b59b20e0.png\",\n \"ZOrder\": 3\n }\n }\n ]\n },\n \"SeiParams\": {\n \"LayoutVolume\": {\n \"AppData\": \"layout_sei_test\",\n \"PayloadType\": 100,\n \"Interval\": 1000,\n \"FollowIdr\": 1\n }\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 1\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 1,\n \"RoomId\": \"295066\"\n}",
|
373
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6dfc18cc-2123-4a11-9591-f1e873fbbd65\",\n \"TaskId\": \"-m9lnV5U7nzo2Xwh48Dc-YCDrR5Bk8DbJ1WrLYK-4pycoZWQndibrNig9cq-7ljX4SenbKWlZAE.\"\n }\n}",
|
374
|
+
"title": "发起音视频混流转推 CDN ,输出数据带布局 SEI"
|
361
375
|
}
|
362
376
|
],
|
363
377
|
"StartStreamIngest": [
|
@@ -12457,19 +12457,19 @@
|
|
12457
12457
|
"members": [
|
12458
12458
|
{
|
12459
12459
|
"disabled": false,
|
12460
|
-
"document": "
|
12461
|
-
"example": "
|
12460
|
+
"document": "分组所属应用ID。",
|
12461
|
+
"example": "application-xxx",
|
12462
12462
|
"member": "string",
|
12463
|
-
"name": "
|
12464
|
-
"required":
|
12463
|
+
"name": "ApplicationId",
|
12464
|
+
"required": true,
|
12465
12465
|
"type": "string"
|
12466
12466
|
},
|
12467
12467
|
{
|
12468
12468
|
"disabled": false,
|
12469
|
-
"document": "
|
12470
|
-
"example": "
|
12469
|
+
"document": "搜索字段,模糊搜索groupName字段",
|
12470
|
+
"example": "foo-group",
|
12471
12471
|
"member": "string",
|
12472
|
-
"name": "
|
12472
|
+
"name": "SearchWord",
|
12473
12473
|
"required": false,
|
12474
12474
|
"type": "string"
|
12475
12475
|
},
|
@@ -12539,6 +12539,7 @@
|
|
12539
12539
|
"example": "null",
|
12540
12540
|
"member": "ContainGroupResult",
|
12541
12541
|
"name": "Result",
|
12542
|
+
"output_required": true,
|
12542
12543
|
"type": "object",
|
12543
12544
|
"value_allowed_null": false
|
12544
12545
|
},
|
@@ -734,7 +734,7 @@
|
|
734
734
|
{
|
735
735
|
"document": "查询容器部署组列表",
|
736
736
|
"input": "https://tsf.tencentcloudapi.com/?Action=DescribeContainerGroups\r\n&ApplicationId=application-xxxxxxx\r\n&Offset=0\r\n&Limit=10\r\n&<公共请求参数>",
|
737
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"41a08459-9e0b-4609-841b-0859d6f844e1\",\n \"Result\": {\n \"TotalCount\": 1,\n \"Content\": [\n {\n \"Server\": \"ccr.ccs.tencentyun.com\",\n \"CpuLimit\": \"2.00\",\n \"GroupId\": \"group-xxxxxxx\",\n \"ClusterId\": \"cls-xxxxxxx\",\n \"TagName\": \"20190517xxxxxxx\",\n \"CpuRequest\": \"\",\n \"MemLimit\": \"4096.00\",\n \"GroupName\": \"test\",\n \"CreateTime\": \"\",\n \"NamespaceId\": \"namespace-xxxxxxx\",\n \"MemRequest\": \"\",\n \"ClusterName\": \"示例\",\n \"NamespaceName\": \"test\"\n }\n ]\n }\n }\n}",
|
737
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"41a08459-9e0b-4609-841b-0859d6f844e1\",\n \"Result\": {\n \"TotalCount\": 1,\n \"Content\": [\n {\n \"Server\": \"ccr.ccs.tencentyun.com\",\n \"CpuLimit\": \"2.00\",\n \"GroupId\": \"group-xxxxxxx\",\n \"ClusterId\": \"cls-xxxxxxx\",\n \"TagName\": \"20190517xxxxxxx\",\n \"CpuRequest\": \"\",\n \"MemLimit\": \"4096.00\",\n \"GroupName\": \"test\",\n \"RepoName\": \"tsf_410xxxxxxx/test\",\n \"CreateTime\": \"\",\n \"NamespaceId\": \"namespace-xxxxxxx\",\n \"MemRequest\": \"\",\n \"ClusterName\": \"示例\",\n \"NamespaceName\": \"test\",\n \"Alias\": \"test\",\n \"KubeInjectEnable\": true,\n \"UpdatedTime\": \"\"\n }\n ]\n }\n }\n}",
|
738
738
|
"title": "查询容器部署组列表"
|
739
739
|
}
|
740
740
|
],
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"ConfirmVideoTranslateJob": {
|
4
4
|
"document": "确认视频转译结果",
|
5
5
|
"input": "ConfirmVideoTranslateJobRequest",
|
6
|
-
"name": "
|
6
|
+
"name": "确认视频转译结果",
|
7
7
|
"output": "ConfirmVideoTranslateJobResponse",
|
8
8
|
"status": "online"
|
9
9
|
},
|
@@ -14,6 +14,13 @@
|
|
14
14
|
"output": "DescribeImageAnimateJobResponse",
|
15
15
|
"status": "online"
|
16
16
|
},
|
17
|
+
"DescribePortraitSingJob": {
|
18
|
+
"document": "用于查询图片唱演任务。\n支持提交音频和图片生成唱演视频,满足社交娱乐、互动营销等场景的需求。",
|
19
|
+
"input": "DescribePortraitSingJobRequest",
|
20
|
+
"name": "查询图片唱演任务",
|
21
|
+
"output": "DescribePortraitSingJobResponse",
|
22
|
+
"status": "online"
|
23
|
+
},
|
17
24
|
"DescribeVideoStylizationJob": {
|
18
25
|
"document": "用于查询视频风格化任务。视频风格化支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。",
|
19
26
|
"input": "DescribeVideoStylizationJobRequest",
|
@@ -35,6 +42,13 @@
|
|
35
42
|
"output": "SubmitImageAnimateJobResponse",
|
36
43
|
"status": "online"
|
37
44
|
},
|
45
|
+
"SubmitPortraitSingJob": {
|
46
|
+
"document": "用于提交图片唱演任务。\n支持提交音频和图片生成唱演视频,满足社交娱乐、互动营销等场景的需求。",
|
47
|
+
"input": "SubmitPortraitSingJobRequest",
|
48
|
+
"name": "提交图片唱演任务",
|
49
|
+
"output": "SubmitPortraitSingJobResponse",
|
50
|
+
"status": "online"
|
51
|
+
},
|
38
52
|
"SubmitVideoStylizationJob": {
|
39
53
|
"document": "用于提交视频风格化任务。支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。",
|
40
54
|
"input": "SubmitVideoStylizationJobRequest",
|
@@ -246,6 +260,73 @@
|
|
246
260
|
],
|
247
261
|
"type": "object"
|
248
262
|
},
|
263
|
+
"DescribePortraitSingJobRequest": {
|
264
|
+
"document": "DescribePortraitSingJob请求参数结构体",
|
265
|
+
"members": [
|
266
|
+
{
|
267
|
+
"disabled": false,
|
268
|
+
"document": "任务ID",
|
269
|
+
"example": "1199999431088685056",
|
270
|
+
"member": "string",
|
271
|
+
"name": "JobId",
|
272
|
+
"required": true,
|
273
|
+
"type": "string"
|
274
|
+
}
|
275
|
+
],
|
276
|
+
"type": "object"
|
277
|
+
},
|
278
|
+
"DescribePortraitSingJobResponse": {
|
279
|
+
"document": "DescribePortraitSingJob返回参数结构体",
|
280
|
+
"members": [
|
281
|
+
{
|
282
|
+
"disabled": false,
|
283
|
+
"document": "任务ID",
|
284
|
+
"example": "1199999431088685056",
|
285
|
+
"member": "string",
|
286
|
+
"name": "JobId",
|
287
|
+
"output_required": false,
|
288
|
+
"type": "string",
|
289
|
+
"value_allowed_null": false
|
290
|
+
},
|
291
|
+
{
|
292
|
+
"disabled": false,
|
293
|
+
"document": "任务状态码\n—RUN:处理中\n—FAIL:处理失败\n—STOP:处理终止\n—DONE:处理完成",
|
294
|
+
"example": "[\"RUN\",\"FAIL\",\"STOP\",\"DONE\"]",
|
295
|
+
"member": "string",
|
296
|
+
"name": "StatusCode",
|
297
|
+
"output_required": false,
|
298
|
+
"type": "string",
|
299
|
+
"value_allowed_null": false
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"disabled": false,
|
303
|
+
"document": "任务状态信息",
|
304
|
+
"example": "[\"处理中\",\"处理失败\",\"处理中止\",\"处理完成\"]",
|
305
|
+
"member": "string",
|
306
|
+
"name": "StatusMsg",
|
307
|
+
"output_required": false,
|
308
|
+
"type": "string",
|
309
|
+
"value_allowed_null": false
|
310
|
+
},
|
311
|
+
{
|
312
|
+
"disabled": false,
|
313
|
+
"document": "生成视频的URL地址\n有效期24小时",
|
314
|
+
"example": "https://***/video.mp4",
|
315
|
+
"member": "string",
|
316
|
+
"name": "ResultVideoUrl",
|
317
|
+
"output_required": false,
|
318
|
+
"type": "string",
|
319
|
+
"value_allowed_null": false
|
320
|
+
},
|
321
|
+
{
|
322
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
323
|
+
"member": "string",
|
324
|
+
"name": "RequestId",
|
325
|
+
"type": "string"
|
326
|
+
}
|
327
|
+
],
|
328
|
+
"type": "object"
|
329
|
+
},
|
249
330
|
"DescribeVideoStylizationJobRequest": {
|
250
331
|
"document": "DescribeVideoStylizationJob请求参数结构体",
|
251
332
|
"members": [
|
@@ -534,6 +615,61 @@
|
|
534
615
|
],
|
535
616
|
"type": "object"
|
536
617
|
},
|
618
|
+
"SubmitPortraitSingJobRequest": {
|
619
|
+
"document": "SubmitPortraitSingJob请求参数结构体",
|
620
|
+
"members": [
|
621
|
+
{
|
622
|
+
"disabled": false,
|
623
|
+
"document": "传入音频URL地址。音频要求:\n—音频时长:不超过60秒\n—音频格式:mp3、wav、m4a",
|
624
|
+
"example": "https://***/audio.mp3",
|
625
|
+
"member": "string",
|
626
|
+
"name": "AudioUrl",
|
627
|
+
"required": true,
|
628
|
+
"type": "string"
|
629
|
+
},
|
630
|
+
{
|
631
|
+
"disabled": false,
|
632
|
+
"document": "传入图片URL地址,图片要求:\n—图片格式:jpg、jpeg、png\n—图片分辨率:长边不超过2560\n—图片大小:不超过6M\n—图片宽高比:图片【宽:高】在1:2到2:1范围内",
|
633
|
+
"example": "https://***/image.jpg",
|
634
|
+
"member": "string",
|
635
|
+
"name": "ImageUrl",
|
636
|
+
"required": false,
|
637
|
+
"type": "string"
|
638
|
+
},
|
639
|
+
{
|
640
|
+
"disabled": false,
|
641
|
+
"document": "传入图片Base64编码。\n—图片Base64编码与URL地址必传其一",
|
642
|
+
"example": "MIIHNjCCBh6gAwIBAgIQCVe4E0h49mzI0NcSqMy1+jANBgkqhkiG9w0BAQsFADB1 MQswCQYDVQQGEwJVUzEVMBMG",
|
643
|
+
"member": "string",
|
644
|
+
"name": "ImageBase64",
|
645
|
+
"required": false,
|
646
|
+
"type": "string"
|
647
|
+
}
|
648
|
+
],
|
649
|
+
"type": "object"
|
650
|
+
},
|
651
|
+
"SubmitPortraitSingJobResponse": {
|
652
|
+
"document": "SubmitPortraitSingJob返回参数结构体",
|
653
|
+
"members": [
|
654
|
+
{
|
655
|
+
"disabled": false,
|
656
|
+
"document": "任务ID",
|
657
|
+
"example": "1199999431088685056",
|
658
|
+
"member": "string",
|
659
|
+
"name": "JobId",
|
660
|
+
"output_required": false,
|
661
|
+
"type": "string",
|
662
|
+
"value_allowed_null": false
|
663
|
+
},
|
664
|
+
{
|
665
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
666
|
+
"member": "string",
|
667
|
+
"name": "RequestId",
|
668
|
+
"type": "string"
|
669
|
+
}
|
670
|
+
],
|
671
|
+
"type": "object"
|
672
|
+
},
|
537
673
|
"SubmitVideoStylizationJobRequest": {
|
538
674
|
"document": "SubmitVideoStylizationJob请求参数结构体",
|
539
675
|
"members": [
|
@@ -16,6 +16,20 @@
|
|
16
16
|
"title": "调用成功示例"
|
17
17
|
}
|
18
18
|
],
|
19
|
+
"DescribePortraitSingJob": [
|
20
|
+
{
|
21
|
+
"document": "处理中",
|
22
|
+
"input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePortraitSingJob\n<公共请求参数>\n\n{\n \"JobId\": \"1199964964965990400\"\n}",
|
23
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"1199964964965990400\",\n \"RequestId\": \"0819265a-1bd7-4e0a-94a6-18463ae9b20e\",\n \"ResultVideoUrl\": \"\",\n \"StatusCode\": \"RUN\",\n \"StatusMsg\": \"处理中\"\n }\n}",
|
24
|
+
"title": "调用示例-处理中"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"document": "任务完成",
|
28
|
+
"input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePortraitSingJob\n<公共请求参数>\n\n{\n \"JobId\": \"1199964964965990400\"\n}",
|
29
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"1199964964965990400\",\n \"RequestId\": \"2564192f-1af0-4d1d-ac92-fac0f5844f73\",\n \"ResultVideoUrl\": \"https://***.mp4\",\n \"StatusCode\": \"DONE\",\n \"StatusMsg\": \"处理完成\"\n }\n}",
|
30
|
+
"title": "调用成功-任务完成"
|
31
|
+
}
|
32
|
+
],
|
19
33
|
"DescribeVideoStylizationJob": [
|
20
34
|
{
|
21
35
|
"document": "成功调用",
|
@@ -46,6 +60,38 @@
|
|
46
60
|
"title": "调用成功示例"
|
47
61
|
}
|
48
62
|
],
|
63
|
+
"SubmitPortraitSingJob": [
|
64
|
+
{
|
65
|
+
"document": "调用成功",
|
66
|
+
"input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitPortraitSingJob\n<公共请求参数>\n\n{\n \"AudioUrl\": \"https://***/test.mp3\",\n \"ImageUrl\": \"https://***/test.png\"\n}",
|
67
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"1199964964965990400\",\n \"RequestId\": \"79655032-c347-4f05-af23-ae80f7ff47eb\"\n }\n}",
|
68
|
+
"title": "调用成功-图片url地址"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"document": "音频时长超限",
|
72
|
+
"input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitPortraitSingJob\n<公共请求参数>\n\n{\n \"AudioUrl\": \"https://***/durationInvalid.m4a\",\n \"ImageUrl\": \"https://***/aj.jpg\"\n}",
|
73
|
+
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.InvalidAudioDuration\",\n \"Message\": \"音频时长超出限定范围。上传音频的时长要求:在1秒到60秒范围内\"\n },\n \"RequestId\": \"9d314f18-3670-4793-bf4b-619b43494ac7\"\n }\n}",
|
74
|
+
"title": "调用失败-音频时长超限"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"document": "图片分辨率超限",
|
78
|
+
"input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitPortraitSingJob\n<公共请求参数>\n\n{\n \"AudioUrl\": \"https://***/test.mp3\",\n \"ImageUrl\": \"https://***/resolutionInvalid.jpg\"\n}",
|
79
|
+
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.InvalidImageResolution\",\n \"Message\": \"图片分辨率超出限定范围。上传图片的长边分辨率要求:在0到2560范围内\"\n },\n \"RequestId\": \"29498231-20eb-43d1-bb3b-cc9e07978699\"\n }\n}",
|
80
|
+
"title": "调用失败-图片分辨率超限"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"document": "图片宽高比超限",
|
84
|
+
"input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitPortraitSingJob\n<公共请求参数>\n\n{\n \"AudioUrl\": \"https://***/test.mp3\",\n \"ImageUrl\": \"https://***/ratioInvalid.jpg\"\n}",
|
85
|
+
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.InvalidImageAspectRatio\",\n \"Message\": \"图片宽高比超出限定范围。上传图片的宽高比要求:在0.5到2.0范围内\"\n },\n \"RequestId\": \"3c9cb9bd-5b2a-4b18-a890-73f7712ca2ce\"\n }\n}",
|
86
|
+
"title": "调用失败-图片宽高比超限"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"document": "图片大小超限",
|
90
|
+
"input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitPortraitSingJob\n<公共请求参数>\n\n{\n \"AudioUrl\": \"https://***/test.mp3\",\n \"ImageUrl\": \"https://***/storageInvalid.jpg\"\n}",
|
91
|
+
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.InvalidImageSize\",\n \"Message\": \"图片大小超出限定范围。上传图片的大小要求:在0MB到10MB范围内\"\n },\n \"RequestId\": \"cd17e6bb-afdb-4bed-8a15-55c461333104\"\n }\n}",
|
92
|
+
"title": "调用失败-图片大小超限"
|
93
|
+
}
|
94
|
+
],
|
49
95
|
"SubmitVideoStylizationJob": [
|
50
96
|
{
|
51
97
|
"document": "成功调用",
|
@@ -173,6 +173,58 @@ def doSubmitVideoStylizationJob(args, parsed_globals):
|
|
173
173
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
174
|
|
175
175
|
|
176
|
+
def doSubmitPortraitSingJob(args, parsed_globals):
|
177
|
+
g_param = parse_global_arg(parsed_globals)
|
178
|
+
|
179
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
180
|
+
cred = credential.CVMRoleCredential()
|
181
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
182
|
+
cred = credential.STSAssumeRoleCredential(
|
183
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
184
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
185
|
+
)
|
186
|
+
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):
|
187
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
188
|
+
else:
|
189
|
+
cred = credential.Credential(
|
190
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
191
|
+
)
|
192
|
+
http_profile = HttpProfile(
|
193
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
194
|
+
reqMethod="POST",
|
195
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
196
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
197
|
+
)
|
198
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
199
|
+
if g_param[OptionsDefine.Language]:
|
200
|
+
profile.language = g_param[OptionsDefine.Language]
|
201
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
202
|
+
client = mod.VclmClient(cred, g_param[OptionsDefine.Region], profile)
|
203
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
204
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
205
|
+
model = models.SubmitPortraitSingJobRequest()
|
206
|
+
model.from_json_string(json.dumps(args))
|
207
|
+
start_time = time.time()
|
208
|
+
while True:
|
209
|
+
rsp = client.SubmitPortraitSingJob(model)
|
210
|
+
result = rsp.to_json_string()
|
211
|
+
try:
|
212
|
+
json_obj = json.loads(result)
|
213
|
+
except TypeError as e:
|
214
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
215
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
216
|
+
break
|
217
|
+
cur_time = time.time()
|
218
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
219
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
220
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
221
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
222
|
+
else:
|
223
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
224
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
225
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
|
+
|
227
|
+
|
176
228
|
def doConfirmVideoTranslateJob(args, parsed_globals):
|
177
229
|
g_param = parse_global_arg(parsed_globals)
|
178
230
|
|
@@ -225,6 +277,58 @@ def doConfirmVideoTranslateJob(args, parsed_globals):
|
|
225
277
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
278
|
|
227
279
|
|
280
|
+
def doDescribePortraitSingJob(args, parsed_globals):
|
281
|
+
g_param = parse_global_arg(parsed_globals)
|
282
|
+
|
283
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
284
|
+
cred = credential.CVMRoleCredential()
|
285
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
286
|
+
cred = credential.STSAssumeRoleCredential(
|
287
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
288
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
289
|
+
)
|
290
|
+
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):
|
291
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
292
|
+
else:
|
293
|
+
cred = credential.Credential(
|
294
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
295
|
+
)
|
296
|
+
http_profile = HttpProfile(
|
297
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
298
|
+
reqMethod="POST",
|
299
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
300
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
301
|
+
)
|
302
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
303
|
+
if g_param[OptionsDefine.Language]:
|
304
|
+
profile.language = g_param[OptionsDefine.Language]
|
305
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
306
|
+
client = mod.VclmClient(cred, g_param[OptionsDefine.Region], profile)
|
307
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
308
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
+
model = models.DescribePortraitSingJobRequest()
|
310
|
+
model.from_json_string(json.dumps(args))
|
311
|
+
start_time = time.time()
|
312
|
+
while True:
|
313
|
+
rsp = client.DescribePortraitSingJob(model)
|
314
|
+
result = rsp.to_json_string()
|
315
|
+
try:
|
316
|
+
json_obj = json.loads(result)
|
317
|
+
except TypeError as e:
|
318
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
319
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
320
|
+
break
|
321
|
+
cur_time = time.time()
|
322
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
323
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
324
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
325
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
326
|
+
else:
|
327
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
328
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
329
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
330
|
+
|
331
|
+
|
228
332
|
def doDescribeImageAnimateJob(args, parsed_globals):
|
229
333
|
g_param = parse_global_arg(parsed_globals)
|
230
334
|
|
@@ -395,7 +499,9 @@ ACTION_MAP = {
|
|
395
499
|
"SubmitVideoTranslateJob": doSubmitVideoTranslateJob,
|
396
500
|
"DescribeVideoTranslateJob": doDescribeVideoTranslateJob,
|
397
501
|
"SubmitVideoStylizationJob": doSubmitVideoStylizationJob,
|
502
|
+
"SubmitPortraitSingJob": doSubmitPortraitSingJob,
|
398
503
|
"ConfirmVideoTranslateJob": doConfirmVideoTranslateJob,
|
504
|
+
"DescribePortraitSingJob": doDescribePortraitSingJob,
|
399
505
|
"DescribeImageAnimateJob": doDescribeImageAnimateJob,
|
400
506
|
"SubmitImageAnimateJob": doSubmitImageAnimateJob,
|
401
507
|
"DescribeVideoStylizationJob": doDescribeVideoStylizationJob,
|
@@ -6634,7 +6634,7 @@
|
|
6634
6634
|
},
|
6635
6635
|
{
|
6636
6636
|
"disabled": false,
|
6637
|
-
"document": "带宽包计费类型, 默认为: ENHANCED95_POSTPAID_BY_MONTH, 可选值:\n<li>TOP5_POSTPAID_BY_MONTH: 按月后付费TOP5计费</li>\n<li>PERCENT95_POSTPAID_BY_MONTH: 按月后付费月95计费</li>\n<li>FIXED_PREPAID_BY_MONTH: 包月预付费计费</li>\n<li>ENHANCED95_POSTPAID_BY_MONTH: 按月后付费增强型95计费</li>\n<li>PEAK_BANDWIDTH_POSTPAID_BY_DAY: 后付费日结按带宽计费</li>\n",
|
6637
|
+
"document": "带宽包计费类型, 默认为: ENHANCED95_POSTPAID_BY_MONTH, 可选值:\n<li>TOP5_POSTPAID_BY_MONTH: 按月后付费TOP5计费</li>\n<li>PERCENT95_POSTPAID_BY_MONTH: 按月后付费月95计费</li>\n<li>FIXED_PREPAID_BY_MONTH: 包月预付费计费</li>\n<li>ENHANCED95_POSTPAID_BY_MONTH: 按月后付费增强型95计费</li>\n<li>PEAK_BANDWIDTH_POSTPAID_BY_DAY: 后付费日结按带宽计费</li>\n<li>PRIMARY_TRAFFIC_POSTPAID_BY_HOUR: 后付费按主流量计费</li>\n",
|
6638
6638
|
"example": "TOP5_POSTPAID_BY_MONTH",
|
6639
6639
|
"member": "string",
|
6640
6640
|
"name": "ChargeType",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1161.1
|
4
4
|
Summary: Universal Command Line Environment for Tencent Cloud
|
5
5
|
Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
|
6
6
|
Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
14
14
|
Requires-Dist: jmespath==0.10.0
|
15
15
|
Requires-Dist: six==1.16.0
|
16
|
-
Requires-Dist: tencentcloud-sdk-python>=3.0.
|
16
|
+
Requires-Dist: tencentcloud-sdk-python>=3.0.1161
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|