tccli 3.0.1326.1__py2.py3-none-any.whl → 3.0.1328.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.
Files changed (70) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ams/v20201229/api.json +9 -9
  3. tccli/services/apm/v20210622/api.json +10 -1
  4. tccli/services/apm/v20210622/examples.json +2 -2
  5. tccli/services/bh/v20230418/api.json +9 -0
  6. tccli/services/cbs/v20170312/api.json +2 -2
  7. tccli/services/cdb/v20170320/api.json +30 -12
  8. tccli/services/cdc/v20201214/api.json +5 -5
  9. tccli/services/cfs/v20190719/api.json +4 -4
  10. tccli/services/chc/chc_client.py +53 -0
  11. tccli/services/chc/v20230418/api.json +62 -0
  12. tccli/services/chc/v20230418/examples.json +8 -0
  13. tccli/services/clb/clb_client.py +53 -0
  14. tccli/services/clb/v20180317/api.json +100 -0
  15. tccli/services/clb/v20180317/examples.json +8 -0
  16. tccli/services/cvm/v20170312/api.json +2 -2
  17. tccli/services/cwp/v20180228/api.json +92 -1
  18. tccli/services/dbbrain/v20210527/api.json +4 -4
  19. tccli/services/dcdb/v20180411/examples.json +1 -1
  20. tccli/services/dts/v20211206/api.json +3 -3
  21. tccli/services/emr/v20190103/api.json +193 -9
  22. tccli/services/ess/ess_client.py +126 -20
  23. tccli/services/ess/v20201111/api.json +135 -1
  24. tccli/services/ess/v20201111/examples.json +22 -0
  25. tccli/services/essbasic/v20210526/api.json +1 -1
  26. tccli/services/gs/gs_client.py +836 -147
  27. tccli/services/gs/v20191118/api.json +964 -28
  28. tccli/services/gs/v20191118/examples.json +106 -2
  29. tccli/services/iotexplorer/v20190423/api.json +5 -5
  30. tccli/services/iotexplorer/v20190423/examples.json +1 -1
  31. tccli/services/lowcode/v20210108/api.json +60 -0
  32. tccli/services/mariadb/v20170312/api.json +10 -10
  33. tccli/services/monitor/monitor_client.py +117 -11
  34. tccli/services/monitor/v20180724/api.json +151 -0
  35. tccli/services/monitor/v20180724/examples.json +16 -0
  36. tccli/services/mrs/v20200910/api.json +1 -1
  37. tccli/services/oceanus/v20190422/api.json +15 -5
  38. tccli/services/oceanus/v20190422/examples.json +8 -2
  39. tccli/services/ocr/v20181119/api.json +74 -9
  40. tccli/services/partners/v20180321/api.json +7 -7
  41. tccli/services/privatedns/privatedns_client.py +53 -0
  42. tccli/services/privatedns/v20201028/api.json +179 -0
  43. tccli/services/privatedns/v20201028/examples.json +8 -0
  44. tccli/services/tcss/v20201101/api.json +248 -35
  45. tccli/services/tcss/v20201101/examples.json +8 -8
  46. tccli/services/tem/tem_client.py +53 -0
  47. tccli/services/tem/v20210701/api.json +107 -0
  48. tccli/services/tem/v20210701/examples.json +8 -0
  49. tccli/services/teo/v20220901/api.json +807 -74
  50. tccli/services/teo/v20220901/examples.json +2 -2
  51. tccli/services/tms/v20201229/api.json +2 -2
  52. tccli/services/tms/v20201229/examples.json +1 -1
  53. tccli/services/trtc/v20190722/api.json +2 -2
  54. tccli/services/vclm/v20240523/api.json +173 -0
  55. tccli/services/vclm/v20240523/examples.json +16 -0
  56. tccli/services/vclm/vclm_client.py +106 -0
  57. tccli/services/vm/v20210922/api.json +13 -13
  58. tccli/services/vm/v20210922/examples.json +2 -2
  59. tccli/services/vod/v20180717/api.json +13 -11
  60. tccli/services/vod/v20180717/examples.json +4 -4
  61. tccli/services/vpc/v20170312/api.json +12 -3
  62. tccli/services/waf/v20180125/api.json +2 -2
  63. tccli/services/wedata/v20210820/api.json +952 -0
  64. tccli/services/wedata/v20210820/examples.json +8 -0
  65. tccli/services/wedata/wedata_client.py +53 -0
  66. {tccli-3.0.1326.1.dist-info → tccli-3.0.1328.1.dist-info}/METADATA +2 -2
  67. {tccli-3.0.1326.1.dist-info → tccli-3.0.1328.1.dist-info}/RECORD +70 -70
  68. {tccli-3.0.1326.1.dist-info → tccli-3.0.1328.1.dist-info}/WHEEL +0 -0
  69. {tccli-3.0.1326.1.dist-info → tccli-3.0.1328.1.dist-info}/entry_points.txt +0 -0
  70. {tccli-3.0.1326.1.dist-info → tccli-3.0.1328.1.dist-info}/license_files/LICENSE +0 -0
