tccli 3.0.1225.1__py2.py3-none-any.whl → 3.0.1227.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/billing/v20180709/api.json +23 -23
- tccli/services/billing/v20180709/examples.json +5 -5
- tccli/services/cam/v20190116/api.json +19 -13
- tccli/services/cdb/v20170320/api.json +218 -2
- tccli/services/cdb/v20170320/examples.json +3 -3
- tccli/services/cdwdoris/v20211228/api.json +1 -1
- tccli/services/ckafka/v20190819/api.json +1762 -1445
- tccli/services/ckafka/v20190819/examples.json +22 -22
- tccli/services/cloudapp/v20220530/api.json +2 -2
- tccli/services/cloudapp/v20220530/examples.json +1 -1
- tccli/services/dts/v20211206/api.json +21 -1
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +53 -0
- tccli/services/hunyuan/v20230901/api.json +297 -0
- tccli/services/hunyuan/v20230901/examples.json +8 -0
- tccli/services/ims/v20201229/api.json +2 -2
- tccli/services/iotexplorer/iotexplorer_client.py +57 -4
- tccli/services/iotexplorer/v20190423/api.json +145 -0
- tccli/services/iotexplorer/v20190423/examples.json +14 -0
- tccli/services/ivld/v20210903/api.json +245 -192
- tccli/services/ivld/v20210903/examples.json +10 -10
- tccli/services/lcic/v20220817/api.json +1 -1
- tccli/services/live/live_client.py +53 -0
- tccli/services/live/v20180801/api.json +204 -35
- tccli/services/live/v20180801/examples.json +9 -1
- tccli/services/lke/v20231130/api.json +20 -20
- tccli/services/mps/v20190612/api.json +186 -25
- tccli/services/organization/v20181225/api.json +75 -51
- tccli/services/organization/v20181225/examples.json +20 -20
- tccli/services/organization/v20210331/api.json +74 -61
- tccli/services/organization/v20210331/examples.json +14 -14
- tccli/services/rce/v20201103/api.json +1 -1
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/scf/v20180416/api.json +1 -1
- tccli/services/teo/v20220901/api.json +3 -3
- tccli/services/tke/v20220501/api.json +109 -0
- tccli/services/tmt/v20180321/api.json +1 -1
- tccli/services/trtc/v20190722/api.json +104 -0
- tccli/services/tsf/v20180326/api.json +1287 -118
- tccli/services/tsf/v20180326/examples.json +5 -5
- tccli/services/tts/v20190823/api.json +2 -2
- tccli/services/vclm/v20240523/api.json +77 -6
- tccli/services/vclm/v20240523/examples.json +9 -1
- tccli/services/vclm/vclm_client.py +53 -0
- tccli/services/vdb/v20230616/api.json +29 -0
- tccli/services/vod/v20180717/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +134 -0
- tccli/services/vpc/v20170312/examples.json +8 -0
- tccli/services/vpc/vpc_client.py +53 -0
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/RECORD +55 -55
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/license_files/LICENSE +0 -0
@@ -43,7 +43,7 @@
|
|
43
43
|
"CreateTask": [
|
44
44
|
{
|
45
45
|
"document": "",
|
46
|
-
"input": "POST / HTTP/1.1\nHost: ivld.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateTask\n<公共请求参数>\n\n{\n \"MediaPreknownInfo\": {\n \"MediaLang\": 1,\n \"MediaSecondLabel\": 0,\n \"MediaLabel\": 1,\n \"MediaType\": 2\n },\n \"TaskName\": \"demo-task-0\",\n \"MediaId\": \"media-
|
46
|
+
"input": "POST / HTTP/1.1\nHost: ivld.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateTask\n<公共请求参数>\n\n{\n \"MediaPreknownInfo\": {\n \"MediaLang\": 1,\n \"MediaSecondLabel\": 0,\n \"MediaLabel\": 1,\n \"MediaType\": 2\n },\n \"TaskName\": \"demo-task-0\",\n \"MediaId\": \"media-2aHsU6sj\",\n \"UploadVideo\": false\n}",
|
47
47
|
"output": "{\n \"Response\": {\n \"RequestId\": \"2713de41-b294-429b-ac13-2c3f5c49b1db\",\n \"TaskId\": \"task-g8lqk737\"\n }\n}",
|
48
48
|
"title": "输入普通话新闻素材,发起智能标签任务"
|
49
49
|
}
|
@@ -83,13 +83,13 @@
|
|
83
83
|
"DeleteMedia": [
|
84
84
|
{
|
85
85
|
"document": "",
|
86
|
-
"input": "POST / HTTP/1.1\nHost: ivld.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteMedia\n<公共请求参数>\n\n{\n \"MediaId\": \"media-
|
86
|
+
"input": "POST / HTTP/1.1\nHost: ivld.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteMedia\n<公共请求参数>\n\n{\n \"MediaId\": \"media-2aHsU6sj\"\n}",
|
87
87
|
"output": "{\n \"Response\": {\n \"RequestId\": \"4d608fa8-66a3-4a25-94ce-1b904d4807f3\"\n }\n}",
|
88
88
|
"title": "成功删除媒资文件"
|
89
89
|
},
|
90
90
|
{
|
91
91
|
"document": "",
|
92
|
-
"input": "POST / HTTP/1.1\nHost: ivld.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteMedia\n<公共请求参数>\n\n{\n \"MediaId\": \"media-
|
92
|
+
"input": "POST / HTTP/1.1\nHost: ivld.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteMedia\n<公共请求参数>\n\n{\n \"MediaId\": \"media-2aHsU6sj\"\n}",
|
93
93
|
"output": "{\n \"Response\": {\n \"RequestId\": \"4d608fa8-66a3-4a25-94ce-1b904d4807f3\",\n \"Error\": {\n \"Code\": \"ResourceNotFound.MediaNotFound\",\n \"Message\": \"媒资不存在\"\n }\n }\n}",
|
94
94
|
"title": "删除媒资文件失败-媒资文件不存在"
|
95
95
|
}
|
@@ -128,7 +128,7 @@
|
|
128
128
|
{
|
129
129
|
"document": "",
|
130
130
|
"input": "POST / HTTP/1.1\nHost: ivld.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCustomPersonDetail\n<公共请求参数>\n\n{\n \"PersonId\": \"person-Axgo3FYc\"\n}",
|
131
|
-
"output": "{\n \"Response\": {\n \"PersonInfo\": {\n \"BasicInfo\": \"测试基本信息\",\n \"CreateTime\": \"2022-01-25 10:35:47\",\n \"ImageInfoSet\": [\n {\n \"ErrorCode\": \"OK\",\n \"ErrorMsg\": \"OK\",\n \"ImageId\": \"image-Axgo3FYc-egMN\",\n \"ImageURL\": \"https://test-251202813.cos.ap-guangzhou.myqcloud.com/CustomImages/image-Axgo3FYc-egMN.jpeg\"\n }\n ],\n \"L1Category\": \"明星\",\n \"L2Category\": \"巨星\",\n \"Name\": \"测试姓名\",\n \"PersonId\": \"person-Axgo3FYc\"\n },\n \"RequestId\": \"db04f25b-0d68-4cba-9171-254abc8ff3ac\",\n \"TaskIdSet\": []\n }\n}",
|
131
|
+
"output": "{\n \"Response\": {\n \"PersonInfo\": {\n \"BasicInfo\": \"测试基本信息\",\n \"CreateTime\": \"2022-01-25 10:35:47\",\n \"ImageInfoSet\": [\n {\n \"ErrorCode\": \"OK\",\n \"ErrorMsg\": \"OK\",\n \"ImageId\": \"image-Axgo3FYc-egMN\",\n \"ImageURL\": \"https://test-251202813.cos.ap-guangzhou.myqcloud.com/CustomImages/image-Axgo3FYc-egMN.jpeg\"\n }\n ],\n \"L1Category\": \"明星\",\n \"L2Category\": \"巨星\",\n \"Name\": \"测试姓名\",\n \"PersonId\": \"person-Axgo3FYc\"\n },\n \"RequestId\": \"db04f25b-0d68-4cba-9171-254abc8ff3ac\",\n \"TaskIdSet\": [\n \"task-g8lqk737\"\n ]\n }\n}",
|
132
132
|
"title": "成功描述人物详细信息(包括出现这个人物的任务ID列表)"
|
133
133
|
}
|
134
134
|
],
|
@@ -150,13 +150,13 @@
|
|
150
150
|
{
|
151
151
|
"document": "",
|
152
152
|
"input": "POST / HTTP/1.1\nHost: ivld.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMedia\n<公共请求参数>\n\n{\n \"MediaId\": \"media-ly5qgk6j\"\n}",
|
153
|
-
"output": "{\n \"Response\": {\n \"MediaInfo\": {\n \"DownLoadURL\": \"https://ai-media-1256936300.cos.ap-guangzhou.myqcloud.com/ai-media/test/test-beijingninzao-6mins.mp4\",\n \"FailedReason\": \"\",\n \"MediaId\": \"media-ly5qgk6j\",\n \"Metadata\": {\n \"BitRate\": 1420,\n \"Duration\": 356.024,\n \"FPS\": 25,\n \"FileSize\": 63195585,\n \"Height\": 720,\n \"MD5\": \"b67489b0f5ca7822c94f4b6102ac7d13\",\n \"NumFrames\": 8900,\n \"Width\": 1280\n },\n \"Name\": \"demo-video-0\",\n \"Progress\": 0,\n \"Status\": 8\n },\n \"RequestId\": \"d4c8bf8e-43ba-482a-a257-b6ac7a6296ec\"\n }\n}",
|
153
|
+
"output": "{\n \"Response\": {\n \"MediaInfo\": {\n \"DownLoadURL\": \"https://ai-media-1256936300.cos.ap-guangzhou.myqcloud.com/ai-media/test/test-beijingninzao-6mins.mp4\",\n \"FailedReason\": \"\",\n \"MediaId\": \"media-ly5qgk6j\",\n \"Metadata\": {\n \"BitRate\": 1420,\n \"Duration\": 356.024,\n \"FPS\": 25,\n \"FileSize\": 63195585,\n \"Height\": 720,\n \"MD5\": \"b67489b0f5ca7822c94f4b6102ac7d13\",\n \"NumFrames\": 8900,\n \"Width\": 1280\n },\n \"Name\": \"demo-video-0\",\n \"Progress\": 0,\n \"Label\": \"\",\n \"Status\": 8,\n \"CallbackURL\": \"http://example.com/api/callback\",\n \"MediaType\": 1,\n \"AudioMetadata\": null,\n \"ImageMetadata\": null,\n \"TextMetadata\": null\n },\n \"RequestId\": \"d4c8bf8e-43ba-482a-a257-b6ac7a6296ec\"\n }\n}",
|
154
154
|
"title": "导入完成,返回媒资视频元信息"
|
155
155
|
},
|
156
156
|
{
|
157
157
|
"document": "",
|
158
158
|
"input": "POST / HTTP/1.1\nHost: ivld.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMedia\n<公共请求参数>\n\n{\n \"MediaId\": \"media-ly5qgk6j\"\n}",
|
159
|
-
"output": "{\n \"Response\": {\n \"MediaInfo\": {\n \"DownLoadURL\": \"https://ai-media-1256936300.cos.ap-guangzhou.myqcloud.com/ai-media/test/test-beijingninzao-6mins.mp4\",\n \"FailedReason\": \"\",\n \"MediaId\": \"media-ly5qgk6j\",\n \"Metadata\": {\n \"BitRate\":
|
159
|
+
"output": "{\n \"Response\": {\n \"MediaInfo\": {\n \"DownLoadURL\": \"https://ai-media-1256936300.cos.ap-guangzhou.myqcloud.com/ai-media/test/test-beijingninzao-6mins.mp4\",\n \"FailedReason\": \"\",\n \"MediaId\": \"media-ly5qgk6j\",\n \"Metadata\": {\n \"BitRate\": 1420,\n \"Duration\": 356.024,\n \"FPS\": 25,\n \"FileSize\": 63195585,\n \"Height\": 720,\n \"MD5\": \"b67489b0f5ca7822c94f4b6102ac7d13\",\n \"NumFrames\": 8900,\n \"Width\": 1280\n },\n \"Name\": \"demo-video-0\",\n \"Progress\": 0,\n \"Label\": \"\",\n \"Status\": 8,\n \"CallbackURL\": \"http://example.com/api/callback\",\n \"MediaType\": 1,\n \"AudioMetadata\": null,\n \"ImageMetadata\": null,\n \"TextMetadata\": null\n },\n \"RequestId\": \"d4c8bf8e-43ba-482a-a257-b6ac7a6296ec\"\n }\n}",
|
160
160
|
"title": "导入中(正在进行转码),此时返回的视频元信息没有意义"
|
161
161
|
}
|
162
162
|
],
|
@@ -172,13 +172,13 @@
|
|
172
172
|
{
|
173
173
|
"document": "",
|
174
174
|
"input": "POST / HTTP/1.1\nHost: ivld.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTask\n<公共请求参数>\n\n{\n \"TaskId\": \"task-g8lqk734\"\n}",
|
175
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"a3010447-5003-4358-9b85-7c81a98b1c8d\",\n \"TaskInfo\": {\n \"FailedReason\": \"\",\n \"MediaId\": \"media-
|
175
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a3010447-5003-4358-9b85-7c81a98b1c8d\",\n \"TaskInfo\": {\n \"MediaName\": \"本地新闻\",\n \"Label\": \"\",\n \"CallbackURL\": \"http://example.com/api/callback\",\n \"FailedReason\": \"\",\n \"MediaId\": \"media-2aHsU6sj\",\n \"MediaPreknownInfo\": {\n \"MediaLabel\": 1,\n \"MediaLang\": 1,\n \"MediaSecondLabel\": 0,\n \"MediaType\": 2\n },\n \"TaskCreateTime\": \"2006-01-02T15:04:05Z07:00\",\n \"TaskId\": \"task-g8lqk734\",\n \"TaskName\": \"demo-task-0\",\n \"TaskProgress\": 2,\n \"TaskStartTime\": \"2006-01-02T15:04:05Z07:00\",\n \"TaskStatus\": 2,\n \"TaskTimeCost\": 0,\n \"AudioMetadata\": null,\n \"ImageMetadata\": null,\n \"TextMetadata\": null,\n \"Metadata\": null\n }\n }\n}",
|
176
176
|
"title": "任务执行中"
|
177
177
|
},
|
178
178
|
{
|
179
179
|
"document": "",
|
180
180
|
"input": "POST / HTTP/1.1\nHost: ivld.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTask\n<公共请求参数>\n\n{\n \"TaskId\": \"task-g8lqk734\"\n}",
|
181
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"af5fa625-286e-431d-b52c-6c577048e987\",\n \"TaskInfo\": {\n \"FailedReason\": \"\",\n \"MediaId\": \"media-
|
181
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"af5fa625-286e-431d-b52c-6c577048e987\",\n \"TaskInfo\": {\n \"MediaName\": \"本地新闻\",\n \"Label\": \"\",\n \"CallbackURL\": \"http://example.com/api/callback\",\n \"FailedReason\": \"\",\n \"MediaId\": \"media-2aHsU6sj\",\n \"MediaPreknownInfo\": {\n \"MediaLabel\": 1,\n \"MediaLang\": 1,\n \"MediaSecondLabel\": 0,\n \"MediaType\": 2\n },\n \"TaskCreateTime\": \"2006-01-02T15:04:05Z07:00\",\n \"TaskId\": \"task-g8lqk734\",\n \"TaskName\": \"demo-task-0\",\n \"TaskProgress\": 0,\n \"TaskStartTime\": \"2006-01-02T15:04:05Z07:00\",\n \"TaskStatus\": 8,\n \"TaskTimeCost\": 114,\n \"AudioMetadata\": null,\n \"ImageMetadata\": null,\n \"TextMetadata\": null,\n \"Metadata\": null\n }\n }\n}",
|
182
182
|
"title": "任务执行完成"
|
183
183
|
}
|
184
184
|
],
|
@@ -186,7 +186,7 @@
|
|
186
186
|
{
|
187
187
|
"document": "",
|
188
188
|
"input": "POST / HTTP/1.1\nHost: ivld.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskDetail\n<公共请求参数>\n\n{\n \"TaskId\": \"task-l0ae7t96\"\n}",
|
189
|
-
"output": "{\n \"Response\": {\n \"AudioTaskData\": null,\n \"ImageTaskData\": null,\n \"TextTaskData\": null,\n \"RequestId\": \"a18b2219-445f-43b9-b844-077d72ebcb85\",\n \"TaskData\": {\n \"ShowInfo\": {\n \"AudioInfoSet\": [\n {\n \"Content\": \"这是我一四年的一件作品,制作的运行是济南的一处职工宿舍楼,材料主要是泡沫板,木板完了指导制作,周期两个月时间。\",\n \"EndTimeStamp\": 51.882,\n \"StartTimeStamp\": 0.36,\n \"Tag\": \"\"\n }\n ],\n \"ClassifiedPersonInfoSet\": [],\n \"Column\": \"\",\n \"CoverImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/show_g8rktHiE.jpg\",\n \"Date\": \"\",\n \"FrameTagSet\": {\n \"AppearInfo\": {\n \"AudioAppearSet\": [],\n \"TextAppearSet\": [],\n \"VideoAppearSet\": [\n {\n \"EndTimeStamp\": 34.84,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_popjK1fY.jpg\",\n \"StartTimeStamp\": 32.56\n },\n {\n \"EndTimeStamp\": 39.52,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_7Mu2jPLZ.jpg\",\n \"StartTimeStamp\": 34.88\n },\n {\n \"EndTimeStamp\": 41.64,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_KHT2pnwl.jpg\",\n \"StartTimeStamp\": 39.56\n },\n {\n \"EndTimeStamp\": 45.44,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_GGvu3x4d.jpg\",\n \"StartTimeStamp\": 41.68\n },\n {\n \"EndTimeStamp\": 49.56,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_QAt3s6nW.jpg\",\n \"StartTimeStamp\": 45.48\n },\n {\n \"EndTimeStamp\": 39.52,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_7Mu2jPLZ.jpg\",\n \"StartTimeStamp\": 34.88\n },\n {\n \"EndTimeStamp\": 39.52,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_7Mu2jPLZ.jpg\",\n \"StartTimeStamp\": 34.88\n }\n ]\n },\n \"TagSet\": [\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L2TagSet\": [\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L3TagSet\": [\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 3,\n \"Index\": 0\n },\n {\n \"AppearIndex\": 3,\n \"Index\": 1\n },\n {\n \"AppearIndex\": 3,\n \"Index\": 2\n },\n {\n \"AppearIndex\": 3,\n \"Index\": 3\n },\n {\n \"AppearIndex\": 3,\n \"Index\": 4\n }\n ],\n \"FirstAppear\": 3,\n \"Name\": \"建筑物\"\n }\n ],\n \"Name\": \"城市景观\"\n },\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L3TagSet\": [\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 3,\n \"Index\": 5\n }\n ],\n \"FirstAppear\": 3,\n \"Name\": \"农村风貌\"\n }\n ],\n \"Name\": \"农业场景\"\n }\n ],\n \"Name\": \"场景\"\n },\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L2TagSet\": [\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L3TagSet\": [\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 3,\n \"Index\": 6\n }\n ],\n \"FirstAppear\": 3,\n \"Name\": \"自行车\"\n }\n ],\n \"Name\": \"陆地交通工具\"\n }\n ],\n \"Name\": \"交通工具\"\n }\n ]\n },\n \"Logo\": \"\",\n \"MediaClassifierSet\": [\n \"知识科普\"\n ],\n \"Source\": \"\",\n \"SummarySet\": [],\n \"SummaryTagSet\": [],\n \"TextInfoSet\": [\n {\n \"Content\": \"这是我2014年的一个作品\",\n \"EndTimeStamp\": 39.52,\n \"StartTimeStamp\": 34.88,\n \"Tag\": \"字幕\"\n },\n {\n \"Content\": \"制作的原型是济南的一处宿舍楼\",\n \"EndTimeStamp\": 39.52,\n \"StartTimeStamp\": 34.88,\n \"Tag\": \"字幕\"\n },\n {\n \"Content\": \"材料主要是泡沫板木板瓦楞制等\",\n \"EndTimeStamp\": 45.44,\n \"StartTimeStamp\": 41.68,\n \"Tag\": \"字幕\"\n },\n {\n \"Content\": \"制作周期2个月时间\",\n \"EndTimeStamp\": 49.56,\n \"StartTimeStamp\": 45.48,\n \"Tag\": \"字幕\"\n }\n ],\n \"TextTagSet\": {\n \"AppearInfo\": {\n \"AudioAppearSet\": [\n {\n \"EndPosition\": 37,\n \"Index\": 0,\n \"StartPosition\": 34\n },\n {\n \"EndPosition\": 28,\n \"Index\": 0,\n \"StartPosition\": 25\n },\n {\n \"EndPosition\": 25,\n \"Index\": 0,\n \"StartPosition\": 23\n },\n {\n \"EndPosition\": 20,\n \"Index\": 0,\n \"StartPosition\": 18\n }\n ],\n \"TextAppearSet\": [],\n \"VideoAppearSet\": []\n },\n \"TagSet\": [\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L2TagSet\": [\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L3TagSet\": [\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 1,\n \"Index\": 0\n }\n ],\n \"FirstAppear\": 1,\n \"Name\": \"泡沫板\"\n },\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 1,\n \"Index\": 1\n }\n ],\n \"FirstAppear\": 1,\n \"Name\": \"宿舍楼\"\n }\n ],\n \"Name\": \"关键词\"\n },\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L3TagSet\": [\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 1,\n \"Index\": 2\n }\n ],\n \"FirstAppear\": 1,\n \"Name\": \"职工\"\n }\n ],\n \"Name\": \"身份职位\"\n },\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L3TagSet\": [\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 1,\n \"Index\": 3\n }\n ],\n \"FirstAppear\": 1,\n \"Name\": \"济南\"\n }\n ],\n \"Name\": \"地点\"\n }\n ],\n \"Name\": \"\"\n }\n ]\n },\n \"TitleSet\": [],\n \"WebMediaURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4\"\n }\n },\n \"TaskInfo\": {\n \"FailedReason\": \"\",\n \"MediaId\": \"media-tqakf1vs\",\n \"MediaName\": \"星视频\",\n \"MediaPreknownInfo\": {\n \"MediaLabel\": 3,\n \"MediaLang\": 1,\n \"MediaSecondLabel\": 0,\n \"MediaType\": 2\n },\n \"TaskCreateTime\": \"2021-11-04T12:14:17+08:00\",\n \"TaskId\": \"task-l0ae7t96\",\n \"TaskName\": \"\",\n \"TaskProgress\": 0,\n \"TaskStartTime\": \"2021-11-04T12:14:18+08:00\",\n \"TaskStatus\": 8,\n \"TaskTimeCost\": 110,\n \"CallbackURL\": \"xx\",\n \"Label\": \"xxx\"\n }\n }\n}",
|
189
|
+
"output": "{\n \"Response\": {\n \"AudioTaskData\": null,\n \"ImageTaskData\": null,\n \"TextTaskData\": null,\n \"RequestId\": \"a18b2219-445f-43b9-b844-077d72ebcb85\",\n \"TaskData\": {\n \"ShowInfo\": {\n \"AudioInfoSet\": [\n {\n \"Content\": \"这是我一四年的一件作品,制作的运行是济南的一处职工宿舍楼,材料主要是泡沫板,木板完了指导制作,周期两个月时间。\",\n \"EndTimeStamp\": 51.882,\n \"StartTimeStamp\": 0.36,\n \"Tag\": \"\"\n }\n ],\n \"ClassifiedPersonInfoSet\": [],\n \"Column\": \"\",\n \"CoverImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/show_g8rktHiE.jpg\",\n \"Date\": \"\",\n \"FrameTagSet\": {\n \"AppearInfo\": {\n \"AudioAppearSet\": [],\n \"TextAppearSet\": [],\n \"VideoAppearSet\": [\n {\n \"EndTimeStamp\": 34.84,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_popjK1fY.jpg\",\n \"StartTimeStamp\": 32.56\n },\n {\n \"EndTimeStamp\": 39.52,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_7Mu2jPLZ.jpg\",\n \"StartTimeStamp\": 34.88\n },\n {\n \"EndTimeStamp\": 41.64,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_KHT2pnwl.jpg\",\n \"StartTimeStamp\": 39.56\n },\n {\n \"EndTimeStamp\": 45.44,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_GGvu3x4d.jpg\",\n \"StartTimeStamp\": 41.68\n },\n {\n \"EndTimeStamp\": 49.56,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_QAt3s6nW.jpg\",\n \"StartTimeStamp\": 45.48\n },\n {\n \"EndTimeStamp\": 39.52,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_7Mu2jPLZ.jpg\",\n \"StartTimeStamp\": 34.88\n },\n {\n \"EndTimeStamp\": 39.52,\n \"ImageURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4_2021-11-04T12:14:17/cover/lens_7Mu2jPLZ.jpg\",\n \"StartTimeStamp\": 34.88\n }\n ]\n },\n \"TagSet\": [\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L2TagSet\": [\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L3TagSet\": [\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 3,\n \"Index\": 0\n },\n {\n \"AppearIndex\": 3,\n \"Index\": 1\n },\n {\n \"AppearIndex\": 3,\n \"Index\": 2\n },\n {\n \"AppearIndex\": 3,\n \"Index\": 3\n },\n {\n \"AppearIndex\": 3,\n \"Index\": 4\n }\n ],\n \"FirstAppear\": 3,\n \"Name\": \"建筑物\"\n }\n ],\n \"Name\": \"城市景观\"\n },\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L3TagSet\": [\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 3,\n \"Index\": 5\n }\n ],\n \"FirstAppear\": 3,\n \"Name\": \"农村风貌\"\n }\n ],\n \"Name\": \"农业场景\"\n }\n ],\n \"Name\": \"场景\"\n },\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L2TagSet\": [\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L3TagSet\": [\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 3,\n \"Index\": 6\n }\n ],\n \"FirstAppear\": 3,\n \"Name\": \"自行车\"\n }\n ],\n \"Name\": \"陆地交通工具\"\n }\n ],\n \"Name\": \"交通工具\"\n }\n ]\n },\n \"Logo\": \"\",\n \"MediaClassifierSet\": [\n \"知识科普\"\n ],\n \"Source\": \"\",\n \"SummarySet\": [],\n \"SummaryTagSet\": [],\n \"TextInfoSet\": [\n {\n \"Content\": \"这是我2014年的一个作品\",\n \"EndTimeStamp\": 39.52,\n \"StartTimeStamp\": 34.88,\n \"Tag\": \"字幕\"\n },\n {\n \"Content\": \"制作的原型是济南的一处宿舍楼\",\n \"EndTimeStamp\": 39.52,\n \"StartTimeStamp\": 34.88,\n \"Tag\": \"字幕\"\n },\n {\n \"Content\": \"材料主要是泡沫板木板瓦楞制等\",\n \"EndTimeStamp\": 45.44,\n \"StartTimeStamp\": 41.68,\n \"Tag\": \"字幕\"\n },\n {\n \"Content\": \"制作周期2个月时间\",\n \"EndTimeStamp\": 49.56,\n \"StartTimeStamp\": 45.48,\n \"Tag\": \"字幕\"\n }\n ],\n \"TextTagSet\": {\n \"AppearInfo\": {\n \"AudioAppearSet\": [\n {\n \"EndPosition\": 37,\n \"Index\": 0,\n \"StartPosition\": 34\n },\n {\n \"EndPosition\": 28,\n \"Index\": 0,\n \"StartPosition\": 25\n },\n {\n \"EndPosition\": 25,\n \"Index\": 0,\n \"StartPosition\": 23\n },\n {\n \"EndPosition\": 20,\n \"Index\": 0,\n \"StartPosition\": 18\n }\n ],\n \"TextAppearSet\": [],\n \"VideoAppearSet\": []\n },\n \"TagSet\": [\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L2TagSet\": [\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L3TagSet\": [\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 1,\n \"Index\": 0\n }\n ],\n \"FirstAppear\": 1,\n \"Name\": \"泡沫板\"\n },\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 1,\n \"Index\": 1\n }\n ],\n \"FirstAppear\": 1,\n \"Name\": \"宿舍楼\"\n }\n ],\n \"Name\": \"关键词\"\n },\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L3TagSet\": [\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 1,\n \"Index\": 2\n }\n ],\n \"FirstAppear\": 1,\n \"Name\": \"职工\"\n }\n ],\n \"Name\": \"身份职位\"\n },\n {\n \"AppearIndexPairSet\": [],\n \"FirstAppear\": 0,\n \"L3TagSet\": [\n {\n \"AppearIndexPairSet\": [\n {\n \"AppearIndex\": 1,\n \"Index\": 3\n }\n ],\n \"FirstAppear\": 1,\n \"Name\": \"济南\"\n }\n ],\n \"Name\": \"地点\"\n }\n ],\n \"Name\": \"\"\n }\n ]\n },\n \"TitleSet\": [],\n \"WebMediaURL\": \"https://ai-media-251202827.cos.ap-guangzhou.myqcloud.com/%E6%98%9F%E8%A7%86%E9%A2%91.mp4\",\n \"UnknownPersonSet\": [],\n \"MultiLevelPersonInfoSet\": []\n }\n },\n \"TaskInfo\": {\n \"FailedReason\": \"\",\n \"MediaId\": \"media-tqakf1vs\",\n \"MediaName\": \"星视频\",\n \"MediaPreknownInfo\": {\n \"MediaLabel\": 3,\n \"MediaLang\": 1,\n \"MediaSecondLabel\": 0,\n \"MediaType\": 2\n },\n \"TaskCreateTime\": \"2021-11-04T12:14:17+08:00\",\n \"TaskId\": \"task-l0ae7t96\",\n \"TaskName\": \"\",\n \"TaskProgress\": 0,\n \"TaskStartTime\": \"2021-11-04T12:14:18+08:00\",\n \"TaskStatus\": 8,\n \"TaskTimeCost\": 110,\n \"CallbackURL\": \"http://example.com/api/callback\",\n \"Label\": \"xxx\",\n \"TextMetadata\": null,\n \"ImageMetadata\": null,\n \"AudioMetadata\": null,\n \"Metadata\": null\n }\n }\n}",
|
190
190
|
"title": "描述任务与任务结果"
|
191
191
|
}
|
192
192
|
],
|
@@ -240,7 +240,7 @@
|
|
240
240
|
{
|
241
241
|
"document": "",
|
242
242
|
"input": "POST / HTTP/1.1\nHost: ivld.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryCallback\n<公共请求参数>\n\n{}",
|
243
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"705f6aed-f46b-4f43-aeef-31167885d938\",\n \"TaskFinishNotifyURL\": \"
|
243
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"705f6aed-f46b-4f43-aeef-31167885d938\",\n \"TaskFinishNotifyURL\": \"http://example.com/api/task/callback\",\n \"MediaFinishNotifyURL\": \"http://example.com/api/media/callback\"\n }\n}",
|
244
244
|
"title": "成功查询用户回调地址"
|
245
245
|
}
|
246
246
|
],
|
@@ -1656,7 +1656,7 @@
|
|
1656
1656
|
},
|
1657
1657
|
{
|
1658
1658
|
"disabled": false,
|
1659
|
-
"document": "
|
1659
|
+
"document": "录制方式,可以有以下取值:0 开启自动录制(默认值)1 禁止录制2 开启手动录制 注: - 如果该配置取值为0,录制将从上课后开始,课堂结束后停止。 - 如果该配置取值为2,需通过startRecord、stopRecord接口控制录制的开始和结束。 ",
|
1660
1660
|
"example": "1",
|
1661
1661
|
"member": "uint64",
|
1662
1662
|
"name": "DisableRecord",
|
@@ -4281,6 +4281,58 @@ def doCreateCasterPgm(args, parsed_globals):
|
|
4281
4281
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4282
4282
|
|
4283
4283
|
|
4284
|
+
def doDescribeLiveEnhanceInfoList(args, parsed_globals):
|
4285
|
+
g_param = parse_global_arg(parsed_globals)
|
4286
|
+
|
4287
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4288
|
+
cred = credential.CVMRoleCredential()
|
4289
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4290
|
+
cred = credential.STSAssumeRoleCredential(
|
4291
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4292
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4293
|
+
)
|
4294
|
+
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):
|
4295
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4296
|
+
else:
|
4297
|
+
cred = credential.Credential(
|
4298
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4299
|
+
)
|
4300
|
+
http_profile = HttpProfile(
|
4301
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4302
|
+
reqMethod="POST",
|
4303
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4304
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4305
|
+
)
|
4306
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4307
|
+
if g_param[OptionsDefine.Language]:
|
4308
|
+
profile.language = g_param[OptionsDefine.Language]
|
4309
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4310
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4311
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4312
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4313
|
+
model = models.DescribeLiveEnhanceInfoListRequest()
|
4314
|
+
model.from_json_string(json.dumps(args))
|
4315
|
+
start_time = time.time()
|
4316
|
+
while True:
|
4317
|
+
rsp = client.DescribeLiveEnhanceInfoList(model)
|
4318
|
+
result = rsp.to_json_string()
|
4319
|
+
try:
|
4320
|
+
json_obj = json.loads(result)
|
4321
|
+
except TypeError as e:
|
4322
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4323
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4324
|
+
break
|
4325
|
+
cur_time = time.time()
|
4326
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4327
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4328
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4329
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4330
|
+
else:
|
4331
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4332
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4333
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4334
|
+
|
4335
|
+
|
4284
4336
|
def doDescribePullTransformPushInfo(args, parsed_globals):
|
4285
4337
|
g_param = parse_global_arg(parsed_globals)
|
4286
4338
|
|
@@ -10198,6 +10250,7 @@ ACTION_MAP = {
|
|
10198
10250
|
"ModifyLiveDomainCertBindings": doModifyLiveDomainCertBindings,
|
10199
10251
|
"DescribeDeliverLogDownList": doDescribeDeliverLogDownList,
|
10200
10252
|
"CreateCasterPgm": doCreateCasterPgm,
|
10253
|
+
"DescribeLiveEnhanceInfoList": doDescribeLiveEnhanceInfoList,
|
10201
10254
|
"DescribePullTransformPushInfo": doDescribePullTransformPushInfo,
|
10202
10255
|
"CreateLiveCallbackTemplate": doCreateLiveCallbackTemplate,
|
10203
10256
|
"DescribeLiveDomains": doDescribeLiveDomains,
|