tccli 3.0.1331.1__py2.py3-none-any.whl → 3.0.1333.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.
Files changed (46) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/asr/v20190614/api.json +1 -1
  3. tccli/services/autoscaling/v20180419/api.json +1 -1
  4. tccli/services/bmvpc/v20180625/api.json +36 -36
  5. tccli/services/cdb/v20170320/api.json +37 -37
  6. tccli/services/cdn/v20180606/api.json +2 -2
  7. tccli/services/cdn/v20180606/examples.json +2 -2
  8. tccli/services/cfw/v20190904/api.json +1 -1
  9. tccli/services/ckafka/v20190819/api.json +11 -1
  10. tccli/services/cwp/v20180228/api.json +4 -4
  11. tccli/services/dc/v20180410/api.json +39 -0
  12. tccli/services/emr/v20190103/api.json +2 -2
  13. tccli/services/ess/ess_client.py +57 -4
  14. tccli/services/ess/v20201111/api.json +61 -0
  15. tccli/services/ess/v20201111/examples.json +8 -0
  16. tccli/services/essbasic/v20210526/api.json +1 -1
  17. tccli/services/goosefs/v20220519/api.json +2 -2
  18. tccli/services/gs/gs_client.py +163 -4
  19. tccli/services/gs/v20191118/api.json +216 -0
  20. tccli/services/gs/v20191118/examples.json +24 -0
  21. tccli/services/ioa/ioa_client.py +114 -8
  22. tccli/services/ioa/v20220601/api.json +375 -0
  23. tccli/services/ioa/v20220601/examples.json +28 -0
  24. tccli/services/iotexplorer/v20190423/api.json +5 -5
  25. tccli/services/iotexplorer/v20190423/examples.json +1 -1
  26. tccli/services/live/v20180801/api.json +3 -3
  27. tccli/services/lke/lke_client.py +284 -19
  28. tccli/services/lke/v20231130/api.json +1192 -132
  29. tccli/services/lke/v20231130/examples.json +40 -0
  30. tccli/services/lkeap/v20240522/examples.json +5 -5
  31. tccli/services/ocr/v20181119/api.json +4 -4
  32. tccli/services/ssl/v20191205/api.json +4 -4
  33. tccli/services/ssl/v20191205/examples.json +1 -1
  34. tccli/services/tat/v20201028/api.json +1 -1
  35. tccli/services/tke/tke_client.py +106 -0
  36. tccli/services/tke/v20180525/api.json +124 -0
  37. tccli/services/tke/v20180525/examples.json +16 -0
  38. tccli/services/tsf/v20180326/api.json +46 -17
  39. tccli/services/tsf/v20180326/examples.json +10 -10
  40. tccli/services/vpc/v20170312/api.json +5 -5
  41. tccli/services/vpc/v20170312/examples.json +6 -6
  42. {tccli-3.0.1331.1.dist-info → tccli-3.0.1333.1.dist-info}/METADATA +2 -2
  43. {tccli-3.0.1331.1.dist-info → tccli-3.0.1333.1.dist-info}/RECORD +46 -46
  44. {tccli-3.0.1331.1.dist-info → tccli-3.0.1333.1.dist-info}/WHEEL +0 -0
  45. {tccli-3.0.1331.1.dist-info → tccli-3.0.1333.1.dist-info}/entry_points.txt +0 -0
  46. {tccli-3.0.1331.1.dist-info → tccli-3.0.1333.1.dist-info}/license_files/LICENSE +0 -0
@@ -104,6 +104,14 @@
104
104
  "title": "创建变量"
105
105
  }
106
106
  ],
107
+ "CreateWorkflowRun": [
108
+ {
109
+ "document": "针对运行时间比较长的工作流的场景。步骤:在平台上创建好符合条件(不含参数提取节点、选项卡节点和回复节点)的工作流并调试通过,编辑应用设置成“单工作流模式”,选择工作流,打开“异步调用”的开关,然后再调用本接口。",
110
+ "input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateWorkflowRun\n<公共请求参数>\n\n{\n \"RunEnv\": 1,\n \"AppBizId\": \"1854548189164339200\",\n \"Query\": \"发起任务\",\n \"CustomVariables\": [\n {\n \"Name\": \"name\",\n \"Value\": \"张三\"\n }\n ]\n}",
111
+ "output": "{\n \"Response\": {\n \"RequestId\": \"42c23cf3-0dbb-4676-a5a0-bb9cb0787f5d\",\n \"AppBizId\": \"1854548189164339200\",\n \"WorkflowRunId\": \"67c23cf3-077b-4644-225a0-bb9cb078322\",\n \"RunEnv\": 1,\n \"CreateTime\": \"1672531200000\",\n \"Query\": \"发起任务\",\n \"CustomVariables\": [\n {\n \"Name\": \"name\",\n \"Value\": \"张三\"\n }\n ]\n }\n}",
112
+ "title": "创建工作流的异步运行实例"
113
+ }
114
+ ],
107
115
  "DeleteApp": [
108
116
  {
109
117
  "document": "删除应用",
@@ -240,6 +248,14 @@
240
248
  "title": "查询知识库容量饼图"
241
249
  }
242
250
  ],
