tccli 3.0.1097.1__py2.py3-none-any.whl → 3.0.1098.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/examples/apm/v20210622/DescribeGeneralApmApplicationConfig.md +103 -0
- tccli/examples/apm/v20210622/DescribeTagValues.md +27 -0
- tccli/examples/apm/v20210622/ModifyGeneralApmApplicationConfig.md +29 -0
- tccli/examples/ess/v20201111/CreateBatchSignUrl.md +28 -0
- tccli/examples/essbasic/v20210526/ChannelCreateBatchSignUrl.md +28 -0
- tccli/examples/iotexplorer/v20190423/DescribeDeviceFirmwares.md +33 -0
- tccli/services/apm/apm_client.py +159 -0
- tccli/services/apm/v20210622/api.json +456 -0
- tccli/services/apm/v20210622/examples.json +24 -0
- tccli/services/cloudstudio/v20230508/api.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +2 -0
- tccli/services/ess/v20201111/api.json +50 -2
- tccli/services/ess/v20201111/examples.json +6 -0
- tccli/services/essbasic/v20210526/api.json +50 -2
- tccli/services/essbasic/v20210526/examples.json +6 -0
- tccli/services/ims/v20201229/api.json +55 -55
- tccli/services/iotexplorer/iotexplorer_client.py +53 -0
- tccli/services/iotexplorer/v20190423/api.json +89 -0
- tccli/services/iotexplorer/v20190423/examples.json +8 -0
- tccli/services/iss/v20230517/api.json +36 -0
- tccli/services/lke/lke_client.py +8 -114
- tccli/services/lke/v20231130/api.json +2 -166
- tccli/services/lke/v20231130/examples.json +0 -16
- tccli/services/tdid/v20210519/api.json +2 -2
- tccli/services/teo/v20220901/api.json +14 -14
- tccli/services/tione/v20211111/api.json +28 -0
- {tccli-3.0.1097.1.dist-info → tccli-3.0.1098.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1097.1.dist-info → tccli-3.0.1098.1.dist-info}/RECORD +32 -28
- {tccli-3.0.1097.1.dist-info → tccli-3.0.1098.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1097.1.dist-info → tccli-3.0.1098.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1097.1.dist-info → tccli-3.0.1098.1.dist-info}/license_files/LICENSE +0 -0
@@ -364,6 +364,13 @@
|
|
364
364
|
"output": "DescribeDeviceFirmWareResponse",
|
365
365
|
"status": "online"
|
366
366
|
},
|
367
|
+
"DescribeDeviceFirmwares": {
|
368
|
+
"document": "获取设备当前固件信息",
|
369
|
+
"input": "DescribeDeviceFirmwaresRequest",
|
370
|
+
"name": "获取设备当前固件信息",
|
371
|
+
"output": "DescribeDeviceFirmwaresResponse",
|
372
|
+
"status": "online"
|
373
|
+
},
|
367
374
|
"DescribeDeviceLocationSolve": {
|
368
375
|
"document": "获取实时位置解析",
|
369
376
|
"input": "DescribeDeviceLocationSolveRequest",
|
@@ -4731,6 +4738,52 @@
|
|
4731
4738
|
],
|
4732
4739
|
"type": "object"
|
4733
4740
|
},
|
4741
|
+
"DescribeDeviceFirmwaresRequest": {
|
4742
|
+
"document": "DescribeDeviceFirmwares请求参数结构体",
|
4743
|
+
"members": [
|
4744
|
+
{
|
4745
|
+
"disabled": false,
|
4746
|
+
"document": "产品ID",
|
4747
|
+
"example": "DMGFE2GWCG",
|
4748
|
+
"member": "string",
|
4749
|
+
"name": "ProductId",
|
4750
|
+
"required": true,
|
4751
|
+
"type": "string"
|
4752
|
+
},
|
4753
|
+
{
|
4754
|
+
"disabled": false,
|
4755
|
+
"document": "设备名",
|
4756
|
+
"example": "dev01",
|
4757
|
+
"member": "string",
|
4758
|
+
"name": "DeviceName",
|
4759
|
+
"required": true,
|
4760
|
+
"type": "string"
|
4761
|
+
}
|
4762
|
+
],
|
4763
|
+
"type": "object"
|
4764
|
+
},
|
4765
|
+
"DescribeDeviceFirmwaresResponse": {
|
4766
|
+
"document": "DescribeDeviceFirmwares返回参数结构体",
|
4767
|
+
"members": [
|
4768
|
+
{
|
4769
|
+
"disabled": false,
|
4770
|
+
"document": "固件信息列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
4771
|
+
"example": "无",
|
4772
|
+
"member": "DeviceFirmwareInfo",
|
4773
|
+
"name": "Firmwares",
|
4774
|
+
"required": true,
|
4775
|
+
"type": "list",
|
4776
|
+
"value_allowed_null": true
|
4777
|
+
},
|
4778
|
+
{
|
4779
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4780
|
+
"member": "string",
|
4781
|
+
"name": "RequestId",
|
4782
|
+
"type": "string"
|
4783
|
+
}
|
4784
|
+
],
|
4785
|
+
"type": "object"
|
4786
|
+
},
|
4734
4787
|
"DescribeDeviceLocationSolveRequest": {
|
4735
4788
|
"document": "DescribeDeviceLocationSolve请求参数结构体",
|
4736
4789
|
"members": [
|
@@ -6286,6 +6339,42 @@
|
|
6286
6339
|
],
|
6287
6340
|
"usage": "out"
|
6288
6341
|
},
|
6342
|
+
"DeviceFirmwareInfo": {
|
6343
|
+
"document": "设备固件信息",
|
6344
|
+
"members": [
|
6345
|
+
{
|
6346
|
+
"disabled": false,
|
6347
|
+
"document": "固件类型",
|
6348
|
+
"example": "mcu",
|
6349
|
+
"member": "string",
|
6350
|
+
"name": "FwType",
|
6351
|
+
"required": true,
|
6352
|
+
"type": "string",
|
6353
|
+
"value_allowed_null": false
|
6354
|
+
},
|
6355
|
+
{
|
6356
|
+
"disabled": false,
|
6357
|
+
"document": "固件版本",
|
6358
|
+
"example": "1.0",
|
6359
|
+
"member": "string",
|
6360
|
+
"name": "Version",
|
6361
|
+
"required": true,
|
6362
|
+
"type": "string",
|
6363
|
+
"value_allowed_null": false
|
6364
|
+
},
|
6365
|
+
{
|
6366
|
+
"disabled": false,
|
6367
|
+
"document": "最后更新时间",
|
6368
|
+
"example": "1653893719",
|
6369
|
+
"member": "uint64",
|
6370
|
+
"name": "UpdateTime",
|
6371
|
+
"required": true,
|
6372
|
+
"type": "int",
|
6373
|
+
"value_allowed_null": false
|
6374
|
+
}
|
6375
|
+
],
|
6376
|
+
"usage": "out"
|
6377
|
+
},
|
6289
6378
|
"DeviceInfo": {
|
6290
6379
|
"document": "设备详细信息",
|
6291
6380
|
"members": [
|
@@ -458,6 +458,14 @@
|
|
458
458
|
"title": "获取设备固件信息"
|
459
459
|
}
|
460
460
|
],
|
461
|
+
"DescribeDeviceFirmwares": [
|
462
|
+
{
|
463
|
+
"document": "",
|
464
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDeviceFirmwares\n<公共请求参数>\n\n{\n \"ProductId\": \"xx\",\n \"DeviceName\": \"xx\"\n}",
|
465
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"ef9ec631-7337-481b-a6c3-59a34b5f8502\",\n \"Firmwares\": [\n {\n \"UpdateTime\": 1653893719,\n \"FwType\": \"mcu\",\n \"Version\": \"mm_3.0\"\n },\n {\n \"UpdateTime\": 1653893651,\n \"FwType\": \"module\",\n \"Version\": \"module_v1.0.3\"\n }\n ]\n }\n}",
|
466
|
+
"title": "获取设备固件信息"
|
467
|
+
}
|
468
|
+
],
|
461
469
|
"DescribeDeviceLocationSolve": [
|
462
470
|
{
|
463
471
|
"document": "获取实时位置解析",
|
@@ -2803,6 +2803,15 @@
|
|
2803
2803
|
"name": "Resolution",
|
2804
2804
|
"required": false,
|
2805
2805
|
"type": "string"
|
2806
|
+
},
|
2807
|
+
{
|
2808
|
+
"disabled": false,
|
2809
|
+
"document": "是否内网",
|
2810
|
+
"example": "true",
|
2811
|
+
"member": "bool",
|
2812
|
+
"name": "IsInternal",
|
2813
|
+
"required": false,
|
2814
|
+
"type": "bool"
|
2806
2815
|
}
|
2807
2816
|
],
|
2808
2817
|
"type": "object"
|
@@ -5093,6 +5102,15 @@
|
|
5093
5102
|
"name": "EndTime",
|
5094
5103
|
"required": true,
|
5095
5104
|
"type": "int"
|
5105
|
+
},
|
5106
|
+
{
|
5107
|
+
"disabled": false,
|
5108
|
+
"document": "是否获取内网地址",
|
5109
|
+
"example": "false",
|
5110
|
+
"member": "bool",
|
5111
|
+
"name": "IsInternal",
|
5112
|
+
"required": false,
|
5113
|
+
"type": "bool"
|
5096
5114
|
}
|
5097
5115
|
],
|
5098
5116
|
"type": "object"
|
@@ -5687,6 +5705,15 @@
|
|
5687
5705
|
"name": "IsRespActualTime",
|
5688
5706
|
"required": false,
|
5689
5707
|
"type": "bool"
|
5708
|
+
},
|
5709
|
+
{
|
5710
|
+
"disabled": false,
|
5711
|
+
"document": "是否返回内网下载URL,默认是false,返回公网下载URL,true则返回内网下载URL",
|
5712
|
+
"example": "false",
|
5713
|
+
"member": "bool",
|
5714
|
+
"name": "IsInternal",
|
5715
|
+
"required": false,
|
5716
|
+
"type": "bool"
|
5690
5717
|
}
|
5691
5718
|
],
|
5692
5719
|
"type": "object"
|
@@ -7845,6 +7872,15 @@
|
|
7845
7872
|
"name": "Resolution",
|
7846
7873
|
"required": false,
|
7847
7874
|
"type": "string"
|
7875
|
+
},
|
7876
|
+
{
|
7877
|
+
"disabled": false,
|
7878
|
+
"document": "是否内网",
|
7879
|
+
"example": "true",
|
7880
|
+
"member": "bool",
|
7881
|
+
"name": "IsInternal",
|
7882
|
+
"required": false,
|
7883
|
+
"type": "bool"
|
7848
7884
|
}
|
7849
7885
|
],
|
7850
7886
|
"type": "object"
|
tccli/services/lke/lke_client.py
CHANGED
@@ -2357,58 +2357,6 @@ def doCreateQA(args, parsed_globals):
|
|
2357
2357
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2358
2358
|
|
2359
2359
|
|
2360
|
-
def doExportUnsatisfiedReply(args, parsed_globals):
|
2361
|
-
g_param = parse_global_arg(parsed_globals)
|
2362
|
-
|
2363
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2364
|
-
cred = credential.CVMRoleCredential()
|
2365
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2366
|
-
cred = credential.STSAssumeRoleCredential(
|
2367
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2368
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2369
|
-
)
|
2370
|
-
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):
|
2371
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2372
|
-
else:
|
2373
|
-
cred = credential.Credential(
|
2374
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2375
|
-
)
|
2376
|
-
http_profile = HttpProfile(
|
2377
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2378
|
-
reqMethod="POST",
|
2379
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
2380
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2381
|
-
)
|
2382
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2383
|
-
if g_param[OptionsDefine.Language]:
|
2384
|
-
profile.language = g_param[OptionsDefine.Language]
|
2385
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2386
|
-
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
2387
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
2388
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2389
|
-
model = models.ExportUnsatisfiedReplyRequest()
|
2390
|
-
model.from_json_string(json.dumps(args))
|
2391
|
-
start_time = time.time()
|
2392
|
-
while True:
|
2393
|
-
rsp = client.ExportUnsatisfiedReply(model)
|
2394
|
-
result = rsp.to_json_string()
|
2395
|
-
try:
|
2396
|
-
json_obj = json.loads(result)
|
2397
|
-
except TypeError as e:
|
2398
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2399
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2400
|
-
break
|
2401
|
-
cur_time = time.time()
|
2402
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2403
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2404
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2405
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2406
|
-
else:
|
2407
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2408
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2409
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2410
|
-
|
2411
|
-
|
2412
2360
|
def doResetSession(args, parsed_globals):
|
2413
2361
|
g_param = parse_global_arg(parsed_globals)
|
2414
2362
|
|
@@ -3397,58 +3345,6 @@ def doGetTaskStatus(args, parsed_globals):
|
|
3397
3345
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3398
3346
|
|
3399
3347
|
|
3400
|
-
def doDescribeRefer(args, parsed_globals):
|
3401
|
-
g_param = parse_global_arg(parsed_globals)
|
3402
|
-
|
3403
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3404
|
-
cred = credential.CVMRoleCredential()
|
3405
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3406
|
-
cred = credential.STSAssumeRoleCredential(
|
3407
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3408
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3409
|
-
)
|
3410
|
-
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):
|
3411
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3412
|
-
else:
|
3413
|
-
cred = credential.Credential(
|
3414
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3415
|
-
)
|
3416
|
-
http_profile = HttpProfile(
|
3417
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3418
|
-
reqMethod="POST",
|
3419
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
3420
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3421
|
-
)
|
3422
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3423
|
-
if g_param[OptionsDefine.Language]:
|
3424
|
-
profile.language = g_param[OptionsDefine.Language]
|
3425
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3426
|
-
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3427
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
3428
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3429
|
-
model = models.DescribeReferRequest()
|
3430
|
-
model.from_json_string(json.dumps(args))
|
3431
|
-
start_time = time.time()
|
3432
|
-
while True:
|
3433
|
-
rsp = client.DescribeRefer(model)
|
3434
|
-
result = rsp.to_json_string()
|
3435
|
-
try:
|
3436
|
-
json_obj = json.loads(result)
|
3437
|
-
except TypeError as e:
|
3438
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3439
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3440
|
-
break
|
3441
|
-
cur_time = time.time()
|
3442
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3443
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3444
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3445
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3446
|
-
else:
|
3447
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3448
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3449
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3450
|
-
|
3451
|
-
|
3452
3348
|
def doDeleteQACate(args, parsed_globals):
|
3453
3349
|
g_param = parse_global_arg(parsed_globals)
|
3454
3350
|
|
@@ -3605,7 +3501,7 @@ def doRetryRelease(args, parsed_globals):
|
|
3605
3501
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3606
3502
|
|
3607
3503
|
|
3608
|
-
def
|
3504
|
+
def doExportUnsatisfiedReply(args, parsed_globals):
|
3609
3505
|
g_param = parse_global_arg(parsed_globals)
|
3610
3506
|
|
3611
3507
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3634,11 +3530,11 @@ def doQueryParseDocResult(args, parsed_globals):
|
|
3634
3530
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3635
3531
|
client._sdkVersion += ("_CLI_" + __version__)
|
3636
3532
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3637
|
-
model = models.
|
3533
|
+
model = models.ExportUnsatisfiedReplyRequest()
|
3638
3534
|
model.from_json_string(json.dumps(args))
|
3639
3535
|
start_time = time.time()
|
3640
3536
|
while True:
|
3641
|
-
rsp = client.
|
3537
|
+
rsp = client.ExportUnsatisfiedReply(model)
|
3642
3538
|
result = rsp.to_json_string()
|
3643
3539
|
try:
|
3644
3540
|
json_obj = json.loads(result)
|
@@ -3813,7 +3709,7 @@ def doVerifyQA(args, parsed_globals):
|
|
3813
3709
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3814
3710
|
|
3815
3711
|
|
3816
|
-
def
|
3712
|
+
def doDescribeRefer(args, parsed_globals):
|
3817
3713
|
g_param = parse_global_arg(parsed_globals)
|
3818
3714
|
|
3819
3715
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3842,11 +3738,11 @@ def doParseDoc(args, parsed_globals):
|
|
3842
3738
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3843
3739
|
client._sdkVersion += ("_CLI_" + __version__)
|
3844
3740
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3845
|
-
model = models.
|
3741
|
+
model = models.DescribeReferRequest()
|
3846
3742
|
model.from_json_string(json.dumps(args))
|
3847
3743
|
start_time = time.time()
|
3848
3744
|
while True:
|
3849
|
-
rsp = client.
|
3745
|
+
rsp = client.DescribeRefer(model)
|
3850
3746
|
result = rsp.to_json_string()
|
3851
3747
|
try:
|
3852
3748
|
json_obj = json.loads(result)
|
@@ -3973,7 +3869,6 @@ ACTION_MAP = {
|
|
3973
3869
|
"RetryDocParse": doRetryDocParse,
|
3974
3870
|
"CreateCorp": doCreateCorp,
|
3975
3871
|
"CreateQA": doCreateQA,
|
3976
|
-
"ExportUnsatisfiedReply": doExportUnsatisfiedReply,
|
3977
3872
|
"ResetSession": doResetSession,
|
3978
3873
|
"ListQACate": doListQACate,
|
3979
3874
|
"GetAppKnowledgeCount": doGetAppKnowledgeCount,
|
@@ -3993,15 +3888,14 @@ ACTION_MAP = {
|
|
3993
3888
|
"ListRejectedQuestion": doListRejectedQuestion,
|
3994
3889
|
"ListReleaseConfigPreview": doListReleaseConfigPreview,
|
3995
3890
|
"GetTaskStatus": doGetTaskStatus,
|
3996
|
-
"DescribeRefer": doDescribeRefer,
|
3997
3891
|
"DeleteQACate": doDeleteQACate,
|
3998
3892
|
"CreateQACate": doCreateQACate,
|
3999
3893
|
"RetryRelease": doRetryRelease,
|
4000
|
-
"
|
3894
|
+
"ExportUnsatisfiedReply": doExportUnsatisfiedReply,
|
4001
3895
|
"StopDocParse": doStopDocParse,
|
4002
3896
|
"ExportAttributeLabel": doExportAttributeLabel,
|
4003
3897
|
"VerifyQA": doVerifyQA,
|
4004
|
-
"
|
3898
|
+
"DescribeRefer": doDescribeRefer,
|
4005
3899
|
"ListDoc": doListDoc,
|
4006
3900
|
|
4007
3901
|
}
|
@@ -441,20 +441,6 @@
|
|
441
441
|
"output": "ModifyRejectedQuestionResponse",
|
442
442
|
"status": "online"
|
443
443
|
},
|
444
|
-
"ParseDoc": {
|
445
|
-
"document": "解析拆分文件",
|
446
|
-
"input": "ParseDocRequest",
|
447
|
-
"name": "文档解析",
|
448
|
-
"output": "ParseDocResponse",
|
449
|
-
"status": "online"
|
450
|
-
},
|
451
|
-
"QueryParseDocResult": {
|
452
|
-
"document": "查询文件解析结果",
|
453
|
-
"input": "QueryParseDocResultRequest",
|
454
|
-
"name": "查询文档解析结果",
|
455
|
-
"output": "QueryParseDocResultResponse",
|
456
|
-
"status": "online"
|
457
|
-
},
|
458
444
|
"QueryRewrite": {
|
459
445
|
"document": "多轮改写\n本接口有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。",
|
460
446
|
"input": "QueryRewriteRequest",
|
@@ -3818,7 +3804,7 @@
|
|
3818
3804
|
{
|
3819
3805
|
"disabled": false,
|
3820
3806
|
"document": "模型名称",
|
3821
|
-
"example": "
|
3807
|
+
"example": "lke-text-embedding-v1",
|
3822
3808
|
"member": "string",
|
3823
3809
|
"name": "Model",
|
3824
3810
|
"required": true,
|
@@ -7332,79 +7318,6 @@
|
|
7332
7318
|
],
|
7333
7319
|
"usage": "both"
|
7334
7320
|
},
|
7335
|
-
"ParseDocRequest": {
|
7336
|
-
"document": "ParseDoc请求参数结构体",
|
7337
|
-
"members": [
|
7338
|
-
{
|
7339
|
-
"disabled": false,
|
7340
|
-
"document": "文件名称(需要包括文件后缀, 最大长度1024字节)",
|
7341
|
-
"example": "产品说明.docx",
|
7342
|
-
"member": "string",
|
7343
|
-
"name": "Name",
|
7344
|
-
"required": true,
|
7345
|
-
"type": "string"
|
7346
|
-
},
|
7347
|
-
{
|
7348
|
-
"disabled": false,
|
7349
|
-
"document": "文件下载链接 (支持的文件类型: docx, txt, markdown, pdf)",
|
7350
|
-
"example": "https://file.download.com/产品说明.docx",
|
7351
|
-
"member": "string",
|
7352
|
-
"name": "Url",
|
7353
|
-
"required": true,
|
7354
|
-
"type": "string"
|
7355
|
-
},
|
7356
|
-
{
|
7357
|
-
"disabled": false,
|
7358
|
-
"document": "任务ID, 用于幂等去重, 业务自行定义(最大长度64字节)",
|
7359
|
-
"example": "zWSLmu",
|
7360
|
-
"member": "string",
|
7361
|
-
"name": "TaskId",
|
7362
|
-
"required": true,
|
7363
|
-
"type": "string"
|
7364
|
-
},
|
7365
|
-
{
|
7366
|
-
"disabled": false,
|
7367
|
-
"document": "切分策略",
|
7368
|
-
"example": "default",
|
7369
|
-
"member": "string",
|
7370
|
-
"name": "Policy",
|
7371
|
-
"required": false,
|
7372
|
-
"type": "string"
|
7373
|
-
},
|
7374
|
-
{
|
7375
|
-
"disabled": true,
|
7376
|
-
"document": "默认值: parse",
|
7377
|
-
"example": "parse: 解析",
|
7378
|
-
"member": "string",
|
7379
|
-
"name": "Operate",
|
7380
|
-
"required": false,
|
7381
|
-
"type": "string"
|
7382
|
-
}
|
7383
|
-
],
|
7384
|
-
"type": "object"
|
7385
|
-
},
|
7386
|
-
"ParseDocResponse": {
|
7387
|
-
"document": "ParseDoc返回参数结构体",
|
7388
|
-
"members": [
|
7389
|
-
{
|
7390
|
-
"disabled": false,
|
7391
|
-
"document": "任务ID",
|
7392
|
-
"example": "ZQXi99vCPEAfrbiF",
|
7393
|
-
"member": "string",
|
7394
|
-
"name": "TaskId",
|
7395
|
-
"output_required": true,
|
7396
|
-
"type": "string",
|
7397
|
-
"value_allowed_null": false
|
7398
|
-
},
|
7399
|
-
{
|
7400
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7401
|
-
"member": "string",
|
7402
|
-
"name": "RequestId",
|
7403
|
-
"type": "string"
|
7404
|
-
}
|
7405
|
-
],
|
7406
|
-
"type": "object"
|
7407
|
-
},
|
7408
7321
|
"QACate": {
|
7409
7322
|
"document": "获取QA分类分组",
|
7410
7323
|
"members": [
|
@@ -7637,83 +7550,6 @@
|
|
7637
7550
|
],
|
7638
7551
|
"usage": "in"
|
7639
7552
|
},
|
7640
|
-
"QueryParseDocResultRequest": {
|
7641
|
-
"document": "QueryParseDocResult请求参数结构体",
|
7642
|
-
"members": [
|
7643
|
-
{
|
7644
|
-
"disabled": false,
|
7645
|
-
"document": "任务ID",
|
7646
|
-
"example": "ZQXi99vCPEAfrbiF",
|
7647
|
-
"member": "string",
|
7648
|
-
"name": "TaskId",
|
7649
|
-
"required": true,
|
7650
|
-
"type": "string"
|
7651
|
-
}
|
7652
|
-
],
|
7653
|
-
"type": "object"
|
7654
|
-
},
|
7655
|
-
"QueryParseDocResultResponse": {
|
7656
|
-
"document": "QueryParseDocResult返回参数结构体",
|
7657
|
-
"members": [
|
7658
|
-
{
|
7659
|
-
"disabled": false,
|
7660
|
-
"document": "等待 / 执行中 / 成功 / 失败",
|
7661
|
-
"example": "waiting / running / success / fail",
|
7662
|
-
"member": "string",
|
7663
|
-
"name": "Status",
|
7664
|
-
"output_required": true,
|
7665
|
-
"type": "string",
|
7666
|
-
"value_allowed_null": false
|
7667
|
-
},
|
7668
|
-
{
|
7669
|
-
"disabled": false,
|
7670
|
-
"document": "解析后的文件内容",
|
7671
|
-
"example": "产品文档.zip",
|
7672
|
-
"member": "string",
|
7673
|
-
"name": "Name",
|
7674
|
-
"output_required": false,
|
7675
|
-
"type": "string",
|
7676
|
-
"value_allowed_null": false
|
7677
|
-
},
|
7678
|
-
{
|
7679
|
-
"disabled": false,
|
7680
|
-
"document": "文件下载地址",
|
7681
|
-
"example": "https://file.download.com/产品文档.zip",
|
7682
|
-
"member": "string",
|
7683
|
-
"name": "Url",
|
7684
|
-
"output_required": false,
|
7685
|
-
"type": "string",
|
7686
|
-
"value_allowed_null": false
|
7687
|
-
},
|
7688
|
-
{
|
7689
|
-
"disabled": false,
|
7690
|
-
"document": "解析失败原因",
|
7691
|
-
"example": "convert task fail",
|
7692
|
-
"member": "string",
|
7693
|
-
"name": "Reason",
|
7694
|
-
"output_required": false,
|
7695
|
-
"type": "string",
|
7696
|
-
"value_allowed_null": false
|
7697
|
-
},
|
7698
|
-
{
|
7699
|
-
"disabled": false,
|
7700
|
-
"document": "消耗量,输出页数",
|
7701
|
-
"example": "{\"TotalPages\":10}",
|
7702
|
-
"member": "Usage",
|
7703
|
-
"name": "Usage",
|
7704
|
-
"output_required": false,
|
7705
|
-
"type": "object",
|
7706
|
-
"value_allowed_null": false
|
7707
|
-
},
|
7708
|
-
{
|
7709
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7710
|
-
"member": "string",
|
7711
|
-
"name": "RequestId",
|
7712
|
-
"type": "string"
|
7713
|
-
}
|
7714
|
-
],
|
7715
|
-
"type": "object"
|
7716
|
-
},
|
7717
7553
|
"QueryRewriteRequest": {
|
7718
7554
|
"document": "QueryRewrite请求参数结构体",
|
7719
7555
|
"members": [
|
@@ -7738,7 +7574,7 @@
|
|
7738
7574
|
{
|
7739
7575
|
"disabled": false,
|
7740
7576
|
"document": "模型名称",
|
7741
|
-
"example": "
|
7577
|
+
"example": "lke-query-rewrite-base",
|
7742
7578
|
"member": "string",
|
7743
7579
|
"name": "Model",
|
7744
7580
|
"required": false,
|
@@ -516,22 +516,6 @@
|
|
516
516
|
"title": "修改拒答问题"
|
517
517
|
}
|
518
518
|
],
|
519
|
-
"ParseDoc": [
|
520
|
-
{
|
521
|
-
"document": "文档解析",
|
522
|
-
"input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ParseDoc\n<公共请求参数>\n\n{\n \"Name\": \"微信城市服务CityID说明文档.docx\",\n \"Url\": \"https://wximg.qq.com/cityservices/doc/res/cityservices_cityids.docx\",\n \"TaskId\": \"D78iBBGi\",\n \"Policy\": \"default\",\n \"Operate\": \"split\"\n}",
|
523
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"8ea5a507-108f-4b05-add4-b07de8580590\",\n \"TaskId\": \"D78iBBGi\"\n }\n}",
|
524
|
-
"title": "文档解析"
|
525
|
-
}
|
526
|
-
],
|
527
|
-
"QueryParseDocResult": [
|
528
|
-
{
|
529
|
-
"document": "查询文档解析结果",
|
530
|
-
"input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryParseDocResult\n<公共请求参数>\n\n{\n \"TaskId\": \"D78iBBGi\"\n}",
|
531
|
-
"output": "{\n \"Response\": {\n \"Name\": \"D78iBBGi.zip\",\n \"Reason\": \"\",\n \"RequestId\": \"acd2b5f3-350f-4171-92be-e1c70f3e73d7\",\n \"Status\": \"success\",\n \"Url\": \"https://qidian-qbot-test-1251316161.cos.ap-guangzhou.myqcloud.com/%2Fatomic/2/D78iBBGi.zip?q-sign-algorithm=sha1&q-ak=xxxxxxxxx&q-sign-time=1706792626%3B1706796226&q-key-time=1706792626%3B1706796226&q-header-list=host&q-url-param-list=&q-signature=e3d46a97846b256ff89f3698*******************\",\n \"Usage\": {\n \"TotalPages\": 1\n }\n }\n}",
|
532
|
-
"title": "查询文档解析结果"
|
533
|
-
}
|
534
|
-
],
|
535
519
|
"QueryRewrite": [
|
536
520
|
{
|
537
521
|
"document": "多轮改写",
|