tccli 3.0.1391.1__py2.py3-none-any.whl → 3.0.1414.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.
Potentially problematic release.
This version of tccli might be problematic. Click here for more details.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +2 -1
- tccli/services/ai3d/v20250513/api.json +22 -4
- tccli/services/aiart/aiart_client.py +173 -67
- tccli/services/aiart/v20221229/api.json +193 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/apm/apm_client.py +53 -0
- tccli/services/apm/v20210622/api.json +354 -0
- tccli/services/apm/v20210622/examples.json +8 -0
- tccli/services/asr/v20190614/api.json +3 -3
- tccli/services/autoscaling/v20180419/api.json +24 -2
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/bda/bda_client.py +15 -704
- tccli/services/bda/v20200324/api.json +107 -1819
- tccli/services/bda/v20200324/examples.json +0 -176
- tccli/services/billing/billing_client.py +326 -8
- tccli/services/billing/v20180709/api.json +2200 -255
- tccli/services/billing/v20180709/examples.json +48 -0
- tccli/services/cam/v20190116/api.json +4 -4
- tccli/services/captcha/v20190722/api.json +3 -3
- tccli/services/cat/v20180409/api.json +7 -7
- tccli/services/ccc/ccc_client.py +235 -76
- tccli/services/ccc/v20200210/api.json +502 -18
- tccli/services/ccc/v20200210/examples.json +24 -0
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +257 -44
- tccli/services/cdb/v20170320/examples.json +22 -6
- tccli/services/cdn/cdn_client.py +4 -163
- tccli/services/cdn/v20180606/api.json +61 -310
- tccli/services/cdn/v20180606/examples.json +1 -25
- tccli/services/cdwdoris/v20211228/api.json +51 -12
- tccli/services/cdwpg/v20201230/api.json +11 -1
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +11 -1
- tccli/services/cfs/cfs_client.py +41 -94
- tccli/services/cfs/v20190719/api.json +171 -55
- tccli/services/cfs/v20190719/examples.json +1 -9
- tccli/services/cfw/v20190904/api.json +122 -10
- tccli/services/ckafka/ckafka_client.py +188 -29
- tccli/services/ckafka/v20190819/api.json +277 -4
- tccli/services/ckafka/v20190819/examples.json +25 -1
- tccli/services/clb/clb_client.py +0 -265
- tccli/services/clb/v20180317/api.json +130 -296
- tccli/services/clb/v20180317/examples.json +12 -40
- tccli/services/cloudapp/v20220530/api.json +55 -0
- tccli/services/cloudaudit/v20190319/api.json +11 -0
- tccli/services/cloudhsm/v20191112/api.json +10 -10
- tccli/services/cls/v20201016/api.json +63 -45
- tccli/services/cls/v20201016/examples.json +10 -4
- tccli/services/csip/v20221121/api.json +53 -3
- tccli/services/ctem/v20231128/api.json +320 -0
- tccli/services/ctem/v20231128/examples.json +3 -3
- tccli/services/cvm/cvm_client.py +0 -212
- tccli/services/cvm/v20170312/api.json +91 -843
- tccli/services/cvm/v20170312/examples.json +32 -58
- tccli/services/cynosdb/cynosdb_client.py +167 -8
- tccli/services/cynosdb/v20190107/api.json +1126 -148
- tccli/services/cynosdb/v20190107/examples.json +31 -7
- tccli/services/dbbrain/dbbrain_client.py +246 -87
- tccli/services/dbbrain/v20191016/api.json +74 -62
- tccli/services/dbbrain/v20191016/examples.json +1 -1
- tccli/services/dbbrain/v20210527/api.json +601 -177
- tccli/services/dbbrain/v20210527/examples.json +28 -4
- tccli/services/dc/v20180410/api.json +101 -3
- tccli/services/dcdb/v20180411/api.json +1 -1
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +237 -24
- tccli/services/dlc/v20210125/examples.json +12 -4
- tccli/services/dnspod/dnspod_client.py +106 -0
- tccli/services/dnspod/v20210323/api.json +126 -20
- tccli/services/dnspod/v20210323/examples.json +17 -7
- tccli/services/dsgc/v20190723/api.json +73 -15
- tccli/services/dts/v20180330/api.json +4 -4
- tccli/services/dts/v20211206/api.json +408 -127
- tccli/services/dts/v20211206/examples.json +15 -9
- tccli/services/eb/v20210416/api.json +41 -1
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +56 -9
- tccli/services/emr/v20190103/examples.json +5 -5
- tccli/services/es/es_client.py +273 -8
- tccli/services/es/v20180416/api.json +845 -33
- tccli/services/es/v20180416/examples.json +33 -1
- tccli/services/es/v20250101/api.json +135 -2
- tccli/services/es/v20250101/examples.json +8 -0
- tccli/services/ess/ess_client.py +509 -32
- tccli/services/ess/v20201111/api.json +1366 -113
- tccli/services/ess/v20201111/examples.json +94 -10
- tccli/services/essbasic/v20210526/api.json +265 -27
- tccli/services/essbasic/v20210526/examples.json +12 -12
- tccli/services/facefusion/v20220927/api.json +1 -1
- tccli/services/gaap/v20180529/api.json +18 -8
- tccli/services/gme/gme_client.py +53 -0
- tccli/services/gme/v20180711/api.json +241 -1
- tccli/services/gme/v20180711/examples.json +8 -0
- tccli/services/gs/gs_client.py +216 -4
- tccli/services/gs/v20191118/api.json +202 -1
- tccli/services/gs/v20191118/examples.json +32 -0
- tccli/services/gwlb/gwlb_client.py +53 -0
- tccli/services/gwlb/v20240906/api.json +150 -0
- tccli/services/gwlb/v20240906/examples.json +8 -0
- tccli/services/hai/v20230812/api.json +5 -5
- tccli/services/hunyuan/v20230901/api.json +3 -3
- tccli/services/hunyuan/v20230901/examples.json +1 -1
- tccli/services/iai/v20180301/api.json +227 -207
- tccli/services/iai/v20180301/examples.json +26 -26
- tccli/services/iai/v20200303/api.json +4 -4
- tccli/services/iai/v20200303/examples.json +1 -1
- tccli/services/ioa/ioa_client.py +265 -0
- tccli/services/ioa/v20220601/api.json +781 -85
- tccli/services/ioa/v20220601/examples.json +46 -0
- tccli/services/iotexplorer/iotexplorer_client.py +387 -16
- tccli/services/iotexplorer/v20190423/api.json +1183 -63
- tccli/services/iotexplorer/v20190423/examples.json +92 -0
- tccli/services/keewidb/v20220308/api.json +69 -17
- tccli/services/keewidb/v20220308/examples.json +5 -5
- tccli/services/lcic/v20220817/api.json +61 -15
- tccli/services/lighthouse/v20200324/api.json +193 -24
- tccli/services/lighthouse/v20200324/examples.json +9 -3
- tccli/services/live/v20180801/api.json +6 -6
- tccli/services/live/v20180801/examples.json +7 -1
- tccli/services/lke/lke_client.py +40 -93
- tccli/services/lke/v20231130/api.json +943 -390
- tccli/services/lke/v20231130/examples.json +38 -46
- tccli/services/lkeap/v20240522/api.json +39 -12
- tccli/services/lkeap/v20240522/examples.json +12 -0
- tccli/services/mariadb/v20170312/api.json +1 -1
- tccli/services/mna/v20210119/api.json +11 -2
- tccli/services/mna/v20210119/examples.json +1 -1
- tccli/services/mongodb/mongodb_client.py +334 -16
- tccli/services/mongodb/v20190725/api.json +1092 -383
- tccli/services/mongodb/v20190725/examples.json +69 -21
- tccli/services/monitor/monitor_client.py +106 -0
- tccli/services/monitor/v20180724/api.json +383 -12
- tccli/services/monitor/v20180724/examples.json +24 -2
- tccli/services/mps/mps_client.py +220 -8
- tccli/services/mps/v20190612/api.json +1999 -179
- tccli/services/mps/v20190612/examples.json +56 -6
- tccli/services/mqtt/v20240516/api.json +10 -0
- tccli/services/mqtt/v20240516/examples.json +3 -9
- tccli/services/nlp/v20190408/api.json +6 -6
- tccli/services/oceanus/oceanus_client.py +318 -0
- tccli/services/oceanus/v20190422/api.json +461 -26
- tccli/services/oceanus/v20190422/examples.json +50 -2
- tccli/services/ocr/ocr_client.py +41 -253
- tccli/services/ocr/v20181119/api.json +153 -659
- tccli/services/ocr/v20181119/examples.json +8 -40
- tccli/services/omics/v20221128/api.json +90 -7
- tccli/services/organization/v20210331/api.json +46 -7
- tccli/services/postgres/v20170312/api.json +333 -77
- tccli/services/postgres/v20170312/examples.json +37 -31
- tccli/services/privatedns/privatedns_client.py +641 -58
- tccli/services/privatedns/v20201028/api.json +930 -19
- tccli/services/privatedns/v20201028/examples.json +91 -3
- tccli/services/pts/v20210728/api.json +2 -2
- tccli/services/redis/v20180412/api.json +303 -109
- tccli/services/redis/v20180412/examples.json +12 -12
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/rum/v20210622/api.json +22 -4
- tccli/services/rum/v20210622/examples.json +2 -2
- tccli/services/sms/v20190711/api.json +12 -12
- tccli/services/sms/v20190711/examples.json +9 -3
- tccli/services/sms/v20210111/api.json +13 -13
- tccli/services/sms/v20210111/examples.json +8 -2
- tccli/services/sqlserver/v20180328/api.json +46 -7
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +28 -0
- tccli/services/svp/v20240125/api.json +14 -4
- tccli/services/tag/v20180813/api.json +3 -3
- tccli/services/tat/v20201028/api.json +22 -3
- tccli/services/tcb/v20180608/api.json +1 -1
- tccli/services/tcss/tcss_client.py +228 -69
- tccli/services/tcss/v20201101/api.json +273 -25
- tccli/services/tcss/v20201101/examples.json +26 -2
- tccli/services/teo/teo_client.py +317 -52
- tccli/services/teo/v20220901/api.json +1824 -242
- tccli/services/teo/v20220901/examples.json +109 -21
- tccli/services/thpc/thpc_client.py +57 -4
- tccli/services/thpc/v20230321/api.json +163 -21
- tccli/services/thpc/v20230321/examples.json +13 -5
- tccli/services/tione/tione_client.py +163 -4
- tccli/services/tione/v20211111/api.json +285 -21
- tccli/services/tione/v20211111/examples.json +27 -3
- tccli/services/tke/tke_client.py +8 -8
- tccli/services/tke/v20180525/api.json +168 -130
- tccli/services/tke/v20180525/examples.json +20 -20
- tccli/services/tke/v20220501/api.json +215 -3
- tccli/services/tke/v20220501/examples.json +8 -0
- tccli/services/tms/tms_client.py +106 -0
- tccli/services/tms/v20201229/api.json +249 -3
- tccli/services/tms/v20201229/examples.json +16 -0
- tccli/services/tmt/v20180321/api.json +78 -1
- tccli/services/trabbit/v20230418/api.json +271 -4
- tccli/services/trabbit/v20230418/examples.json +9 -3
- tccli/services/trocket/v20230308/api.json +4 -4
- tccli/services/trro/trro_client.py +106 -0
- tccli/services/trro/v20220325/api.json +456 -0
- tccli/services/trro/v20220325/examples.json +16 -0
- tccli/services/trtc/v20190722/api.json +197 -49
- tccli/services/trtc/v20190722/examples.json +4 -4
- tccli/services/tse/v20201207/api.json +69 -2
- tccli/services/tse/v20201207/examples.json +3 -3
- tccli/services/tsf/v20180326/api.json +70 -7
- tccli/services/tsf/v20180326/examples.json +2 -2
- tccli/services/vclm/v20240523/api.json +145 -0
- tccli/services/vclm/v20240523/examples.json +16 -0
- tccli/services/vclm/vclm_client.py +106 -0
- tccli/services/vcube/v20220410/api.json +1 -1
- tccli/services/vod/v20180717/api.json +7 -7
- tccli/services/vpc/v20170312/api.json +1216 -70
- tccli/services/vpc/v20170312/examples.json +139 -3
- tccli/services/vpc/vpc_client.py +1023 -122
- tccli/services/vrs/v20200824/api.json +11 -11
- tccli/services/vrs/v20200824/examples.json +1 -1
- tccli/services/vtc/v20240223/api.json +14 -14
- tccli/services/waf/v20180125/api.json +812 -143
- tccli/services/waf/v20180125/examples.json +2 -2
- tccli/services/wedata/v20210820/api.json +1281 -601
- tccli/services/wedata/v20210820/examples.json +127 -157
- tccli/services/wedata/v20250806/api.json +19335 -0
- tccli/services/wedata/v20250806/examples.json +999 -0
- tccli/services/wedata/wedata_client.py +7072 -1131
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/METADATA +9 -7
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/RECORD +226 -224
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/WHEEL +1 -1
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1391.1.dist-info/license_files → tccli-3.0.1414.1.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"actions": {
|
|
3
|
+
"CreateDLPFileDetectTask": [
|
|
4
|
+
{
|
|
5
|
+
"document": "直接指定节点鉴定文件",
|
|
6
|
+
"input": "POST / HTTP/1.1\nHost: ioa.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDLPFileDetectTask\n<公共请求参数>\n\n{\n \"DownloadUrl\": \"https://test.docx\",\n \"FileName\": \"test.docx\",\n \"FileMd5\": \"68D9AD663AC025E51A59AA488DFFAF91\",\n \"BalanceType\": 2,\n \"SelectNodeIds\": [\n \"7043A9128D2111111111111111\"\n ]\n}",
|
|
7
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"TaskRequestId\": [\n \"d3d56tbjsehhqaaaaaa\"\n ]\n },\n \"RequestId\": \"7f6a43a2-d23c-49bd-884e-ae5e0f5609e9\"\n }\n}",
|
|
8
|
+
"title": "选择指定节点唯一Id"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"document": "选中分组中一个节点进行鉴定",
|
|
12
|
+
"input": "POST / HTTP/1.1\nHost: ioa.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDLPFileDetectTask\n<公共请求参数>\n\n{\n \"DownloadUrl\": \"http://159.75.26.5:27800/store/CommonResource/TemplateFile/38u4ea7u54c1u4ea4u6613u8ba2u5355.docx\",\n \"FileName\": \"38u4ea7u54c1u4ea4u6613u8ba2u5355.docx\",\n \"FileMd5\": \"68D9AD663AC025E51A59AA488DFFAF91\",\n \"BalanceType\": 1,\n \"GroupId\": \"ioa_default_group_id\"\n}",
|
|
13
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"TaskRequestId\": [\n \"d3jha93jsehqamfdn7fg\"\n ]\n },\n \"RequestId\": \"5c85b62f-1b85-442e-900a-13896c078ca8\"\n }\n}",
|
|
14
|
+
"title": "指定分组唯一Id"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
3
17
|
"CreateDLPFileDetectionTask": [
|
|
4
18
|
{
|
|
5
19
|
"document": "提交文件送检,之后可用查询文件检测结果接口DescribeDLPFileDetectResult,或在控制台日志上查询结果",
|
|
@@ -82,6 +96,22 @@
|
|
|
82
96
|
"title": "~"
|
|
83
97
|
}
|
|
84
98
|
],
|
|
99
|
+
"DescribeDLPEdgeNodeGroups": [
|
|
100
|
+
{
|
|
101
|
+
"document": "",
|
|
102
|
+
"input": "POST / HTTP/1.1\nHost: ioa.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDLPEdgeNodeGroups\n<公共请求参数>\n\n{}",
|
|
103
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Items\": [\n {\n \"EdgeCount\": 0,\n \"GroupId\": \"d2hhqff7sdjjc675mp9g\",\n \"GroupName\": \"测试_6\",\n \"Id\": 11\n },\n {\n \"EdgeCount\": 0,\n \"GroupId\": \"d2hhqdv7sdjjc675mp90\",\n \"GroupName\": \"测试_5\",\n \"Id\": 10\n }\n ],\n \"Page\": {\n \"PageCount\": 1,\n \"PageNum\": 1,\n \"PageSize\": 10,\n \"Total\": 9\n }\n },\n \"RequestId\": \"0f420f64-418a-42d1-900d-7620408f0aa6\"\n }\n}",
|
|
104
|
+
"title": "查询分组"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"DescribeDLPEdgeNodes": [
|
|
108
|
+
{
|
|
109
|
+
"document": "查询指定分组的边缘节点",
|
|
110
|
+
"input": "POST / HTTP/1.1\nHost: ioa.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDLPEdgeNodes\n<公共请求参数>\n\n{\n \"Condition\": {\n \"PageNum\": 1,\n \"PageSize\": 10,\n \"Filters\": [\n {\n \"Field\": \"GroupId\",\n \"Operator\": \"eq\",\n \"Values\": [\n \"ioa_default_group_id\"\n ]\n }\n ],\n \"Sort\": {\n \"Field\": \"UTime\",\n \"Order\": \"desc\"\n }\n }\n}",
|
|
111
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Items\": [\n {\n \"EdgeNodeId\": \"d2hi48v7sdjjc675mpc0\",\n \"EdgeNodeName\": \"深圳节点3\",\n \"GroupId\": \"d2hhpaf7sdjjc675mp5g\",\n \"GroupName\": \"深圳节点\",\n \"Id\": 6,\n \"Ip\": \"1.1.1.3\"\n },\n {\n \"EdgeNodeId\": \"d2hi47f7sdjjc675mpbg\",\n \"EdgeNodeName\": \"深圳节点2\",\n \"GroupId\": \"d2hhpaf7sdjjc675mp5g\",\n \"GroupName\": \"深圳节点\",\n \"Id\": 5,\n \"Ip\": \"1.1.1.2\"\n }\n ],\n \"Page\": {\n \"PageCount\": 1,\n \"PageNum\": 1,\n \"PageSize\": 10,\n \"Total\": 5\n }\n },\n \"RequestId\": \"e853fda5-34fb-42e2-8c72-b8bbcc9e8906\"\n }\n}",
|
|
112
|
+
"title": "查询边缘节点"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
85
115
|
"DescribeDLPFileDetectResult": [
|
|
86
116
|
{
|
|
87
117
|
"document": "查询检测结果,结果失败",
|
|
@@ -96,6 +126,14 @@
|
|
|
96
126
|
"title": "检测成功示例"
|
|
97
127
|
}
|
|
98
128
|
],
|
|
129
|
+
"DescribeDLPFileDetectTaskResult": [
|
|
130
|
+
{
|
|
131
|
+
"document": "查询文件鉴定任务结果",
|
|
132
|
+
"input": "POST / HTTP/1.1\nHost: ioa.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDLPFileDetectTaskResult\n<公共请求参数>\n\n{\n \"TaskRequestId\": \"d3nlqa3jsehkhn9frk5g\"\n}",
|
|
133
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"DetectResult\": \"{\\\"DLPFileDetectionTaskID\\\":\\\"d3nlqa3jsehkhn9frk5g\\\",\\\"DataLevel\\\":\\\"S4\\\",\\\"DetectSource\\\":0,\\\"FileAbstract\\\":\\\"{\\\\\\\"FileAbstract\\\\\\\":\\\\\\\"时间:2023年9月付款方式:现金订单编号:121698231 金额:56r \\\\\\\\n\\\\\\\"}\\\",\\\"FileAttr\\\":[\\\"TXT\\\",\\\"PARSE\\\"],\\\"FileCategory\\\":[\\\"产品交易订单\\\",\\\"终端\\\"],\\\"FileContent\\\":\\\"[{\\\\\\\"RuleId\\\\\\\":\\\\\\\"352327\\\\\\\",\\\\\\\"RuleName\\\\\\\":\\\\\\\"产品交易订单\\\\\\\",\\\\\\\"RuleLevel\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"Hits\\\\\\\":[{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"5133\\\\\\\",\\\\\\\"LibraryType\\\\\\\":\\\\\\\"Keyword\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"时间\\\\\\\",\\\\\\\"Attribute\\\\\\\":\\\\\\\"doc.Content\\\\\\\",\\\\\\\"String\\\\\\\":\\\\\\\"时间\\\\\\\",\\\\\\\"Content\\\\\\\":\\\\\\\"时间:2023年9月付款方式:现金订\\\\\\\"},{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"5004\\\\\\\",\\\\\\\"LibraryType\\\\\\\":\\\\\\\"Keyword\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"付款\\\\\\\",\\\\\\\"Attribute\\\\\\\":\\\\\\\"doc.Content\\\\\\\",\\\\\\\"String\\\\\\\":\\\\\\\"付款\\\\\\\",\\\\\\\"Content\\\\\\\":\\\\\\\"时间:2023年9月付款方式:现金订单编号:121698\\\\\\\"},{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"5477\\\\\\\",\\\\\\\"LibraryType\\\\\\\":\\\\\\\"Keyword\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"订单编号\\\\\\\",\\\\\\\"Attribute\\\\\\\":\\\\\\\"doc.Content\\\\\\\",\\\\\\\"String\\\\\\\":\\\\\\\"订单编号\\\\\\\",\\\\\\\"Content\\\\\\\":\\\\\\\"间:2023年9月付款方式:现金订单编号:121698231 金额:56\\\\\\\"},{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"5091\\\\\\\",\\\\\\\"LibraryType\\\\\\\":\\\\\\\"Keyword\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"金额\\\\\\\",\\\\\\\"Attribute\\\\\\\":\\\\\\\"doc.Content\\\\\\\",\\\\\\\"String\\\\\\\":\\\\\\\"金额\\\\\\\",\\\\\\\"Content\\\\\\\":\\\\\\\"金订单编号:121698231 金额:56r \\\\\\\\n\\\\\\\"},{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"5002\\\\\\\",\\\\\\\"LibraryType\\\\\\\":\\\\\\\"Keyword\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"交易订单\\\\\\\",\\\\\\\"Attribute\\\\\\\":\\\\\\\"doc.Name\\\\\\\",\\\\\\\"String\\\\\\\":\\\\\\\"交易订单\\\\\\\",\\\\\\\"Content\\\\\\\":\\\\\\\"38产品交易订单.docx\\\\\\\"},{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"43\\\\\\\",\\\\\\\"LibraryType\\\\\\\":\\\\\\\"Regex\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"Word文档\\\\\\\",\\\\\\\"Attribute\\\\\\\":\\\\\\\"doc.Type\\\\\\\",\\\\\\\"String\\\\\\\":\\\\\\\".docx\\\\\\\",\\\\\\\"Content\\\\\\\":\\\\\\\".docx\\\\\\\"}],\\\\\\\"HitsTotal\\\\\\\":6,\\\\\\\"HitsUniqueTotal\\\\\\\":0,\\\\\\\"HitsLibKWTotal\\\\\\\":[{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"5133\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"时间\\\\\\\",\\\\\\\"Count\\\\\\\":1,\\\\\\\"UniqueCount\\\\\\\":0},{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"5004\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"付款\\\\\\\",\\\\\\\"Count\\\\\\\":1,\\\\\\\"UniqueCount\\\\\\\":0},{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"5477\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"订单编号\\\\\\\",\\\\\\\"Count\\\\\\\":1,\\\\\\\"UniqueCount\\\\\\\":0},{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"5091\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"金额\\\\\\\",\\\\\\\"Count\\\\\\\":1,\\\\\\\"UniqueCount\\\\\\\":0},{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"5002\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"交易订单\\\\\\\",\\\\\\\"Count\\\\\\\":1,\\\\\\\"UniqueCount\\\\\\\":0},{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"43\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"Word文档\\\\\\\",\\\\\\\"Count\\\\\\\":1,\\\\\\\"UniqueCount\\\\\\\":0}]},{\\\\\\\"RuleId\\\\\\\":\\\\\\\"384077\\\\\\\",\\\\\\\"RuleName\\\\\\\":\\\\\\\"终端\\\\\\\",\\\\\\\"RuleLevel\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"Hits\\\\\\\":[{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"2887690\\\\\\\",\\\\\\\"LibraryType\\\\\\\":\\\\\\\"Dict\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"iao手册\\\\\\\",\\\\\\\"Attribute\\\\\\\":\\\\\\\"doc.Content\\\\\\\",\\\\\\\"String\\\\\\\":\\\\\\\"时间\\\\\\\",\\\\\\\"Content\\\\\\\":\\\\\\\"时间:2023年9月付款方式:现金订\\\\\\\"},{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"2887690\\\\\\\",\\\\\\\"LibraryType\\\\\\\":\\\\\\\"Dict\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"iao手册\\\\\\\",\\\\\\\"Attribute\\\\\\\":\\\\\\\"doc.Content\\\\\\\",\\\\\\\"String\\\\\\\":\\\\\\\"方式\\\\\\\",\\\\\\\"Content\\\\\\\":\\\\\\\"时间:2023年9月付款方式:现金订单编号:12169823\\\\\\\"}],\\\\\\\"HitsTotal\\\\\\\":2,\\\\\\\"HitsUniqueTotal\\\\\\\":0,\\\\\\\"HitsLibKWTotal\\\\\\\":[{\\\\\\\"LibraryId\\\\\\\":\\\\\\\"2887690\\\\\\\",\\\\\\\"LibraryName\\\\\\\":\\\\\\\"iao手册\\\\\\\",\\\\\\\"Count\\\\\\\":2,\\\\\\\"UniqueCount\\\\\\\":0}]}]\\\",\\\"FileMd5\\\":\\\"68d9ad663ac025e51a59aa488dffaf91\\\",\\\"FileName\\\":\\\"38产品交易订单.docx\\\",\\\"FilePath\\\":\\\"\\\",\\\"FileSize\\\":12595,\\\"FileSource\\\":0,\\\"FileType\\\":\\\".docx\\\",\\\"FileTypeName\\\":\\\"Word文档\\\",\\\"FinalDataLevel\\\":\\\"S4\\\",\\\"Guid\\\":\\\"\\\",\\\"Intercept\\\":0,\\\"InterceptLog\\\":0,\\\"InterceptStatus\\\":0,\\\"NodeId\\\":\\\"4A7757D6984411F087815254003FE2DD68D23A50\\\",\\\"NodeIp\\\":\\\"172.16.16.12\\\",\\\"NodeName\\\":\\\"207\\\",\\\"OperateTime\\\":\\\"2025-10-15 16:36:56\\\",\\\"PolicyId\\\":\\\"\\\",\\\"PolicyName\\\":\\\"\\\",\\\"RandomPath\\\":\\\"\\\",\\\"ReportTime\\\":\\\"1760517417\\\",\\\"RiskChan\\\":\\\"\\\",\\\"RiskLevel\\\":0,\\\"RiskType\\\":\\\"\\\",\\\"TaskFileMd5\\\":\\\"\\\",\\\"TaskFileName\\\":\\\"38产品交易订单.docx\\\",\\\"TenantId\\\":\\\"251272654\\\",\\\"UploadFileName\\\":\\\"\\\",\\\"Url\\\":\\\"http://159.75.26.5:27800/store/CommonResource/TemplateFile/38产品交易订单.docx\\\",\\\"ZipFileCount\\\":0}\",\n \"FileMd5\": \"\",\n \"FileName\": \"38产品交易订单.docx\",\n \"Message\": \"task:d3nlqa3jsehkhn9frk5g检测成功\",\n \"Status\": 4\n },\n \"RequestId\": \"9e7751f3-eb9e-4e7e-9d3e-dc69ab6ba322\"\n }\n}",
|
|
134
|
+
"title": "查询文件鉴定任务结果"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
99
137
|
"DescribeDeviceChildGroups": [
|
|
100
138
|
{
|
|
101
139
|
"document": "测试",
|
|
@@ -202,6 +240,14 @@
|
|
|
202
240
|
"title": "示例1"
|
|
203
241
|
}
|
|
204
242
|
],
|
|
243
|
+
"ExportDeviceDownloadTask": [
|
|
244
|
+
{
|
|
245
|
+
"document": "测试全网终端分组(ID=1120)的数据导出",
|
|
246
|
+
"input": "POST / HTTP/1.1\nHost: ioa.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ExportDeviceDownloadTask\n<公共请求参数>\n\n{\n \"OsType\": 0,\n \"DomainInstanceId\": \"1\",\n \"GroupId\": 1120,\n \"ExportType\": 0\n}",
|
|
247
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"DownloadURL\": \"\",\n \"TaskId\": 186954\n },\n \"RequestId\": \"23b2ad49-f082-401c-a3f1-8b903291d5a6\"\n }\n}",
|
|
248
|
+
"title": "测试全网终端分组(ID=1120)的数据导出"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
205
251
|
"ExportSoftwareInformationList": [
|
|
206
252
|
{
|
|
207
253
|
"document": "",
|
|
@@ -2149,6 +2149,58 @@ def doDeleteTopicRule(args, parsed_globals):
|
|
|
2149
2149
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2150
2150
|
|
|
2151
2151
|
|
|
2152
|
+
def doDescribeTWeTalkProductConfigV2(args, parsed_globals):
|
|
2153
|
+
g_param = parse_global_arg(parsed_globals)
|
|
2154
|
+
|
|
2155
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
2156
|
+
cred = credential.CVMRoleCredential()
|
|
2157
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
2158
|
+
cred = credential.STSAssumeRoleCredential(
|
|
2159
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2160
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2161
|
+
)
|
|
2162
|
+
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):
|
|
2163
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2164
|
+
else:
|
|
2165
|
+
cred = credential.Credential(
|
|
2166
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
2167
|
+
)
|
|
2168
|
+
http_profile = HttpProfile(
|
|
2169
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
2170
|
+
reqMethod="POST",
|
|
2171
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2172
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2173
|
+
)
|
|
2174
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
2175
|
+
if g_param[OptionsDefine.Language]:
|
|
2176
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
2177
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2178
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2179
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
2180
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2181
|
+
model = models.DescribeTWeTalkProductConfigV2Request()
|
|
2182
|
+
model.from_json_string(json.dumps(args))
|
|
2183
|
+
start_time = time.time()
|
|
2184
|
+
while True:
|
|
2185
|
+
rsp = client.DescribeTWeTalkProductConfigV2(model)
|
|
2186
|
+
result = rsp.to_json_string()
|
|
2187
|
+
try:
|
|
2188
|
+
json_obj = json.loads(result)
|
|
2189
|
+
except TypeError as e:
|
|
2190
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
2191
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
2192
|
+
break
|
|
2193
|
+
cur_time = time.time()
|
|
2194
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
2195
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
2196
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
2197
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
2198
|
+
else:
|
|
2199
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
2200
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
2201
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2202
|
+
|
|
2203
|
+
|
|
2152
2204
|
def doDeleteOtaModule(args, parsed_globals):
|
|
2153
2205
|
g_param = parse_global_arg(parsed_globals)
|
|
2154
2206
|
|
|
@@ -5841,7 +5893,7 @@ def doBindProducts(args, parsed_globals):
|
|
|
5841
5893
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5842
5894
|
|
|
5843
5895
|
|
|
5844
|
-
def
|
|
5896
|
+
def doDescribeSubscribedTopicPolicy(args, parsed_globals):
|
|
5845
5897
|
g_param = parse_global_arg(parsed_globals)
|
|
5846
5898
|
|
|
5847
5899
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -5870,11 +5922,11 @@ def doRemoveUserByRoomIdFromTRTC(args, parsed_globals):
|
|
|
5870
5922
|
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
|
5871
5923
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
5872
5924
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
5873
|
-
model = models.
|
|
5925
|
+
model = models.DescribeSubscribedTopicPolicyRequest()
|
|
5874
5926
|
model.from_json_string(json.dumps(args))
|
|
5875
5927
|
start_time = time.time()
|
|
5876
5928
|
while True:
|
|
5877
|
-
rsp = client.
|
|
5929
|
+
rsp = client.DescribeSubscribedTopicPolicy(model)
|
|
5878
5930
|
result = rsp.to_json_string()
|
|
5879
5931
|
try:
|
|
5880
5932
|
json_obj = json.loads(result)
|
|
@@ -6153,6 +6205,58 @@ def doUpdateFirmware(args, parsed_globals):
|
|
|
6153
6205
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6154
6206
|
|
|
6155
6207
|
|
|
6208
|
+
def doActivateTWeCallLicense(args, parsed_globals):
|
|
6209
|
+
g_param = parse_global_arg(parsed_globals)
|
|
6210
|
+
|
|
6211
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
6212
|
+
cred = credential.CVMRoleCredential()
|
|
6213
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
6214
|
+
cred = credential.STSAssumeRoleCredential(
|
|
6215
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6216
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6217
|
+
)
|
|
6218
|
+
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):
|
|
6219
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6220
|
+
else:
|
|
6221
|
+
cred = credential.Credential(
|
|
6222
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
6223
|
+
)
|
|
6224
|
+
http_profile = HttpProfile(
|
|
6225
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
6226
|
+
reqMethod="POST",
|
|
6227
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6228
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6229
|
+
)
|
|
6230
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
6231
|
+
if g_param[OptionsDefine.Language]:
|
|
6232
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
6233
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
6234
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
|
6235
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
6236
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
6237
|
+
model = models.ActivateTWeCallLicenseRequest()
|
|
6238
|
+
model.from_json_string(json.dumps(args))
|
|
6239
|
+
start_time = time.time()
|
|
6240
|
+
while True:
|
|
6241
|
+
rsp = client.ActivateTWeCallLicense(model)
|
|
6242
|
+
result = rsp.to_json_string()
|
|
6243
|
+
try:
|
|
6244
|
+
json_obj = json.loads(result)
|
|
6245
|
+
except TypeError as e:
|
|
6246
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
6247
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
6248
|
+
break
|
|
6249
|
+
cur_time = time.time()
|
|
6250
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
6251
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
6252
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
6253
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
6254
|
+
else:
|
|
6255
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
6256
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
6257
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6258
|
+
|
|
6259
|
+
|
|
6156
6260
|
def doGetTWeCallActiveStatus(args, parsed_globals):
|
|
6157
6261
|
g_param = parse_global_arg(parsed_globals)
|
|
6158
6262
|
|
|
@@ -6205,6 +6309,58 @@ def doGetTWeCallActiveStatus(args, parsed_globals):
|
|
|
6205
6309
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6206
6310
|
|
|
6207
6311
|
|
|
6312
|
+
def doCreateTWeSeeService(args, parsed_globals):
|
|
6313
|
+
g_param = parse_global_arg(parsed_globals)
|
|
6314
|
+
|
|
6315
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
6316
|
+
cred = credential.CVMRoleCredential()
|
|
6317
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
6318
|
+
cred = credential.STSAssumeRoleCredential(
|
|
6319
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6320
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6321
|
+
)
|
|
6322
|
+
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):
|
|
6323
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6324
|
+
else:
|
|
6325
|
+
cred = credential.Credential(
|
|
6326
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
6327
|
+
)
|
|
6328
|
+
http_profile = HttpProfile(
|
|
6329
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
6330
|
+
reqMethod="POST",
|
|
6331
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6332
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6333
|
+
)
|
|
6334
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
6335
|
+
if g_param[OptionsDefine.Language]:
|
|
6336
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
6337
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
6338
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
|
6339
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
6340
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
6341
|
+
model = models.CreateTWeSeeServiceRequest()
|
|
6342
|
+
model.from_json_string(json.dumps(args))
|
|
6343
|
+
start_time = time.time()
|
|
6344
|
+
while True:
|
|
6345
|
+
rsp = client.CreateTWeSeeService(model)
|
|
6346
|
+
result = rsp.to_json_string()
|
|
6347
|
+
try:
|
|
6348
|
+
json_obj = json.loads(result)
|
|
6349
|
+
except TypeError as e:
|
|
6350
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
6351
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
6352
|
+
break
|
|
6353
|
+
cur_time = time.time()
|
|
6354
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
6355
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
6356
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
6357
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
6358
|
+
else:
|
|
6359
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
6360
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
6361
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6362
|
+
|
|
6363
|
+
|
|
6208
6364
|
def doDescribeGatewaySubProducts(args, parsed_globals):
|
|
6209
6365
|
g_param = parse_global_arg(parsed_globals)
|
|
6210
6366
|
|
|
@@ -6257,6 +6413,58 @@ def doDescribeGatewaySubProducts(args, parsed_globals):
|
|
|
6257
6413
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6258
6414
|
|
|
6259
6415
|
|
|
6416
|
+
def doDeleteDevices(args, parsed_globals):
|
|
6417
|
+
g_param = parse_global_arg(parsed_globals)
|
|
6418
|
+
|
|
6419
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
6420
|
+
cred = credential.CVMRoleCredential()
|
|
6421
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
6422
|
+
cred = credential.STSAssumeRoleCredential(
|
|
6423
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6424
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6425
|
+
)
|
|
6426
|
+
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):
|
|
6427
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6428
|
+
else:
|
|
6429
|
+
cred = credential.Credential(
|
|
6430
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
6431
|
+
)
|
|
6432
|
+
http_profile = HttpProfile(
|
|
6433
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
6434
|
+
reqMethod="POST",
|
|
6435
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6436
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6437
|
+
)
|
|
6438
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
6439
|
+
if g_param[OptionsDefine.Language]:
|
|
6440
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
6441
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
6442
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
|
6443
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
6444
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
6445
|
+
model = models.DeleteDevicesRequest()
|
|
6446
|
+
model.from_json_string(json.dumps(args))
|
|
6447
|
+
start_time = time.time()
|
|
6448
|
+
while True:
|
|
6449
|
+
rsp = client.DeleteDevices(model)
|
|
6450
|
+
result = rsp.to_json_string()
|
|
6451
|
+
try:
|
|
6452
|
+
json_obj = json.loads(result)
|
|
6453
|
+
except TypeError as e:
|
|
6454
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
6455
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
6456
|
+
break
|
|
6457
|
+
cur_time = time.time()
|
|
6458
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
6459
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
6460
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
6461
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
6462
|
+
else:
|
|
6463
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
6464
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
6465
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6466
|
+
|
|
6467
|
+
|
|
6260
6468
|
def doCreateOtaModule(args, parsed_globals):
|
|
6261
6469
|
g_param = parse_global_arg(parsed_globals)
|
|
6262
6470
|
|
|
@@ -6465,6 +6673,58 @@ def doDescribeDeviceFirmwares(args, parsed_globals):
|
|
|
6465
6673
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6466
6674
|
|
|
6467
6675
|
|
|
6676
|
+
def doRemoveUserByRoomIdFromTRTC(args, parsed_globals):
|
|
6677
|
+
g_param = parse_global_arg(parsed_globals)
|
|
6678
|
+
|
|
6679
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
6680
|
+
cred = credential.CVMRoleCredential()
|
|
6681
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
6682
|
+
cred = credential.STSAssumeRoleCredential(
|
|
6683
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6684
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6685
|
+
)
|
|
6686
|
+
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):
|
|
6687
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6688
|
+
else:
|
|
6689
|
+
cred = credential.Credential(
|
|
6690
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
6691
|
+
)
|
|
6692
|
+
http_profile = HttpProfile(
|
|
6693
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
6694
|
+
reqMethod="POST",
|
|
6695
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6696
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6697
|
+
)
|
|
6698
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
6699
|
+
if g_param[OptionsDefine.Language]:
|
|
6700
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
6701
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
6702
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
|
6703
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
6704
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
6705
|
+
model = models.RemoveUserByRoomIdFromTRTCRequest()
|
|
6706
|
+
model.from_json_string(json.dumps(args))
|
|
6707
|
+
start_time = time.time()
|
|
6708
|
+
while True:
|
|
6709
|
+
rsp = client.RemoveUserByRoomIdFromTRTC(model)
|
|
6710
|
+
result = rsp.to_json_string()
|
|
6711
|
+
try:
|
|
6712
|
+
json_obj = json.loads(result)
|
|
6713
|
+
except TypeError as e:
|
|
6714
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
6715
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
6716
|
+
break
|
|
6717
|
+
cur_time = time.time()
|
|
6718
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
6719
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
6720
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
6721
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
6722
|
+
else:
|
|
6723
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
6724
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
6725
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6726
|
+
|
|
6727
|
+
|
|
6468
6728
|
def doBindDevices(args, parsed_globals):
|
|
6469
6729
|
g_param = parse_global_arg(parsed_globals)
|
|
6470
6730
|
|
|
@@ -6725,6 +6985,58 @@ def doGetFamilyDeviceUserList(args, parsed_globals):
|
|
|
6725
6985
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6726
6986
|
|
|
6727
6987
|
|
|
6988
|
+
def doModifyTWeTalkProductConfigV2(args, parsed_globals):
|
|
6989
|
+
g_param = parse_global_arg(parsed_globals)
|
|
6990
|
+
|
|
6991
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
6992
|
+
cred = credential.CVMRoleCredential()
|
|
6993
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
6994
|
+
cred = credential.STSAssumeRoleCredential(
|
|
6995
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6996
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6997
|
+
)
|
|
6998
|
+
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):
|
|
6999
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7000
|
+
else:
|
|
7001
|
+
cred = credential.Credential(
|
|
7002
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
7003
|
+
)
|
|
7004
|
+
http_profile = HttpProfile(
|
|
7005
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
7006
|
+
reqMethod="POST",
|
|
7007
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7008
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7009
|
+
)
|
|
7010
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
7011
|
+
if g_param[OptionsDefine.Language]:
|
|
7012
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
7013
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
7014
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7015
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
7016
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7017
|
+
model = models.ModifyTWeTalkProductConfigV2Request()
|
|
7018
|
+
model.from_json_string(json.dumps(args))
|
|
7019
|
+
start_time = time.time()
|
|
7020
|
+
while True:
|
|
7021
|
+
rsp = client.ModifyTWeTalkProductConfigV2(model)
|
|
7022
|
+
result = rsp.to_json_string()
|
|
7023
|
+
try:
|
|
7024
|
+
json_obj = json.loads(result)
|
|
7025
|
+
except TypeError as e:
|
|
7026
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
7027
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
7028
|
+
break
|
|
7029
|
+
cur_time = time.time()
|
|
7030
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
7031
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
7032
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
7033
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
7034
|
+
else:
|
|
7035
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
7036
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
7037
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7038
|
+
|
|
7039
|
+
|
|
6728
7040
|
def doModifyCloudStorageAIService(args, parsed_globals):
|
|
6729
7041
|
g_param = parse_global_arg(parsed_globals)
|
|
6730
7042
|
|
|
@@ -6985,7 +7297,7 @@ def doInvokeVideosKeywordsAnalyzer(args, parsed_globals):
|
|
|
6985
7297
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6986
7298
|
|
|
6987
7299
|
|
|
6988
|
-
def
|
|
7300
|
+
def doUpdateOtaTaskStatus(args, parsed_globals):
|
|
6989
7301
|
g_param = parse_global_arg(parsed_globals)
|
|
6990
7302
|
|
|
6991
7303
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -7014,11 +7326,11 @@ def doDescribeTWeSeeRecognitionTask(args, parsed_globals):
|
|
|
7014
7326
|
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7015
7327
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
7016
7328
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7017
|
-
model = models.
|
|
7329
|
+
model = models.UpdateOtaTaskStatusRequest()
|
|
7018
7330
|
model.from_json_string(json.dumps(args))
|
|
7019
7331
|
start_time = time.time()
|
|
7020
7332
|
while True:
|
|
7021
|
-
rsp = client.
|
|
7333
|
+
rsp = client.UpdateOtaTaskStatus(model)
|
|
7022
7334
|
result = rsp.to_json_string()
|
|
7023
7335
|
try:
|
|
7024
7336
|
json_obj = json.loads(result)
|
|
@@ -7193,7 +7505,7 @@ def doCreateExternalSourceAIServiceTask(args, parsed_globals):
|
|
|
7193
7505
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7194
7506
|
|
|
7195
7507
|
|
|
7196
|
-
def
|
|
7508
|
+
def doGetTWeTalkProductConfigListV2(args, parsed_globals):
|
|
7197
7509
|
g_param = parse_global_arg(parsed_globals)
|
|
7198
7510
|
|
|
7199
7511
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -7222,11 +7534,11 @@ def doActivateTWeCallLicense(args, parsed_globals):
|
|
|
7222
7534
|
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7223
7535
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
7224
7536
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7225
|
-
model = models.
|
|
7537
|
+
model = models.GetTWeTalkProductConfigListV2Request()
|
|
7226
7538
|
model.from_json_string(json.dumps(args))
|
|
7227
7539
|
start_time = time.time()
|
|
7228
7540
|
while True:
|
|
7229
|
-
rsp = client.
|
|
7541
|
+
rsp = client.GetTWeTalkProductConfigListV2(model)
|
|
7230
7542
|
result = rsp.to_json_string()
|
|
7231
7543
|
try:
|
|
7232
7544
|
json_obj = json.loads(result)
|
|
@@ -7349,7 +7661,7 @@ def doDeleteCloudStorageEvent(args, parsed_globals):
|
|
|
7349
7661
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7350
7662
|
|
|
7351
7663
|
|
|
7352
|
-
def
|
|
7664
|
+
def doCreateTWeTalkProductConfigV2(args, parsed_globals):
|
|
7353
7665
|
g_param = parse_global_arg(parsed_globals)
|
|
7354
7666
|
|
|
7355
7667
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -7378,11 +7690,11 @@ def doDeleteDevices(args, parsed_globals):
|
|
|
7378
7690
|
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7379
7691
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
7380
7692
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7381
|
-
model = models.
|
|
7693
|
+
model = models.CreateTWeTalkProductConfigV2Request()
|
|
7382
7694
|
model.from_json_string(json.dumps(args))
|
|
7383
7695
|
start_time = time.time()
|
|
7384
7696
|
while True:
|
|
7385
|
-
rsp = client.
|
|
7697
|
+
rsp = client.CreateTWeTalkProductConfigV2(model)
|
|
7386
7698
|
result = rsp.to_json_string()
|
|
7387
7699
|
try:
|
|
7388
7700
|
json_obj = json.loads(result)
|
|
@@ -9429,6 +9741,58 @@ def doCreateFenceBind(args, parsed_globals):
|
|
|
9429
9741
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9430
9742
|
|
|
9431
9743
|
|
|
9744
|
+
def doDescribeTWeSeeRecognitionTask(args, parsed_globals):
|
|
9745
|
+
g_param = parse_global_arg(parsed_globals)
|
|
9746
|
+
|
|
9747
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
9748
|
+
cred = credential.CVMRoleCredential()
|
|
9749
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
9750
|
+
cred = credential.STSAssumeRoleCredential(
|
|
9751
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
9752
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
9753
|
+
)
|
|
9754
|
+
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):
|
|
9755
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
9756
|
+
else:
|
|
9757
|
+
cred = credential.Credential(
|
|
9758
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
9759
|
+
)
|
|
9760
|
+
http_profile = HttpProfile(
|
|
9761
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
9762
|
+
reqMethod="POST",
|
|
9763
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
9764
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
9765
|
+
)
|
|
9766
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
9767
|
+
if g_param[OptionsDefine.Language]:
|
|
9768
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
9769
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
9770
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
|
9771
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
9772
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
9773
|
+
model = models.DescribeTWeSeeRecognitionTaskRequest()
|
|
9774
|
+
model.from_json_string(json.dumps(args))
|
|
9775
|
+
start_time = time.time()
|
|
9776
|
+
while True:
|
|
9777
|
+
rsp = client.DescribeTWeSeeRecognitionTask(model)
|
|
9778
|
+
result = rsp.to_json_string()
|
|
9779
|
+
try:
|
|
9780
|
+
json_obj = json.loads(result)
|
|
9781
|
+
except TypeError as e:
|
|
9782
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
9783
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
9784
|
+
break
|
|
9785
|
+
cur_time = time.time()
|
|
9786
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
9787
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
9788
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
9789
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
9790
|
+
else:
|
|
9791
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
9792
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
9793
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9794
|
+
|
|
9795
|
+
|
|
9432
9796
|
def doDescribeCloudStoragePackageConsumeDetails(args, parsed_globals):
|
|
9433
9797
|
g_param = parse_global_arg(parsed_globals)
|
|
9434
9798
|
|
|
@@ -9533,6 +9897,7 @@ ACTION_MAP = {
|
|
|
9533
9897
|
"DescribeUnbindedDevices": doDescribeUnbindedDevices,
|
|
9534
9898
|
"CreateIotVideoCloudStorage": doCreateIotVideoCloudStorage,
|
|
9535
9899
|
"DeleteTopicRule": doDeleteTopicRule,
|
|
9900
|
+
"DescribeTWeTalkProductConfigV2": doDescribeTWeTalkProductConfigV2,
|
|
9536
9901
|
"DeleteOtaModule": doDeleteOtaModule,
|
|
9537
9902
|
"DescribeCloudStorageAIService": doDescribeCloudStorageAIService,
|
|
9538
9903
|
"DescribeFenceBindList": doDescribeFenceBindList,
|
|
@@ -9604,36 +9969,41 @@ ACTION_MAP = {
|
|
|
9604
9969
|
"UpdateDevicesEnableState": doUpdateDevicesEnableState,
|
|
9605
9970
|
"ModifyProject": doModifyProject,
|
|
9606
9971
|
"BindProducts": doBindProducts,
|
|
9607
|
-
"
|
|
9972
|
+
"DescribeSubscribedTopicPolicy": doDescribeSubscribedTopicPolicy,
|
|
9608
9973
|
"SearchPositionSpace": doSearchPositionSpace,
|
|
9609
9974
|
"ResetTWeCallDevice": doResetTWeCallDevice,
|
|
9610
9975
|
"ModifyTopicPolicy": doModifyTopicPolicy,
|
|
9611
9976
|
"DescribeSpaceFenceEventList": doDescribeSpaceFenceEventList,
|
|
9612
9977
|
"UpdateFirmware": doUpdateFirmware,
|
|
9978
|
+
"ActivateTWeCallLicense": doActivateTWeCallLicense,
|
|
9613
9979
|
"GetTWeCallActiveStatus": doGetTWeCallActiveStatus,
|
|
9980
|
+
"CreateTWeSeeService": doCreateTWeSeeService,
|
|
9614
9981
|
"DescribeGatewaySubProducts": doDescribeGatewaySubProducts,
|
|
9982
|
+
"DeleteDevices": doDeleteDevices,
|
|
9615
9983
|
"CreateOtaModule": doCreateOtaModule,
|
|
9616
9984
|
"DescribeDevicePositionList": doDescribeDevicePositionList,
|
|
9617
9985
|
"DescribeFirmware": doDescribeFirmware,
|
|
9618
9986
|
"DescribeDeviceFirmwares": doDescribeDeviceFirmwares,
|
|
9987
|
+
"RemoveUserByRoomIdFromTRTC": doRemoveUserByRoomIdFromTRTC,
|
|
9619
9988
|
"BindDevices": doBindDevices,
|
|
9620
9989
|
"CreateBatchProduction": doCreateBatchProduction,
|
|
9621
9990
|
"CreateCloudStorageAIServiceTask": doCreateCloudStorageAIServiceTask,
|
|
9622
9991
|
"DisableTopicRule": doDisableTopicRule,
|
|
9623
9992
|
"GetFamilyDeviceUserList": doGetFamilyDeviceUserList,
|
|
9993
|
+
"ModifyTWeTalkProductConfigV2": doModifyTWeTalkProductConfigV2,
|
|
9624
9994
|
"ModifyCloudStorageAIService": doModifyCloudStorageAIService,
|
|
9625
9995
|
"DescribeProject": doDescribeProject,
|
|
9626
9996
|
"DescribeTWeTalkProductConfig": doDescribeTWeTalkProductConfig,
|
|
9627
9997
|
"GetStudioProductList": doGetStudioProductList,
|
|
9628
9998
|
"InvokeVideosKeywordsAnalyzer": doInvokeVideosKeywordsAnalyzer,
|
|
9629
|
-
"
|
|
9999
|
+
"UpdateOtaTaskStatus": doUpdateOtaTaskStatus,
|
|
9630
10000
|
"DescribeDevice": doDescribeDevice,
|
|
9631
10001
|
"DescribeBatchProduction": doDescribeBatchProduction,
|
|
9632
10002
|
"CreateExternalSourceAIServiceTask": doCreateExternalSourceAIServiceTask,
|
|
9633
|
-
"
|
|
10003
|
+
"GetTWeTalkProductConfigListV2": doGetTWeTalkProductConfigListV2,
|
|
9634
10004
|
"UpdateDeviceTWeCallAuthorizeStatus": doUpdateDeviceTWeCallAuthorizeStatus,
|
|
9635
10005
|
"DeleteCloudStorageEvent": doDeleteCloudStorageEvent,
|
|
9636
|
-
"
|
|
10006
|
+
"CreateTWeTalkProductConfigV2": doCreateTWeTalkProductConfigV2,
|
|
9637
10007
|
"CreateDeviceChannel": doCreateDeviceChannel,
|
|
9638
10008
|
"CheckFirmwareUpdate": doCheckFirmwareUpdate,
|
|
9639
10009
|
"GetGatewaySubDeviceList": doGetGatewaySubDeviceList,
|
|
@@ -9673,6 +10043,7 @@ ACTION_MAP = {
|
|
|
9673
10043
|
"CreatePositionSpace": doCreatePositionSpace,
|
|
9674
10044
|
"DescribeDeviceFirmWare": doDescribeDeviceFirmWare,
|
|
9675
10045
|
"CreateFenceBind": doCreateFenceBind,
|
|
10046
|
+
"DescribeTWeSeeRecognitionTask": doDescribeTWeSeeRecognitionTask,
|
|
9676
10047
|
"DescribeCloudStoragePackageConsumeDetails": doDescribeCloudStoragePackageConsumeDetails,
|
|
9677
10048
|
|
|
9678
10049
|
}
|