251
+ "DescribeNodeRun": [
252
+ {
253
+ "document": "已经创建了工作流异步运行实例,通过DescribeWorkflowRun接口获取到节点的基本信息,再通过此接口可获取节点的运行详情",
254
+ "input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeNodeRun\n<公共请求参数>\n\n{\n \"NodeRunId\": \"n223-4358-b8a0-b4d65712f44c\"\n}",
255
+ "output": "{\n \"Response\": {\n \"NodeRun\": {\n \"NodeRunId\": \"nf5a21-6223-4358-b8a789\",\n \"NodeId\": \"e60de932-b050-65ce-261e-027760e93d81\",\n \"WorkflowRunId\": \"1dcf5a21-6223-4358-b8a0-b4d6\",\n \"NodeName\": \"大模型节点\",\n \"NodeType\": 3,\n \"State\": 1,\n \"FailCode\": \"\",\n \"FailMessage\": \"\",\n \"CostMilliseconds\": 1000,\n \"TotalTokens\": 100,\n \"Input\": \"{\\\"Age\\\": 12}\",\n \"InputRef\": \"\",\n \"Output\": \"{\\\"Age\\\": 12}\",\n \"OutputRef\": \"\",\n \"TaskOutput\": \"{\\\"Age\\\": 12...\",\n \"TaskOutputRef\": \"https://lke-realtime-test-1251316161.cos.ap-guangzhou.myqcloud.com/xxxx/xxxx.json\",\n \"Log\": \"\",\n \"LogRef\": \"\",\n \"StartTime\": \"1672531200000\",\n \"EndTime\": \"1672531300000\",\n \"StatisticInfos\": [\n {\n \"ModelName\": \"workflow-pro\",\n \"FirstTokenCost\": 200,\n \"TotalCost\": 1000,\n \"InputTokens\": 20,\n \"OutputTokens\": 30,\n \"TotalTokens\": 50\n }\n ]\n },\n \"RequestId\": \"925208e7-46fa-43b3-a429-ddcbccad24f6\"\n }\n}",
256
+ "title": "查看工作流异步运行实例的节点的运行详情"
257
+ }
258
+ ],
243
259
  "DescribeQA": [
244
260
  {
245
261
  "document": "获取QA详情",
@@ -342,6 +358,14 @@
342
358
  "title": "查看不满意回复上下文"
343
359
  }
344
360
  ],
