tccli 3.0.1268.1__py2.py3-none-any.whl → 3.0.1269.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +5 -1
- tccli/services/aiart/aiart_client.py +106 -0
- tccli/services/aiart/v20221229/api.json +275 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/billing/billing_client.py +4 -163
- tccli/services/billing/v20180709/api.json +0 -489
- tccli/services/billing/v20180709/examples.json +0 -24
- tccli/services/cat/v20180409/api.json +3 -1
- tccli/services/cbs/v20170312/api.json +9 -0
- tccli/services/ccc/v20200210/api.json +11 -11
- tccli/services/ccc/v20200210/examples.json +2 -2
- tccli/services/cdb/v20170320/api.json +48 -18
- tccli/services/cfw/v20190904/api.json +30 -30
- tccli/services/ckafka/v20190819/api.json +10 -0
- tccli/services/csip/v20221121/api.json +38 -38
- tccli/services/cwp/cwp_client.py +4 -57
- tccli/services/cwp/v20180228/api.json +0 -184
- tccli/services/cwp/v20180228/examples.json +0 -8
- tccli/services/cynosdb/v20190107/api.json +1 -1
- tccli/services/cynosdb/v20190107/examples.json +1 -1
- tccli/services/dcdb/dcdb_client.py +122 -16
- tccli/services/dcdb/v20180411/api.json +222 -0
- tccli/services/dcdb/v20180411/examples.json +16 -0
- tccli/services/dlc/v20210125/api.json +145 -26
- tccli/services/dlc/v20210125/examples.json +18 -18
- tccli/services/domain/v20180808/api.json +8 -8
- tccli/services/domain/v20180808/examples.json +3 -3
- tccli/services/es/v20180416/api.json +9 -9
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/facefusion/v20220927/api.json +4 -4
- tccli/services/faceid/v20180301/api.json +5 -5
- tccli/services/faceid/v20180301/examples.json +6 -0
- tccli/services/gme/v20180711/api.json +118 -115
- tccli/services/gme/v20180711/examples.json +6 -6
- tccli/services/hunyuan/v20230901/api.json +9 -0
- tccli/services/iotexplorer/v20190423/api.json +4 -4
- tccli/services/iotexplorer/v20190423/examples.json +5 -5
- tccli/services/keewidb/v20220308/api.json +2 -2
- tccli/services/lcic/v20220817/api.json +177 -177
- tccli/services/lcic/v20220817/examples.json +2 -2
- tccli/services/lighthouse/v20200324/api.json +76 -67
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +31 -0
- tccli/services/lkeap/v20240522/api.json +55 -9
- tccli/services/lkeap/v20240522/examples.json +1 -1
- tccli/services/mna/mna_client.py +106 -0
- tccli/services/mna/v20210119/api.json +246 -0
- tccli/services/mna/v20210119/examples.json +16 -0
- tccli/services/monitor/monitor_client.py +62 -57
- tccli/services/monitor/v20230616/api.json +266 -0
- tccli/services/monitor/v20230616/examples.json +19 -0
- tccli/services/mqtt/mqtt_client.py +489 -12
- tccli/services/mqtt/v20240516/api.json +864 -3
- tccli/services/mqtt/v20240516/examples.json +72 -0
- tccli/services/ocr/ocr_client.py +53 -0
- tccli/services/ocr/v20181119/api.json +246 -1
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/postgres/postgres_client.py +334 -16
- tccli/services/postgres/v20170312/api.json +717 -34
- tccli/services/postgres/v20170312/examples.json +72 -0
- tccli/services/ssl/v20191205/api.json +496 -493
- tccli/services/ssl/v20191205/examples.json +144 -24
- tccli/services/taf/taf_client.py +0 -159
- tccli/services/taf/v20200210/api.json +0 -665
- tccli/services/taf/v20200210/examples.json +0 -24
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/tione/v20211111/api.json +14 -3
- tccli/services/trabbit/__init__.py +4 -0
- tccli/services/trabbit/trabbit_client.py +1691 -0
- tccli/services/trabbit/v20230418/api.json +4773 -0
- tccli/services/trabbit/v20230418/examples.json +237 -0
- tccli/services/trtc/v20190722/api.json +8 -8
- tccli/services/trtc/v20190722/examples.json +2 -2
- tccli/services/vclm/v20240523/api.json +0 -450
- tccli/services/vclm/v20240523/examples.json +0 -48
- tccli/services/vclm/vclm_client.py +0 -159
- tccli/services/wedata/v20210820/api.json +211 -33
- tccli/services/wedata/v20210820/examples.json +14 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/RECORD +87 -81
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1269.1'
|
tccli/services/__init__.py
CHANGED
@@ -505,7 +505,8 @@ SERVICE_VERSIONS = {
|
|
505
505
|
"2018-04-08"
|
506
506
|
],
|
507
507
|
"monitor": [
|
508
|
-
"2018-07-24"
|
508
|
+
"2018-07-24",
|
509
|
+
"2023-06-16"
|
509
510
|
],
|
510
511
|
"mps": [
|
511
512
|
"2019-06-12"
|
@@ -745,6 +746,9 @@ SERVICE_VERSIONS = {
|
|
745
746
|
"tourism": [
|
746
747
|
"2023-02-15"
|
747
748
|
],
|
749
|
+
"trabbit": [
|
750
|
+
"2023-04-18"
|
751
|
+
],
|
748
752
|
"trdp": [
|
749
753
|
"2022-07-26"
|
750
754
|
],
|
@@ -537,6 +537,58 @@ def doQueryDrawPortraitJob(args, parsed_globals):
|
|
537
537
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
538
538
|
|
539
539
|
|
540
|
+
def doQueryGlamPicJob(args, parsed_globals):
|
541
|
+
g_param = parse_global_arg(parsed_globals)
|
542
|
+
|
543
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
544
|
+
cred = credential.CVMRoleCredential()
|
545
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
546
|
+
cred = credential.STSAssumeRoleCredential(
|
547
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
548
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
549
|
+
)
|
550
|
+
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):
|
551
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
552
|
+
else:
|
553
|
+
cred = credential.Credential(
|
554
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
555
|
+
)
|
556
|
+
http_profile = HttpProfile(
|
557
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
558
|
+
reqMethod="POST",
|
559
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
560
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
561
|
+
)
|
562
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
563
|
+
if g_param[OptionsDefine.Language]:
|
564
|
+
profile.language = g_param[OptionsDefine.Language]
|
565
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
566
|
+
client = mod.AiartClient(cred, g_param[OptionsDefine.Region], profile)
|
567
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
568
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
569
|
+
model = models.QueryGlamPicJobRequest()
|
570
|
+
model.from_json_string(json.dumps(args))
|
571
|
+
start_time = time.time()
|
572
|
+
while True:
|
573
|
+
rsp = client.QueryGlamPicJob(model)
|
574
|
+
result = rsp.to_json_string()
|
575
|
+
try:
|
576
|
+
json_obj = json.loads(result)
|
577
|
+
except TypeError as e:
|
578
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
579
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
580
|
+
break
|
581
|
+
cur_time = time.time()
|
582
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
583
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
584
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
585
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
586
|
+
else:
|
587
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
588
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
589
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
590
|
+
|
591
|
+
|
540
592
|
def doUploadTrainPortraitImages(args, parsed_globals):
|
541
593
|
g_param = parse_global_arg(parsed_globals)
|
542
594
|
|
@@ -693,6 +745,58 @@ def doQueryTextToImageProJob(args, parsed_globals):
|
|
693
745
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
746
|
|
695
747
|
|
748
|
+
def doSubmitGlamPicJob(args, parsed_globals):
|
749
|
+
g_param = parse_global_arg(parsed_globals)
|
750
|
+
|
751
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
752
|
+
cred = credential.CVMRoleCredential()
|
753
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
754
|
+
cred = credential.STSAssumeRoleCredential(
|
755
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
756
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
757
|
+
)
|
758
|
+
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):
|
759
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
760
|
+
else:
|
761
|
+
cred = credential.Credential(
|
762
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
763
|
+
)
|
764
|
+
http_profile = HttpProfile(
|
765
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
766
|
+
reqMethod="POST",
|
767
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
768
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
769
|
+
)
|
770
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
771
|
+
if g_param[OptionsDefine.Language]:
|
772
|
+
profile.language = g_param[OptionsDefine.Language]
|
773
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
774
|
+
client = mod.AiartClient(cred, g_param[OptionsDefine.Region], profile)
|
775
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
776
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
777
|
+
model = models.SubmitGlamPicJobRequest()
|
778
|
+
model.from_json_string(json.dumps(args))
|
779
|
+
start_time = time.time()
|
780
|
+
while True:
|
781
|
+
rsp = client.SubmitGlamPicJob(model)
|
782
|
+
result = rsp.to_json_string()
|
783
|
+
try:
|
784
|
+
json_obj = json.loads(result)
|
785
|
+
except TypeError as e:
|
786
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
787
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
788
|
+
break
|
789
|
+
cur_time = time.time()
|
790
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
791
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
792
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
793
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
794
|
+
else:
|
795
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
796
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
797
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
798
|
+
|
799
|
+
|
696
800
|
def doChangeClothes(args, parsed_globals):
|
697
801
|
g_param = parse_global_arg(parsed_globals)
|
698
802
|
|
@@ -922,9 +1026,11 @@ ACTION_MAP = {
|
|
922
1026
|
"QueryMemeJob": doQueryMemeJob,
|
923
1027
|
"QueryTrainPortraitModelJob": doQueryTrainPortraitModelJob,
|
924
1028
|
"QueryDrawPortraitJob": doQueryDrawPortraitJob,
|
1029
|
+
"QueryGlamPicJob": doQueryGlamPicJob,
|
925
1030
|
"UploadTrainPortraitImages": doUploadTrainPortraitImages,
|
926
1031
|
"TextToImage": doTextToImage,
|
927
1032
|
"QueryTextToImageProJob": doQueryTextToImageProJob,
|
1033
|
+
"SubmitGlamPicJob": doSubmitGlamPicJob,
|
928
1034
|
"ChangeClothes": doChangeClothes,
|
929
1035
|
"ImageInpaintingRemoval": doImageInpaintingRemoval,
|
930
1036
|
"SubmitDrawPortraitJob": doSubmitDrawPortraitJob,
|
@@ -42,6 +42,13 @@
|
|
42
42
|
"output": "QueryDrawPortraitJobResponse",
|
43
43
|
"status": "online"
|
44
44
|
},
|
45
|
+
"QueryGlamPicJob": {
|
46
|
+
"document": "AI 美照接口将根据模板为用户生成精美照片。分为提交任务和查询任务2个接口。\n- 提交任务:提交一个美照生成异步任务,获得任务 ID。\n- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n\nAI 美照默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
47
|
+
"input": "QueryGlamPicJobRequest",
|
48
|
+
"name": "查询美照生成任务",
|
49
|
+
"output": "QueryGlamPicJobResponse",
|
50
|
+
"status": "online"
|
51
|
+
},
|
45
52
|
"QueryMemeJob": {
|
46
53
|
"document": "表情动图生成接口将静态照片制作成动态的表情包。分为提交任务和查询任务2个接口。\n- 提交任务:提交一个表情动图生成异步任务,获得任务 ID。\n- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n\n表情动图生成默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
47
54
|
"input": "QueryMemeJobRequest",
|
@@ -84,6 +91,13 @@
|
|
84
91
|
"output": "SubmitDrawPortraitJobResponse",
|
85
92
|
"status": "online"
|
86
93
|
},
|
94
|
+
"SubmitGlamPicJob": {
|
95
|
+
"document": "AI 美照接口将根据模板为用户生成精美照片。分为提交任务和查询任务2个接口。\n- 提交任务:提交一个美照生成异步任务,获得任务 ID。\n- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n\nAI 美照默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
96
|
+
"input": "SubmitGlamPicJobRequest",
|
97
|
+
"name": "提交美照生成任务",
|
98
|
+
"output": "SubmitGlamPicJobResponse",
|
99
|
+
"status": "online"
|
100
|
+
},
|
87
101
|
"SubmitMemeJob": {
|
88
102
|
"document": "表情动图生成接口将静态照片制作成动态的表情包。分为提交任务和查询任务2个接口。\n\n- 提交任务:提交一个表情动图生成异步任务,获得任务 ID。\n- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n\n表情动图生成默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
89
103
|
"input": "SubmitMemeJobRequest",
|
@@ -209,6 +223,30 @@
|
|
209
223
|
],
|
210
224
|
"type": "object"
|
211
225
|
},
|
226
|
+
"FaceInfo": {
|
227
|
+
"document": "融合信息",
|
228
|
+
"members": [
|
229
|
+
{
|
230
|
+
"disabled": false,
|
231
|
+
"document": "用户图 URL 列表",
|
232
|
+
"example": "[\"\"https://xxx.com/input.jpg\"\"]",
|
233
|
+
"member": "string",
|
234
|
+
"name": "ImageUrls",
|
235
|
+
"required": false,
|
236
|
+
"type": "list"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"disabled": false,
|
240
|
+
"document": "模版图人脸坐标。",
|
241
|
+
"example": "{\"X\":30,\"Y\":30,\"Width\":30,\"Height\":\"30\"}",
|
242
|
+
"member": "Rect",
|
243
|
+
"name": "TemplateFaceRect",
|
244
|
+
"required": false,
|
245
|
+
"type": "object"
|
246
|
+
}
|
247
|
+
],
|
248
|
+
"usage": "in"
|
249
|
+
},
|
212
250
|
"Filter": {
|
213
251
|
"document": "训练图像质量过滤开关配置。\n支持开启或关闭对训练图像分辨率下限、脸部区域大小、脸部遮挡、脸部角度的过滤,默认开启以上过滤。\n如果训练图像内包含多人脸或无人脸、和 Base 人像不为同一人也将被过滤,不可关闭该过滤条件。\n建议:关闭以上过滤可能导致写真生成效果受损,建议使用单人、正脸、脸部清晰、无遮挡、无夸张表情、脸部区域占比较大的图像进行训练。",
|
214
252
|
"members": [
|
@@ -817,6 +855,93 @@
|
|
817
855
|
],
|
818
856
|
"type": "object"
|
819
857
|
},
|
858
|
+
"QueryGlamPicJobRequest": {
|
859
|
+
"document": "QueryGlamPicJob请求参数结构体",
|
860
|
+
"members": [
|
861
|
+
{
|
862
|
+
"disabled": false,
|
863
|
+
"document": "任务ID。",
|
864
|
+
"example": "251197749-1732000778-a319cc1b-a646-11ef-be80-525400047e59-0",
|
865
|
+
"member": "string",
|
866
|
+
"name": "JobId",
|
867
|
+
"required": true,
|
868
|
+
"type": "string"
|
869
|
+
}
|
870
|
+
],
|
871
|
+
"type": "object"
|
872
|
+
},
|
873
|
+
"QueryGlamPicJobResponse": {
|
874
|
+
"document": "QueryGlamPicJob返回参数结构体",
|
875
|
+
"members": [
|
876
|
+
{
|
877
|
+
"disabled": false,
|
878
|
+
"document": "当前任务状态码:\n1:等待中、2:运行中、4:处理失败、5:处理完成。",
|
879
|
+
"example": "5",
|
880
|
+
"member": "string",
|
881
|
+
"name": "JobStatusCode",
|
882
|
+
"output_required": false,
|
883
|
+
"type": "string",
|
884
|
+
"value_allowed_null": false
|
885
|
+
},
|
886
|
+
{
|
887
|
+
"disabled": false,
|
888
|
+
"document": "当前任务状态:排队中、处理中、处理失败或者处理完成。\n",
|
889
|
+
"example": "处理完成",
|
890
|
+
"member": "string",
|
891
|
+
"name": "JobStatusMsg",
|
892
|
+
"output_required": false,
|
893
|
+
"type": "string",
|
894
|
+
"value_allowed_null": false
|
895
|
+
},
|
896
|
+
{
|
897
|
+
"disabled": false,
|
898
|
+
"document": "任务处理失败错误码。\n",
|
899
|
+
"example": "FailedOperation.DownloadError",
|
900
|
+
"member": "string",
|
901
|
+
"name": "JobErrorCode",
|
902
|
+
"output_required": false,
|
903
|
+
"type": "string",
|
904
|
+
"value_allowed_null": false
|
905
|
+
},
|
906
|
+
{
|
907
|
+
"disabled": false,
|
908
|
+
"document": "任务处理失败错误信息。\n",
|
909
|
+
"example": "文件下载失败。",
|
910
|
+
"member": "string",
|
911
|
+
"name": "JobErrorMsg",
|
912
|
+
"output_required": false,
|
913
|
+
"type": "string",
|
914
|
+
"value_allowed_null": false
|
915
|
+
},
|
916
|
+
{
|
917
|
+
"disabled": false,
|
918
|
+
"document": "生成图 URL 列表,有效期1小时,请及时保存。\n",
|
919
|
+
"example": "[\"https://aiart-xxx.cos.ap-guangzhou.myqcloud.com/xxx.jpg?q-sign-algorithm=sha1&q-ak=xxxxx&q-sign-time=1731574045;1731577645&q-key-time=1731574045;1731577645&q-header-list=host&q-url-param-list=&q-signature=31fe75c1c18c3d91db59508961209dd37aaf41c7\"]",
|
920
|
+
"member": "string",
|
921
|
+
"name": "ResultImage",
|
922
|
+
"output_required": false,
|
923
|
+
"type": "list",
|
924
|
+
"value_allowed_null": false
|
925
|
+
},
|
926
|
+
{
|
927
|
+
"disabled": false,
|
928
|
+
"document": "结果 detail 数组,Success 代表成功。\n",
|
929
|
+
"example": "[\"Success\"]",
|
930
|
+
"member": "string",
|
931
|
+
"name": "ResultDetails",
|
932
|
+
"output_required": false,
|
933
|
+
"type": "list",
|
934
|
+
"value_allowed_null": false
|
935
|
+
},
|
936
|
+
{
|
937
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
938
|
+
"member": "string",
|
939
|
+
"name": "RequestId",
|
940
|
+
"type": "string"
|
941
|
+
}
|
942
|
+
],
|
943
|
+
"type": "object"
|
944
|
+
},
|
820
945
|
"QueryMemeJobRequest": {
|
821
946
|
"document": "QueryMemeJob请求参数结构体",
|
822
947
|
"members": [
|
@@ -1058,6 +1183,56 @@
|
|
1058
1183
|
],
|
1059
1184
|
"type": "object"
|
1060
1185
|
},
|
1186
|
+
"Rect": {
|
1187
|
+
"document": "人脸框坐标",
|
1188
|
+
"members": [
|
1189
|
+
{
|
1190
|
+
"disabled": false,
|
1191
|
+
"document": "人脸框左上角横坐标。",
|
1192
|
+
"example": "1",
|
1193
|
+
"member": "int64",
|
1194
|
+
"name": "X",
|
1195
|
+
"output_required": false,
|
1196
|
+
"required": false,
|
1197
|
+
"type": "int",
|
1198
|
+
"value_allowed_null": false
|
1199
|
+
},
|
1200
|
+
{
|
1201
|
+
"disabled": false,
|
1202
|
+
"document": "人脸框左上角纵坐标。",
|
1203
|
+
"example": "1",
|
1204
|
+
"member": "int64",
|
1205
|
+
"name": "Y",
|
1206
|
+
"output_required": false,
|
1207
|
+
"required": false,
|
1208
|
+
"type": "int",
|
1209
|
+
"value_allowed_null": false
|
1210
|
+
},
|
1211
|
+
{
|
1212
|
+
"disabled": false,
|
1213
|
+
"document": "人脸框宽度。",
|
1214
|
+
"example": "30",
|
1215
|
+
"member": "int64",
|
1216
|
+
"name": "Width",
|
1217
|
+
"output_required": false,
|
1218
|
+
"required": false,
|
1219
|
+
"type": "int",
|
1220
|
+
"value_allowed_null": false
|
1221
|
+
},
|
1222
|
+
{
|
1223
|
+
"disabled": false,
|
1224
|
+
"document": "人脸框高度。",
|
1225
|
+
"example": "30",
|
1226
|
+
"member": "int64",
|
1227
|
+
"name": "Height",
|
1228
|
+
"output_required": false,
|
1229
|
+
"required": false,
|
1230
|
+
"type": "int",
|
1231
|
+
"value_allowed_null": false
|
1232
|
+
}
|
1233
|
+
],
|
1234
|
+
"usage": "both"
|
1235
|
+
},
|
1061
1236
|
"ReplaceBackgroundRequest": {
|
1062
1237
|
"document": "ReplaceBackground请求参数结构体",
|
1063
1238
|
"members": [
|
@@ -1365,6 +1540,106 @@
|
|
1365
1540
|
],
|
1366
1541
|
"type": "object"
|
1367
1542
|
},
|
1543
|
+
"SubmitGlamPicJobRequest": {
|
1544
|
+
"document": "SubmitGlamPicJob请求参数结构体",
|
1545
|
+
"members": [
|
1546
|
+
{
|
1547
|
+
"disabled": false,
|
1548
|
+
"document": "美照模板图 URL。\n图片限制:模板图中最多出现5张人脸,单边分辨率大于300,转成 Base64 字符串后小于 10MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。",
|
1549
|
+
"example": "https://xxx.com/image.jpg",
|
1550
|
+
"member": "string",
|
1551
|
+
"name": "TemplateUrl",
|
1552
|
+
"required": true,
|
1553
|
+
"type": "string"
|
1554
|
+
},
|
1555
|
+
{
|
1556
|
+
"disabled": false,
|
1557
|
+
"document": "用户图 URL 列表,以及模板图中需要替换成用户的人脸框信息。\n一张美照中可包含1 ~ 5个用户形象。每个用户需上传1 ~ 6张照片,如果图中存在多个人脸将取最大人脸。\n模板图中的人脸数量需要大于等于用户个数。如果不传每个用户在模板图中的人脸框位置,默认按照模板图人脸框从大到小的顺序进行替换。如需自定义顺序,需要依次上传每个用户在模板图中的人脸框位置。\n图片限制:每张图片转成 Base64 字符串后小于 10MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。建议使用单人、正脸、脸部区域占比较大、脸部清晰无遮挡、无大角度偏转、无夸张表情的用户图。",
|
1558
|
+
"example": "[ { \"ImageUrls\": [ \"https://xxx.com/image.jpg\" ] } ]",
|
1559
|
+
"member": "FaceInfo",
|
1560
|
+
"name": "FaceInfos",
|
1561
|
+
"required": false,
|
1562
|
+
"type": "list"
|
1563
|
+
},
|
1564
|
+
{
|
1565
|
+
"disabled": false,
|
1566
|
+
"document": "美照生成数量。\n支持1 ~ 4张,默认生成4张。",
|
1567
|
+
"example": "1",
|
1568
|
+
"member": "int64",
|
1569
|
+
"name": "Num",
|
1570
|
+
"required": false,
|
1571
|
+
"type": "int"
|
1572
|
+
},
|
1573
|
+
{
|
1574
|
+
"disabled": false,
|
1575
|
+
"document": "美照生成风格。\n仅对单人美照生效,单人可支持选择不同风格。需按照美照生成数量,在数组中逐一填入每张美照的风格名称。如果不传,默认取不重复的随机风格顺序。\n多人美照只支持 balanced 一种风格,该参数不生效。\n可选风格:<ul><li>real:面部相似度更高。</li><li>balanced:平衡面部真实感和美观度。</li><li>extured:脸部皮肤更具真实感。</li><li>beautiful:脸部美观度更高。</li></ul>",
|
1576
|
+
"example": "[\"real\", \"balanced\", \"textured\", \"beautiful\"]",
|
1577
|
+
"member": "string",
|
1578
|
+
"name": "Style",
|
1579
|
+
"required": false,
|
1580
|
+
"type": "list"
|
1581
|
+
},
|
1582
|
+
{
|
1583
|
+
"disabled": false,
|
1584
|
+
"document": "相似度系数,越高越像用户图。\n取值范围[0, 1],默认为0.6。",
|
1585
|
+
"example": "0.6",
|
1586
|
+
"member": "float",
|
1587
|
+
"name": "Similarity",
|
1588
|
+
"required": false,
|
1589
|
+
"type": "float"
|
1590
|
+
},
|
1591
|
+
{
|
1592
|
+
"disabled": false,
|
1593
|
+
"document": "超分选项,默认不做超分,可选开启。\nx2:2倍超分\nx4:4倍超分",
|
1594
|
+
"example": "x2",
|
1595
|
+
"member": "string",
|
1596
|
+
"name": "Clarity",
|
1597
|
+
"required": false,
|
1598
|
+
"type": "string"
|
1599
|
+
},
|
1600
|
+
{
|
1601
|
+
"disabled": false,
|
1602
|
+
"document": "为生成结果图添加标识的开关,默认为1。\n1:添加标识。\n0:不添加标识。\n其他数值:默认按1处理。\n建议您使用显著标识来提示结果图是 AI 生成的图片。",
|
1603
|
+
"example": "1",
|
1604
|
+
"member": "int64",
|
1605
|
+
"name": "LogoAdd",
|
1606
|
+
"required": false,
|
1607
|
+
"type": "int"
|
1608
|
+
},
|
1609
|
+
{
|
1610
|
+
"disabled": false,
|
1611
|
+
"document": "标识内容设置。\n默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。",
|
1612
|
+
"example": "{\"LogoUrl\": \"https://xxx.com/logo.jpg\", \"LogoRect\": {\"X\": 10, \"Y\": 10, \"Width\": 20, \"Height\": 20}}",
|
1613
|
+
"member": "LogoParam",
|
1614
|
+
"name": "LogoParam",
|
1615
|
+
"required": false,
|
1616
|
+
"type": "object"
|
1617
|
+
}
|
1618
|
+
],
|
1619
|
+
"type": "object"
|
1620
|
+
},
|
1621
|
+
"SubmitGlamPicJobResponse": {
|
1622
|
+
"document": "SubmitGlamPicJob返回参数结构体",
|
1623
|
+
"members": [
|
1624
|
+
{
|
1625
|
+
"disabled": false,
|
1626
|
+
"document": "任务ID。",
|
1627
|
+
"example": "251197749-1732000778-a319cc1b-a646-11ef-be80-525400047e59-0",
|
1628
|
+
"member": "string",
|
1629
|
+
"name": "JobId",
|
1630
|
+
"output_required": false,
|
1631
|
+
"type": "string",
|
1632
|
+
"value_allowed_null": false
|
1633
|
+
},
|
1634
|
+
{
|
1635
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1636
|
+
"member": "string",
|
1637
|
+
"name": "RequestId",
|
1638
|
+
"type": "string"
|
1639
|
+
}
|
1640
|
+
],
|
1641
|
+
"type": "object"
|
1642
|
+
},
|
1368
1643
|
"SubmitMemeJobRequest": {
|
1369
1644
|
"document": "SubmitMemeJob请求参数结构体",
|
1370
1645
|
"members": [
|
@@ -48,6 +48,14 @@
|
|
48
48
|
"title": "成功"
|
49
49
|
}
|
50
50
|
],
|
51
|
+
"QueryGlamPicJob": [
|
52
|
+
{
|
53
|
+
"document": "",
|
54
|
+
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryGlamPicJob\n<公共请求参数>\n\n{\n \"JobId\": \"251197749-1739792863-ff707c2a-ed24-11ef-b774-525400c5aaa8-0\"\n}",
|
55
|
+
"output": "{\n \"Response\": {\n \"JobErrorCode\": \"\",\n \"JobErrorMsg\": \"\",\n \"JobStatusCode\": \"5\",\n \"JobStatusMsg\": \"处理完成\",\n \"RequestId\": \"fcf5d2a6-bd68-4a86-a931-28dd6322e457\",\n \"ResultDetails\": [\n \"Success\"\n ],\n \"ResultImage\": [\n \"https://xxx.cos.ap-guangzhou.myqcloud.com/glam_pic/xxx.jpg\"\n ]\n }\n}",
|
56
|
+
"title": "查询美照任务"
|
57
|
+
}
|
58
|
+
],
|
51
59
|
"QueryMemeJob": [
|
52
60
|
{
|
53
61
|
"document": "",
|
@@ -96,6 +104,14 @@
|
|
96
104
|
"title": "成功"
|
97
105
|
}
|
98
106
|
],
|
107
|
+
"SubmitGlamPicJob": [
|
108
|
+
{
|
109
|
+
"document": "",
|
110
|
+
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitGlamPicJob\n<公共请求参数>\n\n{\n \"TemplateUrl\": \"https://xxx.com/template.jpg\",\n \"FaceInfos\": [\n {\n \"ImageUrls\": [\n \"https://xxx.com/input.jpg\"\n ]\n }\n ],\n \"Num\": 1,\n \"Similarity\": 0.6\n}",
|
111
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"251197749-1739859949-31f02502-edc1-11ef-a849-525400c5aaa8-0\",\n \"RequestId\": \"d878c2e1-7108-40b5-aecf-4fb37a6e5695\"\n }\n}",
|
112
|
+
"title": "提交美照任务"
|
113
|
+
}
|
114
|
+
],
|
99
115
|
"SubmitMemeJob": [
|
100
116
|
{
|
101
117
|
"document": "",
|