tccli 3.0.1389.1__py2.py3-none-any.whl → 3.0.1391.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 +216 -4
- tccli/services/ai3d/v20250513/api.json +326 -0
- tccli/services/ai3d/v20250513/examples.json +32 -0
- tccli/services/asr/v20190614/api.json +1 -1
- tccli/services/batch/v20170312/api.json +3 -3
- tccli/services/batch/v20170312/examples.json +3 -3
- 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/cdz/v20221123/api.json +1 -1
- tccli/services/ckafka/v20190819/api.json +31 -23
- tccli/services/ckafka/v20190819/examples.json +1 -1
- tccli/services/clb/v20180317/api.json +20 -1
- 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 +292 -2
- tccli/services/cls/v20201016/examples.json +24 -0
- tccli/services/dts/v20211206/api.json +15 -15
- tccli/services/dts/v20211206/examples.json +1 -1
- tccli/services/es/v20250101/api.json +99 -5
- tccli/services/ess/v20201111/api.json +145 -4
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/gme/v20180711/api.json +7 -7
- tccli/services/gs/gs_client.py +57 -4
- tccli/services/gs/v20191118/api.json +79 -0
- tccli/services/gs/v20191118/examples.json +8 -0
- tccli/services/gwlb/v20240906/api.json +117 -0
- tccli/services/igtm/v20231024/api.json +3 -3
- tccli/services/iotexplorer/v20190423/api.json +19 -1
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- tccli/services/lighthouse/lighthouse_client.py +53 -0
- tccli/services/lighthouse/v20200324/api.json +228 -35
- tccli/services/lighthouse/v20200324/examples.json +8 -0
- tccli/services/live/v20180801/api.json +2 -2
- tccli/services/lkeap/v20240522/api.json +25 -1
- 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/ocr/v20181119/api.json +4 -4
- 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/tmt/v20180321/api.json +3 -3
- tccli/services/trtc/v20190722/api.json +1 -1
- 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 +10 -8
- tccli/services/vtc/v20240223/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +283 -6
- tccli/services/waf/v20180125/examples.json +24 -0
- tccli/services/waf/waf_client.py +159 -0
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/RECORD +68 -64
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/license_files/LICENSE +0 -0
@@ -362,6 +362,69 @@
|
|
362
362
|
"name": "Tags",
|
363
363
|
"required": false,
|
364
364
|
"type": "list"
|
365
|
+
},
|
366
|
+
{
|
367
|
+
"disabled": false,
|
368
|
+
"document": "流量分发方式\n\n- STATELESS:无状态\n- STATEFUL: 有状态",
|
369
|
+
"example": "STATEFUL",
|
370
|
+
"member": "string",
|
371
|
+
"name": "ForwardingMode",
|
372
|
+
"required": false,
|
373
|
+
"type": "string"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"disabled": false,
|
377
|
+
"document": "TCP协议连接空闲超时时间,可配置60s-6000s,默认350s。",
|
378
|
+
"example": "100",
|
379
|
+
"member": "int64",
|
380
|
+
"name": "TcpIdleConnectTimeout",
|
381
|
+
"required": false,
|
382
|
+
"type": "int"
|
383
|
+
},
|
384
|
+
{
|
385
|
+
"disabled": false,
|
386
|
+
"document": "其他协议连接空闲超时时间,可配置5s-180s,默认120s",
|
387
|
+
"example": "100",
|
388
|
+
"member": "int64",
|
389
|
+
"name": "OthersIdleConnectTimeout",
|
390
|
+
"required": false,
|
391
|
+
"type": "int"
|
392
|
+
},
|
393
|
+
{
|
394
|
+
"disabled": false,
|
395
|
+
"document": "重新调度功能内的解绑后端服务开关,开关打开后解绑后端服务会触发重新调度。",
|
396
|
+
"example": "True",
|
397
|
+
"member": "bool",
|
398
|
+
"name": "RescheduleUnbindRs",
|
399
|
+
"required": false,
|
400
|
+
"type": "bool"
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"disabled": false,
|
404
|
+
"document": "解绑RS后开启重调度的时间,可配置0s-3600s,默认0s",
|
405
|
+
"example": "200",
|
406
|
+
"member": "int64",
|
407
|
+
"name": "RescheduleUnbindRsStartTime",
|
408
|
+
"required": false,
|
409
|
+
"type": "int"
|
410
|
+
},
|
411
|
+
{
|
412
|
+
"disabled": false,
|
413
|
+
"document": "重新调度功能内的后端服务健康探测异常开关,开关打开后后端服务健康检查异常会触发重新调度。",
|
414
|
+
"example": "True",
|
415
|
+
"member": "bool",
|
416
|
+
"name": "RescheduleUnhealthy",
|
417
|
+
"required": false,
|
418
|
+
"type": "bool"
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"disabled": false,
|
422
|
+
"document": "后端服务健康探测异常后开启重调度的时间,可配置0s-3600s,默认0s",
|
423
|
+
"example": "100",
|
424
|
+
"member": "int64",
|
425
|
+
"name": "RescheduleUnhealthyStartTime",
|
426
|
+
"required": false,
|
427
|
+
"type": "int"
|
365
428
|
}
|
366
429
|
],
|
367
430
|
"type": "object"
|
@@ -1270,6 +1333,60 @@
|
|
1270
1333
|
"name": "AllDeadToAlive",
|
1271
1334
|
"required": false,
|
1272
1335
|
"type": "bool"
|
1336
|
+
},
|
1337
|
+
{
|
1338
|
+
"disabled": false,
|
1339
|
+
"document": "TCP协议连接空闲超时时间,可配置60s-6000s,默认350s。",
|
1340
|
+
"example": "100",
|
1341
|
+
"member": "int64",
|
1342
|
+
"name": "TcpIdleConnectTimeout",
|
1343
|
+
"required": false,
|
1344
|
+
"type": "int"
|
1345
|
+
},
|
1346
|
+
{
|
1347
|
+
"disabled": false,
|
1348
|
+
"document": "其他协议连接空闲超时时间,可配置5s-180s,默认120s",
|
1349
|
+
"example": "100",
|
1350
|
+
"member": "int64",
|
1351
|
+
"name": "OthersIdleConnectTimeout",
|
1352
|
+
"required": false,
|
1353
|
+
"type": "int"
|
1354
|
+
},
|
1355
|
+
{
|
1356
|
+
"disabled": false,
|
1357
|
+
"document": "重新调度功能内的解绑后端服务开关,开关打开后解绑后端服务会触发重新调度。",
|
1358
|
+
"example": "true",
|
1359
|
+
"member": "bool",
|
1360
|
+
"name": "RescheduleUnbindRs",
|
1361
|
+
"required": false,
|
1362
|
+
"type": "bool"
|
1363
|
+
},
|
1364
|
+
{
|
1365
|
+
"disabled": false,
|
1366
|
+
"document": "解绑RS后开启重调度的时间,可配置0s-3600s,默认0s",
|
1367
|
+
"example": "100",
|
1368
|
+
"member": "int64",
|
1369
|
+
"name": "RescheduleUnbindRsStartTime",
|
1370
|
+
"required": false,
|
1371
|
+
"type": "int"
|
1372
|
+
},
|
1373
|
+
{
|
1374
|
+
"disabled": false,
|
1375
|
+
"document": "重新调度功能内的后端服务健康探测异常开关,开关打开后后端服务健康检查异常会触发重新调度。",
|
1376
|
+
"example": "true",
|
1377
|
+
"member": "bool",
|
1378
|
+
"name": "RescheduleUnhealthy",
|
1379
|
+
"required": false,
|
1380
|
+
"type": "bool"
|
1381
|
+
},
|
1382
|
+
{
|
1383
|
+
"disabled": false,
|
1384
|
+
"document": "后端服务健康探测异常后开启重调度的时间,可配置0s-3600s,默认0s",
|
1385
|
+
"example": "100",
|
1386
|
+
"member": "int64",
|
1387
|
+
"name": "RescheduleUnhealthyStartTime",
|
1388
|
+
"required": false,
|
1389
|
+
"type": "int"
|
1273
1390
|
}
|
1274
1391
|
],
|
1275
1392
|
"type": "object"
|
@@ -3030,7 +3030,7 @@
|
|
3030
3030
|
},
|
3031
3031
|
{
|
3032
3032
|
"disabled": false,
|
3033
|
-
"document": "监控器id",
|
3033
|
+
"document": "监控器id,当监控器已关联策略时,此字段必传",
|
3034
3034
|
"example": "1",
|
3035
3035
|
"member": "uint64",
|
3036
3036
|
"name": "MonitorId",
|
@@ -3039,8 +3039,8 @@
|
|
3039
3039
|
},
|
3040
3040
|
{
|
3041
3041
|
"disabled": false,
|
3042
|
-
"document": "
|
3043
|
-
"example": "
|
3042
|
+
"document": "地址列表,全量更新逻辑,对于存量不需要修改的地址信息也需要带上(其中参数里的AddressId需传入正确的值),否则会被删除。",
|
3043
|
+
"example": "无",
|
3044
3044
|
"member": "Address",
|
3045
3045
|
"name": "AddressSet",
|
3046
3046
|
"required": false,
|
@@ -5808,12 +5808,30 @@
|
|
5808
5808
|
},
|
5809
5809
|
{
|
5810
5810
|
"disabled": false,
|
5811
|
-
"document": "云存 AI 服务类型。可选值:\n- `
|
5811
|
+
"document": "云存 AI 服务类型。可选值:\n- `Highlight`:视频浓缩",
|
5812
5812
|
"example": "Highlight",
|
5813
5813
|
"member": "string",
|
5814
5814
|
"name": "ServiceType",
|
5815
5815
|
"required": true,
|
5816
5816
|
"type": "string"
|
5817
|
+
},
|
5818
|
+
{
|
5819
|
+
"disabled": false,
|
5820
|
+
"document": "通道 ID",
|
5821
|
+
"example": "0",
|
5822
|
+
"member": "uint64",
|
5823
|
+
"name": "ChannelId",
|
5824
|
+
"required": false,
|
5825
|
+
"type": "int"
|
5826
|
+
},
|
5827
|
+
{
|
5828
|
+
"disabled": false,
|
5829
|
+
"document": "用户 ID",
|
5830
|
+
"example": "user1",
|
5831
|
+
"member": "string",
|
5832
|
+
"name": "UserId",
|
5833
|
+
"required": false,
|
5834
|
+
"type": "string"
|
5817
5835
|
}
|
5818
5836
|
],
|
5819
5837
|
"type": "object"
|
@@ -527,7 +527,7 @@
|
|
527
527
|
"DescribeCloudStorageAIService": [
|
528
528
|
{
|
529
529
|
"document": "",
|
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}",
|
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}",
|
531
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}",
|
532
532
|
"title": "查询设备云存AI服务"
|
533
533
|
}
|
@@ -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,
|