361
+ "DescribeWorkflowRun": [
362
+ {
363
+ "document": "查询工作流运行实例详情",
364
+ "input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeWorkflowRun\n<公共请求参数>\n\n{\n \"WorkflowRunId\": \"1dcf5a21-6223-4358-b8a0-b4d6571\"\n}",
365
+ "output": "{\n \"Response\": {\n \"WorkflowRun\": {\n \"RunEnv\": 1,\n \"AppBizId\": \"1854548189164339200\",\n \"WorkflowRunId\": \"1dcf5a21-6223-4358-b8a0-b4d6\",\n \"WorkflowId\": \"412f5a21-6223-4358-b8a0-b4d6\",\n \"Name\": \"订酒店\",\n \"State\": 1,\n \"FailMessage\": \"\",\n \"TotalTokens\": 100,\n \"StartTime\": \"1672531200000\",\n \"EndTime\": \"1672531300000\",\n \"CreateTime\": \"1672531100000\",\n \"DialogJson\": \"{\\\"Workflows\\\": {\\\"WorkflowID\\\":\\\"1dcf5a21-6223-4358-b8a0-b4d65712f44c\\\",\\\"WorkflowName\\\":\\\"异步\\\",\\\"WorkflowDesc\\\":\\\"异步\\\",\\\"Nodes\\\":[{\\\"NodeID\\\":\\\"a2b6549c-85b6-b404-a736-3d738591f297\\\",\\\"NodeName\\\":\\\"开始\\\",\\\"NodeType\\\":\\\"START\\\",\\\"NodeDesc\\\":\\\"\\\",\\\"StartNodeData\\\":{},\\\"NextNodeIDs\\\":[\\\"bb004f48-eabd-4104-6cb1-1fb9f154c24d\\\"],\\\"Inputs\\\":[],\\\"NodeUI\\\":\\\"{\\\\\\\"data\\\\\\\":{\\\\\\\"content\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"isHovering\\\\\\\":false,\\\\\\\"isParallel\\\\\\\":false,\\\\\\\"source\\\\\\\":false,\\\\\\\"target\\\\\\\":true,\\\\\\\"debug\\\\\\\":null,\\\\\\\"error\\\\\\\":false,\\\\\\\"output\\\\\\\":[]},\\\\\\\"position\\\\\\\":{\\\\\\\"x\\\\\\\":400,\\\\\\\"y\\\\\\\":282},\\\\\\\"targetPosition\\\\\\\":\\\\\\\"left\\\\\\\",\\\\\\\"sourcePosition\\\\\\\":\\\\\\\"right\\\\\\\",\\\\\\\"selected\\\\\\\":false,\\\\\\\"measured\\\\\\\":{\\\\\\\"width\\\\\\\":250,\\\\\\\"height\\\\\\\":84}}\\\"},{\\\"NodeID\\\":\\\"4710f3a1-fa47-d542-e3be-5b5ce38be1fe\\\",\\\"NodeName\\\":\\\"结束\\\",\\\"NodeType\\\":\\\"END\\\",\\\"NodeDesc\\\":\\\"\\\",\\\"EndNodeData\\\":{},\\\"NextNodeIDs\\\":[],\\\"Outputs\\\":[{\\\"Title\\\":\\\"Output\\\",\\\"Type\\\":\\\"OBJECT\\\",\\\"Required\\\":[],\\\"Properties\\\":[],\\\"Desc\\\":\\\"输出内容\\\"}],\\\"NodeUI\\\":\\\"{\\\\\\\"data\\\\\\\":{\\\\\\\"content\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"isHovering\\\\\\\":false,\\\\\\\"isParallel\\\\\\\":false,\\\\\\\"source\\\\\\\":true,\\\\\\\"target\\\\\\\":false,\\\\\\\"debug\\\\\\\":null,\\\\\\\"error\\\\\\\":false,\\\\\\\"output\\\\\\\":[{\\\\\\\"label\\\\\\\":\\\\\\\"Output\\\\\\\",\\\\\\\"desc\\\\\\\":\\\\\\\"输出内容\\\\\\\",\\\\\\\"optionType\\\\\\\":\\\\\\\"REFERENCE_OUTPUT\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"OBJECT\\\\\\\",\\\\\\\"children\\\\\\\":[]}]},\\\\\\\"position\\\\\\\":{\\\\\\\"x\\\\\\\":1200,\\\\\\\"y\\\\\\\":282},\\\\\\\"targetPosition\\\\\\\":\\\\\\\"left\\\\\\\",\\\\\\\"sourcePosition\\\\\\\":\\\\\\\"right\\\\\\\",\\\\\\\"selected\\\\\\\":false,\\\\\\\"measured\\\\\\\":{\\\\\\\"width\\\\\\\":250,\\\\\\\"height\\\\\\\":84}}\\\"},{\\\"NodeID\\\":\\\"bb004f48-eabd-4104-6cb1-1fb9f154c24d\\\",\\\"NodeName\\\":\\\"代码1\\\",\\\"NodeType\\\":\\\"CODE_EXECUTOR\\\",\\\"NodeDesc\\\":\\\"\\\",\\\"CodeExecutorNodeData\\\":{\\\"Code\\\":\\\"CiMg6K+35L+d5a2Y5Ye95pWw5ZCN5Li6bWFpbizovpPlhaXovpPlh7rlnYfkuLpkaWN077yb5pyA57uI57uT5p6c5Lya5LulanNvbuWtl+espuS4suaWueW8j+i/lOWbnu+8jOivt+WLv+ebtOaOpei/lOWbnuS4jeaUr+aMgWpzb24uZHVtcHPnmoTlr7nosaEKZGVmIG1haW4ocGFyYW1zOiBkaWN0KSAtPiBkaWN0OgogICAgcmV0dXJuIHsKICAgICAgICAncmVzdWx0JzogcGFyYW1zLmdldCgnaW5wdXQnLCAwKQogICAgfQo=\\\",\\\"Language\\\":0},\\\"NextNodeIDs\\\":[\\\"4710f3a1-fa47-d542-e3be-5b5ce38be1fe\\\"],\\\"Inputs\\\":[],\\\"Outputs\\\":[{\\\"Title\\\":\\\"Output\\\",\\\"Type\\\":\\\"OBJECT\\\",\\\"Required\\\":[],\\\"Properties\\\":[{\\\"Title\\\":\\\"result\\\",\\\"Type\\\":\\\"STRING\\\",\\\"Required\\\":[],\\\"Properties\\\":[],\\\"Desc\\\":\\\"\\\"}],\\\"Desc\\\":\\\"输出内容\\\"}],\\\"NodeUI\\\":\\\"{\\\\\\\"data\\\\\\\":{\\\\\\\"content\\\\\\\":{\\\\\\\"outputs\\\\\\\":[\\\\\\\"Output\\\\\\\",\\\\\\\"Output.result\\\\\\\"],\\\\\\\"inputs\\\\\\\":[]},\\\\\\\"isHovering\\\\\\\":false,\\\\\\\"isParallel\\\\\\\":false,\\\\\\\"source\\\\\\\":true,\\\\\\\"target\\\\\\\":true,\\\\\\\"debug\\\\\\\":null,\\\\\\\"error\\\\\\\":false,\\\\\\\"output\\\\\\\":[{\\\\\\\"id\\\\\\\":\\\\\\\"b14d43a6-51ea-2df8-fcfc-759261cd5b1b\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"Output\\\\\\\",\\\\\\\"label\\\\\\\":\\\\\\\"Output\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"OBJECT\\\\\\\",\\\\\\\"children\\\\\\\":[{\\\\\\\"id\\\\\\\":\\\\\\\"e8a0a1f1-8bb4-892a-34ba-e020e3f48c99\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"result\\\\\\\",\\\\\\\"label\\\\\\\":\\\\\\\"result\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"STRING\\\\\\\",\\\\\\\"children\\\\\\\":[]}]}]},\\\\\\\"position\\\\\\\":{\\\\\\\"x\\\\\\\":700,\\\\\\\"y\\\\\\\":282},\\\\\\\"targetPosition\\\\\\\":\\\\\\\"left\\\\\\\",\\\\\\\"sourcePosition\\\\\\\":\\\\\\\"right\\\\\\\",\\\\\\\"selected\\\\\\\":true,\\\\\\\"measured\\\\\\\":{\\\\\\\"width\\\\\\\":250,\\\\\\\"height\\\\\\\":104}}\\\"}],\\\"Edge\\\":\\\"[{\\\\\\\"source\\\\\\\":\\\\\\\"a2b6549c-85b6-b404-a736-3d738591f297\\\\\\\",\\\\\\\"sourceHandle\\\\\\\":\\\\\\\"a2b6549c-85b6-b404-a736-3d738591f297-source\\\\\\\",\\\\\\\"target\\\\\\\":\\\\\\\"bb004f48-eabd-4104-6cb1-1fb9f154c24d\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"custom\\\\\\\",\\\\\\\"data\\\\\\\":{\\\\\\\"connectedNodeIsHovering\\\\\\\":false,\\\\\\\"error\\\\\\\":false,\\\\\\\"isHovering\\\\\\\":false},\\\\\\\"id\\\\\\\":\\\\\\\"xy-edge__a2b6549c-85b6-b404-a736-3d738591f297a2b6549c-85b6-b404-a736-3d738591f297-source-bb004f48-eabd-4104-6cb1-1fb9f154c24d\\\\\\\"},{\\\\\\\"source\\\\\\\":\\\\\\\"bb004f48-eabd-4104-6cb1-1fb9f154c24d\\\\\\\",\\\\\\\"sourceHandle\\\\\\\":\\\\\\\"bb004f48-eabd-4104-6cb1-1fb9f154c24d-source\\\\\\\",\\\\\\\"target\\\\\\\":\\\\\\\"4710f3a1-fa47-d542-e3be-5b5ce38be1fe\\\\\\\",\\\\\\\"targetHandle\\\\\\\":\\\\\\\"4710f3a1-fa47-d542-e3be-5b5ce38be1fe-target\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"custom\\\\\\\",\\\\\\\"data\\\\\\\":{\\\\\\\"connectedNodeIsHovering\\\\\\\":false,\\\\\\\"isHovering\\\\\\\":false,\\\\\\\"error\\\\\\\":false},\\\\\\\"id\\\\\\\":\\\\\\\"xy-edge__bb004f48-eabd-4104-6cb1-1fb9f154c24dbb004f48-eabd-4104-6cb1-1fb9f154c24d-source-4710f3a1-fa47-d542-e3be-5b5ce38be1fe4710f3a1-fa47-d542-e3be-5b5ce38be1fe-target\\\\\\\"}]\\\"}}\",\n \"Query\": \"我想订酒店\",\n \"MainModelName\": \"workflow-pro\",\n \"CustomVariables\": []\n },\n \"NodeRuns\": [\n {\n \"NodeRunId\": \"nf5a21-6223-4358-b8a789\",\n \"NodeId\": \"e60de932-b050-65ce-261e-027760e93d81\",\n \"WorkflowRunId\": \"1dcf5a21-6223-4358-b8a0-b4d6\",\n \"NodeName\": \"大模型节点\",\n \"NodeType\": 3,\n \"State\": 1,\n \"FailCode\": \"\",\n \"FailMessage\": \"\",\n \"CostMilliseconds\": 1000,\n \"TotalTokens\": 100\n }\n ],\n \"RequestId\": \"925208e7-46fa-43b3-a429-ddcbccad24f6\"\n }\n}",
366
+ "title": "查询工作流运行实例详情"
367
+ }
368
+ ],
345
369
  "ExportAttributeLabel": [
346
370
  {
347
371
  "document": "导出知识标签",
@@ -660,6 +684,14 @@
660
684
  "title": "列表查询单次调用明细"
661
685
  }
662
686
  ],
