tccli 3.0.1398.1__py2.py3-none-any.whl → 3.0.1400.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/ai3d/v20250513/api.json +19 -1
- tccli/services/apm/v20210622/api.json +1 -1
- tccli/services/ccc/v20200210/api.json +33 -0
- tccli/services/cdb/cdb_client.py +53 -0
- tccli/services/cdb/v20170320/api.json +76 -14
- tccli/services/cdb/v20170320/examples.json +8 -0
- tccli/services/cdwdoris/v20211228/api.json +31 -11
- tccli/services/cdwpg/v20201230/api.json +11 -1
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/ckafka/v20190819/api.json +66 -0
- tccli/services/cls/v20201016/api.json +3 -3
- tccli/services/dbbrain/dbbrain_client.py +114 -61
- tccli/services/dbbrain/v20191016/api.json +63 -61
- tccli/services/dbbrain/v20210527/api.json +324 -163
- tccli/services/dbbrain/v20210527/examples.json +11 -3
- tccli/services/dts/v20180330/api.json +4 -4
- tccli/services/dts/v20211206/api.json +54 -54
- tccli/services/dts/v20211206/examples.json +2 -2
- tccli/services/emr/v20190103/examples.json +1 -1
- tccli/services/ess/v20201111/api.json +118 -3
- tccli/services/essbasic/v20210526/api.json +117 -2
- tccli/services/hai/v20230812/api.json +2 -2
- tccli/services/ioa/v20220601/api.json +11 -0
- tccli/services/lcic/v20220817/api.json +2 -2
- tccli/services/lke/v20231130/api.json +234 -71
- tccli/services/lke/v20231130/examples.json +23 -23
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/lkeap/v20240522/examples.json +6 -0
- tccli/services/mongodb/v20190725/api.json +323 -314
- tccli/services/mongodb/v20190725/examples.json +17 -17
- tccli/services/monitor/v20180724/api.json +5 -4
- tccli/services/monitor/v20180724/examples.json +8 -2
- tccli/services/mps/v20190612/api.json +33 -2
- tccli/services/ocr/v20181119/api.json +3 -3
- tccli/services/postgres/v20170312/api.json +24 -14
- tccli/services/redis/v20180412/api.json +13 -13
- tccli/services/rum/v20210622/api.json +4 -4
- tccli/services/rum/v20210622/examples.json +2 -2
- tccli/services/teo/teo_client.py +166 -7
- tccli/services/teo/v20220901/api.json +341 -0
- tccli/services/teo/v20220901/examples.json +27 -3
- tccli/services/tke/v20180525/api.json +6 -6
- tccli/services/tke/v20180525/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +20 -1
- {tccli-3.0.1398.1.dist-info → tccli-3.0.1400.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1398.1.dist-info → tccli-3.0.1400.1.dist-info}/RECORD +50 -50
- {tccli-3.0.1398.1.dist-info → tccli-3.0.1400.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1398.1.dist-info → tccli-3.0.1400.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1398.1.dist-info → tccli-3.0.1400.1.dist-info}/license_files/LICENSE +0 -0
@@ -383,58 +383,6 @@ def doDescribeSqlTemplate(args, parsed_globals):
|
|
383
383
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
384
384
|
|
385
385
|
|
386
|
-
def doDescribeNoPrimaryKeyTables(args, parsed_globals):
|
387
|
-
g_param = parse_global_arg(parsed_globals)
|
388
|
-
|
389
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
390
|
-
cred = credential.CVMRoleCredential()
|
391
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
392
|
-
cred = credential.STSAssumeRoleCredential(
|
393
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
394
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
395
|
-
)
|
396
|
-
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):
|
397
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
398
|
-
else:
|
399
|
-
cred = credential.Credential(
|
400
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
401
|
-
)
|
402
|
-
http_profile = HttpProfile(
|
403
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
404
|
-
reqMethod="POST",
|
405
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
406
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
407
|
-
)
|
408
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
409
|
-
if g_param[OptionsDefine.Language]:
|
410
|
-
profile.language = g_param[OptionsDefine.Language]
|
411
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
412
|
-
client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
|
413
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
414
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
415
|
-
model = models.DescribeNoPrimaryKeyTablesRequest()
|
416
|
-
model.from_json_string(json.dumps(args))
|
417
|
-
start_time = time.time()
|
418
|
-
while True:
|
419
|
-
rsp = client.DescribeNoPrimaryKeyTables(model)
|
420
|
-
result = rsp.to_json_string()
|
421
|
-
try:
|
422
|
-
json_obj = json.loads(result)
|
423
|
-
except TypeError as e:
|
424
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
425
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
426
|
-
break
|
427
|
-
cur_time = time.time()
|
428
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
429
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
430
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
431
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
432
|
-
else:
|
433
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
434
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
435
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
436
|
-
|
437
|
-
|
438
386
|
def doDescribeDBPerfTimeSeries(args, parsed_globals):
|
439
387
|
g_param = parse_global_arg(parsed_globals)
|
440
388
|
|
@@ -1527,6 +1475,58 @@ def doDescribeDBSpaceStatus(args, parsed_globals):
|
|
1527
1475
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1528
1476
|
|
1529
1477
|
|
1478
|
+
def doKillMySqlThreads(args, parsed_globals):
|
1479
|
+
g_param = parse_global_arg(parsed_globals)
|
1480
|
+
|
1481
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1482
|
+
cred = credential.CVMRoleCredential()
|
1483
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1484
|
+
cred = credential.STSAssumeRoleCredential(
|
1485
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1486
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1487
|
+
)
|
1488
|
+
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):
|
1489
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1490
|
+
else:
|
1491
|
+
cred = credential.Credential(
|
1492
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1493
|
+
)
|
1494
|
+
http_profile = HttpProfile(
|
1495
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1496
|
+
reqMethod="POST",
|
1497
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1498
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1499
|
+
)
|
1500
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1501
|
+
if g_param[OptionsDefine.Language]:
|
1502
|
+
profile.language = g_param[OptionsDefine.Language]
|
1503
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1504
|
+
client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
|
1505
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1506
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1507
|
+
model = models.KillMySqlThreadsRequest()
|
1508
|
+
model.from_json_string(json.dumps(args))
|
1509
|
+
start_time = time.time()
|
1510
|
+
while True:
|
1511
|
+
rsp = client.KillMySqlThreads(model)
|
1512
|
+
result = rsp.to_json_string()
|
1513
|
+
try:
|
1514
|
+
json_obj = json.loads(result)
|
1515
|
+
except TypeError as e:
|
1516
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1517
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1518
|
+
break
|
1519
|
+
cur_time = time.time()
|
1520
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1521
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1522
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1523
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1524
|
+
else:
|
1525
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1526
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1527
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1528
|
+
|
1529
|
+
|
1530
1530
|
def doCreateProxySessionKillTask(args, parsed_globals):
|
1531
1531
|
g_param = parse_global_arg(parsed_globals)
|
1532
1532
|
|
@@ -3503,7 +3503,7 @@ def doUpdateAgentSwitch(args, parsed_globals):
|
|
3503
3503
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3504
3504
|
|
3505
3505
|
|
3506
|
-
def
|
3506
|
+
def doDescribeNoPrimaryKeyTables(args, parsed_globals):
|
3507
3507
|
g_param = parse_global_arg(parsed_globals)
|
3508
3508
|
|
3509
3509
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3532,11 +3532,63 @@ def doUpdateMonitorSwitch(args, parsed_globals):
|
|
3532
3532
|
client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
|
3533
3533
|
client._sdkVersion += ("_CLI_" + __version__)
|
3534
3534
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3535
|
-
model = models.
|
3535
|
+
model = models.DescribeNoPrimaryKeyTablesRequest()
|
3536
3536
|
model.from_json_string(json.dumps(args))
|
3537
3537
|
start_time = time.time()
|
3538
3538
|
while True:
|
3539
|
-
rsp = client.
|
3539
|
+
rsp = client.DescribeNoPrimaryKeyTables(model)
|
3540
|
+
result = rsp.to_json_string()
|
3541
|
+
try:
|
3542
|
+
json_obj = json.loads(result)
|
3543
|
+
except TypeError as e:
|
3544
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3545
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3546
|
+
break
|
3547
|
+
cur_time = time.time()
|
3548
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3549
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3550
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3551
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3552
|
+
else:
|
3553
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3554
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3555
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3556
|
+
|
3557
|
+
|
3558
|
+
def doDescribeMetricTopProxies(args, parsed_globals):
|
3559
|
+
g_param = parse_global_arg(parsed_globals)
|
3560
|
+
|
3561
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3562
|
+
cred = credential.CVMRoleCredential()
|
3563
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3564
|
+
cred = credential.STSAssumeRoleCredential(
|
3565
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3566
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3567
|
+
)
|
3568
|
+
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):
|
3569
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3570
|
+
else:
|
3571
|
+
cred = credential.Credential(
|
3572
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3573
|
+
)
|
3574
|
+
http_profile = HttpProfile(
|
3575
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3576
|
+
reqMethod="POST",
|
3577
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3578
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3579
|
+
)
|
3580
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3581
|
+
if g_param[OptionsDefine.Language]:
|
3582
|
+
profile.language = g_param[OptionsDefine.Language]
|
3583
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3584
|
+
client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
|
3585
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3586
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3587
|
+
model = models.DescribeMetricTopProxiesRequest()
|
3588
|
+
model.from_json_string(json.dumps(args))
|
3589
|
+
start_time = time.time()
|
3590
|
+
while True:
|
3591
|
+
rsp = client.DescribeMetricTopProxies(model)
|
3540
3592
|
result = rsp.to_json_string()
|
3541
3593
|
try:
|
3542
3594
|
json_obj = json.loads(result)
|
@@ -3763,7 +3815,7 @@ def doModifyDiagDBInstanceConf(args, parsed_globals):
|
|
3763
3815
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3764
3816
|
|
3765
3817
|
|
3766
|
-
def
|
3818
|
+
def doUpdateMonitorSwitch(args, parsed_globals):
|
3767
3819
|
g_param = parse_global_arg(parsed_globals)
|
3768
3820
|
|
3769
3821
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3792,11 +3844,11 @@ def doKillMySqlThreads(args, parsed_globals):
|
|
3792
3844
|
client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
|
3793
3845
|
client._sdkVersion += ("_CLI_" + __version__)
|
3794
3846
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3795
|
-
model = models.
|
3847
|
+
model = models.UpdateMonitorSwitchRequest()
|
3796
3848
|
model.from_json_string(json.dumps(args))
|
3797
3849
|
start_time = time.time()
|
3798
3850
|
while True:
|
3799
|
-
rsp = client.
|
3851
|
+
rsp = client.UpdateMonitorSwitch(model)
|
3800
3852
|
result = rsp.to_json_string()
|
3801
3853
|
try:
|
3802
3854
|
json_obj = json.loads(result)
|
@@ -4303,7 +4355,6 @@ ACTION_MAP = {
|
|
4303
4355
|
"DescribeMailProfile": doDescribeMailProfile,
|
4304
4356
|
"CreateSchedulerMailProfile": doCreateSchedulerMailProfile,
|
4305
4357
|
"DescribeSqlTemplate": doDescribeSqlTemplate,
|
4306
|
-
"DescribeNoPrimaryKeyTables": doDescribeNoPrimaryKeyTables,
|
4307
4358
|
"DescribeDBPerfTimeSeries": doDescribeDBPerfTimeSeries,
|
4308
4359
|
"DescribeTopSpaceSchemas": doDescribeTopSpaceSchemas,
|
4309
4360
|
"DescribeMySqlProcessList": doDescribeMySqlProcessList,
|
@@ -4325,6 +4376,7 @@ ACTION_MAP = {
|
|
4325
4376
|
"DescribeRedisCmdPerfTimeSeries": doDescribeRedisCmdPerfTimeSeries,
|
4326
4377
|
"DescribeDBAutonomyAction": doDescribeDBAutonomyAction,
|
4327
4378
|
"DescribeDBSpaceStatus": doDescribeDBSpaceStatus,
|
4379
|
+
"KillMySqlThreads": doKillMySqlThreads,
|
4328
4380
|
"CreateProxySessionKillTask": doCreateProxySessionKillTask,
|
4329
4381
|
"DescribeHealthScore": doDescribeHealthScore,
|
4330
4382
|
"DescribeRedisTopHotKeys": doDescribeRedisTopHotKeys,
|
@@ -4363,12 +4415,13 @@ ACTION_MAP = {
|
|
4363
4415
|
"DescribeRedisSlowLogTopSqls": doDescribeRedisSlowLogTopSqls,
|
4364
4416
|
"CreateKillTask": doCreateKillTask,
|
4365
4417
|
"UpdateAgentSwitch": doUpdateAgentSwitch,
|
4366
|
-
"
|
4418
|
+
"DescribeNoPrimaryKeyTables": doDescribeNoPrimaryKeyTables,
|
4419
|
+
"DescribeMetricTopProxies": doDescribeMetricTopProxies,
|
4367
4420
|
"DescribeUserSqlAdvice": doDescribeUserSqlAdvice,
|
4368
4421
|
"DescribeSqlFilters": doDescribeSqlFilters,
|
4369
4422
|
"DescribeTopSpaceTables": doDescribeTopSpaceTables,
|
4370
4423
|
"ModifyDiagDBInstanceConf": doModifyDiagDBInstanceConf,
|
4371
|
-
"
|
4424
|
+
"UpdateMonitorSwitch": doUpdateMonitorSwitch,
|
4372
4425
|
"DescribeSlowLogTopSqls": doDescribeSlowLogTopSqls,
|
4373
4426
|
"DescribeDBDiagReportContent": doDescribeDBDiagReportContent,
|
4374
4427
|
"CreateSqlFilter": doCreateSqlFilter,
|