tccli 3.0.1373.1__py2.py3-none-any.whl → 3.0.1374.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/ai3d/v20250513/api.json +1 -1
- tccli/services/cls/v20201016/api.json +167 -31
- tccli/services/cls/v20201016/examples.json +2 -2
- tccli/services/emr/v20190103/api.json +2 -2
- tccli/services/ess/v20201111/api.json +69 -0
- tccli/services/essbasic/v20210526/api.json +39 -0
- tccli/services/lighthouse/v20200324/examples.json +3 -3
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/lke/v20231130/api.json +1344 -246
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +10 -0
- tccli/services/partners/v20180321/api.json +4 -4
- tccli/services/sqlserver/v20180328/api.json +19 -17
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/trabbit/v20230418/api.json +9 -0
- tccli/services/tsf/v20180326/api.json +147 -50
- tccli/services/vod/v20180717/api.json +264 -0
- tccli/services/vod/v20180717/examples.json +32 -0
- tccli/services/vod/vod_client.py +212 -0
- {tccli-3.0.1373.1.dist-info → tccli-3.0.1374.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1373.1.dist-info → tccli-3.0.1374.1.dist-info}/RECORD +25 -25
- {tccli-3.0.1373.1.dist-info → tccli-3.0.1374.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1373.1.dist-info → tccli-3.0.1374.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1373.1.dist-info → tccli-3.0.1374.1.dist-info}/license_files/LICENSE +0 -0
@@ -140,6 +140,13 @@
|
|
140
140
|
"output": "CreateJustInTimeTranscodeTemplateResponse",
|
141
141
|
"status": "online"
|
142
142
|
},
|
143
|
+
"CreateMPSTemplate": {
|
144
|
+
"document": "该接口用于创建自定义模板,模板用于 ProcessMediaByMPS 接口的部分功能。\n创建模板时,需要将 MPS 相关参数以 JSON 格式填入 MPSCreateTemplateParams 参数中。关于具体的任务参数配置方法,请参考 MPS 任务模板相关文档说明。\n当前支持创建自定义模板的 MPS 功能:\n1. [音视频增强](https://cloud.tencent.com/document/product/862/118703)。\n\n> 以该种方式创建的任务模板:\n> 1. 模板的管理仍在点播平台中完成。\n> 2. 该功能目前仍在内测中,如需测试体验,您可以联系我们获得支持。",
|
145
|
+
"input": "CreateMPSTemplateRequest",
|
146
|
+
"name": "创建 MPS 任务模板",
|
147
|
+
"output": "CreateMPSTemplateResponse",
|
148
|
+
"status": "online"
|
149
|
+
},
|
143
150
|
"CreatePersonSample": {
|
144
151
|
"document": "该接口用于创建素材样本,用于通过五官定位等技术,进行内容识别、不适宜视频识别等视频处理。",
|
145
152
|
"input": "CreatePersonSampleRequest",
|
@@ -329,6 +336,13 @@
|
|
329
336
|
"output": "DeleteJustInTimeTranscodeTemplateResponse",
|
330
337
|
"status": "online"
|
331
338
|
},
|
339
|
+
"DeleteMPSTemplate": {
|
340
|
+
"document": "删除用户自定义 MPS 任务模板。",
|
341
|
+
"input": "DeleteMPSTemplateRequest",
|
342
|
+
"name": "删除 MPS 任务模板",
|
343
|
+
"output": "DeleteMPSTemplateResponse",
|
344
|
+
"status": "online"
|
345
|
+
},
|
332
346
|
"DeleteMedia": {
|
333
347
|
"document": "* 删除媒体及其对应的视频处理文件(原始文件、如转码视频、雪碧图、截图、微信发布视频等);\n* 可单独删除指定 ID 的视频文件下的原文件、转码视频、微信发布视频等;\n* 注意:原文件删除后,无法发起转码、微信发布等任何视频处理操作。",
|
334
348
|
"input": "DeleteMediaRequest",
|
@@ -637,6 +651,13 @@
|
|
637
651
|
"output": "DescribeLicenseUsageDataResponse",
|
638
652
|
"status": "online"
|
639
653
|
},
|
654
|
+
"DescribeMPSTemplates": {
|
655
|
+
"document": "获取用户自定义媒体处理服务(MPS)任务模板。\n查询模板列表时,需要将 MPS 相关参数以 JSON 格式填入 MPSDescribeTemplateParams 参数中。关于具体的任务参数配置方法,请参考 MPS 任务模板相关文档说明。",
|
656
|
+
"input": "DescribeMPSTemplatesRequest",
|
657
|
+
"name": "获取 MPS 任务模板列表",
|
658
|
+
"output": "DescribeMPSTemplatesResponse",
|
659
|
+
"status": "online"
|
660
|
+
},
|
640
661
|
"DescribeMediaInfos": {
|
641
662
|
"document": "1. 该接口可以获取多个媒体文件的多种信息,包括:\n 1. 基础信息(basicInfo):包括媒体名称、分类、播放地址、封面图片等。\n 2. 元信息(metaData):包括大小、时长、视频流信息、音频流信息等。\n 3. 转码结果信息(transcodeInfo):包括该媒体转码生成的各种规格的媒体地址、视频流参数、音频流参数等。\n 4. 转动图结果信息(animatedGraphicsInfo):对视频转动图(如 gif)后的动图信息。\n 5. 采样截图信息(sampleSnapshotInfo):对视频采样截图后的截图信息。\n 6. 雪碧图信息(imageSpriteInfo):对视频截取雪碧图后的雪碧图信息。\n 7. 指定时间点截图信息(snapshotByTimeOffsetInfo):对视频依照指定时间点截图后,的截图信息。\n 8. 视频打点信息(keyFrameDescInfo):对视频设置的打点信息。\n 9. 转自适应码流信息(adaptiveDynamicStreamingInfo):包括规格、加密类型、打包格式等相关信息。\n 10. 审核信息(reviewInfo):包括媒体审核及媒体封面审核信息。\n2. 可以指定回包只返回部分信息。",
|
642
663
|
"input": "DescribeMediaInfosRequest",
|
@@ -980,6 +1001,13 @@
|
|
980
1001
|
"output": "ModifyJustInTimeTranscodeTemplateResponse",
|
981
1002
|
"status": "online"
|
982
1003
|
},
|
1004
|
+
"ModifyMPSTemplate": {
|
1005
|
+
"document": "修改用户自定义 MPS 任务模板。\n修改模板时,需要将 MPS 相关参数以 JSON 格式填入 MPSModifyTemplateParams 参数中。关于具体的任务参数配置方法,请参考 MPS 任务模板相关文档说明。",
|
1006
|
+
"input": "ModifyMPSTemplateRequest",
|
1007
|
+
"name": "修改 MPS 任务模板",
|
1008
|
+
"output": "ModifyMPSTemplateResponse",
|
1009
|
+
"status": "online"
|
1010
|
+
},
|
983
1011
|
"ModifyMediaInfo": {
|
984
1012
|
"document": "修改媒体文件的属性,包括分类、名称、描述、标签、过期时间、打点信息、视频封面、字幕信息等。",
|
985
1013
|
"input": "ModifyMediaInfoRequest",
|
@@ -10941,6 +10969,61 @@
|
|
10941
10969
|
],
|
10942
10970
|
"type": "object"
|
10943
10971
|
},
|
10972
|
+
"CreateMPSTemplateRequest": {
|
10973
|
+
"document": "CreateMPSTemplate请求参数结构体",
|
10974
|
+
"members": [
|
10975
|
+
{
|
10976
|
+
"disabled": false,
|
10977
|
+
"document": "<b>点播[应用](/document/product/266/14574) ID。</b>",
|
10978
|
+
"example": "1500000001",
|
10979
|
+
"member": "uint64",
|
10980
|
+
"name": "SubAppId",
|
10981
|
+
"required": true,
|
10982
|
+
"type": "int"
|
10983
|
+
},
|
10984
|
+
{
|
10985
|
+
"disabled": false,
|
10986
|
+
"document": "需要创建的 MPS 模板的类型。取值:\n<li>Transcode: 创建转码模板,目前仅支持创建增强模板。</li>",
|
10987
|
+
"example": "Transcode",
|
10988
|
+
"member": "string",
|
10989
|
+
"name": "TemplateType",
|
10990
|
+
"required": true,
|
10991
|
+
"type": "string"
|
10992
|
+
},
|
10993
|
+
{
|
10994
|
+
"disabled": false,
|
10995
|
+
"document": "MPS 创建模板参数。该参数用于透传至媒体处理服务(MPS),从云点播侧创建用户自定义的 MPS 任务模板。\n目前仅支持通过此方式创建以下任务类型的模板:\n1. 音视频增强:仅支持填写“[创建转码模板](https://cloud.tencent.com/document/product/862/37605)”接口中的 Container 、Name、Comment、RemoveVideo、RemoveAudio、VideoTemplate、AudioTemplate 和 EnhanceConfig 几个参数。其中 EnhanceConfig 此处必填。\n\n目前模板中仅支持配置以上参数,其他参数无需填写。若包含其它参数,系统将自动忽略。以上透传参数以JSON形式表示。\n",
|
10996
|
+
"example": "{\"Container\":\"mp4\",\"Name\":\"test\",\"RemoveAudio\":1,\"VideoTemplate\":{\"Codec\":\"h264\",\"Fps\":0,\"Bitrate\":0},\"EnhanceConfig\":{\"VideoEnhance\":{\"FrameRate\":{\"Switch\":\"ON\",\"Fps\":50}}}}",
|
10997
|
+
"member": "string",
|
10998
|
+
"name": "MPSCreateTemplateParams",
|
10999
|
+
"required": true,
|
11000
|
+
"type": "string"
|
11001
|
+
}
|
11002
|
+
],
|
11003
|
+
"type": "object"
|
11004
|
+
},
|
11005
|
+
"CreateMPSTemplateResponse": {
|
11006
|
+
"document": "CreateMPSTemplate返回参数结构体",
|
11007
|
+
"members": [
|
11008
|
+
{
|
11009
|
+
"disabled": false,
|
11010
|
+
"document": "MPS 任务模板唯一标识。该模板独立于直接在 MPS 服务中创建的模板。",
|
11011
|
+
"example": "30",
|
11012
|
+
"member": "int64",
|
11013
|
+
"name": "Definition",
|
11014
|
+
"output_required": true,
|
11015
|
+
"type": "int",
|
11016
|
+
"value_allowed_null": false
|
11017
|
+
},
|
11018
|
+
{
|
11019
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11020
|
+
"member": "string",
|
11021
|
+
"name": "RequestId",
|
11022
|
+
"type": "string"
|
11023
|
+
}
|
11024
|
+
],
|
11025
|
+
"type": "object"
|
11026
|
+
},
|
10944
11027
|
"CreatePersonSampleRequest": {
|
10945
11028
|
"document": "CreatePersonSample请求参数结构体",
|
10946
11029
|
"members": [
|
@@ -12872,6 +12955,51 @@
|
|
12872
12955
|
],
|
12873
12956
|
"type": "object"
|
12874
12957
|
},
|
12958
|
+
"DeleteMPSTemplateRequest": {
|
12959
|
+
"document": "DeleteMPSTemplate请求参数结构体",
|
12960
|
+
"members": [
|
12961
|
+
{
|
12962
|
+
"disabled": false,
|
12963
|
+
"document": "<b>点播[应用](/document/product/266/14574) ID。</b>",
|
12964
|
+
"example": "1500000001",
|
12965
|
+
"member": "uint64",
|
12966
|
+
"name": "SubAppId",
|
12967
|
+
"required": true,
|
12968
|
+
"type": "int"
|
12969
|
+
},
|
12970
|
+
{
|
12971
|
+
"disabled": false,
|
12972
|
+
"document": "需要删除的 MPS 模板的类型。取值:\n<li>Transcode: 删除转码模板。</li>",
|
12973
|
+
"example": "Transcode",
|
12974
|
+
"member": "string",
|
12975
|
+
"name": "TemplateType",
|
12976
|
+
"required": true,
|
12977
|
+
"type": "string"
|
12978
|
+
},
|
12979
|
+
{
|
12980
|
+
"disabled": false,
|
12981
|
+
"document": "MPS 任务模板唯一标识。",
|
12982
|
+
"example": "24214",
|
12983
|
+
"member": "int64",
|
12984
|
+
"name": "Definition",
|
12985
|
+
"required": true,
|
12986
|
+
"type": "int"
|
12987
|
+
}
|
12988
|
+
],
|
12989
|
+
"type": "object"
|
12990
|
+
},
|
12991
|
+
"DeleteMPSTemplateResponse": {
|
12992
|
+
"document": "DeleteMPSTemplate返回参数结构体",
|
12993
|
+
"members": [
|
12994
|
+
{
|
12995
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
12996
|
+
"member": "string",
|
12997
|
+
"name": "RequestId",
|
12998
|
+
"type": "string"
|
12999
|
+
}
|
13000
|
+
],
|
13001
|
+
"type": "object"
|
13002
|
+
},
|
12875
13003
|
"DeleteMediaRequest": {
|
12876
13004
|
"document": "DeleteMedia请求参数结构体",
|
12877
13005
|
"members": [
|
@@ -15613,6 +15741,71 @@
|
|
15613
15741
|
],
|
15614
15742
|
"type": "object"
|
15615
15743
|
},
|
15744
|
+
"DescribeMPSTemplatesRequest": {
|
15745
|
+
"document": "DescribeMPSTemplates请求参数结构体",
|
15746
|
+
"members": [
|
15747
|
+
{
|
15748
|
+
"disabled": false,
|
15749
|
+
"document": "<b>点播[应用](/document/product/266/14574) ID。</b>",
|
15750
|
+
"example": "1500000001",
|
15751
|
+
"member": "uint64",
|
15752
|
+
"name": "SubAppId",
|
15753
|
+
"required": true,
|
15754
|
+
"type": "int"
|
15755
|
+
},
|
15756
|
+
{
|
15757
|
+
"disabled": false,
|
15758
|
+
"document": "MPS 模板类型。根据需要查询的 MPS 模板的类型对结果进行过滤。取值:\n<li>Transcode: 查询转码模板列表。</li>",
|
15759
|
+
"example": "Transcode",
|
15760
|
+
"member": "string",
|
15761
|
+
"name": "TemplateType",
|
15762
|
+
"required": true,
|
15763
|
+
"type": "string"
|
15764
|
+
},
|
15765
|
+
{
|
15766
|
+
"disabled": false,
|
15767
|
+
"document": "MPS 查询模板参数。该参数用于透传至媒体处理服务(MPS),从云点播侧查询 MPS 任务模板列表。目前仅支持通过此方式查询以下任务类型的模板:\n1. 音视频增强:仅支持填写“[获取转码模板列表](https://cloud.tencent.com/document/product/862/37593)”接口中的 Definitions、Offset 和 Limit 几个参数的内容。目前仅支持在模板中配置以上参数,其他参数无需填写,若包含其它参数,系统将自动忽略。",
|
15768
|
+
"example": "{\"Limit\": 10}",
|
15769
|
+
"member": "string",
|
15770
|
+
"name": "MPSDescribeTemplateParams",
|
15771
|
+
"required": false,
|
15772
|
+
"type": "string"
|
15773
|
+
}
|
15774
|
+
],
|
15775
|
+
"type": "object"
|
15776
|
+
},
|
15777
|
+
"DescribeMPSTemplatesResponse": {
|
15778
|
+
"document": "DescribeMPSTemplates返回参数结构体",
|
15779
|
+
"members": [
|
15780
|
+
{
|
15781
|
+
"disabled": false,
|
15782
|
+
"document": "符合过滤条件的记录总数。",
|
15783
|
+
"example": "1",
|
15784
|
+
"member": "uint64",
|
15785
|
+
"name": "TotalCount",
|
15786
|
+
"output_required": true,
|
15787
|
+
"type": "int",
|
15788
|
+
"value_allowed_null": false
|
15789
|
+
},
|
15790
|
+
{
|
15791
|
+
"disabled": false,
|
15792
|
+
"document": "MPS 任务模板详情列表。",
|
15793
|
+
"example": "无",
|
15794
|
+
"member": "MPSTemplate",
|
15795
|
+
"name": "MPSTemplateSet",
|
15796
|
+
"output_required": true,
|
15797
|
+
"type": "list",
|
15798
|
+
"value_allowed_null": false
|
15799
|
+
},
|
15800
|
+
{
|
15801
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
15802
|
+
"member": "string",
|
15803
|
+
"name": "RequestId",
|
15804
|
+
"type": "string"
|
15805
|
+
}
|
15806
|
+
],
|
15807
|
+
"type": "object"
|
15808
|
+
},
|
15616
15809
|
"DescribeMediaInfosRequest": {
|
15617
15810
|
"document": "DescribeMediaInfos请求参数结构体",
|
15618
15811
|
"members": [
|
@@ -21982,6 +22175,32 @@
|
|
21982
22175
|
],
|
21983
22176
|
"usage": "out"
|
21984
22177
|
},
|
22178
|
+
"MPSTemplate": {
|
22179
|
+
"document": "MPS 任务模板详情。",
|
22180
|
+
"members": [
|
22181
|
+
{
|
22182
|
+
"disabled": false,
|
22183
|
+
"document": "MPS 模板的类型。取值:\n<li>Transcode: 转码模板。</li>",
|
22184
|
+
"example": "Transcode",
|
22185
|
+
"member": "string",
|
22186
|
+
"name": "TaskType",
|
22187
|
+
"output_required": true,
|
22188
|
+
"type": "string",
|
22189
|
+
"value_allowed_null": false
|
22190
|
+
},
|
22191
|
+
{
|
22192
|
+
"disabled": false,
|
22193
|
+
"document": "MPS 任务模板详情内容。\n示例:{\"Definition\":24214,\"Name\":\"test\",\"Comment\":\"\",\"Type\":\"Preset\",\"EnhanceConfig\":{\"VideoEnhance\":{\"FrameRate\":{\"Switch\":\"ON\",\"Fps\":50},\"SuperResolution\":{\"Switch\":\"ON\",\"Type\":\"lq\"}}}}",
|
22194
|
+
"example": "\"{}\"",
|
22195
|
+
"member": "string",
|
22196
|
+
"name": "MPSTemplateInfo",
|
22197
|
+
"output_required": false,
|
22198
|
+
"type": "string",
|
22199
|
+
"value_allowed_null": false
|
22200
|
+
}
|
22201
|
+
],
|
22202
|
+
"usage": "out"
|
22203
|
+
},
|
21985
22204
|
"ManageTaskRequest": {
|
21986
22205
|
"document": "ManageTask请求参数结构体",
|
21987
22206
|
"members": [
|
@@ -26367,6 +26586,51 @@
|
|
26367
26586
|
],
|
26368
26587
|
"type": "object"
|
26369
26588
|
},
|
26589
|
+
"ModifyMPSTemplateRequest": {
|
26590
|
+
"document": "ModifyMPSTemplate请求参数结构体",
|
26591
|
+
"members": [
|
26592
|
+
{
|
26593
|
+
"disabled": false,
|
26594
|
+
"document": "<b>点播[应用](/document/product/266/14574) ID。</b>",
|
26595
|
+
"example": "1500000001",
|
26596
|
+
"member": "uint64",
|
26597
|
+
"name": "SubAppId",
|
26598
|
+
"required": true,
|
26599
|
+
"type": "int"
|
26600
|
+
},
|
26601
|
+
{
|
26602
|
+
"disabled": false,
|
26603
|
+
"document": "需要修改的 MPS 模板的类型。取值:\n<li>Transcode: 创建转码模板,目前仅支持修改增强参数。</li>",
|
26604
|
+
"example": "Transcode",
|
26605
|
+
"member": "string",
|
26606
|
+
"name": "TemplateType",
|
26607
|
+
"required": true,
|
26608
|
+
"type": "string"
|
26609
|
+
},
|
26610
|
+
{
|
26611
|
+
"disabled": false,
|
26612
|
+
"document": "MPS 修改模板参数。该参数用于透传至媒体处理服务(MPS),从云点播侧修改用户自定义的 MPS 任务模板。\n 目前仅支持通过此方式修改以下任务类型的模板:\n1. 音视频增强:仅支持填写“[修改转码模板](https://cloud.tencent.com/document/api/862/37578)”接口中的 Name、Comment、RemoveVideo、RemoveAudio、VideoTemplate、AudioTemplate 和 EnhanceConfig 几个参数的内容。目前仅支持在模板中配置以上参数,其他参数无需填写,若包含其它参数,系统将自动忽略。\n示例:{\"Definition\":24214,\"Container\":\"mp4\",\"Name\":\"test\",\"RemoveAudio\":1,\"VideoTemplate\":{\"Codec\":\"h264\",\"Fps\":0,\"Bitrate\":0},\"EnhanceConfig\":{\"VideoEnhance\":{\"FrameRate\":{\"Switch\":\"ON\",\"Fps\":50}}}}",
|
26613
|
+
"example": "\"{}\"",
|
26614
|
+
"member": "string",
|
26615
|
+
"name": "MPSModifyTemplateParams",
|
26616
|
+
"required": true,
|
26617
|
+
"type": "string"
|
26618
|
+
}
|
26619
|
+
],
|
26620
|
+
"type": "object"
|
26621
|
+
},
|
26622
|
+
"ModifyMPSTemplateResponse": {
|
26623
|
+
"document": "ModifyMPSTemplate返回参数结构体",
|
26624
|
+
"members": [
|
26625
|
+
{
|
26626
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
26627
|
+
"member": "string",
|
26628
|
+
"name": "RequestId",
|
26629
|
+
"type": "string"
|
26630
|
+
}
|
26631
|
+
],
|
26632
|
+
"type": "object"
|
26633
|
+
},
|
26370
26634
|
"ModifyMediaInfoRequest": {
|
26371
26635
|
"document": "ModifyMediaInfo请求参数结构体",
|
26372
26636
|
"members": [
|
@@ -226,6 +226,14 @@
|
|
226
226
|
"title": "创建即时转码模板"
|
227
227
|
}
|
228
228
|
],
|
229
|
+
"CreateMPSTemplate": [
|
230
|
+
{
|
231
|
+
"document": "",
|
232
|
+
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateMPSTemplate\n<公共请求参数>\n\n{\n \"SubAppId\": 1500000001,\n \"TemplateType\": \"Transcode\",\n \"MPSCreateTemplateParams\": \"{\\\"Container\\\":\\\"mp4\\\",\\\"Name\\\":\\\"test\\\",\\\"RemoveAudio\\\":1,\\\"VideoTemplate\\\":{\\\"Codec\\\":\\\"h264\\\",\\\"Fps\\\":0,\\\"Bitrate\\\":0},\\\"EnhanceConfig\\\":{\\\"VideoEnhance\\\":{\\\"FrameRate\\\":{\\\"Switch\\\":\\\"ON\\\",\\\"Fps\\\":50}}}}\"\n}",
|
233
|
+
"output": "{\n \"Response\": {\n \"Definition\": 22143,\n \"RequestId\": \"6ca31e3a-6b8e-4b4e-9256-fdc700064ef3\"\n }\n}",
|
234
|
+
"title": "创建 MPS 音视频增强任务模板"
|
235
|
+
}
|
236
|
+
],
|
229
237
|
"CreatePersonSample": [
|
230
238
|
{
|
231
239
|
"document": "",
|
@@ -484,6 +492,14 @@
|
|
484
492
|
"title": "删除即时转码模板"
|
485
493
|
}
|
486
494
|
],
|
495
|
+
"DeleteMPSTemplate": [
|
496
|
+
{
|
497
|
+
"document": "",
|
498
|
+
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteMPSTemplate\n<公共请求参数>\n\n{\n \"SubAppId\": 1500000001,\n \"TemplateType\": \"Transcode\",\n \"Definition\": 24214\n}",
|
499
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6ca31e3a-6b8e-4b4e-9256-fdc700064ef3\"\n }\n}",
|
500
|
+
"title": "删除 MPS 音视频增强任务模板"
|
501
|
+
}
|
502
|
+
],
|
487
503
|
"DeleteMedia": [
|
488
504
|
{
|
489
505
|
"document": "视频文件不需要保存,删除该FileId下全部文件和信息。",
|
@@ -878,6 +894,14 @@
|
|
878
894
|
"title": "查询 DRM 加密播放 License 请求次数"
|
879
895
|
}
|
880
896
|
],
|
897
|
+
"DescribeMPSTemplates": [
|
898
|
+
{
|
899
|
+
"document": "",
|
900
|
+
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMPSTemplate\n<公共请求参数>\n\n{\n \"SubAppId\": 1500000001,\n \"TemplateType\": \"Transcode\",\n \"MPSDescribeTemplateParams\": \"{\\\"Definitions\\\": [100010],\\\"Type\\\": \\\"Custom\\\"}\"\n}",
|
901
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"MPSTemplateSet\": [\n {\n \"TaskType\": \"Transcode\",\n \"MPSTemplateInfo\": \"{\\\"Definition\\\":\\\"100010\\\",\\\"Container\\\":\\\"mp4\\\",\\\"Name\\\":\\\"test\\\",\\\"Comment\\\":\\\"\\\",\\\"Type\\\":\\\"Custom\\\",\\\"RemoveVideo\\\":0,\\\"RemoveAudio\\\":0,\\\"VideoTemplate\\\":{\\\"Codec\\\":\\\"h264\\\",\\\"Fps\\\":0,\\\"Bitrate\\\":0,\\\"ResolutionAdaptive\\\":\\\"open\\\",\\\"Width\\\":0,\\\"Height\\\":0,\\\"FillType\\\":\\\"black\\\",\\\"Gop\\\":0,\\\"VideoProfile\\\":\\\"\\\",\\\"VideoLevel\\\":\\\"\\\",\\\"Subjective\\\":0,\\\"ContentAdaptStream\\\":0,\\\"SegmentType\\\":0,\\\"FpsDenominator\\\":1,\\\"Stereo3dType\\\":\\\"\\\",\\\"HlsTime\\\":0,\\\"Mode\\\":\\\"VBR\\\",\\\"Sar\\\":\\\"\\\",\\\"NoScenecut\\\":0,\\\"BitDepth\\\":8,\\\"RawPts\\\":0,\\\"ScenarioBased\\\":0,\\\"SceneType\\\":\\\"\\\",\\\"CompressType\\\":\\\"\\\"},\\\"AudioTemplate\\\":{\\\"Codec\\\":\\\"aac\\\",\\\"Bitrate\\\":0,\\\"SampleRate\\\":44100,\\\"AudioChannel\\\":2,\\\"StreamSelects\\\":[]},\\\"ContainerType\\\":\\\"Video\\\",\\\"CreateTime\\\":\\\"2025-07-22T20:28:36+08:00\\\",\\\"UpdateTime\\\":\\\"2025-07-22T20:28:36+08:00\\\",\\\"TEHDConfig\\\":null,\\\"EnhanceConfig\\\":{\\\"VideoEnhance\\\":{\\\"FrameRate\\\":{\\\"Switch\\\":\\\"ON\\\",\\\"Fps\\\":0},\\\"SuperResolution\\\":{\\\"Switch\\\":\\\"ON\\\",\\\"Type\\\":\\\"hq\\\",\\\"Size\\\":2},\\\"Hdr\\\":{\\\"Switch\\\":\\\"OFF\\\",\\\"Type\\\":\\\"HDR10\\\"},\\\"Denoise\\\":{\\\"Switch\\\":\\\"OFF\\\",\\\"Type\\\":\\\"weak\\\"},\\\"ImageQualityEnhance\\\":{\\\"Switch\\\":\\\"ON\\\",\\\"Type\\\":\\\"normal\\\"},\\\"ColorEnhance\\\":{\\\"Switch\\\":\\\"ON\\\",\\\"Type\\\":\\\"weak\\\"},\\\"SharpEnhance\\\":{\\\"Switch\\\":\\\"OFF\\\",\\\"Intensity\\\":0},\\\"FaceEnhance\\\":{\\\"Switch\\\":\\\"OFF\\\",\\\"Intensity\\\":0},\\\"LowLightEnhance\\\":{\\\"Switch\\\":\\\"OFF\\\",\\\"Type\\\":\\\"normal\\\"},\\\"ScratchRepair\\\":{\\\"Switch\\\":\\\"OFF\\\",\\\"Intensity\\\":0},\\\"ArtifactRepair\\\":{\\\"Switch\\\":\\\"OFF\\\",\\\"Type\\\":\\\"weak\\\"}},\\\"AudioEnhance\\\":{\\\"Denoise\\\":{\\\"Switch\\\":\\\"OFF\\\"},\\\"Separate\\\":{\\\"Switch\\\":\\\"OFF\\\",\\\"Type\\\":\\\"normal\\\",\\\"Track\\\":\\\"vocal\\\"},\\\"VolumeBalance\\\":{\\\"Switch\\\":\\\"OFF\\\",\\\"Type\\\":\\\"loudNorm\\\"},\\\"Beautify\\\":{\\\"Switch\\\":\\\"OFF\\\",\\\"Types\\\":[\\\"declick\\\"]}}},\\\"StdExtInfo\\\":null,\\\"AliasName\\\":\\\"\\\"}\"\n }\n ],\n \"RequestId\": \"6ca31e3a-6b8e-4b4e-9256-fdc700064ef3\"\n }\n}",
|
902
|
+
"title": "获取 MPS 任务的参数模板列表"
|
903
|
+
}
|
904
|
+
],
|
881
905
|
"DescribeMediaInfos": [
|
882
906
|
{
|
883
907
|
"document": "获取媒体全部信息,不指定 Filters。",
|
@@ -1408,6 +1432,14 @@
|
|
1408
1432
|
"title": "修改即时转码模板"
|
1409
1433
|
}
|
1410
1434
|
],
|
1435
|
+
"ModifyMPSTemplate": [
|
1436
|
+
{
|
1437
|
+
"document": "",
|
1438
|
+
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyMPSTemplate\n<公共请求参数>\n\n{\n \"SubAppId\": 1500000001,\n \"TemplateType\": \"Transcode\",\n \"MPSModifyTemplateParams\": \"{\\\"Definition\\\":24214,\\\"Container\\\":\\\"mp4\\\",\\\"Name\\\":\\\"test\\\",\\\"RemoveAudio\\\":1,\\\"VideoTemplate\\\":{\\\"Codec\\\":\\\"h264\\\",\\\"Fps\\\":0,\\\"Bitrate\\\":0},\\\"EnhanceConfig\\\":{\\\"VideoEnhance\\\":{\\\"FrameRate\\\":{\\\"Switch\\\":\\\"ON\\\",\\\"Fps\\\":50}}}}\"\n}",
|
1439
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6ca31e3a-6b8e-4b4e-9256-fdc700064ef3\"\n }\n}",
|
1440
|
+
"title": "修改 MPS 音视频增强任务模板"
|
1441
|
+
}
|
1442
|
+
],
|
1411
1443
|
"ModifyMediaInfo": [
|
1412
1444
|
{
|
1413
1445
|
"document": "",
|
tccli/services/vod/vod_client.py
CHANGED
@@ -2983,6 +2983,58 @@ def doCreateContentReviewTemplate(args, parsed_globals):
|
|
2983
2983
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2984
2984
|
|
2985
2985
|
|
2986
|
+
def doDescribeMPSTemplates(args, parsed_globals):
|
2987
|
+
g_param = parse_global_arg(parsed_globals)
|
2988
|
+
|
2989
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2990
|
+
cred = credential.CVMRoleCredential()
|
2991
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2992
|
+
cred = credential.STSAssumeRoleCredential(
|
2993
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2994
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2995
|
+
)
|
2996
|
+
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):
|
2997
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2998
|
+
else:
|
2999
|
+
cred = credential.Credential(
|
3000
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3001
|
+
)
|
3002
|
+
http_profile = HttpProfile(
|
3003
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3004
|
+
reqMethod="POST",
|
3005
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3006
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3007
|
+
)
|
3008
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3009
|
+
if g_param[OptionsDefine.Language]:
|
3010
|
+
profile.language = g_param[OptionsDefine.Language]
|
3011
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3012
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
3013
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3014
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3015
|
+
model = models.DescribeMPSTemplatesRequest()
|
3016
|
+
model.from_json_string(json.dumps(args))
|
3017
|
+
start_time = time.time()
|
3018
|
+
while True:
|
3019
|
+
rsp = client.DescribeMPSTemplates(model)
|
3020
|
+
result = rsp.to_json_string()
|
3021
|
+
try:
|
3022
|
+
json_obj = json.loads(result)
|
3023
|
+
except TypeError as e:
|
3024
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3025
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3026
|
+
break
|
3027
|
+
cur_time = time.time()
|
3028
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3029
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3030
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3031
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3032
|
+
else:
|
3033
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3034
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3035
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3036
|
+
|
3037
|
+
|
2986
3038
|
def doRebuildMedia(args, parsed_globals):
|
2987
3039
|
g_param = parse_global_arg(parsed_globals)
|
2988
3040
|
|
@@ -5895,6 +5947,58 @@ def doDeleteWordSamples(args, parsed_globals):
|
|
5895
5947
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5896
5948
|
|
5897
5949
|
|
5950
|
+
def doCreateMPSTemplate(args, parsed_globals):
|
5951
|
+
g_param = parse_global_arg(parsed_globals)
|
5952
|
+
|
5953
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5954
|
+
cred = credential.CVMRoleCredential()
|
5955
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5956
|
+
cred = credential.STSAssumeRoleCredential(
|
5957
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5958
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5959
|
+
)
|
5960
|
+
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):
|
5961
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5962
|
+
else:
|
5963
|
+
cred = credential.Credential(
|
5964
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5965
|
+
)
|
5966
|
+
http_profile = HttpProfile(
|
5967
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5968
|
+
reqMethod="POST",
|
5969
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5970
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5971
|
+
)
|
5972
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5973
|
+
if g_param[OptionsDefine.Language]:
|
5974
|
+
profile.language = g_param[OptionsDefine.Language]
|
5975
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5976
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
5977
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5978
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5979
|
+
model = models.CreateMPSTemplateRequest()
|
5980
|
+
model.from_json_string(json.dumps(args))
|
5981
|
+
start_time = time.time()
|
5982
|
+
while True:
|
5983
|
+
rsp = client.CreateMPSTemplate(model)
|
5984
|
+
result = rsp.to_json_string()
|
5985
|
+
try:
|
5986
|
+
json_obj = json.loads(result)
|
5987
|
+
except TypeError as e:
|
5988
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5989
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5990
|
+
break
|
5991
|
+
cur_time = time.time()
|
5992
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5993
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5994
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5995
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5996
|
+
else:
|
5997
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5998
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5999
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6000
|
+
|
6001
|
+
|
5898
6002
|
def doFastEditMedia(args, parsed_globals):
|
5899
6003
|
g_param = parse_global_arg(parsed_globals)
|
5900
6004
|
|
@@ -7975,6 +8079,58 @@ def doDescribeDefaultDistributionConfig(args, parsed_globals):
|
|
7975
8079
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7976
8080
|
|
7977
8081
|
|
8082
|
+
def doDeleteMPSTemplate(args, parsed_globals):
|
8083
|
+
g_param = parse_global_arg(parsed_globals)
|
8084
|
+
|
8085
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
8086
|
+
cred = credential.CVMRoleCredential()
|
8087
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
8088
|
+
cred = credential.STSAssumeRoleCredential(
|
8089
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
8090
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
8091
|
+
)
|
8092
|
+
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):
|
8093
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
8094
|
+
else:
|
8095
|
+
cred = credential.Credential(
|
8096
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
8097
|
+
)
|
8098
|
+
http_profile = HttpProfile(
|
8099
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
8100
|
+
reqMethod="POST",
|
8101
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
8102
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
8103
|
+
)
|
8104
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
8105
|
+
if g_param[OptionsDefine.Language]:
|
8106
|
+
profile.language = g_param[OptionsDefine.Language]
|
8107
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
8108
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
8109
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
8110
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8111
|
+
model = models.DeleteMPSTemplateRequest()
|
8112
|
+
model.from_json_string(json.dumps(args))
|
8113
|
+
start_time = time.time()
|
8114
|
+
while True:
|
8115
|
+
rsp = client.DeleteMPSTemplate(model)
|
8116
|
+
result = rsp.to_json_string()
|
8117
|
+
try:
|
8118
|
+
json_obj = json.loads(result)
|
8119
|
+
except TypeError as e:
|
8120
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
8121
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
8122
|
+
break
|
8123
|
+
cur_time = time.time()
|
8124
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
8125
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
8126
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
8127
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
8128
|
+
else:
|
8129
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
8130
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
8131
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8132
|
+
|
8133
|
+
|
7978
8134
|
def doDescribeReviewTemplates(args, parsed_globals):
|
7979
8135
|
g_param = parse_global_arg(parsed_globals)
|
7980
8136
|
|
@@ -8547,6 +8703,58 @@ def doModifyAnimatedGraphicsTemplate(args, parsed_globals):
|
|
8547
8703
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8548
8704
|
|
8549
8705
|
|
8706
|
+
def doModifyMPSTemplate(args, parsed_globals):
|
8707
|
+
g_param = parse_global_arg(parsed_globals)
|
8708
|
+
|
8709
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
8710
|
+
cred = credential.CVMRoleCredential()
|
8711
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
8712
|
+
cred = credential.STSAssumeRoleCredential(
|
8713
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
8714
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
8715
|
+
)
|
8716
|
+
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):
|
8717
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
8718
|
+
else:
|
8719
|
+
cred = credential.Credential(
|
8720
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
8721
|
+
)
|
8722
|
+
http_profile = HttpProfile(
|
8723
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
8724
|
+
reqMethod="POST",
|
8725
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
8726
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
8727
|
+
)
|
8728
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
8729
|
+
if g_param[OptionsDefine.Language]:
|
8730
|
+
profile.language = g_param[OptionsDefine.Language]
|
8731
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
8732
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
8733
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
8734
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8735
|
+
model = models.ModifyMPSTemplateRequest()
|
8736
|
+
model.from_json_string(json.dumps(args))
|
8737
|
+
start_time = time.time()
|
8738
|
+
while True:
|
8739
|
+
rsp = client.ModifyMPSTemplate(model)
|
8740
|
+
result = rsp.to_json_string()
|
8741
|
+
try:
|
8742
|
+
json_obj = json.loads(result)
|
8743
|
+
except TypeError as e:
|
8744
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
8745
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
8746
|
+
break
|
8747
|
+
cur_time = time.time()
|
8748
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
8749
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
8750
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
8751
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
8752
|
+
else:
|
8753
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
8754
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
8755
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8756
|
+
|
8757
|
+
|
8550
8758
|
def doAttachMediaSubtitles(args, parsed_globals):
|
8551
8759
|
g_param = parse_global_arg(parsed_globals)
|
8552
8760
|
|
@@ -9917,6 +10125,7 @@ ACTION_MAP = {
|
|
9917
10125
|
"ConfirmEvents": doConfirmEvents,
|
9918
10126
|
"DescribeAdaptiveDynamicStreamingTemplates": doDescribeAdaptiveDynamicStreamingTemplates,
|
9919
10127
|
"CreateContentReviewTemplate": doCreateContentReviewTemplate,
|
10128
|
+
"DescribeMPSTemplates": doDescribeMPSTemplates,
|
9920
10129
|
"RebuildMedia": doRebuildMedia,
|
9921
10130
|
"CreateSampleSnapshotTemplate": doCreateSampleSnapshotTemplate,
|
9922
10131
|
"DeleteAIAnalysisTemplate": doDeleteAIAnalysisTemplate,
|
@@ -9973,6 +10182,7 @@ ACTION_MAP = {
|
|
9973
10182
|
"ModifyWatermarkTemplate": doModifyWatermarkTemplate,
|
9974
10183
|
"DescribeStorageDetails": doDescribeStorageDetails,
|
9975
10184
|
"DeleteWordSamples": doDeleteWordSamples,
|
10185
|
+
"CreateMPSTemplate": doCreateMPSTemplate,
|
9976
10186
|
"FastEditMedia": doFastEditMedia,
|
9977
10187
|
"CreateVodDomain": doCreateVodDomain,
|
9978
10188
|
"ProcessMedia": doProcessMedia,
|
@@ -10013,6 +10223,7 @@ ACTION_MAP = {
|
|
10013
10223
|
"DeleteIncrementalMigrationStrategy": doDeleteIncrementalMigrationStrategy,
|
10014
10224
|
"DescribeHeadTailTemplates": doDescribeHeadTailTemplates,
|
10015
10225
|
"DescribeDefaultDistributionConfig": doDescribeDefaultDistributionConfig,
|
10226
|
+
"DeleteMPSTemplate": doDeleteMPSTemplate,
|
10016
10227
|
"DescribeReviewTemplates": doDescribeReviewTemplates,
|
10017
10228
|
"CommitUpload": doCommitUpload,
|
10018
10229
|
"ModifyAIRecognitionTemplate": doModifyAIRecognitionTemplate,
|
@@ -10024,6 +10235,7 @@ ACTION_MAP = {
|
|
10024
10235
|
"DescribeEnhanceMediaTemplates": doDescribeEnhanceMediaTemplates,
|
10025
10236
|
"CreateAnimatedGraphicsTemplate": doCreateAnimatedGraphicsTemplate,
|
10026
10237
|
"ModifyAnimatedGraphicsTemplate": doModifyAnimatedGraphicsTemplate,
|
10238
|
+
"ModifyMPSTemplate": doModifyMPSTemplate,
|
10027
10239
|
"AttachMediaSubtitles": doAttachMediaSubtitles,
|
10028
10240
|
"ModifyEventConfig": doModifyEventConfig,
|
10029
10241
|
"DescribeDailyPlayStatFileList": doDescribeDailyPlayStatFileList,
|