687
+ "ListWorkflowRuns": [
688
+ {
689
+ "document": "已经通过CreateWorkflowRun接口创建了多个异步运行实例,调用本接口来查询列表。",
690
+ "input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListWorkflowRuns\n<公共请求参数>\n\n{\n \"AppBizId\": \"1854548189164339200\",\n \"Page\": 1,\n \"PageSize\": 10\n}",
691
+ "output": "{\n \"Response\": {\n \"Total\": 1,\n \"WorkflowRuns\": [\n {\n \"RunEnv\": 1,\n \"AppBizId\": \"1854548189164339200\",\n \"WorkflowRunId\": \"run-id-123\",\n \"WorkflowId\": \"workflow-id-456\",\n \"State\": 4,\n \"FailMessage\": \"\",\n \"TotalTokens\": 100,\n \"StartTime\": \"1672531200000\",\n \"EndTime\": \"1672531300000\",\n \"CreateTime\": \"1672531100000\"\n }\n ],\n \"RequestId\": \"925208e7-46fa-43b3-a429-ddcbccad24f6\"\n }\n}",
692
+ "title": "查询工作流异步运行实例的列表"
693
+ }
694
+ ],
663
695
  "ModifyApp": [
664
696
  {
665
697
  "document": "修改应用",
@@ -820,6 +852,14 @@
820
852
  "title": "终止文档解析"
821
853
  }
822
854
  ],
