tccli 3.0.1108.1__py2.py3-none-any.whl → 3.0.1109.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 (50) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/bi/v20220105/CreateEmbedToken.md +4 -2
  3. tccli/examples/cam/v20190116/CreateRole.md +1 -1
  4. tccli/examples/emr/v20190103/DescribeEmrOverviewMetrics.md +40 -0
  5. tccli/examples/emr/v20190103/DescribeHBaseTableOverview.md +94 -0
  6. tccli/examples/ims/v20200713/ImageModeration.md +2 -2
  7. tccli/examples/ims/v20201229/ImageModeration.md +2 -2
  8. tccli/examples/vcg/v20240404/DescribeVideoStylizationJob.md +24 -0
  9. tccli/examples/vcg/v20240404/SubmitVideoStylizationJob.md +22 -0
  10. tccli/examples/vtc/v20240223/ConfirmVideoTranslateJob.md +33 -0
  11. tccli/examples/vtc/v20240223/DescribeVideoTranslateJob.md +70 -0
  12. tccli/examples/vtc/v20240223/SubmitVideoTranslateJob.md +49 -0
  13. tccli/services/__init__.py +6 -0
  14. tccli/services/autoscaling/v20180419/api.json +9 -8
  15. tccli/services/bi/v20220105/api.json +22 -3
  16. tccli/services/bi/v20220105/examples.json +2 -2
  17. tccli/services/cam/v20190116/api.json +71 -70
  18. tccli/services/cam/v20190116/examples.json +1 -1
  19. tccli/services/cfw/v20190904/api.json +1 -1
  20. tccli/services/ckafka/v20190819/api.json +20 -0
  21. tccli/services/cls/v20201016/api.json +10 -10
  22. tccli/services/cvm/v20170312/api.json +33 -0
  23. tccli/services/dbbrain/v20210527/api.json +5 -5
  24. tccli/services/emr/emr_client.py +114 -8
  25. tccli/services/emr/v20190103/api.json +493 -0
  26. tccli/services/emr/v20190103/examples.json +16 -0
  27. tccli/services/ims/v20200713/api.json +1 -1
  28. tccli/services/ims/v20200713/examples.json +1 -1
  29. tccli/services/ims/v20201229/api.json +1 -1
  30. tccli/services/ims/v20201229/examples.json +1 -1
  31. tccli/services/rce/rce_client.py +0 -53
  32. tccli/services/rce/v20201103/api.json +0 -24
  33. tccli/services/rce/v20201103/examples.json +0 -8
  34. tccli/services/tcss/v20201101/api.json +5 -5
  35. tccli/services/tdmq/v20200217/api.json +7 -7
  36. tccli/services/trtc/v20190722/api.json +20 -11
  37. tccli/services/vcg/__init__.py +4 -0
  38. tccli/services/vcg/v20240404/api.json +140 -0
  39. tccli/services/vcg/v20240404/examples.json +21 -0
  40. tccli/services/vcg/vcg_client.py +248 -0
  41. tccli/services/vod/v20180717/api.json +9 -0
  42. tccli/services/vtc/__init__.py +4 -0
  43. tccli/services/vtc/v20240223/api.json +425 -0
  44. tccli/services/vtc/v20240223/examples.json +41 -0
  45. tccli/services/vtc/vtc_client.py +301 -0
  46. {tccli-3.0.1108.1.dist-info → tccli-3.0.1109.1.dist-info}/METADATA +2 -2
  47. {tccli-3.0.1108.1.dist-info → tccli-3.0.1109.1.dist-info}/RECORD +50 -35
  48. {tccli-3.0.1108.1.dist-info → tccli-3.0.1109.1.dist-info}/WHEEL +0 -0
  49. {tccli-3.0.1108.1.dist-info → tccli-3.0.1109.1.dist-info}/entry_points.txt +0 -0
  50. {tccli-3.0.1108.1.dist-info → tccli-3.0.1109.1.dist-info}/license_files/LICENSE +0 -0
