tccli 3.0.896.1__py2.py3-none-any.whl → 3.0.898.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdb/v20170320/CreateDatabase.md +22 -0
  3. tccli/examples/cdn/v20180606/ModifyDomainConfig.md +88 -0
  4. tccli/examples/ckafka/v20190819/CreatePostPaidInstance.md +154 -0
  5. tccli/examples/cynosdb/v20190107/DescribeProxySpecs.md +56 -0
  6. tccli/examples/cynosdb/v20190107/DescribeSupportProxyVersion.md +24 -0
  7. tccli/examples/ess/v20201111/CreateFlowApprovers.md +3 -1
  8. tccli/examples/ess/v20201111/DescribeThirdPartyAuthCode.md +1 -1
  9. tccli/examples/postgres/v20170312/CreateReadOnlyDBInstance.md +1 -1
  10. tccli/examples/postgres/v20170312/UpgradeDBInstanceKernelVersion.md +1 -1
  11. tccli/examples/sqlserver/v20180328/DescribeDBInstancesAttribute.md +6 -1
  12. tccli/examples/sqlserver/v20180328/DescribeDBs.md +1 -1
  13. tccli/examples/tdmq/v20200217/CreateCmqQueue.md +2 -2
  14. tccli/examples/tke/v20180525/CreateClusterEndpointVip.md +1 -1
  15. tccli/examples/trp/v20210515/CreateCodeBatch.md +11 -5
  16. tccli/examples/trp/v20210515/DescribeScanLogs.md +1 -1
  17. tccli/examples/trp/v20210515/DescribeTraceCodeById.md +16 -11
  18. tccli/examples/trp/v20210515/ModifyCodeBatch.md +3 -3
  19. tccli/examples/vod/v20180717/CreateQualityInspectTemplate.md +24 -0
  20. tccli/examples/vod/v20180717/DeleteQualityInspectTemplate.md +20 -0
  21. tccli/examples/vod/v20180717/DescribeQualityInspectTemplates.md +44 -0
  22. tccli/examples/vod/v20180717/DescribeTaskDetail.md +4 -0
  23. tccli/examples/vod/v20180717/InspectMediaQuality.md +22 -0
  24. tccli/examples/vod/v20180717/ModifyQualityInspectTemplate.md +21 -0
  25. tccli/examples/yinsuda/v20220527/DescribeKTVMusicAccompanySegmentUrl.md +70 -0
  26. tccli/services/cdb/cdb_client.py +57 -4
  27. tccli/services/cdb/v20170320/api.json +52 -0
  28. tccli/services/cdb/v20170320/examples.json +8 -0
  29. tccli/services/cdn/cdn_client.py +57 -4
  30. tccli/services/cdn/v20180606/api.json +52 -0
  31. tccli/services/cdn/v20180606/examples.json +26 -0
  32. tccli/services/ckafka/ckafka_client.py +61 -8
  33. tccli/services/ckafka/v20190819/api.json +303 -7
  34. tccli/services/ckafka/v20190819/examples.json +20 -0
  35. tccli/services/clb/v20180317/api.json +3 -1
  36. tccli/services/cynosdb/cynosdb_client.py +106 -0
  37. tccli/services/cynosdb/v20190107/api.json +134 -0
  38. tccli/services/cynosdb/v20190107/examples.json +22 -0
  39. tccli/services/emr/v20190103/api.json +6 -2
  40. tccli/services/ess/v20201111/api.json +42 -11
  41. tccli/services/ess/v20201111/examples.json +3 -3
  42. tccli/services/essbasic/v20210526/api.json +27 -1
  43. tccli/services/ocr/v20181119/api.json +4 -2
  44. tccli/services/postgres/v20170312/api.json +2 -31
  45. tccli/services/postgres/v20170312/examples.json +2 -2
  46. tccli/services/sqlserver/v20180328/api.json +72 -15
  47. tccli/services/sqlserver/v20180328/examples.json +3 -3
  48. tccli/services/tbaas/tbaas_client.py +4 -322
  49. tccli/services/tbaas/v20180416/api.json +108 -810
  50. tccli/services/tbaas/v20180416/examples.json +0 -48
  51. tccli/services/tbp/v20190311/api.json +10 -10
  52. tccli/services/tdid/tdid_client.py +67 -1551
  53. tccli/services/tdid/v20210519/api.json +331 -3504
  54. tccli/services/tdid/v20210519/examples.json +0 -224
  55. tccli/services/tdmq/v20200217/api.json +2 -19
  56. tccli/services/tdmq/v20200217/examples.json +2 -2
  57. tccli/services/tione/v20211111/api.json +24 -2
  58. tccli/services/tke/v20180525/api.json +4 -6
  59. tccli/services/tke/v20180525/examples.json +2 -2
  60. tccli/services/trp/v20210515/api.json +285 -113
  61. tccli/services/trp/v20210515/examples.json +6 -6
  62. tccli/services/vod/v20180717/api.json +1346 -2
  63. tccli/services/vod/v20180717/examples.json +44 -4
  64. tccli/services/vod/vod_client.py +287 -22
  65. tccli/services/yinsuda/v20220527/api.json +159 -0
  66. tccli/services/yinsuda/v20220527/examples.json +14 -0
  67. tccli/services/yinsuda/yinsuda_client.py +53 -0
  68. {tccli-3.0.896.1.dist-info → tccli-3.0.898.1.dist-info}/METADATA +2 -2
  69. {tccli-3.0.896.1.dist-info → tccli-3.0.898.1.dist-info}/RECORD +72 -61
  70. {tccli-3.0.896.1.dist-info → tccli-3.0.898.1.dist-info}/WHEEL +0 -0
  71. {tccli-3.0.896.1.dist-info → tccli-3.0.898.1.dist-info}/entry_points.txt +0 -0
  72. {tccli-3.0.896.1.dist-info → tccli-3.0.898.1.dist-info}/license_files/LICENSE +0 -0
