tccli 3.0.1240.1__py2.py3-none-any.whl → 3.0.1241.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/apm/v20210622/api.json +66 -69
- tccli/services/apm/v20210622/examples.json +26 -26
- tccli/services/autoscaling/v20180419/api.json +12 -1
- tccli/services/batch/v20170312/api.json +11 -11
- tccli/services/billing/v20180709/api.json +20 -0
- tccli/services/cam/v20190116/api.json +1 -1
- tccli/services/car/v20220110/api.json +1 -1
- tccli/services/car/v20220110/examples.json +3 -3
- tccli/services/cdb/v20170320/api.json +582 -579
- tccli/services/cdb/v20170320/examples.json +9 -9
- tccli/services/cdwdoris/v20211228/api.json +40 -0
- tccli/services/cfg/v20210820/api.json +11 -0
- tccli/services/chdfs/v20201112/api.json +10 -10
- tccli/services/chdfs/v20201112/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/cmq/v20190304/api.json +77 -77
- tccli/services/cvm/cvm_client.py +60 -325
- tccli/services/cvm/v20170312/api.json +618 -1401
- tccli/services/cvm/v20170312/examples.json +8 -48
- tccli/services/cwp/cwp_client.py +0 -53
- tccli/services/cwp/v20180228/api.json +0 -34
- tccli/services/cwp/v20180228/examples.json +0 -8
- tccli/services/cynosdb/v20190107/api.json +452 -458
- tccli/services/cynosdb/v20190107/examples.json +23 -23
- tccli/services/dbbrain/v20191016/api.json +16 -4
- tccli/services/dbbrain/v20191016/examples.json +5 -5
- tccli/services/dbbrain/v20210527/api.json +44 -44
- tccli/services/dbbrain/v20210527/examples.json +8 -8
- tccli/services/dts/v20180330/api.json +30 -30
- tccli/services/dts/v20180330/examples.json +4 -4
- tccli/services/dts/v20211206/api.json +19 -9
- tccli/services/dts/v20211206/examples.json +5 -5
- tccli/services/ecm/v20190719/api.json +55 -48
- tccli/services/ecm/v20190719/examples.json +7 -7
- tccli/services/emr/emr_client.py +493 -16
- tccli/services/emr/v20190103/api.json +1323 -246
- tccli/services/emr/v20190103/examples.json +72 -0
- tccli/services/ess/v20201111/api.json +13 -4
- tccli/services/essbasic/v20210526/api.json +11 -2
- tccli/services/essbasic/v20210526/examples.json +12 -0
- tccli/services/faceid/v20180301/api.json +3 -3
- tccli/services/gaap/v20180529/api.json +181 -183
- tccli/services/gaap/v20180529/examples.json +31 -37
- tccli/services/gs/v20191118/api.json +3 -3
- tccli/services/gs/v20191118/examples.json +3 -3
- tccli/services/iai/iai_client.py +53 -0
- tccli/services/iai/v20200303/api.json +80 -0
- tccli/services/iai/v20200303/examples.json +14 -0
- tccli/services/iotexplorer/v20190423/api.json +10 -0
- tccli/services/keewidb/v20220308/api.json +188 -190
- tccli/services/live/v20180801/api.json +323 -222
- tccli/services/live/v20180801/examples.json +79 -79
- tccli/services/mna/v20210119/api.json +20 -20
- tccli/services/mps/v20190612/api.json +40 -0
- tccli/services/oceanus/v20190422/api.json +407 -39
- tccli/services/oceanus/v20190422/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +50 -0
- tccli/services/sqlserver/v20180328/api.json +235 -139
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +777 -779
- tccli/services/ssl/v20191205/examples.json +8 -8
- tccli/services/tbaas/v20180416/api.json +118 -82
- tccli/services/tbaas/v20180416/examples.json +7 -7
- tccli/services/tcb/v20180608/api.json +18 -18
- tccli/services/tcb/v20180608/examples.json +2 -2
- tccli/services/tcm/v20210413/api.json +6 -6
- tccli/services/tcm/v20210413/examples.json +1 -1
- tccli/services/tcr/v20190924/api.json +17 -12
- tccli/services/tdmq/v20200217/api.json +18 -0
- tccli/services/tem/v20210701/api.json +439 -280
- tccli/services/tem/v20210701/examples.json +39 -39
- tccli/services/tke/v20180525/api.json +50 -39
- tccli/services/tke/v20180525/examples.json +51 -21
- tccli/services/trro/v20220325/api.json +27 -27
- tccli/services/trro/v20220325/examples.json +1 -1
- tccli/services/tse/v20201207/api.json +46 -9
- tccli/services/tse/v20201207/examples.json +31 -31
- tccli/services/tsf/v20180326/api.json +448 -434
- tccli/services/tsf/v20180326/examples.json +122 -122
- tccli/services/tts/v20190823/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +278 -37
- tccli/services/vpc/v20170312/examples.json +56 -8
- tccli/services/vpc/vpc_client.py +159 -0
- tccli/services/waf/v20180125/api.json +303 -4
- tccli/services/waf/v20180125/examples.json +25 -1
- tccli/services/waf/waf_client.py +163 -4
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1241.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1241.1.dist-info}/RECORD +92 -92
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1241.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1241.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1241.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/cvm/cvm_client.py
CHANGED
@@ -485,7 +485,7 @@ def doDescribeDisasterRecoverGroupQuota(args, parsed_globals):
|
|
485
485
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
486
|
|
487
487
|
|
488
|
-
def
|
488
|
+
def doDescribeTaskInfo(args, parsed_globals):
|
489
489
|
g_param = parse_global_arg(parsed_globals)
|
490
490
|
|
491
491
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -514,11 +514,11 @@ def doDescribeReservedInstances(args, parsed_globals):
|
|
514
514
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
515
515
|
client._sdkVersion += ("_CLI_" + __version__)
|
516
516
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
517
|
-
model = models.
|
517
|
+
model = models.DescribeTaskInfoRequest()
|
518
518
|
model.from_json_string(json.dumps(args))
|
519
519
|
start_time = time.time()
|
520
520
|
while True:
|
521
|
-
rsp = client.
|
521
|
+
rsp = client.DescribeTaskInfo(model)
|
522
522
|
result = rsp.to_json_string()
|
523
523
|
try:
|
524
524
|
json_obj = json.loads(result)
|
@@ -693,58 +693,6 @@ def doResetInstancesType(args, parsed_globals):
|
|
693
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
694
|
|
695
695
|
|
696
|
-
def doDescribeReservedInstancesConfigInfos(args, parsed_globals):
|
697
|
-
g_param = parse_global_arg(parsed_globals)
|
698
|
-
|
699
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
700
|
-
cred = credential.CVMRoleCredential()
|
701
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
702
|
-
cred = credential.STSAssumeRoleCredential(
|
703
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
704
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
705
|
-
)
|
706
|
-
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):
|
707
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
708
|
-
else:
|
709
|
-
cred = credential.Credential(
|
710
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
711
|
-
)
|
712
|
-
http_profile = HttpProfile(
|
713
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
714
|
-
reqMethod="POST",
|
715
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
716
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
717
|
-
)
|
718
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
719
|
-
if g_param[OptionsDefine.Language]:
|
720
|
-
profile.language = g_param[OptionsDefine.Language]
|
721
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
722
|
-
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
723
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
724
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
725
|
-
model = models.DescribeReservedInstancesConfigInfosRequest()
|
726
|
-
model.from_json_string(json.dumps(args))
|
727
|
-
start_time = time.time()
|
728
|
-
while True:
|
729
|
-
rsp = client.DescribeReservedInstancesConfigInfos(model)
|
730
|
-
result = rsp.to_json_string()
|
731
|
-
try:
|
732
|
-
json_obj = json.loads(result)
|
733
|
-
except TypeError as e:
|
734
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
735
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
736
|
-
break
|
737
|
-
cur_time = time.time()
|
738
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
739
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
740
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
741
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
742
|
-
else:
|
743
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
744
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
745
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
746
|
-
|
747
|
-
|
748
696
|
def doDescribeInstanceFamilyConfigs(args, parsed_globals):
|
749
697
|
g_param = parse_global_arg(parsed_globals)
|
750
698
|
|
@@ -797,58 +745,6 @@ def doDescribeInstanceFamilyConfigs(args, parsed_globals):
|
|
797
745
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
798
746
|
|
799
747
|
|
800
|
-
def doInquirePricePurchaseReservedInstancesOffering(args, parsed_globals):
|
801
|
-
g_param = parse_global_arg(parsed_globals)
|
802
|
-
|
803
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
804
|
-
cred = credential.CVMRoleCredential()
|
805
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
806
|
-
cred = credential.STSAssumeRoleCredential(
|
807
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
808
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
809
|
-
)
|
810
|
-
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):
|
811
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
812
|
-
else:
|
813
|
-
cred = credential.Credential(
|
814
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
815
|
-
)
|
816
|
-
http_profile = HttpProfile(
|
817
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
818
|
-
reqMethod="POST",
|
819
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
820
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
821
|
-
)
|
822
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
823
|
-
if g_param[OptionsDefine.Language]:
|
824
|
-
profile.language = g_param[OptionsDefine.Language]
|
825
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
826
|
-
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
827
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
828
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
829
|
-
model = models.InquirePricePurchaseReservedInstancesOfferingRequest()
|
830
|
-
model.from_json_string(json.dumps(args))
|
831
|
-
start_time = time.time()
|
832
|
-
while True:
|
833
|
-
rsp = client.InquirePricePurchaseReservedInstancesOffering(model)
|
834
|
-
result = rsp.to_json_string()
|
835
|
-
try:
|
836
|
-
json_obj = json.loads(result)
|
837
|
-
except TypeError as e:
|
838
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
839
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
840
|
-
break
|
841
|
-
cur_time = time.time()
|
842
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
843
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
844
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
845
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
846
|
-
else:
|
847
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
848
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
849
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
|
-
|
851
|
-
|
852
748
|
def doSyncImages(args, parsed_globals):
|
853
749
|
g_param = parse_global_arg(parsed_globals)
|
854
750
|
|
@@ -1317,58 +1213,6 @@ def doDescribeImageSharePermission(args, parsed_globals):
|
|
1317
1213
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1214
|
|
1319
1215
|
|
1320
|
-
def doDescribeRegions(args, parsed_globals):
|
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.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
1348
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
-
model = models.DescribeRegionsRequest()
|
1350
|
-
model.from_json_string(json.dumps(args))
|
1351
|
-
start_time = time.time()
|
1352
|
-
while True:
|
1353
|
-
rsp = client.DescribeRegions(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
1216
|
def doDescribeInstancesModification(args, parsed_globals):
|
1373
1217
|
g_param = parse_global_arg(parsed_globals)
|
1374
1218
|
|
@@ -1837,7 +1681,7 @@ def doDescribeInstancesOperationLimit(args, parsed_globals):
|
|
1837
1681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
1682
|
|
1839
1683
|
|
1840
|
-
def
|
1684
|
+
def doStopInstances(args, parsed_globals):
|
1841
1685
|
g_param = parse_global_arg(parsed_globals)
|
1842
1686
|
|
1843
1687
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1866,11 +1710,11 @@ def doDeleteLaunchTemplateVersions(args, parsed_globals):
|
|
1866
1710
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
1867
1711
|
client._sdkVersion += ("_CLI_" + __version__)
|
1868
1712
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1869
|
-
model = models.
|
1713
|
+
model = models.StopInstancesRequest()
|
1870
1714
|
model.from_json_string(json.dumps(args))
|
1871
1715
|
start_time = time.time()
|
1872
1716
|
while True:
|
1873
|
-
rsp = client.
|
1717
|
+
rsp = client.StopInstances(model)
|
1874
1718
|
result = rsp.to_json_string()
|
1875
1719
|
try:
|
1876
1720
|
json_obj = json.loads(result)
|
@@ -1889,7 +1733,7 @@ def doDeleteLaunchTemplateVersions(args, parsed_globals):
|
|
1889
1733
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1890
1734
|
|
1891
1735
|
|
1892
|
-
def
|
1736
|
+
def doDescribeRegions(args, parsed_globals):
|
1893
1737
|
g_param = parse_global_arg(parsed_globals)
|
1894
1738
|
|
1895
1739
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1918,11 +1762,11 @@ def doStopInstances(args, parsed_globals):
|
|
1918
1762
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
1919
1763
|
client._sdkVersion += ("_CLI_" + __version__)
|
1920
1764
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1921
|
-
model = models.
|
1765
|
+
model = models.DescribeRegionsRequest()
|
1922
1766
|
model.from_json_string(json.dumps(args))
|
1923
1767
|
start_time = time.time()
|
1924
1768
|
while True:
|
1925
|
-
rsp = client.
|
1769
|
+
rsp = client.DescribeRegions(model)
|
1926
1770
|
result = rsp.to_json_string()
|
1927
1771
|
try:
|
1928
1772
|
json_obj = json.loads(result)
|
@@ -2773,58 +2617,6 @@ def doInquiryPriceResetInstance(args, parsed_globals):
|
|
2773
2617
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2774
2618
|
|
2775
2619
|
|
2776
|
-
def doPurchaseReservedInstancesOffering(args, parsed_globals):
|
2777
|
-
g_param = parse_global_arg(parsed_globals)
|
2778
|
-
|
2779
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2780
|
-
cred = credential.CVMRoleCredential()
|
2781
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2782
|
-
cred = credential.STSAssumeRoleCredential(
|
2783
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2784
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2785
|
-
)
|
2786
|
-
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):
|
2787
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2788
|
-
else:
|
2789
|
-
cred = credential.Credential(
|
2790
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2791
|
-
)
|
2792
|
-
http_profile = HttpProfile(
|
2793
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2794
|
-
reqMethod="POST",
|
2795
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
2796
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2797
|
-
)
|
2798
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2799
|
-
if g_param[OptionsDefine.Language]:
|
2800
|
-
profile.language = g_param[OptionsDefine.Language]
|
2801
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2802
|
-
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
2803
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
2804
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2805
|
-
model = models.PurchaseReservedInstancesOfferingRequest()
|
2806
|
-
model.from_json_string(json.dumps(args))
|
2807
|
-
start_time = time.time()
|
2808
|
-
while True:
|
2809
|
-
rsp = client.PurchaseReservedInstancesOffering(model)
|
2810
|
-
result = rsp.to_json_string()
|
2811
|
-
try:
|
2812
|
-
json_obj = json.loads(result)
|
2813
|
-
except TypeError as e:
|
2814
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2815
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2816
|
-
break
|
2817
|
-
cur_time = time.time()
|
2818
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2819
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2820
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2821
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2822
|
-
else:
|
2823
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2824
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2825
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2826
|
-
|
2827
|
-
|
2828
2620
|
def doModifyInstancesRenewFlag(args, parsed_globals):
|
2829
2621
|
g_param = parse_global_arg(parsed_globals)
|
2830
2622
|
|
@@ -3501,59 +3293,7 @@ def doDescribeKeyPairs(args, parsed_globals):
|
|
3501
3293
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3502
3294
|
|
3503
3295
|
|
3504
|
-
def
|
3505
|
-
g_param = parse_global_arg(parsed_globals)
|
3506
|
-
|
3507
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3508
|
-
cred = credential.CVMRoleCredential()
|
3509
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3510
|
-
cred = credential.STSAssumeRoleCredential(
|
3511
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3512
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3513
|
-
)
|
3514
|
-
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):
|
3515
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3516
|
-
else:
|
3517
|
-
cred = credential.Credential(
|
3518
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3519
|
-
)
|
3520
|
-
http_profile = HttpProfile(
|
3521
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3522
|
-
reqMethod="POST",
|
3523
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
3524
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3525
|
-
)
|
3526
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3527
|
-
if g_param[OptionsDefine.Language]:
|
3528
|
-
profile.language = g_param[OptionsDefine.Language]
|
3529
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3530
|
-
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
3531
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
3532
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3533
|
-
model = models.DescribeTaskInfoRequest()
|
3534
|
-
model.from_json_string(json.dumps(args))
|
3535
|
-
start_time = time.time()
|
3536
|
-
while True:
|
3537
|
-
rsp = client.DescribeTaskInfo(model)
|
3538
|
-
result = rsp.to_json_string()
|
3539
|
-
try:
|
3540
|
-
json_obj = json.loads(result)
|
3541
|
-
except TypeError as e:
|
3542
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3543
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3544
|
-
break
|
3545
|
-
cur_time = time.time()
|
3546
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3547
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3548
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3549
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3550
|
-
else:
|
3551
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3552
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3553
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3554
|
-
|
3555
|
-
|
3556
|
-
def doDescribeReservedInstancesOfferings(args, parsed_globals):
|
3296
|
+
def doInquiryPriceModifyInstancesChargeType(args, parsed_globals):
|
3557
3297
|
g_param = parse_global_arg(parsed_globals)
|
3558
3298
|
|
3559
3299
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3582,11 +3322,11 @@ def doDescribeReservedInstancesOfferings(args, parsed_globals):
|
|
3582
3322
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
3583
3323
|
client._sdkVersion += ("_CLI_" + __version__)
|
3584
3324
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3585
|
-
model = models.
|
3325
|
+
model = models.InquiryPriceModifyInstancesChargeTypeRequest()
|
3586
3326
|
model.from_json_string(json.dumps(args))
|
3587
3327
|
start_time = time.time()
|
3588
3328
|
while True:
|
3589
|
-
rsp = client.
|
3329
|
+
rsp = client.InquiryPriceModifyInstancesChargeType(model)
|
3590
3330
|
result = rsp.to_json_string()
|
3591
3331
|
try:
|
3592
3332
|
json_obj = json.loads(result)
|
@@ -3605,7 +3345,7 @@ def doDescribeReservedInstancesOfferings(args, parsed_globals):
|
|
3605
3345
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3606
3346
|
|
3607
3347
|
|
3608
|
-
def
|
3348
|
+
def doDescribeInternetChargeTypeConfigs(args, parsed_globals):
|
3609
3349
|
g_param = parse_global_arg(parsed_globals)
|
3610
3350
|
|
3611
3351
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3634,11 +3374,11 @@ def doInquiryPriceModifyInstancesChargeType(args, parsed_globals):
|
|
3634
3374
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
3635
3375
|
client._sdkVersion += ("_CLI_" + __version__)
|
3636
3376
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3637
|
-
model = models.
|
3377
|
+
model = models.DescribeInternetChargeTypeConfigsRequest()
|
3638
3378
|
model.from_json_string(json.dumps(args))
|
3639
3379
|
start_time = time.time()
|
3640
3380
|
while True:
|
3641
|
-
rsp = client.
|
3381
|
+
rsp = client.DescribeInternetChargeTypeConfigs(model)
|
3642
3382
|
result = rsp.to_json_string()
|
3643
3383
|
try:
|
3644
3384
|
json_obj = json.loads(result)
|
@@ -3657,7 +3397,7 @@ def doInquiryPriceModifyInstancesChargeType(args, parsed_globals):
|
|
3657
3397
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3658
3398
|
|
3659
3399
|
|
3660
|
-
def
|
3400
|
+
def doRebootInstances(args, parsed_globals):
|
3661
3401
|
g_param = parse_global_arg(parsed_globals)
|
3662
3402
|
|
3663
3403
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3686,11 +3426,11 @@ def doDescribeInternetChargeTypeConfigs(args, parsed_globals):
|
|
3686
3426
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
3687
3427
|
client._sdkVersion += ("_CLI_" + __version__)
|
3688
3428
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3689
|
-
model = models.
|
3429
|
+
model = models.RebootInstancesRequest()
|
3690
3430
|
model.from_json_string(json.dumps(args))
|
3691
3431
|
start_time = time.time()
|
3692
3432
|
while True:
|
3693
|
-
rsp = client.
|
3433
|
+
rsp = client.RebootInstances(model)
|
3694
3434
|
result = rsp.to_json_string()
|
3695
3435
|
try:
|
3696
3436
|
json_obj = json.loads(result)
|
@@ -3709,7 +3449,7 @@ def doDescribeInternetChargeTypeConfigs(args, parsed_globals):
|
|
3709
3449
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3710
3450
|
|
3711
3451
|
|
3712
|
-
def
|
3452
|
+
def doInquiryPriceRenewHosts(args, parsed_globals):
|
3713
3453
|
g_param = parse_global_arg(parsed_globals)
|
3714
3454
|
|
3715
3455
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3738,11 +3478,11 @@ def doRebootInstances(args, parsed_globals):
|
|
3738
3478
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
3739
3479
|
client._sdkVersion += ("_CLI_" + __version__)
|
3740
3480
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3741
|
-
model = models.
|
3481
|
+
model = models.InquiryPriceRenewHostsRequest()
|
3742
3482
|
model.from_json_string(json.dumps(args))
|
3743
3483
|
start_time = time.time()
|
3744
3484
|
while True:
|
3745
|
-
rsp = client.
|
3485
|
+
rsp = client.InquiryPriceRenewHosts(model)
|
3746
3486
|
result = rsp.to_json_string()
|
3747
3487
|
try:
|
3748
3488
|
json_obj = json.loads(result)
|
@@ -3761,7 +3501,7 @@ def doRebootInstances(args, parsed_globals):
|
|
3761
3501
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3762
3502
|
|
3763
3503
|
|
3764
|
-
def
|
3504
|
+
def doDescribeImageFromFamily(args, parsed_globals):
|
3765
3505
|
g_param = parse_global_arg(parsed_globals)
|
3766
3506
|
|
3767
3507
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3790,11 +3530,11 @@ def doInquiryPriceRenewHosts(args, parsed_globals):
|
|
3790
3530
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
3791
3531
|
client._sdkVersion += ("_CLI_" + __version__)
|
3792
3532
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3793
|
-
model = models.
|
3533
|
+
model = models.DescribeImageFromFamilyRequest()
|
3794
3534
|
model.from_json_string(json.dumps(args))
|
3795
3535
|
start_time = time.time()
|
3796
3536
|
while True:
|
3797
|
-
rsp = client.
|
3537
|
+
rsp = client.DescribeImageFromFamily(model)
|
3798
3538
|
result = rsp.to_json_string()
|
3799
3539
|
try:
|
3800
3540
|
json_obj = json.loads(result)
|
@@ -3813,7 +3553,7 @@ def doInquiryPriceRenewHosts(args, parsed_globals):
|
|
3813
3553
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3814
3554
|
|
3815
3555
|
|
3816
|
-
def
|
3556
|
+
def doModifyHpcClusterAttribute(args, parsed_globals):
|
3817
3557
|
g_param = parse_global_arg(parsed_globals)
|
3818
3558
|
|
3819
3559
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3842,11 +3582,11 @@ def doDescribeImageFromFamily(args, parsed_globals):
|
|
3842
3582
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
3843
3583
|
client._sdkVersion += ("_CLI_" + __version__)
|
3844
3584
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3845
|
-
model = models.
|
3585
|
+
model = models.ModifyHpcClusterAttributeRequest()
|
3846
3586
|
model.from_json_string(json.dumps(args))
|
3847
3587
|
start_time = time.time()
|
3848
3588
|
while True:
|
3849
|
-
rsp = client.
|
3589
|
+
rsp = client.ModifyHpcClusterAttribute(model)
|
3850
3590
|
result = rsp.to_json_string()
|
3851
3591
|
try:
|
3852
3592
|
json_obj = json.loads(result)
|
@@ -3865,7 +3605,7 @@ def doDescribeImageFromFamily(args, parsed_globals):
|
|
3865
3605
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3866
3606
|
|
3867
3607
|
|
3868
|
-
def
|
3608
|
+
def doModifyKeyPairAttribute(args, parsed_globals):
|
3869
3609
|
g_param = parse_global_arg(parsed_globals)
|
3870
3610
|
|
3871
3611
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3894,11 +3634,11 @@ def doModifyHpcClusterAttribute(args, parsed_globals):
|
|
3894
3634
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
3895
3635
|
client._sdkVersion += ("_CLI_" + __version__)
|
3896
3636
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3897
|
-
model = models.
|
3637
|
+
model = models.ModifyKeyPairAttributeRequest()
|
3898
3638
|
model.from_json_string(json.dumps(args))
|
3899
3639
|
start_time = time.time()
|
3900
3640
|
while True:
|
3901
|
-
rsp = client.
|
3641
|
+
rsp = client.ModifyKeyPairAttribute(model)
|
3902
3642
|
result = rsp.to_json_string()
|
3903
3643
|
try:
|
3904
3644
|
json_obj = json.loads(result)
|
@@ -3917,7 +3657,7 @@ def doModifyHpcClusterAttribute(args, parsed_globals):
|
|
3917
3657
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3918
3658
|
|
3919
3659
|
|
3920
|
-
def
|
3660
|
+
def doModifyHostsAttribute(args, parsed_globals):
|
3921
3661
|
g_param = parse_global_arg(parsed_globals)
|
3922
3662
|
|
3923
3663
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3946,11 +3686,11 @@ def doModifyKeyPairAttribute(args, parsed_globals):
|
|
3946
3686
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
3947
3687
|
client._sdkVersion += ("_CLI_" + __version__)
|
3948
3688
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3949
|
-
model = models.
|
3689
|
+
model = models.ModifyHostsAttributeRequest()
|
3950
3690
|
model.from_json_string(json.dumps(args))
|
3951
3691
|
start_time = time.time()
|
3952
3692
|
while True:
|
3953
|
-
rsp = client.
|
3693
|
+
rsp = client.ModifyHostsAttribute(model)
|
3954
3694
|
result = rsp.to_json_string()
|
3955
3695
|
try:
|
3956
3696
|
json_obj = json.loads(result)
|
@@ -3969,7 +3709,7 @@ def doModifyKeyPairAttribute(args, parsed_globals):
|
|
3969
3709
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3970
3710
|
|
3971
3711
|
|
3972
|
-
def
|
3712
|
+
def doDescribeImages(args, parsed_globals):
|
3973
3713
|
g_param = parse_global_arg(parsed_globals)
|
3974
3714
|
|
3975
3715
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3998,11 +3738,11 @@ def doModifyHostsAttribute(args, parsed_globals):
|
|
3998
3738
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
3999
3739
|
client._sdkVersion += ("_CLI_" + __version__)
|
4000
3740
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4001
|
-
model = models.
|
3741
|
+
model = models.DescribeImagesRequest()
|
4002
3742
|
model.from_json_string(json.dumps(args))
|
4003
3743
|
start_time = time.time()
|
4004
3744
|
while True:
|
4005
|
-
rsp = client.
|
3745
|
+
rsp = client.DescribeImages(model)
|
4006
3746
|
result = rsp.to_json_string()
|
4007
3747
|
try:
|
4008
3748
|
json_obj = json.loads(result)
|
@@ -4021,7 +3761,7 @@ def doModifyHostsAttribute(args, parsed_globals):
|
|
4021
3761
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4022
3762
|
|
4023
3763
|
|
4024
|
-
def
|
3764
|
+
def doCreateDisasterRecoverGroup(args, parsed_globals):
|
4025
3765
|
g_param = parse_global_arg(parsed_globals)
|
4026
3766
|
|
4027
3767
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4050,11 +3790,11 @@ def doDescribeImages(args, parsed_globals):
|
|
4050
3790
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
4051
3791
|
client._sdkVersion += ("_CLI_" + __version__)
|
4052
3792
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4053
|
-
model = models.
|
3793
|
+
model = models.CreateDisasterRecoverGroupRequest()
|
4054
3794
|
model.from_json_string(json.dumps(args))
|
4055
3795
|
start_time = time.time()
|
4056
3796
|
while True:
|
4057
|
-
rsp = client.
|
3797
|
+
rsp = client.CreateDisasterRecoverGroup(model)
|
4058
3798
|
result = rsp.to_json_string()
|
4059
3799
|
try:
|
4060
3800
|
json_obj = json.loads(result)
|
@@ -4073,7 +3813,7 @@ def doDescribeImages(args, parsed_globals):
|
|
4073
3813
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4074
3814
|
|
4075
3815
|
|
4076
|
-
def
|
3816
|
+
def doDescribeInstances(args, parsed_globals):
|
4077
3817
|
g_param = parse_global_arg(parsed_globals)
|
4078
3818
|
|
4079
3819
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4102,11 +3842,11 @@ def doCreateDisasterRecoverGroup(args, parsed_globals):
|
|
4102
3842
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
4103
3843
|
client._sdkVersion += ("_CLI_" + __version__)
|
4104
3844
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4105
|
-
model = models.
|
3845
|
+
model = models.DescribeInstancesRequest()
|
4106
3846
|
model.from_json_string(json.dumps(args))
|
4107
3847
|
start_time = time.time()
|
4108
3848
|
while True:
|
4109
|
-
rsp = client.
|
3849
|
+
rsp = client.DescribeInstances(model)
|
4110
3850
|
result = rsp.to_json_string()
|
4111
3851
|
try:
|
4112
3852
|
json_obj = json.loads(result)
|
@@ -4125,7 +3865,7 @@ def doCreateDisasterRecoverGroup(args, parsed_globals):
|
|
4125
3865
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4126
3866
|
|
4127
3867
|
|
4128
|
-
def
|
3868
|
+
def doDescribeLaunchTemplateVersions(args, parsed_globals):
|
4129
3869
|
g_param = parse_global_arg(parsed_globals)
|
4130
3870
|
|
4131
3871
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4154,11 +3894,11 @@ def doDescribeInstances(args, parsed_globals):
|
|
4154
3894
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
4155
3895
|
client._sdkVersion += ("_CLI_" + __version__)
|
4156
3896
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4157
|
-
model = models.
|
3897
|
+
model = models.DescribeLaunchTemplateVersionsRequest()
|
4158
3898
|
model.from_json_string(json.dumps(args))
|
4159
3899
|
start_time = time.time()
|
4160
3900
|
while True:
|
4161
|
-
rsp = client.
|
3901
|
+
rsp = client.DescribeLaunchTemplateVersions(model)
|
4162
3902
|
result = rsp.to_json_string()
|
4163
3903
|
try:
|
4164
3904
|
json_obj = json.loads(result)
|
@@ -4177,7 +3917,7 @@ def doDescribeInstances(args, parsed_globals):
|
|
4177
3917
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4178
3918
|
|
4179
3919
|
|
4180
|
-
def
|
3920
|
+
def doDescribeInstanceInternetBandwidthConfigs(args, parsed_globals):
|
4181
3921
|
g_param = parse_global_arg(parsed_globals)
|
4182
3922
|
|
4183
3923
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4206,11 +3946,11 @@ def doDescribeLaunchTemplateVersions(args, parsed_globals):
|
|
4206
3946
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
4207
3947
|
client._sdkVersion += ("_CLI_" + __version__)
|
4208
3948
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4209
|
-
model = models.
|
3949
|
+
model = models.DescribeInstanceInternetBandwidthConfigsRequest()
|
4210
3950
|
model.from_json_string(json.dumps(args))
|
4211
3951
|
start_time = time.time()
|
4212
3952
|
while True:
|
4213
|
-
rsp = client.
|
3953
|
+
rsp = client.DescribeInstanceInternetBandwidthConfigs(model)
|
4214
3954
|
result = rsp.to_json_string()
|
4215
3955
|
try:
|
4216
3956
|
json_obj = json.loads(result)
|
@@ -4229,7 +3969,7 @@ def doDescribeLaunchTemplateVersions(args, parsed_globals):
|
|
4229
3969
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4230
3970
|
|
4231
3971
|
|
4232
|
-
def
|
3972
|
+
def doInquiryPriceTerminateInstances(args, parsed_globals):
|
4233
3973
|
g_param = parse_global_arg(parsed_globals)
|
4234
3974
|
|
4235
3975
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4258,11 +3998,11 @@ def doDescribeInstanceInternetBandwidthConfigs(args, parsed_globals):
|
|
4258
3998
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
4259
3999
|
client._sdkVersion += ("_CLI_" + __version__)
|
4260
4000
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4261
|
-
model = models.
|
4001
|
+
model = models.InquiryPriceTerminateInstancesRequest()
|
4262
4002
|
model.from_json_string(json.dumps(args))
|
4263
4003
|
start_time = time.time()
|
4264
4004
|
while True:
|
4265
|
-
rsp = client.
|
4005
|
+
rsp = client.InquiryPriceTerminateInstances(model)
|
4266
4006
|
result = rsp.to_json_string()
|
4267
4007
|
try:
|
4268
4008
|
json_obj = json.loads(result)
|
@@ -4281,7 +4021,7 @@ def doDescribeInstanceInternetBandwidthConfigs(args, parsed_globals):
|
|
4281
4021
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4282
4022
|
|
4283
4023
|
|
4284
|
-
def
|
4024
|
+
def doDeleteImages(args, parsed_globals):
|
4285
4025
|
g_param = parse_global_arg(parsed_globals)
|
4286
4026
|
|
4287
4027
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4310,11 +4050,11 @@ def doInquiryPriceTerminateInstances(args, parsed_globals):
|
|
4310
4050
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
4311
4051
|
client._sdkVersion += ("_CLI_" + __version__)
|
4312
4052
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4313
|
-
model = models.
|
4053
|
+
model = models.DeleteImagesRequest()
|
4314
4054
|
model.from_json_string(json.dumps(args))
|
4315
4055
|
start_time = time.time()
|
4316
4056
|
while True:
|
4317
|
-
rsp = client.
|
4057
|
+
rsp = client.DeleteImages(model)
|
4318
4058
|
result = rsp.to_json_string()
|
4319
4059
|
try:
|
4320
4060
|
json_obj = json.loads(result)
|
@@ -4333,7 +4073,7 @@ def doInquiryPriceTerminateInstances(args, parsed_globals):
|
|
4333
4073
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4334
4074
|
|
4335
4075
|
|
4336
|
-
def
|
4076
|
+
def doDeleteLaunchTemplateVersions(args, parsed_globals):
|
4337
4077
|
g_param = parse_global_arg(parsed_globals)
|
4338
4078
|
|
4339
4079
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4362,11 +4102,11 @@ def doDeleteImages(args, parsed_globals):
|
|
4362
4102
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
4363
4103
|
client._sdkVersion += ("_CLI_" + __version__)
|
4364
4104
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4365
|
-
model = models.
|
4105
|
+
model = models.DeleteLaunchTemplateVersionsRequest()
|
4366
4106
|
model.from_json_string(json.dumps(args))
|
4367
4107
|
start_time = time.time()
|
4368
4108
|
while True:
|
4369
|
-
rsp = client.
|
4109
|
+
rsp = client.DeleteLaunchTemplateVersions(model)
|
4370
4110
|
result = rsp.to_json_string()
|
4371
4111
|
try:
|
4372
4112
|
json_obj = json.loads(result)
|
@@ -5289,13 +5029,11 @@ ACTION_MAP = {
|
|
5289
5029
|
"DeleteLaunchTemplate": doDeleteLaunchTemplate,
|
5290
5030
|
"ModifyInstancesVpcAttribute": doModifyInstancesVpcAttribute,
|
5291
5031
|
"DescribeDisasterRecoverGroupQuota": doDescribeDisasterRecoverGroupQuota,
|
5292
|
-
"
|
5032
|
+
"DescribeTaskInfo": doDescribeTaskInfo,
|
5293
5033
|
"CreateImage": doCreateImage,
|
5294
5034
|
"ConfigureChcAssistVpc": doConfigureChcAssistVpc,
|
5295
5035
|
"ResetInstancesType": doResetInstancesType,
|
5296
|
-
"DescribeReservedInstancesConfigInfos": doDescribeReservedInstancesConfigInfos,
|
5297
5036
|
"DescribeInstanceFamilyConfigs": doDescribeInstanceFamilyConfigs,
|
5298
|
-
"InquirePricePurchaseReservedInstancesOffering": doInquirePricePurchaseReservedInstancesOffering,
|
5299
5037
|
"SyncImages": doSyncImages,
|
5300
5038
|
"ImportImage": doImportImage,
|
5301
5039
|
"DescribeZoneInstanceConfigInfos": doDescribeZoneInstanceConfigInfos,
|
@@ -5305,7 +5043,6 @@ ACTION_MAP = {
|
|
5305
5043
|
"DisassociateSecurityGroups": doDisassociateSecurityGroups,
|
5306
5044
|
"RemoveChcDeployVpc": doRemoveChcDeployVpc,
|
5307
5045
|
"DescribeImageSharePermission": doDescribeImageSharePermission,
|
5308
|
-
"DescribeRegions": doDescribeRegions,
|
5309
5046
|
"DescribeInstancesModification": doDescribeInstancesModification,
|
5310
5047
|
"CreateKeyPair": doCreateKeyPair,
|
5311
5048
|
"AssociateInstancesKeyPairs": doAssociateInstancesKeyPairs,
|
@@ -5315,8 +5052,8 @@ ACTION_MAP = {
|
|
5315
5052
|
"ModifyDisasterRecoverGroupAttribute": doModifyDisasterRecoverGroupAttribute,
|
5316
5053
|
"DescribeHpcClusters": doDescribeHpcClusters,
|
5317
5054
|
"DescribeInstancesOperationLimit": doDescribeInstancesOperationLimit,
|
5318
|
-
"DeleteLaunchTemplateVersions": doDeleteLaunchTemplateVersions,
|
5319
5055
|
"StopInstances": doStopInstances,
|
5056
|
+
"DescribeRegions": doDescribeRegions,
|
5320
5057
|
"DescribeImportImageOs": doDescribeImportImageOs,
|
5321
5058
|
"DeleteHpcClusters": doDeleteHpcClusters,
|
5322
5059
|
"InquiryPriceRenewInstances": doInquiryPriceRenewInstances,
|
@@ -5333,7 +5070,6 @@ ACTION_MAP = {
|
|
5333
5070
|
"DescribeInstancesActionTimer": doDescribeInstancesActionTimer,
|
5334
5071
|
"InquiryPriceResizeInstanceDisks": doInquiryPriceResizeInstanceDisks,
|
5335
5072
|
"InquiryPriceResetInstance": doInquiryPriceResetInstance,
|
5336
|
-
"PurchaseReservedInstancesOffering": doPurchaseReservedInstancesOffering,
|
5337
5073
|
"ModifyInstancesRenewFlag": doModifyInstancesRenewFlag,
|
5338
5074
|
"ResetInstance": doResetInstance,
|
5339
5075
|
"StartInstances": doStartInstances,
|
@@ -5347,8 +5083,6 @@ ACTION_MAP = {
|
|
5347
5083
|
"DescribeInstanceVncUrl": doDescribeInstanceVncUrl,
|
5348
5084
|
"ModifyInstancesProject": doModifyInstancesProject,
|
5349
5085
|
"DescribeKeyPairs": doDescribeKeyPairs,
|
5350
|
-
"DescribeTaskInfo": doDescribeTaskInfo,
|
5351
|
-
"DescribeReservedInstancesOfferings": doDescribeReservedInstancesOfferings,
|
5352
5086
|
"InquiryPriceModifyInstancesChargeType": doInquiryPriceModifyInstancesChargeType,
|
5353
5087
|
"DescribeInternetChargeTypeConfigs": doDescribeInternetChargeTypeConfigs,
|
5354
5088
|
"RebootInstances": doRebootInstances,
|
@@ -5364,6 +5098,7 @@ ACTION_MAP = {
|
|
5364
5098
|
"DescribeInstanceInternetBandwidthConfigs": doDescribeInstanceInternetBandwidthConfigs,
|
5365
5099
|
"InquiryPriceTerminateInstances": doInquiryPriceTerminateInstances,
|
5366
5100
|
"DeleteImages": doDeleteImages,
|
5101
|
+
"DeleteLaunchTemplateVersions": doDeleteLaunchTemplateVersions,
|
5367
5102
|
"ResetInstancesPassword": doResetInstancesPassword,
|
5368
5103
|
"ResizeInstanceDisks": doResizeInstanceDisks,
|
5369
5104
|
"DescribeZones": doDescribeZones,
|