tccli 3.0.1389.1__py2.py3-none-any.whl → 3.0.1391.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 +3 -0
- tccli/services/ai3d/ai3d_client.py +216 -4
- tccli/services/ai3d/v20250513/api.json +326 -0
- tccli/services/ai3d/v20250513/examples.json +32 -0
- tccli/services/asr/v20190614/api.json +1 -1
- tccli/services/batch/v20170312/api.json +3 -3
- tccli/services/batch/v20170312/examples.json +3 -3
- tccli/services/cam/v20190116/api.json +11 -1
- tccli/services/ccc/v20200210/api.json +10 -10
- tccli/services/cdb/v20170320/api.json +40 -2
- tccli/services/cdz/v20221123/api.json +1 -1
- tccli/services/ckafka/v20190819/api.json +31 -23
- tccli/services/ckafka/v20190819/examples.json +1 -1
- tccli/services/clb/v20180317/api.json +20 -1
- tccli/services/cloudapp/cloudapp_client.py +53 -0
- tccli/services/cloudapp/v20220530/api.json +68 -0
- tccli/services/cloudapp/v20220530/examples.json +14 -0
- tccli/services/cls/cls_client.py +167 -8
- tccli/services/cls/v20201016/api.json +292 -2
- tccli/services/cls/v20201016/examples.json +24 -0
- tccli/services/dts/v20211206/api.json +15 -15
- tccli/services/dts/v20211206/examples.json +1 -1
- tccli/services/es/v20250101/api.json +99 -5
- tccli/services/ess/v20201111/api.json +145 -4
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/gme/v20180711/api.json +7 -7
- tccli/services/gs/gs_client.py +57 -4
- tccli/services/gs/v20191118/api.json +79 -0
- tccli/services/gs/v20191118/examples.json +8 -0
- tccli/services/gwlb/v20240906/api.json +117 -0
- tccli/services/igtm/v20231024/api.json +3 -3
- tccli/services/iotexplorer/v20190423/api.json +19 -1
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- tccli/services/lighthouse/lighthouse_client.py +53 -0
- tccli/services/lighthouse/v20200324/api.json +228 -35
- tccli/services/lighthouse/v20200324/examples.json +8 -0
- tccli/services/live/v20180801/api.json +2 -2
- tccli/services/lkeap/v20240522/api.json +25 -1
- tccli/services/lowcode/lowcode_client.py +163 -4
- tccli/services/lowcode/v20210108/api.json +1373 -96
- tccli/services/lowcode/v20210108/examples.json +24 -0
- tccli/services/mps/v20190612/api.json +804 -47
- tccli/services/ocr/v20181119/api.json +4 -4
- tccli/services/sqlserver/v20180328/api.json +4 -4
- tccli/services/tcbr/v20220217/api.json +51 -0
- tccli/services/tdai/__init__.py +4 -0
- tccli/services/tdai/tdai_client.py +1108 -0
- tccli/services/tdai/v20250717/api.json +1930 -0
- tccli/services/tdai/v20250717/examples.json +149 -0
- tccli/services/teo/teo_client.py +53 -0
- tccli/services/teo/v20220901/api.json +111 -3
- tccli/services/teo/v20220901/examples.json +8 -0
- tccli/services/tmt/v20180321/api.json +3 -3
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/tts/v20190823/api.json +11 -11
- tccli/services/vpc/v20170312/api.json +37 -7
- tccli/services/vpc/v20170312/examples.json +7 -7
- tccli/services/vtc/v20240223/api.json +10 -8
- tccli/services/vtc/v20240223/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +283 -6
- tccli/services/waf/v20180125/examples.json +24 -0
- tccli/services/waf/waf_client.py +159 -0
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/RECORD +68 -64
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1391.1'
|
tccli/services/__init__.py
CHANGED
@@ -17,6 +17,162 @@ from tencentcloud.ai3d.v20250513 import models as models_v20250513
|
|
17
17
|
from jmespath import search
|
18
18
|
import time
|
19
19
|
|
20
|
+
def doQueryHunyuanTo3DJob(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.Ai3dClient(cred, g_param[OptionsDefine.Region], profile)
|
47
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
48
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
+
model = models.QueryHunyuanTo3DJobRequest()
|
50
|
+
model.from_json_string(json.dumps(args))
|
51
|
+
start_time = time.time()
|
52
|
+
while True:
|
53
|
+
rsp = client.QueryHunyuanTo3DJob(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
|
+
def doSubmitHunyuanTo3DProJob(args, parsed_globals):
|
73
|
+
g_param = parse_global_arg(parsed_globals)
|
74
|
+
|
75
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
76
|
+
cred = credential.CVMRoleCredential()
|
77
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
78
|
+
cred = credential.STSAssumeRoleCredential(
|
79
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
80
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
81
|
+
)
|
82
|
+
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):
|
83
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
84
|
+
else:
|
85
|
+
cred = credential.Credential(
|
86
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
87
|
+
)
|
88
|
+
http_profile = HttpProfile(
|
89
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
90
|
+
reqMethod="POST",
|
91
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
92
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
93
|
+
)
|
94
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
95
|
+
if g_param[OptionsDefine.Language]:
|
96
|
+
profile.language = g_param[OptionsDefine.Language]
|
97
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
98
|
+
client = mod.Ai3dClient(cred, g_param[OptionsDefine.Region], profile)
|
99
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
100
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
+
model = models.SubmitHunyuanTo3DProJobRequest()
|
102
|
+
model.from_json_string(json.dumps(args))
|
103
|
+
start_time = time.time()
|
104
|
+
while True:
|
105
|
+
rsp = client.SubmitHunyuanTo3DProJob(model)
|
106
|
+
result = rsp.to_json_string()
|
107
|
+
try:
|
108
|
+
json_obj = json.loads(result)
|
109
|
+
except TypeError as e:
|
110
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
111
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
112
|
+
break
|
113
|
+
cur_time = time.time()
|
114
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
115
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
116
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
117
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
118
|
+
else:
|
119
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
120
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
121
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
|
+
|
123
|
+
|
124
|
+
def doQueryHunyuanTo3DRapidJob(args, parsed_globals):
|
125
|
+
g_param = parse_global_arg(parsed_globals)
|
126
|
+
|
127
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
128
|
+
cred = credential.CVMRoleCredential()
|
129
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
130
|
+
cred = credential.STSAssumeRoleCredential(
|
131
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
132
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
133
|
+
)
|
134
|
+
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):
|
135
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
136
|
+
else:
|
137
|
+
cred = credential.Credential(
|
138
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
139
|
+
)
|
140
|
+
http_profile = HttpProfile(
|
141
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
142
|
+
reqMethod="POST",
|
143
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
144
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
145
|
+
)
|
146
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
147
|
+
if g_param[OptionsDefine.Language]:
|
148
|
+
profile.language = g_param[OptionsDefine.Language]
|
149
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
150
|
+
client = mod.Ai3dClient(cred, g_param[OptionsDefine.Region], profile)
|
151
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
152
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
153
|
+
model = models.QueryHunyuanTo3DRapidJobRequest()
|
154
|
+
model.from_json_string(json.dumps(args))
|
155
|
+
start_time = time.time()
|
156
|
+
while True:
|
157
|
+
rsp = client.QueryHunyuanTo3DRapidJob(model)
|
158
|
+
result = rsp.to_json_string()
|
159
|
+
try:
|
160
|
+
json_obj = json.loads(result)
|
161
|
+
except TypeError as e:
|
162
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
163
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
164
|
+
break
|
165
|
+
cur_time = time.time()
|
166
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
167
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
168
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
169
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
170
|
+
else:
|
171
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
172
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
173
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
|
+
|
175
|
+
|
20
176
|
def doSubmitHunyuanTo3DJob(args, parsed_globals):
|
21
177
|
g_param = parse_global_arg(parsed_globals)
|
22
178
|
|
@@ -69,7 +225,7 @@ def doSubmitHunyuanTo3DJob(args, parsed_globals):
|
|
69
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
226
|
|
71
227
|
|
72
|
-
def
|
228
|
+
def doQueryHunyuanTo3DProJob(args, parsed_globals):
|
73
229
|
g_param = parse_global_arg(parsed_globals)
|
74
230
|
|
75
231
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -98,11 +254,63 @@ def doQueryHunyuanTo3DJob(args, parsed_globals):
|
|
98
254
|
client = mod.Ai3dClient(cred, g_param[OptionsDefine.Region], profile)
|
99
255
|
client._sdkVersion += ("_CLI_" + __version__)
|
100
256
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
-
model = models.
|
257
|
+
model = models.QueryHunyuanTo3DProJobRequest()
|
102
258
|
model.from_json_string(json.dumps(args))
|
103
259
|
start_time = time.time()
|
104
260
|
while True:
|
105
|
-
rsp = client.
|
261
|
+
rsp = client.QueryHunyuanTo3DProJob(model)
|
262
|
+
result = rsp.to_json_string()
|
263
|
+
try:
|
264
|
+
json_obj = json.loads(result)
|
265
|
+
except TypeError as e:
|
266
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
267
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
268
|
+
break
|
269
|
+
cur_time = time.time()
|
270
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
271
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
272
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
273
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
274
|
+
else:
|
275
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
276
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
277
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
|
+
|
279
|
+
|
280
|
+
def doSubmitHunyuanTo3DRapidJob(args, parsed_globals):
|
281
|
+
g_param = parse_global_arg(parsed_globals)
|
282
|
+
|
283
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
284
|
+
cred = credential.CVMRoleCredential()
|
285
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
286
|
+
cred = credential.STSAssumeRoleCredential(
|
287
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
288
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
289
|
+
)
|
290
|
+
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):
|
291
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
292
|
+
else:
|
293
|
+
cred = credential.Credential(
|
294
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
295
|
+
)
|
296
|
+
http_profile = HttpProfile(
|
297
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
298
|
+
reqMethod="POST",
|
299
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
300
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
301
|
+
)
|
302
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
303
|
+
if g_param[OptionsDefine.Language]:
|
304
|
+
profile.language = g_param[OptionsDefine.Language]
|
305
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
306
|
+
client = mod.Ai3dClient(cred, g_param[OptionsDefine.Region], profile)
|
307
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
308
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
+
model = models.SubmitHunyuanTo3DRapidJobRequest()
|
310
|
+
model.from_json_string(json.dumps(args))
|
311
|
+
start_time = time.time()
|
312
|
+
while True:
|
313
|
+
rsp = client.SubmitHunyuanTo3DRapidJob(model)
|
106
314
|
result = rsp.to_json_string()
|
107
315
|
try:
|
108
316
|
json_obj = json.loads(result)
|
@@ -132,8 +340,12 @@ MODELS_MAP = {
|
|
132
340
|
}
|
133
341
|
|
134
342
|
ACTION_MAP = {
|
135
|
-
"SubmitHunyuanTo3DJob": doSubmitHunyuanTo3DJob,
|
136
343
|
"QueryHunyuanTo3DJob": doQueryHunyuanTo3DJob,
|
344
|
+
"SubmitHunyuanTo3DProJob": doSubmitHunyuanTo3DProJob,
|
345
|
+
"QueryHunyuanTo3DRapidJob": doQueryHunyuanTo3DRapidJob,
|
346
|
+
"SubmitHunyuanTo3DJob": doSubmitHunyuanTo3DJob,
|
347
|
+
"QueryHunyuanTo3DProJob": doQueryHunyuanTo3DProJob,
|
348
|
+
"SubmitHunyuanTo3DRapidJob": doSubmitHunyuanTo3DRapidJob,
|
137
349
|
|
138
350
|
}
|
139
351
|
|
@@ -7,12 +7,40 @@
|
|
7
7
|
"output": "QueryHunyuanTo3DJobResponse",
|
8
8
|
"status": "online"
|
9
9
|
},
|
10
|
+
"QueryHunyuanTo3DProJob": {
|
11
|
+
"document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。",
|
12
|
+
"input": "QueryHunyuanTo3DProJobRequest",
|
13
|
+
"name": "查询混元生3D专业版任务",
|
14
|
+
"output": "QueryHunyuanTo3DProJobResponse",
|
15
|
+
"status": "online"
|
16
|
+
},
|
17
|
+
"QueryHunyuanTo3DRapidJob": {
|
18
|
+
"document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。",
|
19
|
+
"input": "QueryHunyuanTo3DRapidJobRequest",
|
20
|
+
"name": "查询混元生3D极速版任务",
|
21
|
+
"output": "QueryHunyuanTo3DRapidJobResponse",
|
22
|
+
"status": "online"
|
23
|
+
},
|
10
24
|
"SubmitHunyuanTo3DJob": {
|
11
25
|
"document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。",
|
12
26
|
"input": "SubmitHunyuanTo3DJobRequest",
|
13
27
|
"name": "提交混元生3D任务",
|
14
28
|
"output": "SubmitHunyuanTo3DJobResponse",
|
15
29
|
"status": "online"
|
30
|
+
},
|
31
|
+
"SubmitHunyuanTo3DProJob": {
|
32
|
+
"document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。",
|
33
|
+
"input": "SubmitHunyuanTo3DProJobRequest",
|
34
|
+
"name": "提交混元生3D专业版任务",
|
35
|
+
"output": "SubmitHunyuanTo3DProJobResponse",
|
36
|
+
"status": "online"
|
37
|
+
},
|
38
|
+
"SubmitHunyuanTo3DRapidJob": {
|
39
|
+
"document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。",
|
40
|
+
"input": "SubmitHunyuanTo3DRapidJobRequest",
|
41
|
+
"name": "提交混元生3D极速版任务",
|
42
|
+
"output": "SubmitHunyuanTo3DRapidJobResponse",
|
43
|
+
"status": "online"
|
16
44
|
}
|
17
45
|
},
|
18
46
|
"metadata": {
|
@@ -128,6 +156,140 @@
|
|
128
156
|
],
|
129
157
|
"type": "object"
|
130
158
|
},
|
159
|
+
"QueryHunyuanTo3DProJobRequest": {
|
160
|
+
"document": "QueryHunyuanTo3DProJob请求参数结构体",
|
161
|
+
"members": [
|
162
|
+
{
|
163
|
+
"disabled": false,
|
164
|
+
"document": "任务ID。",
|
165
|
+
"example": "1357237233311637504",
|
166
|
+
"member": "string",
|
167
|
+
"name": "JobId",
|
168
|
+
"required": true,
|
169
|
+
"type": "string"
|
170
|
+
}
|
171
|
+
],
|
172
|
+
"type": "object"
|
173
|
+
},
|
174
|
+
"QueryHunyuanTo3DProJobResponse": {
|
175
|
+
"document": "QueryHunyuanTo3DProJob返回参数结构体",
|
176
|
+
"members": [
|
177
|
+
{
|
178
|
+
"disabled": false,
|
179
|
+
"document": "任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功",
|
180
|
+
"example": "DONE",
|
181
|
+
"member": "string",
|
182
|
+
"name": "Status",
|
183
|
+
"output_required": false,
|
184
|
+
"type": "string",
|
185
|
+
"value_allowed_null": false
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"disabled": false,
|
189
|
+
"document": "错误码",
|
190
|
+
"example": "InvalidParameter",
|
191
|
+
"member": "string",
|
192
|
+
"name": "ErrorCode",
|
193
|
+
"output_required": false,
|
194
|
+
"type": "string",
|
195
|
+
"value_allowed_null": false
|
196
|
+
},
|
197
|
+
{
|
198
|
+
"disabled": false,
|
199
|
+
"document": "错误信息",
|
200
|
+
"example": "参数错误。",
|
201
|
+
"member": "string",
|
202
|
+
"name": "ErrorMessage",
|
203
|
+
"output_required": false,
|
204
|
+
"type": "string",
|
205
|
+
"value_allowed_null": false
|
206
|
+
},
|
207
|
+
{
|
208
|
+
"disabled": false,
|
209
|
+
"document": "生成的3D文件数组。",
|
210
|
+
"example": "无",
|
211
|
+
"member": "File3D",
|
212
|
+
"name": "ResultFile3Ds",
|
213
|
+
"output_required": false,
|
214
|
+
"type": "list",
|
215
|
+
"value_allowed_null": false
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
219
|
+
"member": "string",
|
220
|
+
"name": "RequestId",
|
221
|
+
"type": "string"
|
222
|
+
}
|
223
|
+
],
|
224
|
+
"type": "object"
|
225
|
+
},
|
226
|
+
"QueryHunyuanTo3DRapidJobRequest": {
|
227
|
+
"document": "QueryHunyuanTo3DRapidJob请求参数结构体",
|
228
|
+
"members": [
|
229
|
+
{
|
230
|
+
"disabled": false,
|
231
|
+
"document": "任务ID。",
|
232
|
+
"example": "1315932989749215232",
|
233
|
+
"member": "string",
|
234
|
+
"name": "JobId",
|
235
|
+
"required": false,
|
236
|
+
"type": "string"
|
237
|
+
}
|
238
|
+
],
|
239
|
+
"type": "object"
|
240
|
+
},
|
241
|
+
"QueryHunyuanTo3DRapidJobResponse": {
|
242
|
+
"document": "QueryHunyuanTo3DRapidJob返回参数结构体",
|
243
|
+
"members": [
|
244
|
+
{
|
245
|
+
"disabled": false,
|
246
|
+
"document": "任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功",
|
247
|
+
"example": "RUN",
|
248
|
+
"member": "string",
|
249
|
+
"name": "Status",
|
250
|
+
"output_required": false,
|
251
|
+
"type": "string",
|
252
|
+
"value_allowed_null": false
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"disabled": false,
|
256
|
+
"document": "错误码",
|
257
|
+
"example": "InvalidParameter",
|
258
|
+
"member": "string",
|
259
|
+
"name": "ErrorCode",
|
260
|
+
"output_required": false,
|
261
|
+
"type": "string",
|
262
|
+
"value_allowed_null": false
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"disabled": false,
|
266
|
+
"document": "错误信息",
|
267
|
+
"example": "参数错误",
|
268
|
+
"member": "string",
|
269
|
+
"name": "ErrorMessage",
|
270
|
+
"output_required": false,
|
271
|
+
"type": "string",
|
272
|
+
"value_allowed_null": false
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"disabled": false,
|
276
|
+
"document": "生成的3D文件数组。",
|
277
|
+
"example": "无",
|
278
|
+
"member": "File3D",
|
279
|
+
"name": "ResultFile3Ds",
|
280
|
+
"output_required": false,
|
281
|
+
"type": "list",
|
282
|
+
"value_allowed_null": false
|
283
|
+
},
|
284
|
+
{
|
285
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
286
|
+
"member": "string",
|
287
|
+
"name": "RequestId",
|
288
|
+
"type": "string"
|
289
|
+
}
|
290
|
+
],
|
291
|
+
"type": "object"
|
292
|
+
},
|
131
293
|
"SubmitHunyuanTo3DJobRequest": {
|
132
294
|
"document": "SubmitHunyuanTo3DJob请求参数结构体",
|
133
295
|
"members": [
|
@@ -210,6 +372,170 @@
|
|
210
372
|
],
|
211
373
|
"type": "object"
|
212
374
|
},
|
375
|
+
"SubmitHunyuanTo3DProJobRequest": {
|
376
|
+
"document": "SubmitHunyuanTo3DProJob请求参数结构体",
|
377
|
+
"members": [
|
378
|
+
{
|
379
|
+
"disabled": false,
|
380
|
+
"document": "文生3D,3D内容的描述,中文正向提示词。\n最多支持1024个 utf-8 字符。\n文生3D, image、image_url和 prompt必填其一,且prompt和image/image_url不能同时存在。",
|
381
|
+
"example": "1",
|
382
|
+
"member": "string",
|
383
|
+
"name": "Prompt",
|
384
|
+
"required": false,
|
385
|
+
"type": "string"
|
386
|
+
},
|
387
|
+
{
|
388
|
+
"disabled": false,
|
389
|
+
"document": "输入图 Base64 数据。\n大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)\n格式:jpg,png,jpeg,webp。\nImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。",
|
390
|
+
"example": "1",
|
391
|
+
"member": "string",
|
392
|
+
"name": "ImageBase64",
|
393
|
+
"required": false,
|
394
|
+
"type": "string"
|
395
|
+
},
|
396
|
+
{
|
397
|
+
"disabled": false,
|
398
|
+
"document": "输入图Url。\n大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)\n格式:jpg,png,jpeg,webp。\nImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。",
|
399
|
+
"example": "1",
|
400
|
+
"member": "string",
|
401
|
+
"name": "ImageUrl",
|
402
|
+
"required": false,
|
403
|
+
"type": "string"
|
404
|
+
},
|
405
|
+
{
|
406
|
+
"disabled": false,
|
407
|
+
"document": "多视角的模型图片,视角参考值:\nleft:左视图;\nright:右视图;\nback:后视图;\n\n每个视角仅限制一张图片。\n●图片大小限制:编码后大小不可超过8M。\n●图片分辨率限制:单边分辨率小于5000且大于128。\n●支持图片格式:支持jpg或png",
|
408
|
+
"example": "无",
|
409
|
+
"member": "ViewImage",
|
410
|
+
"name": "MultiViewImages",
|
411
|
+
"required": false,
|
412
|
+
"type": "list"
|
413
|
+
},
|
414
|
+
{
|
415
|
+
"disabled": false,
|
416
|
+
"document": "是否开启 PBR材质生成,默认 false。",
|
417
|
+
"example": "true",
|
418
|
+
"member": "bool",
|
419
|
+
"name": "EnablePBR",
|
420
|
+
"required": false,
|
421
|
+
"type": "bool"
|
422
|
+
},
|
423
|
+
{
|
424
|
+
"disabled": false,
|
425
|
+
"document": "生成3D模型的面数,默认值为500000。\n可支持生成面数范围,参考值:40000-500000。",
|
426
|
+
"example": "400000",
|
427
|
+
"member": "int64",
|
428
|
+
"name": "FaceCount",
|
429
|
+
"required": false,
|
430
|
+
"type": "int"
|
431
|
+
},
|
432
|
+
{
|
433
|
+
"disabled": false,
|
434
|
+
"document": "生成任务类型,默认Normal,参考值:\nNormal:可生成带纹理的几何模型。\nLowPoly:可生成智能减面后的模型。\nGeometry:可生成不带纹理的几何模型(白模),选择此任务时,EnablePBR参数不生效。\nSketch:可输入草图或线稿图生成模型。",
|
435
|
+
"example": "Normal",
|
436
|
+
"member": "string",
|
437
|
+
"name": "GenerateType",
|
438
|
+
"required": false,
|
439
|
+
"type": "string"
|
440
|
+
}
|
441
|
+
],
|
442
|
+
"type": "object"
|
443
|
+
},
|
444
|
+
"SubmitHunyuanTo3DProJobResponse": {
|
445
|
+
"document": "SubmitHunyuanTo3DProJob返回参数结构体",
|
446
|
+
"members": [
|
447
|
+
{
|
448
|
+
"disabled": false,
|
449
|
+
"document": "任务ID(有效期24小时)",
|
450
|
+
"example": "1357237233311637504",
|
451
|
+
"member": "string",
|
452
|
+
"name": "JobId",
|
453
|
+
"output_required": false,
|
454
|
+
"type": "string",
|
455
|
+
"value_allowed_null": false
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
459
|
+
"member": "string",
|
460
|
+
"name": "RequestId",
|
461
|
+
"type": "string"
|
462
|
+
}
|
463
|
+
],
|
464
|
+
"type": "object"
|
465
|
+
},
|
466
|
+
"SubmitHunyuanTo3DRapidJobRequest": {
|
467
|
+
"document": "SubmitHunyuanTo3DRapidJob请求参数结构体",
|
468
|
+
"members": [
|
469
|
+
{
|
470
|
+
"disabled": false,
|
471
|
+
"document": "文生3D,3D内容的描述,中文正向提示词。\n最多支持200个 utf-8 字符。\n文生3D, image、image_url和 prompt必填其一,且prompt和image/image_url不能同时存在。",
|
472
|
+
"example": "一只小猫",
|
473
|
+
"member": "string",
|
474
|
+
"name": "Prompt",
|
475
|
+
"required": false,
|
476
|
+
"type": "string"
|
477
|
+
},
|
478
|
+
{
|
479
|
+
"disabled": false,
|
480
|
+
"document": "输入图 Base64 数据。\n大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)\n格式:jpg,png,jpeg,webp。\nImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。",
|
481
|
+
"example": "/9j/4QlQaHR0c...N6a2M5ZCI",
|
482
|
+
"member": "string",
|
483
|
+
"name": "ImageBase64",
|
484
|
+
"required": false,
|
485
|
+
"type": "string"
|
486
|
+
},
|
487
|
+
{
|
488
|
+
"disabled": false,
|
489
|
+
"document": "输入图Url。\n大小:单边分辨率要求不小于128,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)\n格式:jpg,png,jpeg,webp。\nImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。",
|
490
|
+
"example": "https://***.cos.ap-guangzhou.myqcloud.com/***.jpg",
|
491
|
+
"member": "string",
|
492
|
+
"name": "ImageUrl",
|
493
|
+
"required": false,
|
494
|
+
"type": "string"
|
495
|
+
},
|
496
|
+
{
|
497
|
+
"disabled": false,
|
498
|
+
"document": "生成模型的格式,仅限制生成一种格式。\n生成模型文件组默认返回obj格式。\n可选值:OBJ,GLB,STL,USDZ,FBX,MP4。",
|
499
|
+
"example": "OBJ",
|
500
|
+
"member": "string",
|
501
|
+
"name": "ResultFormat",
|
502
|
+
"required": false,
|
503
|
+
"type": "string"
|
504
|
+
},
|
505
|
+
{
|
506
|
+
"disabled": false,
|
507
|
+
"document": "是否开启 PBR材质生成,默认 false。",
|
508
|
+
"example": "false",
|
509
|
+
"member": "bool",
|
510
|
+
"name": "EnablePBR",
|
511
|
+
"required": false,
|
512
|
+
"type": "bool"
|
513
|
+
}
|
514
|
+
],
|
515
|
+
"type": "object"
|
516
|
+
},
|
517
|
+
"SubmitHunyuanTo3DRapidJobResponse": {
|
518
|
+
"document": "SubmitHunyuanTo3DRapidJob返回参数结构体",
|
519
|
+
"members": [
|
520
|
+
{
|
521
|
+
"disabled": false,
|
522
|
+
"document": "任务ID(有效期24小时)",
|
523
|
+
"example": "1315932989749215232",
|
524
|
+
"member": "string",
|
525
|
+
"name": "JobId",
|
526
|
+
"output_required": false,
|
527
|
+
"type": "string",
|
528
|
+
"value_allowed_null": false
|
529
|
+
},
|
530
|
+
{
|
531
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
532
|
+
"member": "string",
|
533
|
+
"name": "RequestId",
|
534
|
+
"type": "string"
|
535
|
+
}
|
536
|
+
],
|
537
|
+
"type": "object"
|
538
|
+
},
|
213
539
|
"ViewImage": {
|
214
540
|
"document": "多视角图片",
|
215
541
|
"members": [
|
@@ -8,6 +8,22 @@
|
|
8
8
|
"title": "调用请求示例"
|
9
9
|
}
|
10
10
|
],
|
11
|
+
"QueryHunyuanTo3DProJob": [
|
12
|
+
{
|
13
|
+
"document": "",
|
14
|
+
"input": "POST / HTTP/1.1\nHost: ai3d.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryHunyuanTo3DProJob\n<公共请求参数>\n\n{\n \"JobId\": \"1357237233311637504\"\n}",
|
15
|
+
"output": "{\n \"Response\": {\n \"ErrorCode\": \"\",\n \"ErrorMessage\": \"\",\n \"RequestId\": \"e4de438f-acca-44f9-9f29-7df547c81680\",\n \"ResultFile3Ds\": [\n {\n \"PreviewImageUrl\": \"https://cos.ap-guangzhou.tencentcos.cn/xxx.png\",\n \"Type\": \"GLB\",\n \"Url\": \"https://cos.ap-guangzhou.tencentcos.cn/xxx.glb\"\n }\n ],\n \"Status\": \"DONE\"\n }\n}",
|
16
|
+
"title": "查询生3D专业版示例"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"QueryHunyuanTo3DRapidJob": [
|
20
|
+
{
|
21
|
+
"document": "",
|
22
|
+
"input": "POST / HTTP/1.1\nHost: ai3d.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryHunyuanTo3DRapidJob\n<公共请求参数>\n\n{\n \"JobId\": \"1336255233494892544\"\n}",
|
23
|
+
"output": "{\n \"Response\": {\n \"ErrorCode\": \"\",\n \"ErrorMessage\": \"\",\n \"RequestId\": \"3020cd6c-4ad6-4df3-8560-c233f35d6221\",\n \"ResultFile3Ds\": [\n {\n \"PreviewImageUrl\": \"https://xxx.cos.ap-guangzhou.tencentcos.cn/xxx.png\",\n \"Type\": \"OBJ\",\n \"Url\": \"https:/xxx.cos.ap-guangzhou.tencentcos.cn/xxx.zip\"\n }\n ],\n \"Status\": \"DONE\"\n }\n}",
|
24
|
+
"title": "查询任务调用示例"
|
25
|
+
}
|
26
|
+
],
|
11
27
|
"SubmitHunyuanTo3DJob": [
|
12
28
|
{
|
13
29
|
"document": "",
|
@@ -15,6 +31,22 @@
|
|
15
31
|
"output": "{\n \"Response\": {\n \"JobId\": \"1315932989749215232\",\n \"RequestId\": \"1efb4823-902e-4809-9656-aea168410e54\"\n }\n}",
|
16
32
|
"title": "调用请求示例"
|
17
33
|
}
|
34
|
+
],
|
35
|
+
"SubmitHunyuanTo3DProJob": [
|
36
|
+
{
|
37
|
+
"document": "",
|
38
|
+
"input": "POST / HTTP/1.1\nHost: ai3d.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitHunyuanTo3DProJob\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://cos.ap-guangzhou.myqcloud.com/input.png\"\n}",
|
39
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"1357237233311637504\",\n \"RequestId\": \"173f8c3b-d559-4e17-aac7-4e42303773ac\"\n }\n}",
|
40
|
+
"title": "提交生3D专业版示例"
|
41
|
+
}
|
42
|
+
],
|
43
|
+
"SubmitHunyuanTo3DRapidJob": [
|
44
|
+
{
|
45
|
+
"document": "",
|
46
|
+
"input": "POST / HTTP/1.1\nHost: ai3d.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitHunyuanTo3DRapidJob\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://***.cos.ap-guangzhou.myqcloud.com/***.jpg\"\n}",
|
47
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"1335141824121323520\",\n \"RequestId\": \"5f84f1df-7a29-4f93-8dc0-d9e6dea6bff9\"\n }\n}",
|
48
|
+
"title": "提交任务调用示例"
|
49
|
+
}
|
18
50
|
]
|
19
51
|
},
|
20
52
|
"version": "1.0"
|