@@ -17,58 +17,6 @@ from tencentcloud.rce.v20201103 import models as models_v20201103
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
- def doDescribeRiskAssessment(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.RceClient(cred, g_param[OptionsDefine.Region], profile)
47
- client._sdkVersion += ("_CLI_" + __version__)
48
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
- model = models.DescribeRiskAssessmentRequest()
50
- model.from_json_string(json.dumps(args))
51
- start_time = time.time()
52
- while True:
53
- rsp = client.DescribeRiskAssessment(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
-
72
20
  def doManageMarketingRisk(args, parsed_globals):
73
21
  g_param = parse_global_arg(parsed_globals)
74
22
 
@@ -132,7 +80,6 @@ MODELS_MAP = {
132
80
  }
133
81
 
134
82
  ACTION_MAP = {
135
- "DescribeRiskAssessment": doDescribeRiskAssessment,
136
83
  "ManageMarketingRisk": doManageMarketingRisk,
137
84
 
138
85
  }
@@ -1,12 +1,5 @@
1
1
  {
2
2
  "actions": {
3
- "DescribeRiskAssessment": {
4
- "document": "此接口用于查询风险评估结果",
5
- "input": "DescribeRiskAssessmentRequest",
6
- "name": "查询风险评估结果",
7
- "output": "DescribeRiskAssessmentResponse",
8
- "status": "online"
9
- },
10
3
  "ManageMarketingRisk": {
11
4
  "document": "全栈式风控引擎(RiskControlEngine,RCE)是基于人工智能技术和腾讯20年风控实战沉淀,依托腾讯海量业务构建的风控引擎,以轻量级的 SaaS 服务方式接入,帮助您快速解决注册、登录、营销活动等关键场景遇到的欺诈问题,实时防御黑灰产作恶。",
12
5
  "input": "ManageMarketingRiskRequest",
@@ -64,23 +57,6 @@
64
57
  ],
65
58
  "usage": "in"
66
59
  },
67
- "DescribeRiskAssessmentRequest": {
68
- "document": "DescribeRiskAssessment请求参数结构体",
69
- "members": [],
70
- "type": "object"
71
- },
72
- "DescribeRiskAssessmentResponse": {
73
- "document": "DescribeRiskAssessment返回参数结构体",
74
- "members": [
75
- {
76
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
77
- "member": "string",
78
- "name": "RequestId",
79
- "type": "string"
80
- }
81
- ],
82
- "type": "object"
83
- },
84
60
  "InputCryptoManageMarketingRisk": {
85
61
  "document": "全栈式风控引擎入参",
86
62
  "members": [
@@ -1,13 +1,5 @@
1
1
  {
2
2
  "actions": {
3
- "DescribeRiskAssessment": [
4
- {
5
- "document": "",
6
- "input": "POST / HTTP/1.1\nHost: rce.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRiskAssessment\n<公共请求参数>\n\n{}",
7
- "output": "{\n \"Response\": {\n \"RequestId\": \"a6227506-5f00-43cf-9a4c-66fe931cefc9\"\n }\n}",
8
- "title": "DescribeRiskAssessment"
9
- }
10
- ],
11
3
  "ManageMarketingRisk": [
12
4
  {
13
5
  "document": "使用手机号MD5请求方式",
@@ -16666,7 +16666,7 @@
16666
16666
  },
16667
16667
  {
16668
16668
  "disabled": false,
16669
- "document": "镜像标识Id",
16669
+ "document": "必填参数,镜像唯一ID,可通过DescribeAssetImageRegistryList接口获取",
16670
16670
  "example": "无",
16671
16671
  "member": "uint64",
16672
16672
  "name": "Id",
@@ -16685,7 +16685,7 @@
16685
16685
  "example": "无",
16686
16686
  "member": "string",
16687
16687
  "name": "DownloadUrl",
16688
- "required": true,
16688
+ "output_required": true,
16689
16689
  "type": "string",
16690
16690
  "value_allowed_null": true
16691
16691
  },
@@ -16739,7 +16739,7 @@
16739
16739
  },
16740
16740
  {
16741
16741
  "disabled": false,
16742
- "document": "镜像标识Id",
16742
+ "document": "必填参数,镜像唯一ID,可通过DescribeAssetImageRegistryList接口获取",
16743
16743
  "example": "无",
16744
16744
  "member": "uint64",
16745
16745
  "name": "Id",
@@ -16758,7 +16758,7 @@
16758
16758
  "example": "无",
16759
16759
  "member": "ImageVul",
16760
16760
  "name": "List",
16761
- "required": true,
16761
+ "output_required": true,
16762
16762
  "type": "list",
16763
16763
  "value_allowed_null": true
16764
16764
  },
@@ -16768,7 +16768,7 @@
16768
16768
  "example": "无",
16769
16769
  "member": "uint64",
16770
16770
  "name": "TotalCount",
16771
- "required": true,
16771
+ "output_required": true,
16772
16772
  "type": "int",
16773
16773
  "value_allowed_null": true
16774
16774
  },
@@ -316,11 +316,11 @@
316
316
  "status": "online"
317
317
  },
318
318
  "DescribeCmqDeadLetterSourceQueues": {
319
- "document": "枚举cmq死信队列源队列",
319
+ "document": "接口很久之前已删除,需下线\n\n枚举cmq死信队列源队列",
320
320
  "input": "DescribeCmqDeadLetterSourceQueuesRequest",
321
321
  "name": "枚举cmq死信队列源队列",
322
322
  "output": "DescribeCmqDeadLetterSourceQueuesResponse",
323
- "status": "online"
323
+ "status": "deprecated"
324
324
  },
325
325
  "DescribeCmqQueueDetail": {
326
326
  "document": "查询cmq队列详情",
@@ -2733,7 +2733,7 @@
2733
2733
  },
2734
2734
  {
2735
2735
  "disabled": false,
2736
- "document": "消息最大长度。取值范围 1024-65536 Byte(即1-64K),默认值 65536。",
2736
+ "document": "消息最大长度。取值范围 1024-1048576 Byte(即1-1024K),默认值 1048576。",
2737
2737
  "example": "0",
2738
2738
  "member": "uint64",
2739
2739
  "name": "MaxMsgSize",
@@ -11616,7 +11616,7 @@
11616
11616
  },
11617
11617
  {
11618
11618
  "disabled": false,
11619
- "document": "订阅名字,在单个地域同一帐号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。",
11619
+ "document": "订阅名字,在单个地域同一账号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。",
11620
11620
  "example": "tese-sub",
11621
11621
  "member": "string",
11622
11622
  "name": "SubscriptionName",
@@ -17284,7 +17284,7 @@
17284
17284
  },
17285
17285
  {
17286
17286
  "disabled": false,
17287
- "document": "延迟时间",
17287
+ "document": "延迟时间。单位为秒,默认值为0秒,最大不能超过队列配置的消息最长未确认时间。",
17288
17288
  "example": "100",
17289
17289
  "member": "int64",
17290
17290
  "name": "DelaySeconds",
@@ -17303,7 +17303,7 @@
17303
17303
  "example": "true",
17304
17304
  "member": "bool",
17305
17305
  "name": "Result",
17306
- "required": true,
17306
+ "output_required": true,
17307
17307
  "type": "bool",
17308
17308
  "value_allowed_null": false
17309
17309
  },
@@ -17313,7 +17313,7 @@
17313
17313
  "example": "xxx",
17314
17314
  "member": "string",
17315
17315
  "name": "MsgId",
17316
- "required": true,
17316
+ "output_required": true,
17317
17317
  "type": "string",
17318
17318
  "value_allowed_null": false
17319
17319
  },
@@ -29,7 +29,7 @@
29
29
  "status": "online"
30
30
  },
31
31
  "DescribeCallDetailInfo": {
32
- "document": "查询指定时间内的用户列表及用户通话质量数据,可查询14天内数据。DataType 不为null,查询起止时间不超过1个小时,查询用户不超过6个,支持跨天查询。DataType为null时,查询起止时间不超过4个小时, 默认查询6个用户,同时支持每页查询100以内用户个数(PageSize不超过100)。接口用于查询质量问题,不推荐作为计费使用。(同老接口DescribeCallDetail)\n**注意**:\n1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。\n2.该接口自2024年4月1日起正式商业化,可通过订阅[包月套餐](https://cloud.tencent.com/document/product/647/85386)「尊享版」和「旗舰版」或订阅[监控仪表盘](https://cloud.tencent.com/document/product/647/81331)商业套餐包解锁接口调用能力,[前往购买](https://buy.cloud.tencent.com/trtc)。",
32
+ "document": "查询指定时间内的用户列表及用户通话质量数据,最大可查询14天内数据。DataType 不为null,查询起止时间不超过1个小时,查询用户不超过6个,支持跨天查询。DataType为null时,查询起止时间不超过4个小时, 默认查询6个用户,同时支持每页查询100以内用户个数(PageSize不超过100)。接口用于查询质量问题,不推荐作为计费使用。(同老接口DescribeCallDetail)\n**注意**:\n1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。\n2.该接口自2024年4月1日起正式商业化,需订阅套餐解锁调用能力,提供以下两种解锁方式,可任选其一解锁:\n方式一:通过订阅[包月套餐](https://cloud.tencent.com/document/product/647/85386)「尊享版」(可查近7天)和「旗舰版」(可查近14天),[前往订阅](https://buy.cloud.tencent.com/trtc?trtcversion=top)。\n方式二:通过订阅[监控仪表盘](https://cloud.tencent.com/document/product/647/81331)商业套餐包「基础版」(可查近7天)和「进阶版」(可查近14天),[前往订阅](https://buy.cloud.tencent.com/trtc_monitor)。",
33
33
  "input": "DescribeCallDetailInfoRequest",
34
34
  "name": "查询历史用户列表与通话指标",
35
35
  "output": "DescribeCallDetailInfoResponse",
@@ -78,7 +78,7 @@
78
78
  "status": "online"
79
79
  },
80
80
  "DescribeRoomInfo": {
81
- "document": "查询SdkAppId下的房间列表。默认返回10条通话,一次最多返回100条通话。可查询14天内的数据。(同老接口DescribeRoomInformation)\n**注意**:\n1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。\n2.该接口自2024年4月1日起正式商业化,可通过订阅[包月套餐](https://cloud.tencent.com/document/product/647/85386)「尊享版」和「旗舰版」或订阅[监控仪表盘](https://cloud.tencent.com/document/product/647/81331)商业套餐包解锁接口调用能力,[前往购买](https://buy.cloud.tencent.com/trtc)。",
81
+ "document": "查询SdkAppId下的房间列表。默认返回10条通话,一次最多返回100条通话。最大可查询14天内的数据。(同老接口DescribeRoomInformation)\n**注意**:\n1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。\n2.该接口自2024年4月1日起正式商业化,需订阅套餐解锁调用能力,提供以下两种解锁方式,可任意其一解锁:\n方式一:通过订阅[包月套餐](https://cloud.tencent.com/document/product/647/85386)「尊享版」(可查近7天)和「旗舰版」(可查近14天),[前往订阅](https://buy.cloud.tencent.com/trtc?trtcversion=top)。\n方式二:通过订阅[监控仪表盘](https://cloud.tencent.com/document/product/647/81331)商业套餐包「基础版」(可查近7天)和「进阶版」(可查近14天),[前往订阅](https://buy.cloud.tencent.com/trtc_monitor)。",
82
82
  "input": "DescribeRoomInfoRequest",
83
83
  "name": "查询历史房间列表",
84
84
  "output": "DescribeRoomInfoResponse",
@@ -190,7 +190,7 @@
190
190
  "status": "online"
191
191
  },
192
192
  "DescribeUserInfo": {
193
- "document": "查询指定时间内的用户列表,可查询14天内数据,查询起止时间不超过4小时。默认每页查询6个用户,支持每页最大查询100个用户PageSize不超过100)。(同老接口DescribeUserInformation)\n**注意**:\n1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。\n2.该接口自2024年4月1日起正式商业化,可通过订阅[包月套餐](https://cloud.tencent.com/document/product/647/85386)「尊享版」和「旗舰版」或订阅[监控仪表盘](https://cloud.tencent.com/document/product/647/81331)商业套餐包解锁接口调用能力,[前往购买](https://buy.cloud.tencent.com/trtc)。",
193
+ "document": "查询指定时间内的用户列表,最大可查询14天内数据,查询起止时间不超过4小时。默认每页查询6个用户,支持每页最大查询100个用户PageSize不超过100)。(同老接口DescribeUserInformation)\n**注意**:\n1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。\n2.该接口自2024年4月1日起正式商业化,需订阅套餐解锁调用能力,提供以下两种解锁方式,可任选其一解锁:\n方式一:通过订阅[包月套餐](https://cloud.tencent.com/document/product/647/85386)「尊享版」(可查近7天)和「旗舰版」(可查近14天),[前往订阅](https://buy.cloud.tencent.com/trtc?trtcversion=top)。\n方式二:通过订阅[监控仪表盘](https://cloud.tencent.com/document/product/647/81331)商业套餐包「基础版」(可查近7天)和「进阶版」(可查近14天),[前往订阅](https://buy.cloud.tencent.com/trtc_monitor)。",
194
194
  "input": "DescribeUserInfoRequest",
195
195
  "name": "查询历史用户列表",
196
196
  "output": "DescribeUserInfoResponse",
@@ -1477,7 +1477,7 @@
1477
1477
  },
1478
1478
  {
1479
1479
  "disabled": false,
1480
- "document": "查询开始时间,本地unix时间戳,单位为秒(如:1590065777)\n注意:支持查询14天内的数据",
1480
+ "document": "查询开始时间,本地unix时间戳,单位为秒(如:1590065777)注意:最大支持查询14天内的数据",
1481
1481
  "example": "1590065777",
1482
1482
  "member": "uint64",
1483
1483
  "name": "StartTime",
@@ -2520,7 +2520,7 @@
2520
2520
  },
2521
2521
  {
2522
2522
  "disabled": false,
2523
- "document": "查询开始时间,本地unix时间戳,单位为秒(如:1590065777)\n注意:支持查询14天内的数据",
2523
+ "document": "查询开始时间,本地unix时间戳,单位为秒(如:1590065777)注意:最大支持查询14天内的数据",
2524
2524
  "example": "1590065777",
2525
2525
  "member": "uint64",
2526
2526
  "name": "StartTime",
@@ -5517,12 +5517,12 @@
5517
5517
  },
5518
5518
  {
5519
5519
  "disabled": false,
5520
- "document": "【本字段已废弃,请使用 StreamUrl 字段】源流URL,支持一个地址。",
5520
+ "document": "源流URL。历史原因本字段【必填】。如果是视频流,分辨率请保持不变。",
5521
5521
  "example": "https://a.b/test.mp4",
5522
5522
  "member": "string",
5523
- "name": "SourceUrl",
5523
+ "name": "StreamUrl",
5524
5524
  "required": false,
5525
- "type": "list"
5525
+ "type": "string"
5526
5526
  },
5527
5527
  {
5528
5528
  "disabled": false,
@@ -5553,12 +5553,21 @@
5553
5553
  },
5554
5554
  {
5555
5555
  "disabled": false,
5556
- "document": "源流URL。历史原因本字段【必填】。",
5556
+ "document": "【本字段已废弃,请使用 StreamUrl 字段】源流URL,支持一个地址。",
5557
5557
  "example": "https://a.b/test.mp4",
5558
5558
  "member": "string",
5559
- "name": "StreamUrl",
5559
+ "name": "SourceUrl",
5560
5560
  "required": false,
5561
- "type": "string"
5561
+ "type": "list"
5562
+ },
5563
+ {
5564
+ "disabled": false,
5565
+ "document": "指定视频从某个秒时间戳播放",
5566
+ "example": "无",
5567
+ "member": "int64",
5568
+ "name": "SeekSecond",
5569
+ "required": false,
5570
+ "type": "int"
5562
5571
  }
5563
5572
  ],
5564
5573
  "type": "object"
@@ -0,0 +1,4 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ from tccli.services.vcg.vcg_client import action_caller
4
+
@@ -0,0 +1,140 @@
1
+ {
2
+ "actions": {
3
+ "DescribeVideoStylizationJob": {
4
+ "document": "用于查询视频风格化任务。视频风格化支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。",
5
+ "input": "DescribeVideoStylizationJobRequest",
6
+ "name": "查询视频风格化任务",
7
+ "output": "DescribeVideoStylizationJobResponse",
8
+ "status": "online"
9
+ },
10
+ "SubmitVideoStylizationJob": {
11
+ "document": "用于提交视频风格化任务。支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。",
12
+ "input": "SubmitVideoStylizationJobRequest",
13
+ "name": "提交视频风格化任务",
14
+ "output": "SubmitVideoStylizationJobResponse",
15
+ "status": "online"
16
+ }
17
+ },
18
+ "metadata": {
19
+ "apiVersion": "2024-04-04",
20
+ "api_brief": "视频生成",
21
+ "serviceNameCN": "视频生成",
22
+ "serviceShortName": "vcg"
23
+ },
24
+ "objects": {
25
+ "DescribeVideoStylizationJobRequest": {
26
+ "document": "DescribeVideoStylizationJob请求参数结构体",
27
+ "members": [
28
+ {
29
+ "disabled": false,
30
+ "document": "任务ID",
31
+ "example": "无",
32
+ "member": "string",
33
+ "name": "JobId",
34
+ "required": true,
35
+ "type": "string"
36
+ }
37
+ ],
38
+ "type": "object"
39
+ },
40
+ "DescribeVideoStylizationJobResponse": {
41
+ "document": "DescribeVideoStylizationJob返回参数结构体",
42
+ "members": [
43
+ {
44
+ "disabled": false,
45
+ "document": "任务ID。",
46
+ "example": "无",
47
+ "member": "string",
48
+ "name": "JobId",
49
+ "output_required": false,
50
+ "type": "string",
51
+ "value_allowed_null": false
52
+ },
53
+ {
54
+ "disabled": false,
55
+ "document": "任务状态码:\nJobInit: \"初始化中\"\nJobModerationFailed: \"审核失败\",\nJobRunning: \"处理中\",\nJobFailed: \"处理完成\",\nJobSuccess: \"处理失败\"。",
56
+ "example": "无",
57
+ "member": "string",
58
+ "name": "StatusCode",
59
+ "output_required": false,
60
+ "type": "string",
61
+ "value_allowed_null": false
62
+ },
63
+ {
64
+ "disabled": false,
65
+ "document": "任务状态描述。",
66
+ "example": "无",
67
+ "member": "string",
68
+ "name": "StatusMsg",
69
+ "output_required": false,
70
+ "type": "string",
71
+ "value_allowed_null": false
72
+ },
73
+ {
74
+ "disabled": false,
75
+ "document": "处理结果视频Url。URL有效期为24小时。",
76
+ "example": "无",
77
+ "member": "string",
78
+ "name": "ResultVideoUrl",
79
+ "output_required": false,
80
+ "type": "string",
81
+ "value_allowed_null": false
82
+ },
83
+ {
84
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
85
+ "member": "string",
86
+ "name": "RequestId",
87
+ "type": "string"
88
+ }
89
+ ],
90
+ "type": "object"
91
+ },
92
+ "SubmitVideoStylizationJobRequest": {
93
+ "document": "SubmitVideoStylizationJob请求参数结构体",
94
+ "members": [
95
+ {
96
+ "disabled": false,
97
+ "document": "风格ID,取值说明:2d_anime 2D动漫;3d_cartoon 3D卡通;3d_china 3D国潮;pixel_art\t像素风。",
98
+ "example": "2d_anime, 3d_cartoon, 3d_china, pixel_art",
99
+ "member": "string",
100
+ "name": "StyleId",
101
+ "required": true,
102
+ "type": "string"
103
+ },
104
+ {
105
+ "disabled": false,
106
+ "document": "输入视频URL。视频要求:\n- 视频格式:mp4、mov;\n- 视频时长:1~60秒;\n- 视频分辨率:540P~2056P,即长宽像素数均在540px~2056px范围内;\n- 视频大小:不超过200M;\n- 视频FPS:15~60fps。",
107
+ "example": "无",
108
+ "member": "string",
109
+ "name": "VideoUrl",
110
+ "required": true,
111
+ "type": "string"
112
+ }
113
+ ],
114
+ "type": "object"
115
+ },
116
+ "SubmitVideoStylizationJobResponse": {
117
+ "document": "SubmitVideoStylizationJob返回参数结构体",
118
+ "members": [
119
+ {
120
+ "disabled": false,
121
+ "document": "任务ID",
122
+ "example": "无",
123
+ "member": "string",
124
+ "name": "JobId",
125
+ "output_required": false,
126
+ "type": "string",
127
+ "value_allowed_null": false
128
+ },
129
+ {
130
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
131
+ "member": "string",
132
+ "name": "RequestId",
133
+ "type": "string"
134
+ }
135
+ ],
136
+ "type": "object"
137
+ }
138
+ },
139
+ "version": "1.0"
140
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "actions": {
3
+ "DescribeVideoStylizationJob": [
4
+ {
5
+ "document": "成功请求",
6
+ "input": "POST / HTTP/1.1\nHost: vcg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVideoStylizationJob\n<公共请求参数>\n\n{\n \"JobId\": \"\"\n}",
7
+ "output": "{\n \"Response\": {\n \"JobId\": \"\",\n \"RequestId\": \"\",\n \"ResultVideoUrl\": \"\",\n \"StatusCode\": \"JobSuccess\",\n \"StatusMsg\": \"处理完成\"\n }\n}",
8
+ "title": "成功请求"
9
+ }
10
+ ],
11
+ "SubmitVideoStylizationJob": [
12
+ {
13
+ "document": "提交成功",
14
+ "input": "POST / HTTP/1.1\nHost: vcg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitVideoStylizationJob\n<公共请求参数>\n\n{\n \"StyleId\": \"2d_anime\",\n \"VideoUrl\": \"\"\n}",
15
+ "output": "{\n \"Response\": {\n \"JobId\": \"\",\n \"RequestId\": \"\"\n }\n}",
16
+ "title": "提交成功"
17
+ }
18
+ ]
19
+ },
20
+ "version": "1.0"
21
+ }