@@ -914,7 +914,7 @@
914
914
  {
915
915
  "document": "查询安全防护配置",
916
916
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSecurityPolicy\n<公共请求参数>\n\n{\n \"Entity\": \"Host\",\n \"Host\": \"www.example.com\",\n \"ZoneId\": \"zone-xxqr76cy\"\n}",
917
- "output": "{\n \"Response\": {\n \"RequestId\": \"cb5d2c0e-295e-412a-891a-9f8ab6057b4a\",\n \"SecurityPolicy\": {\n \"CustomRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"ASimpleIPRule\",\n \"Condition\": \"${http.request.ip} in ['1.1.1.1', '10.10.10.0/24'] or ${http.request.ip.asn} in ['132203']\",\n \"Action\": {\n \"Name\": \"Deny\"\n },\n \"Enabled\": \"on\",\n \"RuleType\": \"PreciseMatchRule\",\n \"Priority\": 50\n }\n ]\n },\n \"ManagedRules\": {\n \"Enabled\": \"on\",\n \"AutoUpdate\": {\n \"AutoUpdateToLatestVersion\": \"off\",\n \"RulesetVersion\": \"2023-12-21T12:00:32Z\"\n },\n \"SemanticAnalysis\": \"on\",\n \"DetectionOnly\": \"on\",\n \"ManagedRuleGroups\": [\n {\n \"GroupId\": \"wafmanagedrulegroup-vulnerability-scanners\",\n \"SensitivityLevel\": \"loose\",\n \"Action\": {\n \"Name\": \"Monitor\"\n },\n \"MetaData\": {\n \"GroupDetail\": \"扫描器攻击漏洞防护\",\n \"GroupName\": \"扫描器攻击漏洞防护\",\n \"RuleDetails\": [\n {\n \"RuleId\": \"4401215444\",\n \"RiskLevel\": \"extreme\",\n \"Description\": \"针对dedecms历史sql注入漏洞的防护规则\",\n \"Tags\": [],\n \"RuleVersion\": \"2023-12-21T12:00:32Z\"\n },\n {\n \"RuleId\": \"4401214877\",\n \"RiskLevel\": \"medium\",\n \"Description\": \"拦截常见扫描器的xss验证payload\",\n \"Tags\": [],\n \"RuleVersion\": \"2023-12-21T12:00:32Z\"\n }\n ]\n }\n }\n ]\n }\n }\n }\n}",
917
+ "output": "{\n \"Response\": {\n \"RequestId\": \"cb5d2c0e-295e-412a-891a-9f8ab6057b4a\",\n \"SecurityPolicy\": {\n \"ExceptionRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"ExampleSkipModule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"WebSecurityModules\",\n \"WebSecurityModulesForException\": [\n \"websec-mod-custom-rules\",\n \"websec-mod-rate-limiting\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"SkipOption\": \"SkipOnAllRequestFields\",\n \"ManagedRulesForException\": [\n \"4401215074\",\n \"4368124487\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"SkipOption\": \"SkipOnAllRequestFields\",\n \"ManagedRuleGroupsForException\": [\n \"wafgroup-sql-injection-attacks\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRuleForField\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"ManagedRulesForException\": [\n \"4401215074\",\n \"4368124487\"\n ],\n \"SkipOption\": \"SkipOnSpecifiedRequestFields\",\n \"RequestFieldsForException\": [\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"${key} in ['session-id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"${key} in ['account-id'] and ${value} like ['prefix-*']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"${key} in ['x-trace-id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"${key} like ['x-auth-*'] and ${value} like ['Bearer *']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"${key} in ['action']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"${key} in ['action'] and ${value} in ['upload', 'delete']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"query\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"path\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"fullpath\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"${key} in ['user.id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"${key} in ['user.id'] and ${value} in ['1234', '5678']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"body\",\n \"Condition\": \"\",\n \"TargetField\": \"fullbody\"\n },\n {\n \"Scope\": \"body\",\n \"Condition\": \"\",\n \"TargetField\": \"multipart\"\n }\n ],\n \"Enabled\": \"On\"\n }\n ]\n },\n \"CustomRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"ASimpleIPRule\",\n \"Condition\": \"${http.request.ip} in ['1.1.1.1', '10.10.10.0/24'] or ${http.request.ip.asn} in ['132203']\",\n \"Action\": {\n \"Name\": \"Deny\"\n },\n \"Enabled\": \"on\",\n \"RuleType\": \"PreciseMatchRule\",\n \"Priority\": 50\n }\n ]\n },\n \"HttpDDoSProtection\": {\n \"AdaptiveFrequencyControl\": {\n \"Enabled\": \"on\",\n \"Sensitivity\": \"Loose\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"ClientFiltering\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"BandwidthAbuseDefense\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"SlowAttackDefense\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n },\n \"MinimalRequestBodyTransferRate\": {\n \"MinimalAvgTransferRateThreshold\": \"50bps\",\n \"CountingPeriod\": \"60s\"\n },\n \"RequestBodyTransferTimeout\": {\n \"IdleTimeout\": \"5s\"\n }\n }\n },\n \"RateLimitingRules\": {\n \"Rules\": [\n {\n \"Enabled\": \"on\",\n \"Name\": \"SampleHttpDdosRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit']\",\n \"CountBy\": [\n \"http.request.ip\",\n \"http.request.cookies['UserSession']\"\n ],\n \"MaxRequestThreshold\": 1000,\n \"CountingPeriod\": \"2m\",\n \"ActionDuration\": \"20h\",\n \"Action\": {\n \"Name\": \"ManagedChallenge\"\n },\n \"Id\": \"2181399690\",\n \"Priority\": 100\n }\n ]\n },\n \"ManagedRules\": {\n \"Enabled\": \"on\",\n \"AutoUpdate\": {\n \"AutoUpdateToLatestVersion\": \"off\",\n \"RulesetVersion\": \"2023-12-21T12:00:32Z\"\n },\n \"SemanticAnalysis\": \"on\",\n \"DetectionOnly\": \"on\",\n \"ManagedRuleGroups\": [\n {\n \"GroupId\": \"wafmanagedrulegroup-vulnerability-scanners\",\n \"SensitivityLevel\": \"loose\",\n \"Action\": {\n \"Name\": \"Monitor\"\n },\n \"MetaData\": {\n \"GroupDetail\": \"扫描器攻击漏洞防护\",\n \"GroupName\": \"扫描器攻击漏洞防护\",\n \"RuleDetails\": [\n {\n \"RuleId\": \"4401215444\",\n \"RiskLevel\": \"extreme\",\n \"Description\": \"针对dedecms历史sql注入漏洞的防护规则\",\n \"Tags\": [],\n \"RuleVersion\": \"2023-12-21T12:00:32Z\"\n },\n {\n \"RuleId\": \"4401214877\",\n \"RiskLevel\": \"medium\",\n \"Description\": \"拦截常见扫描器的xss验证payload\",\n \"Tags\": [],\n \"RuleVersion\": \"2023-12-21T12:00:32Z\"\n }\n ]\n }\n }\n ]\n }\n }\n }\n}",
918
918
  "title": "查询安全防护配置"
919
919
  }
920
920
  ],
