tccli 3.0.1149.1__py2.py3-none-any.whl → 3.0.1151.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/asr/v20190614/api.json +2 -2
- tccli/services/cbs/cbs_client.py +61 -8
- tccli/services/cbs/v20170312/api.json +66 -2
- tccli/services/cbs/v20170312/examples.json +8 -0
- tccli/services/ccc/v20200210/api.json +2 -2
- tccli/services/cdz/__init__.py +4 -0
- tccli/services/cdz/cdz_client.py +248 -0
- tccli/services/cdz/v20221123/api.json +305 -0
- tccli/services/cdz/v20221123/examples.json +21 -0
- tccli/services/clb/v20180317/api.json +9 -0
- tccli/services/cynosdb/v20190107/api.json +3 -3
- tccli/services/dasb/v20191018/api.json +5 -4
- tccli/services/dc/v20180410/api.json +14 -7
- tccli/services/dts/v20211206/api.json +2 -2
- tccli/services/ess/v20201111/api.json +4 -4
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/essbasic/v20210526/examples.json +1 -1
- tccli/services/facefusion/v20220927/api.json +8 -8
- tccli/services/gaap/v20180529/api.json +11 -1
- tccli/services/gaap/v20180529/examples.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +65 -12
- tccli/services/hunyuan/v20230901/api.json +89 -0
- tccli/services/hunyuan/v20230901/examples.json +8 -0
- tccli/services/iotexplorer/v20190423/api.json +85 -1
- tccli/services/lke/v20231130/api.json +10 -1
- tccli/services/mongodb/v20190725/api.json +18 -9
- tccli/services/mps/v20190612/api.json +45 -41
- tccli/services/mps/v20190612/examples.json +20 -8
- tccli/services/oceanus/v20190422/api.json +9 -0
- tccli/services/ses/v20201002/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +1357 -57
- tccli/services/vpc/v20170312/examples.json +104 -0
- tccli/services/vpc/vpc_client.py +1974 -1285
- {tccli-3.0.1149.1.dist-info → tccli-3.0.1151.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1149.1.dist-info → tccli-3.0.1151.1.dist-info}/RECORD +40 -36
- {tccli-3.0.1149.1.dist-info → tccli-3.0.1151.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1149.1.dist-info → tccli-3.0.1151.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1149.1.dist-info → tccli-3.0.1151.1.dist-info}/license_files/LICENSE +0 -0
@@ -638,17 +638,17 @@
|
|
638
638
|
"example": "string",
|
639
639
|
"member": "string",
|
640
640
|
"name": "MaterialId",
|
641
|
-
"
|
641
|
+
"output_required": true,
|
642
642
|
"type": "string",
|
643
643
|
"value_allowed_null": false
|
644
644
|
},
|
645
645
|
{
|
646
646
|
"disabled": false,
|
647
|
-
"document": "
|
647
|
+
"document": "素材状态\n\n字段取值: \n0 审核中\n1 人工审核通过\n2 人工审核失败\n3 申诉中\n11 申诉成功\n12 申诉失败\n21 机器审核通过\n22 机器审核失败\n31 视频素材预处理成功,素材可用\n32 视频素材预处理失败\n33 角色不在视频中",
|
648
648
|
"example": "1",
|
649
649
|
"member": "int64",
|
650
650
|
"name": "MaterialStatus",
|
651
|
-
"
|
651
|
+
"output_required": true,
|
652
652
|
"type": "int",
|
653
653
|
"value_allowed_null": false
|
654
654
|
},
|
@@ -658,7 +658,7 @@
|
|
658
658
|
"example": "string",
|
659
659
|
"member": "string",
|
660
660
|
"name": "CreateTime",
|
661
|
-
"
|
661
|
+
"output_required": true,
|
662
662
|
"type": "string",
|
663
663
|
"value_allowed_null": false
|
664
664
|
},
|
@@ -668,7 +668,7 @@
|
|
668
668
|
"example": "string",
|
669
669
|
"member": "string",
|
670
670
|
"name": "UpdateTime",
|
671
|
-
"
|
671
|
+
"output_required": true,
|
672
672
|
"type": "string",
|
673
673
|
"value_allowed_null": false
|
674
674
|
},
|
@@ -678,7 +678,7 @@
|
|
678
678
|
"example": "string",
|
679
679
|
"member": "MaterialFaces",
|
680
680
|
"name": "MaterialFaceList",
|
681
|
-
"
|
681
|
+
"output_required": true,
|
682
682
|
"type": "list",
|
683
683
|
"value_allowed_null": false
|
684
684
|
},
|
@@ -688,7 +688,7 @@
|
|
688
688
|
"example": "string",
|
689
689
|
"member": "string",
|
690
690
|
"name": "MaterialName",
|
691
|
-
"
|
691
|
+
"output_required": true,
|
692
692
|
"type": "string",
|
693
693
|
"value_allowed_null": false
|
694
694
|
},
|
@@ -698,7 +698,7 @@
|
|
698
698
|
"example": "string",
|
699
699
|
"member": "string",
|
700
700
|
"name": "AuditResult",
|
701
|
-
"
|
701
|
+
"output_required": true,
|
702
702
|
"type": "string",
|
703
703
|
"value_allowed_null": true
|
704
704
|
}
|
@@ -6222,7 +6222,17 @@
|
|
6222
6222
|
},
|
6223
6223
|
"DescribeTaskStatusRequest": {
|
6224
6224
|
"document": "DescribeTaskStatus请求参数结构体",
|
6225
|
-
"members": [
|
6225
|
+
"members": [
|
6226
|
+
{
|
6227
|
+
"disabled": false,
|
6228
|
+
"document": "任务ID,值为异步接口返回的RequestId",
|
6229
|
+
"example": "无",
|
6230
|
+
"member": "string",
|
6231
|
+
"name": "TaskId",
|
6232
|
+
"required": false,
|
6233
|
+
"type": "string"
|
6234
|
+
}
|
6235
|
+
],
|
6226
6236
|
"type": "object"
|
6227
6237
|
},
|
6228
6238
|
"DescribeTaskStatusResponse": {
|
@@ -659,7 +659,7 @@
|
|
659
659
|
"DescribeTaskStatus": [
|
660
660
|
{
|
661
661
|
"document": "查询异步任务执行状态",
|
662
|
-
"input": "POST / HTTP/1.1\nHost: gaap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskStatus\n<公共请求参数>\n\n{}",
|
662
|
+
"input": "POST / HTTP/1.1\nHost: gaap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskStatus\n<公共请求参数>\n\n{\n \"TaskId\": \"08388e12-d2e2-4376-ade0-1a59fdd9f4d2\"\n}",
|
663
663
|
"output": "{\n \"Response\": {\n \"RequestId\": \"766d83c7-c0b1-4973-bdf3-effeeffa34d7\"\n }\n}",
|
664
664
|
"title": "查询异步任务执行状态"
|
665
665
|
}
|
@@ -17,7 +17,7 @@ from tencentcloud.hunyuan.v20230901 import models as models_v20230901
|
|
17
17
|
from jmespath import search
|
18
18
|
import time
|
19
19
|
|
20
|
-
def
|
20
|
+
def doSubmitHunyuanImageJob(args, parsed_globals):
|
21
21
|
g_param = parse_global_arg(parsed_globals)
|
22
22
|
|
23
23
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -46,11 +46,11 @@ def doChatCompletions(args, parsed_globals):
|
|
46
46
|
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
47
47
|
client._sdkVersion += ("_CLI_" + __version__)
|
48
48
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
-
model = models.
|
49
|
+
model = models.SubmitHunyuanImageJobRequest()
|
50
50
|
model.from_json_string(json.dumps(args))
|
51
51
|
start_time = time.time()
|
52
52
|
while True:
|
53
|
-
rsp = client.
|
53
|
+
rsp = client.SubmitHunyuanImageJob(model)
|
54
54
|
result = rsp.to_json_string()
|
55
55
|
try:
|
56
56
|
json_obj = json.loads(result)
|
@@ -121,7 +121,7 @@ def doQueryHunyuanImageJob(args, parsed_globals):
|
|
121
121
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
122
|
|
123
123
|
|
124
|
-
def
|
124
|
+
def doChatCompletions(args, parsed_globals):
|
125
125
|
g_param = parse_global_arg(parsed_globals)
|
126
126
|
|
127
127
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -150,11 +150,11 @@ def doGetEmbedding(args, parsed_globals):
|
|
150
150
|
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
151
151
|
client._sdkVersion += ("_CLI_" + __version__)
|
152
152
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
153
|
-
model = models.
|
153
|
+
model = models.ChatCompletionsRequest()
|
154
154
|
model.from_json_string(json.dumps(args))
|
155
155
|
start_time = time.time()
|
156
156
|
while True:
|
157
|
-
rsp = client.
|
157
|
+
rsp = client.ChatCompletions(model)
|
158
158
|
result = rsp.to_json_string()
|
159
159
|
try:
|
160
160
|
json_obj = json.loads(result)
|
@@ -225,7 +225,7 @@ def doGetTokenCount(args, parsed_globals):
|
|
225
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
226
|
|
227
227
|
|
228
|
-
def
|
228
|
+
def doTextToImageLite(args, parsed_globals):
|
229
229
|
g_param = parse_global_arg(parsed_globals)
|
230
230
|
|
231
231
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -254,11 +254,63 @@ def doSubmitHunyuanImageJob(args, parsed_globals):
|
|
254
254
|
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
255
255
|
client._sdkVersion += ("_CLI_" + __version__)
|
256
256
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
-
model = models.
|
257
|
+
model = models.TextToImageLiteRequest()
|
258
258
|
model.from_json_string(json.dumps(args))
|
259
259
|
start_time = time.time()
|
260
260
|
while True:
|
261
|
-
rsp = client.
|
261
|
+
rsp = client.TextToImageLite(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 doGetEmbedding(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.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
307
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
308
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
+
model = models.GetEmbeddingRequest()
|
310
|
+
model.from_json_string(json.dumps(args))
|
311
|
+
start_time = time.time()
|
312
|
+
while True:
|
313
|
+
rsp = client.GetEmbedding(model)
|
262
314
|
result = rsp.to_json_string()
|
263
315
|
try:
|
264
316
|
json_obj = json.loads(result)
|
@@ -288,11 +340,12 @@ MODELS_MAP = {
|
|
288
340
|
}
|
289
341
|
|
290
342
|
ACTION_MAP = {
|
291
|
-
"
|
343
|
+
"SubmitHunyuanImageJob": doSubmitHunyuanImageJob,
|
292
344
|
"QueryHunyuanImageJob": doQueryHunyuanImageJob,
|
293
|
-
"
|
345
|
+
"ChatCompletions": doChatCompletions,
|
294
346
|
"GetTokenCount": doGetTokenCount,
|
295
|
-
"
|
347
|
+
"TextToImageLite": doTextToImageLite,
|
348
|
+
"GetEmbedding": doGetEmbedding,
|
296
349
|
|
297
350
|
}
|
298
351
|
|
@@ -34,6 +34,13 @@
|
|
34
34
|
"name": "提交混元生图任务",
|
35
35
|
"output": "SubmitHunyuanImageJobResponse",
|
36
36
|
"status": "online"
|
37
|
+
},
|
38
|
+
"TextToImageLite": {
|
39
|
+
"document": "文生图轻量版接口根据输入的文本描述,智能生成与之相关的结果图。\n文生图轻量版默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
40
|
+
"input": "TextToImageLiteRequest",
|
41
|
+
"name": "文生图轻量版",
|
42
|
+
"output": "TextToImageLiteResponse",
|
43
|
+
"status": "online"
|
37
44
|
}
|
38
45
|
},
|
39
46
|
"metadata": {
|
@@ -762,6 +769,88 @@
|
|
762
769
|
],
|
763
770
|
"type": "object"
|
764
771
|
},
|
772
|
+
"TextToImageLiteRequest": {
|
773
|
+
"document": "TextToImageLite请求参数结构体",
|
774
|
+
"members": [
|
775
|
+
{
|
776
|
+
"disabled": false,
|
777
|
+
"document": "文本描述。\n算法将根据输入的文本智能生成与之相关的图像。建议详细描述画面主体、细节、场景等,文本描述越丰富,生成效果越精美。\n不能为空,推荐使用中文。最多可传256个 utf-8 字符。",
|
778
|
+
"example": "雨中, 竹林, 小路",
|
779
|
+
"member": "string",
|
780
|
+
"name": "Prompt",
|
781
|
+
"required": true,
|
782
|
+
"type": "string"
|
783
|
+
},
|
784
|
+
{
|
785
|
+
"disabled": false,
|
786
|
+
"document": "反向文本描述。\n用于一定程度上从反面引导模型生成的走向,减少生成结果中出现描述内容的可能,但不能完全杜绝。\n推荐使用中文。最多可传256个 utf-8 字符。",
|
787
|
+
"example": "无",
|
788
|
+
"member": "string",
|
789
|
+
"name": "NegativePrompt",
|
790
|
+
"required": false,
|
791
|
+
"type": "string"
|
792
|
+
},
|
793
|
+
{
|
794
|
+
"disabled": false,
|
795
|
+
"document": "绘画风格。\n请在 [智能文生图风格列表](https://cloud.tencent.com/document/product/1668/86249) 中选择期望的风格,传入风格编号。\n推荐使用且只使用一种风格。不传默认使用201(日系动漫风格)。",
|
796
|
+
"example": "无",
|
797
|
+
"member": "string",
|
798
|
+
"name": "Style",
|
799
|
+
"required": false,
|
800
|
+
"type": "string"
|
801
|
+
},
|
802
|
+
{
|
803
|
+
"disabled": false,
|
804
|
+
"document": "生成图分辨率。\n支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768。",
|
805
|
+
"example": "无",
|
806
|
+
"member": "string",
|
807
|
+
"name": "Resolution",
|
808
|
+
"required": false,
|
809
|
+
"type": "string"
|
810
|
+
},
|
811
|
+
{
|
812
|
+
"disabled": false,
|
813
|
+
"document": "为生成结果图添加标识的开关,默认为1。\n1:添加标识。\n0:不添加标识。\n其他数值:默认按0处理。\n建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。",
|
814
|
+
"example": "无",
|
815
|
+
"member": "int64",
|
816
|
+
"name": "LogoAdd",
|
817
|
+
"required": false,
|
818
|
+
"type": "int"
|
819
|
+
},
|
820
|
+
{
|
821
|
+
"disabled": false,
|
822
|
+
"document": "返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。",
|
823
|
+
"example": "base64",
|
824
|
+
"member": "string",
|
825
|
+
"name": "RspImgType",
|
826
|
+
"required": false,
|
827
|
+
"type": "string"
|
828
|
+
}
|
829
|
+
],
|
830
|
+
"type": "object"
|
831
|
+
},
|
832
|
+
"TextToImageLiteResponse": {
|
833
|
+
"document": "TextToImageLite返回参数结构体",
|
834
|
+
"members": [
|
835
|
+
{
|
836
|
+
"disabled": false,
|
837
|
+
"document": "根据入参 RspImgType 填入不同,返回不同的内容。如果传入 base64 则返回生成图 Base64 编码。如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。",
|
838
|
+
"example": "url",
|
839
|
+
"member": "string",
|
840
|
+
"name": "ResultImage",
|
841
|
+
"output_required": true,
|
842
|
+
"type": "string",
|
843
|
+
"value_allowed_null": false
|
844
|
+
},
|
845
|
+
{
|
846
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
847
|
+
"member": "string",
|
848
|
+
"name": "RequestId",
|
849
|
+
"type": "string"
|
850
|
+
}
|
851
|
+
],
|
852
|
+
"type": "object"
|
853
|
+
},
|
765
854
|
"Tool": {
|
766
855
|
"document": "用户指定模型使用的工具",
|
767
856
|
"members": [
|
@@ -87,6 +87,14 @@
|
|
87
87
|
"output": "{\n \"Response\": {\n \"JobId\": \"test\",\n \"RequestId\": \"d4e1f224-fa21-40bc-9ee7-4bb13abece6e\"\n }\n}",
|
88
88
|
"title": "调用成功"
|
89
89
|
}
|
90
|
+
],
|
91
|
+
"TextToImageLite": [
|
92
|
+
{
|
93
|
+
"document": "成功调用,并返回生图url",
|
94
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: TextToImageLite\n<公共请求参数>\n\n{\n \"Prompt\": \"冰川,企鹅\",\n \"RspImgType\": \"url\"\n}",
|
95
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"53549a10-0633-4ebe-bf39-466dc51aa2bb\",\n \"ResultImage\": \"https://rspimg.jpg\"\n }\n}",
|
96
|
+
"title": "成功调用"
|
97
|
+
}
|
90
98
|
]
|
91
99
|
},
|
92
100
|
"version": "1.0"
|
@@ -1744,6 +1744,34 @@
|
|
1744
1744
|
],
|
1745
1745
|
"type": "object"
|
1746
1746
|
},
|
1747
|
+
"CamTag": {
|
1748
|
+
"document": "标签数据结构",
|
1749
|
+
"members": [
|
1750
|
+
{
|
1751
|
+
"disabled": false,
|
1752
|
+
"document": "标签键\n注意:此字段可能返回 null,表示取不到有效值。",
|
1753
|
+
"example": "无",
|
1754
|
+
"member": "string",
|
1755
|
+
"name": "TagKey",
|
1756
|
+
"output_required": false,
|
1757
|
+
"required": false,
|
1758
|
+
"type": "string",
|
1759
|
+
"value_allowed_null": true
|
1760
|
+
},
|
1761
|
+
{
|
1762
|
+
"disabled": false,
|
1763
|
+
"document": "标签值\n注意:此字段可能返回 null,表示取不到有效值。",
|
1764
|
+
"example": "无",
|
1765
|
+
"member": "string",
|
1766
|
+
"name": "TagValue",
|
1767
|
+
"output_required": false,
|
1768
|
+
"required": false,
|
1769
|
+
"type": "string",
|
1770
|
+
"value_allowed_null": true
|
1771
|
+
}
|
1772
|
+
],
|
1773
|
+
"usage": "both"
|
1774
|
+
},
|
1747
1775
|
"CancelAssignTWeCallLicenseRequest": {
|
1748
1776
|
"document": "CancelAssignTWeCallLicense请求参数结构体",
|
1749
1777
|
"members": [
|
@@ -6981,10 +7009,20 @@
|
|
6981
7009
|
"example": "无",
|
6982
7010
|
"member": "TopicRule",
|
6983
7011
|
"name": "Rule",
|
6984
|
-
"
|
7012
|
+
"output_required": true,
|
6985
7013
|
"type": "object",
|
6986
7014
|
"value_allowed_null": true
|
6987
7015
|
},
|
7016
|
+
{
|
7017
|
+
"disabled": false,
|
7018
|
+
"document": "规则绑定的标签\n注意:此字段可能返回 null,表示取不到有效值。",
|
7019
|
+
"example": "无",
|
7020
|
+
"member": "CamTag",
|
7021
|
+
"name": "CamTag",
|
7022
|
+
"output_required": false,
|
7023
|
+
"type": "list",
|
7024
|
+
"value_allowed_null": true
|
7025
|
+
},
|
6988
7026
|
{
|
6989
7027
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
6990
7028
|
"member": "string",
|
@@ -7997,6 +8035,30 @@
|
|
7997
8035
|
],
|
7998
8036
|
"usage": "out"
|
7999
8037
|
},
|
8038
|
+
"Filter": {
|
8039
|
+
"document": "描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等\n\n- 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。\n\n- 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。",
|
8040
|
+
"members": [
|
8041
|
+
{
|
8042
|
+
"disabled": false,
|
8043
|
+
"document": "需要过滤的字段",
|
8044
|
+
"example": "tag:tag-key",
|
8045
|
+
"member": "string",
|
8046
|
+
"name": "Name",
|
8047
|
+
"required": true,
|
8048
|
+
"type": "string"
|
8049
|
+
},
|
8050
|
+
{
|
8051
|
+
"disabled": false,
|
8052
|
+
"document": "字段的过滤的一个或多个值",
|
8053
|
+
"example": "tag-value",
|
8054
|
+
"member": "string",
|
8055
|
+
"name": "Values",
|
8056
|
+
"required": false,
|
8057
|
+
"type": "list"
|
8058
|
+
}
|
8059
|
+
],
|
8060
|
+
"usage": "in"
|
8061
|
+
},
|
8000
8062
|
"FirmwareInfo": {
|
8001
8063
|
"document": "设备固件详细信息",
|
8002
8064
|
"members": [
|
@@ -8529,6 +8591,15 @@
|
|
8529
8591
|
"name": "ProjectId",
|
8530
8592
|
"required": false,
|
8531
8593
|
"type": "string"
|
8594
|
+
},
|
8595
|
+
{
|
8596
|
+
"disabled": false,
|
8597
|
+
"document": "每次请求的Filters的上限为10,Filter.Values的上限为1。",
|
8598
|
+
"example": "NA",
|
8599
|
+
"member": "Filter",
|
8600
|
+
"name": "Filters",
|
8601
|
+
"required": false,
|
8602
|
+
"type": "list"
|
8532
8603
|
}
|
8533
8604
|
],
|
8534
8605
|
"type": "object"
|
@@ -8542,6 +8613,7 @@
|
|
8542
8613
|
"example": "无",
|
8543
8614
|
"member": "DeviceInfo",
|
8544
8615
|
"name": "Devices",
|
8616
|
+
"output_required": true,
|
8545
8617
|
"type": "list",
|
8546
8618
|
"value_allowed_null": true
|
8547
8619
|
},
|
@@ -8551,6 +8623,7 @@
|
|
8551
8623
|
"example": "3",
|
8552
8624
|
"member": "int64",
|
8553
8625
|
"name": "Total",
|
8626
|
+
"output_required": true,
|
8554
8627
|
"type": "int",
|
8555
8628
|
"value_allowed_null": true
|
8556
8629
|
},
|
@@ -12576,6 +12649,15 @@
|
|
12576
12649
|
"name": "ProductId",
|
12577
12650
|
"required": false,
|
12578
12651
|
"type": "string"
|
12652
|
+
},
|
12653
|
+
{
|
12654
|
+
"disabled": false,
|
12655
|
+
"document": "每次请求的Filters的上限为10,Filter.Values的上限为1。",
|
12656
|
+
"example": "NA",
|
12657
|
+
"member": "Filter",
|
12658
|
+
"name": "Filters",
|
12659
|
+
"required": false,
|
12660
|
+
"type": "list"
|
12579
12661
|
}
|
12580
12662
|
],
|
12581
12663
|
"type": "object"
|
@@ -12589,6 +12671,7 @@
|
|
12589
12671
|
"example": "无",
|
12590
12672
|
"member": "ProductEntry",
|
12591
12673
|
"name": "Products",
|
12674
|
+
"output_required": true,
|
12592
12675
|
"type": "list",
|
12593
12676
|
"value_allowed_null": false
|
12594
12677
|
},
|
@@ -12598,6 +12681,7 @@
|
|
12598
12681
|
"example": "1",
|
12599
12682
|
"member": "int64",
|
12600
12683
|
"name": "Total",
|
12684
|
+
"output_required": true,
|
12601
12685
|
"type": "int",
|
12602
12686
|
"value_allowed_null": false
|
12603
12687
|
},
|
@@ -1856,6 +1856,15 @@
|
|
1856
1856
|
"CreateReconstructDocumentFlowRequest": {
|
1857
1857
|
"document": "CreateReconstructDocumentFlow请求参数结构体",
|
1858
1858
|
"members": [
|
1859
|
+
{
|
1860
|
+
"disabled": false,
|
1861
|
+
"document": "文件类型。支持的文件类型:PDF、DOCX、DOC、XLS、XLSX、PPT、PPTX、PNG、JPG、JPEG、CSV",
|
1862
|
+
"example": "PDF",
|
1863
|
+
"member": "string",
|
1864
|
+
"name": "FileType",
|
1865
|
+
"required": false,
|
1866
|
+
"type": "string"
|
1867
|
+
},
|
1859
1868
|
{
|
1860
1869
|
"disabled": false,
|
1861
1870
|
"document": "文件的 Base64 值。 支持的文件格式:PNG、JPG、JPEG、PDF。 支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。",
|
@@ -1909,7 +1918,7 @@
|
|
1909
1918
|
"members": [
|
1910
1919
|
{
|
1911
1920
|
"disabled": false,
|
1912
|
-
"document": "任务唯一id",
|
1921
|
+
"document": "任务唯一id。30天内可以通过GetReconstructDocumentResult接口查询TaskId对应的处理结果。",
|
1913
1922
|
"example": "无",
|
1914
1923
|
"member": "string",
|
1915
1924
|
"name": "TaskId",
|
@@ -314,7 +314,7 @@
|
|
314
314
|
"members": [
|
315
315
|
{
|
316
316
|
"disabled": false,
|
317
|
-
"document": "
|
317
|
+
"document": "需要新增的节点角色。\n- SECONDARY:Mongod 节点。\n- READONLY:只读节点。\n- MONGOS:Mongos 节点。",
|
318
318
|
"example": "SECONDARY",
|
319
319
|
"member": "string",
|
320
320
|
"name": "Role",
|
@@ -4597,7 +4597,7 @@
|
|
4597
4597
|
},
|
4598
4598
|
{
|
4599
4599
|
"disabled": false,
|
4600
|
-
"document": "
|
4600
|
+
"document": "实例配置变更后的内存大小。- 单位:GB。- 内存和磁盘必须同时升配或同时降配,即 Memory 与 Volume 需同时配置变更。<br>注意:节点变更时,输入实例当前的内存配置。",
|
4601
4601
|
"example": "4",
|
4602
4602
|
"member": "uint64",
|
4603
4603
|
"name": "Memory",
|
@@ -4606,7 +4606,7 @@
|
|
4606
4606
|
},
|
4607
4607
|
{
|
4608
4608
|
"disabled": false,
|
4609
|
-
"document": "实例配置变更后的硬盘大小,单位:GB。<ul><li>内存和磁盘必须同时升配或同时降配,即 Memory 与 Volume 需同时配置变更。</li><li>降配时,变更后的磁盘容量必须大于已用磁盘容量的1.2倍。</li></ul>",
|
4609
|
+
"document": "实例配置变更后的硬盘大小,单位:GB。<ul><li>内存和磁盘必须同时升配或同时降配,即 Memory 与 Volume 需同时配置变更。</li><li>降配时,变更后的磁盘容量必须大于已用磁盘容量的1.2倍。</li></ul> 注意:节点变更时,输入实例当前的硬盘配置。",
|
4610
4610
|
"example": "250",
|
4611
4611
|
"member": "uint64",
|
4612
4612
|
"name": "Volume",
|
@@ -4624,7 +4624,7 @@
|
|
4624
4624
|
},
|
4625
4625
|
{
|
4626
4626
|
"disabled": false,
|
4627
|
-
"document": "
|
4627
|
+
"document": "实例变更后的节点数。- 变更节点类型包含:mongod节点 或 readonly 节点,mongos节点变更无需填写。变更节点类型,请查询参数**AddNodeList**或**RemoveNodeList**指定的类型。- 副本集节点数:取值范围请通过云数据库的售卖规格 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 接口返回的参数**MinNodeNum**与 **MaxNodeNum**获取。- 分片集群每个分片节点数:取值范围请通过云数据库的售卖规格 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 接口返回的参数**MinReplicateSetNodeNum**与**MaxReplicateSetNodeNum**获取。",
|
4628
4628
|
"example": "3",
|
4629
4629
|
"member": "uint64",
|
4630
4630
|
"name": "NodeNum",
|
@@ -4633,7 +4633,7 @@
|
|
4633
4633
|
},
|
4634
4634
|
{
|
4635
4635
|
"disabled": false,
|
4636
|
-
"document": "实例变更后的分片数。<ul><li
|
4636
|
+
"document": "实例变更后的分片数。<ul><li>取值范围请通过云数据库的售卖规格 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 接口返回的参数**MinReplicateSetNum**与**MaxReplicateSetNum**获取。</li><li>该参数只能增加不能减少。</li></ul>",
|
4637
4637
|
"example": "3",
|
4638
4638
|
"member": "uint64",
|
4639
4639
|
"name": "ReplicateSetNum",
|
@@ -4642,7 +4642,7 @@
|
|
4642
4642
|
},
|
4643
4643
|
{
|
4644
4644
|
"disabled": false,
|
4645
|
-
"document": "
|
4645
|
+
"document": "实例配置变更的切换时间。\n- 0:调整完成时,立即执行变配任务。默认为0。\n- 1:在维护时间窗内,执行变配任务。\n**说明**:调整节点数和分片数不支持在<b>维护时间窗内</b>变更。",
|
4646
4646
|
"example": "0",
|
4647
4647
|
"member": "uint64",
|
4648
4648
|
"name": "InMaintenance",
|
@@ -4651,7 +4651,16 @@
|
|
4651
4651
|
},
|
4652
4652
|
{
|
4653
4653
|
"disabled": false,
|
4654
|
-
"document": "
|
4654
|
+
"document": "分片实例配置变更后的mongos内存大小。- 单位:GB。",
|
4655
|
+
"example": "2",
|
4656
|
+
"member": "string",
|
4657
|
+
"name": "MongosMemory",
|
4658
|
+
"required": false,
|
4659
|
+
"type": "string"
|
4660
|
+
},
|
4661
|
+
{
|
4662
|
+
"disabled": false,
|
4663
|
+
"document": "新增节点列表,节点类型及可用区信息。",
|
4655
4664
|
"example": "无",
|
4656
4665
|
"member": "AddNodeList",
|
4657
4666
|
"name": "AddNodeList",
|
@@ -4660,7 +4669,7 @@
|
|
4660
4669
|
},
|
4661
4670
|
{
|
4662
4671
|
"disabled": false,
|
4663
|
-
"document": "
|
4672
|
+
"document": "删除节点列表,注意:基于分片实例各片节点的一致性原则,删除分片实例节点时,只需指定0分片对应的节点即可,如:cmgo-9nl1czif_0-node-readonly0 将删除每个分片的第1个只读节点。",
|
4664
4673
|
"example": "无",
|
4665
4674
|
"member": "RemoveNodeList",
|
4666
4675
|
"name": "RemoveNodeList",
|
@@ -5027,7 +5036,7 @@
|
|
5027
5036
|
"members": [
|
5028
5037
|
{
|
5029
5038
|
"disabled": false,
|
5030
|
-
"document": "需要删除的节点角色。\n- SECONDARY:Mongod
|
5039
|
+
"document": "需要删除的节点角色。\n- SECONDARY:Mongod 从节点。\n- READONLY:只读节点。\n- MONGOS:Mongos 节点。",
|
5031
5040
|
"example": "SECONDARY",
|
5032
5041
|
"member": "string",
|
5033
5042
|
"name": "Role",
|