tccli 3.0.1096.1__py2.py3-none-any.whl → 3.0.1098.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/examples/aiart/v20221229/QueryDrawPortraitJob.md +30 -0
- tccli/examples/aiart/v20221229/QueryTrainPortraitModelJob.md +24 -0
- tccli/examples/aiart/v20221229/SubmitDrawPortraitJob.md +23 -0
- tccli/examples/aiart/v20221229/SubmitTrainPortraitModelJob.md +20 -0
- tccli/examples/aiart/v20221229/UploadTrainPortraitImages.md +25 -0
- 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/ccc/v20200210/ModifyStaffPassword.md +22 -0
- tccli/examples/csip/v20221121/DescribeAlertList.md +176 -0
- tccli/examples/cynosdb/v20190107/ModifyInstanceUpgradeLimitDays.md +22 -0
- tccli/examples/dcdb/v20180411/DescribeDCDBInstances.md +4 -3
- tccli/examples/dlc/v20210125/DescribeNotebookSessionStatementSqlResult.md +3 -1
- 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/examples/lke/v20231130/GetEmbedding.md +4 -1
- tccli/examples/lke/v20231130/QueryParseDocResult.md +4 -1
- tccli/examples/lke/v20231130/QueryRewrite.md +6 -1
- tccli/examples/mariadb/v20170312/DescribeDBInstanceDetail.md +2 -1
- tccli/examples/mariadb/v20170312/DescribeDBInstances.md +4 -3
- tccli/examples/tdmq/v20200217/DescribeRabbitMQQueueDetail.md +25 -22
- tccli/examples/vpc/v20170312/DisableVpnGatewaySslClientCert.md +2 -2
- tccli/services/aiart/aiart_client.py +269 -4
- tccli/services/aiart/v20221229/api.json +404 -0
- tccli/services/aiart/v20221229/examples.json +40 -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/billing/v20180709/api.json +30 -0
- tccli/services/bma/v20221115/api.json +4 -6
- tccli/services/ccc/ccc_client.py +53 -0
- tccli/services/ccc/v20200210/api.json +57 -5
- tccli/services/ccc/v20200210/examples.json +8 -0
- tccli/services/cdb/v20170320/api.json +9 -0
- tccli/services/cdn/v20180606/api.json +1 -1
- tccli/services/cloudstudio/v20230508/api.json +1 -1
- tccli/services/csip/csip_client.py +53 -0
- tccli/services/csip/v20221121/api.json +1468 -7
- tccli/services/csip/v20221121/examples.json +8 -0
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +54 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/dcdb/v20180411/api.json +45 -3
- tccli/services/dcdb/v20180411/examples.json +1 -1
- tccli/services/dlc/v20210125/api.json +30 -0
- tccli/services/dlc/v20210125/examples.json +1 -1
- 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/hunyuan/v20230901/api.json +14 -14
- tccli/services/ims/v20201229/api.json +55 -55
- tccli/services/iotexplorer/iotexplorer_client.py +53 -0
- tccli/services/iotexplorer/v20190423/api.json +90 -1
- tccli/services/iotexplorer/v20190423/examples.json +8 -0
- tccli/services/iss/v20230517/api.json +36 -0
- tccli/services/lighthouse/v20200324/api.json +2 -2
- tccli/services/live/v20180801/api.json +7 -7
- tccli/services/lke/lke_client.py +8 -114
- tccli/services/lke/v20231130/api.json +70 -158
- tccli/services/lke/v20231130/examples.json +2 -18
- tccli/services/mariadb/v20170312/api.json +45 -2
- tccli/services/mariadb/v20170312/examples.json +2 -2
- tccli/services/ocr/v20181119/api.json +1 -1
- tccli/services/ssl/v20191205/api.json +50 -9
- tccli/services/tdid/v20210519/api.json +2 -2
- tccli/services/tdmq/v20200217/api.json +64 -25
- tccli/services/tdmq/v20200217/examples.json +2 -2
- tccli/services/teo/v20220901/api.json +14 -14
- tccli/services/tione/v20211111/api.json +28 -0
- tccli/services/trtc/v20190722/api.json +34 -15
- tccli/services/vpc/v20170312/api.json +20 -5
- tccli/services/vpc/v20170312/examples.json +2 -2
- tccli/services/weilingwith/v20230427/api.json +11 -11
- {tccli-3.0.1096.1.dist-info → tccli-3.0.1098.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1096.1.dist-info → tccli-3.0.1098.1.dist-info}/RECORD +81 -69
- {tccli-3.0.1096.1.dist-info → tccli-3.0.1098.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1096.1.dist-info → tccli-3.0.1098.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1096.1.dist-info → tccli-3.0.1098.1.dist-info}/license_files/LICENSE +0 -0
@@ -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"
|
@@ -561,7 +561,7 @@
|
|
561
561
|
"status": "online"
|
562
562
|
},
|
563
563
|
"ModifyFirewallRuleDescription": {
|
564
|
-
"document": "本接口(ModifyFirewallRuleDescription)用于修改单条防火墙规则描述。\n\n* FirewallVersion 用于指定要操作的防火墙的版本。传入 FirewallVersion 版本号若不等于当前防火墙的最新版本,将返回失败;若不传 FirewallVersion 则直接修改防火墙规则备注。\n\n在 FirewallRule 参数中:\n* Protocol 字段支持输入 TCP,UDP,ICMP,ALL。\n* Port 字段允许输入 ALL,或者一个单独的端口号,或者用逗号分隔的离散端口号,或者用减号分隔的两个端口号代表的端口范围。当 Port 为范围时,减号分隔的第一个端口号小于第二个端口号。当 Protocol 字段不是 TCP 或 UDP 时,Port 字段只能为空或 ALL。Port 字段长度不得超过 64。\n* CidrBlock 字段允许输入符合 cidr 格式标准的任意字符串。租户之间网络隔离规则优先于防火墙中的内网规则。\n* Action 字段只允许输入 ACCEPT 或 DROP。\n* FirewallRuleDescription 字段长度不得超过 64。",
|
564
|
+
"document": "本接口(ModifyFirewallRuleDescription)用于修改单条防火墙规则描述。\n\n* FirewallVersion 用于指定要操作的防火墙的版本。传入 FirewallVersion 版本号若不等于当前防火墙的最新版本,将返回失败;若不传 FirewallVersion 则直接修改防火墙规则备注。\n\n用FirewallRule参数来指定要修改的防火墙规则,使用其中的Protocol, Port, CidrBlock,Action字段来匹配要修改的防火墙规则。\n\n在 FirewallRule 参数中:\n* Protocol 字段支持输入 TCP,UDP,ICMP,ALL。\n* Port 字段允许输入 ALL,或者一个单独的端口号,或者用逗号分隔的离散端口号,或者用减号分隔的两个端口号代表的端口范围。当 Port 为范围时,减号分隔的第一个端口号小于第二个端口号。当 Protocol 字段不是 TCP 或 UDP 时,Port 字段只能为空或 ALL。Port 字段长度不得超过 64。\n* CidrBlock 字段允许输入符合 cidr 格式标准的任意字符串。租户之间网络隔离规则优先于防火墙中的内网规则。\n* Action 字段只允许输入 ACCEPT 或 DROP。\n* FirewallRuleDescription 字段长度不得超过 64。",
|
565
565
|
"input": "ModifyFirewallRuleDescriptionRequest",
|
566
566
|
"name": "修改防火墙规则描述",
|
567
567
|
"output": "ModifyFirewallRuleDescriptionResponse",
|
@@ -6072,7 +6072,7 @@
|
|
6072
6072
|
{
|
6073
6073
|
"disabled": false,
|
6074
6074
|
"document": "防火墙规则描述。",
|
6075
|
-
"example": "
|
6075
|
+
"example": "firewallrule description",
|
6076
6076
|
"member": "string",
|
6077
6077
|
"name": "FirewallRuleDescription",
|
6078
6078
|
"output_required": true,
|
@@ -162,7 +162,7 @@
|
|
162
162
|
"status": "online"
|
163
163
|
},
|
164
164
|
"CreateRecordTask": {
|
165
|
-
"document": "创建一个在指定时间启动、结束的录制任务,并使用指定录制模板ID对应的配置进行录制。\n- 使用前提\n1. 录制文件存放于点播平台,所以用户如需使用录制功能,需首先自行开通点播服务。\n2. 录制文件存放后相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,具体请参考
|
165
|
+
"document": "创建一个在指定时间启动、结束的录制任务,并使用指定录制模板ID对应的配置进行录制。\n- 使用前提\n1. 录制文件存放于点播平台,所以用户如需使用录制功能,需首先自行开通点播服务。\n2. 录制文件存放后相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,具体请参考[对应文档](https://cloud.tencent.com/document/product/266/2837)。\n- 注意事项\n1. 断流会结束当前录制并生成录制文件。在结束时间到达之前任务仍然有效,期间只要正常推流都会正常录制,与是否多次推、断流无关。\n2. 使用上避免创建时间段相互重叠的录制任务。若同一条流当前存在多个时段重叠的任务,为避免重复录制系统将启动最多3个录制任务。\n3. 创建的录制任务记录在平台侧只保留3个月。\n4. 当前录制任务管理API([CreateRecordTask](https://cloud.tencent.com/document/product/267/45983)/[StopRecordTask](https://cloud.tencent.com/document/product/267/45981)/[DeleteRecordTask](https://cloud.tencent.com/document/product/267/45982))与旧API(CreateLiveRecord/StopLiveRecord/DeleteLiveRecord)不兼容,两套接口不能混用。\n5. 避免 创建录制任务 与 推流 操作同时进行,可能导致因录制任务未生效而引起任务延迟启动问题,两者操作间隔建议大于3秒。",
|
166
166
|
"input": "CreateRecordTaskRequest",
|
167
167
|
"name": "创建录制任务(新)",
|
168
168
|
"output": "CreateRecordTaskResponse",
|
@@ -4316,7 +4316,7 @@
|
|
4316
4316
|
},
|
4317
4317
|
{
|
4318
4318
|
"disabled": false,
|
4319
|
-
"document": "录制任务结束时间,Unix时间戳。设置时间必须大于StartTime
|
4319
|
+
"document": "录制任务结束时间,Unix时间戳。设置时间必须大于StartTime及当前时间,且小于当前时间+7天。",
|
4320
4320
|
"example": "1589904000",
|
4321
4321
|
"member": "uint64",
|
4322
4322
|
"name": "EndTime",
|
@@ -4325,7 +4325,7 @@
|
|
4325
4325
|
},
|
4326
4326
|
{
|
4327
4327
|
"disabled": false,
|
4328
|
-
"document": "录制任务开始时间,Unix时间戳。如果不填表示立即启动录制。StartTime
|
4328
|
+
"document": "录制任务开始时间,Unix时间戳。如果不填表示立即启动录制。EndTime - StartTime不能超过24小时。",
|
4329
4329
|
"example": "1589889600",
|
4330
4330
|
"member": "uint64",
|
4331
4331
|
"name": "StartTime",
|
@@ -4371,7 +4371,7 @@
|
|
4371
4371
|
"example": "UpTbk5RSVhRQFkAAfHwQCCjcRD0lRFcZ0xTSlNTQltlRVRLU1JAWW9EUb",
|
4372
4372
|
"member": "string",
|
4373
4373
|
"name": "TaskId",
|
4374
|
-
"
|
4374
|
+
"output_required": true,
|
4375
4375
|
"type": "string",
|
4376
4376
|
"value_allowed_null": false
|
4377
4377
|
},
|
@@ -4416,7 +4416,7 @@
|
|
4416
4416
|
},
|
4417
4417
|
{
|
4418
4418
|
"disabled": false,
|
4419
|
-
"document": "截图任务结束时间,Unix时间戳。设置时间必须大于StartTime
|
4419
|
+
"document": "截图任务结束时间,Unix时间戳。设置时间必须大于StartTime及当前时间,且小于当前时间+7天。",
|
4420
4420
|
"example": "1589904000",
|
4421
4421
|
"member": "uint64",
|
4422
4422
|
"name": "EndTime",
|
@@ -4434,7 +4434,7 @@
|
|
4434
4434
|
},
|
4435
4435
|
{
|
4436
4436
|
"disabled": false,
|
4437
|
-
"document": "截图任务开始时间,Unix时间戳。如果不填表示立即启动截图。StartTime
|
4437
|
+
"document": "截图任务开始时间,Unix时间戳。如果不填表示立即启动截图。EndTime - StartTime不能超过24小时。",
|
4438
4438
|
"example": "1589889600",
|
4439
4439
|
"member": "uint64",
|
4440
4440
|
"name": "StartTime",
|
@@ -4471,7 +4471,7 @@
|
|
4471
4471
|
"example": "UpTbk5RSVhRQFkAAfHwQCCjcRD0lRFcZ0xTSlNTQltlRVRLU1JAWW9EUb",
|
4472
4472
|
"member": "string",
|
4473
4473
|
"name": "TaskId",
|
4474
|
-
"
|
4474
|
+
"output_required": true,
|
4475
4475
|
"type": "string",
|
4476
4476
|
"value_allowed_null": false
|
4477
4477
|
},
|
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
|
}
|
@@ -232,7 +232,7 @@
|
|
232
232
|
"status": "online"
|
233
233
|
},
|
234
234
|
"GetEmbedding": {
|
235
|
-
"document": "
|
235
|
+
"document": "获取特征向量\n本接口有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。",
|
236
236
|
"input": "GetEmbeddingRequest",
|
237
237
|
"name": "获取特征向量",
|
238
238
|
"output": "GetEmbeddingResponse",
|
@@ -441,22 +441,8 @@
|
|
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
|
-
"document": "
|
445
|
+
"document": "多轮改写\n本接口有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。",
|
460
446
|
"input": "QueryRewriteRequest",
|
461
447
|
"name": "多轮改写",
|
462
448
|
"output": "QueryRewriteResponse",
|
@@ -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,
|
@@ -3858,6 +3844,16 @@
|
|
3858
3844
|
"type": "list",
|
3859
3845
|
"value_allowed_null": false
|
3860
3846
|
},
|
3847
|
+
{
|
3848
|
+
"disabled": false,
|
3849
|
+
"document": "消耗量,返回TotalToken",
|
3850
|
+
"example": "{\"TotalTokens\":3}",
|
3851
|
+
"member": "Usage",
|
3852
|
+
"name": "Usage",
|
3853
|
+
"output_required": false,
|
3854
|
+
"type": "object",
|
3855
|
+
"value_allowed_null": false
|
3856
|
+
},
|
3861
3857
|
{
|
3862
3858
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3863
3859
|
"member": "string",
|
@@ -7322,79 +7318,6 @@
|
|
7322
7318
|
],
|
7323
7319
|
"usage": "both"
|
7324
7320
|
},
|
7325
|
-
"ParseDocRequest": {
|
7326
|
-
"document": "ParseDoc请求参数结构体",
|
7327
|
-
"members": [
|
7328
|
-
{
|
7329
|
-
"disabled": false,
|
7330
|
-
"document": "文件名称(需要包括文件后缀, 最大长度1024字节)",
|
7331
|
-
"example": "产品说明.docx",
|
7332
|
-
"member": "string",
|
7333
|
-
"name": "Name",
|
7334
|
-
"required": true,
|
7335
|
-
"type": "string"
|
7336
|
-
},
|
7337
|
-
{
|
7338
|
-
"disabled": false,
|
7339
|
-
"document": "文件下载链接 (支持的文件类型: docx, txt, markdown, pdf)",
|
7340
|
-
"example": "https://file.download.com/产品说明.docx",
|
7341
|
-
"member": "string",
|
7342
|
-
"name": "Url",
|
7343
|
-
"required": true,
|
7344
|
-
"type": "string"
|
7345
|
-
},
|
7346
|
-
{
|
7347
|
-
"disabled": false,
|
7348
|
-
"document": "任务ID, 用于幂等去重, 业务自行定义(最大长度64字节)",
|
7349
|
-
"example": "zWSLmu",
|
7350
|
-
"member": "string",
|
7351
|
-
"name": "TaskId",
|
7352
|
-
"required": true,
|
7353
|
-
"type": "string"
|
7354
|
-
},
|
7355
|
-
{
|
7356
|
-
"disabled": false,
|
7357
|
-
"document": "切分策略",
|
7358
|
-
"example": "default",
|
7359
|
-
"member": "string",
|
7360
|
-
"name": "Policy",
|
7361
|
-
"required": false,
|
7362
|
-
"type": "string"
|
7363
|
-
},
|
7364
|
-
{
|
7365
|
-
"disabled": false,
|
7366
|
-
"document": "默认值: split",
|
7367
|
-
"example": "parse: 解析, split: 拆分",
|
7368
|
-
"member": "string",
|
7369
|
-
"name": "Operate",
|
7370
|
-
"required": false,
|
7371
|
-
"type": "string"
|
7372
|
-
}
|
7373
|
-
],
|
7374
|
-
"type": "object"
|
7375
|
-
},
|
7376
|
-
"ParseDocResponse": {
|
7377
|
-
"document": "ParseDoc返回参数结构体",
|
7378
|
-
"members": [
|
7379
|
-
{
|
7380
|
-
"disabled": false,
|
7381
|
-
"document": "任务ID",
|
7382
|
-
"example": "ZQXi99vCPEAfrbiF",
|
7383
|
-
"member": "string",
|
7384
|
-
"name": "TaskId",
|
7385
|
-
"output_required": true,
|
7386
|
-
"type": "string",
|
7387
|
-
"value_allowed_null": false
|
7388
|
-
},
|
7389
|
-
{
|
7390
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7391
|
-
"member": "string",
|
7392
|
-
"name": "RequestId",
|
7393
|
-
"type": "string"
|
7394
|
-
}
|
7395
|
-
],
|
7396
|
-
"type": "object"
|
7397
|
-
},
|
7398
7321
|
"QACate": {
|
7399
7322
|
"document": "获取QA分类分组",
|
7400
7323
|
"members": [
|
@@ -7627,73 +7550,6 @@
|
|
7627
7550
|
],
|
7628
7551
|
"usage": "in"
|
7629
7552
|
},
|
7630
|
-
"QueryParseDocResultRequest": {
|
7631
|
-
"document": "QueryParseDocResult请求参数结构体",
|
7632
|
-
"members": [
|
7633
|
-
{
|
7634
|
-
"disabled": false,
|
7635
|
-
"document": "任务ID",
|
7636
|
-
"example": "ZQXi99vCPEAfrbiF",
|
7637
|
-
"member": "string",
|
7638
|
-
"name": "TaskId",
|
7639
|
-
"required": true,
|
7640
|
-
"type": "string"
|
7641
|
-
}
|
7642
|
-
],
|
7643
|
-
"type": "object"
|
7644
|
-
},
|
7645
|
-
"QueryParseDocResultResponse": {
|
7646
|
-
"document": "QueryParseDocResult返回参数结构体",
|
7647
|
-
"members": [
|
7648
|
-
{
|
7649
|
-
"disabled": false,
|
7650
|
-
"document": "等待 / 执行中 / 成功 / 失败",
|
7651
|
-
"example": "waiting / running / success / fail",
|
7652
|
-
"member": "string",
|
7653
|
-
"name": "Status",
|
7654
|
-
"output_required": true,
|
7655
|
-
"type": "string",
|
7656
|
-
"value_allowed_null": false
|
7657
|
-
},
|
7658
|
-
{
|
7659
|
-
"disabled": false,
|
7660
|
-
"document": "解析后的文件内容",
|
7661
|
-
"example": "产品文档.zip",
|
7662
|
-
"member": "string",
|
7663
|
-
"name": "Name",
|
7664
|
-
"output_required": false,
|
7665
|
-
"type": "string",
|
7666
|
-
"value_allowed_null": false
|
7667
|
-
},
|
7668
|
-
{
|
7669
|
-
"disabled": false,
|
7670
|
-
"document": "文件下载地址",
|
7671
|
-
"example": "https://file.download.com/产品文档.zip",
|
7672
|
-
"member": "string",
|
7673
|
-
"name": "Url",
|
7674
|
-
"output_required": false,
|
7675
|
-
"type": "string",
|
7676
|
-
"value_allowed_null": false
|
7677
|
-
},
|
7678
|
-
{
|
7679
|
-
"disabled": false,
|
7680
|
-
"document": "解析失败原因",
|
7681
|
-
"example": "convert task fail",
|
7682
|
-
"member": "string",
|
7683
|
-
"name": "Reason",
|
7684
|
-
"output_required": false,
|
7685
|
-
"type": "string",
|
7686
|
-
"value_allowed_null": false
|
7687
|
-
},
|
7688
|
-
{
|
7689
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7690
|
-
"member": "string",
|
7691
|
-
"name": "RequestId",
|
7692
|
-
"type": "string"
|
7693
|
-
}
|
7694
|
-
],
|
7695
|
-
"type": "object"
|
7696
|
-
},
|
7697
7553
|
"QueryRewriteRequest": {
|
7698
7554
|
"document": "QueryRewrite请求参数结构体",
|
7699
7555
|
"members": [
|
@@ -7718,7 +7574,7 @@
|
|
7718
7574
|
{
|
7719
7575
|
"disabled": false,
|
7720
7576
|
"document": "模型名称",
|
7721
|
-
"example": "
|
7577
|
+
"example": "lke-query-rewrite-base",
|
7722
7578
|
"member": "string",
|
7723
7579
|
"name": "Model",
|
7724
7580
|
"required": false,
|
@@ -7740,6 +7596,16 @@
|
|
7740
7596
|
"type": "string",
|
7741
7597
|
"value_allowed_null": false
|
7742
7598
|
},
|
7599
|
+
{
|
7600
|
+
"disabled": false,
|
7601
|
+
"document": "消耗量,返回输入token数,输出token数以及总token数",
|
7602
|
+
"example": "{\"InputTokens\":45,\"OutputTokens\":6,\"TotalTokens\":51}",
|
7603
|
+
"member": "Usage",
|
7604
|
+
"name": "Usage",
|
7605
|
+
"output_required": false,
|
7606
|
+
"type": "object",
|
7607
|
+
"value_allowed_null": false
|
7608
|
+
},
|
7743
7609
|
{
|
7744
7610
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7745
7611
|
"member": "string",
|
@@ -8961,6 +8827,52 @@
|
|
8961
8827
|
],
|
8962
8828
|
"type": "object"
|
8963
8829
|
},
|
8830
|
+
"Usage": {
|
8831
|
+
"document": "消耗量",
|
8832
|
+
"members": [
|
8833
|
+
{
|
8834
|
+
"disabled": false,
|
8835
|
+
"document": "文档页数",
|
8836
|
+
"example": "10",
|
8837
|
+
"member": "int64",
|
8838
|
+
"name": "TotalPages",
|
8839
|
+
"output_required": false,
|
8840
|
+
"type": "int",
|
8841
|
+
"value_allowed_null": false
|
8842
|
+
},
|
8843
|
+
{
|
8844
|
+
"disabled": false,
|
8845
|
+
"document": "输入token数",
|
8846
|
+
"example": "10",
|
8847
|
+
"member": "int64",
|
8848
|
+
"name": "InputTokens",
|
8849
|
+
"output_required": false,
|
8850
|
+
"type": "int",
|
8851
|
+
"value_allowed_null": false
|
8852
|
+
},
|
8853
|
+
{
|
8854
|
+
"disabled": false,
|
8855
|
+
"document": "输出token数",
|
8856
|
+
"example": "10",
|
8857
|
+
"member": "int64",
|
8858
|
+
"name": "OutputTokens",
|
8859
|
+
"output_required": false,
|
8860
|
+
"type": "int",
|
8861
|
+
"value_allowed_null": false
|
8862
|
+
},
|
8863
|
+
{
|
8864
|
+
"disabled": false,
|
8865
|
+
"document": "总token数",
|
8866
|
+
"example": "10",
|
8867
|
+
"member": "int64",
|
8868
|
+
"name": "TotalTokens",
|
8869
|
+
"output_required": false,
|
8870
|
+
"type": "int",
|
8871
|
+
"value_allowed_null": false
|
8872
|
+
}
|
8873
|
+
],
|
8874
|
+
"usage": "out"
|
8875
|
+
},
|
8964
8876
|
"VerifyQARequest": {
|
8965
8877
|
"document": "VerifyQA请求参数结构体",
|
8966
8878
|
"members": [
|