@@ -1427,7 +1427,7 @@
1427
1427
  "ModifySecurityPolicy": [
1428
1428
  {
1429
1429
  "document": "修改eotest.com站点下a.eotest.com域名策略",
1430
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityPolicy\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-fa89j239a\",\n \"Entity\": \"Host\",\n \"Host\": \"a.eotest.com\",\n \"SecurityConfig\": {},\n \"SecurityPolicy\": {\n \"CustomRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleBasicACLRule\",\n \"Condition\": \"${http.request.ip} in ['1.1.1.1', '10.10.10.0/24', ${security.ip_group['123'@'zone-2xsnpvkhdjes']} ]\",\n \"Action\": {\n \"Name\": \"Deny\"\n },\n \"Priority\": 10,\n \"Enabled\": \"on\"\n }\n ]\n },\n \"ManagedRules\": {\n \"Enabled\": \"on\",\n \"AutoUpdate\": {\n \"AutoUpdateToLatestVersion\": \"off\",\n \"RulesetVersion\": \"2023-12-21T12:00:32Z\"\n },\n \"SemanticAnalysis\": \"on\",\n \"DetectionOnly\": \"on\",\n \"ManagedRuleGroups\": [\n {\n \"GroupId\": \"wafmanagedrulegroup-vulnerability-scanners\",\n \"SensitivityLevel\": \"wafmanagedrule-sensitivity-level-extreme\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n }\n ]\n }\n }\n}",
1430
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityPolicy\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-fa89j239a\",\n \"Entity\": \"Host\",\n \"Host\": \"a.eotest.com\",\n \"SecurityConfig\": {},\n \"SecurityPolicy\": {\n \"ExceptionRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"ExampleSkipModule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"WebSecurityModules\",\n \"WebSecurityModulesForException\": [\n \"websec-mod-custom-rules\",\n \"websec-mod-rate-limiting\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"SkipOption\": \"SkipOnAllRequestFields\",\n \"ManagedRulesForException\": [\n \"4401215074\",\n \"4368124487\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"SkipOption\": \"SkipOnAllRequestFields\",\n \"ManagedRuleGroupsForException\": [\n \"wafgroup-sql-injection-attacks\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRuleForField\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"ManagedRulesForException\": [\n \"4401215074\",\n \"4368124487\"\n ],\n \"SkipOption\": \"SkipOnSpecifiedRequestFields\",\n \"RequestFieldsForException\": [\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"${key} in ['session-id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"${key} in ['account-id'] and ${value} like ['prefix-*']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"${key} in ['x-trace-id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"${key} like ['x-auth-*'] and ${value} like ['Bearer *']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"${key} in ['action']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"${key} in ['action'] and ${value} in ['upload', 'delete']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"query\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"path\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"fullpath\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"${key} in ['user.id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"${key} in ['user.id'] and ${value} in ['1234', '5678']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"body\",\n \"Condition\": \"\",\n \"TargetField\": \"fullbody\"\n },\n {\n \"Scope\": \"body\",\n \"Condition\": \"\",\n \"TargetField\": \"multipart\"\n }\n ],\n \"Enabled\": \"On\"\n }\n ]\n },\n \"CustomRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleBasicACLRule\",\n \"Condition\": \"${http.request.ip} in ['1.1.1.1', '10.10.10.0/24', ${security.ip_group['123'@'zone-2xsnpvkhdjes']} ]\",\n \"Action\": {\n \"Name\": \"Deny\"\n },\n \"Priority\": 10,\n \"Enabled\": \"on\"\n }\n ]\n },\n \"HttpDDoSProtection\": {\n \"AdaptiveFrequencyControl\": {\n \"Enabled\": \"on\",\n \"Sensitivity\": \"Loose\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"ClientFiltering\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"BandwidthAbuseDefense\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"SlowAttackDefense\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n },\n \"MinimalRequestBodyTransferRate\": {\n \"Enabled\": \"on\",\n \"MinimalAvgTransferRateThreshold\": \"50bps\",\n \"CountingPeriod\": \"60s\"\n },\n \"RequestBodyTransferTimeout\": {\n \"Enabled\": \"on\",\n \"IdleTimeout\": \"5s\"\n }\n }\n },\n \"RateLimitingRules\": {\n \"Rules\": [\n {\n \"Enabled\": \"on\",\n \"Name\": \"SampleHttpDdosRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit']\",\n \"CountBy\": [\n \"http.request.ip\",\n \"http.request.cookies['UserSession']\"\n ],\n \"MaxRequestThreshold\": 1000,\n \"CountingPeriod\": \"2m\",\n \"ActionDuration\": \"20h\",\n \"Action\": {\n \"Name\": \"ManagedChallenge\"\n },\n \"Id\": \"2181399690\",\n \"Priority\": 100\n }\n ]\n },\n \"ManagedRules\": {\n \"Enabled\": \"on\",\n \"AutoUpdate\": {\n \"AutoUpdateToLatestVersion\": \"off\",\n \"RulesetVersion\": \"2023-12-21T12:00:32Z\"\n },\n \"SemanticAnalysis\": \"on\",\n \"DetectionOnly\": \"on\",\n \"ManagedRuleGroups\": [\n {\n \"GroupId\": \"wafmanagedrulegroup-vulnerability-scanners\",\n \"SensitivityLevel\": \"wafmanagedrule-sensitivity-level-extreme\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n }\n ]\n }\n }\n}",
1431
1431
  "output": "{\n \"Response\": {\n \"RequestId\": \"08b32010-ab25-42a4-b923-777c481da684\"\n }\n}",
1432
1432
  "title": "修改域名策略"
1433
1433
  },
@@ -463,7 +463,7 @@
463
463
  },
