tccli 3.0.1175.1__py2.py3-none-any.whl → 3.0.1176.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/ccc/v20200210/api.json +9 -9
- tccli/services/cdwdoris/cdwdoris_client.py +106 -159
- tccli/services/cdwdoris/v20211228/api.json +737 -1207
- tccli/services/cdwdoris/v20211228/examples.json +62 -70
- tccli/services/clb/v20180317/api.json +1 -1
- tccli/services/cvm/v20170312/api.json +1 -1
- tccli/services/cynosdb/cynosdb_client.py +114 -8
- tccli/services/cynosdb/v20190107/api.json +136 -0
- tccli/services/cynosdb/v20190107/examples.json +16 -0
- tccli/services/ecm/v20190719/api.json +8 -6
- tccli/services/emr/v20190103/api.json +9 -0
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/mps/v20190612/api.json +49 -29
- tccli/services/trtc/trtc_client.py +53 -0
- tccli/services/trtc/v20190722/api.json +62 -0
- tccli/services/trtc/v20190722/examples.json +8 -0
- tccli/services/vod/v20180717/api.json +341 -0
- tccli/services/vod/v20180717/examples.json +30 -0
- tccli/services/vod/vod_client.py +171 -12
- tccli/services/vpc/v20170312/api.json +10 -1
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1176.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1176.1.dist-info}/RECORD +27 -27
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1176.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1176.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1176.1.dist-info}/license_files/LICENSE +0 -0
@@ -69,7 +69,7 @@ def doCreateBackUpSchedule(args, parsed_globals):
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
70
|
|
71
71
|
|
72
|
-
def
|
72
|
+
def doOpenCoolDownPolicy(args, parsed_globals):
|
73
73
|
g_param = parse_global_arg(parsed_globals)
|
74
74
|
|
75
75
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -98,11 +98,11 @@ def doDescribeFrontEnd(args, parsed_globals):
|
|
98
98
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
99
99
|
client._sdkVersion += ("_CLI_" + __version__)
|
100
100
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
-
model = models.
|
101
|
+
model = models.OpenCoolDownPolicyRequest()
|
102
102
|
model.from_json_string(json.dumps(args))
|
103
103
|
start_time = time.time()
|
104
104
|
while True:
|
105
|
-
rsp = client.
|
105
|
+
rsp = client.OpenCoolDownPolicy(model)
|
106
106
|
result = rsp.to_json_string()
|
107
107
|
try:
|
108
108
|
json_obj = json.loads(result)
|
@@ -277,7 +277,7 @@ def doDestroyInstance(args, parsed_globals):
|
|
277
277
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
278
|
|
279
279
|
|
280
|
-
def
|
280
|
+
def doDescribeCoolDownTableData(args, parsed_globals):
|
281
281
|
g_param = parse_global_arg(parsed_globals)
|
282
282
|
|
283
283
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -306,11 +306,11 @@ def doDescribeDorisMetricFiles(args, parsed_globals):
|
|
306
306
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
307
307
|
client._sdkVersion += ("_CLI_" + __version__)
|
308
308
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
-
model = models.
|
309
|
+
model = models.DescribeCoolDownTableDataRequest()
|
310
310
|
model.from_json_string(json.dumps(args))
|
311
311
|
start_time = time.time()
|
312
312
|
while True:
|
313
|
-
rsp = client.
|
313
|
+
rsp = client.DescribeCoolDownTableData(model)
|
314
314
|
result = rsp.to_json_string()
|
315
315
|
try:
|
316
316
|
json_obj = json.loads(result)
|
@@ -797,7 +797,7 @@ def doDescribeBackUpTables(args, parsed_globals):
|
|
797
797
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
798
798
|
|
799
799
|
|
800
|
-
def
|
800
|
+
def doScaleOutInstance(args, parsed_globals):
|
801
801
|
g_param = parse_global_arg(parsed_globals)
|
802
802
|
|
803
803
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -826,11 +826,11 @@ def doDescribeRegionZone(args, parsed_globals):
|
|
826
826
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
827
827
|
client._sdkVersion += ("_CLI_" + __version__)
|
828
828
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
829
|
-
model = models.
|
829
|
+
model = models.ScaleOutInstanceRequest()
|
830
830
|
model.from_json_string(json.dumps(args))
|
831
831
|
start_time = time.time()
|
832
832
|
while True:
|
833
|
-
rsp = client.
|
833
|
+
rsp = client.ScaleOutInstance(model)
|
834
834
|
result = rsp.to_json_string()
|
835
835
|
try:
|
836
836
|
json_obj = json.loads(result)
|
@@ -1213,7 +1213,7 @@ def doDescribeInstances(args, parsed_globals):
|
|
1213
1213
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1214
1214
|
|
1215
1215
|
|
1216
|
-
def
|
1216
|
+
def doCreateCoolDownPolicy(args, parsed_globals):
|
1217
1217
|
g_param = parse_global_arg(parsed_globals)
|
1218
1218
|
|
1219
1219
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1242,11 +1242,11 @@ def doDescribeInstanceState(args, parsed_globals):
|
|
1242
1242
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1243
1243
|
client._sdkVersion += ("_CLI_" + __version__)
|
1244
1244
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1245
|
-
model = models.
|
1245
|
+
model = models.CreateCoolDownPolicyRequest()
|
1246
1246
|
model.from_json_string(json.dumps(args))
|
1247
1247
|
start_time = time.time()
|
1248
1248
|
while True:
|
1249
|
-
rsp = client.
|
1249
|
+
rsp = client.CreateCoolDownPolicy(model)
|
1250
1250
|
result = rsp.to_json_string()
|
1251
1251
|
try:
|
1252
1252
|
json_obj = json.loads(result)
|
@@ -1265,7 +1265,7 @@ def doDescribeInstanceState(args, parsed_globals):
|
|
1265
1265
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1266
1266
|
|
1267
1267
|
|
1268
|
-
def
|
1268
|
+
def doUpdateCoolDown(args, parsed_globals):
|
1269
1269
|
g_param = parse_global_arg(parsed_globals)
|
1270
1270
|
|
1271
1271
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1294,11 +1294,11 @@ def doDescribeInstanceUsedSubnets(args, parsed_globals):
|
|
1294
1294
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1295
1295
|
client._sdkVersion += ("_CLI_" + __version__)
|
1296
1296
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1297
|
-
model = models.
|
1297
|
+
model = models.UpdateCoolDownRequest()
|
1298
1298
|
model.from_json_string(json.dumps(args))
|
1299
1299
|
start_time = time.time()
|
1300
1300
|
while True:
|
1301
|
-
rsp = client.
|
1301
|
+
rsp = client.UpdateCoolDown(model)
|
1302
1302
|
result = rsp.to_json_string()
|
1303
1303
|
try:
|
1304
1304
|
json_obj = json.loads(result)
|
@@ -1317,59 +1317,7 @@ def doDescribeInstanceUsedSubnets(args, parsed_globals):
|
|
1317
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1318
|
|
1319
1319
|
|
1320
|
-
def
|
1321
|
-
g_param = parse_global_arg(parsed_globals)
|
1322
|
-
|
1323
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1324
|
-
cred = credential.CVMRoleCredential()
|
1325
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1326
|
-
cred = credential.STSAssumeRoleCredential(
|
1327
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1328
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1329
|
-
)
|
1330
|
-
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):
|
1331
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1332
|
-
else:
|
1333
|
-
cred = credential.Credential(
|
1334
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1335
|
-
)
|
1336
|
-
http_profile = HttpProfile(
|
1337
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1338
|
-
reqMethod="POST",
|
1339
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
1340
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1341
|
-
)
|
1342
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1343
|
-
if g_param[OptionsDefine.Language]:
|
1344
|
-
profile.language = g_param[OptionsDefine.Language]
|
1345
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1346
|
-
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
1348
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
-
model = models.DeleteWorkloadGroupRequest()
|
1350
|
-
model.from_json_string(json.dumps(args))
|
1351
|
-
start_time = time.time()
|
1352
|
-
while True:
|
1353
|
-
rsp = client.DeleteWorkloadGroup(model)
|
1354
|
-
result = rsp.to_json_string()
|
1355
|
-
try:
|
1356
|
-
json_obj = json.loads(result)
|
1357
|
-
except TypeError as e:
|
1358
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1359
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1360
|
-
break
|
1361
|
-
cur_time = time.time()
|
1362
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1363
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1364
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1365
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1366
|
-
else:
|
1367
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1368
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1369
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
|
-
|
1371
|
-
|
1372
|
-
def doOpenBackUp(args, parsed_globals):
|
1320
|
+
def doDescribeInstanceState(args, parsed_globals):
|
1373
1321
|
g_param = parse_global_arg(parsed_globals)
|
1374
1322
|
|
1375
1323
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1398,11 +1346,11 @@ def doOpenBackUp(args, parsed_globals):
|
|
1398
1346
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1399
1347
|
client._sdkVersion += ("_CLI_" + __version__)
|
1400
1348
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1401
|
-
model = models.
|
1349
|
+
model = models.DescribeInstanceStateRequest()
|
1402
1350
|
model.from_json_string(json.dumps(args))
|
1403
1351
|
start_time = time.time()
|
1404
1352
|
while True:
|
1405
|
-
rsp = client.
|
1353
|
+
rsp = client.DescribeInstanceState(model)
|
1406
1354
|
result = rsp.to_json_string()
|
1407
1355
|
try:
|
1408
1356
|
json_obj = json.loads(result)
|
@@ -1421,7 +1369,7 @@ def doOpenBackUp(args, parsed_globals):
|
|
1421
1369
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
1370
|
|
1423
1371
|
|
1424
|
-
def
|
1372
|
+
def doDescribeInstanceUsedSubnets(args, parsed_globals):
|
1425
1373
|
g_param = parse_global_arg(parsed_globals)
|
1426
1374
|
|
1427
1375
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1450,11 +1398,11 @@ def doDescribeDmsSqlHistory(args, parsed_globals):
|
|
1450
1398
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1451
1399
|
client._sdkVersion += ("_CLI_" + __version__)
|
1452
1400
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1453
|
-
model = models.
|
1401
|
+
model = models.DescribeInstanceUsedSubnetsRequest()
|
1454
1402
|
model.from_json_string(json.dumps(args))
|
1455
1403
|
start_time = time.time()
|
1456
1404
|
while True:
|
1457
|
-
rsp = client.
|
1405
|
+
rsp = client.DescribeInstanceUsedSubnets(model)
|
1458
1406
|
result = rsp.to_json_string()
|
1459
1407
|
try:
|
1460
1408
|
json_obj = json.loads(result)
|
@@ -1473,7 +1421,7 @@ def doDescribeDmsSqlHistory(args, parsed_globals):
|
|
1473
1421
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
1422
|
|
1475
1423
|
|
1476
|
-
def
|
1424
|
+
def doDeleteWorkloadGroup(args, parsed_globals):
|
1477
1425
|
g_param = parse_global_arg(parsed_globals)
|
1478
1426
|
|
1479
1427
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1502,11 +1450,11 @@ def doDescribeFederationToken(args, parsed_globals):
|
|
1502
1450
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1503
1451
|
client._sdkVersion += ("_CLI_" + __version__)
|
1504
1452
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1505
|
-
model = models.
|
1453
|
+
model = models.DeleteWorkloadGroupRequest()
|
1506
1454
|
model.from_json_string(json.dumps(args))
|
1507
1455
|
start_time = time.time()
|
1508
1456
|
while True:
|
1509
|
-
rsp = client.
|
1457
|
+
rsp = client.DeleteWorkloadGroup(model)
|
1510
1458
|
result = rsp.to_json_string()
|
1511
1459
|
try:
|
1512
1460
|
json_obj = json.loads(result)
|
@@ -1577,7 +1525,7 @@ def doModifySecurityGroups(args, parsed_globals):
|
|
1577
1525
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1578
1526
|
|
1579
1527
|
|
1580
|
-
def
|
1528
|
+
def doDescribeCoolDownBackends(args, parsed_globals):
|
1581
1529
|
g_param = parse_global_arg(parsed_globals)
|
1582
1530
|
|
1583
1531
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1606,11 +1554,11 @@ def doReduceInstance(args, parsed_globals):
|
|
1606
1554
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1607
1555
|
client._sdkVersion += ("_CLI_" + __version__)
|
1608
1556
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1609
|
-
model = models.
|
1557
|
+
model = models.DescribeCoolDownBackendsRequest()
|
1610
1558
|
model.from_json_string(json.dumps(args))
|
1611
1559
|
start_time = time.time()
|
1612
1560
|
while True:
|
1613
|
-
rsp = client.
|
1561
|
+
rsp = client.DescribeCoolDownBackends(model)
|
1614
1562
|
result = rsp.to_json_string()
|
1615
1563
|
try:
|
1616
1564
|
json_obj = json.loads(result)
|
@@ -1629,7 +1577,7 @@ def doReduceInstance(args, parsed_globals):
|
|
1629
1577
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
1578
|
|
1631
1579
|
|
1632
|
-
def
|
1580
|
+
def doScaleUpInstance(args, parsed_globals):
|
1633
1581
|
g_param = parse_global_arg(parsed_globals)
|
1634
1582
|
|
1635
1583
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1658,11 +1606,11 @@ def doModifyUserPrivilegesV3(args, parsed_globals):
|
|
1658
1606
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1659
1607
|
client._sdkVersion += ("_CLI_" + __version__)
|
1660
1608
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1661
|
-
model = models.
|
1609
|
+
model = models.ScaleUpInstanceRequest()
|
1662
1610
|
model.from_json_string(json.dumps(args))
|
1663
1611
|
start_time = time.time()
|
1664
1612
|
while True:
|
1665
|
-
rsp = client.
|
1613
|
+
rsp = client.ScaleUpInstance(model)
|
1666
1614
|
result = rsp.to_json_string()
|
1667
1615
|
try:
|
1668
1616
|
json_obj = json.loads(result)
|
@@ -1681,7 +1629,7 @@ def doModifyUserPrivilegesV3(args, parsed_globals):
|
|
1681
1629
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
1630
|
|
1683
1631
|
|
1684
|
-
def
|
1632
|
+
def doReduceInstance(args, parsed_globals):
|
1685
1633
|
g_param = parse_global_arg(parsed_globals)
|
1686
1634
|
|
1687
1635
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1710,11 +1658,11 @@ def doDescribeInstanceOperations(args, parsed_globals):
|
|
1710
1658
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1711
1659
|
client._sdkVersion += ("_CLI_" + __version__)
|
1712
1660
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1713
|
-
model = models.
|
1661
|
+
model = models.ReduceInstanceRequest()
|
1714
1662
|
model.from_json_string(json.dumps(args))
|
1715
1663
|
start_time = time.time()
|
1716
1664
|
while True:
|
1717
|
-
rsp = client.
|
1665
|
+
rsp = client.ReduceInstance(model)
|
1718
1666
|
result = rsp.to_json_string()
|
1719
1667
|
try:
|
1720
1668
|
json_obj = json.loads(result)
|
@@ -1733,7 +1681,7 @@ def doDescribeInstanceOperations(args, parsed_globals):
|
|
1733
1681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
1682
|
|
1735
1683
|
|
1736
|
-
def
|
1684
|
+
def doModifyInstance(args, parsed_globals):
|
1737
1685
|
g_param = parse_global_arg(parsed_globals)
|
1738
1686
|
|
1739
1687
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1762,11 +1710,11 @@ def doModifyWorkloadGroupStatus(args, parsed_globals):
|
|
1762
1710
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1763
1711
|
client._sdkVersion += ("_CLI_" + __version__)
|
1764
1712
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1765
|
-
model = models.
|
1713
|
+
model = models.ModifyInstanceRequest()
|
1766
1714
|
model.from_json_string(json.dumps(args))
|
1767
1715
|
start_time = time.time()
|
1768
1716
|
while True:
|
1769
|
-
rsp = client.
|
1717
|
+
rsp = client.ModifyInstance(model)
|
1770
1718
|
result = rsp.to_json_string()
|
1771
1719
|
try:
|
1772
1720
|
json_obj = json.loads(result)
|
@@ -1785,7 +1733,7 @@ def doModifyWorkloadGroupStatus(args, parsed_globals):
|
|
1785
1733
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1786
1734
|
|
1787
1735
|
|
1788
|
-
def
|
1736
|
+
def doModifyUserPrivilegesV3(args, parsed_globals):
|
1789
1737
|
g_param = parse_global_arg(parsed_globals)
|
1790
1738
|
|
1791
1739
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1814,11 +1762,11 @@ def doModifyWorkloadGroup(args, parsed_globals):
|
|
1814
1762
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1815
1763
|
client._sdkVersion += ("_CLI_" + __version__)
|
1816
1764
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1817
|
-
model = models.
|
1765
|
+
model = models.ModifyUserPrivilegesV3Request()
|
1818
1766
|
model.from_json_string(json.dumps(args))
|
1819
1767
|
start_time = time.time()
|
1820
1768
|
while True:
|
1821
|
-
rsp = client.
|
1769
|
+
rsp = client.ModifyUserPrivilegesV3(model)
|
1822
1770
|
result = rsp.to_json_string()
|
1823
1771
|
try:
|
1824
1772
|
json_obj = json.loads(result)
|
@@ -1837,7 +1785,7 @@ def doModifyWorkloadGroup(args, parsed_globals):
|
|
1837
1785
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
1786
|
|
1839
1787
|
|
1840
|
-
def
|
1788
|
+
def doDescribeInstanceOperations(args, parsed_globals):
|
1841
1789
|
g_param = parse_global_arg(parsed_globals)
|
1842
1790
|
|
1843
1791
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1866,11 +1814,11 @@ def doDescribeBackUpTaskDetail(args, parsed_globals):
|
|
1866
1814
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1867
1815
|
client._sdkVersion += ("_CLI_" + __version__)
|
1868
1816
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1869
|
-
model = models.
|
1817
|
+
model = models.DescribeInstanceOperationsRequest()
|
1870
1818
|
model.from_json_string(json.dumps(args))
|
1871
1819
|
start_time = time.time()
|
1872
1820
|
while True:
|
1873
|
-
rsp = client.
|
1821
|
+
rsp = client.DescribeInstanceOperations(model)
|
1874
1822
|
result = rsp.to_json_string()
|
1875
1823
|
try:
|
1876
1824
|
json_obj = json.loads(result)
|
@@ -1889,7 +1837,7 @@ def doDescribeBackUpTaskDetail(args, parsed_globals):
|
|
1889
1837
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1890
1838
|
|
1891
1839
|
|
1892
|
-
def
|
1840
|
+
def doModifyWorkloadGroupStatus(args, parsed_globals):
|
1893
1841
|
g_param = parse_global_arg(parsed_globals)
|
1894
1842
|
|
1895
1843
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1918,11 +1866,11 @@ def doDescribeInstance(args, parsed_globals):
|
|
1918
1866
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1919
1867
|
client._sdkVersion += ("_CLI_" + __version__)
|
1920
1868
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1921
|
-
model = models.
|
1869
|
+
model = models.ModifyWorkloadGroupStatusRequest()
|
1922
1870
|
model.from_json_string(json.dumps(args))
|
1923
1871
|
start_time = time.time()
|
1924
1872
|
while True:
|
1925
|
-
rsp = client.
|
1873
|
+
rsp = client.ModifyWorkloadGroupStatus(model)
|
1926
1874
|
result = rsp.to_json_string()
|
1927
1875
|
try:
|
1928
1876
|
json_obj = json.loads(result)
|
@@ -1941,7 +1889,7 @@ def doDescribeInstance(args, parsed_globals):
|
|
1941
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1942
1890
|
|
1943
1891
|
|
1944
|
-
def
|
1892
|
+
def doModifyCoolDownPolicy(args, parsed_globals):
|
1945
1893
|
g_param = parse_global_arg(parsed_globals)
|
1946
1894
|
|
1947
1895
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1970,11 +1918,11 @@ def doCreateInstanceNew(args, parsed_globals):
|
|
1970
1918
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
1971
1919
|
client._sdkVersion += ("_CLI_" + __version__)
|
1972
1920
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1973
|
-
model = models.
|
1921
|
+
model = models.ModifyCoolDownPolicyRequest()
|
1974
1922
|
model.from_json_string(json.dumps(args))
|
1975
1923
|
start_time = time.time()
|
1976
1924
|
while True:
|
1977
|
-
rsp = client.
|
1925
|
+
rsp = client.ModifyCoolDownPolicy(model)
|
1978
1926
|
result = rsp.to_json_string()
|
1979
1927
|
try:
|
1980
1928
|
json_obj = json.loads(result)
|
@@ -1993,7 +1941,7 @@ def doCreateInstanceNew(args, parsed_globals):
|
|
1993
1941
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1994
1942
|
|
1995
1943
|
|
1996
|
-
def
|
1944
|
+
def doDescribeSqlApis(args, parsed_globals):
|
1997
1945
|
g_param = parse_global_arg(parsed_globals)
|
1998
1946
|
|
1999
1947
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2022,11 +1970,11 @@ def doDescribeInstanceNodes(args, parsed_globals):
|
|
2022
1970
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2023
1971
|
client._sdkVersion += ("_CLI_" + __version__)
|
2024
1972
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2025
|
-
model = models.
|
1973
|
+
model = models.DescribeSqlApisRequest()
|
2026
1974
|
model.from_json_string(json.dumps(args))
|
2027
1975
|
start_time = time.time()
|
2028
1976
|
while True:
|
2029
|
-
rsp = client.
|
1977
|
+
rsp = client.DescribeSqlApis(model)
|
2030
1978
|
result = rsp.to_json_string()
|
2031
1979
|
try:
|
2032
1980
|
json_obj = json.loads(result)
|
@@ -2045,7 +1993,7 @@ def doDescribeInstanceNodes(args, parsed_globals):
|
|
2045
1993
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2046
1994
|
|
2047
1995
|
|
2048
|
-
def
|
1996
|
+
def doDescribeBackUpTaskDetail(args, parsed_globals):
|
2049
1997
|
g_param = parse_global_arg(parsed_globals)
|
2050
1998
|
|
2051
1999
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2074,11 +2022,11 @@ def doDescribeGoodsDetail(args, parsed_globals):
|
|
2074
2022
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2075
2023
|
client._sdkVersion += ("_CLI_" + __version__)
|
2076
2024
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2077
|
-
model = models.
|
2025
|
+
model = models.DescribeBackUpTaskDetailRequest()
|
2078
2026
|
model.from_json_string(json.dumps(args))
|
2079
2027
|
start_time = time.time()
|
2080
2028
|
while True:
|
2081
|
-
rsp = client.
|
2029
|
+
rsp = client.DescribeBackUpTaskDetail(model)
|
2082
2030
|
result = rsp.to_json_string()
|
2083
2031
|
try:
|
2084
2032
|
json_obj = json.loads(result)
|
@@ -2097,7 +2045,7 @@ def doDescribeGoodsDetail(args, parsed_globals):
|
|
2097
2045
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2098
2046
|
|
2099
2047
|
|
2100
|
-
def
|
2048
|
+
def doDescribeInstance(args, parsed_globals):
|
2101
2049
|
g_param = parse_global_arg(parsed_globals)
|
2102
2050
|
|
2103
2051
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2126,11 +2074,11 @@ def doDescribeDatabaseAuditResource(args, parsed_globals):
|
|
2126
2074
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2127
2075
|
client._sdkVersion += ("_CLI_" + __version__)
|
2128
2076
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2129
|
-
model = models.
|
2077
|
+
model = models.DescribeInstanceRequest()
|
2130
2078
|
model.from_json_string(json.dumps(args))
|
2131
2079
|
start_time = time.time()
|
2132
2080
|
while True:
|
2133
|
-
rsp = client.
|
2081
|
+
rsp = client.DescribeInstance(model)
|
2134
2082
|
result = rsp.to_json_string()
|
2135
2083
|
try:
|
2136
2084
|
json_obj = json.loads(result)
|
@@ -2149,7 +2097,7 @@ def doDescribeDatabaseAuditResource(args, parsed_globals):
|
|
2149
2097
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2150
2098
|
|
2151
2099
|
|
2152
|
-
def
|
2100
|
+
def doCreateInstanceNew(args, parsed_globals):
|
2153
2101
|
g_param = parse_global_arg(parsed_globals)
|
2154
2102
|
|
2155
2103
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2178,11 +2126,11 @@ def doCancelBackupJob(args, parsed_globals):
|
|
2178
2126
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2179
2127
|
client._sdkVersion += ("_CLI_" + __version__)
|
2180
2128
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2181
|
-
model = models.
|
2129
|
+
model = models.CreateInstanceNewRequest()
|
2182
2130
|
model.from_json_string(json.dumps(args))
|
2183
2131
|
start_time = time.time()
|
2184
2132
|
while True:
|
2185
|
-
rsp = client.
|
2133
|
+
rsp = client.CreateInstanceNew(model)
|
2186
2134
|
result = rsp.to_json_string()
|
2187
2135
|
try:
|
2188
2136
|
json_obj = json.loads(result)
|
@@ -2201,7 +2149,7 @@ def doCancelBackupJob(args, parsed_globals):
|
|
2201
2149
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
2150
|
|
2203
2151
|
|
2204
|
-
def
|
2152
|
+
def doDescribeInstanceNodes(args, parsed_globals):
|
2205
2153
|
g_param = parse_global_arg(parsed_globals)
|
2206
2154
|
|
2207
2155
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2230,11 +2178,11 @@ def doScaleUpInstance(args, parsed_globals):
|
|
2230
2178
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2231
2179
|
client._sdkVersion += ("_CLI_" + __version__)
|
2232
2180
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2233
|
-
model = models.
|
2181
|
+
model = models.DescribeInstanceNodesRequest()
|
2234
2182
|
model.from_json_string(json.dumps(args))
|
2235
2183
|
start_time = time.time()
|
2236
2184
|
while True:
|
2237
|
-
rsp = client.
|
2185
|
+
rsp = client.DescribeInstanceNodes(model)
|
2238
2186
|
result = rsp.to_json_string()
|
2239
2187
|
try:
|
2240
2188
|
json_obj = json.loads(result)
|
@@ -2253,7 +2201,7 @@ def doScaleUpInstance(args, parsed_globals):
|
|
2253
2201
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2254
2202
|
|
2255
2203
|
|
2256
|
-
def
|
2204
|
+
def doModifyWorkloadGroup(args, parsed_globals):
|
2257
2205
|
g_param = parse_global_arg(parsed_globals)
|
2258
2206
|
|
2259
2207
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2282,11 +2230,11 @@ def doDescribeSqlApis(args, parsed_globals):
|
|
2282
2230
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2283
2231
|
client._sdkVersion += ("_CLI_" + __version__)
|
2284
2232
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2285
|
-
model = models.
|
2233
|
+
model = models.ModifyWorkloadGroupRequest()
|
2286
2234
|
model.from_json_string(json.dumps(args))
|
2287
2235
|
start_time = time.time()
|
2288
2236
|
while True:
|
2289
|
-
rsp = client.
|
2237
|
+
rsp = client.ModifyWorkloadGroup(model)
|
2290
2238
|
result = rsp.to_json_string()
|
2291
2239
|
try:
|
2292
2240
|
json_obj = json.loads(result)
|
@@ -2305,7 +2253,7 @@ def doDescribeSqlApis(args, parsed_globals):
|
|
2305
2253
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2306
2254
|
|
2307
2255
|
|
2308
|
-
def
|
2256
|
+
def doCancelBackupJob(args, parsed_globals):
|
2309
2257
|
g_param = parse_global_arg(parsed_globals)
|
2310
2258
|
|
2311
2259
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2334,11 +2282,11 @@ def doScaleOutInstance(args, parsed_globals):
|
|
2334
2282
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2335
2283
|
client._sdkVersion += ("_CLI_" + __version__)
|
2336
2284
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2337
|
-
model = models.
|
2285
|
+
model = models.CancelBackupJobRequest()
|
2338
2286
|
model.from_json_string(json.dumps(args))
|
2339
2287
|
start_time = time.time()
|
2340
2288
|
while True:
|
2341
|
-
rsp = client.
|
2289
|
+
rsp = client.CancelBackupJob(model)
|
2342
2290
|
result = rsp.to_json_string()
|
2343
2291
|
try:
|
2344
2292
|
json_obj = json.loads(result)
|
@@ -2409,7 +2357,7 @@ def doDescribeBackUpJobDetail(args, parsed_globals):
|
|
2409
2357
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2410
2358
|
|
2411
2359
|
|
2412
|
-
def
|
2360
|
+
def doCheckCoolDownWorkingVariableConfigCorrect(args, parsed_globals):
|
2413
2361
|
g_param = parse_global_arg(parsed_globals)
|
2414
2362
|
|
2415
2363
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2438,11 +2386,11 @@ def doDescribeInstanceNodesRole(args, parsed_globals):
|
|
2438
2386
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2439
2387
|
client._sdkVersion += ("_CLI_" + __version__)
|
2440
2388
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2441
|
-
model = models.
|
2389
|
+
model = models.CheckCoolDownWorkingVariableConfigCorrectRequest()
|
2442
2390
|
model.from_json_string(json.dumps(args))
|
2443
2391
|
start_time = time.time()
|
2444
2392
|
while True:
|
2445
|
-
rsp = client.
|
2393
|
+
rsp = client.CheckCoolDownWorkingVariableConfigCorrect(model)
|
2446
2394
|
result = rsp.to_json_string()
|
2447
2395
|
try:
|
2448
2396
|
json_obj = json.loads(result)
|
@@ -2617,7 +2565,7 @@ def doDescribeAreaRegion(args, parsed_globals):
|
|
2617
2565
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2618
2566
|
|
2619
2567
|
|
2620
|
-
def
|
2568
|
+
def doOpenCoolDown(args, parsed_globals):
|
2621
2569
|
g_param = parse_global_arg(parsed_globals)
|
2622
2570
|
|
2623
2571
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2646,11 +2594,11 @@ def doModifyInstance(args, parsed_globals):
|
|
2646
2594
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2647
2595
|
client._sdkVersion += ("_CLI_" + __version__)
|
2648
2596
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2649
|
-
model = models.
|
2597
|
+
model = models.OpenCoolDownRequest()
|
2650
2598
|
model.from_json_string(json.dumps(args))
|
2651
2599
|
start_time = time.time()
|
2652
2600
|
while True:
|
2653
|
-
rsp = client.
|
2601
|
+
rsp = client.OpenCoolDown(model)
|
2654
2602
|
result = rsp.to_json_string()
|
2655
2603
|
try:
|
2656
2604
|
json_obj = json.loads(result)
|
@@ -2669,7 +2617,7 @@ def doModifyInstance(args, parsed_globals):
|
|
2669
2617
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2670
2618
|
|
2671
2619
|
|
2672
|
-
def
|
2620
|
+
def doDescribeInstancesHealthState(args, parsed_globals):
|
2673
2621
|
g_param = parse_global_arg(parsed_globals)
|
2674
2622
|
|
2675
2623
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2698,11 +2646,11 @@ def doDescribeSlowQueryRecordsDownload(args, parsed_globals):
|
|
2698
2646
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2699
2647
|
client._sdkVersion += ("_CLI_" + __version__)
|
2700
2648
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2701
|
-
model = models.
|
2649
|
+
model = models.DescribeInstancesHealthStateRequest()
|
2702
2650
|
model.from_json_string(json.dumps(args))
|
2703
2651
|
start_time = time.time()
|
2704
2652
|
while True:
|
2705
|
-
rsp = client.
|
2653
|
+
rsp = client.DescribeInstancesHealthState(model)
|
2706
2654
|
result = rsp.to_json_string()
|
2707
2655
|
try:
|
2708
2656
|
json_obj = json.loads(result)
|
@@ -2721,7 +2669,7 @@ def doDescribeSlowQueryRecordsDownload(args, parsed_globals):
|
|
2721
2669
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2722
2670
|
|
2723
2671
|
|
2724
|
-
def
|
2672
|
+
def doRestartClusterForNode(args, parsed_globals):
|
2725
2673
|
g_param = parse_global_arg(parsed_globals)
|
2726
2674
|
|
2727
2675
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2750,11 +2698,11 @@ def doDescribeInstancesHealthState(args, parsed_globals):
|
|
2750
2698
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2751
2699
|
client._sdkVersion += ("_CLI_" + __version__)
|
2752
2700
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2753
|
-
model = models.
|
2701
|
+
model = models.RestartClusterForNodeRequest()
|
2754
2702
|
model.from_json_string(json.dumps(args))
|
2755
2703
|
start_time = time.time()
|
2756
2704
|
while True:
|
2757
|
-
rsp = client.
|
2705
|
+
rsp = client.RestartClusterForNode(model)
|
2758
2706
|
result = rsp.to_json_string()
|
2759
2707
|
try:
|
2760
2708
|
json_obj = json.loads(result)
|
@@ -2773,7 +2721,7 @@ def doDescribeInstancesHealthState(args, parsed_globals):
|
|
2773
2721
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2774
2722
|
|
2775
2723
|
|
2776
|
-
def
|
2724
|
+
def doDescribeSlowQueryRecordsDownload(args, parsed_globals):
|
2777
2725
|
g_param = parse_global_arg(parsed_globals)
|
2778
2726
|
|
2779
2727
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2802,11 +2750,11 @@ def doRestartClusterForNode(args, parsed_globals):
|
|
2802
2750
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2803
2751
|
client._sdkVersion += ("_CLI_" + __version__)
|
2804
2752
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2805
|
-
model = models.
|
2753
|
+
model = models.DescribeSlowQueryRecordsDownloadRequest()
|
2806
2754
|
model.from_json_string(json.dumps(args))
|
2807
2755
|
start_time = time.time()
|
2808
2756
|
while True:
|
2809
|
-
rsp = client.
|
2757
|
+
rsp = client.DescribeSlowQueryRecordsDownload(model)
|
2810
2758
|
result = rsp.to_json_string()
|
2811
2759
|
try:
|
2812
2760
|
json_obj = json.loads(result)
|
@@ -2825,7 +2773,7 @@ def doRestartClusterForNode(args, parsed_globals):
|
|
2825
2773
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2826
2774
|
|
2827
2775
|
|
2828
|
-
def
|
2776
|
+
def doDescribeInstanceNodesRole(args, parsed_globals):
|
2829
2777
|
g_param = parse_global_arg(parsed_globals)
|
2830
2778
|
|
2831
2779
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2854,11 +2802,11 @@ def doFitClsLog(args, parsed_globals):
|
|
2854
2802
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2855
2803
|
client._sdkVersion += ("_CLI_" + __version__)
|
2856
2804
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2857
|
-
model = models.
|
2805
|
+
model = models.DescribeInstanceNodesRoleRequest()
|
2858
2806
|
model.from_json_string(json.dumps(args))
|
2859
2807
|
start_time = time.time()
|
2860
2808
|
while True:
|
2861
|
-
rsp = client.
|
2809
|
+
rsp = client.DescribeInstanceNodesRole(model)
|
2862
2810
|
result = rsp.to_json_string()
|
2863
2811
|
try:
|
2864
2812
|
json_obj = json.loads(result)
|
@@ -2877,7 +2825,7 @@ def doFitClsLog(args, parsed_globals):
|
|
2877
2825
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
2826
|
|
2879
2827
|
|
2880
|
-
def
|
2828
|
+
def doDescribeCoolDownPolicies(args, parsed_globals):
|
2881
2829
|
g_param = parse_global_arg(parsed_globals)
|
2882
2830
|
|
2883
2831
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2906,11 +2854,11 @@ def doDescribeReplicaVersion(args, parsed_globals):
|
|
2906
2854
|
client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile)
|
2907
2855
|
client._sdkVersion += ("_CLI_" + __version__)
|
2908
2856
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2909
|
-
model = models.
|
2857
|
+
model = models.DescribeCoolDownPoliciesRequest()
|
2910
2858
|
model.from_json_string(json.dumps(args))
|
2911
2859
|
start_time = time.time()
|
2912
2860
|
while True:
|
2913
|
-
rsp = client.
|
2861
|
+
rsp = client.DescribeCoolDownPolicies(model)
|
2914
2862
|
result = rsp.to_json_string()
|
2915
2863
|
try:
|
2916
2864
|
json_obj = json.loads(result)
|
@@ -3097,11 +3045,11 @@ MODELS_MAP = {
|
|
3097
3045
|
|
3098
3046
|
ACTION_MAP = {
|
3099
3047
|
"CreateBackUpSchedule": doCreateBackUpSchedule,
|
3100
|
-
"
|
3048
|
+
"OpenCoolDownPolicy": doOpenCoolDownPolicy,
|
3101
3049
|
"DescribeBackUpSchedules": doDescribeBackUpSchedules,
|
3102
3050
|
"DescribeBackUpJob": doDescribeBackUpJob,
|
3103
3051
|
"DestroyInstance": doDestroyInstance,
|
3104
|
-
"
|
3052
|
+
"DescribeCoolDownTableData": doDescribeCoolDownTableData,
|
3105
3053
|
"DescribeDatabaseAuditRecords": doDescribeDatabaseAuditRecords,
|
3106
3054
|
"DescribeRestoreTaskDetail": doDescribeRestoreTaskDetail,
|
3107
3055
|
"CreateWorkloadGroup": doCreateWorkloadGroup,
|
@@ -3111,7 +3059,7 @@ ACTION_MAP = {
|
|
3111
3059
|
"DescribeClusterConfigs": doDescribeClusterConfigs,
|
3112
3060
|
"DescribeTableList": doDescribeTableList,
|
3113
3061
|
"DescribeBackUpTables": doDescribeBackUpTables,
|
3114
|
-
"
|
3062
|
+
"ScaleOutInstance": doScaleOutInstance,
|
3115
3063
|
"ModifyNodeStatus": doModifyNodeStatus,
|
3116
3064
|
"DescribeClusterConfigsHistory": doDescribeClusterConfigsHistory,
|
3117
3065
|
"DescribeSlowQueryRecords": doDescribeSlowQueryRecords,
|
@@ -3119,39 +3067,38 @@ ACTION_MAP = {
|
|
3119
3067
|
"ModifyUserBindWorkloadGroup": doModifyUserBindWorkloadGroup,
|
3120
3068
|
"DeleteBackUpData": doDeleteBackUpData,
|
3121
3069
|
"DescribeInstances": doDescribeInstances,
|
3070
|
+
"CreateCoolDownPolicy": doCreateCoolDownPolicy,
|
3071
|
+
"UpdateCoolDown": doUpdateCoolDown,
|
3122
3072
|
"DescribeInstanceState": doDescribeInstanceState,
|
3123
3073
|
"DescribeInstanceUsedSubnets": doDescribeInstanceUsedSubnets,
|
3124
3074
|
"DeleteWorkloadGroup": doDeleteWorkloadGroup,
|
3125
|
-
"OpenBackUp": doOpenBackUp,
|
3126
|
-
"DescribeDmsSqlHistory": doDescribeDmsSqlHistory,
|
3127
|
-
"DescribeFederationToken": doDescribeFederationToken,
|
3128
3075
|
"ModifySecurityGroups": doModifySecurityGroups,
|
3076
|
+
"DescribeCoolDownBackends": doDescribeCoolDownBackends,
|
3077
|
+
"ScaleUpInstance": doScaleUpInstance,
|
3129
3078
|
"ReduceInstance": doReduceInstance,
|
3079
|
+
"ModifyInstance": doModifyInstance,
|
3130
3080
|
"ModifyUserPrivilegesV3": doModifyUserPrivilegesV3,
|
3131
3081
|
"DescribeInstanceOperations": doDescribeInstanceOperations,
|
3132
3082
|
"ModifyWorkloadGroupStatus": doModifyWorkloadGroupStatus,
|
3133
|
-
"
|
3083
|
+
"ModifyCoolDownPolicy": doModifyCoolDownPolicy,
|
3084
|
+
"DescribeSqlApis": doDescribeSqlApis,
|
3134
3085
|
"DescribeBackUpTaskDetail": doDescribeBackUpTaskDetail,
|
3135
3086
|
"DescribeInstance": doDescribeInstance,
|
3136
3087
|
"CreateInstanceNew": doCreateInstanceNew,
|
3137
3088
|
"DescribeInstanceNodes": doDescribeInstanceNodes,
|
3138
|
-
"
|
3139
|
-
"DescribeDatabaseAuditResource": doDescribeDatabaseAuditResource,
|
3089
|
+
"ModifyWorkloadGroup": doModifyWorkloadGroup,
|
3140
3090
|
"CancelBackupJob": doCancelBackupJob,
|
3141
|
-
"ScaleUpInstance": doScaleUpInstance,
|
3142
|
-
"DescribeSqlApis": doDescribeSqlApis,
|
3143
|
-
"ScaleOutInstance": doScaleOutInstance,
|
3144
3091
|
"DescribeBackUpJobDetail": doDescribeBackUpJobDetail,
|
3145
|
-
"
|
3092
|
+
"CheckCoolDownWorkingVariableConfigCorrect": doCheckCoolDownWorkingVariableConfigCorrect,
|
3146
3093
|
"RestartClusterForConfigs": doRestartClusterForConfigs,
|
3147
3094
|
"DescribeSpec": doDescribeSpec,
|
3148
3095
|
"DescribeAreaRegion": doDescribeAreaRegion,
|
3149
|
-
"
|
3150
|
-
"DescribeSlowQueryRecordsDownload": doDescribeSlowQueryRecordsDownload,
|
3096
|
+
"OpenCoolDown": doOpenCoolDown,
|
3151
3097
|
"DescribeInstancesHealthState": doDescribeInstancesHealthState,
|
3152
3098
|
"RestartClusterForNode": doRestartClusterForNode,
|
3153
|
-
"
|
3154
|
-
"
|
3099
|
+
"DescribeSlowQueryRecordsDownload": doDescribeSlowQueryRecordsDownload,
|
3100
|
+
"DescribeInstanceNodesRole": doDescribeInstanceNodesRole,
|
3101
|
+
"DescribeCoolDownPolicies": doDescribeCoolDownPolicies,
|
3155
3102
|
"DescribeWorkloadGroup": doDescribeWorkloadGroup,
|
3156
3103
|
"ResizeDisk": doResizeDisk,
|
3157
3104
|
"ModifyInstanceKeyValConfigs": doModifyInstanceKeyValConfigs,
|