855
+ "StopWorkflowRun": [
856
+ {
857
+ "document": "停止工作流异步运行实例",
858
+ "input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StopWorkflowRun\n<公共请求参数>\n\n{\n \"WorkflowRunId\": \"1dcf5a21-6223-4358-b8a0-b4d6571\"\n}",
859
+ "output": "{\n \"Response\": {\n \"RequestId\": \"925208e7-46fa-43b3-a429-ddcbccad24f6\"\n }\n}",
860
+ "title": "停止工作流异步运行实例"
861
+ }
862
+ ],
823
863
  "UpdateSharedKnowledge": [
824
864
  {
825
865
  "document": "更新共享知识库",
@@ -63,7 +63,7 @@
63
63
  "DeleteAttributeLabels": [
64
64
  {
65
65
  "document": "删除属性标签",
66
- "input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteAttributeLabel\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"AttributeIds\": [\n \"1830996257455365986\"\n ]\n}",
66
+ "input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteAttributeLabels\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"AttributeIds\": [\n \"1830996257455365986\"\n ]\n}",
67
67
  "output": "{\n \"Response\": {\n \"RequestId\": \"1966c811-59a6-4385-bd4f-4ce12bdaa21a\"\n }\n}",
68
68
  "title": "删除属性标签"
69
69
  }
@@ -71,7 +71,7 @@
71
71
  "DeleteDocs": [
72
72
  {
73
73
  "document": "删除文档",
74
- "input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteDoc\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"DocIds\": [\n \"1830996257459865536\"\n ]\n}",
74
+ "input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteDocs\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"DocIds\": [\n \"1830996257459865536\"\n ]\n}",
75
75
  "output": "{\n \"Response\": {\n \"RequestId\": \"f3d05737-0b05-45cd-aa6a-fe16213cfe01\"\n }\n}",
76
76
  "title": "删除文档"
77
77
  }
@@ -87,7 +87,7 @@
87
87
  "DeleteQAs": [
88
88
  {
89
89
  "document": "删除qa",
90
- "input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteQA\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"QaIds\": [\n \"1830996257459865536\"\n ]\n}",
90
+ "input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteQAs\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"QaIds\": [\n \"1830996257459865536\"\n ]\n}",
91
91
  "output": "{\n \"Response\": {\n \"RequestId\": \"6c081879-196a-4df0-87ac-07e73a00952e\"\n }\n}",
92
92
  "title": "删除问答对"
93
93
  }
@@ -143,7 +143,7 @@
143
143
  "ListAttributeLabels": [
144
144
  {
145
145
  "document": "获取标签列表",
146
- "input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListAttributeLabel\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"PageNumber\": 1,\n \"PageSize\": 50\n}",
146
+ "input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListAttributeLabels\n<公共请求参数>\n\n{\n \"KnowledgeBaseId\": \"4901991032\",\n \"PageNumber\": 1,\n \"PageSize\": 50\n}",
147
147
  "output": "{\n \"Response\": {\n \"List\": [\n {\n \"AttributeId\": \"1830880287852529408\",\n \"AttributeKey\": \"stylee\",\n \"AttributeName\": \"风格\",\n \"Labels\": [\n {\n \"LabelId\": \"1830880287852529408\",\n \"LabelName\": \"流行\"\n },\n {\n \"LabelId\": \"1830880287852529408\",\n \"LabelName\": \"现代\"\n }\n ]\n }\n ],\n \"RequestId\": \"c5821f64-064a-448c-9279-b40eff06f4ae\",\n \"TotalCount\": 1\n }\n}",
148
148
  "title": "获取标签列表"
149
149
  }
@@ -220,7 +220,7 @@
220
220
  {
221
221
  "document": "实时语义检索",
222
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 \"ChunkPageNumbers\": [\n 1\n ]\n },\n \"Title\": \"example.pdf\",\n \"Content\": \"国庆放七天假\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"d422c101-96e6-4aeb-b51c-0ccb551a5a52\"\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
224
  "title": "实时语义检索"
225
225
  }
226
226
  ],
@@ -232,7 +232,7 @@
232
232
  "status": "online"
233
233
  },
234
234
  "IDCardOCR": {
235
- "document": "本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。\n\n另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备8种告警功能,如下表所示。\n\n<table style=\"width:650px\">\n <thead>\n <tr>\n <th width=\"150\">扩展能力</th>\n <th width=\"500\">能力项</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td rowspan=\"2\">裁剪功能</td>\n <td>身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)</td>\n </tr>\n <tr>\n <td>人像照片裁剪(自动抠取身份证头像区域)</td>\n </tr>\n <tr>\n <td rowspan=\"9\">告警功能</td>\n </tr>\n <tr>\n <td>身份证边框不完整告警</td>\n </tr>\n <tr>\n <td>身份证复印件告警</td>\n </tr>\n <tr>\n <td>身份证翻拍告警</td>\n </tr>\n <tr>\n <td>身份证框内遮挡告警</td>\n </tr>\n <tr>\n <td>临时身份证告警</td>\n </tr>\n <tr>\n <td>身份证疑似存在PS痕迹告警</td>\n </tr>\n <tr>\n <td>图片模糊告警(可根据图片质量分数判断)</td>\n </tr>\n </tbody>\n </table>\n\n默认接口请求频率限制:20次/秒。",
235
+ "document": "本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。\n\n另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备7种告警功能,如下表所示。\n\n<table style=\"width:650px\">\n <thead>\n <tr>\n <th width=\"150\">扩展能力</th>\n <th width=\"500\">能力项</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td rowspan=\"2\">裁剪功能</td>\n <td>身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)</td>\n </tr>\n <tr>\n <td>人像照片裁剪(自动抠取身份证头像区域)</td>\n </tr>\n <tr>\n <td rowspan=\"9\">告警功能</td>\n </tr>\n <tr>\n <td>身份证边框不完整告警</td>\n </tr>\n <tr>\n <td>身份证复印件告警</td>\n </tr>\n <tr>\n <td>身份证翻拍告警</td>\n </tr>\n <tr>\n <td>身份证框内遮挡告警</td>\n </tr>\n <tr>\n <td>临时身份证告警</td>\n </tr>\n <tr>\n <td>身份证疑似存在PS痕迹告警</td>\n </tr>\n <tr>\n <td>图片模糊告警(可根据图片质量分数判断)</td>\n </tr>\n </tbody>\n </table>\n\n默认接口请求频率限制:20次/秒。",
236
236
  "input": "IDCardOCRRequest",
237
237
  "name": "身份证识别",
238
238
  "output": "IDCardOCRResponse",
@@ -19137,7 +19137,7 @@
19137
19137
  },
19138
19138
  {
19139
19139
  "disabled": false,
19140
- "document": "状态",
19140
+ "document": "状态,该字段仅支持电子行驶证返回",
19141
19141
  "example": "正常",
19142
19142
  "member": "string",
19143
19143
  "name": "StateElectronic",
@@ -19147,7 +19147,7 @@
19147
19147
  },
19148
19148
  {
19149
19149
  "disabled": false,
19150
- "document": "检验有效期",
19150
+ "document": "检验有效期,该字段仅支持电子行驶证返回",
19151
19151
  "example": "2025年09月",
19152
19152
  "member": "string",
19153
19153
  "name": "InspectionValidityTimeElectronic",
@@ -19157,7 +19157,7 @@
19157
19157
  },
19158
19158
  {
19159
19159
  "disabled": false,
19160
- "document": "生成时间",
19160
+ "document": "生成时间,该字段仅支持电子行驶证返回",
19161
19161
  "example": "2024年08月27日",
19162
19162
  "member": "string",
19163
19163
  "name": "GenerationTimeElectronic",
@@ -421,14 +421,14 @@
421
421
  "status": "online"
422
422
  },
423
423
  "UploadConfirmLetter": {
424
- "document": "本接口(UploadConfirmLetter)用于上传证书确认函。",
424
+ "document": "本接口(UploadConfirmLetter)上传证书确认函,不再维护其功能,请用户前往腾讯云证书控制台上传证书确认函",
425
425
  "input": "UploadConfirmLetterRequest",
426
426
  "name": "上传证书确认函",
427
427
  "output": "UploadConfirmLetterResponse",
428
428
  "status": "online"
429
429
  },
430
430
  "UploadRevokeLetter": {
431
- "document": "本接口(UploadRevokeLetter)用于上传证书吊销确认函。",
431
+ "document": "本接口(UploadRevokeLetter)上传证书吊销确认函,不再维护其功能,请用户前往腾讯云证书控制台上传证书吊销确认函",
432
432
  "input": "UploadRevokeLetterRequest",
433
433
  "name": "上传证书吊销确认函",
434
434
  "output": "UploadRevokeLetterResponse",
@@ -1508,7 +1508,7 @@
1508
1508
  },
1509
1509
  {
1510
1510
  "disabled": false,
1511
- "document": "密钥对参数,RSA支持2048,4096。ECC仅支持prime256v1。加密算法选择ECC时,此参数必填\n国密证书类型本字段不用传",
1511
+ "document": "密钥对参数,RSA支持2048,4096。ECC仅支持prime256v1。当 CSR 生成方式为online的时候,此参数必填。\n",
1512
1512
  "example": "2048",
1513
1513
  "member": "string",
1514
1514
  "name": "CsrKeyParameter",
@@ -1517,7 +1517,7 @@
1517
1517
  },
1518
1518
  {
1519
1519
  "disabled": false,
1520
- "document": "加密算法,取值为ECC、RSA, 默认为RSA\n国密证书类型本字段不用传",
1520
+ "document": "加密算法,取值为ECC、RSA, 默认为RSA。当 CSR 生成方式为online的时候,此参数必填。",
1521
1521
  "example": "RSA",
1522
1522
  "member": "string",
1523
1523
  "name": "CsrEncryptAlgo",
@@ -550,7 +550,7 @@
550
550
  {
551
551
  "document": "",
552
552
  "input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeManagers\n<公共请求参数>\n\n{\n \"CompanyId\": 89002,\n \"Offset\": 0,\n \"Limit\": 10,\n \"ManagerName\": \"luke\",\n \"ManagerMail\": \"luke@qq.com\",\n \"Status\": \"ok\",\n \"SearchKey\": \"luke\"\n}",
553
- "output": "{\n \"Response\": {\n \"Managers\": [\n {\n \"Status\": \"ok\",\n \"ManagerFirstName\": \"luke\",\n \"ManagerLastName\": \"zhang\",\n \"ManagerPosition\": \"SRE\",\n \"ManagerPhone\": \"18*******99\",\n \"ManagerMail\": \"luke@qq.com\",\n \"ManagerDepartment\": \"IT\",\n \"CreateTime\": \"2021-09-11 12:00:00\",\n \"DomainCount\": 0,\n \"CertCount\": 0,\n \"ManagerId\": 0,\n \"ExpireTime\": \"2022-09-11 12:00:00\",\n \"SubmitAuditTime\": \"2022-08-11 12:00:00\",\n \"VerifyTime\": \"2022-09-01 12:00:00\",\n \"StatusInfo\": [\n {\n \"Type\": \"ov\",\n \"Status\": \"active\",\n \"CreateTime\": \"2021-09-11 12:00:00\",\n \"ExpireTime\": \"2022-09-11 12:00:00\"\n }\n ]\n }\n ],\n \"TotalCount\": 0,\n \"RequestId\": \"14727a68-3b90-4408-99c9-dea6d7de9456\"\n }\n}",
553
+ "output": "{\n \"Response\": {\n \"Managers\": [\n {\n \"Status\": \"ok\",\n \"ManagerFirstName\": \"luke\",\n \"ManagerLastName\": \"zhang\",\n \"ManagerPosition\": \"SRE\",\n \"ManagerPhone\": \"18*******99\",\n \"ManagerMail\": \"luke@qq.com\",\n \"ManagerDepartment\": \"IT\",\n \"CreateTime\": \"2021-09-11 12:00:00\",\n \"DomainCount\": 0,\n \"CertCount\": 0,\n \"ManagerId\": 0,\n \"ExpireTime\": \"2022-09-11 12:00:00\",\n \"SubmitAuditTime\": \"2022-08-11 12:00:00\",\n \"VerifyTime\": \"2022-09-01 12:00:00\",\n \"StatusInfo\": [\n {\n \"Type\": \"ov\",\n \"Status\": \"active\",\n \"CreateTime\": \"2021-09-11 12:00:00\",\n \"ExpireTime\": \"2022-09-11 12:00:00\",\n \"ManagerPreAuditDomains\": []\n }\n ]\n }\n ],\n \"TotalCount\": 0,\n \"RequestId\": \"14727a68-3b90-4408-99c9-dea6d7de9456\"\n }\n}",
554
554
  "title": "查询管理人列表"
555
555
  }
556
556
  ],
@@ -1675,7 +1675,7 @@
1675
1675
  },
1676
1676
  {
1677
1677
  "disabled": false,
1678
- "document": "过滤器列表。每次请求的 `Filters` 的上限为 10,`Filter.Values` 的上限为 5。参数不支持同时指定 `InstanceIds` 和 `Filters` 。\n\n\n- instance-name\n\n按照【托管实例名称】进行过滤。\n类型:String\n必选:否\n\n- instance-id\n\n按照【托管实例ID】进行过滤。\n类型:String\n必选:否\n\n- register-code-id\n\n按照【托管实例注册码ID】进行过滤。可通过 [DescribeRegisterCodes(查询注册码)](https://cloud.tencent.com/document/api/1340/96925) 接口获取。\n类型:String\n必选:否\n\n- sys-name\n\n按照【操作系统类型】进行过滤,取值:Linux | Windows。\n类型:String\n必选:否\n\n- tag-key\n\n按照【标签键】进行过滤。\n类型:String\n必选:否\n\n- tag-value\n\n按照【标签值】进行过滤。\n类型:String\n必选:否\n\n- tag:tag-key\n\n按照【标签键值对】进行过滤。 tag-key使用具体的标签键进行替换。\n类型:String\n必选:否\n\n例如 Filter 为 {\"Name\": \"tag:key1\", \"Values\": [\"v1\", \"v2\"] } ,即查询所有标签为 key1:v1 或 key1:v2 的资源。\n\n",
1678
+ "document": "过滤器列表。每次请求的 `Filters` 的上限为 10,`Filter.Values` 的上限为 5。参数不支持同时指定 `InstanceIds` 和 `Filters` 。\n\n\n- instance-name\n\n按照【托管实例名称】进行过滤。\n类型:String\n必选:否\n\n- instance-id\n\n按照【托管实例ID】进行过滤。\n类型:String\n必选:否\n\n- register-status\n\n按照【托管实例状态】进行过滤,取值:Online | Offline。\n类型:String\n必选:否\n\n- local-ip\n\n按照【托管实例网卡IP】进行过滤。\n类型:String\n必选:否\n\n- register-code-id\n\n按照【托管实例注册码ID】进行过滤。可通过 [DescribeRegisterCodes(查询注册码)](https://cloud.tencent.com/document/api/1340/96925) 接口获取。\n类型:String\n必选:否\n\n- sys-name\n\n按照【操作系统类型】进行过滤,取值:Linux | Windows。\n类型:String\n必选:否\n\n- tag-key\n\n按照【标签键】进行过滤。\n类型:String\n必选:否\n\n- tag-value\n\n按照【标签值】进行过滤。\n类型:String\n必选:否\n\n- tag:tag-key\n\n按照【标签键值对】进行过滤。 tag-key使用具体的标签键进行替换。\n类型:String\n必选:否\n\n例如 Filter 为 {\"Name\": \"tag:key1\", \"Values\": [\"v1\", \"v2\"] } ,即查询所有标签为 key1:v1 或 key1:v2 的资源。\n\n",
1679
1679
  "example": "[{\"name\":\"register-code-id\",\"value\":\"67c6df82-fa3e-48fb-9c17-07e3e1e9c2c3\"}]",
1680
1680
  "member": "Filter",
1681
1681
  "name": "Filters",
@@ -2827,6 +2827,58 @@ def doDeleteImageCaches(args, parsed_globals):
2827
2827
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2828
2828
 
2829
2829
 
2830
+ def doModifyMasterComponent(args, parsed_globals):
2831
+ g_param = parse_global_arg(parsed_globals)
2832
+
2833
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2834
+ cred = credential.CVMRoleCredential()
2835
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2836
+ cred = credential.STSAssumeRoleCredential(
2837
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2838
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2839
+ )
2840
+ 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):
2841
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2842
+ else:
2843
+ cred = credential.Credential(
2844
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2845
+ )
2846
+ http_profile = HttpProfile(
2847
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2848
+ reqMethod="POST",
2849
+ endpoint=g_param[OptionsDefine.Endpoint],
2850
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2851
+ )
2852
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2853
+ if g_param[OptionsDefine.Language]:
2854
+ profile.language = g_param[OptionsDefine.Language]
2855
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2856
+ client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
2857
+ client._sdkVersion += ("_CLI_" + __version__)
2858
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2859
+ model = models.ModifyMasterComponentRequest()
2860
+ model.from_json_string(json.dumps(args))
2861
+ start_time = time.time()
2862
+ while True:
2863
+ rsp = client.ModifyMasterComponent(model)
2864
+ result = rsp.to_json_string()
2865
+ try:
2866
+ json_obj = json.loads(result)
2867
+ except TypeError as e:
2868
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2869
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2870
+ break
2871
+ cur_time = time.time()
2872
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2873
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2874
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2875
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2876
+ else:
2877
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2878
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2879
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2880
+
2881
+
2830
2882
  def doDeleteClusterRouteTable(args, parsed_globals):
2831
2883
  g_param = parse_global_arg(parsed_globals)
2832
2884
 
@@ -11355,6 +11407,58 @@ def doModifyNodePool(args, parsed_globals):
11355
11407
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11356
11408
 
11357
11409
 
11410
+ def doDescribeMasterComponent(args, parsed_globals):
11411
+ g_param = parse_global_arg(parsed_globals)
11412
+
11413
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
11414
+ cred = credential.CVMRoleCredential()
11415
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
11416
+ cred = credential.STSAssumeRoleCredential(
11417
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
11418
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
11419
+ )
11420
+ 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):
11421
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
11422
+ else:
11423
+ cred = credential.Credential(
11424
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
11425
+ )
11426
+ http_profile = HttpProfile(
11427
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
11428
+ reqMethod="POST",
11429
+ endpoint=g_param[OptionsDefine.Endpoint],
11430
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
11431
+ )
11432
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
11433
+ if g_param[OptionsDefine.Language]:
11434
+ profile.language = g_param[OptionsDefine.Language]
11435
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
11436
+ client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
11437
+ client._sdkVersion += ("_CLI_" + __version__)
11438
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
11439
+ model = models.DescribeMasterComponentRequest()
11440
+ model.from_json_string(json.dumps(args))
11441
+ start_time = time.time()
11442
+ while True:
11443
+ rsp = client.DescribeMasterComponent(model)
11444
+ result = rsp.to_json_string()
11445
+ try:
11446
+ json_obj = json.loads(result)
11447
+ except TypeError as e:
11448
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
11449
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
11450
+ break
11451
+ cur_time = time.time()
11452
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
11453
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
11454
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
11455
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
11456
+ else:
11457
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
11458
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
11459
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11460
+
11461
+
11358
11462
  def doRenewReservedInstances(args, parsed_globals):
11359
11463
  g_param = parse_global_arg(parsed_globals)
11360
11464
 
@@ -12670,6 +12774,7 @@ ACTION_MAP = {
12670
12774
  "DescribeTKEEdgeClusterStatus": doDescribeTKEEdgeClusterStatus,
12671
12775
  "CreateEdgeLogConfig": doCreateEdgeLogConfig,
12672
12776
  "DeleteImageCaches": doDeleteImageCaches,
12777
+ "ModifyMasterComponent": doModifyMasterComponent,
12673
12778
  "DeleteClusterRouteTable": doDeleteClusterRouteTable,
12674
12779
  "ModifyPrometheusAlertPolicy": doModifyPrometheusAlertPolicy,
12675
12780
  "UpdateAddon": doUpdateAddon,
@@ -12834,6 +12939,7 @@ ACTION_MAP = {
12834
12939
  "DescribeEnableVpcCniProgress": doDescribeEnableVpcCniProgress,
12835
12940
  "DescribePrometheusAlertRule": doDescribePrometheusAlertRule,
12836
12941
  "ModifyNodePool": doModifyNodePool,
12942
+ "DescribeMasterComponent": doDescribeMasterComponent,
12837
12943
  "RenewReservedInstances": doRenewReservedInstances,
12838
12944
  "SyncPrometheusTemplate": doSyncPrometheusTemplate,
12839
12945
  "DescribeClusterReleases": doDescribeClusterReleases,
@@ -861,6 +861,13 @@
861
861
  "output": "DescribeLogSwitchesResponse",
862
862
  "status": "online"
863
863
  },
864
+ "DescribeMasterComponent": {
865
+ "document": "进行master组件停机故障演练时,获取master组件运行状态,支持kube-apiserver、kube-scheduler、kube-controller-manager",
866
+ "input": "DescribeMasterComponentRequest",
867
+ "name": "查询托管集群的master组件状态",
868
+ "output": "DescribeMasterComponentResponse",
869
+ "status": "online"
870
+ },
864
871
  "DescribeOSImages": {
865
872
  "document": "获取OS聚合信息",
866
873
  "input": "DescribeOSImagesRequest",
@@ -1351,6 +1358,13 @@
1351
1358
  "output": "ModifyClusterVirtualNodePoolResponse",
1352
1359
  "status": "online"
1353
1360
  },
1361
+ "ModifyMasterComponent": {
1362
+ "document": "修改master组件,支持kube-apiserver、kube-scheduler、kube-controller-manager副本数调整为0和恢复",
1363
+ "input": "ModifyMasterComponentRequest",
1364
+ "name": "修改托管集群master组件",
1365
+ "output": "ModifyMasterComponentResponse",
1366
+ "status": "online"
1367
+ },
1354
1368
  "ModifyNodePoolDesiredCapacityAboutAsg": {
1355
1369
  "document": "修改节点池关联伸缩组的期望实例数",
1356
1370
  "input": "ModifyNodePoolDesiredCapacityAboutAsgRequest",
@@ -11939,6 +11953,62 @@
11939
11953
  ],
11940
11954
  "type": "object"
11941
11955
  },
11956
+ "DescribeMasterComponentRequest": {
11957
+ "document": "DescribeMasterComponent请求参数结构体",
11958
+ "members": [
11959
+ {
11960
+ "disabled": false,
11961
+ "document": "集群ID",
11962
+ "example": "cls-pd41w15e",
11963
+ "member": "string",
11964
+ "name": "ClusterId",
11965
+ "required": true,
11966
+ "type": "string"
11967
+ },
11968
+ {
11969
+ "disabled": false,
11970
+ "document": "master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager",
11971
+ "example": "kube-apiserver",
11972
+ "member": "string",
11973
+ "name": "Component",
11974
+ "required": true,
11975
+ "type": "string"
11976
+ }
11977
+ ],
11978
+ "type": "object"
11979
+ },
11980
+ "DescribeMasterComponentResponse": {
11981
+ "document": "DescribeMasterComponent返回参数结构体",
11982
+ "members": [
11983
+ {
11984
+ "disabled": false,
11985
+ "document": "master组件名称",
11986
+ "example": "kube-apiserver",
11987
+ "member": "string",
11988
+ "name": "Component",
11989
+ "output_required": true,
11990
+ "type": "string",
11991
+ "value_allowed_null": false
11992
+ },
11993
+ {
11994
+ "disabled": false,
11995
+ "document": "master组件状态,三种状态:running、updating、shutdown",
11996
+ "example": "running",
11997
+ "member": "string",
11998
+ "name": "Status",
11999
+ "output_required": true,
12000
+ "type": "string",
12001
+ "value_allowed_null": false
12002
+ },
12003
+ {
12004
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
12005
+ "member": "string",
12006
+ "name": "RequestId",
12007
+ "type": "string"
12008
+ }
12009
+ ],
12010
+ "type": "object"
12011
+ },
11942
12012
  "DescribeOSImagesRequest": {
11943
12013
  "document": "DescribeOSImages请求参数结构体",
11944
12014
  "members": [],
@@ -19374,6 +19444,60 @@
19374
19444
  ],
19375
19445
  "type": "object"
19376
19446
  },
19447
+ "ModifyMasterComponentRequest": {
19448
+ "document": "ModifyMasterComponent请求参数结构体",
19449
+ "members": [
19450
+ {
19451
+ "disabled": false,
19452
+ "document": "集群ID",
19453
+ "example": "cls-pd41w15e",
19454
+ "member": "string",
19455
+ "name": "ClusterId",
19456
+ "required": true,
19457
+ "type": "string"
19458
+ },
19459
+ {
19460
+ "disabled": false,
19461
+ "document": "master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager",
19462
+ "example": "kube-apiserver",
19463
+ "member": "string",
19464
+ "name": "Component",
19465
+ "required": true,
19466
+ "type": "string"
19467
+ },
19468
+ {
19469
+ "disabled": false,
19470
+ "document": "停机或恢复,值只能为:shutdown或restore",
19471
+ "example": "shutdown",
19472
+ "member": "string",
19473
+ "name": "Operation",
19474
+ "required": true,
19475
+ "type": "string"
19476
+ },
19477
+ {
19478
+ "disabled": false,
19479
+ "document": "为true时,不真正执行停机或恢复操作\t",
19480
+ "example": "false",
19481
+ "member": "bool",
19482
+ "name": "DryRun",
19483
+ "required": false,
19484
+ "type": "bool"
19485
+ }
19486
+ ],
19487
+ "type": "object"
19488
+ },
19489
+ "ModifyMasterComponentResponse": {
19490
+ "document": "ModifyMasterComponent返回参数结构体",
19491
+ "members": [
19492
+ {
19493
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
19494
+ "member": "string",
19495
+ "name": "RequestId",
19496
+ "type": "string"
19497
+ }
19498
+ ],
19499
+ "type": "object"
19500
+ },
19377
19501
  "ModifyNodePoolDesiredCapacityAboutAsgRequest": {
19378
19502
  "document": "ModifyNodePoolDesiredCapacityAboutAsg请求参数结构体",
19379
19503
  "members": [
@@ -1020,6 +1020,14 @@
1020
1020
  "title": "查询开关列表接口示例"
1021
1021
  }
1022
1022
  ],
1023
+ "DescribeMasterComponent": [
1024
+ {
1025
+ "document": "",
1026
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CheckComponentVersion\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-pd41w15e\",\n \"Component\": \"kube-apiserver\"\n}",
1027
+ "output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\",\n \"Component\": \"kube-apiserver\",\n \"Status\": \"Shutdown\"\n }\n}",
1028
+ "title": "获取kube-apiserver状态"
1029
+ }
1030
+ ],
1023
1031
  "DescribeOSImages": [
1024
1032
  {
1025
1033
  "document": "",
@@ -1688,6 +1696,14 @@
1688
1696
  "title": "修改超级节点池"
1689
1697
  }
1690
1698
  ],
1699
+ "ModifyMasterComponent": [
1700
+ {
1701
+ "document": "",
1702
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CheckComponentVersion\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-pd41w15e\",\n \"Component\": \"kube-apiserver\",\n \"Operation\": \"shutdown\",\n \"DryRun\": false\n}",
1703
+ "output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\"\n }\n}",
1704
+ "title": "停机kube-apiserver"
1705
+ }
1706
+ ],
1691
1707
  "ModifyNodePoolDesiredCapacityAboutAsg": [
1692
1708
  {
1693
1709
  "document": "修改节点池关联伸缩组的期望实例数示例",