464
464
  {
465
465
  "disabled": false,
466
- "document": "表示Content的原始语种,枚举值(\"en\",\"zh\",\"\")en表示英文,zh表示中文,空字符表示默认语种中文,非中文场景耗时会更高,具体由送审文本内容决定,非中文场景需要联系客服确认",
466
+ "document": "表示Content的原始语种,枚举值包括 \"en\" 和 \"zh\"。其中,\"en\" 表示英文,\"zh\" 表示中文。非中文场景的处理耗时较高,具体情况取决于送审文本长度,非中文场景需[反馈工单](#https://console.cloud.tencent.com/workorder/category?level1_id=141&level2_id=1287&source=14&data_title=%E6%96%87%E6%9C%AC%E5%86%85%E5%AE%B9%E5%AE%89%E5%85%A8&step=1)确认。",
467
467
  "example": "zh",
468
468
  "member": "string",
469
469
  "name": "SourceLanguage",
@@ -472,7 +472,7 @@
472
472
  },
473
473
  {
474
474
  "disabled": false,
475
- "document": "审核的业务类型,枚举值有{\"\",\"TEXT\",\"TEXT_AIGC\"},缺省值\"\"和\"TEXT\"标识传统文本审核,\"TEXT_AIGC\"标识文本AIGC审核",
475
+ "document": "审核的业务类型,枚举值包括 \"TEXT\"\"TEXT_AIGC\"。\"TEXT\" 表示传统文本审核,\"TEXT_AIGC\" 表示文本AIGC审核。",
476
476
  "example": "TEXT",
477
477
  "member": "string",
478
478
  "name": "Type",
@@ -4,7 +4,7 @@
4
4
  {
5
5
  "document": "",
6
6
  "input": "POST / HTTP/1.1\nHost: tms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: TextModeration\n<公共请求参数>\n\n{\n \"Content\": \"5Yqg5oiR5aW95Y+LIOe7meS9oOS8mOaDoOWIuA==\",\n \"BizType\": \"TencentCloudDefault\"\n}",
7
- "output": "{\n \"Response\": {\n \"RequestId\": \"d636333a-0d14-4962-8287-e6e8af0a10f2\",\n \"BizType\": \"test\",\n \"Label\": \"Ad\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Block\",\n \"Keywords\": [\n \"优惠券\"\n ],\n \"Score\": 100,\n \"DataId\": \"CSFb_MJRV5piaczW\",\n \"DetailResults\": [\n {\n \"Label\": \"Polity\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Pass\",\n \"Keywords\": [],\n \"Score\": 0,\n \"LibType\": 0,\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Tags\": null,\n \"HitInfos\": []\n },\n {\n \"Label\": \"Ad\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Block\",\n \"Keywords\": [\n \"优惠券\"\n ],\n \"Score\": 100,\n \"LibType\": 2,\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Tags\": null,\n \"HitInfos\": [\n {\n \"Type\": \"Keyword\",\n \"Keyword\": \"优惠券\",\n \"LibName\": \"default_1_0_1256309736_100004528167\",\n \"Positions\": [\n {\n \"Start\": 7,\n \"End\": 10\n }\n ]\n }\n ]\n },\n {\n \"Label\": \"Abuse\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Pass\",\n \"Keywords\": [],\n \"Score\": 0,\n \"LibType\": 0,\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Tags\": null,\n \"HitInfos\": []\n },\n {\n \"Label\": \"Illegal\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Pass\",\n \"Keywords\": [],\n \"Score\": 0,\n \"LibType\": 0,\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Tags\": null,\n \"HitInfos\": []\n },\n {\n \"Label\": \"Terror\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Pass\",\n \"Keywords\": [],\n \"Score\": 0,\n \"LibType\": 0,\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Tags\": null,\n \"HitInfos\": []\n },\n {\n \"Label\": \"Porn\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Pass\",\n \"Keywords\": [],\n \"Score\": 2,\n \"LibType\": 0,\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Tags\": null,\n \"HitInfos\": []\n }\n ],\n \"RiskDetails\": null,\n \"Extra\": \"\",\n \"ContextText\": \"\",\n \"SentimentAnalysis\": {}\n }\n}",
7
+ "output": "{\n \"Response\": {\n \"RequestId\": \"d636333a-0d14-4962-8287-e6e8af0a10f2\",\n \"BizType\": \"TencentCloudDefault\",\n \"Label\": \"Ad\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Block\",\n \"Keywords\": [\n \"优惠券\"\n ],\n \"Score\": 100,\n \"DataId\": \"CSFb_MJRV5piaczW\",\n \"DetailResults\": [\n {\n \"Label\": \"Polity\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Pass\",\n \"Keywords\": [],\n \"Score\": 0,\n \"LibType\": 0,\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Tags\": null,\n \"HitInfos\": []\n },\n {\n \"Label\": \"Ad\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Block\",\n \"Keywords\": [\n \"优惠券\"\n ],\n \"Score\": 100,\n \"LibType\": 2,\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Tags\": null,\n \"HitInfos\": [\n {\n \"Type\": \"Keyword\",\n \"Keyword\": \"优惠券\",\n \"LibName\": \"default_1_0_1256309736_100004528167\",\n \"Positions\": [\n {\n \"Start\": 7,\n \"End\": 10\n }\n ]\n }\n ]\n },\n {\n \"Label\": \"Abuse\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Pass\",\n \"Keywords\": [],\n \"Score\": 0,\n \"LibType\": 0,\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Tags\": null,\n \"HitInfos\": []\n },\n {\n \"Label\": \"Illegal\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Pass\",\n \"Keywords\": [],\n \"Score\": 0,\n \"LibType\": 0,\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Tags\": null,\n \"HitInfos\": []\n },\n {\n \"Label\": \"Terror\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Pass\",\n \"Keywords\": [],\n \"Score\": 0,\n \"LibType\": 0,\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Tags\": null,\n \"HitInfos\": []\n },\n {\n \"Label\": \"Porn\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Pass\",\n \"Keywords\": [],\n \"Score\": 2,\n \"LibType\": 0,\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Tags\": null,\n \"HitInfos\": []\n }\n ],\n \"RiskDetails\": null,\n \"Extra\": \"\",\n \"ContextText\": \"\",\n \"SentimentAnalysis\": {}\n }\n}",
8
8
  "title": "文本内容安全"
9
9
  }
10
10
  ]
