tccli 3.0.1180.1__py2.py3-none-any.whl → 3.0.1182.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/batch/v20170312/api.json +1 -1
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +185 -0
- tccli/services/cdb/v20170320/examples.json +17 -1
- tccli/services/cdwdoris/v20211228/api.json +27 -0
- tccli/services/clb/v20180317/api.json +59 -1
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/controlcenter/__init__.py +4 -0
- tccli/services/controlcenter/controlcenter_client.py +195 -0
- tccli/services/controlcenter/v20230110/api.json +82 -0
- tccli/services/controlcenter/v20230110/examples.json +13 -0
- tccli/services/csip/v20221121/api.json +308 -1
- tccli/services/cvm/v20170312/api.json +20 -20
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/cwp/v20180228/api.json +3 -3
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +51 -12
- tccli/services/cynosdb/v20190107/examples.json +3 -3
- tccli/services/dasb/v20191018/api.json +11 -1
- tccli/services/dsgc/v20190723/api.json +18 -0
- tccli/services/es/v20180416/api.json +39 -1
- tccli/services/ess/v20201111/api.json +12 -2
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/essbasic/v20210526/api.json +12 -2
- tccli/services/essbasic/v20210526/examples.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +106 -0
- tccli/services/hunyuan/v20230901/api.json +235 -0
- tccli/services/hunyuan/v20230901/examples.json +16 -0
- tccli/services/iotexplorer/v20190423/api.json +2 -2
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/organization/organization_client.py +53 -0
- tccli/services/organization/v20210331/api.json +43 -0
- tccli/services/organization/v20210331/examples.json +8 -0
- tccli/services/redis/v20180412/api.json +16 -16
- tccli/services/scf/v20180416/api.json +29 -9
- tccli/services/ses/v20201002/api.json +148 -11
- tccli/services/sqlserver/v20180328/api.json +2 -2
- tccli/services/sqlserver/v20180328/examples.json +1 -1
- tccli/services/ssl/v20191205/api.json +10 -0
- tccli/services/tdmq/v20200217/api.json +10 -0
- tccli/services/tms/tms_client.py +0 -53
- tccli/services/tms/v20201229/api.json +2 -46
- tccli/services/tms/v20201229/examples.json +0 -8
- tccli/services/tmt/v20180321/api.json +3 -3
- tccli/services/wedata/v20210820/api.json +1568 -0
- tccli/services/wedata/v20210820/examples.json +54 -0
- tccli/services/wedata/wedata_client.py +334 -16
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/RECORD +54 -50
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/license_files/LICENSE +0 -0
@@ -17,6 +17,58 @@ from tencentcloud.hunyuan.v20230901 import models as models_v20230901
|
|
17
17
|
from jmespath import search
|
18
18
|
import time
|
19
19
|
|
20
|
+
def doQueryHunyuanImageChatJob(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.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
47
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
48
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
+
model = models.QueryHunyuanImageChatJobRequest()
|
50
|
+
model.from_json_string(json.dumps(args))
|
51
|
+
start_time = time.time()
|
52
|
+
while True:
|
53
|
+
rsp = client.QueryHunyuanImageChatJob(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 doSubmitHunyuanImageJob(args, parsed_globals):
|
21
73
|
g_param = parse_global_arg(parsed_globals)
|
22
74
|
|
@@ -173,6 +225,58 @@ def doGetTokenCount(args, parsed_globals):
|
|
173
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
226
|
|
175
227
|
|
228
|
+
def doSubmitHunyuanImageChatJob(args, parsed_globals):
|
229
|
+
g_param = parse_global_arg(parsed_globals)
|
230
|
+
|
231
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
232
|
+
cred = credential.CVMRoleCredential()
|
233
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
234
|
+
cred = credential.STSAssumeRoleCredential(
|
235
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
236
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
237
|
+
)
|
238
|
+
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):
|
239
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
240
|
+
else:
|
241
|
+
cred = credential.Credential(
|
242
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
243
|
+
)
|
244
|
+
http_profile = HttpProfile(
|
245
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
246
|
+
reqMethod="POST",
|
247
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
248
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
249
|
+
)
|
250
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
251
|
+
if g_param[OptionsDefine.Language]:
|
252
|
+
profile.language = g_param[OptionsDefine.Language]
|
253
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
254
|
+
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
255
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
256
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
+
model = models.SubmitHunyuanImageChatJobRequest()
|
258
|
+
model.from_json_string(json.dumps(args))
|
259
|
+
start_time = time.time()
|
260
|
+
while True:
|
261
|
+
rsp = client.SubmitHunyuanImageChatJob(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
|
+
|
176
280
|
def doChatCompletions(args, parsed_globals):
|
177
281
|
g_param = parse_global_arg(parsed_globals)
|
178
282
|
|
@@ -444,9 +548,11 @@ MODELS_MAP = {
|
|
444
548
|
}
|
445
549
|
|
446
550
|
ACTION_MAP = {
|
551
|
+
"QueryHunyuanImageChatJob": doQueryHunyuanImageChatJob,
|
447
552
|
"SubmitHunyuanImageJob": doSubmitHunyuanImageJob,
|
448
553
|
"QueryHunyuanImageJob": doQueryHunyuanImageJob,
|
449
554
|
"GetTokenCount": doGetTokenCount,
|
555
|
+
"SubmitHunyuanImageChatJob": doSubmitHunyuanImageChatJob,
|
450
556
|
"ChatCompletions": doChatCompletions,
|
451
557
|
"GetEmbedding": doGetEmbedding,
|
452
558
|
"SetPayMode": doSetPayMode,
|
@@ -28,6 +28,13 @@
|
|
28
28
|
"output": "GetTokenCountResponse",
|
29
29
|
"status": "online"
|
30
30
|
},
|
31
|
+
"QueryHunyuanImageChatJob": {
|
32
|
+
"document": "混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。\n提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。\n混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
33
|
+
"input": "QueryHunyuanImageChatJobRequest",
|
34
|
+
"name": "查询混元生图(多轮对话)任务",
|
35
|
+
"output": "QueryHunyuanImageChatJobResponse",
|
36
|
+
"status": "online"
|
37
|
+
},
|
31
38
|
"QueryHunyuanImageJob": {
|
32
39
|
"document": "混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
33
40
|
"input": "QueryHunyuanImageJobRequest",
|
@@ -42,6 +49,13 @@
|
|
42
49
|
"output": "SetPayModeResponse",
|
43
50
|
"status": "online"
|
44
51
|
},
|
52
|
+
"SubmitHunyuanImageChatJob": {
|
53
|
+
"document": "混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。\n提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。\n混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
54
|
+
"input": "SubmitHunyuanImageChatJobRequest",
|
55
|
+
"name": "提交混元生图(多轮对话)任务",
|
56
|
+
"output": "SubmitHunyuanImageChatJobResponse",
|
57
|
+
"status": "online"
|
58
|
+
},
|
45
59
|
"SubmitHunyuanImageJob": {
|
46
60
|
"document": "混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
47
61
|
"input": "SubmitHunyuanImageJobRequest",
|
@@ -609,6 +623,56 @@
|
|
609
623
|
],
|
610
624
|
"type": "object"
|
611
625
|
},
|
626
|
+
"History": {
|
627
|
+
"document": "混元生图多轮对话历史记录。",
|
628
|
+
"members": [
|
629
|
+
{
|
630
|
+
"disabled": false,
|
631
|
+
"document": "对话的 ID,用于唯一标识一轮对话\n注意:此字段可能返回 null,表示取不到有效值。",
|
632
|
+
"example": "无",
|
633
|
+
"member": "string",
|
634
|
+
"name": "ChatId",
|
635
|
+
"output_required": false,
|
636
|
+
"required": false,
|
637
|
+
"type": "string",
|
638
|
+
"value_allowed_null": true
|
639
|
+
},
|
640
|
+
{
|
641
|
+
"disabled": false,
|
642
|
+
"document": "原始输入的 Prompt 文本\n注意:此字段可能返回 null,表示取不到有效值。",
|
643
|
+
"example": "无",
|
644
|
+
"member": "string",
|
645
|
+
"name": "Prompt",
|
646
|
+
"output_required": false,
|
647
|
+
"required": false,
|
648
|
+
"type": "string",
|
649
|
+
"value_allowed_null": true
|
650
|
+
},
|
651
|
+
{
|
652
|
+
"disabled": false,
|
653
|
+
"document": "扩写后的 Prompt 文本\n注意:此字段可能返回 null,表示取不到有效值。",
|
654
|
+
"example": "无",
|
655
|
+
"member": "string",
|
656
|
+
"name": "RevisedPrompt",
|
657
|
+
"output_required": false,
|
658
|
+
"required": false,
|
659
|
+
"type": "string",
|
660
|
+
"value_allowed_null": true
|
661
|
+
},
|
662
|
+
{
|
663
|
+
"disabled": false,
|
664
|
+
"document": "生成图的随机种子\n注意:此字段可能返回 null,表示取不到有效值。",
|
665
|
+
"example": "无",
|
666
|
+
"member": "int64",
|
667
|
+
"name": "Seed",
|
668
|
+
"output_required": false,
|
669
|
+
"required": false,
|
670
|
+
"type": "int",
|
671
|
+
"value_allowed_null": true
|
672
|
+
}
|
673
|
+
],
|
674
|
+
"usage": "both"
|
675
|
+
},
|
612
676
|
"ImageUrl": {
|
613
677
|
"document": "具体的图片内容",
|
614
678
|
"members": [
|
@@ -762,6 +826,113 @@
|
|
762
826
|
],
|
763
827
|
"usage": "both"
|
764
828
|
},
|
829
|
+
"QueryHunyuanImageChatJobRequest": {
|
830
|
+
"document": "QueryHunyuanImageChatJob请求参数结构体",
|
831
|
+
"members": [
|
832
|
+
{
|
833
|
+
"disabled": false,
|
834
|
+
"document": "任务 ID。",
|
835
|
+
"example": "无",
|
836
|
+
"member": "string",
|
837
|
+
"name": "JobId",
|
838
|
+
"required": false,
|
839
|
+
"type": "string"
|
840
|
+
}
|
841
|
+
],
|
842
|
+
"type": "object"
|
843
|
+
},
|
844
|
+
"QueryHunyuanImageChatJobResponse": {
|
845
|
+
"document": "QueryHunyuanImageChatJob返回参数结构体",
|
846
|
+
"members": [
|
847
|
+
{
|
848
|
+
"disabled": false,
|
849
|
+
"document": "当前任务状态码:\n1:等待中、2:运行中、4:处理失败、5:处理完成。",
|
850
|
+
"example": "无",
|
851
|
+
"member": "string",
|
852
|
+
"name": "JobStatusCode",
|
853
|
+
"output_required": false,
|
854
|
+
"type": "string",
|
855
|
+
"value_allowed_null": false
|
856
|
+
},
|
857
|
+
{
|
858
|
+
"disabled": false,
|
859
|
+
"document": "当前任务状态:排队中、处理中、处理失败或者处理完成。\n",
|
860
|
+
"example": "无",
|
861
|
+
"member": "string",
|
862
|
+
"name": "JobStatusMsg",
|
863
|
+
"output_required": false,
|
864
|
+
"type": "string",
|
865
|
+
"value_allowed_null": false
|
866
|
+
},
|
867
|
+
{
|
868
|
+
"disabled": false,
|
869
|
+
"document": "任务处理失败错误码。\n",
|
870
|
+
"example": "无",
|
871
|
+
"member": "string",
|
872
|
+
"name": "JobErrorCode",
|
873
|
+
"output_required": false,
|
874
|
+
"type": "string",
|
875
|
+
"value_allowed_null": false
|
876
|
+
},
|
877
|
+
{
|
878
|
+
"disabled": false,
|
879
|
+
"document": "任务处理失败错误信息。\n",
|
880
|
+
"example": "无",
|
881
|
+
"member": "string",
|
882
|
+
"name": "JobErrorMsg",
|
883
|
+
"output_required": false,
|
884
|
+
"type": "string",
|
885
|
+
"value_allowed_null": false
|
886
|
+
},
|
887
|
+
{
|
888
|
+
"disabled": false,
|
889
|
+
"document": "本轮对话的 ChatId,ChatId 用于唯一标识一轮对话。\n一个对话组中,最多支持进行100轮对话。\n每轮对话数据有效期为7天,到期后 ChatId 失效,有效期内的历史对话数据可通过 History 查询,如有长期使用需求请及时保存输入输出数据。",
|
890
|
+
"example": "无",
|
891
|
+
"member": "string",
|
892
|
+
"name": "ChatId",
|
893
|
+
"output_required": false,
|
894
|
+
"type": "string",
|
895
|
+
"value_allowed_null": false
|
896
|
+
},
|
897
|
+
{
|
898
|
+
"disabled": false,
|
899
|
+
"document": "生成图 URL 列表,有效期7天,请及时保存。",
|
900
|
+
"example": "无",
|
901
|
+
"member": "string",
|
902
|
+
"name": "ResultImage",
|
903
|
+
"output_required": false,
|
904
|
+
"type": "list",
|
905
|
+
"value_allowed_null": false
|
906
|
+
},
|
907
|
+
{
|
908
|
+
"disabled": false,
|
909
|
+
"document": "结果 detail 数组,Success 代表成功。\n",
|
910
|
+
"example": "无",
|
911
|
+
"member": "string",
|
912
|
+
"name": "ResultDetails",
|
913
|
+
"output_required": false,
|
914
|
+
"type": "list",
|
915
|
+
"value_allowed_null": false
|
916
|
+
},
|
917
|
+
{
|
918
|
+
"disabled": false,
|
919
|
+
"document": "本轮对话前置的历史对话数据(不含生成图)。",
|
920
|
+
"example": "无",
|
921
|
+
"member": "History",
|
922
|
+
"name": "History",
|
923
|
+
"output_required": false,
|
924
|
+
"type": "list",
|
925
|
+
"value_allowed_null": false
|
926
|
+
},
|
927
|
+
{
|
928
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
929
|
+
"member": "string",
|
930
|
+
"name": "RequestId",
|
931
|
+
"type": "string"
|
932
|
+
}
|
933
|
+
],
|
934
|
+
"type": "object"
|
935
|
+
},
|
765
936
|
"QueryHunyuanImageJobRequest": {
|
766
937
|
"document": "QueryHunyuanImageJob请求参数结构体",
|
767
938
|
"members": [
|
@@ -942,6 +1113,70 @@
|
|
942
1113
|
],
|
943
1114
|
"type": "object"
|
944
1115
|
},
|
1116
|
+
"SubmitHunyuanImageChatJobRequest": {
|
1117
|
+
"document": "SubmitHunyuanImageChatJob请求参数结构体",
|
1118
|
+
"members": [
|
1119
|
+
{
|
1120
|
+
"disabled": false,
|
1121
|
+
"document": "本轮对话的文本描述。\n提交一个任务请求对应发起一轮生图对话,每轮对话中可输入一条 Prompt,生成一张图像,支持通过多轮输入 Prompt 来不断调整图像内容。\n推荐使用中文,最多可传1024个 utf-8 字符。\n输入示例:\n<li> 第一轮对话:一颗红色的苹果 </li>\n<li> 第二轮对话:将苹果改为绿色 </li>\n<li> 第三轮对话:苹果放在桌子上 </li>",
|
1122
|
+
"example": "无",
|
1123
|
+
"member": "string",
|
1124
|
+
"name": "Prompt",
|
1125
|
+
"required": true,
|
1126
|
+
"type": "string"
|
1127
|
+
},
|
1128
|
+
{
|
1129
|
+
"disabled": false,
|
1130
|
+
"document": "上传上一轮对话的 ChatId,本轮对话将在指定的上一轮对话结果基础上继续生成图像。\n如果不传代表新建一个对话组,重新开启一轮新的对话。\n一个对话组中,最多支持进行100轮对话。",
|
1131
|
+
"example": "无",
|
1132
|
+
"member": "string",
|
1133
|
+
"name": "ChatId",
|
1134
|
+
"required": false,
|
1135
|
+
"type": "string"
|
1136
|
+
},
|
1137
|
+
{
|
1138
|
+
"disabled": false,
|
1139
|
+
"document": "为生成结果图添加显式水印标识的开关,默认为1。 \n1:添加。 \n0:不添加。 \n其他数值:默认按1处理。 \n建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。",
|
1140
|
+
"example": "无",
|
1141
|
+
"member": "int64",
|
1142
|
+
"name": "LogoAdd",
|
1143
|
+
"required": false,
|
1144
|
+
"type": "int"
|
1145
|
+
},
|
1146
|
+
{
|
1147
|
+
"disabled": false,
|
1148
|
+
"document": "标识内容设置。\n默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。",
|
1149
|
+
"example": "无",
|
1150
|
+
"member": "LogoParam",
|
1151
|
+
"name": "LogoParam",
|
1152
|
+
"required": false,
|
1153
|
+
"type": "object"
|
1154
|
+
}
|
1155
|
+
],
|
1156
|
+
"type": "object"
|
1157
|
+
},
|
1158
|
+
"SubmitHunyuanImageChatJobResponse": {
|
1159
|
+
"document": "SubmitHunyuanImageChatJob返回参数结构体",
|
1160
|
+
"members": [
|
1161
|
+
{
|
1162
|
+
"disabled": false,
|
1163
|
+
"document": "任务 ID。",
|
1164
|
+
"example": "无",
|
1165
|
+
"member": "string",
|
1166
|
+
"name": "JobId",
|
1167
|
+
"output_required": false,
|
1168
|
+
"type": "string",
|
1169
|
+
"value_allowed_null": false
|
1170
|
+
},
|
1171
|
+
{
|
1172
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1173
|
+
"member": "string",
|
1174
|
+
"name": "RequestId",
|
1175
|
+
"type": "string"
|
1176
|
+
}
|
1177
|
+
],
|
1178
|
+
"type": "object"
|
1179
|
+
},
|
945
1180
|
"SubmitHunyuanImageJobRequest": {
|
946
1181
|
"document": "SubmitHunyuanImageJob请求参数结构体",
|
947
1182
|
"members": [
|
@@ -80,6 +80,14 @@
|
|
80
80
|
"title": "调用接口成功案例"
|
81
81
|
}
|
82
82
|
],
|
83
|
+
"QueryHunyuanImageChatJob": [
|
84
|
+
{
|
85
|
+
"document": "成功查询",
|
86
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryHunyuanImageChatJob\n<公共请求参数>\n\n{\n \"JobId\": \"test\"\n}",
|
87
|
+
"output": "{\n \"Response\": {\n \"ChatId\": \"1219898325508988928\",\n \"History\": [\n {\n \"ChatId\": \"1219898325508988928\",\n \"Prompt\": \"雪山\",\n \"RevisedPrompt\": \"摄影风格,画面主要描述一座雄伟的山峰,山顶覆盖着白雪,阳光照耀下闪耀着光芒,背景是蔚蓝的天空,镜头是全景\",\n \"Seed\": 1763557528\n }\n ],\n \"JobErrorCode\": \"\",\n \"JobErrorMsg\": \"\",\n \"JobStatusCode\": \"5\",\n \"JobStatusMsg\": \"处理完成\",\n \"RequestId\": \"da0634c6-7b6b-4115-9081-bd2d20a860ca\",\n \"ResultDetails\": [\n \"Success\"\n ],\n \"ResultImage\": [\n \"https:/result.jpg\"\n ]\n }\n}",
|
88
|
+
"title": "成功查询"
|
89
|
+
}
|
90
|
+
],
|
83
91
|
"QueryHunyuanImageJob": [
|
84
92
|
{
|
85
93
|
"document": "成功查询",
|
@@ -96,6 +104,14 @@
|
|
96
104
|
"title": "示例\t"
|
97
105
|
}
|
98
106
|
],
|
107
|
+
"SubmitHunyuanImageChatJob": [
|
108
|
+
{
|
109
|
+
"document": "调用成功",
|
110
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitHunyuanImageChatJob\n<公共请求参数>\n\n{\n \"Prompt\": \"雪山\"\n}",
|
111
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"test\",\n \"RequestId\": \"9723dd95-d217-46ff-a556-2cc760142737\"\n }\n}",
|
112
|
+
"title": "调用成功"
|
113
|
+
}
|
114
|
+
],
|
99
115
|
"SubmitHunyuanImageJob": [
|
100
116
|
{
|
101
117
|
"document": "调用成功",
|
@@ -1213,8 +1213,8 @@
|
|
1213
1213
|
},
|
1214
1214
|
{
|
1215
1215
|
"disabled": false,
|
1216
|
-
"document": "License
|
1217
|
-
"example": "
|
1216
|
+
"document": "License数,只支持50,500,1000,5000,10000,20000,50000",
|
1217
|
+
"example": "50",
|
1218
1218
|
"member": "int64",
|
1219
1219
|
"name": "DeductNum",
|
1220
1220
|
"required": true,
|
@@ -697,7 +697,7 @@
|
|
697
697
|
"VatInvoiceVerifyNew": [
|
698
698
|
{
|
699
699
|
"document": "增值税发票核验示例代码",
|
700
|
-
"input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: VatInvoiceVerifyNew\n<公共请求参数>\n\n{\n \"InvoiceCode\": \"144002288010\",\n \"InvoiceNo\": \"04138864\",\n \"InvoiceDate\": \"2022-11-16\",\n \"Amount\": \"498.90\",\n \"CheckCode\": \"
|
700
|
+
"input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: VatInvoiceVerifyNew\n<公共请求参数>\n\n{\n \"InvoiceCode\": \"144002288010\",\n \"InvoiceNo\": \"04138864\",\n \"InvoiceDate\": \"2022-11-16\",\n \"Amount\": \"498.90\",\n \"CheckCode\": \"311400\",\n \"RegionCode\": \"4400\",\n \"SellerTaxCode\": \"44078819091887401X\",\n \"EnableCommonElectronic\": true\n}",
|
701
701
|
"output": "{\n \"Response\": {\n \"Invoice\": {\n \"AmountWithTax\": \"498.90\",\n \"AmountWithoutTax\": \"0.00\",\n \"BuyerAddressPhone\": \"\",\n \"BuyerBankAccount\": \"\",\n \"BuyerName\": \"\",\n \"BuyerTaxCode\": \"\",\n \"CheckCode\": \"\",\n \"Code\": \"144002288010\",\n \"Date\": \"\",\n \"ElectronicType\": \"\",\n \"HasSellerList\": \"\",\n \"IsAbandoned\": \"N\",\n \"Items\": [],\n \"MachineNo\": \"\",\n \"Number\": \"04138864\",\n \"Remark\": \"\",\n \"RedLetterInvoiceMark\": false,\n \"IssuingTypeMark\": 1,\n \"SellerAddressPhone\": \"\",\n \"SellerBankAccount\": \"\",\n \"SellerAgentName\": \"\",\n \"SellerAgentTaxID\": \"\",\n \"SellerListTax\": \"\",\n \"SellerListTitle\": \"\",\n \"SellerName\": \"广州市天河区员美丽美食店\",\n \"SellerTaxCode\": \"\",\n \"TaxAmount\": \"0.00\",\n \"TaxBureau\": \"\",\n \"TrafficFreeFlag\": \"N\",\n \"Type\": \"102\"\n },\n \"PassInvoiceInfoList\": [],\n \"RequestId\": \"f3cd280c-6d3a-41c5-8493-4ed98f8b2755\",\n \"UsedVehicleInvoiceInfo\": {\n \"Auctioneer\": \"\",\n \"AuctioneerAddress\": \"\",\n \"AuctioneerBankAccount\": \"\",\n \"AuctioneerTaxpayerNum\": \"\",\n \"AuctioneerTel\": \"\",\n \"Buyer\": \"\",\n \"BuyerAddress\": \"\",\n \"BuyerNo\": \"\",\n \"BuyerTel\": \"\",\n \"ManagementOffice\": \"\",\n \"Market\": \"\",\n \"MarketAddress\": \"\",\n \"MarketBankAccount\": \"\",\n \"MarketTaxpayerNum\": \"\",\n \"MarketTel\": \"\",\n \"RegisterNo\": \"\",\n \"Seller\": \"\",\n \"SellerAddress\": \"\",\n \"SellerNo\": \"\",\n \"SellerTel\": \"\",\n \"TaxBureau\": \"\",\n \"VehicleIdentifyNo\": \"\",\n \"VehicleLicenseNo\": \"\",\n \"VehicleTotalPrice\": \"\"\n },\n \"VehicleInvoiceInfo\": {\n \"BizCheckFormNo\": \"\",\n \"BuyerNo\": \"\",\n \"CarType\": \"\",\n \"CertificateNo\": \"\",\n \"EngineNo\": \"\",\n \"ImportNo\": \"\",\n \"LimitCount\": \"\",\n \"MotorBankAccount\": \"\",\n \"MotorBankName\": \"\",\n \"MotorTaxRate\": \"\",\n \"PayTaxesNo\": \"\",\n \"PlateModel\": \"\",\n \"ProduceAddress\": \"\",\n \"SellerAddress\": \"\",\n \"SellerTel\": \"\",\n \"TaxtationOrgCode\": \"\",\n \"TaxtationOrgName\": \"\",\n \"Tonnage\": \"\",\n \"VinNo\": \"\"\n },\n \"ElectronicTrainTicket\": {\n \"BuyerName\": \"abc\",\n \"BuyerTaxCode\": \"abc\",\n \"Number\": \"abc\",\n \"Date\": \"abc\",\n \"TotalCN\": \"abc\",\n \"Tax\": \"abc\",\n \"ServiceType\": \"abc\",\n \"TimeGetOn\": \"abc\",\n \"TrainNumber\": \"abc\",\n \"Code\": \"abc\",\n \"SeatType\": \"abc\",\n \"DateGetOn\": \"abc\",\n \"TrainCabin\": \"abc\",\n \"StationGetOn\": \"abc\",\n \"ElectronicNumber\": \"abc\",\n \"PassengerName\": \"abc\",\n \"PassengerNo\": \"abc\",\n \"Amount\": \"abc\",\n \"StationGetOff\": \"abc\",\n \"TaxRate\": \"abc\",\n \"Seat\": \"abc\",\n \"Total\": \"abc\",\n \"CheckCode\": \"abc\",\n \"StateCode\": \"0\"\n },\n \"ElectronicAirTransport\": {\n \"Code\": \"abc\",\n \"Number\": \"abc\",\n \"Date\": \"abc\",\n \"Amount\": \"abc\",\n \"CheckCode\": \"abc\",\n \"Total\": \"abc\",\n \"DeductionMark\": \"abc\",\n \"StateCode\": \"abc\",\n \"BuyerTaxCode\": \"abc\",\n \"BuyerName\": \"abc\",\n \"DomesticInternationalMark\": \"abc\",\n \"PassengerName\": \"abc\",\n \"PassengerNo\": \"abc\",\n \"ElectronicNumber\": \"abc\",\n \"ElectronicAirTransportDetails\": [\n {\n \"FlightSegment\": \"abc\",\n \"StationGetOn\": \"abc\",\n \"StationGetOff\": \"abc\",\n \"Carrier\": \"abc\",\n \"FlightNumber\": \"abc\",\n \"SeatLevel\": \"abc\",\n \"FlightDate\": \"abc\",\n \"DepartureTime\": \"abc\",\n \"FareBasis\": \"abc\"\n }\n ]\n }\n }\n}",
|
702
702
|
"title": "增值税发票核验示例代码"
|
703
703
|
}
|
@@ -5063,6 +5063,58 @@ def doDescribeIdentityCenter(args, parsed_globals):
|
|
5063
5063
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5064
5064
|
|
5065
5065
|
|
5066
|
+
def doSendOrgMemberAccountBindEmail(args, parsed_globals):
|
5067
|
+
g_param = parse_global_arg(parsed_globals)
|
5068
|
+
|
5069
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5070
|
+
cred = credential.CVMRoleCredential()
|
5071
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5072
|
+
cred = credential.STSAssumeRoleCredential(
|
5073
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5074
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5075
|
+
)
|
5076
|
+
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):
|
5077
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5078
|
+
else:
|
5079
|
+
cred = credential.Credential(
|
5080
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5081
|
+
)
|
5082
|
+
http_profile = HttpProfile(
|
5083
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5084
|
+
reqMethod="POST",
|
5085
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5086
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5087
|
+
)
|
5088
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5089
|
+
if g_param[OptionsDefine.Language]:
|
5090
|
+
profile.language = g_param[OptionsDefine.Language]
|
5091
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5092
|
+
client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile)
|
5093
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5094
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5095
|
+
model = models.SendOrgMemberAccountBindEmailRequest()
|
5096
|
+
model.from_json_string(json.dumps(args))
|
5097
|
+
start_time = time.time()
|
5098
|
+
while True:
|
5099
|
+
rsp = client.SendOrgMemberAccountBindEmail(model)
|
5100
|
+
result = rsp.to_json_string()
|
5101
|
+
try:
|
5102
|
+
json_obj = json.loads(result)
|
5103
|
+
except TypeError as e:
|
5104
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5105
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5106
|
+
break
|
5107
|
+
cur_time = time.time()
|
5108
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5109
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5110
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5111
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5112
|
+
else:
|
5113
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5114
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5115
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5116
|
+
|
5117
|
+
|
5066
5118
|
def doGetZoneStatistics(args, parsed_globals):
|
5067
5119
|
g_param = parse_global_arg(parsed_globals)
|
5068
5120
|
|
@@ -6733,6 +6785,7 @@ ACTION_MAP = {
|
|
6733
6785
|
"ListPoliciesForTarget": doListPoliciesForTarget,
|
6734
6786
|
"DescribeOrganizationMemberAuthIdentities": doDescribeOrganizationMemberAuthIdentities,
|
6735
6787
|
"DescribeIdentityCenter": doDescribeIdentityCenter,
|
6788
|
+
"SendOrgMemberAccountBindEmail": doSendOrgMemberAccountBindEmail,
|
6736
6789
|
"GetZoneStatistics": doGetZoneStatistics,
|
6737
6790
|
"DetachPolicy": doDetachPolicy,
|
6738
6791
|
"DeleteShareUnitMembers": doDeleteShareUnitMembers,
|
@@ -714,6 +714,13 @@
|
|
714
714
|
"output": "RemoveUserFromGroupResponse",
|
715
715
|
"status": "online"
|
716
716
|
},
|
717
|
+
"SendOrgMemberAccountBindEmail": {
|
718
|
+
"document": "重新发送成员绑定邮箱激活邮件",
|
719
|
+
"input": "SendOrgMemberAccountBindEmailRequest",
|
720
|
+
"name": "重新发送成员绑定邮箱激活邮件",
|
721
|
+
"output": "SendOrgMemberAccountBindEmailResponse",
|
722
|
+
"status": "online"
|
723
|
+
},
|
717
724
|
"SetExternalSAMLIdentityProvider": {
|
718
725
|
"document": "配置SAML身份提供商信息",
|
719
726
|
"input": "SetExternalSAMLIdentityProviderRequest",
|
@@ -10012,6 +10019,42 @@
|
|
10012
10019
|
],
|
10013
10020
|
"usage": "both"
|
10014
10021
|
},
|
10022
|
+
"SendOrgMemberAccountBindEmailRequest": {
|
10023
|
+
"document": "SendOrgMemberAccountBindEmail请求参数结构体",
|
10024
|
+
"members": [
|
10025
|
+
{
|
10026
|
+
"disabled": false,
|
10027
|
+
"document": "成员Uin。",
|
10028
|
+
"example": "111111111111",
|
10029
|
+
"member": "int64",
|
10030
|
+
"name": "MemberUin",
|
10031
|
+
"required": true,
|
10032
|
+
"type": "int"
|
10033
|
+
},
|
10034
|
+
{
|
10035
|
+
"disabled": false,
|
10036
|
+
"document": "绑定ID。可以通过[DescribeOrganizationMemberEmailBind](https://cloud.tencent.com/document/product/850/93332)获取",
|
10037
|
+
"example": "12",
|
10038
|
+
"member": "int64",
|
10039
|
+
"name": "BindId",
|
10040
|
+
"required": true,
|
10041
|
+
"type": "int"
|
10042
|
+
}
|
10043
|
+
],
|
10044
|
+
"type": "object"
|
10045
|
+
},
|
10046
|
+
"SendOrgMemberAccountBindEmailResponse": {
|
10047
|
+
"document": "SendOrgMemberAccountBindEmail返回参数结构体",
|
10048
|
+
"members": [
|
10049
|
+
{
|
10050
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
10051
|
+
"member": "string",
|
10052
|
+
"name": "RequestId",
|
10053
|
+
"type": "string"
|
10054
|
+
}
|
10055
|
+
],
|
10056
|
+
"type": "object"
|
10057
|
+
},
|
10015
10058
|
"SetExternalSAMLIdentityProviderRequest": {
|
10016
10059
|
"document": "SetExternalSAMLIdentityProvider请求参数结构体",
|
10017
10060
|
"members": [
|
@@ -816,6 +816,14 @@
|
|
816
816
|
"title": "从用户组中移除用户"
|
817
817
|
}
|
818
818
|
],
|
819
|
+
"SendOrgMemberAccountBindEmail": [
|
820
|
+
{
|
821
|
+
"document": "",
|
822
|
+
"input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SendOrgMemberAccountBindEmail\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"BindId\": 12\n}",
|
823
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
|
824
|
+
"title": "重新发送成员绑定邮箱激活邮件"
|
825
|
+
}
|
826
|
+
],
|
819
827
|
"SetExternalSAMLIdentityProvider": [
|
820
828
|
{
|
821
829
|
"document": "配置SAML身份提供商信息",
|