@@ -214,6 +214,14 @@
214
214
  "title": "创建一个发起内容审核任务的任务流模板"
215
215
  }
216
216
  ],
217
+ "CreateQualityInspectTemplate": [
218
+ {
219
+ "document": "创建音画质检测模板。",
220
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateQualityInspectTemplate\n<公共请求参数>\n\n{\n \"SubAppId\": 123,\n \"Name\": \"test\",\n \"Comment\": \"abc\",\n \"JitterConfigure\": {\n \"Switch\": \"ON\"\n }\n}",
221
+ "output": "{\n \"Response\": {\n \"Definition\": 20001,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907873d6fb03\"\n }\n}",
222
+ "title": "创建音画质检测模板。"
223
+ }
224
+ ],
217
225
  "CreateRebuildMediaTemplate": [
218
226
  {
219
227
  "document": "创建音画质重生模板。",
@@ -444,6 +452,14 @@
444
452
  "title": "删除指定名字的任务流模板"
445
453
  }
446
454
  ],
455
+ "DeleteQualityInspectTemplate": [
456
+ {
457
+ "document": "删除音画质检测模板。",
458
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteQualityInspectTemplate\n<公共请求参数>\n\n{\n \"Definition\": 20001\n}",
459
+ "output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fa03\"\n }\n}",
460
+ "title": "删除音画质检测模板。"
461
+ }
462
+ ],
447
463
  "DeleteRebuildMediaTemplate": [
448
464
  {
449
465
  "document": "删除音画质重生模板。",
@@ -806,6 +822,14 @@
806
822
  "title": "查询所有的任务流模板"
807
823
  }
808
824
  ],
825
+ "DescribeQualityInspectTemplates": [
826
+ {
827
+ "document": "获取音画质检测模板列表。",
828
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeQualityInspectTemplates\n<公共请求参数>\n\n{\n \"Definitions\": [\n 20001\n ]\n}",
829
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"QualityInspectTemplateSet\": [\n {\n \"Definition\": 20001,\n \"Name\": \"test\",\n \"Comment\": \"\",\n \"Type\": \"Custom\",\n \"ScreenshotInterval\": 1,\n \"JitterConfigure\": {\n \"Switch\": \"ON\"\n },\n \"BlurConfigure\": null,\n \"AbnormalLightingConfigure\": null,\n \"CrashScreenConfigure\": null,\n \"BlackWhiteEdgeConfigure\": null,\n \"NoiseConfigure\": null,\n \"MosaicConfigure\": null,\n \"QRCodeConfigure\": null,\n \"QualityEvaluationConfigure\": null,\n \"VoiceConfigure\": null,\n \"CreateTime\": \"2023-06-01T10:00:00Z\",\n \"UpdateTime\": \"2023-06-01T10:00:00Z\"\n }\n ],\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
830
+ "title": "获取音画质检测模板列表。"
831
+ }
832
+ ],
809
833
  "DescribeRebuildMediaTemplates": [
810
834
  {
811
835
  "document": "获取音画质重生模板列表。",
@@ -898,25 +922,25 @@
898
922
  {
899
923
  "document": "获取任务详情-任务流",
900
924
  "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskDetail\n<公共请求参数>\n\n{\n \"TaskId\": \"12567683xx-Procedure-633031cd8293ef29d39251ea751b69f2t0\"\n}",
901
- "output": "{\n \"Response\": {\n \"TaskType\": \"Procedure\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-02-21T08:27:42Z\",\n \"BeginProcessTime\": \"2019-02-21T08:27:43Z\",\n \"FinishTime\": \"2019-02-21T08:27:44Z\",\n \"ProcedureTask\": {\n \"TaskId\": \"12567683xx-Procedure-2e1af2456351812be963e309cc133403t0\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"SessionContext\": \"\",\n \"SessionId\": \"\",\n \"Operator\": \"\",\n \"OperationType\": \"\",\n \"FileId\": \"5285890784246869930\",\n \"FileName\": \"small\",\n \"FileUrl\": \"http://12567683xx.vod2.myqcloud.com/1c1ae5d2vodgzp12567683xx/c643347c5285890784246869930/AtUCmy6gmIYA.mp4\",\n \"MetaData\": {\n \"AudioDuration\": 59.9900016784668,\n \"Md5\": \"\",\n \"AudioStreamSet\": [\n {\n \"Bitrate\": 383854,\n \"Codec\": \"aac\",\n \"SamplingRate\": 48000\n }\n ],\n \"Bitrate\": 1021028,\n \"Container\": \"mov,mp4,m4a,3gp,3g2,mj2\",\n \"Duration\": 60,\n \"Height\": 480,\n \"Rotate\": 0,\n \"Size\": 7700180,\n \"VideoDuration\": 60,\n \"VideoStreamSet\": [\n {\n \"Bitrate\": 637174,\n \"Codec\": \"h264\",\n \"Fps\": 23,\n \"Height\": 480,\n \"Width\": 640,\n \"DynamicRangeInfo\": {}\n }\n ],\n \"Width\": 640\n },\n \"MediaProcessResultSet\": [],\n \"AiContentReviewResultSet\": [],\n \"AiRecognitionResultSet\": [],\n \"AiAnalysisResultSet\": [],\n \"TasksPriority\": 0,\n \"TasksNotifyMode\": \"\"\n },\n \"ComposeMediaTask\": null,\n \"SplitMediaTask\": null,\n \"WechatMiniProgramPublishTask\": null,\n \"EditMediaTask\": null,\n \"WechatPublishTask\": null,\n \"TranscodeTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"PullUploadTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"RequestId\": \"sdfadf\"\n }\n}",
925
+ "output": "{\n \"Response\": {\n \"TaskType\": \"Procedure\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-02-21T08:27:42Z\",\n \"BeginProcessTime\": \"2019-02-21T08:27:43Z\",\n \"FinishTime\": \"2019-02-21T08:27:44Z\",\n \"ProcedureTask\": {\n \"TaskId\": \"12567683xx-Procedure-2e1af2456351812be963e309cc133403t0\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"SessionContext\": \"\",\n \"SessionId\": \"\",\n \"Operator\": \"\",\n \"OperationType\": \"\",\n \"FileId\": \"5285890784246869930\",\n \"FileName\": \"small\",\n \"FileUrl\": \"http://12567683xx.vod2.myqcloud.com/1c1ae5d2vodgzp12567683xx/c643347c5285890784246869930/AtUCmy6gmIYA.mp4\",\n \"MetaData\": {\n \"AudioDuration\": 59.9900016784668,\n \"Md5\": \"\",\n \"AudioStreamSet\": [\n {\n \"Bitrate\": 383854,\n \"Codec\": \"aac\",\n \"SamplingRate\": 48000\n }\n ],\n \"Bitrate\": 1021028,\n \"Container\": \"mov,mp4,m4a,3gp,3g2,mj2\",\n \"Duration\": 60,\n \"Height\": 480,\n \"Rotate\": 0,\n \"Size\": 7700180,\n \"VideoDuration\": 60,\n \"VideoStreamSet\": [\n {\n \"Bitrate\": 637174,\n \"Codec\": \"h264\",\n \"Fps\": 23,\n \"Height\": 480,\n \"Width\": 640,\n \"DynamicRangeInfo\": {}\n }\n ],\n \"Width\": 640\n },\n \"MediaProcessResultSet\": [],\n \"AiContentReviewResultSet\": [],\n \"AiRecognitionResultSet\": [],\n \"AiAnalysisResultSet\": [],\n \"TasksPriority\": 0,\n \"TasksNotifyMode\": \"\"\n },\n \"ComposeMediaTask\": null,\n \"SplitMediaTask\": null,\n \"WechatMiniProgramPublishTask\": null,\n \"EditMediaTask\": null,\n \"WechatPublishTask\": null,\n \"TranscodeTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"PullUploadTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"QualityInspectTask\": null,\n \"RequestId\": \"sdfadf\"\n }\n}",
902
926
  "title": "获取任务详情-Procedure"
903
927
  },
904
928
  {
905
929
  "document": "获取任务详情-转码",
906
930
  "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskDetail\n<公共请求参数>\n\n{\n \"TaskId\": \"12567683xx-transcode-58a1bc57b1c23ed1079597ec17a47666t0\"\n}",
907
- "output": "{\n \"Response\": {\n \"TaskType\": \"Transcode\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-01-22T06:50:31Z\",\n \"BeginProcessTime\": \"2019-01-22T06:50:32Z\",\n \"FinishTime\": \"2019-01-22T06:50:45Z\",\n \"ProcedureTask\": null,\n \"EditMediaTask\": null,\n \"TranscodeTask\": {\n \"TaskId\": \"12567683xx-transcode-58a1bc57b1c23ed1079597ec17a47666t0\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"FileId\": \"5285890784246869930\",\n \"FileName\": \"small\",\n \"Duration\": 60,\n \"CoverUrl\": \"http://12567683xx.vod2.myqcloud.com/d042887avodtransgzp12567683xx/c643347c5285890784246869930/1546950643_4191274987.100_0.jpg\",\n \"PlayInfoSet\": [\n {\n \"Url\": \"http://12567683xx.vod2.myqcloud.com/1c1ae5d2vodgzp12567683xx/c643347c5285890784246869930/AtUCmy6gmIYA.mp4\",\n \"Definition\": 0,\n \"Bitrate\": 1021028,\n \"Height\": 480,\n \"Width\": 640\n },\n {\n \"Url\": \"http://12567683xx.vod2.myqcloud.com/d042887avodtransgzp12567683xx/c643347c5285890784246869930/v.f10.mp4\",\n \"Definition\": 10,\n \"Bitrate\": 304695,\n \"Height\": 240,\n \"Width\": 320\n }\n ]\n },\n \"ComposeMediaTask\": null,\n \"WechatMiniProgramPublishTask\": null,\n \"SplitMediaTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"WechatPublishTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"PullUploadTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"RequestId\": \"62597d15-3fad-4234-af1a-ed33602a6118\"\n }\n}",
931
+ "output": "{\n \"Response\": {\n \"TaskType\": \"Transcode\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-01-22T06:50:31Z\",\n \"BeginProcessTime\": \"2019-01-22T06:50:32Z\",\n \"FinishTime\": \"2019-01-22T06:50:45Z\",\n \"ProcedureTask\": null,\n \"EditMediaTask\": null,\n \"TranscodeTask\": {\n \"TaskId\": \"12567683xx-transcode-58a1bc57b1c23ed1079597ec17a47666t0\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"FileId\": \"5285890784246869930\",\n \"FileName\": \"small\",\n \"Duration\": 60,\n \"CoverUrl\": \"http://12567683xx.vod2.myqcloud.com/d042887avodtransgzp12567683xx/c643347c5285890784246869930/1546950643_4191274987.100_0.jpg\",\n \"PlayInfoSet\": [\n {\n \"Url\": \"http://12567683xx.vod2.myqcloud.com/1c1ae5d2vodgzp12567683xx/c643347c5285890784246869930/AtUCmy6gmIYA.mp4\",\n \"Definition\": 0,\n \"Bitrate\": 1021028,\n \"Height\": 480,\n \"Width\": 640\n },\n {\n \"Url\": \"http://12567683xx.vod2.myqcloud.com/d042887avodtransgzp12567683xx/c643347c5285890784246869930/v.f10.mp4\",\n \"Definition\": 10,\n \"Bitrate\": 304695,\n \"Height\": 240,\n \"Width\": 320\n }\n ]\n },\n \"ComposeMediaTask\": null,\n \"WechatMiniProgramPublishTask\": null,\n \"SplitMediaTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"WechatPublishTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"PullUploadTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"QualityInspectTask\": null,\n \"RequestId\": \"62597d15-3fad-4234-af1a-ed33602a6118\"\n }\n}",
908
932
  "title": "获取任务详情-Transcode"
909
933
  },
910
934
  {
911
935
  "document": "获取任务详情-编辑视频",
912
936
  "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskDetail\n<公共请求参数>\n\n{\n \"TaskId\": \"12530394xx-procedurev2-61c975da05662fd9d3bf9d89a63361c0t0\"\n}",
913
- "output": "{\n \"Response\": {\n \"TaskType\": \"EditMedia\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-02-25T10:56:02Z\",\n \"BeginProcessTime\": \"2019-02-25T10:56:02Z\",\n \"FinishTime\": \"2019-02-25T10:56:13Z\",\n \"ProcedureTask\": null,\n \"EditMediaTask\": {\n \"TaskId\": \"12530394xx-procedurev2-61c975da05662fd9d3bf9d89a63361c0t0\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"Input\": {\n \"InputType\": \"Stream\",\n \"FileInfoSet\": [\n {\n \"FileId\": \"4565514956192708397\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 30\n },\n {\n \"FileId\": \"4565514956192708396\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 30\n }\n ],\n \"StreamInfoSet\": [\n {\n \"StreamId\": \"29920_stream\",\n \"StartTime\": \"2019-02-20T06:21:00Z\",\n \"EndTime\": \"2019-02-20T06:21:30Z\"\n }\n ]\n },\n \"Output\": {\n \"FileType\": \"mp4\",\n \"FileId\": \"4565514956222184986\",\n \"FileUrl\": \"http://12530394xx.vod2.myqcloud.com/9395476dvodcq1253039488/f0e1f8314565514956222184986/playlist.f9.mp4\"\n },\n \"ProcedureTaskId\": \"\"\n },\n \"ComposeMediaTask\": null,\n \"SplitMediaTask\": null,\n \"WechatMiniProgramPublishTask\": null,\n \"WechatPublishTask\": null,\n \"TranscodeTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"PullUploadTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"RequestId\": \"sdfadf\"\n }\n}",
937
+ "output": "{\n \"Response\": {\n \"TaskType\": \"EditMedia\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-02-25T10:56:02Z\",\n \"BeginProcessTime\": \"2019-02-25T10:56:02Z\",\n \"FinishTime\": \"2019-02-25T10:56:13Z\",\n \"ProcedureTask\": null,\n \"EditMediaTask\": {\n \"TaskId\": \"12530394xx-procedurev2-61c975da05662fd9d3bf9d89a63361c0t0\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"Input\": {\n \"InputType\": \"Stream\",\n \"FileInfoSet\": [\n {\n \"FileId\": \"4565514956192708397\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 30\n },\n {\n \"FileId\": \"4565514956192708396\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 30\n }\n ],\n \"StreamInfoSet\": [\n {\n \"StreamId\": \"29920_stream\",\n \"StartTime\": \"2019-02-20T06:21:00Z\",\n \"EndTime\": \"2019-02-20T06:21:30Z\"\n }\n ]\n },\n \"Output\": {\n \"FileType\": \"mp4\",\n \"FileId\": \"4565514956222184986\",\n \"FileUrl\": \"http://12530394xx.vod2.myqcloud.com/9395476dvodcq1253039488/f0e1f8314565514956222184986/playlist.f9.mp4\"\n },\n \"ProcedureTaskId\": \"\"\n },\n \"ComposeMediaTask\": null,\n \"SplitMediaTask\": null,\n \"WechatMiniProgramPublishTask\": null,\n \"WechatPublishTask\": null,\n \"TranscodeTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"PullUploadTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"QualityInspectTask\": null,\n \"RequestId\": \"sdfadf\"\n }\n}",
914
938
  "title": "获取任务详情-EditMedia"
915
939
  },
916
940
  {
917
941
  "document": "获取任务详情-微信小程序发布",
918
942
  "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskDetail\n<公共请求参数>\n\n{\n \"TaskId\": \"1253339xxx-wechat-mini-program-publish-e576984516ec3b3c8e49753adf6b0688t0\"\n}",
919
- "output": "{\n \"Response\": {\n \"TaskType\": \"WechatMiniProgramPublish\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-06-23T13:04:42Z\",\n \"BeginProcessTime\": \"2019-06-23T13:04:42Z\",\n \"FinishTime\": \"2019-06-23T13:04:53Z\",\n \"ProcedureTask\": null,\n \"EditMediaTask\": null,\n \"ComposeMediaTask\": null,\n \"WechatPublishTask\": null,\n \"PullUploadTask\": null,\n \"WechatMiniProgramPublishTask\": {\n \"TaskId\": \"1253339xxx-wechat-mini-program-publish-e576984516ec3b3c8e49753adf6b0688t0\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"FileId\": \"5285890789444337543\",\n \"SourceDefinition\": 0,\n \"PublishResult\": \"Pass\"\n },\n \"SplitMediaTask\": null,\n \"TranscodeTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"RequestId\": \"04db7d25-f590-414a-a341-8f1584f15f84\"\n }\n}",
943
+ "output": "{\n \"Response\": {\n \"TaskType\": \"WechatMiniProgramPublish\",\n \"Status\": \"FINISH\",\n \"CreateTime\": \"2019-06-23T13:04:42Z\",\n \"BeginProcessTime\": \"2019-06-23T13:04:42Z\",\n \"FinishTime\": \"2019-06-23T13:04:53Z\",\n \"ProcedureTask\": null,\n \"EditMediaTask\": null,\n \"ComposeMediaTask\": null,\n \"WechatPublishTask\": null,\n \"PullUploadTask\": null,\n \"WechatMiniProgramPublishTask\": {\n \"TaskId\": \"1253339xxx-wechat-mini-program-publish-e576984516ec3b3c8e49753adf6b0688t0\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"FileId\": \"5285890789444337543\",\n \"SourceDefinition\": 0,\n \"PublishResult\": \"Pass\"\n },\n \"SplitMediaTask\": null,\n \"TranscodeTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"ConcatTask\": null,\n \"ClipTask\": null,\n \"CreateImageSpriteTask\": null,\n \"RemoveWatermarkTask\": null,\n \"ReviewAudioVideoTask\": null,\n \"ReduceMediaBitrateTask\": null,\n \"ExtractTraceWatermarkTask\": null,\n \"ExtractCopyRightWatermarkTask\": null,\n \"DescribeFileAttributesTask\": null,\n \"RebuildMediaTask\": null,\n \"QualityInspectTask\": null,\n \"RequestId\": \"04db7d25-f590-414a-a341-8f1584f15f84\"\n }\n}",
920
944
  "title": "获取任务详情-WechatMiniProgramPublish"
921
945
  }
922
946
  ],
@@ -1068,6 +1092,14 @@
1068
1092
  "title": "禁播"
1069
1093
  }
1070
1094
  ],
1095
+ "InspectMediaQuality": [
1096
+ {
1097
+ "document": "对 fileId 为 5285485487985271487 的视频发起音画质检测任务。",
1098
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InspectMediaQuality\n<公共请求参数>\n\n{\n \"FileId\": \"5285485487985271487\",\n \"Definition\": 20001\n}",
1099
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6ca31e3a-6b8e-4b4e-9256-fdc700064ef3\",\n \"TaskId\": \"125xxx65-InspectMediaQuality-bffb15f07530b57bc1aabb01fac74bcc\"\n }\n}",
1100
+ "title": "发起音画质检测任务"
1101
+ }
1102
+ ],
1071
1103
  "LiveRealTimeClip": [
1072
1104
  {
1073
1105
  "document": "对直播码为 record-stream 和域名为 example.com 的直播流发起即时剪辑,起始时间为 2018-09-20T10:00:00Z,结束时间为 2018-09-20T11:00:00Z,并且不固化。假设该直播流在 2018-09-20T10:30:00Z 到 2018-09-20T10:40:00Z 存在过断流的情况,持续时间为10分钟,那么输出参数 SegmentSet 将包含两个片段信息,可以得到剪辑后的视频实际时长为50分钟。",
@@ -1280,6 +1312,14 @@
1280
1312
  "title": "修改素材样本-delete"
1281
1313
  }
1282
1314
  ],
1315
+ "ModifyQualityInspectTemplate": [
1316
+ {
1317
+ "document": "修改音画质检测模板。",
1318
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyQualityInspectTemplate\n<公共请求参数>\n\n{\n \"Definition\": 20001,\n \"Name\": \"testNewName\"\n}",
1319
+ "output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb04\"\n }\n}",
1320
+ "title": "修改音画质检测模板。"
1321
+ }
1322
+ ],
1283
1323
  "ModifyRebuildMediaTemplate": [
1284
1324
  {
1285
1325
  "document": "修改音画质重生模板。",
@@ -641,6 +641,58 @@ def doProcessMediaByProcedure(args, parsed_globals):
641
641
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
642
 
643
643
 
644
+ def doCreateQualityInspectTemplate(args, parsed_globals):
645
+ g_param = parse_global_arg(parsed_globals)
646
+
647
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
648
+ cred = credential.CVMRoleCredential()
649
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
650
+ cred = credential.STSAssumeRoleCredential(
651
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
652
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
653
+ )
654
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
655
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
656
+ else:
657
+ cred = credential.Credential(
658
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
659
+ )
660
+ http_profile = HttpProfile(
661
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
662
+ reqMethod="POST",
663
+ endpoint=g_param[OptionsDefine.Endpoint],
664
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
665
+ )
666
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
667
+ if g_param[OptionsDefine.Language]:
668
+ profile.language = g_param[OptionsDefine.Language]
669
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
670
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
671
+ client._sdkVersion += ("_CLI_" + __version__)
672
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
673
+ model = models.CreateQualityInspectTemplateRequest()
674
+ model.from_json_string(json.dumps(args))
675
+ start_time = time.time()
676
+ while True:
677
+ rsp = client.CreateQualityInspectTemplate(model)
678
+ result = rsp.to_json_string()
679
+ try:
680
+ json_obj = json.loads(result)
681
+ except TypeError as e:
682
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
683
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
684
+ break
685
+ cur_time = time.time()
686
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
687
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
688
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
689
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
690
+ else:
691
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
692
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
693
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
+
695
+
644
696
  def doModifyRebuildMediaTemplate(args, parsed_globals):
645
697
  g_param = parse_global_arg(parsed_globals)
646
698
 
@@ -1837,6 +1889,58 @@ def doDescribeMediaPlayStatDetails(args, parsed_globals):
1837
1889
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1838
1890
 
1839
1891
 
1892
+ def doCreateWordSamples(args, parsed_globals):
1893
+ g_param = parse_global_arg(parsed_globals)
1894
+
1895
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1896
+ cred = credential.CVMRoleCredential()
1897
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1898
+ cred = credential.STSAssumeRoleCredential(
1899
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1900
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1901
+ )
1902
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1903
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1904
+ else:
1905
+ cred = credential.Credential(
1906
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1907
+ )
1908
+ http_profile = HttpProfile(
1909
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1910
+ reqMethod="POST",
1911
+ endpoint=g_param[OptionsDefine.Endpoint],
1912
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1913
+ )
1914
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1915
+ if g_param[OptionsDefine.Language]:
1916
+ profile.language = g_param[OptionsDefine.Language]
1917
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1918
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
1919
+ client._sdkVersion += ("_CLI_" + __version__)
1920
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1921
+ model = models.CreateWordSamplesRequest()
1922
+ model.from_json_string(json.dumps(args))
1923
+ start_time = time.time()
1924
+ while True:
1925
+ rsp = client.CreateWordSamples(model)
1926
+ result = rsp.to_json_string()
1927
+ try:
1928
+ json_obj = json.loads(result)
1929
+ except TypeError as e:
1930
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1931
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1932
+ break
1933
+ cur_time = time.time()
1934
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1935
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1936
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1937
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1938
+ else:
1939
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1940
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1941
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
+
1943
+
1840
1944
  def doModifyReviewTemplate(args, parsed_globals):
1841
1945
  g_param = parse_global_arg(parsed_globals)
1842
1946
 
@@ -2253,6 +2357,58 @@ def doDescribeTranscodeTemplates(args, parsed_globals):
2253
2357
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2254
2358
 
2255
2359
 
2360
+ def doInspectMediaQuality(args, parsed_globals):
2361
+ g_param = parse_global_arg(parsed_globals)
2362
+
2363
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2364
+ cred = credential.CVMRoleCredential()
2365
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2366
+ cred = credential.STSAssumeRoleCredential(
2367
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2368
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2369
+ )
2370
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2371
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2372
+ else:
2373
+ cred = credential.Credential(
2374
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2375
+ )
2376
+ http_profile = HttpProfile(
2377
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2378
+ reqMethod="POST",
2379
+ endpoint=g_param[OptionsDefine.Endpoint],
2380
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2381
+ )
2382
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2383
+ if g_param[OptionsDefine.Language]:
2384
+ profile.language = g_param[OptionsDefine.Language]
2385
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2386
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
2387
+ client._sdkVersion += ("_CLI_" + __version__)
2388
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2389
+ model = models.InspectMediaQualityRequest()
2390
+ model.from_json_string(json.dumps(args))
2391
+ start_time = time.time()
2392
+ while True:
2393
+ rsp = client.InspectMediaQuality(model)
2394
+ result = rsp.to_json_string()
2395
+ try:
2396
+ json_obj = json.loads(result)
2397
+ except TypeError as e:
2398
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2399
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2400
+ break
2401
+ cur_time = time.time()
2402
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2403
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2404
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2405
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2406
+ else:
2407
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2408
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2409
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2410
+
2411
+
2256
2412
  def doDescribePrepaidProducts(args, parsed_globals):
2257
2413
  g_param = parse_global_arg(parsed_globals)
2258
2414
 
@@ -2305,7 +2461,7 @@ def doDescribePrepaidProducts(args, parsed_globals):
2305
2461
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2306
2462
 
2307
2463
 
2308
- def doDescribeSnapshotByTimeOffsetTemplates(args, parsed_globals):
2464
+ def doConfirmEvents(args, parsed_globals):
2309
2465
  g_param = parse_global_arg(parsed_globals)
2310
2466
 
2311
2467
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2334,11 +2490,11 @@ def doDescribeSnapshotByTimeOffsetTemplates(args, parsed_globals):
2334
2490
  client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
2335
2491
  client._sdkVersion += ("_CLI_" + __version__)
2336
2492
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2337
- model = models.DescribeSnapshotByTimeOffsetTemplatesRequest()
2493
+ model = models.ConfirmEventsRequest()
2338
2494
  model.from_json_string(json.dumps(args))
2339
2495
  start_time = time.time()
2340
2496
  while True:
2341
- rsp = client.DescribeSnapshotByTimeOffsetTemplates(model)
2497
+ rsp = client.ConfirmEvents(model)
2342
2498
  result = rsp.to_json_string()
2343
2499
  try:
2344
2500
  json_obj = json.loads(result)
@@ -4229,7 +4385,7 @@ def doDescribeEventsState(args, parsed_globals):
4229
4385
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4230
4386
 
4231
4387
 
4232
- def doDescribeImageReviewUsageData(args, parsed_globals):
4388
+ def doModifyQualityInspectTemplate(args, parsed_globals):
4233
4389
  g_param = parse_global_arg(parsed_globals)
4234
4390
 
4235
4391
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4258,11 +4414,11 @@ def doDescribeImageReviewUsageData(args, parsed_globals):
4258
4414
  client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
4259
4415
  client._sdkVersion += ("_CLI_" + __version__)
4260
4416
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4261
- model = models.DescribeImageReviewUsageDataRequest()
4417
+ model = models.ModifyQualityInspectTemplateRequest()
4262
4418
  model.from_json_string(json.dumps(args))
4263
4419
  start_time = time.time()
4264
4420
  while True:
4265
- rsp = client.DescribeImageReviewUsageData(model)
4421
+ rsp = client.ModifyQualityInspectTemplate(model)
4266
4422
  result = rsp.to_json_string()
4267
4423
  try:
4268
4424
  json_obj = json.loads(result)
@@ -4281,7 +4437,7 @@ def doDescribeImageReviewUsageData(args, parsed_globals):
4281
4437
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4282
4438
 
4283
4439
 
4284
- def doModifyVodDomainConfig(args, parsed_globals):
4440
+ def doDescribeImageReviewUsageData(args, parsed_globals):
4285
4441
  g_param = parse_global_arg(parsed_globals)
4286
4442
 
4287
4443
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4310,11 +4466,11 @@ def doModifyVodDomainConfig(args, parsed_globals):
4310
4466
  client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
4311
4467
  client._sdkVersion += ("_CLI_" + __version__)
4312
4468
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4313
- model = models.ModifyVodDomainConfigRequest()
4469
+ model = models.DescribeImageReviewUsageDataRequest()
4314
4470
  model.from_json_string(json.dumps(args))
4315
4471
  start_time = time.time()
4316
4472
  while True:
4317
- rsp = client.ModifyVodDomainConfig(model)
4473
+ rsp = client.DescribeImageReviewUsageData(model)
4318
4474
  result = rsp.to_json_string()
4319
4475
  try:
4320
4476
  json_obj = json.loads(result)
@@ -4333,7 +4489,7 @@ def doModifyVodDomainConfig(args, parsed_globals):
4333
4489
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4334
4490
 
4335
4491
 
4336
- def doConfirmEvents(args, parsed_globals):
4492
+ def doModifyVodDomainConfig(args, parsed_globals):
4337
4493
  g_param = parse_global_arg(parsed_globals)
4338
4494
 
4339
4495
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4362,11 +4518,11 @@ def doConfirmEvents(args, parsed_globals):
4362
4518
  client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
4363
4519
  client._sdkVersion += ("_CLI_" + __version__)
4364
4520
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4365
- model = models.ConfirmEventsRequest()
4521
+ model = models.ModifyVodDomainConfigRequest()
4366
4522
  model.from_json_string(json.dumps(args))
4367
4523
  start_time = time.time()
4368
4524
  while True:
4369
- rsp = client.ConfirmEvents(model)
4525
+ rsp = client.ModifyVodDomainConfig(model)
4370
4526
  result = rsp.to_json_string()
4371
4527
  try:
4372
4528
  json_obj = json.loads(result)
@@ -4385,7 +4541,7 @@ def doConfirmEvents(args, parsed_globals):
4385
4541
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4386
4542
 
4387
4543
 
4388
- def doDescribeRoundPlays(args, parsed_globals):
4544
+ def doDescribeSnapshotByTimeOffsetTemplates(args, parsed_globals):
4389
4545
  g_param = parse_global_arg(parsed_globals)
4390
4546
 
4391
4547
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4414,11 +4570,11 @@ def doDescribeRoundPlays(args, parsed_globals):
4414
4570
  client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
4415
4571
  client._sdkVersion += ("_CLI_" + __version__)
4416
4572
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4417
- model = models.DescribeRoundPlaysRequest()
4573
+ model = models.DescribeSnapshotByTimeOffsetTemplatesRequest()
4418
4574
  model.from_json_string(json.dumps(args))
4419
4575
  start_time = time.time()
4420
4576
  while True:
4421
- rsp = client.DescribeRoundPlays(model)
4577
+ rsp = client.DescribeSnapshotByTimeOffsetTemplates(model)
4422
4578
  result = rsp.to_json_string()
4423
4579
  try:
4424
4580
  json_obj = json.loads(result)
@@ -5529,7 +5685,7 @@ def doCreateClass(args, parsed_globals):
5529
5685
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5530
5686
 
5531
5687
 
5532
- def doCreateWordSamples(args, parsed_globals):
5688
+ def doDescribeRoundPlays(args, parsed_globals):
5533
5689
  g_param = parse_global_arg(parsed_globals)
5534
5690
 
5535
5691
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5558,11 +5714,11 @@ def doCreateWordSamples(args, parsed_globals):
5558
5714
  client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
5559
5715
  client._sdkVersion += ("_CLI_" + __version__)
5560
5716
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5561
- model = models.CreateWordSamplesRequest()
5717
+ model = models.DescribeRoundPlaysRequest()
5562
5718
  model.from_json_string(json.dumps(args))
5563
5719
  start_time = time.time()
5564
5720
  while True:
5565
- rsp = client.CreateWordSamples(model)
5721
+ rsp = client.DescribeRoundPlays(model)
5566
5722
  result = rsp.to_json_string()
5567
5723
  try:
5568
5724
  json_obj = json.loads(result)
@@ -6309,6 +6465,110 @@ def doDescribeContentReviewTemplates(args, parsed_globals):
6309
6465
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6310
6466
 
6311
6467
 
6468
+ def doDeleteQualityInspectTemplate(args, parsed_globals):
6469
+ g_param = parse_global_arg(parsed_globals)
6470
+
6471
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6472
+ cred = credential.CVMRoleCredential()
6473
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6474
+ cred = credential.STSAssumeRoleCredential(
6475
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6476
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
6477
+ )
6478
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6479
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6480
+ else:
6481
+ cred = credential.Credential(
6482
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6483
+ )
6484
+ http_profile = HttpProfile(
6485
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6486
+ reqMethod="POST",
6487
+ endpoint=g_param[OptionsDefine.Endpoint],
6488
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6489
+ )
6490
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6491
+ if g_param[OptionsDefine.Language]:
6492
+ profile.language = g_param[OptionsDefine.Language]
6493
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6494
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
6495
+ client._sdkVersion += ("_CLI_" + __version__)
6496
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6497
+ model = models.DeleteQualityInspectTemplateRequest()
6498
+ model.from_json_string(json.dumps(args))
6499
+ start_time = time.time()
6500
+ while True:
6501
+ rsp = client.DeleteQualityInspectTemplate(model)
6502
+ result = rsp.to_json_string()
6503
+ try:
6504
+ json_obj = json.loads(result)
6505
+ except TypeError as e:
6506
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6507
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6508
+ break
6509
+ cur_time = time.time()
6510
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6511
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6512
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6513
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6514
+ else:
6515
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6516
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6517
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6518
+
6519
+
6520
+ def doDescribeQualityInspectTemplates(args, parsed_globals):
6521
+ g_param = parse_global_arg(parsed_globals)
6522
+
6523
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6524
+ cred = credential.CVMRoleCredential()
6525
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6526
+ cred = credential.STSAssumeRoleCredential(
6527
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6528
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
6529
+ )
6530
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6531
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6532
+ else:
6533
+ cred = credential.Credential(
6534
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6535
+ )
6536
+ http_profile = HttpProfile(
6537
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6538
+ reqMethod="POST",
6539
+ endpoint=g_param[OptionsDefine.Endpoint],
6540
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6541
+ )
6542
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6543
+ if g_param[OptionsDefine.Language]:
6544
+ profile.language = g_param[OptionsDefine.Language]
6545
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6546
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
6547
+ client._sdkVersion += ("_CLI_" + __version__)
6548
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6549
+ model = models.DescribeQualityInspectTemplatesRequest()
6550
+ model.from_json_string(json.dumps(args))
6551
+ start_time = time.time()
6552
+ while True:
6553
+ rsp = client.DescribeQualityInspectTemplates(model)
6554
+ result = rsp.to_json_string()
6555
+ try:
6556
+ json_obj = json.loads(result)
6557
+ except TypeError as e:
6558
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6559
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6560
+ break
6561
+ cur_time = time.time()
6562
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6563
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6564
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6565
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6566
+ else:
6567
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6568
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6569
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6570
+
6571
+
6312
6572
  def doCreateAIRecognitionTemplate(args, parsed_globals):
6313
6573
  g_param = parse_global_arg(parsed_globals)
6314
6574
 
@@ -8100,6 +8360,7 @@ ACTION_MAP = {
8100
8360
  "DescribeAIAnalysisTemplates": doDescribeAIAnalysisTemplates,
8101
8361
  "PullEvents": doPullEvents,
8102
8362
  "ProcessMediaByProcedure": doProcessMediaByProcedure,
8363
+ "CreateQualityInspectTemplate": doCreateQualityInspectTemplate,
8103
8364
  "ModifyRebuildMediaTemplate": doModifyRebuildMediaTemplate,
8104
8365
  "DeleteTranscodeTemplate": doDeleteTranscodeTemplate,
8105
8366
  "DescribeTaskDetail": doDescribeTaskDetail,
@@ -8123,6 +8384,7 @@ ACTION_MAP = {
8123
8384
  "CreateTranscodeTemplate": doCreateTranscodeTemplate,
8124
8385
  "DescribeCDNStatDetails": doDescribeCDNStatDetails,
8125
8386
  "DescribeMediaPlayStatDetails": doDescribeMediaPlayStatDetails,
8387
+ "CreateWordSamples": doCreateWordSamples,
8126
8388
  "ModifyReviewTemplate": doModifyReviewTemplate,
8127
8389
  "DescribeLicenseUsageData": doDescribeLicenseUsageData,
8128
8390
  "ModifyImageSpriteTemplate": doModifyImageSpriteTemplate,
@@ -8131,8 +8393,9 @@ ACTION_MAP = {
8131
8393
  "DescribeClientUploadAccelerationUsageData": doDescribeClientUploadAccelerationUsageData,
8132
8394
  "DescribeMediaProcessUsageData": doDescribeMediaProcessUsageData,
8133
8395
  "DescribeTranscodeTemplates": doDescribeTranscodeTemplates,
8396
+ "InspectMediaQuality": doInspectMediaQuality,
8134
8397
  "DescribePrepaidProducts": doDescribePrepaidProducts,
8135
- "DescribeSnapshotByTimeOffsetTemplates": doDescribeSnapshotByTimeOffsetTemplates,
8398
+ "ConfirmEvents": doConfirmEvents,
8136
8399
  "DescribeAdaptiveDynamicStreamingTemplates": doDescribeAdaptiveDynamicStreamingTemplates,
8137
8400
  "CreateContentReviewTemplate": doCreateContentReviewTemplate,
8138
8401
  "RebuildMedia": doRebuildMedia,
@@ -8169,10 +8432,10 @@ ACTION_MAP = {
8169
8432
  "DescribeStorageRegions": doDescribeStorageRegions,
8170
8433
  "RefreshUrlCache": doRefreshUrlCache,
8171
8434
  "DescribeEventsState": doDescribeEventsState,
8435
+ "ModifyQualityInspectTemplate": doModifyQualityInspectTemplate,
8172
8436
  "DescribeImageReviewUsageData": doDescribeImageReviewUsageData,
8173
8437
  "ModifyVodDomainConfig": doModifyVodDomainConfig,
8174
- "ConfirmEvents": doConfirmEvents,
8175
- "DescribeRoundPlays": doDescribeRoundPlays,
8438
+ "DescribeSnapshotByTimeOffsetTemplates": doDescribeSnapshotByTimeOffsetTemplates,
8176
8439
  "PullUpload": doPullUpload,
8177
8440
  "ModifyTranscodeTemplate": doModifyTranscodeTemplate,
8178
8441
  "ReviewAudioVideo": doReviewAudioVideo,
@@ -8194,7 +8457,7 @@ ACTION_MAP = {
8194
8457
  "ModifySnapshotByTimeOffsetTemplate": doModifySnapshotByTimeOffsetTemplate,
8195
8458
  "ModifySuperPlayerConfig": doModifySuperPlayerConfig,
8196
8459
  "CreateClass": doCreateClass,
8197
- "CreateWordSamples": doCreateWordSamples,
8460
+ "DescribeRoundPlays": doDescribeRoundPlays,
8198
8461
  "DescribeEventConfig": doDescribeEventConfig,
8199
8462
  "ModifySubAppIdInfo": doModifySubAppIdInfo,
8200
8463
  "ComposeMedia": doComposeMedia,
@@ -8209,6 +8472,8 @@ ACTION_MAP = {
8209
8472
  "RebuildMediaByTemplate": doRebuildMediaByTemplate,
8210
8473
  "CreateReviewTemplate": doCreateReviewTemplate,
8211
8474
  "DescribeContentReviewTemplates": doDescribeContentReviewTemplates,
8475
+ "DeleteQualityInspectTemplate": doDeleteQualityInspectTemplate,
8476
+ "DescribeQualityInspectTemplates": doDescribeQualityInspectTemplates,
8212
8477
  "CreateAIRecognitionTemplate": doCreateAIRecognitionTemplate,
8213
8478
  "DescribeSubAppIds": doDescribeSubAppIds,
8214
8479
  "DescribeHeadTailTemplates": doDescribeHeadTailTemplates,