@@ -5809,7 +5809,7 @@
5809
5809
  "members": [
5810
5810
  {
5811
5811
  "disabled": false,
5812
- "document": "\n语音转文字支持识别的语言,默认是\"zh\" 中文\n\n可通过购买「AI智能识别时长包」解锁或领取包月套餐体验版解锁不同语言. 详细说明参考:[AI智能识别计费说明](https://cloud.tencent.com/document/product/647/111976)\n\n语音转文本不同套餐版本支持的语言如下:\n\n**基础版**:\n- \"zh\": 中文(简体)\n- \"zh-TW\": 中文(繁体)\n- \"en\": 英语\n\n**标准版:**\n- \"8k_zh_large\": 普方大模型引擎. 当前模型同时支持中文等语言的识别,模型参数量极大,语言模型性能增强,针对电话音频中各类场景、各类中文方言的识别准确率极大提升.\n- \"16k_zh_large\": 普方英大模型引擎. 当前模型同时支持中文、英文、多种中文方言等语言的识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.\n- \"16k_multi_lang\": 多语种大模型引擎. 当前模型同时支持英语、日语、韩语、阿拉伯语、菲律宾语、法语、印地语、印尼语、马来语、葡萄牙语、西班牙语、泰语、土耳其语、越南语、德语的识别,可实现15个语种的自动识别(句子/段落级别).\n- \"16k_zh_en\": 中英大模型引擎. 当前模型同时支持中文、英语识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.\n\n**高级版:**\n- \"zh-dialect\": 中国方言\n- \"zh-yue\": 中国粤语\n- \"vi\": 越南语\n- \"ja\": 日语\n- \"ko\": 韩语\n- \"id\": 印度尼西亚语\n- \"th\": 泰语\n- \"pt\": 葡萄牙语\n- \"tr\": 土耳其语\n- \"ar\": 阿拉伯语\n- \"es\": 西班牙语\n- \"hi\": 印地语\n- \"fr\": 法语\n- \"ms\": 马来语\n- \"fil\": 菲律宾语\n- \"de\": 德语\n- \"it\": 意大利语\n- \"ru\": 俄语\n- \"sv\": 瑞典语\n- \"da\": 丹麦语\n- \"no\": 挪威语\n\n**注意:**\n如果缺少满足您需求的语言,请联系我们技术人员。",
5812
+ "document": "\n语音转文字支持识别的语言,默认是\"zh\" 中文\n\n可通过购买「AI智能识别时长包」解锁或领取包月套餐体验版解锁不同语言. 详细说明参考:[AI智能识别计费说明](https://cloud.tencent.com/document/product/647/111976)\n\n语音转文本不同套餐版本支持的语言如下:\n\n**基础版**:\n- \"zh\": 中文(简体)\n- \"zh-TW\": 中文(繁体)\n- \"en\": 英语\n- \"16k_zh_edu\":中文教育\n- \"16k_zh_medical\":中文医疗\n- \"16k_zh_court\":中文法庭\n\n**标准版:**\n- \"8k_zh_large\": 普方大模型引擎. 当前模型同时支持中文等语言的识别,模型参数量极大,语言模型性能增强,针对电话音频中各类场景、各类中文方言的识别准确率极大提升.\n- \"16k_zh_large\": 普方英大模型引擎. 当前模型同时支持中文、英文、多种中文方言等语言的识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.\n- \"16k_multi_lang\": 多语种大模型引擎. 当前模型同时支持英语、日语、韩语、阿拉伯语、菲律宾语、法语、印地语、印尼语、马来语、葡萄牙语、西班牙语、泰语、土耳其语、越南语、德语的识别,可实现15个语种的自动识别(句子/段落级别).\n- \"16k_zh_en\": 中英大模型引擎. 当前模型同时支持中文、英语识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.\n\n**高级版:**\n- \"zh-dialect\": 中国方言\n- \"zh-yue\": 中国粤语\n- \"vi\": 越南语\n- \"ja\": 日语\n- \"ko\": 韩语\n- \"id\": 印度尼西亚语\n- \"th\": 泰语\n- \"pt\": 葡萄牙语\n- \"tr\": 土耳其语\n- \"ar\": 阿拉伯语\n- \"es\": 西班牙语\n- \"hi\": 印地语\n- \"fr\": 法语\n- \"ms\": 马来语\n- \"fil\": 菲律宾语\n- \"de\": 德语\n- \"it\": 意大利语\n- \"ru\": 俄语\n- \"sv\": 瑞典语\n- \"da\": 丹麦语\n- \"no\": 挪威语\n\n**注意:**\n如果缺少满足您需求的语言,请联系我们技术人员。",
5813
5813
  "example": "zh",
5814
5814
  "member": "string",
5815
5815
  "name": "Language",
@@ -5820,7 +5820,7 @@
5820
5820
  },
5821
5821
  {
5822
5822
  "disabled": false,
5823
- "document": "**发起模糊识别为高级版能力,默认按照高级版收费,仅支持填写基础版和高级版语言.**\n注意:不支持填写\"zh-dialect\"",
5823
+ "document": "**发起模糊识别为高级版能力,默认按照高级版收费**\n注意:不支持填写\"zh-dialect\", \"16k_zh_edu\", \"16k_zh_medical\", \"16k_zh_court\", \"8k_zh_large\", \"16k_zh_large\",\"16k_multi_lang\", \"16k_zh_en\"\n",
5824
5824
  "example": "无",
5825
5825
  "member": "string",
5826
5826
  "name": "AlternativeLanguage",
@@ -21,6 +21,13 @@
21
21
  "output": "DescribePortraitSingJobResponse",
22
22
  "status": "online"
23
23
  },
24
+ "DescribeTemplateToVideoJob": {
25
+ "document": "用于查询视频特效任务。",
26
+ "input": "DescribeTemplateToVideoJobRequest",
27
+ "name": "查询视频特效任务",
28
+ "output": "DescribeTemplateToVideoJobResponse",
29
+ "status": "online"
30
+ },
24
31
  "DescribeVideoStylizationJob": {
25
32
  "document": "用于查询视频风格化任务。视频风格化支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。",
26
33
  "input": "DescribeVideoStylizationJobRequest",
@@ -42,6 +49,13 @@
42
49
  "output": "SubmitPortraitSingJobResponse",
43
50
  "status": "online"
44
51
  },
52
+ "SubmitTemplateToVideoJob": {
53
+ "document": "提交视频特效任务接口",
54
+ "input": "SubmitTemplateToVideoJobRequest",
55
+ "name": "提交视频特效任务",
56
+ "output": "SubmitTemplateToVideoJobResponse",
57
+ "status": "online"
58
+ },
45
59
  "SubmitVideoStylizationJob": {
46
60
  "document": "用于提交视频风格化任务。支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。",
47
61
  "input": "SubmitVideoStylizationJobRequest",
@@ -294,6 +308,73 @@
294
308
  ],
295
309
  "type": "object"
296
310
  },
