tccli 3.0.1338.1__py2.py3-none-any.whl → 3.0.1340.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/apm/v20210622/api.json +10 -0
- tccli/services/bh/v20230418/api.json +10 -0
- tccli/services/ccc/v20200210/api.json +100 -1
- tccli/services/cdb/v20170320/api.json +37 -37
- tccli/services/cdb/v20170320/examples.json +7 -7
- tccli/services/cdn/v20180606/api.json +2 -2
- tccli/services/cfs/v20190719/api.json +9 -0
- tccli/services/cfw/v20190904/examples.json +12 -0
- tccli/services/ckafka/v20190819/api.json +19 -0
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/csip/csip_client.py +791 -102
- tccli/services/csip/v20221121/api.json +6149 -3461
- tccli/services/csip/v20221121/examples.json +104 -0
- tccli/services/cvm/v20170312/api.json +9 -0
- tccli/services/dts/v20211206/api.json +11 -0
- tccli/services/emr/emr_client.py +363 -310
- tccli/services/emr/v20190103/api.json +206 -0
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/es/v20180416/api.json +55 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +117 -6
- tccli/services/ess/v20201111/examples.json +12 -4
- tccli/services/essbasic/essbasic_client.py +57 -4
- tccli/services/essbasic/v20210526/api.json +104 -4
- tccli/services/essbasic/v20210526/examples.json +9 -1
- tccli/services/gs/v20191118/api.json +10 -1
- tccli/services/gwlb/v20240906/api.json +1 -1
- tccli/services/gwlb/v20240906/examples.json +1 -1
- tccli/services/ioa/v20220601/api.json +55 -0
- tccli/services/ioa/v20220601/examples.json +1 -1
- tccli/services/iotexplorer/iotexplorer_client.py +57 -4
- tccli/services/iotexplorer/v20190423/api.json +145 -19
- tccli/services/iotexplorer/v20190423/examples.json +8 -0
- tccli/services/live/live_client.py +0 -106
- tccli/services/live/v20180801/api.json +23 -138
- tccli/services/live/v20180801/examples.json +4 -20
- tccli/services/lkeap/lkeap_client.py +0 -53
- tccli/services/lkeap/v20240522/api.json +0 -90
- tccli/services/lkeap/v20240522/examples.json +0 -8
- tccli/services/mqtt/v20240516/api.json +80 -0
- tccli/services/mqtt/v20240516/examples.json +6 -0
- tccli/services/ocr/v20181119/api.json +21 -1
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/organization/v20210331/api.json +11 -0
- tccli/services/organization/v20210331/examples.json +1 -1
- tccli/services/partners/v20180321/api.json +2 -2
- tccli/services/postgres/v20170312/api.json +4 -4
- tccli/services/ssl/ssl_client.py +212 -0
- tccli/services/ssl/v20191205/api.json +625 -10
- tccli/services/ssl/v20191205/examples.json +38 -0
- tccli/services/tcbr/v20220217/api.json +11 -0
- tccli/services/tdmq/v20200217/api.json +56 -47
- tccli/services/tdmq/v20200217/examples.json +8 -8
- tccli/services/trocket/v20230308/api.json +111 -92
- tccli/services/trocket/v20230308/examples.json +13 -13
- tccli/services/trtc/v20190722/api.json +3 -3
- tccli/services/tse/v20201207/api.json +19 -0
- tccli/services/tsf/v20180326/api.json +1 -1
- tccli/services/wedata/v20210820/api.json +607 -3
- tccli/services/wedata/v20210820/examples.json +18 -8
- tccli/services/wedata/wedata_client.py +106 -0
- {tccli-3.0.1338.1.dist-info → tccli-3.0.1340.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1338.1.dist-info → tccli-3.0.1340.1.dist-info}/RECORD +67 -67
- {tccli-3.0.1338.1.dist-info → tccli-3.0.1340.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1338.1.dist-info → tccli-3.0.1340.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1338.1.dist-info → tccli-3.0.1340.1.dist-info}/license_files/LICENSE +0 -0
@@ -700,13 +700,6 @@
|
|
700
700
|
"output": "DescribeLivePackageInfoResponse",
|
701
701
|
"status": "online"
|
702
702
|
},
|
703
|
-
"DescribeLivePadProcessorList": {
|
704
|
-
"document": "使用该接口查询垫片流。垫片流状态更新存在一定延迟,可间隔30秒以上查询,避免频繁查询该接口。",
|
705
|
-
"input": "DescribeLivePadProcessorListRequest",
|
706
|
-
"name": "查询垫片流列表",
|
707
|
-
"output": "DescribeLivePadProcessorListResponse",
|
708
|
-
"status": "online"
|
709
|
-
},
|
710
703
|
"DescribeLivePadRules": {
|
711
704
|
"document": "获取直播垫片规则列表。",
|
712
705
|
"input": "DescribeLivePadRulesRequest",
|
@@ -1337,13 +1330,6 @@
|
|
1337
1330
|
"output": "StopCasterPvwResponse",
|
1338
1331
|
"status": "online"
|
1339
1332
|
},
|
1340
|
-
"StopLivePadProcessor": {
|
1341
|
-
"document": "使用该接口停止垫片流。",
|
1342
|
-
"input": "StopLivePadProcessorRequest",
|
1343
|
-
"name": "停止垫片流",
|
1344
|
-
"output": "StopLivePadProcessorResponse",
|
1345
|
-
"status": "online"
|
1346
|
-
},
|
1347
1333
|
"StopLivePadStream": {
|
1348
1334
|
"document": "使用该接口将直播流停止切入垫片。",
|
1349
1335
|
"input": "StopLivePadStreamRequest",
|
@@ -9738,52 +9724,6 @@
|
|
9738
9724
|
],
|
9739
9725
|
"type": "object"
|
9740
9726
|
},
|
9741
|
-
"DescribeLivePadProcessorListRequest": {
|
9742
|
-
"document": "DescribeLivePadProcessorList请求参数结构体",
|
9743
|
-
"members": [
|
9744
|
-
{
|
9745
|
-
"disabled": false,
|
9746
|
-
"document": "推流路径,与推流和播放地址中的AppName保持一致,默认为 live。",
|
9747
|
-
"example": "live",
|
9748
|
-
"member": "string",
|
9749
|
-
"name": "AppName",
|
9750
|
-
"required": true,
|
9751
|
-
"type": "string"
|
9752
|
-
},
|
9753
|
-
{
|
9754
|
-
"disabled": false,
|
9755
|
-
"document": "您的推流域名。",
|
9756
|
-
"example": "5000.livepush.myqcloud.com",
|
9757
|
-
"member": "string",
|
9758
|
-
"name": "PushDomainName",
|
9759
|
-
"required": true,
|
9760
|
-
"type": "string"
|
9761
|
-
}
|
9762
|
-
],
|
9763
|
-
"type": "object"
|
9764
|
-
},
|
9765
|
-
"DescribeLivePadProcessorListResponse": {
|
9766
|
-
"document": "DescribeLivePadProcessorList返回参数结构体",
|
9767
|
-
"members": [
|
9768
|
-
{
|
9769
|
-
"disabled": false,
|
9770
|
-
"document": "当前正在拉取垫片的流名称列表。",
|
9771
|
-
"example": "[\"test1\",\"test2\"]",
|
9772
|
-
"member": "string",
|
9773
|
-
"name": "StreamNameList",
|
9774
|
-
"output_required": false,
|
9775
|
-
"type": "list",
|
9776
|
-
"value_allowed_null": false
|
9777
|
-
},
|
9778
|
-
{
|
9779
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
9780
|
-
"member": "string",
|
9781
|
-
"name": "RequestId",
|
9782
|
-
"type": "string"
|
9783
|
-
}
|
9784
|
-
],
|
9785
|
-
"type": "object"
|
9786
|
-
},
|
9787
9727
|
"DescribeLivePadRulesRequest": {
|
9788
9728
|
"document": "DescribeLivePadRules请求参数结构体",
|
9789
9729
|
"members": [],
|
@@ -18343,73 +18283,73 @@
|
|
18343
18283
|
},
|
18344
18284
|
{
|
18345
18285
|
"disabled": false,
|
18346
|
-
"document": "备源类型:\nPullLivePushLive -直播,\nPullVodPushLive
|
18286
|
+
"document": "备源类型:\nPullLivePushLive -直播,\nPullVodPushLive -点播。",
|
18347
18287
|
"example": "PullLivePushLive",
|
18348
18288
|
"member": "string",
|
18349
18289
|
"name": "BackupSourceType",
|
18350
18290
|
"output_required": true,
|
18351
18291
|
"type": "string",
|
18352
|
-
"value_allowed_null":
|
18292
|
+
"value_allowed_null": false
|
18353
18293
|
},
|
18354
18294
|
{
|
18355
18295
|
"disabled": false,
|
18356
|
-
"document": "备源URL
|
18296
|
+
"document": "备源URL。",
|
18357
18297
|
"example": "http://test.domain/live/test.flv?txSecret=xx&txTime=xxx",
|
18358
18298
|
"member": "string",
|
18359
18299
|
"name": "BackupSourceUrl",
|
18360
18300
|
"output_required": true,
|
18361
18301
|
"type": "string",
|
18362
|
-
"value_allowed_null":
|
18302
|
+
"value_allowed_null": false
|
18363
18303
|
},
|
18364
18304
|
{
|
18365
18305
|
"disabled": false,
|
18366
|
-
"document": "
|
18306
|
+
"document": "水印信息列表。",
|
18367
18307
|
"example": "无",
|
18368
18308
|
"member": "PullPushWatermarkInfo",
|
18369
18309
|
"name": "WatermarkList",
|
18370
18310
|
"output_required": true,
|
18371
18311
|
"type": "list",
|
18372
|
-
"value_allowed_null":
|
18312
|
+
"value_allowed_null": false
|
18373
18313
|
},
|
18374
18314
|
{
|
18375
18315
|
"disabled": false,
|
18376
|
-
"document": "点播源是否启用本地推流模式,默认0,不启用。\n0 - 不启用。\n1 -
|
18316
|
+
"document": "点播源是否启用本地推流模式,默认0,不启用。\n0 - 不启用。\n1 - 启用。",
|
18377
18317
|
"example": "0",
|
18378
18318
|
"member": "int64",
|
18379
18319
|
"name": "VodLocalMode",
|
18380
18320
|
"output_required": true,
|
18381
18321
|
"type": "int",
|
18382
|
-
"value_allowed_null":
|
18322
|
+
"value_allowed_null": false
|
18383
18323
|
},
|
18384
18324
|
{
|
18385
18325
|
"disabled": false,
|
18386
|
-
"document": "录制模板 ID
|
18326
|
+
"document": "录制模板 ID。",
|
18387
18327
|
"example": "8452",
|
18388
18328
|
"member": "string",
|
18389
18329
|
"name": "RecordTemplateId",
|
18390
18330
|
"output_required": true,
|
18391
18331
|
"type": "string",
|
18392
|
-
"value_allowed_null":
|
18332
|
+
"value_allowed_null": false
|
18393
18333
|
},
|
18394
18334
|
{
|
18395
18335
|
"disabled": false,
|
18396
|
-
"document": "
|
18336
|
+
"document": "新增的推流地址。用于单任务推两路场景。",
|
18397
18337
|
"example": "rtmp://5000.livepush.myqcloud.com/live/vinback?txSecret=6e9797ce",
|
18398
18338
|
"member": "string",
|
18399
18339
|
"name": "BackupToUrl",
|
18400
18340
|
"output_required": true,
|
18401
18341
|
"type": "string",
|
18402
|
-
"value_allowed_null":
|
18342
|
+
"value_allowed_null": false
|
18403
18343
|
},
|
18404
18344
|
{
|
18405
18345
|
"disabled": false,
|
18406
|
-
"document": "
|
18346
|
+
"document": "直播转码模板。",
|
18407
18347
|
"example": "hevc760",
|
18408
18348
|
"member": "string",
|
18409
18349
|
"name": "TranscodeTemplateName",
|
18410
18350
|
"output_required": false,
|
18411
18351
|
"type": "string",
|
18412
|
-
"value_allowed_null":
|
18352
|
+
"value_allowed_null": false
|
18413
18353
|
}
|
18414
18354
|
],
|
18415
18355
|
"usage": "out"
|
@@ -19733,6 +19673,15 @@
|
|
19733
19673
|
"required": true,
|
19734
19674
|
"type": "string"
|
19735
19675
|
},
|
19676
|
+
{
|
19677
|
+
"disabled": false,
|
19678
|
+
"document": "默认随系统配置,云端特效循环 少于5次。可自定义指定礼物循环次数,不超过100次。",
|
19679
|
+
"example": "5",
|
19680
|
+
"member": "int64",
|
19681
|
+
"name": "LoopTimes",
|
19682
|
+
"required": false,
|
19683
|
+
"type": "int"
|
19684
|
+
},
|
19736
19685
|
{
|
19737
19686
|
"disabled": false,
|
19738
19687
|
"document": "操作人备注信息。",
|
@@ -20054,70 +20003,6 @@
|
|
20054
20003
|
],
|
20055
20004
|
"type": "object"
|
20056
20005
|
},
|
20057
|
-
"StopLivePadProcessorRequest": {
|
20058
|
-
"document": "StopLivePadProcessor请求参数结构体",
|
20059
|
-
"members": [
|
20060
|
-
{
|
20061
|
-
"disabled": false,
|
20062
|
-
"document": "推流路径,与推流和播放地址中的AppName保持一致,默认为 live。",
|
20063
|
-
"example": "live",
|
20064
|
-
"member": "string",
|
20065
|
-
"name": "AppName",
|
20066
|
-
"required": true,
|
20067
|
-
"type": "string"
|
20068
|
-
},
|
20069
|
-
{
|
20070
|
-
"disabled": false,
|
20071
|
-
"document": "您的推流域名。",
|
20072
|
-
"example": "5000.livepush.myqcloud.com",
|
20073
|
-
"member": "string",
|
20074
|
-
"name": "PushDomainName",
|
20075
|
-
"required": true,
|
20076
|
-
"type": "string"
|
20077
|
-
},
|
20078
|
-
{
|
20079
|
-
"disabled": false,
|
20080
|
-
"document": "流名称。",
|
20081
|
-
"example": "stream1",
|
20082
|
-
"member": "string",
|
20083
|
-
"name": "StreamName",
|
20084
|
-
"required": true,
|
20085
|
-
"type": "string"
|
20086
|
-
},
|
20087
|
-
{
|
20088
|
-
"disabled": false,
|
20089
|
-
"document": "操作人备注信息。",
|
20090
|
-
"example": "admin",
|
20091
|
-
"member": "string",
|
20092
|
-
"name": "Operator",
|
20093
|
-
"required": false,
|
20094
|
-
"type": "string"
|
20095
|
-
}
|
20096
|
-
],
|
20097
|
-
"type": "object"
|
20098
|
-
},
|
20099
|
-
"StopLivePadProcessorResponse": {
|
20100
|
-
"document": "StopLivePadProcessor返回参数结构体",
|
20101
|
-
"members": [
|
20102
|
-
{
|
20103
|
-
"disabled": false,
|
20104
|
-
"document": "处理结果信息。",
|
20105
|
-
"example": "no match processor stream",
|
20106
|
-
"member": "string",
|
20107
|
-
"name": "ResultMessage",
|
20108
|
-
"output_required": false,
|
20109
|
-
"type": "string",
|
20110
|
-
"value_allowed_null": false
|
20111
|
-
},
|
20112
|
-
{
|
20113
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
20114
|
-
"member": "string",
|
20115
|
-
"name": "RequestId",
|
20116
|
-
"type": "string"
|
20117
|
-
}
|
20118
|
-
],
|
20119
|
-
"type": "object"
|
20120
|
-
},
|
20121
20006
|
"StopLivePadStreamRequest": {
|
20122
20007
|
"document": "StopLivePadStream请求参数结构体",
|
20123
20008
|
"members": [
|
@@ -824,14 +824,6 @@
|
|
824
824
|
"title": "查询直播套餐包信息"
|
825
825
|
}
|
826
826
|
],
|
827
|
-
"DescribeLivePadProcessorList": [
|
828
|
-
{
|
829
|
-
"document": "查询正在拉垫片的流。",
|
830
|
-
"input": "POST / HTTP/1.1\nHost:live.tencentcloudapi.com\nContent-Type:application/json\nX-TC-Action: DescribeLivePadProcessorList\n<公共请求参数>\n\n{\n \"PushDomainName\": \"5000.livepush.com\",\n \"AppName\": \"live\"\n}",
|
831
|
-
"output": "{\n \"Response\": {\n \"StreamNameList\": [\n \"test1\",\n \"test2\"\n ],\n \"RequestId\": \"1047d0dc-6dc8-4898-a7f3-03726a822b0e\"\n }\n}",
|
832
|
-
"title": "请求示例"
|
833
|
-
}
|
834
|
-
],
|
835
827
|
"DescribeLivePadRules": [
|
836
828
|
{
|
837
829
|
"document": "",
|
@@ -844,7 +836,7 @@
|
|
844
836
|
{
|
845
837
|
"document": "",
|
846
838
|
"input": "POST / HTTP/1.1\nHost:live.tencentcloudapi.com\nContent-Type:application/json\nX-TC-Action: DescribeLivePadStreamList\n<公共请求参数>\n\n{\n \"DomainName\": \"5000.livepush.com\"\n}",
|
847
|
-
"output": "{\n \"Response\": {\n \"StreamInfoList\": [\n {\n \"DomainName\": \"5000.livepush.com\",\n \"AppName\": \"live\",\n \"StreamName\": \"
|
839
|
+
"output": "{\n \"Response\": {\n \"StreamInfoList\": [\n {\n \"DomainName\": \"5000.livepush.com\",\n \"AppName\": \"live\",\n \"StreamName\": \"stream\",\n \"PublishTime\": \"2025-04-01T00:00:00Z\",\n \"PadStreamType\": \"1\"\n }\n ],\n \"TotalPage\": 1,\n \"TotalNum\": 1,\n \"PageNum\": 1,\n \"PageSize\": 10,\n \"RequestId\": \"1047d0dc-6dc8-4898-a7f3-03726a822b0e\"\n }\n}",
|
848
840
|
"title": "请求示例"
|
849
841
|
}
|
850
842
|
],
|
@@ -1515,7 +1507,7 @@
|
|
1515
1507
|
"SendLiveCloudEffect": [
|
1516
1508
|
{
|
1517
1509
|
"document": "",
|
1518
|
-
"input": "POST / HTTP/1.1\nHost:live.tencentcloudapi.com\nContent-Type:application/json\nX-TC-Action: SendLiveCloudEffect\n<公共请求参数>\n\n{\n \"PushDomainName\": \"5000.livepush.com\",\n \"AppName\": \"live\",\n \"StreamName\": \"
|
1510
|
+
"input": "POST / HTTP/1.1\nHost:live.tencentcloudapi.com\nContent-Type:application/json\nX-TC-Action: SendLiveCloudEffect\n<公共请求参数>\n\n{\n \"PushDomainName\": \"5000.livepush.com\",\n \"AppName\": \"live\",\n \"StreamName\": \"stream\",\n \"Id\": \"1001\",\n \"Operator\": \"admin\"\n}",
|
1519
1511
|
"output": "{\n \"Response\": {\n \"RequestId\": \"1047d0dc-6dc8-4898-a7f3-03726a822b0e\"\n }\n}",
|
1520
1512
|
"title": "请求示例"
|
1521
1513
|
}
|
@@ -1523,7 +1515,7 @@
|
|
1523
1515
|
"StartLivePadStream": [
|
1524
1516
|
{
|
1525
1517
|
"document": "",
|
1526
|
-
"input": "POST / HTTP/1.1\nHost:live.tencentcloudapi.com\nContent-Type:application/json\nX-TC-Action: StartLivePadStream\n<公共请求参数>\n\n{\n \"PushDomainName\": \"5000.livepush.com\",\n \"AppName\": \"live\",\n \"StreamName\": \"
|
1518
|
+
"input": "POST / HTTP/1.1\nHost:live.tencentcloudapi.com\nContent-Type:application/json\nX-TC-Action: StartLivePadStream\n<公共请求参数>\n\n{\n \"PushDomainName\": \"5000.livepush.com\",\n \"AppName\": \"live\",\n \"StreamName\": \"stream1\"\n}",
|
1527
1519
|
"output": "{\n \"Response\": {\n \"RequestId\": \"1047d0dc-6dc8-4898-a7f3-03726a822b0e\"\n }\n}",
|
1528
1520
|
"title": "请求示例"
|
1529
1521
|
}
|
@@ -1552,18 +1544,10 @@
|
|
1552
1544
|
"title": "请求示例"
|
1553
1545
|
}
|
1554
1546
|
],
|
1555
|
-
"StopLivePadProcessor": [
|
1556
|
-
{
|
1557
|
-
"document": "接口用于停止垫片流。",
|
1558
|
-
"input": "POST / HTTP/1.1\nHost:live.tencentcloudapi.com\nContent-Type:application/json\nX-TC-Action: StopLivePadProcessor\n<公共请求参数>\n\n{\n \"PushDomainName\": \"5000.livepush.myqcloud.com\",\n \"AppName\": \"live\",\n \"StreamName\": \"mystreamname\"\n}",
|
1559
|
-
"output": "{\n \"Response\": {\n \"ResultMessage\": \"success\",\n \"RequestId\": \"1047d0dc-6dc8-4898-a7f3-03726a822b0e\"\n }\n}",
|
1560
|
-
"title": "请求示例"
|
1561
|
-
}
|
1562
|
-
],
|
1563
1547
|
"StopLivePadStream": [
|
1564
1548
|
{
|
1565
1549
|
"document": "",
|
1566
|
-
"input": "POST / HTTP/1.1\nHost:live.tencentcloudapi.com\nContent-Type:application/json\nX-TC-Action: StopLivePadStream\n<公共请求参数>\n\n{\n \"PushDomainName\": \"5000.livepush.com\",\n \"AppName\": \"live\",\n \"StreamName\": \"
|
1550
|
+
"input": "POST / HTTP/1.1\nHost:live.tencentcloudapi.com\nContent-Type:application/json\nX-TC-Action: StopLivePadStream\n<公共请求参数>\n\n{\n \"PushDomainName\": \"5000.livepush.com\",\n \"AppName\": \"live\",\n \"StreamName\": \"stream1\"\n}",
|
1567
1551
|
"output": "{\n \"Response\": {\n \"RequestId\": \"1047d0dc-6dc8-4898-a7f3-03726a822b0e\"\n }\n}",
|
1568
1552
|
"title": "请求示例"
|
1569
1553
|
}
|
@@ -173,58 +173,6 @@ def doGetReconstructDocumentResult(args, parsed_globals):
|
|
173
173
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
174
|
|
175
175
|
|
176
|
-
def doRetrieveKnowledgeRealtime(args, parsed_globals):
|
177
|
-
g_param = parse_global_arg(parsed_globals)
|
178
|
-
|
179
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
180
|
-
cred = credential.CVMRoleCredential()
|
181
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
182
|
-
cred = credential.STSAssumeRoleCredential(
|
183
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
184
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
185
|
-
)
|
186
|
-
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):
|
187
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
188
|
-
else:
|
189
|
-
cred = credential.Credential(
|
190
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
191
|
-
)
|
192
|
-
http_profile = HttpProfile(
|
193
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
194
|
-
reqMethod="POST",
|
195
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
196
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
197
|
-
)
|
198
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
199
|
-
if g_param[OptionsDefine.Language]:
|
200
|
-
profile.language = g_param[OptionsDefine.Language]
|
201
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
202
|
-
client = mod.LkeapClient(cred, g_param[OptionsDefine.Region], profile)
|
203
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
204
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
205
|
-
model = models.RetrieveKnowledgeRealtimeRequest()
|
206
|
-
model.from_json_string(json.dumps(args))
|
207
|
-
start_time = time.time()
|
208
|
-
while True:
|
209
|
-
rsp = client.RetrieveKnowledgeRealtime(model)
|
210
|
-
result = rsp.to_json_string()
|
211
|
-
try:
|
212
|
-
json_obj = json.loads(result)
|
213
|
-
except TypeError as e:
|
214
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
215
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
216
|
-
break
|
217
|
-
cur_time = time.time()
|
218
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
219
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
220
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
221
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
222
|
-
else:
|
223
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
224
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
225
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
|
-
|
227
|
-
|
228
176
|
def doGetSplitDocumentResult(args, parsed_globals):
|
229
177
|
g_param = parse_global_arg(parsed_globals)
|
230
178
|
|
@@ -1435,7 +1383,6 @@ ACTION_MAP = {
|
|
1435
1383
|
"RetrieveKnowledge": doRetrieveKnowledge,
|
1436
1384
|
"ModifyQA": doModifyQA,
|
1437
1385
|
"GetReconstructDocumentResult": doGetReconstructDocumentResult,
|
1438
|
-
"RetrieveKnowledgeRealtime": doRetrieveKnowledgeRealtime,
|
1439
1386
|
"GetSplitDocumentResult": doGetSplitDocumentResult,
|
1440
1387
|
"DescribeDoc": doDescribeDoc,
|
1441
1388
|
"ReconstructDocumentSSE": doReconstructDocumentSSE,
|
@@ -168,13 +168,6 @@
|
|
168
168
|
"output": "RetrieveKnowledgeResponse",
|
169
169
|
"status": "online"
|
170
170
|
},
|
171
|
-
"RetrieveKnowledgeRealtime": {
|
172
|
-
"document": "用于实时检索在UploadDocRealtime接口上传的实时文档内容。 使用场景:适用于在会话中对文档进行问答的场景",
|
173
|
-
"input": "RetrieveKnowledgeRealtimeRequest",
|
174
|
-
"name": "实时检索知识库内容",
|
175
|
-
"output": "RetrieveKnowledgeRealtimeResponse",
|
176
|
-
"status": "online"
|
177
|
-
},
|
178
171
|
"RunRerank": {
|
179
172
|
"document": "基于知识引擎精调模型技术的rerank模型,支持对多路召回的结果进行重排序,根据query与切片内容的相关性,按分数由高到低对切片进行排序,并输出对应的打分结果。",
|
180
173
|
"input": "RunRerankRequest",
|
@@ -2371,89 +2364,6 @@
|
|
2371
2364
|
],
|
2372
2365
|
"usage": "in"
|
2373
2366
|
},
|
2374
|
-
"RetrieveKnowledgeRealtimeRequest": {
|
2375
|
-
"document": "RetrieveKnowledgeRealtime请求参数结构体",
|
2376
|
-
"members": [
|
2377
|
-
{
|
2378
|
-
"disabled": false,
|
2379
|
-
"document": "知识库ID。",
|
2380
|
-
"example": "1840331836752986944",
|
2381
|
-
"member": "string",
|
2382
|
-
"name": "KnowledgeBaseId",
|
2383
|
-
"required": true,
|
2384
|
-
"type": "string"
|
2385
|
-
},
|
2386
|
-
{
|
2387
|
-
"disabled": false,
|
2388
|
-
"document": "用于检索的文本。",
|
2389
|
-
"example": "国庆放几天假",
|
2390
|
-
"member": "string",
|
2391
|
-
"name": "Query",
|
2392
|
-
"required": true,
|
2393
|
-
"type": "string"
|
2394
|
-
},
|
2395
|
-
{
|
2396
|
-
"disabled": false,
|
2397
|
-
"document": "实时文件ID列表。",
|
2398
|
-
"example": "[\"1828720159590123264\"]",
|
2399
|
-
"member": "string",
|
2400
|
-
"name": "DocIds",
|
2401
|
-
"required": false,
|
2402
|
-
"type": "list"
|
2403
|
-
},
|
2404
|
-
{
|
2405
|
-
"disabled": false,
|
2406
|
-
"document": "检索方法,默认使用`HYBRID`混合检索。\n- `SEMANTIC`:语义检索\n- `FULL_TEXT`:全文检索\n- `HYBRID`:混合检索",
|
2407
|
-
"example": "SEMANTIC",
|
2408
|
-
"member": "string",
|
2409
|
-
"name": "RetrievalMethod",
|
2410
|
-
"required": false,
|
2411
|
-
"type": "string"
|
2412
|
-
},
|
2413
|
-
{
|
2414
|
-
"disabled": false,
|
2415
|
-
"document": "检索设置。",
|
2416
|
-
"example": "{\"TopK\":3,\"ScoreThreshold\":0.7}",
|
2417
|
-
"member": "RetrievalSetting",
|
2418
|
-
"name": "RetrievalSetting",
|
2419
|
-
"required": false,
|
2420
|
-
"type": "object"
|
2421
|
-
}
|
2422
|
-
],
|
2423
|
-
"type": "object"
|
2424
|
-
},
|
2425
|
-
"RetrieveKnowledgeRealtimeResponse": {
|
2426
|
-
"document": "RetrieveKnowledgeRealtime返回参数结构体",
|
2427
|
-
"members": [
|
2428
|
-
{
|
2429
|
-
"disabled": false,
|
2430
|
-
"document": "检索结果",
|
2431
|
-
"example": "[{\"Metadata\":{\"Type\":\"DOC\",\"ResultSource\":\"SEMANTIC\",\"ChunkPageNumbers\":[1,2]},\"Score\":0,\"Title\":\"example.pdf\",\"Content\":\"国庆放7天假\"}]",
|
2432
|
-
"member": "RetrievalRecord",
|
2433
|
-
"name": "Records",
|
2434
|
-
"output_required": false,
|
2435
|
-
"type": "list",
|
2436
|
-
"value_allowed_null": false
|
2437
|
-
},
|
2438
|
-
{
|
2439
|
-
"disabled": false,
|
2440
|
-
"document": "检索结果数量",
|
2441
|
-
"example": "3",
|
2442
|
-
"member": "uint64",
|
2443
|
-
"name": "TotalCount",
|
2444
|
-
"output_required": false,
|
2445
|
-
"type": "int",
|
2446
|
-
"value_allowed_null": false
|
2447
|
-
},
|
2448
|
-
{
|
2449
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2450
|
-
"member": "string",
|
2451
|
-
"name": "RequestId",
|
2452
|
-
"type": "string"
|
2453
|
-
}
|
2454
|
-
],
|
2455
|
-
"type": "object"
|
2456
|
-
},
|
2457
2367
|
"RetrieveKnowledgeRequest": {
|
2458
2368
|
"document": "RetrieveKnowledge请求参数结构体",
|
2459
2369
|
"members": [
|
@@ -216,14 +216,6 @@
|
|
216
216
|
"title": "语义检索(问答对)"
|
217
217
|
}
|
218
218
|
],
|
219
|
-
"RetrieveKnowledgeRealtime": [
|
220
|
-
{
|
221
|
-
"document": "实时语义检索",
|
222
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RetrieveKnowledgeRealtime\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"49019910106\",\n \"Query\": \"国庆节放几天假\",\n \"DocIds\": [\n \"1828720159590123264\"\n ],\n \"RetrievalMethod\": \"SEMANTIC\",\n \"RetrievalSetting\": {\n \"TopK\": 3,\n \"ScoreThreshold\": 0.7\n }\n}",
|
223
|
-
"output": "{\n \"Response\": {\n \"Records\": [\n {\n \"Metadata\": {\n \"Type\": \"DOC\",\n \"ResultSource\": \"SEMANTIC\"\n },\n \"Title\": \"\",\n \"Content\": \"国庆放七天假\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"d422c101-96e6-4aeb-b51c-0ccb551a5a52\"\n }\n}",
|
224
|
-
"title": "实时语义检索"
|
225
|
-
}
|
226
|
-
],
|
227
219
|
"RunRerank": [
|
228
220
|
{
|
229
221
|
"document": "重排序",
|
@@ -2965,6 +2965,46 @@
|
|
2965
2965
|
"type": "bool",
|
2966
2966
|
"value_allowed_null": false
|
2967
2967
|
},
|
2968
|
+
{
|
2969
|
+
"disabled": false,
|
2970
|
+
"document": "共享订阅组数最大限制",
|
2971
|
+
"example": "20",
|
2972
|
+
"member": "int64",
|
2973
|
+
"name": "SharedSubscriptionGroupLimit",
|
2974
|
+
"output_required": false,
|
2975
|
+
"type": "int",
|
2976
|
+
"value_allowed_null": false
|
2977
|
+
},
|
2978
|
+
{
|
2979
|
+
"disabled": false,
|
2980
|
+
"document": "单个共享订阅组TopicFilter数限制",
|
2981
|
+
"example": "10",
|
2982
|
+
"member": "int64",
|
2983
|
+
"name": "MaxTopicFilterPerSharedSubscriptionGroup",
|
2984
|
+
"output_required": false,
|
2985
|
+
"type": "int",
|
2986
|
+
"value_allowed_null": false
|
2987
|
+
},
|
2988
|
+
{
|
2989
|
+
"disabled": false,
|
2990
|
+
"document": "自动订阅规则条数限制",
|
2991
|
+
"example": "10",
|
2992
|
+
"member": "int64",
|
2993
|
+
"name": "AutoSubscriptionPolicyLimit",
|
2994
|
+
"output_required": false,
|
2995
|
+
"type": "int",
|
2996
|
+
"value_allowed_null": false
|
2997
|
+
},
|
2998
|
+
{
|
2999
|
+
"disabled": false,
|
3000
|
+
"document": "单条自动订阅规则TopicFilter数限制",
|
3001
|
+
"example": "5",
|
3002
|
+
"member": "int64",
|
3003
|
+
"name": "MaxTopicFilterPerAutoSubscriptionPolicy",
|
3004
|
+
"output_required": false,
|
3005
|
+
"type": "int",
|
3006
|
+
"value_allowed_null": false
|
3007
|
+
},
|
2968
3008
|
{
|
2969
3009
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2970
3010
|
"member": "string",
|
@@ -4182,6 +4222,46 @@
|
|
4182
4222
|
"output_required": false,
|
4183
4223
|
"type": "int",
|
4184
4224
|
"value_allowed_null": false
|
4225
|
+
},
|
4226
|
+
{
|
4227
|
+
"disabled": false,
|
4228
|
+
"document": "共享订阅组数最大限制",
|
4229
|
+
"example": "20",
|
4230
|
+
"member": "int64",
|
4231
|
+
"name": "SharedSubscriptionGroupLimit",
|
4232
|
+
"output_required": false,
|
4233
|
+
"type": "int",
|
4234
|
+
"value_allowed_null": false
|
4235
|
+
},
|
4236
|
+
{
|
4237
|
+
"disabled": false,
|
4238
|
+
"document": "单个共享订阅组TopicFilter数限制",
|
4239
|
+
"example": "10",
|
4240
|
+
"member": "int64",
|
4241
|
+
"name": "MaxTopicFilterPerSharedSubscriptionGroup",
|
4242
|
+
"output_required": false,
|
4243
|
+
"type": "int",
|
4244
|
+
"value_allowed_null": false
|
4245
|
+
},
|
4246
|
+
{
|
4247
|
+
"disabled": false,
|
4248
|
+
"document": "自动订阅规则条数限制",
|
4249
|
+
"example": "10",
|
4250
|
+
"member": "int64",
|
4251
|
+
"name": "AutoSubscriptionPolicyLimit",
|
4252
|
+
"output_required": false,
|
4253
|
+
"type": "int",
|
4254
|
+
"value_allowed_null": false
|
4255
|
+
},
|
4256
|
+
{
|
4257
|
+
"disabled": false,
|
4258
|
+
"document": "单条自动订阅规则TopicFilter数限制",
|
4259
|
+
"example": "5",
|
4260
|
+
"member": "int64",
|
4261
|
+
"name": "MaxTopicFilterPerAutoSubscriptionPolicy",
|
4262
|
+
"output_required": false,
|
4263
|
+
"type": "int",
|
4264
|
+
"value_allowed_null": false
|
4185
4265
|
}
|
4186
4266
|
],
|
4187
4267
|
"usage": "out"
|
@@ -246,6 +246,12 @@
|
|
246
246
|
"input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstance\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-bg8k8v8o\"\n}",
|
247
247
|
"output": "{\n \"RequestId\": null,\n \"Response\": {\n \"RequestId\": \"5a2634e3-effd-4380-a9ff-3658ec6c1fdc\",\n \"InstanceType\": \"PRO\",\n \"InstanceStatus\": \"RUNNING\",\n \"PayMode\": \"POSTPAID\",\n \"RenewFlag\": 1,\n \"DestroyTime\": 0,\n \"CreatedTime\": 1741832627,\n \"TpsLimit\": 6000,\n \"Remark\": \"\",\n \"SkuCode\": \"pro_10k_1\",\n \"MaxSubscriptionPerClient\": 30,\n \"MaxSubscription\": 180000,\n \"AuthorizationPolicyLimit\": 20,\n \"ClientNumLimit\": 6000,\n \"MaxCaNum\": 20,\n \"DeviceCertificateProvisionType\": \"JITP\",\n \"RegistrationCode\": \"66a00d75-8272-421f-be2a-166e2c2e7813\",\n \"AutomaticActivation\": true,\n \"X509Mode\": \"BYOC\",\n \"ExpiryTime\": 0,\n \"TopicNumLimit\": 300,\n \"InstanceId\": \"mqtt-zxjwkr98\",\n \"TopicNum\": 1,\n \"InstanceName\": \"mqtt-instance1\"\n },\n \"Error\": null\n}",
|
248
248
|
"title": "示例"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"document": "查询MQTT实例详情信息",
|
252
|
+
"input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstance\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-zj944d74\"\n}",
|
253
|
+
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"AuthorizationPolicy\": true,\n \"AuthorizationPolicyLimit\": 20,\n \"AutoSubscriptionPolicyLimit\": 10,\n \"AutomaticActivation\": false,\n \"ClientNumLimit\": 6000,\n \"CreatedTime\": 1736236715,\n \"DestroyTime\": 0,\n \"DeviceCertificateProvisionType\": \"JITP\",\n \"ExpiryTime\": 0,\n \"InstanceId\": \"mqtt-zj944d74\",\n \"InstanceName\": \"seiroli-byoc-test-0107\",\n \"InstanceStatus\": \"RUNNING\",\n \"InstanceType\": \"PRO\",\n \"MaxCaNum\": 20,\n \"MaxSubscription\": 180000,\n \"MaxSubscriptionPerClient\": 30,\n \"MaxTopicFilterPerAutoSubscriptionPolicy\": 5,\n \"MaxTopicFilterPerSharedSubscriptionGroup\": 10,\n \"PayMode\": \"POSTPAID\",\n \"RegistrationCode\": \"bf2ead84-e9e2-478e-a153-3b6baa9b78b1\",\n \"Remark\": \"\",\n \"RenewFlag\": 1,\n \"RequestId\": \"a71557b4-34ca-46b0-ab51-2420bf4555c2\",\n \"SharedSubscriptionGroupLimit\": 20,\n \"SkuCode\": \"pro_6k_1\",\n \"TopicNum\": 2,\n \"TopicNumLimit\": 300,\n \"TpsLimit\": 6000,\n \"X509Mode\": \"BYOC\"\n }\n}",
|
254
|
+
"title": "查询MQTT实例详情信息"
|
249
255
|
}
|
250
256
|
],
|
251
257
|
"DescribeInstanceList": [
|