tccli 3.0.1391.1__py2.py3-none-any.whl → 3.0.1414.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.
Potentially problematic release.
This version of tccli might be problematic. Click here for more details.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +2 -1
- tccli/services/ai3d/v20250513/api.json +22 -4
- tccli/services/aiart/aiart_client.py +173 -67
- tccli/services/aiart/v20221229/api.json +193 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/apm/apm_client.py +53 -0
- tccli/services/apm/v20210622/api.json +354 -0
- tccli/services/apm/v20210622/examples.json +8 -0
- tccli/services/asr/v20190614/api.json +3 -3
- tccli/services/autoscaling/v20180419/api.json +24 -2
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/bda/bda_client.py +15 -704
- tccli/services/bda/v20200324/api.json +107 -1819
- tccli/services/bda/v20200324/examples.json +0 -176
- tccli/services/billing/billing_client.py +326 -8
- tccli/services/billing/v20180709/api.json +2200 -255
- tccli/services/billing/v20180709/examples.json +48 -0
- tccli/services/cam/v20190116/api.json +4 -4
- tccli/services/captcha/v20190722/api.json +3 -3
- tccli/services/cat/v20180409/api.json +7 -7
- tccli/services/ccc/ccc_client.py +235 -76
- tccli/services/ccc/v20200210/api.json +502 -18
- tccli/services/ccc/v20200210/examples.json +24 -0
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +257 -44
- tccli/services/cdb/v20170320/examples.json +22 -6
- tccli/services/cdn/cdn_client.py +4 -163
- tccli/services/cdn/v20180606/api.json +61 -310
- tccli/services/cdn/v20180606/examples.json +1 -25
- tccli/services/cdwdoris/v20211228/api.json +51 -12
- tccli/services/cdwpg/v20201230/api.json +11 -1
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +11 -1
- tccli/services/cfs/cfs_client.py +41 -94
- tccli/services/cfs/v20190719/api.json +171 -55
- tccli/services/cfs/v20190719/examples.json +1 -9
- tccli/services/cfw/v20190904/api.json +122 -10
- tccli/services/ckafka/ckafka_client.py +188 -29
- tccli/services/ckafka/v20190819/api.json +277 -4
- tccli/services/ckafka/v20190819/examples.json +25 -1
- tccli/services/clb/clb_client.py +0 -265
- tccli/services/clb/v20180317/api.json +130 -296
- tccli/services/clb/v20180317/examples.json +12 -40
- tccli/services/cloudapp/v20220530/api.json +55 -0
- tccli/services/cloudaudit/v20190319/api.json +11 -0
- tccli/services/cloudhsm/v20191112/api.json +10 -10
- tccli/services/cls/v20201016/api.json +63 -45
- tccli/services/cls/v20201016/examples.json +10 -4
- tccli/services/csip/v20221121/api.json +53 -3
- tccli/services/ctem/v20231128/api.json +320 -0
- tccli/services/ctem/v20231128/examples.json +3 -3
- tccli/services/cvm/cvm_client.py +0 -212
- tccli/services/cvm/v20170312/api.json +91 -843
- tccli/services/cvm/v20170312/examples.json +32 -58
- tccli/services/cynosdb/cynosdb_client.py +167 -8
- tccli/services/cynosdb/v20190107/api.json +1126 -148
- tccli/services/cynosdb/v20190107/examples.json +31 -7
- tccli/services/dbbrain/dbbrain_client.py +246 -87
- tccli/services/dbbrain/v20191016/api.json +74 -62
- tccli/services/dbbrain/v20191016/examples.json +1 -1
- tccli/services/dbbrain/v20210527/api.json +601 -177
- tccli/services/dbbrain/v20210527/examples.json +28 -4
- tccli/services/dc/v20180410/api.json +101 -3
- tccli/services/dcdb/v20180411/api.json +1 -1
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +237 -24
- tccli/services/dlc/v20210125/examples.json +12 -4
- tccli/services/dnspod/dnspod_client.py +106 -0
- tccli/services/dnspod/v20210323/api.json +126 -20
- tccli/services/dnspod/v20210323/examples.json +17 -7
- tccli/services/dsgc/v20190723/api.json +73 -15
- tccli/services/dts/v20180330/api.json +4 -4
- tccli/services/dts/v20211206/api.json +408 -127
- tccli/services/dts/v20211206/examples.json +15 -9
- tccli/services/eb/v20210416/api.json +41 -1
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +56 -9
- tccli/services/emr/v20190103/examples.json +5 -5
- tccli/services/es/es_client.py +273 -8
- tccli/services/es/v20180416/api.json +845 -33
- tccli/services/es/v20180416/examples.json +33 -1
- tccli/services/es/v20250101/api.json +135 -2
- tccli/services/es/v20250101/examples.json +8 -0
- tccli/services/ess/ess_client.py +509 -32
- tccli/services/ess/v20201111/api.json +1366 -113
- tccli/services/ess/v20201111/examples.json +94 -10
- tccli/services/essbasic/v20210526/api.json +265 -27
- tccli/services/essbasic/v20210526/examples.json +12 -12
- tccli/services/facefusion/v20220927/api.json +1 -1
- tccli/services/gaap/v20180529/api.json +18 -8
- tccli/services/gme/gme_client.py +53 -0
- tccli/services/gme/v20180711/api.json +241 -1
- tccli/services/gme/v20180711/examples.json +8 -0
- tccli/services/gs/gs_client.py +216 -4
- tccli/services/gs/v20191118/api.json +202 -1
- tccli/services/gs/v20191118/examples.json +32 -0
- tccli/services/gwlb/gwlb_client.py +53 -0
- tccli/services/gwlb/v20240906/api.json +150 -0
- tccli/services/gwlb/v20240906/examples.json +8 -0
- tccli/services/hai/v20230812/api.json +5 -5
- tccli/services/hunyuan/v20230901/api.json +3 -3
- tccli/services/hunyuan/v20230901/examples.json +1 -1
- tccli/services/iai/v20180301/api.json +227 -207
- tccli/services/iai/v20180301/examples.json +26 -26
- tccli/services/iai/v20200303/api.json +4 -4
- tccli/services/iai/v20200303/examples.json +1 -1
- tccli/services/ioa/ioa_client.py +265 -0
- tccli/services/ioa/v20220601/api.json +781 -85
- tccli/services/ioa/v20220601/examples.json +46 -0
- tccli/services/iotexplorer/iotexplorer_client.py +387 -16
- tccli/services/iotexplorer/v20190423/api.json +1183 -63
- tccli/services/iotexplorer/v20190423/examples.json +92 -0
- tccli/services/keewidb/v20220308/api.json +69 -17
- tccli/services/keewidb/v20220308/examples.json +5 -5
- tccli/services/lcic/v20220817/api.json +61 -15
- tccli/services/lighthouse/v20200324/api.json +193 -24
- tccli/services/lighthouse/v20200324/examples.json +9 -3
- tccli/services/live/v20180801/api.json +6 -6
- tccli/services/live/v20180801/examples.json +7 -1
- tccli/services/lke/lke_client.py +40 -93
- tccli/services/lke/v20231130/api.json +943 -390
- tccli/services/lke/v20231130/examples.json +38 -46
- tccli/services/lkeap/v20240522/api.json +39 -12
- tccli/services/lkeap/v20240522/examples.json +12 -0
- tccli/services/mariadb/v20170312/api.json +1 -1
- tccli/services/mna/v20210119/api.json +11 -2
- tccli/services/mna/v20210119/examples.json +1 -1
- tccli/services/mongodb/mongodb_client.py +334 -16
- tccli/services/mongodb/v20190725/api.json +1092 -383
- tccli/services/mongodb/v20190725/examples.json +69 -21
- tccli/services/monitor/monitor_client.py +106 -0
- tccli/services/monitor/v20180724/api.json +383 -12
- tccli/services/monitor/v20180724/examples.json +24 -2
- tccli/services/mps/mps_client.py +220 -8
- tccli/services/mps/v20190612/api.json +1999 -179
- tccli/services/mps/v20190612/examples.json +56 -6
- tccli/services/mqtt/v20240516/api.json +10 -0
- tccli/services/mqtt/v20240516/examples.json +3 -9
- tccli/services/nlp/v20190408/api.json +6 -6
- tccli/services/oceanus/oceanus_client.py +318 -0
- tccli/services/oceanus/v20190422/api.json +461 -26
- tccli/services/oceanus/v20190422/examples.json +50 -2
- tccli/services/ocr/ocr_client.py +41 -253
- tccli/services/ocr/v20181119/api.json +153 -659
- tccli/services/ocr/v20181119/examples.json +8 -40
- tccli/services/omics/v20221128/api.json +90 -7
- tccli/services/organization/v20210331/api.json +46 -7
- tccli/services/postgres/v20170312/api.json +333 -77
- tccli/services/postgres/v20170312/examples.json +37 -31
- tccli/services/privatedns/privatedns_client.py +641 -58
- tccli/services/privatedns/v20201028/api.json +930 -19
- tccli/services/privatedns/v20201028/examples.json +91 -3
- tccli/services/pts/v20210728/api.json +2 -2
- tccli/services/redis/v20180412/api.json +303 -109
- tccli/services/redis/v20180412/examples.json +12 -12
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/rum/v20210622/api.json +22 -4
- tccli/services/rum/v20210622/examples.json +2 -2
- tccli/services/sms/v20190711/api.json +12 -12
- tccli/services/sms/v20190711/examples.json +9 -3
- tccli/services/sms/v20210111/api.json +13 -13
- tccli/services/sms/v20210111/examples.json +8 -2
- tccli/services/sqlserver/v20180328/api.json +46 -7
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +28 -0
- tccli/services/svp/v20240125/api.json +14 -4
- tccli/services/tag/v20180813/api.json +3 -3
- tccli/services/tat/v20201028/api.json +22 -3
- tccli/services/tcb/v20180608/api.json +1 -1
- tccli/services/tcss/tcss_client.py +228 -69
- tccli/services/tcss/v20201101/api.json +273 -25
- tccli/services/tcss/v20201101/examples.json +26 -2
- tccli/services/teo/teo_client.py +317 -52
- tccli/services/teo/v20220901/api.json +1824 -242
- tccli/services/teo/v20220901/examples.json +109 -21
- tccli/services/thpc/thpc_client.py +57 -4
- tccli/services/thpc/v20230321/api.json +163 -21
- tccli/services/thpc/v20230321/examples.json +13 -5
- tccli/services/tione/tione_client.py +163 -4
- tccli/services/tione/v20211111/api.json +285 -21
- tccli/services/tione/v20211111/examples.json +27 -3
- tccli/services/tke/tke_client.py +8 -8
- tccli/services/tke/v20180525/api.json +168 -130
- tccli/services/tke/v20180525/examples.json +20 -20
- tccli/services/tke/v20220501/api.json +215 -3
- tccli/services/tke/v20220501/examples.json +8 -0
- tccli/services/tms/tms_client.py +106 -0
- tccli/services/tms/v20201229/api.json +249 -3
- tccli/services/tms/v20201229/examples.json +16 -0
- tccli/services/tmt/v20180321/api.json +78 -1
- tccli/services/trabbit/v20230418/api.json +271 -4
- tccli/services/trabbit/v20230418/examples.json +9 -3
- tccli/services/trocket/v20230308/api.json +4 -4
- tccli/services/trro/trro_client.py +106 -0
- tccli/services/trro/v20220325/api.json +456 -0
- tccli/services/trro/v20220325/examples.json +16 -0
- tccli/services/trtc/v20190722/api.json +197 -49
- tccli/services/trtc/v20190722/examples.json +4 -4
- tccli/services/tse/v20201207/api.json +69 -2
- tccli/services/tse/v20201207/examples.json +3 -3
- tccli/services/tsf/v20180326/api.json +70 -7
- tccli/services/tsf/v20180326/examples.json +2 -2
- tccli/services/vclm/v20240523/api.json +145 -0
- tccli/services/vclm/v20240523/examples.json +16 -0
- tccli/services/vclm/vclm_client.py +106 -0
- tccli/services/vcube/v20220410/api.json +1 -1
- tccli/services/vod/v20180717/api.json +7 -7
- tccli/services/vpc/v20170312/api.json +1216 -70
- tccli/services/vpc/v20170312/examples.json +139 -3
- tccli/services/vpc/vpc_client.py +1023 -122
- tccli/services/vrs/v20200824/api.json +11 -11
- tccli/services/vrs/v20200824/examples.json +1 -1
- tccli/services/vtc/v20240223/api.json +14 -14
- tccli/services/waf/v20180125/api.json +812 -143
- tccli/services/waf/v20180125/examples.json +2 -2
- tccli/services/wedata/v20210820/api.json +1281 -601
- tccli/services/wedata/v20210820/examples.json +127 -157
- tccli/services/wedata/v20250806/api.json +19335 -0
- tccli/services/wedata/v20250806/examples.json +999 -0
- tccli/services/wedata/wedata_client.py +7072 -1131
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/METADATA +9 -7
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/RECORD +226 -224
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/WHEEL +1 -1
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1391.1.dist-info/license_files → tccli-3.0.1414.1.dist-info/licenses}/LICENSE +0 -0
tccli/services/vpc/vpc_client.py
CHANGED
|
@@ -1681,6 +1681,58 @@ def doAddBandwidthPackageResources(args, parsed_globals):
|
|
|
1681
1681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1682
1682
|
|
|
1683
1683
|
|
|
1684
|
+
def doReplaceRoutePolicyEntries(args, parsed_globals):
|
|
1685
|
+
g_param = parse_global_arg(parsed_globals)
|
|
1686
|
+
|
|
1687
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
1688
|
+
cred = credential.CVMRoleCredential()
|
|
1689
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
1690
|
+
cred = credential.STSAssumeRoleCredential(
|
|
1691
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1692
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1693
|
+
)
|
|
1694
|
+
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):
|
|
1695
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1696
|
+
else:
|
|
1697
|
+
cred = credential.Credential(
|
|
1698
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
1699
|
+
)
|
|
1700
|
+
http_profile = HttpProfile(
|
|
1701
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
1702
|
+
reqMethod="POST",
|
|
1703
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1704
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1705
|
+
)
|
|
1706
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
1707
|
+
if g_param[OptionsDefine.Language]:
|
|
1708
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
1709
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1710
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1711
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
1712
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1713
|
+
model = models.ReplaceRoutePolicyEntriesRequest()
|
|
1714
|
+
model.from_json_string(json.dumps(args))
|
|
1715
|
+
start_time = time.time()
|
|
1716
|
+
while True:
|
|
1717
|
+
rsp = client.ReplaceRoutePolicyEntries(model)
|
|
1718
|
+
result = rsp.to_json_string()
|
|
1719
|
+
try:
|
|
1720
|
+
json_obj = json.loads(result)
|
|
1721
|
+
except TypeError as e:
|
|
1722
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
1723
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
1724
|
+
break
|
|
1725
|
+
cur_time = time.time()
|
|
1726
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
1727
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
1728
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
1729
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
1730
|
+
else:
|
|
1731
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
1732
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
1733
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1734
|
+
|
|
1735
|
+
|
|
1684
1736
|
def doAllocateAddresses(args, parsed_globals):
|
|
1685
1737
|
g_param = parse_global_arg(parsed_globals)
|
|
1686
1738
|
|
|
@@ -2513,6 +2565,110 @@ def doDeleteAssistantCidr(args, parsed_globals):
|
|
|
2513
2565
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2514
2566
|
|
|
2515
2567
|
|
|
2568
|
+
def doDescribeRoutePolicyEntries(args, parsed_globals):
|
|
2569
|
+
g_param = parse_global_arg(parsed_globals)
|
|
2570
|
+
|
|
2571
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
2572
|
+
cred = credential.CVMRoleCredential()
|
|
2573
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
2574
|
+
cred = credential.STSAssumeRoleCredential(
|
|
2575
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2576
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2577
|
+
)
|
|
2578
|
+
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):
|
|
2579
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2580
|
+
else:
|
|
2581
|
+
cred = credential.Credential(
|
|
2582
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
2583
|
+
)
|
|
2584
|
+
http_profile = HttpProfile(
|
|
2585
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
2586
|
+
reqMethod="POST",
|
|
2587
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2588
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2589
|
+
)
|
|
2590
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
2591
|
+
if g_param[OptionsDefine.Language]:
|
|
2592
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
2593
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2594
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2595
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
2596
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2597
|
+
model = models.DescribeRoutePolicyEntriesRequest()
|
|
2598
|
+
model.from_json_string(json.dumps(args))
|
|
2599
|
+
start_time = time.time()
|
|
2600
|
+
while True:
|
|
2601
|
+
rsp = client.DescribeRoutePolicyEntries(model)
|
|
2602
|
+
result = rsp.to_json_string()
|
|
2603
|
+
try:
|
|
2604
|
+
json_obj = json.loads(result)
|
|
2605
|
+
except TypeError as e:
|
|
2606
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
2607
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
2608
|
+
break
|
|
2609
|
+
cur_time = time.time()
|
|
2610
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
2611
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
2612
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
2613
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
2614
|
+
else:
|
|
2615
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
2616
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
2617
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2618
|
+
|
|
2619
|
+
|
|
2620
|
+
def doDeleteRoutePolicyAssociations(args, parsed_globals):
|
|
2621
|
+
g_param = parse_global_arg(parsed_globals)
|
|
2622
|
+
|
|
2623
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
2624
|
+
cred = credential.CVMRoleCredential()
|
|
2625
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
2626
|
+
cred = credential.STSAssumeRoleCredential(
|
|
2627
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2628
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2629
|
+
)
|
|
2630
|
+
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):
|
|
2631
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2632
|
+
else:
|
|
2633
|
+
cred = credential.Credential(
|
|
2634
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
2635
|
+
)
|
|
2636
|
+
http_profile = HttpProfile(
|
|
2637
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
2638
|
+
reqMethod="POST",
|
|
2639
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2640
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2641
|
+
)
|
|
2642
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
2643
|
+
if g_param[OptionsDefine.Language]:
|
|
2644
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
2645
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2646
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2647
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
2648
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2649
|
+
model = models.DeleteRoutePolicyAssociationsRequest()
|
|
2650
|
+
model.from_json_string(json.dumps(args))
|
|
2651
|
+
start_time = time.time()
|
|
2652
|
+
while True:
|
|
2653
|
+
rsp = client.DeleteRoutePolicyAssociations(model)
|
|
2654
|
+
result = rsp.to_json_string()
|
|
2655
|
+
try:
|
|
2656
|
+
json_obj = json.loads(result)
|
|
2657
|
+
except TypeError as e:
|
|
2658
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
2659
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
2660
|
+
break
|
|
2661
|
+
cur_time = time.time()
|
|
2662
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
2663
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
2664
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
2665
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
2666
|
+
else:
|
|
2667
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
2668
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
2669
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2670
|
+
|
|
2671
|
+
|
|
2516
2672
|
def doDeleteNetworkInterface(args, parsed_globals):
|
|
2517
2673
|
g_param = parse_global_arg(parsed_globals)
|
|
2518
2674
|
|
|
@@ -3813,6 +3969,58 @@ def doModifyNetworkInterfaceAttribute(args, parsed_globals):
|
|
|
3813
3969
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3814
3970
|
|
|
3815
3971
|
|
|
3972
|
+
def doModifyRoutePolicyAttribute(args, parsed_globals):
|
|
3973
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3974
|
+
|
|
3975
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3976
|
+
cred = credential.CVMRoleCredential()
|
|
3977
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3978
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3979
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3980
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3981
|
+
)
|
|
3982
|
+
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):
|
|
3983
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3984
|
+
else:
|
|
3985
|
+
cred = credential.Credential(
|
|
3986
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3987
|
+
)
|
|
3988
|
+
http_profile = HttpProfile(
|
|
3989
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
3990
|
+
reqMethod="POST",
|
|
3991
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3992
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3993
|
+
)
|
|
3994
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
3995
|
+
if g_param[OptionsDefine.Language]:
|
|
3996
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
3997
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3998
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3999
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4000
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4001
|
+
model = models.ModifyRoutePolicyAttributeRequest()
|
|
4002
|
+
model.from_json_string(json.dumps(args))
|
|
4003
|
+
start_time = time.time()
|
|
4004
|
+
while True:
|
|
4005
|
+
rsp = client.ModifyRoutePolicyAttribute(model)
|
|
4006
|
+
result = rsp.to_json_string()
|
|
4007
|
+
try:
|
|
4008
|
+
json_obj = json.loads(result)
|
|
4009
|
+
except TypeError as e:
|
|
4010
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4011
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4012
|
+
break
|
|
4013
|
+
cur_time = time.time()
|
|
4014
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4015
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4016
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4017
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4018
|
+
else:
|
|
4019
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4020
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4021
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4022
|
+
|
|
4023
|
+
|
|
3816
4024
|
def doModifyVpcPeeringConnection(args, parsed_globals):
|
|
3817
4025
|
g_param = parse_global_arg(parsed_globals)
|
|
3818
4026
|
|
|
@@ -3865,6 +4073,58 @@ def doModifyVpcPeeringConnection(args, parsed_globals):
|
|
|
3865
4073
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3866
4074
|
|
|
3867
4075
|
|
|
4076
|
+
def doDeleteRoutePolicyEntries(args, parsed_globals):
|
|
4077
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4078
|
+
|
|
4079
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4080
|
+
cred = credential.CVMRoleCredential()
|
|
4081
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4082
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4083
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4084
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4085
|
+
)
|
|
4086
|
+
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):
|
|
4087
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4088
|
+
else:
|
|
4089
|
+
cred = credential.Credential(
|
|
4090
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4091
|
+
)
|
|
4092
|
+
http_profile = HttpProfile(
|
|
4093
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4094
|
+
reqMethod="POST",
|
|
4095
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4096
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4097
|
+
)
|
|
4098
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
4099
|
+
if g_param[OptionsDefine.Language]:
|
|
4100
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4101
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4102
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4103
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4104
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4105
|
+
model = models.DeleteRoutePolicyEntriesRequest()
|
|
4106
|
+
model.from_json_string(json.dumps(args))
|
|
4107
|
+
start_time = time.time()
|
|
4108
|
+
while True:
|
|
4109
|
+
rsp = client.DeleteRoutePolicyEntries(model)
|
|
4110
|
+
result = rsp.to_json_string()
|
|
4111
|
+
try:
|
|
4112
|
+
json_obj = json.loads(result)
|
|
4113
|
+
except TypeError as e:
|
|
4114
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4115
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4116
|
+
break
|
|
4117
|
+
cur_time = time.time()
|
|
4118
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4119
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4120
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4121
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4122
|
+
else:
|
|
4123
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4124
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4125
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4126
|
+
|
|
4127
|
+
|
|
3868
4128
|
def doDescribeVpcLimits(args, parsed_globals):
|
|
3869
4129
|
g_param = parse_global_arg(parsed_globals)
|
|
3870
4130
|
|
|
@@ -4593,7 +4853,7 @@ def doReplaceCcnRouteTableInputPolicys(args, parsed_globals):
|
|
|
4593
4853
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4594
4854
|
|
|
4595
4855
|
|
|
4596
|
-
def
|
|
4856
|
+
def doModifyNetworkInterfaceQos(args, parsed_globals):
|
|
4597
4857
|
g_param = parse_global_arg(parsed_globals)
|
|
4598
4858
|
|
|
4599
4859
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4622,11 +4882,11 @@ def doCreateDirectConnectGateway(args, parsed_globals):
|
|
|
4622
4882
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4623
4883
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4624
4884
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4625
|
-
model = models.
|
|
4885
|
+
model = models.ModifyNetworkInterfaceQosRequest()
|
|
4626
4886
|
model.from_json_string(json.dumps(args))
|
|
4627
4887
|
start_time = time.time()
|
|
4628
4888
|
while True:
|
|
4629
|
-
rsp = client.
|
|
4889
|
+
rsp = client.ModifyNetworkInterfaceQos(model)
|
|
4630
4890
|
result = rsp.to_json_string()
|
|
4631
4891
|
try:
|
|
4632
4892
|
json_obj = json.loads(result)
|
|
@@ -6153,7 +6413,7 @@ def doDisassociateNatGatewayAddress(args, parsed_globals):
|
|
|
6153
6413
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6154
6414
|
|
|
6155
6415
|
|
|
6156
|
-
def
|
|
6416
|
+
def doDescribeAddressTemplateInstances(args, parsed_globals):
|
|
6157
6417
|
g_param = parse_global_arg(parsed_globals)
|
|
6158
6418
|
|
|
6159
6419
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -6182,11 +6442,11 @@ def doDescribeGatewayFlowMonitorDetail(args, parsed_globals):
|
|
|
6182
6442
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
6183
6443
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
6184
6444
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
6185
|
-
model = models.
|
|
6445
|
+
model = models.DescribeAddressTemplateInstancesRequest()
|
|
6186
6446
|
model.from_json_string(json.dumps(args))
|
|
6187
6447
|
start_time = time.time()
|
|
6188
6448
|
while True:
|
|
6189
|
-
rsp = client.
|
|
6449
|
+
rsp = client.DescribeAddressTemplateInstances(model)
|
|
6190
6450
|
result = rsp.to_json_string()
|
|
6191
6451
|
try:
|
|
6192
6452
|
json_obj = json.loads(result)
|
|
@@ -6205,7 +6465,59 @@ def doDescribeGatewayFlowMonitorDetail(args, parsed_globals):
|
|
|
6205
6465
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6206
6466
|
|
|
6207
6467
|
|
|
6208
|
-
def
|
|
6468
|
+
def doDescribeGatewayFlowMonitorDetail(args, parsed_globals):
|
|
6469
|
+
g_param = parse_global_arg(parsed_globals)
|
|
6470
|
+
|
|
6471
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
6472
|
+
cred = credential.CVMRoleCredential()
|
|
6473
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
6474
|
+
cred = credential.STSAssumeRoleCredential(
|
|
6475
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6476
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6477
|
+
)
|
|
6478
|
+
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):
|
|
6479
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6480
|
+
else:
|
|
6481
|
+
cred = credential.Credential(
|
|
6482
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
6483
|
+
)
|
|
6484
|
+
http_profile = HttpProfile(
|
|
6485
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
6486
|
+
reqMethod="POST",
|
|
6487
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6488
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6489
|
+
)
|
|
6490
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
6491
|
+
if g_param[OptionsDefine.Language]:
|
|
6492
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
6493
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
6494
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
6495
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
6496
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
6497
|
+
model = models.DescribeGatewayFlowMonitorDetailRequest()
|
|
6498
|
+
model.from_json_string(json.dumps(args))
|
|
6499
|
+
start_time = time.time()
|
|
6500
|
+
while True:
|
|
6501
|
+
rsp = client.DescribeGatewayFlowMonitorDetail(model)
|
|
6502
|
+
result = rsp.to_json_string()
|
|
6503
|
+
try:
|
|
6504
|
+
json_obj = json.loads(result)
|
|
6505
|
+
except TypeError as e:
|
|
6506
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
6507
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
6508
|
+
break
|
|
6509
|
+
cur_time = time.time()
|
|
6510
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
6511
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
6512
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
6513
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
6514
|
+
else:
|
|
6515
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
6516
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
6517
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6518
|
+
|
|
6519
|
+
|
|
6520
|
+
def doUnassignIpv6Addresses(args, parsed_globals):
|
|
6209
6521
|
g_param = parse_global_arg(parsed_globals)
|
|
6210
6522
|
|
|
6211
6523
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -6257,6 +6569,58 @@ def doUnassignIpv6Addresses(args, parsed_globals):
|
|
|
6257
6569
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6258
6570
|
|
|
6259
6571
|
|
|
6572
|
+
def doResetRoutePolicyEntries(args, parsed_globals):
|
|
6573
|
+
g_param = parse_global_arg(parsed_globals)
|
|
6574
|
+
|
|
6575
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
6576
|
+
cred = credential.CVMRoleCredential()
|
|
6577
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
6578
|
+
cred = credential.STSAssumeRoleCredential(
|
|
6579
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6580
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6581
|
+
)
|
|
6582
|
+
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):
|
|
6583
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6584
|
+
else:
|
|
6585
|
+
cred = credential.Credential(
|
|
6586
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
6587
|
+
)
|
|
6588
|
+
http_profile = HttpProfile(
|
|
6589
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
6590
|
+
reqMethod="POST",
|
|
6591
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6592
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6593
|
+
)
|
|
6594
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
6595
|
+
if g_param[OptionsDefine.Language]:
|
|
6596
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
6597
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
6598
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
6599
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
6600
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
6601
|
+
model = models.ResetRoutePolicyEntriesRequest()
|
|
6602
|
+
model.from_json_string(json.dumps(args))
|
|
6603
|
+
start_time = time.time()
|
|
6604
|
+
while True:
|
|
6605
|
+
rsp = client.ResetRoutePolicyEntries(model)
|
|
6606
|
+
result = rsp.to_json_string()
|
|
6607
|
+
try:
|
|
6608
|
+
json_obj = json.loads(result)
|
|
6609
|
+
except TypeError as e:
|
|
6610
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
6611
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
6612
|
+
break
|
|
6613
|
+
cur_time = time.time()
|
|
6614
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
6615
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
6616
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
6617
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
6618
|
+
else:
|
|
6619
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
6620
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
6621
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6622
|
+
|
|
6623
|
+
|
|
6260
6624
|
def doAssociateIPv6Address(args, parsed_globals):
|
|
6261
6625
|
g_param = parse_global_arg(parsed_globals)
|
|
6262
6626
|
|
|
@@ -6413,7 +6777,7 @@ def doDescribeVpcTaskResult(args, parsed_globals):
|
|
|
6413
6777
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6414
6778
|
|
|
6415
6779
|
|
|
6416
|
-
def
|
|
6780
|
+
def doCreateDirectConnectGateway(args, parsed_globals):
|
|
6417
6781
|
g_param = parse_global_arg(parsed_globals)
|
|
6418
6782
|
|
|
6419
6783
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -6442,11 +6806,63 @@ def doModifyNetworkInterfaceQos(args, parsed_globals):
|
|
|
6442
6806
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
6443
6807
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
6444
6808
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
6445
|
-
model = models.
|
|
6809
|
+
model = models.CreateDirectConnectGatewayRequest()
|
|
6446
6810
|
model.from_json_string(json.dumps(args))
|
|
6447
6811
|
start_time = time.time()
|
|
6448
6812
|
while True:
|
|
6449
|
-
rsp = client.
|
|
6813
|
+
rsp = client.CreateDirectConnectGateway(model)
|
|
6814
|
+
result = rsp.to_json_string()
|
|
6815
|
+
try:
|
|
6816
|
+
json_obj = json.loads(result)
|
|
6817
|
+
except TypeError as e:
|
|
6818
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
6819
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
6820
|
+
break
|
|
6821
|
+
cur_time = time.time()
|
|
6822
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
6823
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
6824
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
6825
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
6826
|
+
else:
|
|
6827
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
6828
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
6829
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6830
|
+
|
|
6831
|
+
|
|
6832
|
+
def doModifyGlobalRoutes(args, parsed_globals):
|
|
6833
|
+
g_param = parse_global_arg(parsed_globals)
|
|
6834
|
+
|
|
6835
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
6836
|
+
cred = credential.CVMRoleCredential()
|
|
6837
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
6838
|
+
cred = credential.STSAssumeRoleCredential(
|
|
6839
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6840
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6841
|
+
)
|
|
6842
|
+
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):
|
|
6843
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6844
|
+
else:
|
|
6845
|
+
cred = credential.Credential(
|
|
6846
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
6847
|
+
)
|
|
6848
|
+
http_profile = HttpProfile(
|
|
6849
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
6850
|
+
reqMethod="POST",
|
|
6851
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6852
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6853
|
+
)
|
|
6854
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
6855
|
+
if g_param[OptionsDefine.Language]:
|
|
6856
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
6857
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
6858
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
6859
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
6860
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
6861
|
+
model = models.ModifyGlobalRoutesRequest()
|
|
6862
|
+
model.from_json_string(json.dumps(args))
|
|
6863
|
+
start_time = time.time()
|
|
6864
|
+
while True:
|
|
6865
|
+
rsp = client.ModifyGlobalRoutes(model)
|
|
6450
6866
|
result = rsp.to_json_string()
|
|
6451
6867
|
try:
|
|
6452
6868
|
json_obj = json.loads(result)
|
|
@@ -7245,6 +7661,58 @@ def doDescribeVpnGatewayCcnRoutes(args, parsed_globals):
|
|
|
7245
7661
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7246
7662
|
|
|
7247
7663
|
|
|
7664
|
+
def doDeleteRoutePolicy(args, parsed_globals):
|
|
7665
|
+
g_param = parse_global_arg(parsed_globals)
|
|
7666
|
+
|
|
7667
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
7668
|
+
cred = credential.CVMRoleCredential()
|
|
7669
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
7670
|
+
cred = credential.STSAssumeRoleCredential(
|
|
7671
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7672
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7673
|
+
)
|
|
7674
|
+
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):
|
|
7675
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7676
|
+
else:
|
|
7677
|
+
cred = credential.Credential(
|
|
7678
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
7679
|
+
)
|
|
7680
|
+
http_profile = HttpProfile(
|
|
7681
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
7682
|
+
reqMethod="POST",
|
|
7683
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7684
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7685
|
+
)
|
|
7686
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
7687
|
+
if g_param[OptionsDefine.Language]:
|
|
7688
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
7689
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
7690
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7691
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
7692
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7693
|
+
model = models.DeleteRoutePolicyRequest()
|
|
7694
|
+
model.from_json_string(json.dumps(args))
|
|
7695
|
+
start_time = time.time()
|
|
7696
|
+
while True:
|
|
7697
|
+
rsp = client.DeleteRoutePolicy(model)
|
|
7698
|
+
result = rsp.to_json_string()
|
|
7699
|
+
try:
|
|
7700
|
+
json_obj = json.loads(result)
|
|
7701
|
+
except TypeError as e:
|
|
7702
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
7703
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
7704
|
+
break
|
|
7705
|
+
cur_time = time.time()
|
|
7706
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
7707
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
7708
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
7709
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
7710
|
+
else:
|
|
7711
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
7712
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
7713
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7714
|
+
|
|
7715
|
+
|
|
7248
7716
|
def doAttachCcnInstances(args, parsed_globals):
|
|
7249
7717
|
g_param = parse_global_arg(parsed_globals)
|
|
7250
7718
|
|
|
@@ -10053,7 +10521,7 @@ def doModifyNetDetect(args, parsed_globals):
|
|
|
10053
10521
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
10054
10522
|
|
|
10055
10523
|
|
|
10056
|
-
def
|
|
10524
|
+
def doReplaceRoutePolicyAssociations(args, parsed_globals):
|
|
10057
10525
|
g_param = parse_global_arg(parsed_globals)
|
|
10058
10526
|
|
|
10059
10527
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -10082,11 +10550,11 @@ def doDescribeBandwidthPackageQuota(args, parsed_globals):
|
|
|
10082
10550
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
10083
10551
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
10084
10552
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
10085
|
-
model = models.
|
|
10553
|
+
model = models.ReplaceRoutePolicyAssociationsRequest()
|
|
10086
10554
|
model.from_json_string(json.dumps(args))
|
|
10087
10555
|
start_time = time.time()
|
|
10088
10556
|
while True:
|
|
10089
|
-
rsp = client.
|
|
10557
|
+
rsp = client.ReplaceRoutePolicyAssociations(model)
|
|
10090
10558
|
result = rsp.to_json_string()
|
|
10091
10559
|
try:
|
|
10092
10560
|
json_obj = json.loads(result)
|
|
@@ -11249,7 +11717,7 @@ def doReplaceRouteTableAssociation(args, parsed_globals):
|
|
|
11249
11717
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
11250
11718
|
|
|
11251
11719
|
|
|
11252
|
-
def
|
|
11720
|
+
def doCreateRoutePolicyAssociations(args, parsed_globals):
|
|
11253
11721
|
g_param = parse_global_arg(parsed_globals)
|
|
11254
11722
|
|
|
11255
11723
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -11278,11 +11746,11 @@ def doDeleteVpnGatewaySslServer(args, parsed_globals):
|
|
|
11278
11746
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
11279
11747
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
11280
11748
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
11281
|
-
model = models.
|
|
11749
|
+
model = models.CreateRoutePolicyAssociationsRequest()
|
|
11282
11750
|
model.from_json_string(json.dumps(args))
|
|
11283
11751
|
start_time = time.time()
|
|
11284
11752
|
while True:
|
|
11285
|
-
rsp = client.
|
|
11753
|
+
rsp = client.CreateRoutePolicyAssociations(model)
|
|
11286
11754
|
result = rsp.to_json_string()
|
|
11287
11755
|
try:
|
|
11288
11756
|
json_obj = json.loads(result)
|
|
@@ -11301,7 +11769,7 @@ def doDeleteVpnGatewaySslServer(args, parsed_globals):
|
|
|
11301
11769
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
11302
11770
|
|
|
11303
11771
|
|
|
11304
|
-
def
|
|
11772
|
+
def doDeleteVpnGatewaySslServer(args, parsed_globals):
|
|
11305
11773
|
g_param = parse_global_arg(parsed_globals)
|
|
11306
11774
|
|
|
11307
11775
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -11330,11 +11798,11 @@ def doDescribeNetworkInterfaceLimit(args, parsed_globals):
|
|
|
11330
11798
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
11331
11799
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
11332
11800
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
11333
|
-
model = models.
|
|
11801
|
+
model = models.DeleteVpnGatewaySslServerRequest()
|
|
11334
11802
|
model.from_json_string(json.dumps(args))
|
|
11335
11803
|
start_time = time.time()
|
|
11336
11804
|
while True:
|
|
11337
|
-
rsp = client.
|
|
11805
|
+
rsp = client.DeleteVpnGatewaySslServer(model)
|
|
11338
11806
|
result = rsp.to_json_string()
|
|
11339
11807
|
try:
|
|
11340
11808
|
json_obj = json.loads(result)
|
|
@@ -11353,7 +11821,7 @@ def doDescribeNetworkInterfaceLimit(args, parsed_globals):
|
|
|
11353
11821
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
11354
11822
|
|
|
11355
11823
|
|
|
11356
|
-
def
|
|
11824
|
+
def doDescribeNetworkInterfaceLimit(args, parsed_globals):
|
|
11357
11825
|
g_param = parse_global_arg(parsed_globals)
|
|
11358
11826
|
|
|
11359
11827
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -11382,11 +11850,11 @@ def doEnableSnapshotPolicies(args, parsed_globals):
|
|
|
11382
11850
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
11383
11851
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
11384
11852
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
11385
|
-
model = models.
|
|
11853
|
+
model = models.DescribeNetworkInterfaceLimitRequest()
|
|
11386
11854
|
model.from_json_string(json.dumps(args))
|
|
11387
11855
|
start_time = time.time()
|
|
11388
11856
|
while True:
|
|
11389
|
-
rsp = client.
|
|
11857
|
+
rsp = client.DescribeNetworkInterfaceLimit(model)
|
|
11390
11858
|
result = rsp.to_json_string()
|
|
11391
11859
|
try:
|
|
11392
11860
|
json_obj = json.loads(result)
|
|
@@ -11405,7 +11873,7 @@ def doEnableSnapshotPolicies(args, parsed_globals):
|
|
|
11405
11873
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
11406
11874
|
|
|
11407
11875
|
|
|
11408
|
-
def
|
|
11876
|
+
def doEnableSnapshotPolicies(args, parsed_globals):
|
|
11409
11877
|
g_param = parse_global_arg(parsed_globals)
|
|
11410
11878
|
|
|
11411
11879
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -11434,11 +11902,11 @@ def doDescribeUsedIpAddress(args, parsed_globals):
|
|
|
11434
11902
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
11435
11903
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
11436
11904
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
11437
|
-
model = models.
|
|
11905
|
+
model = models.EnableSnapshotPoliciesRequest()
|
|
11438
11906
|
model.from_json_string(json.dumps(args))
|
|
11439
11907
|
start_time = time.time()
|
|
11440
11908
|
while True:
|
|
11441
|
-
rsp = client.
|
|
11909
|
+
rsp = client.EnableSnapshotPolicies(model)
|
|
11442
11910
|
result = rsp.to_json_string()
|
|
11443
11911
|
try:
|
|
11444
11912
|
json_obj = json.loads(result)
|
|
@@ -11457,7 +11925,7 @@ def doDescribeUsedIpAddress(args, parsed_globals):
|
|
|
11457
11925
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
11458
11926
|
|
|
11459
11927
|
|
|
11460
|
-
def
|
|
11928
|
+
def doDescribeUsedIpAddress(args, parsed_globals):
|
|
11461
11929
|
g_param = parse_global_arg(parsed_globals)
|
|
11462
11930
|
|
|
11463
11931
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -11486,11 +11954,11 @@ def doDescribeCustomerGatewayVendors(args, parsed_globals):
|
|
|
11486
11954
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
11487
11955
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
11488
11956
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
11489
|
-
model = models.
|
|
11957
|
+
model = models.DescribeUsedIpAddressRequest()
|
|
11490
11958
|
model.from_json_string(json.dumps(args))
|
|
11491
11959
|
start_time = time.time()
|
|
11492
11960
|
while True:
|
|
11493
|
-
rsp = client.
|
|
11961
|
+
rsp = client.DescribeUsedIpAddress(model)
|
|
11494
11962
|
result = rsp.to_json_string()
|
|
11495
11963
|
try:
|
|
11496
11964
|
json_obj = json.loads(result)
|
|
@@ -11509,7 +11977,7 @@ def doDescribeCustomerGatewayVendors(args, parsed_globals):
|
|
|
11509
11977
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
11510
11978
|
|
|
11511
11979
|
|
|
11512
|
-
def
|
|
11980
|
+
def doDescribeCustomerGatewayVendors(args, parsed_globals):
|
|
11513
11981
|
g_param = parse_global_arg(parsed_globals)
|
|
11514
11982
|
|
|
11515
11983
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -11538,11 +12006,11 @@ def doDeleteCdcNetPlanes(args, parsed_globals):
|
|
|
11538
12006
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
11539
12007
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
11540
12008
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
11541
|
-
model = models.
|
|
12009
|
+
model = models.DescribeCustomerGatewayVendorsRequest()
|
|
11542
12010
|
model.from_json_string(json.dumps(args))
|
|
11543
12011
|
start_time = time.time()
|
|
11544
12012
|
while True:
|
|
11545
|
-
rsp = client.
|
|
12013
|
+
rsp = client.DescribeCustomerGatewayVendors(model)
|
|
11546
12014
|
result = rsp.to_json_string()
|
|
11547
12015
|
try:
|
|
11548
12016
|
json_obj = json.loads(result)
|
|
@@ -11561,7 +12029,7 @@ def doDeleteCdcNetPlanes(args, parsed_globals):
|
|
|
11561
12029
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
11562
12030
|
|
|
11563
12031
|
|
|
11564
|
-
def
|
|
12032
|
+
def doDeleteCdcNetPlanes(args, parsed_globals):
|
|
11565
12033
|
g_param = parse_global_arg(parsed_globals)
|
|
11566
12034
|
|
|
11567
12035
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -11590,11 +12058,11 @@ def doDeleteLocalGateway(args, parsed_globals):
|
|
|
11590
12058
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
11591
12059
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
11592
12060
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
11593
|
-
model = models.
|
|
12061
|
+
model = models.DeleteCdcNetPlanesRequest()
|
|
11594
12062
|
model.from_json_string(json.dumps(args))
|
|
11595
12063
|
start_time = time.time()
|
|
11596
12064
|
while True:
|
|
11597
|
-
rsp = client.
|
|
12065
|
+
rsp = client.DeleteCdcNetPlanes(model)
|
|
11598
12066
|
result = rsp.to_json_string()
|
|
11599
12067
|
try:
|
|
11600
12068
|
json_obj = json.loads(result)
|
|
@@ -11613,7 +12081,7 @@ def doDeleteLocalGateway(args, parsed_globals):
|
|
|
11613
12081
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
11614
12082
|
|
|
11615
12083
|
|
|
11616
|
-
def
|
|
12084
|
+
def doDeleteLocalGateway(args, parsed_globals):
|
|
11617
12085
|
g_param = parse_global_arg(parsed_globals)
|
|
11618
12086
|
|
|
11619
12087
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -11642,11 +12110,63 @@ def doModifyServiceTemplateAttribute(args, parsed_globals):
|
|
|
11642
12110
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
11643
12111
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
11644
12112
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
11645
|
-
model = models.
|
|
12113
|
+
model = models.DeleteLocalGatewayRequest()
|
|
11646
12114
|
model.from_json_string(json.dumps(args))
|
|
11647
12115
|
start_time = time.time()
|
|
11648
12116
|
while True:
|
|
11649
|
-
rsp = client.
|
|
12117
|
+
rsp = client.DeleteLocalGateway(model)
|
|
12118
|
+
result = rsp.to_json_string()
|
|
12119
|
+
try:
|
|
12120
|
+
json_obj = json.loads(result)
|
|
12121
|
+
except TypeError as e:
|
|
12122
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
12123
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
12124
|
+
break
|
|
12125
|
+
cur_time = time.time()
|
|
12126
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
12127
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
12128
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
12129
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
12130
|
+
else:
|
|
12131
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
12132
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
12133
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
12134
|
+
|
|
12135
|
+
|
|
12136
|
+
def doModifyServiceTemplateAttribute(args, parsed_globals):
|
|
12137
|
+
g_param = parse_global_arg(parsed_globals)
|
|
12138
|
+
|
|
12139
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
12140
|
+
cred = credential.CVMRoleCredential()
|
|
12141
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
12142
|
+
cred = credential.STSAssumeRoleCredential(
|
|
12143
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
12144
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
12145
|
+
)
|
|
12146
|
+
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):
|
|
12147
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
12148
|
+
else:
|
|
12149
|
+
cred = credential.Credential(
|
|
12150
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
12151
|
+
)
|
|
12152
|
+
http_profile = HttpProfile(
|
|
12153
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
12154
|
+
reqMethod="POST",
|
|
12155
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
12156
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
12157
|
+
)
|
|
12158
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
12159
|
+
if g_param[OptionsDefine.Language]:
|
|
12160
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
12161
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
12162
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
12163
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
12164
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
12165
|
+
model = models.ModifyServiceTemplateAttributeRequest()
|
|
12166
|
+
model.from_json_string(json.dumps(args))
|
|
12167
|
+
start_time = time.time()
|
|
12168
|
+
while True:
|
|
12169
|
+
rsp = client.ModifyServiceTemplateAttribute(model)
|
|
11650
12170
|
result = rsp.to_json_string()
|
|
11651
12171
|
try:
|
|
11652
12172
|
json_obj = json.loads(result)
|
|
@@ -13017,7 +13537,7 @@ def doModifyCcnRouteTables(args, parsed_globals):
|
|
|
13017
13537
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
13018
13538
|
|
|
13019
13539
|
|
|
13020
|
-
def
|
|
13540
|
+
def doModifyAddressesRenewFlag(args, parsed_globals):
|
|
13021
13541
|
g_param = parse_global_arg(parsed_globals)
|
|
13022
13542
|
|
|
13023
13543
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -13046,11 +13566,11 @@ def doModifyCcnRegionBandwidthLimitsType(args, parsed_globals):
|
|
|
13046
13566
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
13047
13567
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
13048
13568
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
13049
|
-
model = models.
|
|
13569
|
+
model = models.ModifyAddressesRenewFlagRequest()
|
|
13050
13570
|
model.from_json_string(json.dumps(args))
|
|
13051
13571
|
start_time = time.time()
|
|
13052
13572
|
while True:
|
|
13053
|
-
rsp = client.
|
|
13573
|
+
rsp = client.ModifyAddressesRenewFlag(model)
|
|
13054
13574
|
result = rsp.to_json_string()
|
|
13055
13575
|
try:
|
|
13056
13576
|
json_obj = json.loads(result)
|
|
@@ -13277,6 +13797,58 @@ def doModifyNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
|
|
|
13277
13797
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
13278
13798
|
|
|
13279
13799
|
|
|
13800
|
+
def doDescribeServiceTemplateGroupInstances(args, parsed_globals):
|
|
13801
|
+
g_param = parse_global_arg(parsed_globals)
|
|
13802
|
+
|
|
13803
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
13804
|
+
cred = credential.CVMRoleCredential()
|
|
13805
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
13806
|
+
cred = credential.STSAssumeRoleCredential(
|
|
13807
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
13808
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
13809
|
+
)
|
|
13810
|
+
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):
|
|
13811
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
13812
|
+
else:
|
|
13813
|
+
cred = credential.Credential(
|
|
13814
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
13815
|
+
)
|
|
13816
|
+
http_profile = HttpProfile(
|
|
13817
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
13818
|
+
reqMethod="POST",
|
|
13819
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
13820
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
13821
|
+
)
|
|
13822
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
13823
|
+
if g_param[OptionsDefine.Language]:
|
|
13824
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
13825
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
13826
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
13827
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
13828
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
13829
|
+
model = models.DescribeServiceTemplateGroupInstancesRequest()
|
|
13830
|
+
model.from_json_string(json.dumps(args))
|
|
13831
|
+
start_time = time.time()
|
|
13832
|
+
while True:
|
|
13833
|
+
rsp = client.DescribeServiceTemplateGroupInstances(model)
|
|
13834
|
+
result = rsp.to_json_string()
|
|
13835
|
+
try:
|
|
13836
|
+
json_obj = json.loads(result)
|
|
13837
|
+
except TypeError as e:
|
|
13838
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
13839
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
13840
|
+
break
|
|
13841
|
+
cur_time = time.time()
|
|
13842
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
13843
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
13844
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
13845
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
13846
|
+
else:
|
|
13847
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
13848
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
13849
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
13850
|
+
|
|
13851
|
+
|
|
13280
13852
|
def doUnassignIpv6SubnetCidrBlock(args, parsed_globals):
|
|
13281
13853
|
g_param = parse_global_arg(parsed_globals)
|
|
13282
13854
|
|
|
@@ -14109,6 +14681,58 @@ def doDescribeNetworkInterfaces(args, parsed_globals):
|
|
|
14109
14681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14110
14682
|
|
|
14111
14683
|
|
|
14684
|
+
def doCreateRoutePolicy(args, parsed_globals):
|
|
14685
|
+
g_param = parse_global_arg(parsed_globals)
|
|
14686
|
+
|
|
14687
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
14688
|
+
cred = credential.CVMRoleCredential()
|
|
14689
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
14690
|
+
cred = credential.STSAssumeRoleCredential(
|
|
14691
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
14692
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
14693
|
+
)
|
|
14694
|
+
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):
|
|
14695
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
14696
|
+
else:
|
|
14697
|
+
cred = credential.Credential(
|
|
14698
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
14699
|
+
)
|
|
14700
|
+
http_profile = HttpProfile(
|
|
14701
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
14702
|
+
reqMethod="POST",
|
|
14703
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
14704
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
14705
|
+
)
|
|
14706
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
14707
|
+
if g_param[OptionsDefine.Language]:
|
|
14708
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
14709
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
14710
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14711
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
14712
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14713
|
+
model = models.CreateRoutePolicyRequest()
|
|
14714
|
+
model.from_json_string(json.dumps(args))
|
|
14715
|
+
start_time = time.time()
|
|
14716
|
+
while True:
|
|
14717
|
+
rsp = client.CreateRoutePolicy(model)
|
|
14718
|
+
result = rsp.to_json_string()
|
|
14719
|
+
try:
|
|
14720
|
+
json_obj = json.loads(result)
|
|
14721
|
+
except TypeError as e:
|
|
14722
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
14723
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
14724
|
+
break
|
|
14725
|
+
cur_time = time.time()
|
|
14726
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
14727
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
14728
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
14729
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
14730
|
+
else:
|
|
14731
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
14732
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
14733
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14734
|
+
|
|
14735
|
+
|
|
14112
14736
|
def doDisableCcnRoutes(args, parsed_globals):
|
|
14113
14737
|
g_param = parse_global_arg(parsed_globals)
|
|
14114
14738
|
|
|
@@ -14265,6 +14889,58 @@ def doCreateAddressTemplateGroup(args, parsed_globals):
|
|
|
14265
14889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14266
14890
|
|
|
14267
14891
|
|
|
14892
|
+
def doDescribeServiceTemplateInstances(args, parsed_globals):
|
|
14893
|
+
g_param = parse_global_arg(parsed_globals)
|
|
14894
|
+
|
|
14895
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
14896
|
+
cred = credential.CVMRoleCredential()
|
|
14897
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
14898
|
+
cred = credential.STSAssumeRoleCredential(
|
|
14899
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
14900
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
14901
|
+
)
|
|
14902
|
+
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):
|
|
14903
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
14904
|
+
else:
|
|
14905
|
+
cred = credential.Credential(
|
|
14906
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
14907
|
+
)
|
|
14908
|
+
http_profile = HttpProfile(
|
|
14909
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
14910
|
+
reqMethod="POST",
|
|
14911
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
14912
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
14913
|
+
)
|
|
14914
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
14915
|
+
if g_param[OptionsDefine.Language]:
|
|
14916
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
14917
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
14918
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14919
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
14920
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14921
|
+
model = models.DescribeServiceTemplateInstancesRequest()
|
|
14922
|
+
model.from_json_string(json.dumps(args))
|
|
14923
|
+
start_time = time.time()
|
|
14924
|
+
while True:
|
|
14925
|
+
rsp = client.DescribeServiceTemplateInstances(model)
|
|
14926
|
+
result = rsp.to_json_string()
|
|
14927
|
+
try:
|
|
14928
|
+
json_obj = json.loads(result)
|
|
14929
|
+
except TypeError as e:
|
|
14930
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
14931
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
14932
|
+
break
|
|
14933
|
+
cur_time = time.time()
|
|
14934
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
14935
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
14936
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
14937
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
14938
|
+
else:
|
|
14939
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
14940
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
14941
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14942
|
+
|
|
14943
|
+
|
|
14268
14944
|
def doAssociateNetworkAclSubnets(args, parsed_globals):
|
|
14269
14945
|
g_param = parse_global_arg(parsed_globals)
|
|
14270
14946
|
|
|
@@ -14398,11 +15074,115 @@ def doDownloadVpnGatewaySslClientCert(args, parsed_globals):
|
|
|
14398
15074
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14399
15075
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
14400
15076
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14401
|
-
model = models.DownloadVpnGatewaySslClientCertRequest()
|
|
15077
|
+
model = models.DownloadVpnGatewaySslClientCertRequest()
|
|
15078
|
+
model.from_json_string(json.dumps(args))
|
|
15079
|
+
start_time = time.time()
|
|
15080
|
+
while True:
|
|
15081
|
+
rsp = client.DownloadVpnGatewaySslClientCert(model)
|
|
15082
|
+
result = rsp.to_json_string()
|
|
15083
|
+
try:
|
|
15084
|
+
json_obj = json.loads(result)
|
|
15085
|
+
except TypeError as e:
|
|
15086
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
15087
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
15088
|
+
break
|
|
15089
|
+
cur_time = time.time()
|
|
15090
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
15091
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
15092
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
15093
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
15094
|
+
else:
|
|
15095
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
15096
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
15097
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
15098
|
+
|
|
15099
|
+
|
|
15100
|
+
def doReplaceHighPriorityRouteTableAssociation(args, parsed_globals):
|
|
15101
|
+
g_param = parse_global_arg(parsed_globals)
|
|
15102
|
+
|
|
15103
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
15104
|
+
cred = credential.CVMRoleCredential()
|
|
15105
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
15106
|
+
cred = credential.STSAssumeRoleCredential(
|
|
15107
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
15108
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
15109
|
+
)
|
|
15110
|
+
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):
|
|
15111
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
15112
|
+
else:
|
|
15113
|
+
cred = credential.Credential(
|
|
15114
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
15115
|
+
)
|
|
15116
|
+
http_profile = HttpProfile(
|
|
15117
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
15118
|
+
reqMethod="POST",
|
|
15119
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
15120
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
15121
|
+
)
|
|
15122
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
15123
|
+
if g_param[OptionsDefine.Language]:
|
|
15124
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
15125
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
15126
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
15127
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
15128
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
15129
|
+
model = models.ReplaceHighPriorityRouteTableAssociationRequest()
|
|
15130
|
+
model.from_json_string(json.dumps(args))
|
|
15131
|
+
start_time = time.time()
|
|
15132
|
+
while True:
|
|
15133
|
+
rsp = client.ReplaceHighPriorityRouteTableAssociation(model)
|
|
15134
|
+
result = rsp.to_json_string()
|
|
15135
|
+
try:
|
|
15136
|
+
json_obj = json.loads(result)
|
|
15137
|
+
except TypeError as e:
|
|
15138
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
15139
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
15140
|
+
break
|
|
15141
|
+
cur_time = time.time()
|
|
15142
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
15143
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
15144
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
15145
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
15146
|
+
else:
|
|
15147
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
15148
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
15149
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
15150
|
+
|
|
15151
|
+
|
|
15152
|
+
def doEnableFlowLogs(args, parsed_globals):
|
|
15153
|
+
g_param = parse_global_arg(parsed_globals)
|
|
15154
|
+
|
|
15155
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
15156
|
+
cred = credential.CVMRoleCredential()
|
|
15157
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
15158
|
+
cred = credential.STSAssumeRoleCredential(
|
|
15159
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
15160
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
15161
|
+
)
|
|
15162
|
+
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):
|
|
15163
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
15164
|
+
else:
|
|
15165
|
+
cred = credential.Credential(
|
|
15166
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
15167
|
+
)
|
|
15168
|
+
http_profile = HttpProfile(
|
|
15169
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
15170
|
+
reqMethod="POST",
|
|
15171
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
15172
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
15173
|
+
)
|
|
15174
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
15175
|
+
if g_param[OptionsDefine.Language]:
|
|
15176
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
15177
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
15178
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
15179
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
15180
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
15181
|
+
model = models.EnableFlowLogsRequest()
|
|
14402
15182
|
model.from_json_string(json.dumps(args))
|
|
14403
15183
|
start_time = time.time()
|
|
14404
15184
|
while True:
|
|
14405
|
-
rsp = client.
|
|
15185
|
+
rsp = client.EnableFlowLogs(model)
|
|
14406
15186
|
result = rsp.to_json_string()
|
|
14407
15187
|
try:
|
|
14408
15188
|
json_obj = json.loads(result)
|
|
@@ -14421,7 +15201,7 @@ def doDownloadVpnGatewaySslClientCert(args, parsed_globals):
|
|
|
14421
15201
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14422
15202
|
|
|
14423
15203
|
|
|
14424
|
-
def
|
|
15204
|
+
def doCreateCdcLDCXList(args, parsed_globals):
|
|
14425
15205
|
g_param = parse_global_arg(parsed_globals)
|
|
14426
15206
|
|
|
14427
15207
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -14450,11 +15230,11 @@ def doReplaceHighPriorityRouteTableAssociation(args, parsed_globals):
|
|
|
14450
15230
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14451
15231
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
14452
15232
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14453
|
-
model = models.
|
|
15233
|
+
model = models.CreateCdcLDCXListRequest()
|
|
14454
15234
|
model.from_json_string(json.dumps(args))
|
|
14455
15235
|
start_time = time.time()
|
|
14456
15236
|
while True:
|
|
14457
|
-
rsp = client.
|
|
15237
|
+
rsp = client.CreateCdcLDCXList(model)
|
|
14458
15238
|
result = rsp.to_json_string()
|
|
14459
15239
|
try:
|
|
14460
15240
|
json_obj = json.loads(result)
|
|
@@ -14473,7 +15253,7 @@ def doReplaceHighPriorityRouteTableAssociation(args, parsed_globals):
|
|
|
14473
15253
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14474
15254
|
|
|
14475
15255
|
|
|
14476
|
-
def
|
|
15256
|
+
def doModifyNatGatewayDestinationIpPortTranslationNatRule(args, parsed_globals):
|
|
14477
15257
|
g_param = parse_global_arg(parsed_globals)
|
|
14478
15258
|
|
|
14479
15259
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -14502,11 +15282,11 @@ def doEnableFlowLogs(args, parsed_globals):
|
|
|
14502
15282
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14503
15283
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
14504
15284
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14505
|
-
model = models.
|
|
15285
|
+
model = models.ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest()
|
|
14506
15286
|
model.from_json_string(json.dumps(args))
|
|
14507
15287
|
start_time = time.time()
|
|
14508
15288
|
while True:
|
|
14509
|
-
rsp = client.
|
|
15289
|
+
rsp = client.ModifyNatGatewayDestinationIpPortTranslationNatRule(model)
|
|
14510
15290
|
result = rsp.to_json_string()
|
|
14511
15291
|
try:
|
|
14512
15292
|
json_obj = json.loads(result)
|
|
@@ -14525,7 +15305,7 @@ def doEnableFlowLogs(args, parsed_globals):
|
|
|
14525
15305
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14526
15306
|
|
|
14527
15307
|
|
|
14528
|
-
def
|
|
15308
|
+
def doDisableVpnGatewaySslClientCert(args, parsed_globals):
|
|
14529
15309
|
g_param = parse_global_arg(parsed_globals)
|
|
14530
15310
|
|
|
14531
15311
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -14554,11 +15334,11 @@ def doCreateCdcLDCXList(args, parsed_globals):
|
|
|
14554
15334
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14555
15335
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
14556
15336
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14557
|
-
model = models.
|
|
15337
|
+
model = models.DisableVpnGatewaySslClientCertRequest()
|
|
14558
15338
|
model.from_json_string(json.dumps(args))
|
|
14559
15339
|
start_time = time.time()
|
|
14560
15340
|
while True:
|
|
14561
|
-
rsp = client.
|
|
15341
|
+
rsp = client.DisableVpnGatewaySslClientCert(model)
|
|
14562
15342
|
result = rsp.to_json_string()
|
|
14563
15343
|
try:
|
|
14564
15344
|
json_obj = json.loads(result)
|
|
@@ -14577,7 +15357,7 @@ def doCreateCdcLDCXList(args, parsed_globals):
|
|
|
14577
15357
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14578
15358
|
|
|
14579
15359
|
|
|
14580
|
-
def
|
|
15360
|
+
def doDescribeHaVips(args, parsed_globals):
|
|
14581
15361
|
g_param = parse_global_arg(parsed_globals)
|
|
14582
15362
|
|
|
14583
15363
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -14606,11 +15386,11 @@ def doModifyNatGatewayDestinationIpPortTranslationNatRule(args, parsed_globals):
|
|
|
14606
15386
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14607
15387
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
14608
15388
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14609
|
-
model = models.
|
|
15389
|
+
model = models.DescribeHaVipsRequest()
|
|
14610
15390
|
model.from_json_string(json.dumps(args))
|
|
14611
15391
|
start_time = time.time()
|
|
14612
15392
|
while True:
|
|
14613
|
-
rsp = client.
|
|
15393
|
+
rsp = client.DescribeHaVips(model)
|
|
14614
15394
|
result = rsp.to_json_string()
|
|
14615
15395
|
try:
|
|
14616
15396
|
json_obj = json.loads(result)
|
|
@@ -14629,7 +15409,7 @@ def doModifyNatGatewayDestinationIpPortTranslationNatRule(args, parsed_globals):
|
|
|
14629
15409
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14630
15410
|
|
|
14631
15411
|
|
|
14632
|
-
def
|
|
15412
|
+
def doCreateLocalGateway(args, parsed_globals):
|
|
14633
15413
|
g_param = parse_global_arg(parsed_globals)
|
|
14634
15414
|
|
|
14635
15415
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -14658,11 +15438,11 @@ def doDescribeHaVips(args, parsed_globals):
|
|
|
14658
15438
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14659
15439
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
14660
15440
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14661
|
-
model = models.
|
|
15441
|
+
model = models.CreateLocalGatewayRequest()
|
|
14662
15442
|
model.from_json_string(json.dumps(args))
|
|
14663
15443
|
start_time = time.time()
|
|
14664
15444
|
while True:
|
|
14665
|
-
rsp = client.
|
|
15445
|
+
rsp = client.CreateLocalGateway(model)
|
|
14666
15446
|
result = rsp.to_json_string()
|
|
14667
15447
|
try:
|
|
14668
15448
|
json_obj = json.loads(result)
|
|
@@ -14681,7 +15461,7 @@ def doDescribeHaVips(args, parsed_globals):
|
|
|
14681
15461
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14682
15462
|
|
|
14683
15463
|
|
|
14684
|
-
def
|
|
15464
|
+
def doResetVpnGatewayInternetMaxBandwidth(args, parsed_globals):
|
|
14685
15465
|
g_param = parse_global_arg(parsed_globals)
|
|
14686
15466
|
|
|
14687
15467
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -14710,11 +15490,11 @@ def doCreateLocalGateway(args, parsed_globals):
|
|
|
14710
15490
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14711
15491
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
14712
15492
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14713
|
-
model = models.
|
|
15493
|
+
model = models.ResetVpnGatewayInternetMaxBandwidthRequest()
|
|
14714
15494
|
model.from_json_string(json.dumps(args))
|
|
14715
15495
|
start_time = time.time()
|
|
14716
15496
|
while True:
|
|
14717
|
-
rsp = client.
|
|
15497
|
+
rsp = client.ResetVpnGatewayInternetMaxBandwidth(model)
|
|
14718
15498
|
result = rsp.to_json_string()
|
|
14719
15499
|
try:
|
|
14720
15500
|
json_obj = json.loads(result)
|
|
@@ -14733,7 +15513,7 @@ def doCreateLocalGateway(args, parsed_globals):
|
|
|
14733
15513
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14734
15514
|
|
|
14735
15515
|
|
|
14736
|
-
def
|
|
15516
|
+
def doModifyVpnConnectionAttribute(args, parsed_globals):
|
|
14737
15517
|
g_param = parse_global_arg(parsed_globals)
|
|
14738
15518
|
|
|
14739
15519
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -14762,11 +15542,11 @@ def doResetVpnGatewayInternetMaxBandwidth(args, parsed_globals):
|
|
|
14762
15542
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14763
15543
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
14764
15544
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14765
|
-
model = models.
|
|
15545
|
+
model = models.ModifyVpnConnectionAttributeRequest()
|
|
14766
15546
|
model.from_json_string(json.dumps(args))
|
|
14767
15547
|
start_time = time.time()
|
|
14768
15548
|
while True:
|
|
14769
|
-
rsp = client.
|
|
15549
|
+
rsp = client.ModifyVpnConnectionAttribute(model)
|
|
14770
15550
|
result = rsp.to_json_string()
|
|
14771
15551
|
try:
|
|
14772
15552
|
json_obj = json.loads(result)
|
|
@@ -14785,7 +15565,7 @@ def doResetVpnGatewayInternetMaxBandwidth(args, parsed_globals):
|
|
|
14785
15565
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14786
15566
|
|
|
14787
15567
|
|
|
14788
|
-
def
|
|
15568
|
+
def doDescribePrivateNatGatewayTranslationNatRules(args, parsed_globals):
|
|
14789
15569
|
g_param = parse_global_arg(parsed_globals)
|
|
14790
15570
|
|
|
14791
15571
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -14814,11 +15594,11 @@ def doModifyVpnConnectionAttribute(args, parsed_globals):
|
|
|
14814
15594
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14815
15595
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
14816
15596
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14817
|
-
model = models.
|
|
15597
|
+
model = models.DescribePrivateNatGatewayTranslationNatRulesRequest()
|
|
14818
15598
|
model.from_json_string(json.dumps(args))
|
|
14819
15599
|
start_time = time.time()
|
|
14820
15600
|
while True:
|
|
14821
|
-
rsp = client.
|
|
15601
|
+
rsp = client.DescribePrivateNatGatewayTranslationNatRules(model)
|
|
14822
15602
|
result = rsp.to_json_string()
|
|
14823
15603
|
try:
|
|
14824
15604
|
json_obj = json.loads(result)
|
|
@@ -14837,7 +15617,7 @@ def doModifyVpnConnectionAttribute(args, parsed_globals):
|
|
|
14837
15617
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14838
15618
|
|
|
14839
15619
|
|
|
14840
|
-
def
|
|
15620
|
+
def doDisassociateHaVipInstance(args, parsed_globals):
|
|
14841
15621
|
g_param = parse_global_arg(parsed_globals)
|
|
14842
15622
|
|
|
14843
15623
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -14866,11 +15646,11 @@ def doDescribePrivateNatGatewayTranslationNatRules(args, parsed_globals):
|
|
|
14866
15646
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14867
15647
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
14868
15648
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14869
|
-
model = models.
|
|
15649
|
+
model = models.DisassociateHaVipInstanceRequest()
|
|
14870
15650
|
model.from_json_string(json.dumps(args))
|
|
14871
15651
|
start_time = time.time()
|
|
14872
15652
|
while True:
|
|
14873
|
-
rsp = client.
|
|
15653
|
+
rsp = client.DisassociateHaVipInstance(model)
|
|
14874
15654
|
result = rsp.to_json_string()
|
|
14875
15655
|
try:
|
|
14876
15656
|
json_obj = json.loads(result)
|
|
@@ -14889,7 +15669,7 @@ def doDescribePrivateNatGatewayTranslationNatRules(args, parsed_globals):
|
|
|
14889
15669
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14890
15670
|
|
|
14891
15671
|
|
|
14892
|
-
def
|
|
15672
|
+
def doCreateHaVip(args, parsed_globals):
|
|
14893
15673
|
g_param = parse_global_arg(parsed_globals)
|
|
14894
15674
|
|
|
14895
15675
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -14918,11 +15698,11 @@ def doDisassociateHaVipInstance(args, parsed_globals):
|
|
|
14918
15698
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14919
15699
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
14920
15700
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14921
|
-
model = models.
|
|
15701
|
+
model = models.CreateHaVipRequest()
|
|
14922
15702
|
model.from_json_string(json.dumps(args))
|
|
14923
15703
|
start_time = time.time()
|
|
14924
15704
|
while True:
|
|
14925
|
-
rsp = client.
|
|
15705
|
+
rsp = client.CreateHaVip(model)
|
|
14926
15706
|
result = rsp.to_json_string()
|
|
14927
15707
|
try:
|
|
14928
15708
|
json_obj = json.loads(result)
|
|
@@ -14941,7 +15721,7 @@ def doDisassociateHaVipInstance(args, parsed_globals):
|
|
|
14941
15721
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14942
15722
|
|
|
14943
15723
|
|
|
14944
|
-
def
|
|
15724
|
+
def doDescribeAddressTemplateGroupInstances(args, parsed_globals):
|
|
14945
15725
|
g_param = parse_global_arg(parsed_globals)
|
|
14946
15726
|
|
|
14947
15727
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -14970,11 +15750,11 @@ def doCreateHaVip(args, parsed_globals):
|
|
|
14970
15750
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
14971
15751
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
14972
15752
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
14973
|
-
model = models.
|
|
15753
|
+
model = models.DescribeAddressTemplateGroupInstancesRequest()
|
|
14974
15754
|
model.from_json_string(json.dumps(args))
|
|
14975
15755
|
start_time = time.time()
|
|
14976
15756
|
while True:
|
|
14977
|
-
rsp = client.
|
|
15757
|
+
rsp = client.DescribeAddressTemplateGroupInstances(model)
|
|
14978
15758
|
result = rsp.to_json_string()
|
|
14979
15759
|
try:
|
|
14980
15760
|
json_obj = json.loads(result)
|
|
@@ -15981,7 +16761,7 @@ def doDescribeNetDetects(args, parsed_globals):
|
|
|
15981
16761
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
15982
16762
|
|
|
15983
16763
|
|
|
15984
|
-
def
|
|
16764
|
+
def doModifyCcnRegionBandwidthLimitsType(args, parsed_globals):
|
|
15985
16765
|
g_param = parse_global_arg(parsed_globals)
|
|
15986
16766
|
|
|
15987
16767
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -16010,11 +16790,11 @@ def doModifyAddressesRenewFlag(args, parsed_globals):
|
|
|
16010
16790
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
16011
16791
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
16012
16792
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
16013
|
-
model = models.
|
|
16793
|
+
model = models.ModifyCcnRegionBandwidthLimitsTypeRequest()
|
|
16014
16794
|
model.from_json_string(json.dumps(args))
|
|
16015
16795
|
start_time = time.time()
|
|
16016
16796
|
while True:
|
|
16017
|
-
rsp = client.
|
|
16797
|
+
rsp = client.ModifyCcnRegionBandwidthLimitsType(model)
|
|
16018
16798
|
result = rsp.to_json_string()
|
|
16019
16799
|
try:
|
|
16020
16800
|
json_obj = json.loads(result)
|
|
@@ -17437,6 +18217,58 @@ def doModifyNetworkAclAttribute(args, parsed_globals):
|
|
|
17437
18217
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
17438
18218
|
|
|
17439
18219
|
|
|
18220
|
+
def doDescribeSecurityGroupExpandedPolicies(args, parsed_globals):
|
|
18221
|
+
g_param = parse_global_arg(parsed_globals)
|
|
18222
|
+
|
|
18223
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
18224
|
+
cred = credential.CVMRoleCredential()
|
|
18225
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
18226
|
+
cred = credential.STSAssumeRoleCredential(
|
|
18227
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
18228
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
18229
|
+
)
|
|
18230
|
+
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):
|
|
18231
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
18232
|
+
else:
|
|
18233
|
+
cred = credential.Credential(
|
|
18234
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
18235
|
+
)
|
|
18236
|
+
http_profile = HttpProfile(
|
|
18237
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
18238
|
+
reqMethod="POST",
|
|
18239
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
18240
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
18241
|
+
)
|
|
18242
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
18243
|
+
if g_param[OptionsDefine.Language]:
|
|
18244
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
18245
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
18246
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
18247
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
18248
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
18249
|
+
model = models.DescribeSecurityGroupExpandedPoliciesRequest()
|
|
18250
|
+
model.from_json_string(json.dumps(args))
|
|
18251
|
+
start_time = time.time()
|
|
18252
|
+
while True:
|
|
18253
|
+
rsp = client.DescribeSecurityGroupExpandedPolicies(model)
|
|
18254
|
+
result = rsp.to_json_string()
|
|
18255
|
+
try:
|
|
18256
|
+
json_obj = json.loads(result)
|
|
18257
|
+
except TypeError as e:
|
|
18258
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
18259
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
18260
|
+
break
|
|
18261
|
+
cur_time = time.time()
|
|
18262
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
18263
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
18264
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
18265
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
18266
|
+
else:
|
|
18267
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
18268
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
18269
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
18270
|
+
|
|
18271
|
+
|
|
17440
18272
|
def doDisableSnapshotPolicies(args, parsed_globals):
|
|
17441
18273
|
g_param = parse_global_arg(parsed_globals)
|
|
17442
18274
|
|
|
@@ -17957,7 +18789,7 @@ def doDeleteBandwidthPackage(args, parsed_globals):
|
|
|
17957
18789
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
17958
18790
|
|
|
17959
18791
|
|
|
17960
|
-
def
|
|
18792
|
+
def doCreateRoutePolicyEntries(args, parsed_globals):
|
|
17961
18793
|
g_param = parse_global_arg(parsed_globals)
|
|
17962
18794
|
|
|
17963
18795
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -17986,11 +18818,11 @@ def doDeleteIp6Translators(args, parsed_globals):
|
|
|
17986
18818
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
17987
18819
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
17988
18820
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
17989
|
-
model = models.
|
|
18821
|
+
model = models.CreateRoutePolicyEntriesRequest()
|
|
17990
18822
|
model.from_json_string(json.dumps(args))
|
|
17991
18823
|
start_time = time.time()
|
|
17992
18824
|
while True:
|
|
17993
|
-
rsp = client.
|
|
18825
|
+
rsp = client.CreateRoutePolicyEntries(model)
|
|
17994
18826
|
result = rsp.to_json_string()
|
|
17995
18827
|
try:
|
|
17996
18828
|
json_obj = json.loads(result)
|
|
@@ -18009,7 +18841,7 @@ def doDeleteIp6Translators(args, parsed_globals):
|
|
|
18009
18841
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
18010
18842
|
|
|
18011
18843
|
|
|
18012
|
-
def
|
|
18844
|
+
def doDeleteIp6Translators(args, parsed_globals):
|
|
18013
18845
|
g_param = parse_global_arg(parsed_globals)
|
|
18014
18846
|
|
|
18015
18847
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -18038,11 +18870,11 @@ def doDescribeRoutes(args, parsed_globals):
|
|
|
18038
18870
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
18039
18871
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
18040
18872
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
18041
|
-
model = models.
|
|
18873
|
+
model = models.DeleteIp6TranslatorsRequest()
|
|
18042
18874
|
model.from_json_string(json.dumps(args))
|
|
18043
18875
|
start_time = time.time()
|
|
18044
18876
|
while True:
|
|
18045
|
-
rsp = client.
|
|
18877
|
+
rsp = client.DeleteIp6Translators(model)
|
|
18046
18878
|
result = rsp.to_json_string()
|
|
18047
18879
|
try:
|
|
18048
18880
|
json_obj = json.loads(result)
|
|
@@ -18061,7 +18893,7 @@ def doDescribeRoutes(args, parsed_globals):
|
|
|
18061
18893
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
18062
18894
|
|
|
18063
18895
|
|
|
18064
|
-
def
|
|
18896
|
+
def doDescribeRoutes(args, parsed_globals):
|
|
18065
18897
|
g_param = parse_global_arg(parsed_globals)
|
|
18066
18898
|
|
|
18067
18899
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -18090,11 +18922,11 @@ def doDeleteVpnGatewayRoutes(args, parsed_globals):
|
|
|
18090
18922
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
18091
18923
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
18092
18924
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
18093
|
-
model = models.
|
|
18925
|
+
model = models.DescribeRoutesRequest()
|
|
18094
18926
|
model.from_json_string(json.dumps(args))
|
|
18095
18927
|
start_time = time.time()
|
|
18096
18928
|
while True:
|
|
18097
|
-
rsp = client.
|
|
18929
|
+
rsp = client.DescribeRoutes(model)
|
|
18098
18930
|
result = rsp.to_json_string()
|
|
18099
18931
|
try:
|
|
18100
18932
|
json_obj = json.loads(result)
|
|
@@ -18113,7 +18945,7 @@ def doDeleteVpnGatewayRoutes(args, parsed_globals):
|
|
|
18113
18945
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
18114
18946
|
|
|
18115
18947
|
|
|
18116
|
-
def
|
|
18948
|
+
def doDeleteVpnGatewayRoutes(args, parsed_globals):
|
|
18117
18949
|
g_param = parse_global_arg(parsed_globals)
|
|
18118
18950
|
|
|
18119
18951
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -18142,11 +18974,11 @@ def doReplaceHighPriorityRoutes(args, parsed_globals):
|
|
|
18142
18974
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
18143
18975
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
18144
18976
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
18145
|
-
model = models.
|
|
18977
|
+
model = models.DeleteVpnGatewayRoutesRequest()
|
|
18146
18978
|
model.from_json_string(json.dumps(args))
|
|
18147
18979
|
start_time = time.time()
|
|
18148
18980
|
while True:
|
|
18149
|
-
rsp = client.
|
|
18981
|
+
rsp = client.DeleteVpnGatewayRoutes(model)
|
|
18150
18982
|
result = rsp.to_json_string()
|
|
18151
18983
|
try:
|
|
18152
18984
|
json_obj = json.loads(result)
|
|
@@ -18165,7 +18997,7 @@ def doReplaceHighPriorityRoutes(args, parsed_globals):
|
|
|
18165
18997
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
18166
18998
|
|
|
18167
18999
|
|
|
18168
|
-
def
|
|
19000
|
+
def doReplaceHighPriorityRoutes(args, parsed_globals):
|
|
18169
19001
|
g_param = parse_global_arg(parsed_globals)
|
|
18170
19002
|
|
|
18171
19003
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -18194,11 +19026,11 @@ def doModifyCcnAttachedInstancesAttribute(args, parsed_globals):
|
|
|
18194
19026
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
18195
19027
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
18196
19028
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
18197
|
-
model = models.
|
|
19029
|
+
model = models.ReplaceHighPriorityRoutesRequest()
|
|
18198
19030
|
model.from_json_string(json.dumps(args))
|
|
18199
19031
|
start_time = time.time()
|
|
18200
19032
|
while True:
|
|
18201
|
-
rsp = client.
|
|
19033
|
+
rsp = client.ReplaceHighPriorityRoutes(model)
|
|
18202
19034
|
result = rsp.to_json_string()
|
|
18203
19035
|
try:
|
|
18204
19036
|
json_obj = json.loads(result)
|
|
@@ -18217,7 +19049,7 @@ def doModifyCcnAttachedInstancesAttribute(args, parsed_globals):
|
|
|
18217
19049
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
18218
19050
|
|
|
18219
19051
|
|
|
18220
|
-
def
|
|
19052
|
+
def doModifyCcnAttachedInstancesAttribute(args, parsed_globals):
|
|
18221
19053
|
g_param = parse_global_arg(parsed_globals)
|
|
18222
19054
|
|
|
18223
19055
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -18246,11 +19078,11 @@ def doResetTrafficMirrorTarget(args, parsed_globals):
|
|
|
18246
19078
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
18247
19079
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
18248
19080
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
18249
|
-
model = models.
|
|
19081
|
+
model = models.ModifyCcnAttachedInstancesAttributeRequest()
|
|
18250
19082
|
model.from_json_string(json.dumps(args))
|
|
18251
19083
|
start_time = time.time()
|
|
18252
19084
|
while True:
|
|
18253
|
-
rsp = client.
|
|
19085
|
+
rsp = client.ModifyCcnAttachedInstancesAttribute(model)
|
|
18254
19086
|
result = rsp.to_json_string()
|
|
18255
19087
|
try:
|
|
18256
19088
|
json_obj = json.loads(result)
|
|
@@ -18269,7 +19101,7 @@ def doResetTrafficMirrorTarget(args, parsed_globals):
|
|
|
18269
19101
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
18270
19102
|
|
|
18271
19103
|
|
|
18272
|
-
def
|
|
19104
|
+
def doResetTrafficMirrorTarget(args, parsed_globals):
|
|
18273
19105
|
g_param = parse_global_arg(parsed_globals)
|
|
18274
19106
|
|
|
18275
19107
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -18298,11 +19130,11 @@ def doDescribeSecurityGroupReferences(args, parsed_globals):
|
|
|
18298
19130
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
18299
19131
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
18300
19132
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
18301
|
-
model = models.
|
|
19133
|
+
model = models.ResetTrafficMirrorTargetRequest()
|
|
18302
19134
|
model.from_json_string(json.dumps(args))
|
|
18303
19135
|
start_time = time.time()
|
|
18304
19136
|
while True:
|
|
18305
|
-
rsp = client.
|
|
19137
|
+
rsp = client.ResetTrafficMirrorTarget(model)
|
|
18306
19138
|
result = rsp.to_json_string()
|
|
18307
19139
|
try:
|
|
18308
19140
|
json_obj = json.loads(result)
|
|
@@ -18321,7 +19153,7 @@ def doDescribeSecurityGroupReferences(args, parsed_globals):
|
|
|
18321
19153
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
18322
19154
|
|
|
18323
19155
|
|
|
18324
|
-
def
|
|
19156
|
+
def doDescribeSecurityGroupReferences(args, parsed_globals):
|
|
18325
19157
|
g_param = parse_global_arg(parsed_globals)
|
|
18326
19158
|
|
|
18327
19159
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -18350,11 +19182,11 @@ def doDeleteNatGateway(args, parsed_globals):
|
|
|
18350
19182
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
18351
19183
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
18352
19184
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
18353
|
-
model = models.
|
|
19185
|
+
model = models.DescribeSecurityGroupReferencesRequest()
|
|
18354
19186
|
model.from_json_string(json.dumps(args))
|
|
18355
19187
|
start_time = time.time()
|
|
18356
19188
|
while True:
|
|
18357
|
-
rsp = client.
|
|
19189
|
+
rsp = client.DescribeSecurityGroupReferences(model)
|
|
18358
19190
|
result = rsp.to_json_string()
|
|
18359
19191
|
try:
|
|
18360
19192
|
json_obj = json.loads(result)
|
|
@@ -18373,7 +19205,7 @@ def doDeleteNatGateway(args, parsed_globals):
|
|
|
18373
19205
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
18374
19206
|
|
|
18375
19207
|
|
|
18376
|
-
def
|
|
19208
|
+
def doDeleteNatGateway(args, parsed_globals):
|
|
18377
19209
|
g_param = parse_global_arg(parsed_globals)
|
|
18378
19210
|
|
|
18379
19211
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -18402,11 +19234,11 @@ def doDescribeRouteList(args, parsed_globals):
|
|
|
18402
19234
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
18403
19235
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
18404
19236
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
18405
|
-
model = models.
|
|
19237
|
+
model = models.DeleteNatGatewayRequest()
|
|
18406
19238
|
model.from_json_string(json.dumps(args))
|
|
18407
19239
|
start_time = time.time()
|
|
18408
19240
|
while True:
|
|
18409
|
-
rsp = client.
|
|
19241
|
+
rsp = client.DeleteNatGateway(model)
|
|
18410
19242
|
result = rsp.to_json_string()
|
|
18411
19243
|
try:
|
|
18412
19244
|
json_obj = json.loads(result)
|
|
@@ -18425,7 +19257,7 @@ def doDescribeRouteList(args, parsed_globals):
|
|
|
18425
19257
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
18426
19258
|
|
|
18427
19259
|
|
|
18428
|
-
def
|
|
19260
|
+
def doDescribeRouteList(args, parsed_globals):
|
|
18429
19261
|
g_param = parse_global_arg(parsed_globals)
|
|
18430
19262
|
|
|
18431
19263
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -18454,11 +19286,11 @@ def doModifyIpv6AddressesAttribute(args, parsed_globals):
|
|
|
18454
19286
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
18455
19287
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
18456
19288
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
18457
|
-
model = models.
|
|
19289
|
+
model = models.DescribeRouteListRequest()
|
|
18458
19290
|
model.from_json_string(json.dumps(args))
|
|
18459
19291
|
start_time = time.time()
|
|
18460
19292
|
while True:
|
|
18461
|
-
rsp = client.
|
|
19293
|
+
rsp = client.DescribeRouteList(model)
|
|
18462
19294
|
result = rsp.to_json_string()
|
|
18463
19295
|
try:
|
|
18464
19296
|
json_obj = json.loads(result)
|
|
@@ -18477,7 +19309,7 @@ def doModifyIpv6AddressesAttribute(args, parsed_globals):
|
|
|
18477
19309
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
18478
19310
|
|
|
18479
19311
|
|
|
18480
|
-
def
|
|
19312
|
+
def doDescribeBandwidthPackageQuota(args, parsed_globals):
|
|
18481
19313
|
g_param = parse_global_arg(parsed_globals)
|
|
18482
19314
|
|
|
18483
19315
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -18506,11 +19338,11 @@ def doModifyGlobalRoutes(args, parsed_globals):
|
|
|
18506
19338
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
18507
19339
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
18508
19340
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
18509
|
-
model = models.
|
|
19341
|
+
model = models.DescribeBandwidthPackageQuotaRequest()
|
|
18510
19342
|
model.from_json_string(json.dumps(args))
|
|
18511
19343
|
start_time = time.time()
|
|
18512
19344
|
while True:
|
|
18513
|
-
rsp = client.
|
|
19345
|
+
rsp = client.DescribeBandwidthPackageQuota(model)
|
|
18514
19346
|
result = rsp.to_json_string()
|
|
18515
19347
|
try:
|
|
18516
19348
|
json_obj = json.loads(result)
|
|
@@ -19309,7 +20141,7 @@ def doStopTrafficMirror(args, parsed_globals):
|
|
|
19309
20141
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
19310
20142
|
|
|
19311
20143
|
|
|
19312
|
-
def
|
|
20144
|
+
def doModifyIpv6AddressesAttribute(args, parsed_globals):
|
|
19313
20145
|
g_param = parse_global_arg(parsed_globals)
|
|
19314
20146
|
|
|
19315
20147
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -19338,11 +20170,11 @@ def doDisableVpnGatewaySslClientCert(args, parsed_globals):
|
|
|
19338
20170
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
19339
20171
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
19340
20172
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
19341
|
-
model = models.
|
|
20173
|
+
model = models.ModifyIpv6AddressesAttributeRequest()
|
|
19342
20174
|
model.from_json_string(json.dumps(args))
|
|
19343
20175
|
start_time = time.time()
|
|
19344
20176
|
while True:
|
|
19345
|
-
rsp = client.
|
|
20177
|
+
rsp = client.ModifyIpv6AddressesAttribute(model)
|
|
19346
20178
|
result = rsp.to_json_string()
|
|
19347
20179
|
try:
|
|
19348
20180
|
json_obj = json.loads(result)
|
|
@@ -19829,6 +20661,58 @@ def doHaVipAssociateAddressIp(args, parsed_globals):
|
|
|
19829
20661
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
19830
20662
|
|
|
19831
20663
|
|
|
20664
|
+
def doResetRoutePolicyAssociations(args, parsed_globals):
|
|
20665
|
+
g_param = parse_global_arg(parsed_globals)
|
|
20666
|
+
|
|
20667
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
20668
|
+
cred = credential.CVMRoleCredential()
|
|
20669
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
20670
|
+
cred = credential.STSAssumeRoleCredential(
|
|
20671
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
20672
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
20673
|
+
)
|
|
20674
|
+
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):
|
|
20675
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
20676
|
+
else:
|
|
20677
|
+
cred = credential.Credential(
|
|
20678
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
20679
|
+
)
|
|
20680
|
+
http_profile = HttpProfile(
|
|
20681
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
20682
|
+
reqMethod="POST",
|
|
20683
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
20684
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
20685
|
+
)
|
|
20686
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
20687
|
+
if g_param[OptionsDefine.Language]:
|
|
20688
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
20689
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
20690
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
20691
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
20692
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
20693
|
+
model = models.ResetRoutePolicyAssociationsRequest()
|
|
20694
|
+
model.from_json_string(json.dumps(args))
|
|
20695
|
+
start_time = time.time()
|
|
20696
|
+
while True:
|
|
20697
|
+
rsp = client.ResetRoutePolicyAssociations(model)
|
|
20698
|
+
result = rsp.to_json_string()
|
|
20699
|
+
try:
|
|
20700
|
+
json_obj = json.loads(result)
|
|
20701
|
+
except TypeError as e:
|
|
20702
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
20703
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
20704
|
+
break
|
|
20705
|
+
cur_time = time.time()
|
|
20706
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
20707
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
20708
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
20709
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
20710
|
+
else:
|
|
20711
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
20712
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
20713
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
20714
|
+
|
|
20715
|
+
|
|
19832
20716
|
def doCheckDefaultSubnet(args, parsed_globals):
|
|
19833
20717
|
g_param = parse_global_arg(parsed_globals)
|
|
19834
20718
|
|
|
@@ -21536,6 +22420,7 @@ ACTION_MAP = {
|
|
|
21536
22420
|
"LockCcnBandwidths": doLockCcnBandwidths,
|
|
21537
22421
|
"DeleteServiceTemplateGroup": doDeleteServiceTemplateGroup,
|
|
21538
22422
|
"AddBandwidthPackageResources": doAddBandwidthPackageResources,
|
|
22423
|
+
"ReplaceRoutePolicyEntries": doReplaceRoutePolicyEntries,
|
|
21539
22424
|
"AllocateAddresses": doAllocateAddresses,
|
|
21540
22425
|
"DeleteCdcLDCXList": doDeleteCdcLDCXList,
|
|
21541
22426
|
"DescribeIp6Addresses": doDescribeIp6Addresses,
|
|
@@ -21552,6 +22437,8 @@ ACTION_MAP = {
|
|
|
21552
22437
|
"DetachNetworkInterface": doDetachNetworkInterface,
|
|
21553
22438
|
"ModifyNetworkAclQuintupleEntries": doModifyNetworkAclQuintupleEntries,
|
|
21554
22439
|
"DeleteAssistantCidr": doDeleteAssistantCidr,
|
|
22440
|
+
"DescribeRoutePolicyEntries": doDescribeRoutePolicyEntries,
|
|
22441
|
+
"DeleteRoutePolicyAssociations": doDeleteRoutePolicyAssociations,
|
|
21555
22442
|
"DeleteNetworkInterface": doDeleteNetworkInterface,
|
|
21556
22443
|
"ModifyLocalGateway": doModifyLocalGateway,
|
|
21557
22444
|
"DescribeSubnetResourceDashboard": doDescribeSubnetResourceDashboard,
|
|
@@ -21577,7 +22464,9 @@ ACTION_MAP = {
|
|
|
21577
22464
|
"DescribeCrossBorderCompliance": doDescribeCrossBorderCompliance,
|
|
21578
22465
|
"CreateSecurityGroup": doCreateSecurityGroup,
|
|
21579
22466
|
"ModifyNetworkInterfaceAttribute": doModifyNetworkInterfaceAttribute,
|
|
22467
|
+
"ModifyRoutePolicyAttribute": doModifyRoutePolicyAttribute,
|
|
21580
22468
|
"ModifyVpcPeeringConnection": doModifyVpcPeeringConnection,
|
|
22469
|
+
"DeleteRoutePolicyEntries": doDeleteRoutePolicyEntries,
|
|
21581
22470
|
"DescribeVpcLimits": doDescribeVpcLimits,
|
|
21582
22471
|
"AddTemplateMember": doAddTemplateMember,
|
|
21583
22472
|
"DeleteTrafficMirror": doDeleteTrafficMirror,
|
|
@@ -21592,7 +22481,7 @@ ACTION_MAP = {
|
|
|
21592
22481
|
"ModifyPrivateNatGatewayTranslationAclRule": doModifyPrivateNatGatewayTranslationAclRule,
|
|
21593
22482
|
"ModifyPrivateIpAddressesAttribute": doModifyPrivateIpAddressesAttribute,
|
|
21594
22483
|
"ReplaceCcnRouteTableInputPolicys": doReplaceCcnRouteTableInputPolicys,
|
|
21595
|
-
"
|
|
22484
|
+
"ModifyNetworkInterfaceQos": doModifyNetworkInterfaceQos,
|
|
21596
22485
|
"DetachCcnInstances": doDetachCcnInstances,
|
|
21597
22486
|
"CreateReserveIpAddresses": doCreateReserveIpAddresses,
|
|
21598
22487
|
"DescribeCrossBorderCcnRegionBandwidthLimits": doDescribeCrossBorderCcnRegionBandwidthLimits,
|
|
@@ -21622,12 +22511,15 @@ ACTION_MAP = {
|
|
|
21622
22511
|
"DescribePrivateNatGatewayRegions": doDescribePrivateNatGatewayRegions,
|
|
21623
22512
|
"ModifyReserveIpAddress": doModifyReserveIpAddress,
|
|
21624
22513
|
"DisassociateNatGatewayAddress": doDisassociateNatGatewayAddress,
|
|
22514
|
+
"DescribeAddressTemplateInstances": doDescribeAddressTemplateInstances,
|
|
21625
22515
|
"DescribeGatewayFlowMonitorDetail": doDescribeGatewayFlowMonitorDetail,
|
|
21626
22516
|
"UnassignIpv6Addresses": doUnassignIpv6Addresses,
|
|
22517
|
+
"ResetRoutePolicyEntries": doResetRoutePolicyEntries,
|
|
21627
22518
|
"AssociateIPv6Address": doAssociateIPv6Address,
|
|
21628
22519
|
"DeleteAddressTemplateGroup": doDeleteAddressTemplateGroup,
|
|
21629
22520
|
"DescribeVpcTaskResult": doDescribeVpcTaskResult,
|
|
21630
|
-
"
|
|
22521
|
+
"CreateDirectConnectGateway": doCreateDirectConnectGateway,
|
|
22522
|
+
"ModifyGlobalRoutes": doModifyGlobalRoutes,
|
|
21631
22523
|
"AssociateNatGatewayAddress": doAssociateNatGatewayAddress,
|
|
21632
22524
|
"DeleteCcnRouteTables": doDeleteCcnRouteTables,
|
|
21633
22525
|
"ModifyPrivateNatGatewayTranslationNatRule": doModifyPrivateNatGatewayTranslationNatRule,
|
|
@@ -21643,6 +22535,7 @@ ACTION_MAP = {
|
|
|
21643
22535
|
"DeleteTemplateMember": doDeleteTemplateMember,
|
|
21644
22536
|
"AssignIpv6SubnetCidrBlock": doAssignIpv6SubnetCidrBlock,
|
|
21645
22537
|
"DescribeVpnGatewayCcnRoutes": doDescribeVpnGatewayCcnRoutes,
|
|
22538
|
+
"DeleteRoutePolicy": doDeleteRoutePolicy,
|
|
21646
22539
|
"AttachCcnInstances": doAttachCcnInstances,
|
|
21647
22540
|
"DeleteSubnet": doDeleteSubnet,
|
|
21648
22541
|
"AttachClassicLinkVpc": doAttachClassicLinkVpc,
|
|
@@ -21697,7 +22590,7 @@ ACTION_MAP = {
|
|
|
21697
22590
|
"DeleteSecurityGroup": doDeleteSecurityGroup,
|
|
21698
22591
|
"DescribeNatGatewaySourceIpTranslationNatRules": doDescribeNatGatewaySourceIpTranslationNatRules,
|
|
21699
22592
|
"ModifyNetDetect": doModifyNetDetect,
|
|
21700
|
-
"
|
|
22593
|
+
"ReplaceRoutePolicyAssociations": doReplaceRoutePolicyAssociations,
|
|
21701
22594
|
"CreateSnapshotPolicies": doCreateSnapshotPolicies,
|
|
21702
22595
|
"ResetAttachCcnInstances": doResetAttachCcnInstances,
|
|
21703
22596
|
"ModifyVpcEndPointServiceAttribute": doModifyVpcEndPointServiceAttribute,
|
|
@@ -21720,6 +22613,7 @@ ACTION_MAP = {
|
|
|
21720
22613
|
"CreateBandwidthPackage": doCreateBandwidthPackage,
|
|
21721
22614
|
"DeleteFlowLog": doDeleteFlowLog,
|
|
21722
22615
|
"ReplaceRouteTableAssociation": doReplaceRouteTableAssociation,
|
|
22616
|
+
"CreateRoutePolicyAssociations": doCreateRoutePolicyAssociations,
|
|
21723
22617
|
"DeleteVpnGatewaySslServer": doDeleteVpnGatewaySslServer,
|
|
21724
22618
|
"DescribeNetworkInterfaceLimit": doDescribeNetworkInterfaceLimit,
|
|
21725
22619
|
"EnableSnapshotPolicies": doEnableSnapshotPolicies,
|
|
@@ -21754,11 +22648,12 @@ ACTION_MAP = {
|
|
|
21754
22648
|
"DeleteNetworkAclEntries": doDeleteNetworkAclEntries,
|
|
21755
22649
|
"DescribeNatGatewayDirectConnectGatewayRoute": doDescribeNatGatewayDirectConnectGatewayRoute,
|
|
21756
22650
|
"ModifyCcnRouteTables": doModifyCcnRouteTables,
|
|
21757
|
-
"
|
|
22651
|
+
"ModifyAddressesRenewFlag": doModifyAddressesRenewFlag,
|
|
21758
22652
|
"ModifyHighPriorityRouteECMPAlgorithm": doModifyHighPriorityRouteECMPAlgorithm,
|
|
21759
22653
|
"DeleteNatGatewaySourceIpTranslationNatRule": doDeleteNatGatewaySourceIpTranslationNatRule,
|
|
21760
22654
|
"DisassociateIPv6Address": doDisassociateIPv6Address,
|
|
21761
22655
|
"ModifyNatGatewaySourceIpTranslationNatRule": doModifyNatGatewaySourceIpTranslationNatRule,
|
|
22656
|
+
"DescribeServiceTemplateGroupInstances": doDescribeServiceTemplateGroupInstances,
|
|
21762
22657
|
"UnassignIpv6SubnetCidrBlock": doUnassignIpv6SubnetCidrBlock,
|
|
21763
22658
|
"DisableRoutes": doDisableRoutes,
|
|
21764
22659
|
"EnableVpnGatewaySslClientCert": doEnableVpnGatewaySslClientCert,
|
|
@@ -21775,9 +22670,11 @@ ACTION_MAP = {
|
|
|
21775
22670
|
"ModifySubnetAttribute": doModifySubnetAttribute,
|
|
21776
22671
|
"DescribeSgSnapshotFileContent": doDescribeSgSnapshotFileContent,
|
|
21777
22672
|
"DescribeNetworkInterfaces": doDescribeNetworkInterfaces,
|
|
22673
|
+
"CreateRoutePolicy": doCreateRoutePolicy,
|
|
21778
22674
|
"DisableCcnRoutes": doDisableCcnRoutes,
|
|
21779
22675
|
"DescribeCcnRouteTableBroadcastPolicys": doDescribeCcnRouteTableBroadcastPolicys,
|
|
21780
22676
|
"CreateAddressTemplateGroup": doCreateAddressTemplateGroup,
|
|
22677
|
+
"DescribeServiceTemplateInstances": doDescribeServiceTemplateInstances,
|
|
21781
22678
|
"AssociateNetworkAclSubnets": doAssociateNetworkAclSubnets,
|
|
21782
22679
|
"DescribeVpnGateways": doDescribeVpnGateways,
|
|
21783
22680
|
"DownloadVpnGatewaySslClientCert": doDownloadVpnGatewaySslClientCert,
|
|
@@ -21785,6 +22682,7 @@ ACTION_MAP = {
|
|
|
21785
22682
|
"EnableFlowLogs": doEnableFlowLogs,
|
|
21786
22683
|
"CreateCdcLDCXList": doCreateCdcLDCXList,
|
|
21787
22684
|
"ModifyNatGatewayDestinationIpPortTranslationNatRule": doModifyNatGatewayDestinationIpPortTranslationNatRule,
|
|
22685
|
+
"DisableVpnGatewaySslClientCert": doDisableVpnGatewaySslClientCert,
|
|
21788
22686
|
"DescribeHaVips": doDescribeHaVips,
|
|
21789
22687
|
"CreateLocalGateway": doCreateLocalGateway,
|
|
21790
22688
|
"ResetVpnGatewayInternetMaxBandwidth": doResetVpnGatewayInternetMaxBandwidth,
|
|
@@ -21792,6 +22690,7 @@ ACTION_MAP = {
|
|
|
21792
22690
|
"DescribePrivateNatGatewayTranslationNatRules": doDescribePrivateNatGatewayTranslationNatRules,
|
|
21793
22691
|
"DisassociateHaVipInstance": doDisassociateHaVipInstance,
|
|
21794
22692
|
"CreateHaVip": doCreateHaVip,
|
|
22693
|
+
"DescribeAddressTemplateGroupInstances": doDescribeAddressTemplateGroupInstances,
|
|
21795
22694
|
"DescribeTenantCcns": doDescribeTenantCcns,
|
|
21796
22695
|
"CreateHighPriorityRoutes": doCreateHighPriorityRoutes,
|
|
21797
22696
|
"LockCcns": doLockCcns,
|
|
@@ -21811,7 +22710,7 @@ ACTION_MAP = {
|
|
|
21811
22710
|
"DisassociateNetworkInterfaceSecurityGroups": doDisassociateNetworkInterfaceSecurityGroups,
|
|
21812
22711
|
"ResetRoutes": doResetRoutes,
|
|
21813
22712
|
"DescribeNetDetects": doDescribeNetDetects,
|
|
21814
|
-
"
|
|
22713
|
+
"ModifyCcnRegionBandwidthLimitsType": doModifyCcnRegionBandwidthLimitsType,
|
|
21815
22714
|
"DescribeCcnRouteTableInputPolicys": doDescribeCcnRouteTableInputPolicys,
|
|
21816
22715
|
"CloneSecurityGroup": doCloneSecurityGroup,
|
|
21817
22716
|
"DeleteSnapshotPolicies": doDeleteSnapshotPolicies,
|
|
@@ -21839,6 +22738,7 @@ ACTION_MAP = {
|
|
|
21839
22738
|
"CreateVpc": doCreateVpc,
|
|
21840
22739
|
"CheckAssistantCidr": doCheckAssistantCidr,
|
|
21841
22740
|
"ModifyNetworkAclAttribute": doModifyNetworkAclAttribute,
|
|
22741
|
+
"DescribeSecurityGroupExpandedPolicies": doDescribeSecurityGroupExpandedPolicies,
|
|
21842
22742
|
"DisableSnapshotPolicies": doDisableSnapshotPolicies,
|
|
21843
22743
|
"DeletePrivateNatGatewayTranslationNatRule": doDeletePrivateNatGatewayTranslationNatRule,
|
|
21844
22744
|
"DescribeDhcpIps": doDescribeDhcpIps,
|
|
@@ -21849,6 +22749,7 @@ ACTION_MAP = {
|
|
|
21849
22749
|
"DescribeDirectConnectGatewayCcnRoutes": doDescribeDirectConnectGatewayCcnRoutes,
|
|
21850
22750
|
"CreateNetworkAclEntries": doCreateNetworkAclEntries,
|
|
21851
22751
|
"DeleteBandwidthPackage": doDeleteBandwidthPackage,
|
|
22752
|
+
"CreateRoutePolicyEntries": doCreateRoutePolicyEntries,
|
|
21852
22753
|
"DeleteIp6Translators": doDeleteIp6Translators,
|
|
21853
22754
|
"DescribeRoutes": doDescribeRoutes,
|
|
21854
22755
|
"DeleteVpnGatewayRoutes": doDeleteVpnGatewayRoutes,
|
|
@@ -21858,8 +22759,7 @@ ACTION_MAP = {
|
|
|
21858
22759
|
"DescribeSecurityGroupReferences": doDescribeSecurityGroupReferences,
|
|
21859
22760
|
"DeleteNatGateway": doDeleteNatGateway,
|
|
21860
22761
|
"DescribeRouteList": doDescribeRouteList,
|
|
21861
|
-
"
|
|
21862
|
-
"ModifyGlobalRoutes": doModifyGlobalRoutes,
|
|
22762
|
+
"DescribeBandwidthPackageQuota": doDescribeBandwidthPackageQuota,
|
|
21863
22763
|
"ModifyHighPriorityRouteTableAttribute": doModifyHighPriorityRouteTableAttribute,
|
|
21864
22764
|
"ReleaseIPv6Addresses": doReleaseIPv6Addresses,
|
|
21865
22765
|
"DeleteReserveIpAddresses": doDeleteReserveIpAddresses,
|
|
@@ -21875,7 +22775,7 @@ ACTION_MAP = {
|
|
|
21875
22775
|
"DescribeSecurityGroupLimits": doDescribeSecurityGroupLimits,
|
|
21876
22776
|
"DescribeCdcUsedIdcVlan": doDescribeCdcUsedIdcVlan,
|
|
21877
22777
|
"StopTrafficMirror": doStopTrafficMirror,
|
|
21878
|
-
"
|
|
22778
|
+
"ModifyIpv6AddressesAttribute": doModifyIpv6AddressesAttribute,
|
|
21879
22779
|
"DescribeDirectConnectGateways": doDescribeDirectConnectGateways,
|
|
21880
22780
|
"RenewVpnGateway": doRenewVpnGateway,
|
|
21881
22781
|
"MigratePrivateIpAddress": doMigratePrivateIpAddress,
|
|
@@ -21885,6 +22785,7 @@ ACTION_MAP = {
|
|
|
21885
22785
|
"DescribeBandwidthPackageBillUsage": doDescribeBandwidthPackageBillUsage,
|
|
21886
22786
|
"UnlockCcns": doUnlockCcns,
|
|
21887
22787
|
"HaVipAssociateAddressIp": doHaVipAssociateAddressIp,
|
|
22788
|
+
"ResetRoutePolicyAssociations": doResetRoutePolicyAssociations,
|
|
21888
22789
|
"CheckDefaultSubnet": doCheckDefaultSubnet,
|
|
21889
22790
|
"AssociateNetworkInterfaceSecurityGroups": doAssociateNetworkInterfaceSecurityGroups,
|
|
21890
22791
|
"DescribeAddressQuota": doDescribeAddressQuota,
|