311
+ "DescribeTemplateToVideoJobRequest": {
312
+ "document": "DescribeTemplateToVideoJob请求参数结构体",
313
+ "members": [
314
+ {
315
+ "disabled": false,
316
+ "document": "任务ID。",
317
+ "example": "1305546906952867840",
318
+ "member": "string",
319
+ "name": "JobId",
320
+ "required": true,
321
+ "type": "string"
322
+ }
323
+ ],
324
+ "type": "object"
325
+ },
326
+ "DescribeTemplateToVideoJobResponse": {
327
+ "document": "DescribeTemplateToVideoJob返回参数结构体",
328
+ "members": [
329
+ {
330
+ "disabled": false,
331
+ "document": "任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功",
332
+ "example": "RUN",
333
+ "member": "string",
334
+ "name": "Status",
335
+ "output_required": false,
336
+ "type": "string",
337
+ "value_allowed_null": false
338
+ },
339
+ {
340
+ "disabled": false,
341
+ "document": "任务执行错误码。当任务状态不为 FAIL 时,该值为\"\"。",
342
+ "example": "FailedOperation.DriverFailed",
343
+ "member": "string",
344
+ "name": "ErrorCode",
345
+ "output_required": false,
346
+ "type": "string",
347
+ "value_allowed_null": false
348
+ },
349
+ {
350
+ "disabled": false,
351
+ "document": "任务执行错误信息。当任务状态不为 FAIL 时,该值为\"\"。",
352
+ "example": "驱动失败",
353
+ "member": "string",
354
+ "name": "ErrorMessage",
355
+ "output_required": false,
356
+ "type": "string",
357
+ "value_allowed_null": false
358
+ },
359
+ {
360
+ "disabled": false,
361
+ "document": "结果视频 URL。有效期 24 小时。",
362
+ "example": "https://console.cloud.tencent.com/result.mp4",
363
+ "member": "string",
364
+ "name": "ResultVideoUrl",
365
+ "output_required": false,
366
+ "type": "string",
367
+ "value_allowed_null": false
368
+ },
369
+ {
370
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
371
+ "member": "string",
372
+ "name": "RequestId",
373
+ "type": "string"
374
+ }
375
+ ],
376
+ "type": "object"
377
+ },
297
378
  "DescribeVideoStylizationJobRequest": {
298
379
  "document": "DescribeVideoStylizationJob请求参数结构体",
299
380
  "members": [
@@ -361,6 +442,34 @@
361
442
  ],
362
443
  "type": "object"
363
444
  },
445
+ "Image": {
446
+ "document": "图片",
447
+ "members": [
448
+ {
449
+ "disabled": false,
450
+ "document": "图片Base64",
451
+ "example": "MIIHNjCCBh6gAwIBAgIQCVe4E0h49mzI0NcSqMy1",
452
+ "member": "string",
453
+ "name": "Base64",
454
+ "output_required": false,
455
+ "required": false,
456
+ "type": "string",
457
+ "value_allowed_null": false
458
+ },
459
+ {
460
+ "disabled": false,
461
+ "document": "图片Url",
462
+ "example": "https://123.jpg",
463
+ "member": "string",
464
+ "name": "Url",
465
+ "output_required": false,
466
+ "required": false,
467
+ "type": "string",
468
+ "value_allowed_null": false
469
+ }
470
+ ],
471
+ "usage": "both"
472
+ },
364
473
  "LogoParam": {
365
474
  "document": "logo参数",
366
475
  "members": [
@@ -650,6 +759,70 @@
650
759
  ],
651
760
  "type": "object"
652
761
  },
762
+ "SubmitTemplateToVideoJobRequest": {
763
+ "document": "SubmitTemplateToVideoJob请求参数结构体",
764
+ "members": [
765
+ {
766
+ "disabled": false,
767
+ "document": "特效模板名称。\n枚举值:\nhug :拥抱\nkiss :亲吻\nheart : 比心\nfuzzy : 毛茸茸\nbefigure:变手办风\nlonghair:金色长发\nmorphlab:膨胀\nbloom:万物生花\npinch:捏捏\nballoonfly:飞走了\ndragme:被拽走了\n",
768
+ "example": "hug",
769
+ "member": "string",
770
+ "name": "Template",
771
+ "required": true,
772
+ "type": "string"
773
+ },
774
+ {
775
+ "disabled": false,
776
+ "document": "参考图像,最多输入2张图。\n- 支持传入图片Base64编码或图片URL(确保可访问)\n- 图片格式:支持png、jpg、jpeg、webp、bmp、tiff\n- 图片文件:大小不能超过10MB(base64后),图片分辨率不小于300\\*300px,不大于4096\\*4096,图片宽高比应在1:4 ~ 4:1之间\n",
777
+ "example": "无",
778
+ "member": "Image",
779
+ "name": "Images",
780
+ "required": true,
781
+ "type": "list"
782
+ },
783
+ {
784
+ "disabled": false,
785
+ "document": "为生成视频添加标识的开关,默认为1。\n1:添加标识。\n0:不添加标识。\n其他数值:默认按1处理。\n建议您使用显著标识来提示,该视频是 AI 生成的视频。",
786
+ "example": "1",
787
+ "member": "int64",
788
+ "name": "LogoAdd",
789
+ "required": false,
790
+ "type": "int"
791
+ },
792
+ {
793
+ "disabled": false,
794
+ "document": "标识内容设置。\n默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。",
795
+ "example": "无",
796
+ "member": "LogoParam",
797
+ "name": "LogoParam",
798
+ "required": false,
799
+ "type": "object"
800
+ }
801
+ ],
802
+ "type": "object"
803
+ },
804
+ "SubmitTemplateToVideoJobResponse": {
805
+ "document": "SubmitTemplateToVideoJob返回参数结构体",
806
+ "members": [
807
+ {
808
+ "disabled": false,
809
+ "document": "任务ID。",
810
+ "example": "1194931538865782784",
811
+ "member": "string",
812
+ "name": "JobId",
813
+ "output_required": false,
814
+ "type": "string",
815
+ "value_allowed_null": false
816
+ },
817
+ {
818
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
819
+ "member": "string",
820
+ "name": "RequestId",
821
+ "type": "string"
822
+ }
823
+ ],
824
+ "type": "object"
825
+ },
653
826
  "SubmitVideoStylizationJobRequest": {
654
827
  "document": "SubmitVideoStylizationJob请求参数结构体",
655
828
  "members": [
@@ -24,6 +24,14 @@
24
24
  "title": "调用成功-任务完成"
25
25
  }
26
26
  ],
