tccli 3.0.1336.1__py2.py3-none-any.whl → 3.0.1337.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/antiddos/v20200309/api.json +2 -2
- tccli/services/captcha/v20190722/api.json +10 -0
- tccli/services/cdb/v20170320/api.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +2 -2
- tccli/services/cfw/v20190904/api.json +9 -0
- tccli/services/cme/v20191029/api.json +1 -1
- tccli/services/csip/v20221121/api.json +10 -0
- tccli/services/es/v20250101/api.json +50 -0
- tccli/services/ess/v20201111/api.json +10 -1
- tccli/services/essbasic/v20210526/api.json +10 -1
- tccli/services/gs/v20191118/api.json +11 -1
- tccli/services/gs/v20191118/examples.json +1 -1
- tccli/services/lighthouse/lighthouse_client.py +53 -0
- tccli/services/lighthouse/v20200324/api.json +43 -0
- tccli/services/lighthouse/v20200324/examples.json +8 -0
- tccli/services/lke/lke_client.py +110 -4
- tccli/services/lke/v20231130/api.json +141 -0
- tccli/services/lke/v20231130/examples.json +16 -0
- tccli/services/lkeap/v20240522/api.json +3 -3
- tccli/services/mps/v20190612/api.json +117 -1
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +165 -25
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +1 -1
- tccli/services/tiia/tiia_client.py +73 -126
- tccli/services/tiia/v20190529/api.json +0 -112
- tccli/services/tiia/v20190529/examples.json +0 -14
- tccli/services/tione/tione_client.py +216 -4
- tccli/services/tione/v20211111/api.json +190 -0
- tccli/services/tione/v20211111/examples.json +32 -0
- tccli/services/trocket/trocket_client.py +57 -4
- tccli/services/trocket/v20230308/api.json +149 -1
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/trtc/v20190722/api.json +2 -2
- tccli/services/tsf/v20180326/api.json +2 -2
- tccli/services/tsf/v20180326/examples.json +2 -2
- {tccli-3.0.1336.1.dist-info → tccli-3.0.1337.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1336.1.dist-info → tccli-3.0.1337.1.dist-info}/RECORD +42 -42
- {tccli-3.0.1336.1.dist-info → tccli-3.0.1337.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1336.1.dist-info → tccli-3.0.1337.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1336.1.dist-info → tccli-3.0.1337.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1337.1'
|
@@ -5424,7 +5424,7 @@
|
|
5424
5424
|
},
|
5425
5425
|
{
|
5426
5426
|
"disabled": false,
|
5427
|
-
"document": "
|
5427
|
+
"document": "业务类型:</br>\nport:端口业务\ndomain:域名业务",
|
5428
5428
|
"example": "domain",
|
5429
5429
|
"member": "string",
|
5430
5430
|
"name": "BusinessType",
|
@@ -7077,7 +7077,7 @@
|
|
7077
7077
|
},
|
7078
7078
|
{
|
7079
7079
|
"disabled": false,
|
7080
|
-
"document": "
|
7080
|
+
"document": "ZoneID列表",
|
7081
7081
|
"example": "1",
|
7082
7082
|
"member": "int64",
|
7083
7083
|
"name": "FilterZoneIdList",
|
@@ -1964,6 +1964,16 @@
|
|
1964
1964
|
"type": "string",
|
1965
1965
|
"value_allowed_null": true
|
1966
1966
|
},
|
1967
|
+
{
|
1968
|
+
"disabled": false,
|
1969
|
+
"document": "验证码评分",
|
1970
|
+
"example": "60",
|
1971
|
+
"member": "int64",
|
1972
|
+
"name": "Score",
|
1973
|
+
"output_required": false,
|
1974
|
+
"type": "int",
|
1975
|
+
"value_allowed_null": false
|
1976
|
+
},
|
1967
1977
|
{
|
1968
1978
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1969
1979
|
"member": "string",
|
@@ -16924,7 +16924,7 @@
|
|
16924
16924
|
},
|
16925
16925
|
{
|
16926
16926
|
"disabled": false,
|
16927
|
-
"document": "要修改的安全组 ID 列表,一个或者多个安全组 ID
|
16927
|
+
"document": "要修改的安全组 ID 列表,一个或者多个安全组 ID 组成的数组。\n注意:该入参会全量替换存量已有集合,非增量更新。修改需传入预期的全量集合。",
|
16928
16928
|
"example": "[\"sg-ajr1jzgj\\r\\n\"]",
|
16929
16929
|
"member": "string",
|
16930
16930
|
"name": "SecurityGroupIds",
|
@@ -905,7 +905,7 @@
|
|
905
905
|
},
|
906
906
|
{
|
907
907
|
"disabled": false,
|
908
|
-
"document": "实例对应
|
908
|
+
"document": "实例对应Snapshot的id",
|
909
909
|
"example": "2221",
|
910
910
|
"member": "int64",
|
911
911
|
"name": "TaskId",
|
@@ -9129,7 +9129,7 @@
|
|
9129
9129
|
},
|
9130
9130
|
{
|
9131
9131
|
"disabled": false,
|
9132
|
-
"document": "
|
9132
|
+
"document": "Encrypted",
|
9133
9133
|
"example": "1",
|
9134
9134
|
"member": "int64",
|
9135
9135
|
"name": "Encrypt",
|
@@ -2340,6 +2340,15 @@
|
|
2340
2340
|
"name": "TableType",
|
2341
2341
|
"required": true,
|
2342
2342
|
"type": "string"
|
2343
|
+
},
|
2344
|
+
{
|
2345
|
+
"disabled": false,
|
2346
|
+
"document": "处置对象,事件ID列表",
|
2347
|
+
"example": "[\"a67d60bb5ede9b962ac19ad24b28be54\"]",
|
2348
|
+
"member": "string",
|
2349
|
+
"name": "HandleEventIdList",
|
2350
|
+
"required": false,
|
2351
|
+
"type": "list"
|
2343
2352
|
}
|
2344
2353
|
],
|
2345
2354
|
"type": "object"
|
@@ -246,7 +246,7 @@
|
|
246
246
|
"status": "online"
|
247
247
|
},
|
248
248
|
"HandleMediaCastProject": {
|
249
|
-
"document": "对媒体转推项目进行操作。\n### 操作类型<a id=\"Operation\"></a>\n- `AddSource`(添加输入源),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.
|
249
|
+
"document": "对媒体转推项目进行操作。\n### 操作类型<a id=\"Operation\"></a>\n- `AddSource`(添加输入源),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B6-.E6.B7.BB.E5.8A.A0.E8.BE.93.E5.85.A5.E6.BA.90);\n- `DeleteSource`(删除输入源),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B3-.E5.88.A0.E9.99.A4.E8.BE.93.E5.85.A5.E6.BA.90);\n- `SwitchSource`(切换当前播放的输入源),项目状态为 Working 时可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B13-.E5.88.87.E6.8D.A2.E5.BD.93.E5.89.8D.E6.92.AD.E6.94.BE.E7.9A.84.E8.BE.93.E5.85.A5.E6.BA.90)\n- `AddDestination`( 添加输出源),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B7-.E6.B7.BB.E5.8A.A0.E8.BE.93.E5.87.BA.E6.BA.90);\n- `DeleteDestination`(删除输出源),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B4-.E5.88.A0.E9.99.A4.E8.BE.93.E5.87.BA.E6.BA.90);\n- `EnableDestination`(启动输出源),项目状态为 Working 时可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B5-.E5.90.AF.E5.8A.A8.E8.BE.93.E5.87.BA.E6.BA.90);\n- `DisableDestination`(停止输出源),项目状态为 Working 时可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B2-.E5.81.9C.E6.AD.A2.E8.BE.93.E5.87.BA.E6.BA.90);\n- `ModifyDestination`(修改输出源),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B1-.E4.BF.AE.E6.94.B9.E8.BE.93.E5.87.BA.E6.BA.90);\n- `Start`(启动媒体转推),项目状态为 Idle 时可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B10-.E5.90.AF.E5.8A.A8.E5.AA.92.E4.BD.93.E8.BD.AC.E6.8E.A8)。发起 Start 请求成功后,媒体转推项目开始启动,30秒内还需要再进行一次 Confirm操作进行确认;\n- `Confirm`(确认媒体转推项目启动),项目状态为 Working 时可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B14-.E7.A1.AE.E8.AE.A4.E5.AA.92.E4.BD.93.E8.BD.AC.E6.8E.A8.E9.A1.B9.E7.9B.AE.E5.90.AF.E5.8A.A8);\n- `Stop`(停止媒体转推),项目状态为 Working 时可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B9-.E5.81.9C.E6.AD.A2.E5.AA.92.E4.BD.93.E8.BD.AC.E6.8E.A8);\n- `ModifyOutputMediaSetting`(修改媒体输出配置),项目状态为 Idle 时可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B12-.E4.BF.AE.E6.94.B9.E8.BE.93.E5.87.BA.E7.9A.84.E5.AA.92.E4.BD.93.E9.85.8D.E7.BD.AE);\n- `ModifyPlaySetting`(修改播放结束时间),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B8-.E4.BF.AE.E6.94.B9.E7.BB.93.E6.9D.9F.E6.97.B6.E9.97.B4);\n- `DescribePlayInfo`(查询播放信息),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B15-.E6.9F.A5.E8.AF.A2.E5.AA.92.E4.BD.93.E8.BD.AC.E6.8E.A8.E9.A1.B9.E7.9B.AE.E7.9A.84.E6.92.AD.E6.94.BE.E4.BF.A1.E6.81.AF)。",
|
250
250
|
"input": "HandleMediaCastProjectRequest",
|
251
251
|
"name": "操作媒体转推项目",
|
252
252
|
"output": "HandleMediaCastProjectResponse",
|
@@ -10242,6 +10242,16 @@
|
|
10242
10242
|
"output_required": true,
|
10243
10243
|
"type": "int",
|
10244
10244
|
"value_allowed_null": false
|
10245
|
+
},
|
10246
|
+
{
|
10247
|
+
"disabled": false,
|
10248
|
+
"document": "租户ID字符串",
|
10249
|
+
"example": "1235316210",
|
10250
|
+
"member": "string",
|
10251
|
+
"name": "AppIdStr",
|
10252
|
+
"output_required": false,
|
10253
|
+
"type": "string",
|
10254
|
+
"value_allowed_null": false
|
10245
10255
|
}
|
10246
10256
|
],
|
10247
10257
|
"usage": "out"
|
@@ -498,6 +498,23 @@
|
|
498
498
|
],
|
499
499
|
"usage": "both"
|
500
500
|
},
|
501
|
+
"DocumentParseConfig": {
|
502
|
+
"document": "文档解析配置",
|
503
|
+
"members": [
|
504
|
+
{
|
505
|
+
"disabled": false,
|
506
|
+
"document": "0:图片以链接形式返回\n1:返回图片中提取的文本内容",
|
507
|
+
"example": "1",
|
508
|
+
"member": "uint64",
|
509
|
+
"name": "ImageResponseType",
|
510
|
+
"output_required": false,
|
511
|
+
"required": false,
|
512
|
+
"type": "int",
|
513
|
+
"value_allowed_null": false
|
514
|
+
}
|
515
|
+
],
|
516
|
+
"usage": "both"
|
517
|
+
},
|
501
518
|
"EmbeddingData": {
|
502
519
|
"document": "向量内容",
|
503
520
|
"members": [
|
@@ -813,6 +830,39 @@
|
|
813
830
|
"required": false,
|
814
831
|
"type": "string",
|
815
832
|
"value_allowed_null": false
|
833
|
+
},
|
834
|
+
{
|
835
|
+
"disabled": false,
|
836
|
+
"document": "文档解析配置",
|
837
|
+
"example": "无",
|
838
|
+
"member": "DocumentParseConfig",
|
839
|
+
"name": "DocumentParseConfig",
|
840
|
+
"output_required": false,
|
841
|
+
"required": false,
|
842
|
+
"type": "object",
|
843
|
+
"value_allowed_null": false
|
844
|
+
},
|
845
|
+
{
|
846
|
+
"disabled": false,
|
847
|
+
"document": "文档的起始页码",
|
848
|
+
"example": "1",
|
849
|
+
"member": "int64",
|
850
|
+
"name": "FileStartPageNumber",
|
851
|
+
"output_required": false,
|
852
|
+
"required": false,
|
853
|
+
"type": "int",
|
854
|
+
"value_allowed_null": false
|
855
|
+
},
|
856
|
+
{
|
857
|
+
"disabled": false,
|
858
|
+
"document": "文档的结束页码",
|
859
|
+
"example": "1",
|
860
|
+
"member": "int64",
|
861
|
+
"name": "FileEndPageNumber",
|
862
|
+
"output_required": false,
|
863
|
+
"required": false,
|
864
|
+
"type": "int",
|
865
|
+
"value_allowed_null": false
|
816
866
|
}
|
817
867
|
],
|
818
868
|
"usage": "both"
|
@@ -169,7 +169,7 @@
|
|
169
169
|
"status": "online"
|
170
170
|
},
|
171
171
|
"CreateFlowEvidenceReport": {
|
172
|
-
"document": "提交申请出证报告任务并返回报告ID。\n\n注意:\n<ul><li>使用此功能`需搭配出证套餐` ,使用前请联系对接的客户经理沟通。</li>\n<li>操作人必须是`发起方或者签署方企业的(非走授权书认证)法人或者超管`。</li>\n<li>合同流程必须所有参与方`已经签署完成`。</li>\n<li>出证过程需一定时间,建议在`提交出证任务后的24小时之后`,通过<a href=\"https://qian.tencent.com/developers/companyApis/certificate/DescribeFlowEvidenceReport\" target=\"_blank\">获取出证报告任务执行结果</a>接口进行查询执行结果和出证报告的下载URL。</li></ul>\n\n<svg id=\"SvgjsSvg1006\" width=\"262\" height=\"229\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:svgjs=\"http://svgjs.com/svgjs\"><defs id=\"SvgjsDefs1007\"><pattern patternUnits=\"userSpaceOnUse\" id=\"pattern_mark_0\" width=\"300\" height=\"300\"><text x=\"150\" y=\"100\" fill=\"rgba(229,229,229,0.8)\" font-size=\"18\" transform=\"rotate(-45, 150, 150)\" style=\"dominant-baseline: middle; text-anchor: middle;\"></text></pattern><pattern patternUnits=\"userSpaceOnUse\" id=\"pattern_mark_1\" width=\"300\" height=\"300\"><text x=\"150\" y=\"200\" fill=\"rgba(229,229,229,0.8)\" font-size=\"18\" transform=\"rotate(-45, 150, 150)\" style=\"dominant-baseline: middle; text-anchor: middle;\"></text></pattern><marker id=\"SvgjsMarker1021\" markerWidth=\"12\" markerHeight=\"8\" refX=\"9\" refY=\"4\" viewBox=\"0 0 12 8\" orient=\"auto\" markerUnits=\"userSpaceOnUse\" stroke-dasharray=\"0,0\"><path id=\"SvgjsPath1022\" d=\"M0,0 L12,4 L0,8 L0,0\" fill=\"#323232\" stroke=\"#323232\" stroke-width=\"1\"></path></marker></defs><rect id=\"svgbackgroundid\" width=\"262\" height=\"229\" fill=\"transparent\"></rect><rect id=\"SvgjsRect1009\" width=\"262\" height=\"229\" fill=\"url(#pattern_mark_0)\"></rect><rect id=\"SvgjsRect1010\" width=\"262\" height=\"229\" fill=\"url(#pattern_mark_1)\"></rect><g id=\"SvgjsG1011\" transform=\"translate(31.75,25)\"><path id=\"SvgjsPath1012\" d=\"M 0 0L 198 0L 198 59L 0 59Z\" stroke=\"rgba(86,146,48,1)\" stroke-width=\"1\" fill-opacity=\"1\" fill=\"#e7ebed\"></path><g id=\"SvgjsG1013\"><text id=\"SvgjsText1014\" font-family=\"微软雅黑\" text-anchor=\"middle\" font-size=\"13px\" width=\"178px\" fill=\"#323232\" font-weight=\"400\" align=\"middle\" lineHeight=\"125%\" anchor=\"middle\" family=\"微软雅黑\" size=\"13px\" weight=\"400\" font-style=\"\" opacity=\"1\" y=\"10.375\" transform=\"rotate(0)\"><tspan id=\"SvgjsTspan1015\" dy=\"16\" x=\"99\"><tspan id=\"SvgjsTspan1016\" style=\"text-decoration:;fill: rgb(28, 30, 33);\">CreateFlowEvidenceReport</tspan></tspan><tspan id=\"SvgjsTspan1017\" dy=\"16\" x=\"99\"><tspan id=\"SvgjsTspan1018\" style=\"text-decoration:;fill: rgb(51, 51, 51);\">提交申请出证报告任务</tspan></tspan></text></g></g><g id=\"SvgjsG1019\"><path id=\"SvgjsPath1020\" d=\"M130.75 84.5L130.75 114.5L130.75 114.5L130.75 143.2\" stroke=\"#323232\" stroke-width=\"1\" fill=\"none\" marker-end=\"url(#SvgjsMarker1021)\"></path></g><g id=\"SvgjsG1023\" transform=\"translate(25,145)\"><path id=\"SvgjsPath1024\" d=\"M 0 0L 211.5 0L 211.5 59L 0 59Z\" stroke=\"rgba(86,146,48,1)\" stroke-width=\"1\" fill-opacity=\"1\" fill=\"#e7ebed\"></path><g id=\"SvgjsG1025\"><text id=\"SvgjsText1026\" font-family=\"微软雅黑\" text-anchor=\"middle\" font-size=\"13px\" width=\"192px\" fill=\"#323232\" font-weight=\"400\" align=\"middle\" lineHeight=\"125%\" anchor=\"middle\" family=\"微软雅黑\" size=\"13px\" weight=\"400\" font-style=\"\" opacity=\"1\" y=\"10.375\" transform=\"rotate(0)\"><tspan id=\"SvgjsTspan1027\" dy=\"16\" x=\"106\"><tspan id=\"SvgjsTspan1028\" style=\"text-decoration:;fill: rgb(28, 30, 33);\">DescribeFlowEvidenceReport</tspan></tspan><tspan id=\"SvgjsTspan1029\" dy=\"16\" x=\"106\"><tspan id=\"SvgjsTspan1030\" style=\"text-decoration:;fill: rgb(51, 51, 51);\">获取出证报告任务执行结果</tspan></tspan></text></g></g></svg>",
|
172
|
+
"document": "提交申请出证报告任务并返回报告ID。\n\n出证报告的示例样式可以参考 [出征报告.PDF](https://qcloudimg.tencent-cloud.cn/raw/a55214fcddaebbd1582cc9c57cc6cf1b.pdf)\n\n注意:\n<ul><li>使用此功能`需搭配出证套餐` ,使用前请联系对接的客户经理沟通。</li>\n<li>操作人必须是`发起方或者签署方企业的(非走授权书认证)法人或者超管`。</li>\n<li>合同流程必须所有参与方`已经签署完成`。</li>\n<li>出证过程需一定时间,建议在`提交出证任务后的24小时之后`,通过<a href=\"https://qian.tencent.com/developers/companyApis/certificate/DescribeFlowEvidenceReport\" target=\"_blank\">获取出证报告任务执行结果</a>接口进行查询执行结果和出证报告的下载URL。</li></ul>\n\n<svg id=\"SvgjsSvg1006\" width=\"262\" height=\"229\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:svgjs=\"http://svgjs.com/svgjs\"><defs id=\"SvgjsDefs1007\"><pattern patternUnits=\"userSpaceOnUse\" id=\"pattern_mark_0\" width=\"300\" height=\"300\"><text x=\"150\" y=\"100\" fill=\"rgba(229,229,229,0.8)\" font-size=\"18\" transform=\"rotate(-45, 150, 150)\" style=\"dominant-baseline: middle; text-anchor: middle;\"></text></pattern><pattern patternUnits=\"userSpaceOnUse\" id=\"pattern_mark_1\" width=\"300\" height=\"300\"><text x=\"150\" y=\"200\" fill=\"rgba(229,229,229,0.8)\" font-size=\"18\" transform=\"rotate(-45, 150, 150)\" style=\"dominant-baseline: middle; text-anchor: middle;\"></text></pattern><marker id=\"SvgjsMarker1021\" markerWidth=\"12\" markerHeight=\"8\" refX=\"9\" refY=\"4\" viewBox=\"0 0 12 8\" orient=\"auto\" markerUnits=\"userSpaceOnUse\" stroke-dasharray=\"0,0\"><path id=\"SvgjsPath1022\" d=\"M0,0 L12,4 L0,8 L0,0\" fill=\"#323232\" stroke=\"#323232\" stroke-width=\"1\"></path></marker></defs><rect id=\"svgbackgroundid\" width=\"262\" height=\"229\" fill=\"transparent\"></rect><rect id=\"SvgjsRect1009\" width=\"262\" height=\"229\" fill=\"url(#pattern_mark_0)\"></rect><rect id=\"SvgjsRect1010\" width=\"262\" height=\"229\" fill=\"url(#pattern_mark_1)\"></rect><g id=\"SvgjsG1011\" transform=\"translate(31.75,25)\"><path id=\"SvgjsPath1012\" d=\"M 0 0L 198 0L 198 59L 0 59Z\" stroke=\"rgba(86,146,48,1)\" stroke-width=\"1\" fill-opacity=\"1\" fill=\"#e7ebed\"></path><g id=\"SvgjsG1013\"><text id=\"SvgjsText1014\" font-family=\"微软雅黑\" text-anchor=\"middle\" font-size=\"13px\" width=\"178px\" fill=\"#323232\" font-weight=\"400\" align=\"middle\" lineHeight=\"125%\" anchor=\"middle\" family=\"微软雅黑\" size=\"13px\" weight=\"400\" font-style=\"\" opacity=\"1\" y=\"10.375\" transform=\"rotate(0)\"><tspan id=\"SvgjsTspan1015\" dy=\"16\" x=\"99\"><tspan id=\"SvgjsTspan1016\" style=\"text-decoration:;fill: rgb(28, 30, 33);\">CreateFlowEvidenceReport</tspan></tspan><tspan id=\"SvgjsTspan1017\" dy=\"16\" x=\"99\"><tspan id=\"SvgjsTspan1018\" style=\"text-decoration:;fill: rgb(51, 51, 51);\">提交申请出证报告任务</tspan></tspan></text></g></g><g id=\"SvgjsG1019\"><path id=\"SvgjsPath1020\" d=\"M130.75 84.5L130.75 114.5L130.75 114.5L130.75 143.2\" stroke=\"#323232\" stroke-width=\"1\" fill=\"none\" marker-end=\"url(#SvgjsMarker1021)\"></path></g><g id=\"SvgjsG1023\" transform=\"translate(25,145)\"><path id=\"SvgjsPath1024\" d=\"M 0 0L 211.5 0L 211.5 59L 0 59Z\" stroke=\"rgba(86,146,48,1)\" stroke-width=\"1\" fill-opacity=\"1\" fill=\"#e7ebed\"></path><g id=\"SvgjsG1025\"><text id=\"SvgjsText1026\" font-family=\"微软雅黑\" text-anchor=\"middle\" font-size=\"13px\" width=\"192px\" fill=\"#323232\" font-weight=\"400\" align=\"middle\" lineHeight=\"125%\" anchor=\"middle\" family=\"微软雅黑\" size=\"13px\" weight=\"400\" font-style=\"\" opacity=\"1\" y=\"10.375\" transform=\"rotate(0)\"><tspan id=\"SvgjsTspan1027\" dy=\"16\" x=\"106\"><tspan id=\"SvgjsTspan1028\" style=\"text-decoration:;fill: rgb(28, 30, 33);\">DescribeFlowEvidenceReport</tspan></tspan><tspan id=\"SvgjsTspan1029\" dy=\"16\" x=\"106\"><tspan id=\"SvgjsTspan1030\" style=\"text-decoration:;fill: rgb(51, 51, 51);\">获取出证报告任务执行结果</tspan></tspan></text></g></g></svg>",
|
173
173
|
"input": "CreateFlowEvidenceReportRequest",
|
174
174
|
"name": "提交申请出证报告任务",
|
175
175
|
"output": "CreateFlowEvidenceReportResponse",
|
@@ -2687,6 +2687,15 @@
|
|
2687
2687
|
"name": "Endpoint",
|
2688
2688
|
"required": false,
|
2689
2689
|
"type": "string"
|
2690
|
+
},
|
2691
|
+
{
|
2692
|
+
"disabled": false,
|
2693
|
+
"document": "认证链接使用单链接还是多链接模式\n\n<ul>\n<li>0 - 多链接(默认),指批量生成链接, 每一个企业会拥有一个认证链接,然后分别认证</li>\n<li>1 - 单链接 , 指批量生成链接,然后会将多个链接聚合成一个链接,进行认证</li>\n</ul>\n\np.s.\n请注意, 如果使用单链接的模式并且认证方式是授权书方式的时候,必须在接口中传递超管授权书。",
|
2694
|
+
"example": "0",
|
2695
|
+
"member": "uint64",
|
2696
|
+
"name": "BatchAuthMethod",
|
2697
|
+
"required": false,
|
2698
|
+
"type": "int"
|
2690
2699
|
}
|
2691
2700
|
],
|
2692
2701
|
"type": "object"
|
@@ -365,7 +365,7 @@
|
|
365
365
|
"status": "online"
|
366
366
|
},
|
367
367
|
"CreateChannelFlowEvidenceReport": {
|
368
|
-
"document": "提交申请出证报告任务并返回报告ID。\n\n注意:\n- 使用此功能**需搭配出证套餐** ,使用前请联系对接的客户经理沟通。\n- 操作人必须是**发起方或者签署方企业的(非走授权书认证)法人或者超管**。\n- 合同流程必须**所有参与方已经签署完成**。\n- 出证过程需一定时间,建议在**提交出证任务后的24小时之后**,通过<a href=\"https://qian.tencent.com/developers/partnerApis/certificate/DescribeChannelFlowEvidenceReport\" target=\"_blank\">获取出证报告任务执行结果</a>接口进行查询执行结果和出证报告的下载URL。\n\n\n",
|
368
|
+
"document": "提交申请出证报告任务并返回报告ID。\n\n出证报告的示例样式可以参考 [出征报告.PDF](https://qcloudimg.tencent-cloud.cn/raw/a55214fcddaebbd1582cc9c57cc6cf1b.pdf)\n\n注意:\n- 使用此功能**需搭配出证套餐** ,使用前请联系对接的客户经理沟通。\n- 操作人必须是**发起方或者签署方企业的(非走授权书认证)法人或者超管**。\n- 合同流程必须**所有参与方已经签署完成**。\n- 出证过程需一定时间,建议在**提交出证任务后的24小时之后**,通过<a href=\"https://qian.tencent.com/developers/partnerApis/certificate/DescribeChannelFlowEvidenceReport\" target=\"_blank\">获取出证报告任务执行结果</a>接口进行查询执行结果和出证报告的下载URL。\n\n\n",
|
369
369
|
"input": "CreateChannelFlowEvidenceReportRequest",
|
370
370
|
"name": "提交申请出证报告任务",
|
371
371
|
"output": "CreateChannelFlowEvidenceReportResponse",
|
@@ -6714,6 +6714,15 @@
|
|
6714
6714
|
"name": "Endpoint",
|
6715
6715
|
"required": false,
|
6716
6716
|
"type": "string"
|
6717
|
+
},
|
6718
|
+
{
|
6719
|
+
"disabled": false,
|
6720
|
+
"document": "认证链接使用单链接还是多链接模式<ul><li>0 - 多链接(默认),指批量生成链接, 每一个企业会拥有一个认证链接,然后分别认证</li><li>1 - 单链接 , 指批量生成链接,然后会将多个链接聚合成一个链接,进行认证</li></ul>p.s.请注意, 如果使用单链接的模式并且认证方式是授权书方式的时候,必须在接口中传递超管授权书。",
|
6721
|
+
"example": "0",
|
6722
|
+
"member": "uint64",
|
6723
|
+
"name": "BatchAuthMethod",
|
6724
|
+
"required": false,
|
6725
|
+
"type": "int"
|
6717
6726
|
}
|
6718
6727
|
],
|
6719
6728
|
"type": "object"
|
@@ -605,6 +605,16 @@
|
|
605
605
|
"output_required": false,
|
606
606
|
"type": "string",
|
607
607
|
"value_allowed_null": false
|
608
|
+
},
|
609
|
+
{
|
610
|
+
"disabled": false,
|
611
|
+
"document": "应用更新状态,取值:UPLOADING 上传中、CREATING 创建中、CREATE_FAIL 创建失败、CREATE_SUCCESS 创建成功、NORMAL 默认状态",
|
612
|
+
"example": "CREATE_SUCCESS",
|
613
|
+
"member": "string",
|
614
|
+
"name": "UpdateState",
|
615
|
+
"output_required": false,
|
616
|
+
"type": "string",
|
617
|
+
"value_allowed_null": false
|
608
618
|
}
|
609
619
|
],
|
610
620
|
"usage": "out"
|
@@ -2768,7 +2778,7 @@
|
|
2768
2778
|
},
|
2769
2779
|
{
|
2770
2780
|
"disabled": false,
|
2771
|
-
"document": "过滤条件,支持过滤的字段有:UserId",
|
2781
|
+
"document": "过滤条件,支持过滤的字段有:UserId、State、UpdateState、Name、AppMode 。其中 Name 为模糊匹配,其他参数为精确匹配。",
|
2772
2782
|
"example": "[{\"Name\":\"UserId\",\"Values\":[\"user1\"]}]\t",
|
2773
2783
|
"member": "Filter",
|
2774
2784
|
"name": "Filters",
|
@@ -178,7 +178,7 @@
|
|
178
178
|
{
|
179
179
|
"document": "查询安卓应用信息",
|
180
180
|
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAndroidApps\n<公共请求参数>\n\n{\n \"Offset\": 2,\n \"Limit\": 2\n}",
|
181
|
-
"output": "{\n \"Response\": {\n \"Apps\": [\n {\n \"AndroidAppId\": \"apk-ne70ubtu\",\n \"AndroidAppVersionInfo\": [\n {\n \"AndroidAppVersion\": \"1705404913631168348\",\n \"CreateTime\": \"2024-01-16T11:36:20Z\",\n \"Command\": \"tar -zxvf test-1.0.X.tgz && cd test-1.0.X && ./install.sh\",\n \"UninstallCommand\": \"cd test-1.0.X && ./uninstall.sh\",\n \"CleanupMode\": \"CLEANUP_ON_UNINSTALL\",\n \"State\": \"CREATE_SUCCESS\",\n \"AndroidAppVersionName\": \"version_name\"\n },\n {\n \"AndroidAppVersion\": \"1705406075397560877\",\n \"CreateTime\": \"2024-01-16T11:54:35Z\",\n \"Command\": \"tar -zxvf test-2.0.X.tgz && cd test-2.0.X && ./install.sh\",\n \"UninstallCommand\": \"cd test-2.0.X && ./uninstall.sh\",\n \"CleanupMode\": \"CLEANUP_AFTER_INSTALL\",\n \"State\": \"CREATE_FAIL\",\n \"AndroidAppVersionName\": \"version_name2\"\n }\n ],\n \"Name\": \"test-app-1\",\n \"State\": \"ONLINE\",\n \"UserId\": \"user1\",\n \"AppMode\": \"ADVANCED\",\n \"CreateTime\": \"2024-01-16T11:54:35Z\"\n },\n {\n \"AndroidAppId\": \"apk-d6fyydrc\",\n \"AndroidAppVersionInfo\": null,\n \"Name\": \"test-app-2\",\n \"State\": \"ONLINE\",\n \"UserId\": \"user2\",\n \"AppMode\": \"NORMAL\",\n \"CreateTime\": \"2024-01-16T11:54:35Z\"\n }\n ],\n \"RequestId\": \"5eae7edb-7e12-451e-a4c1-7cf0b777c6e7\",\n \"TotalCount\": 2\n }\n}",
|
181
|
+
"output": "{\n \"Response\": {\n \"Apps\": [\n {\n \"AndroidAppId\": \"apk-ne70ubtu\",\n \"AndroidAppVersionInfo\": [\n {\n \"AndroidAppVersion\": \"1705404913631168348\",\n \"CreateTime\": \"2024-01-16T11:36:20Z\",\n \"Command\": \"tar -zxvf test-1.0.X.tgz && cd test-1.0.X && ./install.sh\",\n \"UninstallCommand\": \"cd test-1.0.X && ./uninstall.sh\",\n \"CleanupMode\": \"CLEANUP_ON_UNINSTALL\",\n \"State\": \"CREATE_SUCCESS\",\n \"AndroidAppVersionName\": \"version_name\"\n },\n {\n \"AndroidAppVersion\": \"1705406075397560877\",\n \"CreateTime\": \"2024-01-16T11:54:35Z\",\n \"Command\": \"tar -zxvf test-2.0.X.tgz && cd test-2.0.X && ./install.sh\",\n \"UninstallCommand\": \"cd test-2.0.X && ./uninstall.sh\",\n \"CleanupMode\": \"CLEANUP_AFTER_INSTALL\",\n \"State\": \"CREATE_FAIL\",\n \"AndroidAppVersionName\": \"version_name2\"\n }\n ],\n \"Name\": \"test-app-1\",\n \"State\": \"ONLINE\",\n \"UserId\": \"user1\",\n \"AppMode\": \"ADVANCED\",\n \"CreateTime\": \"2024-01-16T11:54:35Z\",\n \"UpdateState\": \"CREATE_SUCCESS\"\n },\n {\n \"AndroidAppId\": \"apk-d6fyydrc\",\n \"AndroidAppVersionInfo\": null,\n \"Name\": \"test-app-2\",\n \"State\": \"ONLINE\",\n \"UserId\": \"user2\",\n \"AppMode\": \"NORMAL\",\n \"CreateTime\": \"2024-01-16T11:54:35Z\",\n \"UpdateState\": \"CREATE_SUCCESS\"\n }\n ],\n \"RequestId\": \"5eae7edb-7e12-451e-a4c1-7cf0b777c6e7\",\n \"TotalCount\": 2\n }\n}",
|
182
182
|
"title": "查询安卓应用信息"
|
183
183
|
}
|
184
184
|
],
|
@@ -2357,6 +2357,58 @@ def doDescribeDockerContainers(args, parsed_globals):
|
|
2357
2357
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2358
2358
|
|
2359
2359
|
|
2360
|
+
def doSyncBlueprint(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.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
|
2387
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2388
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2389
|
+
model = models.SyncBlueprintRequest()
|
2390
|
+
model.from_json_string(json.dumps(args))
|
2391
|
+
start_time = time.time()
|
2392
|
+
while True:
|
2393
|
+
rsp = client.SyncBlueprint(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
|
+
|
2360
2412
|
def doTerminateDisks(args, parsed_globals):
|
2361
2413
|
g_param = parse_global_arg(parsed_globals)
|
2362
2414
|
|
@@ -5637,6 +5689,7 @@ ACTION_MAP = {
|
|
5637
5689
|
"DescribeDockerContainerDetail": doDescribeDockerContainerDetail,
|
5638
5690
|
"DescribeBlueprintInstances": doDescribeBlueprintInstances,
|
5639
5691
|
"DescribeDockerContainers": doDescribeDockerContainers,
|
5692
|
+
"SyncBlueprint": doSyncBlueprint,
|
5640
5693
|
"TerminateDisks": doTerminateDisks,
|
5641
5694
|
"CreateFirewallTemplateRules": doCreateFirewallTemplateRules,
|
5642
5695
|
"DescribeSnapshotsDeniedActions": doDescribeSnapshotsDeniedActions,
|
@@ -735,6 +735,13 @@
|
|
735
735
|
"output": "StopInstancesResponse",
|
736
736
|
"status": "online"
|
737
737
|
},
|
738
|
+
"SyncBlueprint": {
|
739
|
+
"document": "本接口 (SyncBlueprint) 用于将自定义镜像同步到其它地域。\n\n* 支持向多个地域同步。最多10个地域。\n* 不支持向源地域同步。\n* 只支持NORMAL状态的镜像进行同步。\n* 不支持中国大陆地域和非中国大陆地域之间同步。\n* 可以通过[DescribeBlueprints](https://cloud.tencent.com/document/api/1207/47689)查询镜像状态,当镜像状态为NORMAL时表示源地域同步结束。",
|
740
|
+
"input": "SyncBlueprintRequest",
|
741
|
+
"name": "同步镜像",
|
742
|
+
"output": "SyncBlueprintResponse",
|
743
|
+
"status": "online"
|
744
|
+
},
|
738
745
|
"TerminateDisks": {
|
739
746
|
"document": "本接口(TerminateDisks)用于销毁一个或多个云硬盘。\n云硬盘状态必须处于SHUTDOWN(已隔离)状态。",
|
740
747
|
"input": "TerminateDisksRequest",
|
@@ -9576,6 +9583,42 @@
|
|
9576
9583
|
],
|
9577
9584
|
"usage": "out"
|
9578
9585
|
},
|
9586
|
+
"SyncBlueprintRequest": {
|
9587
|
+
"document": "SyncBlueprint请求参数结构体",
|
9588
|
+
"members": [
|
9589
|
+
{
|
9590
|
+
"disabled": false,
|
9591
|
+
"document": "镜像ID。",
|
9592
|
+
"example": "lhbp-sdeji832",
|
9593
|
+
"member": "string",
|
9594
|
+
"name": "BlueprintId",
|
9595
|
+
"required": true,
|
9596
|
+
"type": "string"
|
9597
|
+
},
|
9598
|
+
{
|
9599
|
+
"disabled": false,
|
9600
|
+
"document": "同步镜像的目的地域列表。",
|
9601
|
+
"example": "无",
|
9602
|
+
"member": "string",
|
9603
|
+
"name": "DestinationRegions",
|
9604
|
+
"required": true,
|
9605
|
+
"type": "list"
|
9606
|
+
}
|
9607
|
+
],
|
9608
|
+
"type": "object"
|
9609
|
+
},
|
9610
|
+
"SyncBlueprintResponse": {
|
9611
|
+
"document": "SyncBlueprint返回参数结构体",
|
9612
|
+
"members": [
|
9613
|
+
{
|
9614
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
9615
|
+
"member": "string",
|
9616
|
+
"name": "RequestId",
|
9617
|
+
"type": "string"
|
9618
|
+
}
|
9619
|
+
],
|
9620
|
+
"type": "object"
|
9621
|
+
},
|
9579
9622
|
"SystemDisk": {
|
9580
9623
|
"document": "描述了操作系统所在块设备即系统盘的信息。",
|
9581
9624
|
"members": [
|
@@ -846,6 +846,14 @@
|
|
846
846
|
"title": "关闭实例"
|
847
847
|
}
|
848
848
|
],
|
849
|
+
"SyncBlueprint": [
|
850
|
+
{
|
851
|
+
"document": "向两个地域同步自定义镜像。",
|
852
|
+
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SyncBlueprint\n<公共请求参数>\n\n{\n \"BlueprintId\": \"lhbp-ls883feh\",\n \"DestinationRegions\": [\n \"ap-singapore\",\n \"ap-hongkong\"\n ]\n}",
|
853
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"647f2a53-c672-45fa-980b-385423898a69\"\n }\n}",
|
854
|
+
"title": "跨地域同步自定义镜像"
|
855
|
+
}
|
856
|
+
],
|
849
857
|
"TerminateDisks": [
|
850
858
|
{
|
851
859
|
"document": "销毁云硬盘",
|
tccli/services/lke/lke_client.py
CHANGED
@@ -3917,6 +3917,58 @@ def doIgnoreUnsatisfiedReply(args, parsed_globals):
|
|
3917
3917
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3918
3918
|
|
3919
3919
|
|
3920
|
+
def doUpdateVar(args, parsed_globals):
|
3921
|
+
g_param = parse_global_arg(parsed_globals)
|
3922
|
+
|
3923
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3924
|
+
cred = credential.CVMRoleCredential()
|
3925
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3926
|
+
cred = credential.STSAssumeRoleCredential(
|
3927
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3928
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3929
|
+
)
|
3930
|
+
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):
|
3931
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3932
|
+
else:
|
3933
|
+
cred = credential.Credential(
|
3934
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3935
|
+
)
|
3936
|
+
http_profile = HttpProfile(
|
3937
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3938
|
+
reqMethod="POST",
|
3939
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3940
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3941
|
+
)
|
3942
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3943
|
+
if g_param[OptionsDefine.Language]:
|
3944
|
+
profile.language = g_param[OptionsDefine.Language]
|
3945
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3946
|
+
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3947
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3948
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3949
|
+
model = models.UpdateVarRequest()
|
3950
|
+
model.from_json_string(json.dumps(args))
|
3951
|
+
start_time = time.time()
|
3952
|
+
while True:
|
3953
|
+
rsp = client.UpdateVar(model)
|
3954
|
+
result = rsp.to_json_string()
|
3955
|
+
try:
|
3956
|
+
json_obj = json.loads(result)
|
3957
|
+
except TypeError as e:
|
3958
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3959
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3960
|
+
break
|
3961
|
+
cur_time = time.time()
|
3962
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3963
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3964
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3965
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3966
|
+
else:
|
3967
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3968
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3969
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3970
|
+
|
3971
|
+
|
3920
3972
|
def doReferShareKnowledge(args, parsed_globals):
|
3921
3973
|
g_param = parse_global_arg(parsed_globals)
|
3922
3974
|
|
@@ -4541,7 +4593,7 @@ def doQueryRewrite(args, parsed_globals):
|
|
4541
4593
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4542
4594
|
|
4543
4595
|
|
4544
|
-
def
|
4596
|
+
def doDeleteVar(args, parsed_globals):
|
4545
4597
|
g_param = parse_global_arg(parsed_globals)
|
4546
4598
|
|
4547
4599
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4570,11 +4622,11 @@ def doRetryDocAudit(args, parsed_globals):
|
|
4570
4622
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
4571
4623
|
client._sdkVersion += ("_CLI_" + __version__)
|
4572
4624
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4573
|
-
model = models.
|
4625
|
+
model = models.DeleteVarRequest()
|
4574
4626
|
model.from_json_string(json.dumps(args))
|
4575
4627
|
start_time = time.time()
|
4576
4628
|
while True:
|
4577
|
-
rsp = client.
|
4629
|
+
rsp = client.DeleteVar(model)
|
4578
4630
|
result = rsp.to_json_string()
|
4579
4631
|
try:
|
4580
4632
|
json_obj = json.loads(result)
|
@@ -4905,6 +4957,58 @@ def doDescribeWorkflowRun(args, parsed_globals):
|
|
4905
4957
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4906
4958
|
|
4907
4959
|
|
4960
|
+
def doRetryDocAudit(args, parsed_globals):
|
4961
|
+
g_param = parse_global_arg(parsed_globals)
|
4962
|
+
|
4963
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4964
|
+
cred = credential.CVMRoleCredential()
|
4965
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4966
|
+
cred = credential.STSAssumeRoleCredential(
|
4967
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4968
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4969
|
+
)
|
4970
|
+
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):
|
4971
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4972
|
+
else:
|
4973
|
+
cred = credential.Credential(
|
4974
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4975
|
+
)
|
4976
|
+
http_profile = HttpProfile(
|
4977
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4978
|
+
reqMethod="POST",
|
4979
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4980
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4981
|
+
)
|
4982
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4983
|
+
if g_param[OptionsDefine.Language]:
|
4984
|
+
profile.language = g_param[OptionsDefine.Language]
|
4985
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4986
|
+
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
4987
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4988
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4989
|
+
model = models.RetryDocAuditRequest()
|
4990
|
+
model.from_json_string(json.dumps(args))
|
4991
|
+
start_time = time.time()
|
4992
|
+
while True:
|
4993
|
+
rsp = client.RetryDocAudit(model)
|
4994
|
+
result = rsp.to_json_string()
|
4995
|
+
try:
|
4996
|
+
json_obj = json.loads(result)
|
4997
|
+
except TypeError as e:
|
4998
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4999
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5000
|
+
break
|
5001
|
+
cur_time = time.time()
|
5002
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5003
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5004
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5005
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5006
|
+
else:
|
5007
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5008
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5009
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5010
|
+
|
5011
|
+
|
4908
5012
|
def doListReleaseDocPreview(args, parsed_globals):
|
4909
5013
|
g_param = parse_global_arg(parsed_globals)
|
4910
5014
|
|
@@ -5771,6 +5875,7 @@ ACTION_MAP = {
|
|
5771
5875
|
"CreateCorp": doCreateCorp,
|
5772
5876
|
"IsTransferIntent": doIsTransferIntent,
|
5773
5877
|
"IgnoreUnsatisfiedReply": doIgnoreUnsatisfiedReply,
|
5878
|
+
"UpdateVar": doUpdateVar,
|
5774
5879
|
"ReferShareKnowledge": doReferShareKnowledge,
|
5775
5880
|
"ListRelease": doListRelease,
|
5776
5881
|
"ListModel": doListModel,
|
@@ -5783,13 +5888,14 @@ ACTION_MAP = {
|
|
5783
5888
|
"CreateRejectedQuestion": doCreateRejectedQuestion,
|
5784
5889
|
"DeleteRejectedQuestion": doDeleteRejectedQuestion,
|
5785
5890
|
"QueryRewrite": doQueryRewrite,
|
5786
|
-
"
|
5891
|
+
"DeleteVar": doDeleteVar,
|
5787
5892
|
"ModifyApp": doModifyApp,
|
5788
5893
|
"GetEmbedding": doGetEmbedding,
|
5789
5894
|
"GetAppSecret": doGetAppSecret,
|
5790
5895
|
"ModifyAttributeLabel": doModifyAttributeLabel,
|
5791
5896
|
"GetAnswerTypeDataCount": doGetAnswerTypeDataCount,
|
5792
5897
|
"DescribeWorkflowRun": doDescribeWorkflowRun,
|
5898
|
+
"RetryDocAudit": doRetryDocAudit,
|
5793
5899
|
"ListReleaseDocPreview": doListReleaseDocPreview,
|
5794
5900
|
"DescribeRelease": doDescribeRelease,
|
5795
5901
|
"ModifyRejectedQuestion": doModifyRejectedQuestion,
|