tccli 3.0.1388.1__py2.py3-none-any.whl → 3.0.1390.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/ai3d/ai3d_client.py +106 -0
- tccli/services/ai3d/v20250513/api.json +172 -0
- tccli/services/ai3d/v20250513/examples.json +16 -0
- tccli/services/batch/v20170312/api.json +3 -3
- tccli/services/batch/v20170312/examples.json +3 -3
- tccli/services/bi/v20220105/api.json +8 -8
- tccli/services/bi/v20220105/examples.json +4 -4
- tccli/services/cam/v20190116/api.json +11 -1
- tccli/services/ccc/v20200210/api.json +10 -10
- tccli/services/cdb/v20170320/api.json +40 -2
- tccli/services/cdc/v20201214/api.json +1 -1
- tccli/services/cdc/v20201214/examples.json +2 -2
- tccli/services/cdn/v20180606/api.json +1 -1
- tccli/services/cdz/v20221123/api.json +1 -1
- tccli/services/chc/v20230418/api.json +69 -1
- tccli/services/ckafka/v20190819/api.json +141 -124
- tccli/services/ckafka/v20190819/examples.json +8 -8
- tccli/services/cloudapp/cloudapp_client.py +53 -0
- tccli/services/cloudapp/v20220530/api.json +68 -0
- tccli/services/cloudapp/v20220530/examples.json +14 -0
- tccli/services/cls/cls_client.py +167 -8
- tccli/services/cls/v20201016/api.json +373 -6
- tccli/services/cls/v20201016/examples.json +25 -1
- tccli/services/ctem/v20231128/api.json +40 -0
- tccli/services/dc/v20180410/api.json +26 -6
- tccli/services/dts/v20211206/api.json +21 -21
- tccli/services/dts/v20211206/examples.json +2 -2
- tccli/services/emr/v20190103/api.json +172 -11
- tccli/services/es/v20180416/api.json +4 -4
- tccli/services/es/v20250101/api.json +218 -13
- tccli/services/ess/v20201111/api.json +175 -5
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/essbasic/v20210526/api.json +21 -3
- tccli/services/gme/gme_client.py +509 -32
- tccli/services/gme/v20180711/api.json +1179 -53
- tccli/services/gme/v20180711/examples.json +72 -0
- tccli/services/hunyuan/v20230901/api.json +18 -0
- tccli/services/igtm/v20231024/api.json +3 -3
- tccli/services/ioa/v20220601/api.json +44 -8
- tccli/services/ioa/v20220601/examples.json +4 -4
- tccli/services/iotexplorer/iotexplorer_client.py +432 -8
- tccli/services/iotexplorer/v20190423/api.json +990 -36
- tccli/services/iotexplorer/v20190423/examples.json +65 -1
- tccli/services/lighthouse/lighthouse_client.py +53 -0
- tccli/services/lighthouse/v20200324/api.json +246 -35
- tccli/services/lighthouse/v20200324/examples.json +8 -0
- tccli/services/live/v20180801/api.json +3 -3
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/lkeap/v20240522/api.json +18 -0
- tccli/services/lowcode/lowcode_client.py +163 -4
- tccli/services/lowcode/v20210108/api.json +1373 -96
- tccli/services/lowcode/v20210108/examples.json +24 -0
- tccli/services/mps/v20190612/api.json +804 -47
- tccli/services/mqtt/v20240516/api.json +89 -0
- tccli/services/ocr/ocr_client.py +114 -8
- tccli/services/ocr/v20181119/api.json +225 -0
- tccli/services/ocr/v20181119/examples.json +28 -0
- tccli/services/sqlserver/v20180328/api.json +4 -4
- tccli/services/tcbr/v20220217/api.json +51 -0
- tccli/services/tdai/__init__.py +4 -0
- tccli/services/tdai/tdai_client.py +1108 -0
- tccli/services/tdai/v20250717/api.json +1930 -0
- tccli/services/tdai/v20250717/examples.json +149 -0
- tccli/services/teo/teo_client.py +53 -0
- tccli/services/teo/v20220901/api.json +111 -3
- tccli/services/teo/v20220901/examples.json +8 -0
- tccli/services/thpc/v20230321/api.json +1 -1
- tccli/services/thpc/v20230321/examples.json +2 -2
- tccli/services/tione/v20211111/api.json +9 -9
- tccli/services/tmt/v20180321/api.json +3 -3
- tccli/services/tsf/v20180326/api.json +2 -2
- tccli/services/tts/v20190823/api.json +11 -11
- tccli/services/vpc/v20170312/api.json +37 -7
- tccli/services/vpc/v20170312/examples.json +7 -7
- tccli/services/vtc/v20240223/api.json +3 -1
- tccli/services/vtc/v20240223/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +6 -6
- tccli/services/wsa/v20250508/api.json +2 -2
- {tccli-3.0.1388.1.dist-info → tccli-3.0.1390.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1388.1.dist-info → tccli-3.0.1390.1.dist-info}/RECORD +85 -81
- {tccli-3.0.1388.1.dist-info → tccli-3.0.1390.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1388.1.dist-info → tccli-3.0.1390.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1388.1.dist-info → tccli-3.0.1390.1.dist-info}/license_files/LICENSE +0 -0
@@ -8,6 +8,14 @@
|
|
8
8
|
"title": "成功激活示例"
|
9
9
|
}
|
10
10
|
],
|
11
|
+
"BatchUpdateFirmware": [
|
12
|
+
{
|
13
|
+
"document": "",
|
14
|
+
"input": "https://iotexplorer.tencentcloudapi.com/?Action=BatchUpdateFirmware\n&ProductID=sdfewihf\n&FirmwareVersion=2.0.0\n&FirmwareOriVersion=1.0.0\n&<公共请求参数>",
|
15
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"xxxxxxxxxxxxxxxxxxxxx\",\n \"TaskId\": 1000696\n }\n}",
|
16
|
+
"title": "示例"
|
17
|
+
}
|
18
|
+
],
|
11
19
|
"BindCloudStorageUser": [
|
12
20
|
{
|
13
21
|
"document": "",
|
@@ -254,6 +262,14 @@
|
|
254
262
|
"title": "新建 LoRa 网关"
|
255
263
|
}
|
256
264
|
],
|
265
|
+
"CreateOtaModule": [
|
266
|
+
{
|
267
|
+
"document": "",
|
268
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOtaModule\n<公共请求参数>\n\n{\n \"ProductID\": \"8Q7X2QKV59\",\n \"FwType\": \"bms\"\n}",
|
269
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"0970c75a-07e2-429d-bae0-76230b466bbc\"\n }\n}",
|
270
|
+
"title": "创建新模块"
|
271
|
+
}
|
272
|
+
],
|
257
273
|
"CreatePositionFence": [
|
258
274
|
{
|
259
275
|
"document": "创建围栏",
|
@@ -404,6 +420,14 @@
|
|
404
420
|
"title": "删除 LoRa 网关"
|
405
421
|
}
|
406
422
|
],
|
423
|
+
"DeleteOtaModule": [
|
424
|
+
{
|
425
|
+
"document": "",
|
426
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteOtaModule\n<公共请求参数>\n\n{\n \"ProductID\": \"8Q7X2QKV59\",\n \"FwType\": \"mcu\"\n}",
|
427
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"4c5b5c5e-ddcc-4a30-a933-d306e94b14a7\"\n }\n}",
|
428
|
+
"title": "删除ota模块"
|
429
|
+
}
|
430
|
+
],
|
407
431
|
"DeletePositionFence": [
|
408
432
|
{
|
409
433
|
"document": "删除围栏",
|
@@ -503,7 +527,7 @@
|
|
503
527
|
"DescribeCloudStorageAIService": [
|
504
528
|
{
|
505
529
|
"document": "",
|
506
|
-
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudStorageAIService\n<公共请求参数>\n\n{\n \"ProductId\": \"KH6Q8C4N0D\",\n \"DeviceName\": \"aaa_31400554_1\",\n \"ServiceType\": \"Highlight\"\n}",
|
530
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudStorageAIService\n<公共请求参数>\n\n{\n \"ProductId\": \"KH6Q8C4N0D\",\n \"DeviceName\": \"aaa_31400554_1\",\n \"ServiceType\": \"Highlight\",\n \"ChannelId\": 0\n}",
|
507
531
|
"output": "{\n \"Response\": {\n \"Enabled\": true,\n \"ROI\": \"{\\\"param1\\\":\\\"value1\\\"}\",\n \"Config\": \"{\\\"param1\\\":\\\"value1\\\"}\",\n \"Type\": 1,\n \"Status\": 1,\n \"ExpireTime\": 1719294987,\n \"UserId\": \"user1\",\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
508
532
|
"title": "查询设备云存AI服务"
|
509
533
|
}
|
@@ -746,6 +770,22 @@
|
|
746
770
|
"title": "查询固件升级任务详情"
|
747
771
|
}
|
748
772
|
],
|
773
|
+
"DescribeFirmwareTaskDevices": [
|
774
|
+
{
|
775
|
+
"document": "",
|
776
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFirmwareTaskDevices\n<公共请求参数>\n\n{\n \"ProductID\": \"I6KTCZ170U\",\n \"FirmwareVersion\": \"t.1\"\n}",
|
777
|
+
"output": "{\n \"Response\": {\n \"Devices\": [\n {\n \"DeviceName\": \"testota01\",\n \"DstVersion\": \"t.1\",\n \"ErrMsg\": \"firmware no need update.\",\n \"LastProcessTime\": 1599293301,\n \"OriVersion\": \"\",\n \"Percent\": 0,\n \"Retcode\": 0,\n \"Status\": 5,\n \"TaskId\": 1000698\n },\n {\n \"DeviceName\": \"testota01\",\n \"DstVersion\": \"t.1\",\n \"ErrMsg\": \"firmware no need update.\",\n \"LastProcessTime\": 1599293291,\n \"OriVersion\": \"\",\n \"Percent\": 0,\n \"Retcode\": 0,\n \"Status\": 5,\n \"TaskId\": 1000697\n },\n {\n \"DeviceName\": \"testota01\",\n \"DstVersion\": \"t.1\",\n \"ErrMsg\": \"firmware no need update.\",\n \"LastProcessTime\": 1599293161,\n \"OriVersion\": \"\",\n \"Percent\": 0,\n \"Retcode\": 0,\n \"Status\": 5,\n \"TaskId\": 1000696\n },\n {\n \"DeviceName\": \"testota01\",\n \"DstVersion\": \"t.1\",\n \"ErrMsg\": \"firmware no need update.\",\n \"LastProcessTime\": 1599292421,\n \"OriVersion\": \"\",\n \"Percent\": 0,\n \"Retcode\": 0,\n \"Status\": 5,\n \"TaskId\": 1000695\n },\n {\n \"DeviceName\": \"testota01\",\n \"DstVersion\": \"t.1\",\n \"ErrMsg\": \"firmware no need update.\",\n \"LastProcessTime\": 1599292411,\n \"OriVersion\": \"\",\n \"Percent\": 0,\n \"Retcode\": 0,\n \"Status\": 5,\n \"TaskId\": 1000694\n }\n ],\n \"RequestId\": \"95e791e3-dfc4-47fa-9f0b-d3248a5adb55\",\n \"Total\": 5\n }\n}",
|
778
|
+
"title": "查询固件升级任务的设备列表"
|
779
|
+
}
|
780
|
+
],
|
781
|
+
"DescribeFirmwareTasks": [
|
782
|
+
{
|
783
|
+
"document": "",
|
784
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFirmwareTasks\n<公共请求参数>\n\n{\n \"ProductID\": \"I6KTCZ170U\",\n \"FirmwareVersion\": \"t.1\",\n \"Offset\": 0,\n \"Limit\": 3\n}",
|
785
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"baffed26-d55b-41bd-a8b3-5c0377cd45d2\",\n \"TaskInfos\": [\n {\n \"CreateTime\": 1599293298,\n \"Status\": 5,\n \"TaskId\": 1000698,\n \"Type\": 1\n },\n {\n \"CreateTime\": 1599293285,\n \"Status\": 5,\n \"TaskId\": 1000697,\n \"Type\": 1\n },\n {\n \"CreateTime\": 1599293158,\n \"Status\": 5,\n \"TaskId\": 1000696,\n \"Type\": 1\n }\n ],\n \"Total\": 6\n }\n}",
|
786
|
+
"title": "查询固件升级任务列表"
|
787
|
+
}
|
788
|
+
],
|
749
789
|
"DescribeFirmwareUpdateStatus": [
|
750
790
|
{
|
751
791
|
"document": "",
|
@@ -1238,6 +1278,22 @@
|
|
1238
1278
|
"title": "示例"
|
1239
1279
|
}
|
1240
1280
|
],
|
1281
|
+
"ListOtaModules": [
|
1282
|
+
{
|
1283
|
+
"document": "",
|
1284
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListOtaModules\n<公共请求参数>\n\n{\n \"PageNum\": 1,\n \"PageSize\": 10\n}",
|
1285
|
+
"output": "{\n \"Response\": {\n \"Modules\": [\n {\n \"CreateTime\": 1756953617,\n \"FwType\": \"bms\",\n \"IsBuildIn\": false,\n \"Name\": \"\",\n \"ProductID\": \"8Q7X2QKV59\",\n \"ProductName\": \"ota测试\",\n \"Remark\": \"\"\n },\n {\n \"CreateTime\": 1756889779,\n \"FwType\": \"mcu\",\n \"IsBuildIn\": true,\n \"Name\": \"\",\n \"ProductID\": \"SR5E1Q7C2A\",\n \"ProductName\": \"yufa\",\n \"Remark\": \"\"\n },\n {\n \"CreateTime\": 1756889779,\n \"FwType\": \"mcu\",\n \"IsBuildIn\": true,\n \"Name\": \"\",\n \"ProductID\": \"186XLZGJM5\",\n \"ProductName\": \"预发测试\",\n \"Remark\": \"\"\n },\n {\n \"CreateTime\": 1756350539,\n \"FwType\": \"default\",\n \"IsBuildIn\": true,\n \"Name\": \"\",\n \"ProductID\": \"SR5E1Q7C2A\",\n \"ProductName\": \"yufa\",\n \"Remark\": \"\"\n }\n ],\n \"RequestId\": \"c2862940-3dd8-4453-a8d8-31dacad30961\",\n \"TotalCount\": 15\n }\n}",
|
1286
|
+
"title": "获取OTA模块列表"
|
1287
|
+
}
|
1288
|
+
],
|
1289
|
+
"ListProductOtaModules": [
|
1290
|
+
{
|
1291
|
+
"document": "",
|
1292
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListProductOtaModules\n<公共请求参数>\n\n{\n \"ProductID\": \"8Q7X2QKV59\"\n}",
|
1293
|
+
"output": "{\n \"Response\": {\n \"Modules\": [\n {\n \"CreateTime\": 1753261941,\n \"FwType\": \"default\",\n \"IsBuildIn\": true,\n \"Name\": \"\",\n \"ProductID\": \"8Q7X2QKV59\",\n \"ProductName\": \"ota测试\",\n \"Remark\": \"\"\n },\n {\n \"CreateTime\": 1756953617,\n \"FwType\": \"bms\",\n \"IsBuildIn\": false,\n \"Name\": \"\",\n \"ProductID\": \"8Q7X2QKV59\",\n \"ProductName\": \"ota测试\",\n \"Remark\": \"\"\n }\n ],\n \"RequestId\": \"2face868-8e90-4a42-98f9-54810ef3f1f8\"\n }\n}",
|
1294
|
+
"title": "获取产品OTA模块列表"
|
1295
|
+
}
|
1296
|
+
],
|
1241
1297
|
"ListTopicPolicy": [
|
1242
1298
|
{
|
1243
1299
|
"document": "",
|
@@ -1582,6 +1638,14 @@
|
|
1582
1638
|
"title": "更新固件示例"
|
1583
1639
|
}
|
1584
1640
|
],
|
1641
|
+
"UpdateOtaModule": [
|
1642
|
+
{
|
1643
|
+
"document": "",
|
1644
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateOtaModule\n<公共请求参数>\n\n{\n \"ProductID\": \"8Q7X2QKV59\",\n \"FwType\": \"mcu\",\n \"Name\": \"mcu\"\n}",
|
1645
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e786a7af-c084-42b0-958d-70d5e567904e\"\n }\n}",
|
1646
|
+
"title": "更新模块"
|
1647
|
+
}
|
1648
|
+
],
|
1585
1649
|
"UploadFirmware": [
|
1586
1650
|
{
|
1587
1651
|
"document": "",
|
@@ -3241,6 +3241,58 @@ def doDescribeBundles(args, parsed_globals):
|
|
3241
3241
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3242
3242
|
|
3243
3243
|
|
3244
|
+
def doDescribeMcpServerTemplates(args, parsed_globals):
|
3245
|
+
g_param = parse_global_arg(parsed_globals)
|
3246
|
+
|
3247
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3248
|
+
cred = credential.CVMRoleCredential()
|
3249
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3250
|
+
cred = credential.STSAssumeRoleCredential(
|
3251
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3252
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3253
|
+
)
|
3254
|
+
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):
|
3255
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3256
|
+
else:
|
3257
|
+
cred = credential.Credential(
|
3258
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3259
|
+
)
|
3260
|
+
http_profile = HttpProfile(
|
3261
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3262
|
+
reqMethod="POST",
|
3263
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3264
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3265
|
+
)
|
3266
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3267
|
+
if g_param[OptionsDefine.Language]:
|
3268
|
+
profile.language = g_param[OptionsDefine.Language]
|
3269
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3270
|
+
client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
|
3271
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3272
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3273
|
+
model = models.DescribeMcpServerTemplatesRequest()
|
3274
|
+
model.from_json_string(json.dumps(args))
|
3275
|
+
start_time = time.time()
|
3276
|
+
while True:
|
3277
|
+
rsp = client.DescribeMcpServerTemplates(model)
|
3278
|
+
result = rsp.to_json_string()
|
3279
|
+
try:
|
3280
|
+
json_obj = json.loads(result)
|
3281
|
+
except TypeError as e:
|
3282
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3283
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3284
|
+
break
|
3285
|
+
cur_time = time.time()
|
3286
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3287
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3288
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3289
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3290
|
+
else:
|
3291
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3292
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3293
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3294
|
+
|
3295
|
+
|
3244
3296
|
def doShareBlueprintAcrossAccounts(args, parsed_globals):
|
3245
3297
|
g_param = parse_global_arg(parsed_globals)
|
3246
3298
|
|
@@ -6174,6 +6226,7 @@ ACTION_MAP = {
|
|
6174
6226
|
"DescribeModifyInstanceBundles": doDescribeModifyInstanceBundles,
|
6175
6227
|
"CreateKeyPair": doCreateKeyPair,
|
6176
6228
|
"DescribeBundles": doDescribeBundles,
|
6229
|
+
"DescribeMcpServerTemplates": doDescribeMcpServerTemplates,
|
6177
6230
|
"ShareBlueprintAcrossAccounts": doShareBlueprintAcrossAccounts,
|
6178
6231
|
"DescribeInstancesTrafficPackages": doDescribeInstancesTrafficPackages,
|
6179
6232
|
"DescribeDiskBackups": doDescribeDiskBackups,
|