27
+ "DescribeTemplateToVideoJob": [
28
+ {
29
+ "document": "任务成功完成,返回结果视频Url",
30
+ "input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTemplateToVideoJob\n<公共请求参数>\n\n{\n \"JobId\": \"1305546906952867840\"\n}",
31
+ "output": "{\n \"Response\": {\n \"ErrorCode\": \"\",\n \"ErrorMessage\": \"\",\n \"RequestId\": \"17288c38-8b83-4ad2-a818-ef2d2d87dfe7\",\n \"ResultVideoUrl\": \"https://console.cloud.tencent.com/result.mp4\",\n \"Status\": \"DONE\"\n }\n}",
32
+ "title": "任务成功完成"
33
+ }
34
+ ],
27
35
  "DescribeVideoStylizationJob": [
28
36
  {
29
37
  "document": "成功调用查询任务接口,任务完成。",
@@ -72,6 +80,14 @@
72
80
  "title": "调用失败-图片大小超限"
73
81
  }
74
82
  ],
83
+ "SubmitTemplateToVideoJob": [
84
+ {
85
+ "document": "成功提交任务",
86
+ "input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitTemplateToVideoJob\n<公共请求参数>\n\n{\n \"Template\": \"hug\",\n \"Images\": [\n {\n \"Url\": \"https://test.jpg\"\n }\n ]\n}",
87
+ "output": "{\n \"Response\": {\n \"JobId\": \"1305518294765740032\",\n \"RequestId\": \"2392f73f-6436-4f79-85dc-6283d2ca78ef\"\n }\n}",
88
+ "title": "成功提交"
89
+ }
90
+ ],
75
91
  "SubmitVideoStylizationJob": [
76
92
  {
77
93
  "document": "成功提交视频风格化任务",
@@ -17,6 +17,58 @@ from tencentcloud.vclm.v20240523 import models as models_v20240523
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
+ def doDescribeTemplateToVideoJob(args, parsed_globals):
21
+ g_param = parse_global_arg(parsed_globals)
22
+
23
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
24
+ cred = credential.CVMRoleCredential()
25
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
26
+ cred = credential.STSAssumeRoleCredential(
27
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
28
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
29
+ )
30
+ 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):
31
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
32
+ else:
33
+ cred = credential.Credential(
34
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
35
+ )
36
+ http_profile = HttpProfile(
37
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
38
+ reqMethod="POST",
39
+ endpoint=g_param[OptionsDefine.Endpoint],
40
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
41
+ )
42
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
43
+ if g_param[OptionsDefine.Language]:
44
+ profile.language = g_param[OptionsDefine.Language]
45
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
46
+ client = mod.VclmClient(cred, g_param[OptionsDefine.Region], profile)
47
+ client._sdkVersion += ("_CLI_" + __version__)
48
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
+ model = models.DescribeTemplateToVideoJobRequest()
50
+ model.from_json_string(json.dumps(args))
51
+ start_time = time.time()
52
+ while True:
53
+ rsp = client.DescribeTemplateToVideoJob(model)
54
+ result = rsp.to_json_string()
55
+ try:
56
+ json_obj = json.loads(result)
57
+ except TypeError as e:
58
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
59
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
60
+ break
61
+ cur_time = time.time()
62
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
63
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
64
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
65
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
66
+ else:
67
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
68
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
69
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
+
71
+
20
72
  def doSubmitVideoStylizationJob(args, parsed_globals):
21
73
  g_param = parse_global_arg(parsed_globals)
22
74
 
@@ -277,6 +329,58 @@ def doSubmitImageAnimateJob(args, parsed_globals):
277
329
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
330
 
279
331
 
332
+ def doSubmitTemplateToVideoJob(args, parsed_globals):
333
+ g_param = parse_global_arg(parsed_globals)
334
+
335
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
336
+ cred = credential.CVMRoleCredential()
337
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
338
+ cred = credential.STSAssumeRoleCredential(
339
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
340
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
341
+ )
342
+ 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):
343
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
344
+ else:
345
+ cred = credential.Credential(
346
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
347
+ )
348
+ http_profile = HttpProfile(
349
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
350
+ reqMethod="POST",
351
+ endpoint=g_param[OptionsDefine.Endpoint],
352
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
353
+ )
354
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
355
+ if g_param[OptionsDefine.Language]:
356
+ profile.language = g_param[OptionsDefine.Language]
357
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
358
+ client = mod.VclmClient(cred, g_param[OptionsDefine.Region], profile)
359
+ client._sdkVersion += ("_CLI_" + __version__)
360
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
+ model = models.SubmitTemplateToVideoJobRequest()
362
+ model.from_json_string(json.dumps(args))
363
+ start_time = time.time()
364
+ while True:
365
+ rsp = client.SubmitTemplateToVideoJob(model)
366
+ result = rsp.to_json_string()
367
+ try:
368
+ json_obj = json.loads(result)
369
+ except TypeError as e:
370
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
371
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
372
+ break
373
+ cur_time = time.time()
374
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
375
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
376
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
377
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
378
+ else:
379
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
380
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
381
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
+
383
+
280
384
  def doCheckAnimateImageJob(args, parsed_globals):
281
385
  g_param = parse_global_arg(parsed_globals)
282
386
 
@@ -392,11 +496,13 @@ MODELS_MAP = {
392
496
  }
393
497
 
394
498
  ACTION_MAP = {
499
+ "DescribeTemplateToVideoJob": doDescribeTemplateToVideoJob,
395
500
  "SubmitVideoStylizationJob": doSubmitVideoStylizationJob,
396
501
  "SubmitPortraitSingJob": doSubmitPortraitSingJob,
397
502
  "DescribePortraitSingJob": doDescribePortraitSingJob,
398
503
  "DescribeImageAnimateJob": doDescribeImageAnimateJob,
399
504
  "SubmitImageAnimateJob": doSubmitImageAnimateJob,
505
+ "SubmitTemplateToVideoJob": doSubmitTemplateToVideoJob,
400
506
  "CheckAnimateImageJob": doCheckAnimateImageJob,
401
507
  "DescribeVideoStylizationJob": doDescribeVideoStylizationJob,
402
508
 
@@ -525,7 +525,7 @@
525
525
  {
526
526
  "disabled": false,
527
527
  "document": "任务ID",
528
- "example": "123",
528
+ "example": "w-video-aDKaIiA4vq3ZaAA1",
529
529
  "member": "string",
530
530
  "name": "TaskId",
531
531
  "required": true,
@@ -817,7 +817,7 @@
817
817
  {
818
818
  "disabled": false,
819
819
  "document": "当任务状态为Error时,返回对应错误的类型,取值:\n**DECODE_ERROR**: 解码失败。(输入资源中可能包含无法解码的视频)\n**URL_ERROR**:下载地址验证失败。\n**TIMEOUT_ERROR**:处理超时。\n**CALLBACK_ERRORR**:回调错误。\n**MODERATION_ERROR**:审核失败。\n**URL_NOT_SUPPORTED**:源文件太大或没有图片音频帧\n任务状态非Error时默认返回为空。\n注意:此字段可能返回 null,表示取不到有效值。",
820
- "example": "",
820
+ "example": "URL_ERROR",
821
821
  "member": "string",
822
822
  "name": "ErrorType",
823
823
  "output_required": true,
@@ -827,7 +827,7 @@
827
827
  {
828
828
  "disabled": false,
829
829
  "document": "当任务状态为Error时,该字段用于返回对应错误的详细描述,任务状态非Error时默认返回为空。\n注意:此字段可能返回 null,表示取不到有效值。",
830
- "example": "",
830
+ "example": "InvalidArgument",
831
831
  "member": "string",
832
832
  "name": "ErrorDescription",
833
833
  "output_required": true,
@@ -847,7 +847,7 @@
847
847
  {
848
848
  "disabled": false,
849
849
  "document": "该字段用于返回音频文件识别出的对应文本内容,最大支持**前1000个字符**。\n注意:此字段可能返回 null,表示取不到有效值。",
850
- "example": "",
850
+ "example": "金牌讲师认证",
851
851
  "member": "string",
852
852
  "name": "AudioText",
853
853
  "output_required": true,
@@ -2053,41 +2053,41 @@
2053
2053
  "members": [
2054
2054
  {
2055
2055
  "disabled": false,
2056
- "document": "命中的标签\nPorn 色情\nSexy 性感\nPolity 政治\nIllegal 违法\nAbuse 谩骂\nTerror 暴恐\nAd 广告\n注意:此字段可能返回 null,表示取不到有效值。",
2057
- "example": "1",
2056
+ "document": "该字段用于返回检测结果所对应的恶意标签。\n返回值:Porn:色情,Abuse:谩骂,Ad:广告;以及其他令人反感、不安全或不适宜的内容类型。\n注意:此字段可能返回 null,表示取不到有效值。",
2057
+ "example": "Ad",
2058
2058
  "member": "string",
2059
2059
  "name": "Label",
2060
- "required": true,
2060
+ "output_required": true,
2061
2061
  "type": "string",
2062
2062
  "value_allowed_null": true
2063
2063
  },
2064
2064
  {
2065
2065
  "disabled": false,
2066
2066
  "document": "审核建议,可选值:\nPass 通过,\nReview 建议人审,\nBlock 确认违规\n注意:此字段可能返回 null,表示取不到有效值。",
2067
- "example": "1",
2067
+ "example": "Review",
2068
2068
  "member": "string",
2069
2069
  "name": "Suggestion",
2070
- "required": true,
2070
+ "output_required": true,
2071
2071
  "type": "string",
2072
2072
  "value_allowed_null": true
2073
2073
  },
2074
2074
  {
2075
2075
  "disabled": false,
2076
2076
  "document": "得分,分数是 0 ~ 100\n注意:此字段可能返回 null,表示取不到有效值。",
2077
- "example": "1",
2077
+ "example": "89",
2078
2078
  "member": "int64",
2079
2079
  "name": "Score",
2080
- "required": true,
2080
+ "output_required": true,
2081
2081
  "type": "int",
2082
2082
  "value_allowed_null": true
2083
2083
  },
2084
2084
  {
2085
2085
  "disabled": false,
2086
2086
  "document": "命中的二级标签\n注意:此字段可能返回 null,表示取不到有效值。",
2087
- "example": "1",
2087
+ "example": "phone",
2088
2088
  "member": "string",
2089
2089
  "name": "SubLabel",
2090
- "required": true,
2090
+ "output_required": true,
2091
2091
  "type": "string",
2092
2092
  "value_allowed_null": true
2093
2093
  }