tccli-intl-en 3.0.1272.1__py2.py3-none-any.whl → 3.0.1274.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/vpc/v20170312/api.json +826 -5
- tccli/services/vpc/v20170312/examples.json +96 -0
- tccli/services/vpc/vpc_client.py +714 -78
- {tccli_intl_en-3.0.1272.1.dist-info → tccli_intl_en-3.0.1274.1.dist-info}/METADATA +2 -2
- {tccli_intl_en-3.0.1272.1.dist-info → tccli_intl_en-3.0.1274.1.dist-info}/RECORD +10 -10
- {tccli_intl_en-3.0.1272.1.dist-info → tccli_intl_en-3.0.1274.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1272.1.dist-info → tccli_intl_en-3.0.1274.1.dist-info}/WHEEL +0 -0
- {tccli_intl_en-3.0.1272.1.dist-info → tccli_intl_en-3.0.1274.1.dist-info}/entry_points.txt +0 -0
- {tccli_intl_en-3.0.1272.1.dist-info → tccli_intl_en-3.0.1274.1.dist-info}/top_level.txt +0 -0
tccli/services/vpc/vpc_client.py
CHANGED
|
@@ -1005,6 +1005,58 @@ def doModifyFlowLogAttribute(args, parsed_globals):
|
|
|
1005
1005
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1006
1006
|
|
|
1007
1007
|
|
|
1008
|
+
def doCreateRoutePolicyAssociations(args, parsed_globals):
|
|
1009
|
+
g_param = parse_global_arg(parsed_globals)
|
|
1010
|
+
|
|
1011
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
1012
|
+
cred = credential.CVMRoleCredential()
|
|
1013
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
1014
|
+
cred = credential.STSAssumeRoleCredential(
|
|
1015
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1016
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1017
|
+
)
|
|
1018
|
+
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):
|
|
1019
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1020
|
+
else:
|
|
1021
|
+
cred = credential.Credential(
|
|
1022
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
1023
|
+
)
|
|
1024
|
+
http_profile = HttpProfile(
|
|
1025
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
1026
|
+
reqMethod="POST",
|
|
1027
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1028
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1029
|
+
)
|
|
1030
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
1031
|
+
if g_param[OptionsDefine.Language]:
|
|
1032
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
1033
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1034
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1035
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
1036
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1037
|
+
model = models.CreateRoutePolicyAssociationsRequest()
|
|
1038
|
+
model.from_json_string(json.dumps(args))
|
|
1039
|
+
start_time = time.time()
|
|
1040
|
+
while True:
|
|
1041
|
+
rsp = client.CreateRoutePolicyAssociations(model)
|
|
1042
|
+
result = rsp.to_json_string()
|
|
1043
|
+
try:
|
|
1044
|
+
json_obj = json.loads(result)
|
|
1045
|
+
except TypeError as e:
|
|
1046
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
1047
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
1048
|
+
break
|
|
1049
|
+
cur_time = time.time()
|
|
1050
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
1051
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
1052
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
1053
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
1054
|
+
else:
|
|
1055
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
1056
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
1057
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1058
|
+
|
|
1059
|
+
|
|
1008
1060
|
def doDisassociateNetworkInterfaceSecurityGroups(args, parsed_globals):
|
|
1009
1061
|
g_param = parse_global_arg(parsed_globals)
|
|
1010
1062
|
|
|
@@ -1473,6 +1525,58 @@ def doDescribeNetDetects(args, parsed_globals):
|
|
|
1473
1525
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1474
1526
|
|
|
1475
1527
|
|
|
1528
|
+
def doDescribeVpnGateways(args, parsed_globals):
|
|
1529
|
+
g_param = parse_global_arg(parsed_globals)
|
|
1530
|
+
|
|
1531
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
1532
|
+
cred = credential.CVMRoleCredential()
|
|
1533
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
1534
|
+
cred = credential.STSAssumeRoleCredential(
|
|
1535
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1536
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1537
|
+
)
|
|
1538
|
+
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):
|
|
1539
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1540
|
+
else:
|
|
1541
|
+
cred = credential.Credential(
|
|
1542
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
1543
|
+
)
|
|
1544
|
+
http_profile = HttpProfile(
|
|
1545
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
1546
|
+
reqMethod="POST",
|
|
1547
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1548
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1549
|
+
)
|
|
1550
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
1551
|
+
if g_param[OptionsDefine.Language]:
|
|
1552
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
1553
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1554
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1555
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
1556
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1557
|
+
model = models.DescribeVpnGatewaysRequest()
|
|
1558
|
+
model.from_json_string(json.dumps(args))
|
|
1559
|
+
start_time = time.time()
|
|
1560
|
+
while True:
|
|
1561
|
+
rsp = client.DescribeVpnGateways(model)
|
|
1562
|
+
result = rsp.to_json_string()
|
|
1563
|
+
try:
|
|
1564
|
+
json_obj = json.loads(result)
|
|
1565
|
+
except TypeError as e:
|
|
1566
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
1567
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
1568
|
+
break
|
|
1569
|
+
cur_time = time.time()
|
|
1570
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
1571
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
1572
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
1573
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
1574
|
+
else:
|
|
1575
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
1576
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
1577
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1578
|
+
|
|
1579
|
+
|
|
1476
1580
|
def doModifyNetworkAclQuintupleEntries(args, parsed_globals):
|
|
1477
1581
|
g_param = parse_global_arg(parsed_globals)
|
|
1478
1582
|
|
|
@@ -1629,7 +1733,7 @@ def doDescribeGatewayFlowMonitorDetail(args, parsed_globals):
|
|
|
1629
1733
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1630
1734
|
|
|
1631
1735
|
|
|
1632
|
-
def
|
|
1736
|
+
def doInquiryPriceRenewVpnGateway(args, parsed_globals):
|
|
1633
1737
|
g_param = parse_global_arg(parsed_globals)
|
|
1634
1738
|
|
|
1635
1739
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1658,11 +1762,11 @@ def doEnableGatewayFlowMonitor(args, parsed_globals):
|
|
|
1658
1762
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1659
1763
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1660
1764
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1661
|
-
model = models.
|
|
1765
|
+
model = models.InquiryPriceRenewVpnGatewayRequest()
|
|
1662
1766
|
model.from_json_string(json.dumps(args))
|
|
1663
1767
|
start_time = time.time()
|
|
1664
1768
|
while True:
|
|
1665
|
-
rsp = client.
|
|
1769
|
+
rsp = client.InquiryPriceRenewVpnGateway(model)
|
|
1666
1770
|
result = rsp.to_json_string()
|
|
1667
1771
|
try:
|
|
1668
1772
|
json_obj = json.loads(result)
|
|
@@ -2253,6 +2357,58 @@ def doDeleteLocalGateway(args, parsed_globals):
|
|
|
2253
2357
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2254
2358
|
|
|
2255
2359
|
|
|
2360
|
+
def doCreateDirectConnectGateway(args, parsed_globals):
|
|
2361
|
+
g_param = parse_global_arg(parsed_globals)
|
|
2362
|
+
|
|
2363
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
2364
|
+
cred = credential.CVMRoleCredential()
|
|
2365
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
2366
|
+
cred = credential.STSAssumeRoleCredential(
|
|
2367
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2368
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2369
|
+
)
|
|
2370
|
+
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):
|
|
2371
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2372
|
+
else:
|
|
2373
|
+
cred = credential.Credential(
|
|
2374
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
2375
|
+
)
|
|
2376
|
+
http_profile = HttpProfile(
|
|
2377
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
2378
|
+
reqMethod="POST",
|
|
2379
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2380
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2381
|
+
)
|
|
2382
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
2383
|
+
if g_param[OptionsDefine.Language]:
|
|
2384
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
2385
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2386
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2387
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
2388
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2389
|
+
model = models.CreateDirectConnectGatewayRequest()
|
|
2390
|
+
model.from_json_string(json.dumps(args))
|
|
2391
|
+
start_time = time.time()
|
|
2392
|
+
while True:
|
|
2393
|
+
rsp = client.CreateDirectConnectGateway(model)
|
|
2394
|
+
result = rsp.to_json_string()
|
|
2395
|
+
try:
|
|
2396
|
+
json_obj = json.loads(result)
|
|
2397
|
+
except TypeError as e:
|
|
2398
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
2399
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
2400
|
+
break
|
|
2401
|
+
cur_time = time.time()
|
|
2402
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
2403
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
2404
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
2405
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
2406
|
+
else:
|
|
2407
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
2408
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
2409
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2410
|
+
|
|
2411
|
+
|
|
2256
2412
|
def doDescribeSecurityGroupPolicies(args, parsed_globals):
|
|
2257
2413
|
g_param = parse_global_arg(parsed_globals)
|
|
2258
2414
|
|
|
@@ -2721,7 +2877,7 @@ def doDisassociateVpcEndPointSecurityGroups(args, parsed_globals):
|
|
|
2721
2877
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2722
2878
|
|
|
2723
2879
|
|
|
2724
|
-
def
|
|
2880
|
+
def doCreateDirectConnectGatewayCcnRoutes(args, parsed_globals):
|
|
2725
2881
|
g_param = parse_global_arg(parsed_globals)
|
|
2726
2882
|
|
|
2727
2883
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2750,11 +2906,11 @@ def doDeleteRouteTable(args, parsed_globals):
|
|
|
2750
2906
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2751
2907
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2752
2908
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2753
|
-
model = models.
|
|
2909
|
+
model = models.CreateDirectConnectGatewayCcnRoutesRequest()
|
|
2754
2910
|
model.from_json_string(json.dumps(args))
|
|
2755
2911
|
start_time = time.time()
|
|
2756
2912
|
while True:
|
|
2757
|
-
rsp = client.
|
|
2913
|
+
rsp = client.CreateDirectConnectGatewayCcnRoutes(model)
|
|
2758
2914
|
result = rsp.to_json_string()
|
|
2759
2915
|
try:
|
|
2760
2916
|
json_obj = json.loads(result)
|
|
@@ -3969,6 +4125,58 @@ def doAllocateIp6AddressesBandwidth(args, parsed_globals):
|
|
|
3969
4125
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3970
4126
|
|
|
3971
4127
|
|
|
4128
|
+
def doAttachNetworkInterface(args, parsed_globals):
|
|
4129
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4130
|
+
|
|
4131
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4132
|
+
cred = credential.CVMRoleCredential()
|
|
4133
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4134
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4135
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4136
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4137
|
+
)
|
|
4138
|
+
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):
|
|
4139
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4140
|
+
else:
|
|
4141
|
+
cred = credential.Credential(
|
|
4142
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4143
|
+
)
|
|
4144
|
+
http_profile = HttpProfile(
|
|
4145
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4146
|
+
reqMethod="POST",
|
|
4147
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4148
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4149
|
+
)
|
|
4150
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
4151
|
+
if g_param[OptionsDefine.Language]:
|
|
4152
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4153
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4154
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4155
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4156
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4157
|
+
model = models.AttachNetworkInterfaceRequest()
|
|
4158
|
+
model.from_json_string(json.dumps(args))
|
|
4159
|
+
start_time = time.time()
|
|
4160
|
+
while True:
|
|
4161
|
+
rsp = client.AttachNetworkInterface(model)
|
|
4162
|
+
result = rsp.to_json_string()
|
|
4163
|
+
try:
|
|
4164
|
+
json_obj = json.loads(result)
|
|
4165
|
+
except TypeError as e:
|
|
4166
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4167
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4168
|
+
break
|
|
4169
|
+
cur_time = time.time()
|
|
4170
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4171
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4172
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4173
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4174
|
+
else:
|
|
4175
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4176
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4177
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4178
|
+
|
|
4179
|
+
|
|
3972
4180
|
def doModifyAddressTemplateAttribute(args, parsed_globals):
|
|
3973
4181
|
g_param = parse_global_arg(parsed_globals)
|
|
3974
4182
|
|
|
@@ -4853,6 +5061,58 @@ def doDeleteNetworkAclQuintupleEntries(args, parsed_globals):
|
|
|
4853
5061
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4854
5062
|
|
|
4855
5063
|
|
|
5064
|
+
def doDeleteRoutePolicy(args, parsed_globals):
|
|
5065
|
+
g_param = parse_global_arg(parsed_globals)
|
|
5066
|
+
|
|
5067
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
5068
|
+
cred = credential.CVMRoleCredential()
|
|
5069
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
5070
|
+
cred = credential.STSAssumeRoleCredential(
|
|
5071
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5072
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5073
|
+
)
|
|
5074
|
+
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):
|
|
5075
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5076
|
+
else:
|
|
5077
|
+
cred = credential.Credential(
|
|
5078
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
5079
|
+
)
|
|
5080
|
+
http_profile = HttpProfile(
|
|
5081
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
5082
|
+
reqMethod="POST",
|
|
5083
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5084
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5085
|
+
)
|
|
5086
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
5087
|
+
if g_param[OptionsDefine.Language]:
|
|
5088
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
5089
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
5090
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
5091
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
5092
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
5093
|
+
model = models.DeleteRoutePolicyRequest()
|
|
5094
|
+
model.from_json_string(json.dumps(args))
|
|
5095
|
+
start_time = time.time()
|
|
5096
|
+
while True:
|
|
5097
|
+
rsp = client.DeleteRoutePolicy(model)
|
|
5098
|
+
result = rsp.to_json_string()
|
|
5099
|
+
try:
|
|
5100
|
+
json_obj = json.loads(result)
|
|
5101
|
+
except TypeError as e:
|
|
5102
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
5103
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
5104
|
+
break
|
|
5105
|
+
cur_time = time.time()
|
|
5106
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
5107
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
5108
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
5109
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
5110
|
+
else:
|
|
5111
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
5112
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
5113
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5114
|
+
|
|
5115
|
+
|
|
4856
5116
|
def doDescribeVpcIpv6Addresses(args, parsed_globals):
|
|
4857
5117
|
g_param = parse_global_arg(parsed_globals)
|
|
4858
5118
|
|
|
@@ -5477,7 +5737,7 @@ def doModifyTemplateMember(args, parsed_globals):
|
|
|
5477
5737
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5478
5738
|
|
|
5479
5739
|
|
|
5480
|
-
def
|
|
5740
|
+
def doEnableFlowLogs(args, parsed_globals):
|
|
5481
5741
|
g_param = parse_global_arg(parsed_globals)
|
|
5482
5742
|
|
|
5483
5743
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -5506,11 +5766,11 @@ def doDeleteReserveIpAddresses(args, parsed_globals):
|
|
|
5506
5766
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
5507
5767
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
5508
5768
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
5509
|
-
model = models.
|
|
5769
|
+
model = models.EnableFlowLogsRequest()
|
|
5510
5770
|
model.from_json_string(json.dumps(args))
|
|
5511
5771
|
start_time = time.time()
|
|
5512
5772
|
while True:
|
|
5513
|
-
rsp = client.
|
|
5773
|
+
rsp = client.EnableFlowLogs(model)
|
|
5514
5774
|
result = rsp.to_json_string()
|
|
5515
5775
|
try:
|
|
5516
5776
|
json_obj = json.loads(result)
|
|
@@ -5841,6 +6101,58 @@ def doDescribeNetDetectStates(args, parsed_globals):
|
|
|
5841
6101
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5842
6102
|
|
|
5843
6103
|
|
|
6104
|
+
def doCreateRoutePolicyEntries(args, parsed_globals):
|
|
6105
|
+
g_param = parse_global_arg(parsed_globals)
|
|
6106
|
+
|
|
6107
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
6108
|
+
cred = credential.CVMRoleCredential()
|
|
6109
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
6110
|
+
cred = credential.STSAssumeRoleCredential(
|
|
6111
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6112
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6113
|
+
)
|
|
6114
|
+
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):
|
|
6115
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6116
|
+
else:
|
|
6117
|
+
cred = credential.Credential(
|
|
6118
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
6119
|
+
)
|
|
6120
|
+
http_profile = HttpProfile(
|
|
6121
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
6122
|
+
reqMethod="POST",
|
|
6123
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6124
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6125
|
+
)
|
|
6126
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
6127
|
+
if g_param[OptionsDefine.Language]:
|
|
6128
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
6129
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
6130
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
6131
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
6132
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
6133
|
+
model = models.CreateRoutePolicyEntriesRequest()
|
|
6134
|
+
model.from_json_string(json.dumps(args))
|
|
6135
|
+
start_time = time.time()
|
|
6136
|
+
while True:
|
|
6137
|
+
rsp = client.CreateRoutePolicyEntries(model)
|
|
6138
|
+
result = rsp.to_json_string()
|
|
6139
|
+
try:
|
|
6140
|
+
json_obj = json.loads(result)
|
|
6141
|
+
except TypeError as e:
|
|
6142
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
6143
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
6144
|
+
break
|
|
6145
|
+
cur_time = time.time()
|
|
6146
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
6147
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
6148
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
6149
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
6150
|
+
else:
|
|
6151
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
6152
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
6153
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6154
|
+
|
|
6155
|
+
|
|
5844
6156
|
def doDescribeCcns(args, parsed_globals):
|
|
5845
6157
|
g_param = parse_global_arg(parsed_globals)
|
|
5846
6158
|
|
|
@@ -6361,6 +6673,58 @@ def doDeleteVpnGatewayRoutes(args, parsed_globals):
|
|
|
6361
6673
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6362
6674
|
|
|
6363
6675
|
|
|
6676
|
+
def doDescribeRoutePolicyEntries(args, parsed_globals):
|
|
6677
|
+
g_param = parse_global_arg(parsed_globals)
|
|
6678
|
+
|
|
6679
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
6680
|
+
cred = credential.CVMRoleCredential()
|
|
6681
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
6682
|
+
cred = credential.STSAssumeRoleCredential(
|
|
6683
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6684
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6685
|
+
)
|
|
6686
|
+
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):
|
|
6687
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6688
|
+
else:
|
|
6689
|
+
cred = credential.Credential(
|
|
6690
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
6691
|
+
)
|
|
6692
|
+
http_profile = HttpProfile(
|
|
6693
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
6694
|
+
reqMethod="POST",
|
|
6695
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6696
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6697
|
+
)
|
|
6698
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
6699
|
+
if g_param[OptionsDefine.Language]:
|
|
6700
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
6701
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
6702
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
6703
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
6704
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
6705
|
+
model = models.DescribeRoutePolicyEntriesRequest()
|
|
6706
|
+
model.from_json_string(json.dumps(args))
|
|
6707
|
+
start_time = time.time()
|
|
6708
|
+
while True:
|
|
6709
|
+
rsp = client.DescribeRoutePolicyEntries(model)
|
|
6710
|
+
result = rsp.to_json_string()
|
|
6711
|
+
try:
|
|
6712
|
+
json_obj = json.loads(result)
|
|
6713
|
+
except TypeError as e:
|
|
6714
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
6715
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
6716
|
+
break
|
|
6717
|
+
cur_time = time.time()
|
|
6718
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
6719
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
6720
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
6721
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
6722
|
+
else:
|
|
6723
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
6724
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
6725
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6726
|
+
|
|
6727
|
+
|
|
6364
6728
|
def doDeleteNatGatewayDestinationIpPortTranslationNatRule(args, parsed_globals):
|
|
6365
6729
|
g_param = parse_global_arg(parsed_globals)
|
|
6366
6730
|
|
|
@@ -6413,7 +6777,7 @@ def doDeleteNatGatewayDestinationIpPortTranslationNatRule(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 doDeleteRoutePolicyAssociations(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,11 @@ def doModifyAddressesRenewFlag(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.DeleteRoutePolicyAssociationsRequest()
|
|
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.DeleteRoutePolicyAssociations(model)
|
|
6450
6814
|
result = rsp.to_json_string()
|
|
6451
6815
|
try:
|
|
6452
6816
|
json_obj = json.loads(result)
|
|
@@ -6829,7 +7193,7 @@ def doModifyNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
|
|
|
6829
7193
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6830
7194
|
|
|
6831
7195
|
|
|
6832
|
-
def
|
|
7196
|
+
def doEnableGatewayFlowMonitor(args, parsed_globals):
|
|
6833
7197
|
g_param = parse_global_arg(parsed_globals)
|
|
6834
7198
|
|
|
6835
7199
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -6858,11 +7222,11 @@ def doDescribeSecurityGroupReferences(args, parsed_globals):
|
|
|
6858
7222
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
6859
7223
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
6860
7224
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
6861
|
-
model = models.
|
|
7225
|
+
model = models.EnableGatewayFlowMonitorRequest()
|
|
6862
7226
|
model.from_json_string(json.dumps(args))
|
|
6863
7227
|
start_time = time.time()
|
|
6864
7228
|
while True:
|
|
6865
|
-
rsp = client.
|
|
7229
|
+
rsp = client.EnableGatewayFlowMonitor(model)
|
|
6866
7230
|
result = rsp.to_json_string()
|
|
6867
7231
|
try:
|
|
6868
7232
|
json_obj = json.loads(result)
|
|
@@ -7245,7 +7609,7 @@ def doReplaceRouteTableAssociation(args, parsed_globals):
|
|
|
7245
7609
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7246
7610
|
|
|
7247
7611
|
|
|
7248
|
-
def
|
|
7612
|
+
def doDescribeClassicLinkInstances(args, parsed_globals):
|
|
7249
7613
|
g_param = parse_global_arg(parsed_globals)
|
|
7250
7614
|
|
|
7251
7615
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -7274,11 +7638,11 @@ def doEnableFlowLogs(args, parsed_globals):
|
|
|
7274
7638
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7275
7639
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
7276
7640
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7277
|
-
model = models.
|
|
7641
|
+
model = models.DescribeClassicLinkInstancesRequest()
|
|
7278
7642
|
model.from_json_string(json.dumps(args))
|
|
7279
7643
|
start_time = time.time()
|
|
7280
7644
|
while True:
|
|
7281
|
-
rsp = client.
|
|
7645
|
+
rsp = client.DescribeClassicLinkInstances(model)
|
|
7282
7646
|
result = rsp.to_json_string()
|
|
7283
7647
|
try:
|
|
7284
7648
|
json_obj = json.loads(result)
|
|
@@ -7297,7 +7661,7 @@ def doEnableFlowLogs(args, parsed_globals):
|
|
|
7297
7661
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7298
7662
|
|
|
7299
7663
|
|
|
7300
|
-
def
|
|
7664
|
+
def doDeleteCcn(args, parsed_globals):
|
|
7301
7665
|
g_param = parse_global_arg(parsed_globals)
|
|
7302
7666
|
|
|
7303
7667
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -7326,11 +7690,11 @@ def doDescribeClassicLinkInstances(args, parsed_globals):
|
|
|
7326
7690
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7327
7691
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
7328
7692
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7329
|
-
model = models.
|
|
7693
|
+
model = models.DeleteCcnRequest()
|
|
7330
7694
|
model.from_json_string(json.dumps(args))
|
|
7331
7695
|
start_time = time.time()
|
|
7332
7696
|
while True:
|
|
7333
|
-
rsp = client.
|
|
7697
|
+
rsp = client.DeleteCcn(model)
|
|
7334
7698
|
result = rsp.to_json_string()
|
|
7335
7699
|
try:
|
|
7336
7700
|
json_obj = json.loads(result)
|
|
@@ -7349,7 +7713,7 @@ def doDescribeClassicLinkInstances(args, parsed_globals):
|
|
|
7349
7713
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7350
7714
|
|
|
7351
7715
|
|
|
7352
|
-
def
|
|
7716
|
+
def doUnassignPrivateIpAddresses(args, parsed_globals):
|
|
7353
7717
|
g_param = parse_global_arg(parsed_globals)
|
|
7354
7718
|
|
|
7355
7719
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -7378,11 +7742,11 @@ def doDeleteCcn(args, parsed_globals):
|
|
|
7378
7742
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7379
7743
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
7380
7744
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7381
|
-
model = models.
|
|
7745
|
+
model = models.UnassignPrivateIpAddressesRequest()
|
|
7382
7746
|
model.from_json_string(json.dumps(args))
|
|
7383
7747
|
start_time = time.time()
|
|
7384
7748
|
while True:
|
|
7385
|
-
rsp = client.
|
|
7749
|
+
rsp = client.UnassignPrivateIpAddresses(model)
|
|
7386
7750
|
result = rsp.to_json_string()
|
|
7387
7751
|
try:
|
|
7388
7752
|
json_obj = json.loads(result)
|
|
@@ -7401,7 +7765,7 @@ def doDeleteCcn(args, parsed_globals):
|
|
|
7401
7765
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7402
7766
|
|
|
7403
7767
|
|
|
7404
|
-
def
|
|
7768
|
+
def doModifyAddressTemplateGroupAttribute(args, parsed_globals):
|
|
7405
7769
|
g_param = parse_global_arg(parsed_globals)
|
|
7406
7770
|
|
|
7407
7771
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -7430,11 +7794,11 @@ def doUnassignPrivateIpAddresses(args, parsed_globals):
|
|
|
7430
7794
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7431
7795
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
7432
7796
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7433
|
-
model = models.
|
|
7797
|
+
model = models.ModifyAddressTemplateGroupAttributeRequest()
|
|
7434
7798
|
model.from_json_string(json.dumps(args))
|
|
7435
7799
|
start_time = time.time()
|
|
7436
7800
|
while True:
|
|
7437
|
-
rsp = client.
|
|
7801
|
+
rsp = client.ModifyAddressTemplateGroupAttribute(model)
|
|
7438
7802
|
result = rsp.to_json_string()
|
|
7439
7803
|
try:
|
|
7440
7804
|
json_obj = json.loads(result)
|
|
@@ -7453,7 +7817,7 @@ def doUnassignPrivateIpAddresses(args, parsed_globals):
|
|
|
7453
7817
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7454
7818
|
|
|
7455
7819
|
|
|
7456
|
-
def
|
|
7820
|
+
def doDescribeUsedIpAddress(args, parsed_globals):
|
|
7457
7821
|
g_param = parse_global_arg(parsed_globals)
|
|
7458
7822
|
|
|
7459
7823
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -7482,11 +7846,11 @@ def doModifyAddressTemplateGroupAttribute(args, parsed_globals):
|
|
|
7482
7846
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7483
7847
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
7484
7848
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7485
|
-
model = models.
|
|
7849
|
+
model = models.DescribeUsedIpAddressRequest()
|
|
7486
7850
|
model.from_json_string(json.dumps(args))
|
|
7487
7851
|
start_time = time.time()
|
|
7488
7852
|
while True:
|
|
7489
|
-
rsp = client.
|
|
7853
|
+
rsp = client.DescribeUsedIpAddress(model)
|
|
7490
7854
|
result = rsp.to_json_string()
|
|
7491
7855
|
try:
|
|
7492
7856
|
json_obj = json.loads(result)
|
|
@@ -7505,7 +7869,7 @@ def doModifyAddressTemplateGroupAttribute(args, parsed_globals):
|
|
|
7505
7869
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7506
7870
|
|
|
7507
7871
|
|
|
7508
|
-
def
|
|
7872
|
+
def doDescribeCcnRoutes(args, parsed_globals):
|
|
7509
7873
|
g_param = parse_global_arg(parsed_globals)
|
|
7510
7874
|
|
|
7511
7875
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -7534,11 +7898,11 @@ def doDescribeUsedIpAddress(args, parsed_globals):
|
|
|
7534
7898
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7535
7899
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
7536
7900
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7537
|
-
model = models.
|
|
7901
|
+
model = models.DescribeCcnRoutesRequest()
|
|
7538
7902
|
model.from_json_string(json.dumps(args))
|
|
7539
7903
|
start_time = time.time()
|
|
7540
7904
|
while True:
|
|
7541
|
-
rsp = client.
|
|
7905
|
+
rsp = client.DescribeCcnRoutes(model)
|
|
7542
7906
|
result = rsp.to_json_string()
|
|
7543
7907
|
try:
|
|
7544
7908
|
json_obj = json.loads(result)
|
|
@@ -7557,7 +7921,7 @@ def doDescribeUsedIpAddress(args, parsed_globals):
|
|
|
7557
7921
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7558
7922
|
|
|
7559
7923
|
|
|
7560
|
-
def
|
|
7924
|
+
def doCreateVpcEndPointService(args, parsed_globals):
|
|
7561
7925
|
g_param = parse_global_arg(parsed_globals)
|
|
7562
7926
|
|
|
7563
7927
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -7586,11 +7950,11 @@ def doDescribeCcnRoutes(args, parsed_globals):
|
|
|
7586
7950
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7587
7951
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
7588
7952
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7589
|
-
model = models.
|
|
7953
|
+
model = models.CreateVpcEndPointServiceRequest()
|
|
7590
7954
|
model.from_json_string(json.dumps(args))
|
|
7591
7955
|
start_time = time.time()
|
|
7592
7956
|
while True:
|
|
7593
|
-
rsp = client.
|
|
7957
|
+
rsp = client.CreateVpcEndPointService(model)
|
|
7594
7958
|
result = rsp.to_json_string()
|
|
7595
7959
|
try:
|
|
7596
7960
|
json_obj = json.loads(result)
|
|
@@ -7609,7 +7973,7 @@ def doDescribeCcnRoutes(args, parsed_globals):
|
|
|
7609
7973
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7610
7974
|
|
|
7611
7975
|
|
|
7612
|
-
def
|
|
7976
|
+
def doGenerateVpnConnectionDefaultHealthCheckIp(args, parsed_globals):
|
|
7613
7977
|
g_param = parse_global_arg(parsed_globals)
|
|
7614
7978
|
|
|
7615
7979
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -7638,11 +8002,11 @@ def doCreateVpcEndPointService(args, parsed_globals):
|
|
|
7638
8002
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7639
8003
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
7640
8004
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7641
|
-
model = models.
|
|
8005
|
+
model = models.GenerateVpnConnectionDefaultHealthCheckIpRequest()
|
|
7642
8006
|
model.from_json_string(json.dumps(args))
|
|
7643
8007
|
start_time = time.time()
|
|
7644
8008
|
while True:
|
|
7645
|
-
rsp = client.
|
|
8009
|
+
rsp = client.GenerateVpnConnectionDefaultHealthCheckIp(model)
|
|
7646
8010
|
result = rsp.to_json_string()
|
|
7647
8011
|
try:
|
|
7648
8012
|
json_obj = json.loads(result)
|
|
@@ -7661,7 +8025,7 @@ def doCreateVpcEndPointService(args, parsed_globals):
|
|
|
7661
8025
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7662
8026
|
|
|
7663
8027
|
|
|
7664
|
-
def
|
|
8028
|
+
def doResetRoutePolicyEntries(args, parsed_globals):
|
|
7665
8029
|
g_param = parse_global_arg(parsed_globals)
|
|
7666
8030
|
|
|
7667
8031
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -7690,11 +8054,11 @@ def doGenerateVpnConnectionDefaultHealthCheckIp(args, parsed_globals):
|
|
|
7690
8054
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7691
8055
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
7692
8056
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7693
|
-
model = models.
|
|
8057
|
+
model = models.ResetRoutePolicyEntriesRequest()
|
|
7694
8058
|
model.from_json_string(json.dumps(args))
|
|
7695
8059
|
start_time = time.time()
|
|
7696
8060
|
while True:
|
|
7697
|
-
rsp = client.
|
|
8061
|
+
rsp = client.ResetRoutePolicyEntries(model)
|
|
7698
8062
|
result = rsp.to_json_string()
|
|
7699
8063
|
try:
|
|
7700
8064
|
json_obj = json.loads(result)
|
|
@@ -7921,7 +8285,7 @@ def doCreateDefaultVpc(args, parsed_globals):
|
|
|
7921
8285
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7922
8286
|
|
|
7923
8287
|
|
|
7924
|
-
def
|
|
8288
|
+
def doDescribeBandwidthPackageQuota(args, parsed_globals):
|
|
7925
8289
|
g_param = parse_global_arg(parsed_globals)
|
|
7926
8290
|
|
|
7927
8291
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -7950,11 +8314,11 @@ def doAttachNetworkInterface(args, parsed_globals):
|
|
|
7950
8314
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7951
8315
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
7952
8316
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7953
|
-
model = models.
|
|
8317
|
+
model = models.DescribeBandwidthPackageQuotaRequest()
|
|
7954
8318
|
model.from_json_string(json.dumps(args))
|
|
7955
8319
|
start_time = time.time()
|
|
7956
8320
|
while True:
|
|
7957
|
-
rsp = client.
|
|
8321
|
+
rsp = client.DescribeBandwidthPackageQuota(model)
|
|
7958
8322
|
result = rsp.to_json_string()
|
|
7959
8323
|
try:
|
|
7960
8324
|
json_obj = json.loads(result)
|
|
@@ -8210,11 +8574,63 @@ def doDeleteNetDetect(args, parsed_globals):
|
|
|
8210
8574
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
8211
8575
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
8212
8576
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
8213
|
-
model = models.DeleteNetDetectRequest()
|
|
8577
|
+
model = models.DeleteNetDetectRequest()
|
|
8578
|
+
model.from_json_string(json.dumps(args))
|
|
8579
|
+
start_time = time.time()
|
|
8580
|
+
while True:
|
|
8581
|
+
rsp = client.DeleteNetDetect(model)
|
|
8582
|
+
result = rsp.to_json_string()
|
|
8583
|
+
try:
|
|
8584
|
+
json_obj = json.loads(result)
|
|
8585
|
+
except TypeError as e:
|
|
8586
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
8587
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
8588
|
+
break
|
|
8589
|
+
cur_time = time.time()
|
|
8590
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
8591
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
8592
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
8593
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
8594
|
+
else:
|
|
8595
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
8596
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
8597
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
8598
|
+
|
|
8599
|
+
|
|
8600
|
+
def doDeleteReserveIpAddresses(args, parsed_globals):
|
|
8601
|
+
g_param = parse_global_arg(parsed_globals)
|
|
8602
|
+
|
|
8603
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
8604
|
+
cred = credential.CVMRoleCredential()
|
|
8605
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
8606
|
+
cred = credential.STSAssumeRoleCredential(
|
|
8607
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8608
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8609
|
+
)
|
|
8610
|
+
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):
|
|
8611
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8612
|
+
else:
|
|
8613
|
+
cred = credential.Credential(
|
|
8614
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
8615
|
+
)
|
|
8616
|
+
http_profile = HttpProfile(
|
|
8617
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
8618
|
+
reqMethod="POST",
|
|
8619
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8620
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8621
|
+
)
|
|
8622
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
8623
|
+
if g_param[OptionsDefine.Language]:
|
|
8624
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
8625
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
8626
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
8627
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
8628
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
8629
|
+
model = models.DeleteReserveIpAddressesRequest()
|
|
8214
8630
|
model.from_json_string(json.dumps(args))
|
|
8215
8631
|
start_time = time.time()
|
|
8216
8632
|
while True:
|
|
8217
|
-
rsp = client.
|
|
8633
|
+
rsp = client.DeleteReserveIpAddresses(model)
|
|
8218
8634
|
result = rsp.to_json_string()
|
|
8219
8635
|
try:
|
|
8220
8636
|
json_obj = json.loads(result)
|
|
@@ -9013,7 +9429,7 @@ def doDescribeNetworkInterfaces(args, parsed_globals):
|
|
|
9013
9429
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9014
9430
|
|
|
9015
9431
|
|
|
9016
|
-
def
|
|
9432
|
+
def doCreateRoutePolicy(args, parsed_globals):
|
|
9017
9433
|
g_param = parse_global_arg(parsed_globals)
|
|
9018
9434
|
|
|
9019
9435
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -9042,11 +9458,11 @@ def doInquiryPriceRenewVpnGateway(args, parsed_globals):
|
|
|
9042
9458
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
9043
9459
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
9044
9460
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
9045
|
-
model = models.
|
|
9461
|
+
model = models.CreateRoutePolicyRequest()
|
|
9046
9462
|
model.from_json_string(json.dumps(args))
|
|
9047
9463
|
start_time = time.time()
|
|
9048
9464
|
while True:
|
|
9049
|
-
rsp = client.
|
|
9465
|
+
rsp = client.CreateRoutePolicy(model)
|
|
9050
9466
|
result = rsp.to_json_string()
|
|
9051
9467
|
try:
|
|
9052
9468
|
json_obj = json.loads(result)
|
|
@@ -9169,6 +9585,58 @@ def doDescribeVpcEndPointServiceWhiteList(args, parsed_globals):
|
|
|
9169
9585
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9170
9586
|
|
|
9171
9587
|
|
|
9588
|
+
def doDescribeSecurityGroupReferences(args, parsed_globals):
|
|
9589
|
+
g_param = parse_global_arg(parsed_globals)
|
|
9590
|
+
|
|
9591
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
9592
|
+
cred = credential.CVMRoleCredential()
|
|
9593
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
9594
|
+
cred = credential.STSAssumeRoleCredential(
|
|
9595
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
9596
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
9597
|
+
)
|
|
9598
|
+
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):
|
|
9599
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
9600
|
+
else:
|
|
9601
|
+
cred = credential.Credential(
|
|
9602
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
9603
|
+
)
|
|
9604
|
+
http_profile = HttpProfile(
|
|
9605
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
9606
|
+
reqMethod="POST",
|
|
9607
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
9608
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
9609
|
+
)
|
|
9610
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
9611
|
+
if g_param[OptionsDefine.Language]:
|
|
9612
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
9613
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
9614
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
9615
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
9616
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
9617
|
+
model = models.DescribeSecurityGroupReferencesRequest()
|
|
9618
|
+
model.from_json_string(json.dumps(args))
|
|
9619
|
+
start_time = time.time()
|
|
9620
|
+
while True:
|
|
9621
|
+
rsp = client.DescribeSecurityGroupReferences(model)
|
|
9622
|
+
result = rsp.to_json_string()
|
|
9623
|
+
try:
|
|
9624
|
+
json_obj = json.loads(result)
|
|
9625
|
+
except TypeError as e:
|
|
9626
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
9627
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
9628
|
+
break
|
|
9629
|
+
cur_time = time.time()
|
|
9630
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
9631
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
9632
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
9633
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
9634
|
+
else:
|
|
9635
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
9636
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
9637
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9638
|
+
|
|
9639
|
+
|
|
9172
9640
|
def doModifyBandwidthPackageBandwidth(args, parsed_globals):
|
|
9173
9641
|
g_param = parse_global_arg(parsed_globals)
|
|
9174
9642
|
|
|
@@ -9325,6 +9793,58 @@ def doCreateCustomerGateway(args, parsed_globals):
|
|
|
9325
9793
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9326
9794
|
|
|
9327
9795
|
|
|
9796
|
+
def doCreateLocalGateway(args, parsed_globals):
|
|
9797
|
+
g_param = parse_global_arg(parsed_globals)
|
|
9798
|
+
|
|
9799
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
9800
|
+
cred = credential.CVMRoleCredential()
|
|
9801
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
9802
|
+
cred = credential.STSAssumeRoleCredential(
|
|
9803
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
9804
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
9805
|
+
)
|
|
9806
|
+
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):
|
|
9807
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
9808
|
+
else:
|
|
9809
|
+
cred = credential.Credential(
|
|
9810
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
9811
|
+
)
|
|
9812
|
+
http_profile = HttpProfile(
|
|
9813
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
9814
|
+
reqMethod="POST",
|
|
9815
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
9816
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
9817
|
+
)
|
|
9818
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
9819
|
+
if g_param[OptionsDefine.Language]:
|
|
9820
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
9821
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
9822
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
9823
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
9824
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
9825
|
+
model = models.CreateLocalGatewayRequest()
|
|
9826
|
+
model.from_json_string(json.dumps(args))
|
|
9827
|
+
start_time = time.time()
|
|
9828
|
+
while True:
|
|
9829
|
+
rsp = client.CreateLocalGateway(model)
|
|
9830
|
+
result = rsp.to_json_string()
|
|
9831
|
+
try:
|
|
9832
|
+
json_obj = json.loads(result)
|
|
9833
|
+
except TypeError as e:
|
|
9834
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
9835
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
9836
|
+
break
|
|
9837
|
+
cur_time = time.time()
|
|
9838
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
9839
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
9840
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
9841
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
9842
|
+
else:
|
|
9843
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
9844
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
9845
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9846
|
+
|
|
9847
|
+
|
|
9328
9848
|
def doDescribeCrossBorderCompliance(args, parsed_globals):
|
|
9329
9849
|
g_param = parse_global_arg(parsed_globals)
|
|
9330
9850
|
|
|
@@ -9585,7 +10105,7 @@ def doModifyNetworkInterfaceAttribute(args, parsed_globals):
|
|
|
9585
10105
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9586
10106
|
|
|
9587
10107
|
|
|
9588
|
-
def
|
|
10108
|
+
def doModifyRoutePolicyAttribute(args, parsed_globals):
|
|
9589
10109
|
g_param = parse_global_arg(parsed_globals)
|
|
9590
10110
|
|
|
9591
10111
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -9614,11 +10134,11 @@ def doDescribeVpnGateways(args, parsed_globals):
|
|
|
9614
10134
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
9615
10135
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
9616
10136
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
9617
|
-
model = models.
|
|
10137
|
+
model = models.ModifyRoutePolicyAttributeRequest()
|
|
9618
10138
|
model.from_json_string(json.dumps(args))
|
|
9619
10139
|
start_time = time.time()
|
|
9620
10140
|
while True:
|
|
9621
|
-
rsp = client.
|
|
10141
|
+
rsp = client.ModifyRoutePolicyAttribute(model)
|
|
9622
10142
|
result = rsp.to_json_string()
|
|
9623
10143
|
try:
|
|
9624
10144
|
json_obj = json.loads(result)
|
|
@@ -9741,7 +10261,7 @@ def doDescribeVpcInstances(args, parsed_globals):
|
|
|
9741
10261
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9742
10262
|
|
|
9743
10263
|
|
|
9744
|
-
def
|
|
10264
|
+
def doDeleteRouteTable(args, parsed_globals):
|
|
9745
10265
|
g_param = parse_global_arg(parsed_globals)
|
|
9746
10266
|
|
|
9747
10267
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -9770,11 +10290,11 @@ def doCreateDirectConnectGatewayCcnRoutes(args, parsed_globals):
|
|
|
9770
10290
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
9771
10291
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
9772
10292
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
9773
|
-
model = models.
|
|
10293
|
+
model = models.DeleteRouteTableRequest()
|
|
9774
10294
|
model.from_json_string(json.dumps(args))
|
|
9775
10295
|
start_time = time.time()
|
|
9776
10296
|
while True:
|
|
9777
|
-
rsp = client.
|
|
10297
|
+
rsp = client.DeleteRouteTable(model)
|
|
9778
10298
|
result = rsp.to_json_string()
|
|
9779
10299
|
try:
|
|
9780
10300
|
json_obj = json.loads(result)
|
|
@@ -10573,6 +11093,110 @@ def doDescribeSnapshotAttachedInstances(args, parsed_globals):
|
|
|
10573
11093
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
10574
11094
|
|
|
10575
11095
|
|
|
11096
|
+
def doResetRoutePolicyAssociations(args, parsed_globals):
|
|
11097
|
+
g_param = parse_global_arg(parsed_globals)
|
|
11098
|
+
|
|
11099
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
11100
|
+
cred = credential.CVMRoleCredential()
|
|
11101
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
11102
|
+
cred = credential.STSAssumeRoleCredential(
|
|
11103
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
11104
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
11105
|
+
)
|
|
11106
|
+
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):
|
|
11107
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
11108
|
+
else:
|
|
11109
|
+
cred = credential.Credential(
|
|
11110
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
11111
|
+
)
|
|
11112
|
+
http_profile = HttpProfile(
|
|
11113
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
11114
|
+
reqMethod="POST",
|
|
11115
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
11116
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
11117
|
+
)
|
|
11118
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
11119
|
+
if g_param[OptionsDefine.Language]:
|
|
11120
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
11121
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
11122
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
11123
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
11124
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
11125
|
+
model = models.ResetRoutePolicyAssociationsRequest()
|
|
11126
|
+
model.from_json_string(json.dumps(args))
|
|
11127
|
+
start_time = time.time()
|
|
11128
|
+
while True:
|
|
11129
|
+
rsp = client.ResetRoutePolicyAssociations(model)
|
|
11130
|
+
result = rsp.to_json_string()
|
|
11131
|
+
try:
|
|
11132
|
+
json_obj = json.loads(result)
|
|
11133
|
+
except TypeError as e:
|
|
11134
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
11135
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
11136
|
+
break
|
|
11137
|
+
cur_time = time.time()
|
|
11138
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
11139
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
11140
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
11141
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
11142
|
+
else:
|
|
11143
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
11144
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
11145
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
11146
|
+
|
|
11147
|
+
|
|
11148
|
+
def doModifyAddressesRenewFlag(args, parsed_globals):
|
|
11149
|
+
g_param = parse_global_arg(parsed_globals)
|
|
11150
|
+
|
|
11151
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
11152
|
+
cred = credential.CVMRoleCredential()
|
|
11153
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
11154
|
+
cred = credential.STSAssumeRoleCredential(
|
|
11155
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
11156
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
11157
|
+
)
|
|
11158
|
+
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):
|
|
11159
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
11160
|
+
else:
|
|
11161
|
+
cred = credential.Credential(
|
|
11162
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
11163
|
+
)
|
|
11164
|
+
http_profile = HttpProfile(
|
|
11165
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
11166
|
+
reqMethod="POST",
|
|
11167
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
11168
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
11169
|
+
)
|
|
11170
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
11171
|
+
if g_param[OptionsDefine.Language]:
|
|
11172
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
11173
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
11174
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
11175
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
11176
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
11177
|
+
model = models.ModifyAddressesRenewFlagRequest()
|
|
11178
|
+
model.from_json_string(json.dumps(args))
|
|
11179
|
+
start_time = time.time()
|
|
11180
|
+
while True:
|
|
11181
|
+
rsp = client.ModifyAddressesRenewFlag(model)
|
|
11182
|
+
result = rsp.to_json_string()
|
|
11183
|
+
try:
|
|
11184
|
+
json_obj = json.loads(result)
|
|
11185
|
+
except TypeError as e:
|
|
11186
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
11187
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
11188
|
+
break
|
|
11189
|
+
cur_time = time.time()
|
|
11190
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
11191
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
11192
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
11193
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
11194
|
+
else:
|
|
11195
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
11196
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
11197
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
11198
|
+
|
|
11199
|
+
|
|
10576
11200
|
def doCreateNetworkAclQuintupleEntries(args, parsed_globals):
|
|
10577
11201
|
g_param = parse_global_arg(parsed_globals)
|
|
10578
11202
|
|
|
@@ -11821,7 +12445,7 @@ def doReplaceDirectConnectGatewayCcnRoutes(args, parsed_globals):
|
|
|
11821
12445
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
11822
12446
|
|
|
11823
12447
|
|
|
11824
|
-
def
|
|
12448
|
+
def doDeleteRoutePolicyEntries(args, parsed_globals):
|
|
11825
12449
|
g_param = parse_global_arg(parsed_globals)
|
|
11826
12450
|
|
|
11827
12451
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -11850,11 +12474,11 @@ def doCreateLocalGateway(args, parsed_globals):
|
|
|
11850
12474
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
11851
12475
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
11852
12476
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
11853
|
-
model = models.
|
|
12477
|
+
model = models.DeleteRoutePolicyEntriesRequest()
|
|
11854
12478
|
model.from_json_string(json.dumps(args))
|
|
11855
12479
|
start_time = time.time()
|
|
11856
12480
|
while True:
|
|
11857
|
-
rsp = client.
|
|
12481
|
+
rsp = client.DeleteRoutePolicyEntries(model)
|
|
11858
12482
|
result = rsp.to_json_string()
|
|
11859
12483
|
try:
|
|
11860
12484
|
json_obj = json.loads(result)
|
|
@@ -11873,7 +12497,7 @@ def doCreateLocalGateway(args, parsed_globals):
|
|
|
11873
12497
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
11874
12498
|
|
|
11875
12499
|
|
|
11876
|
-
def
|
|
12500
|
+
def doReplaceRoutePolicyEntries(args, parsed_globals):
|
|
11877
12501
|
g_param = parse_global_arg(parsed_globals)
|
|
11878
12502
|
|
|
11879
12503
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -11902,11 +12526,11 @@ def doCreateDirectConnectGateway(args, parsed_globals):
|
|
|
11902
12526
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
11903
12527
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
11904
12528
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
11905
|
-
model = models.
|
|
12529
|
+
model = models.ReplaceRoutePolicyEntriesRequest()
|
|
11906
12530
|
model.from_json_string(json.dumps(args))
|
|
11907
12531
|
start_time = time.time()
|
|
11908
12532
|
while True:
|
|
11909
|
-
rsp = client.
|
|
12533
|
+
rsp = client.ReplaceRoutePolicyEntries(model)
|
|
11910
12534
|
result = rsp.to_json_string()
|
|
11911
12535
|
try:
|
|
11912
12536
|
json_obj = json.loads(result)
|
|
@@ -12913,7 +13537,7 @@ def doCreateRoutes(args, parsed_globals):
|
|
|
12913
13537
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
12914
13538
|
|
|
12915
13539
|
|
|
12916
|
-
def
|
|
13540
|
+
def doReplaceRoutePolicyAssociations(args, parsed_globals):
|
|
12917
13541
|
g_param = parse_global_arg(parsed_globals)
|
|
12918
13542
|
|
|
12919
13543
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -12942,11 +13566,11 @@ def doDescribeBandwidthPackageQuota(args, parsed_globals):
|
|
|
12942
13566
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
12943
13567
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
12944
13568
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
12945
|
-
model = models.
|
|
13569
|
+
model = models.ReplaceRoutePolicyAssociationsRequest()
|
|
12946
13570
|
model.from_json_string(json.dumps(args))
|
|
12947
13571
|
start_time = time.time()
|
|
12948
13572
|
while True:
|
|
12949
|
-
rsp = client.
|
|
13573
|
+
rsp = client.ReplaceRoutePolicyAssociations(model)
|
|
12950
13574
|
result = rsp.to_json_string()
|
|
12951
13575
|
try:
|
|
12952
13576
|
json_obj = json.loads(result)
|
|
@@ -14659,6 +15283,7 @@ ACTION_MAP = {
|
|
|
14659
15283
|
"DeleteVpcEndPointServiceWhiteList": doDeleteVpcEndPointServiceWhiteList,
|
|
14660
15284
|
"DescribeNatGatewayDestinationIpPortTranslationNatRules": doDescribeNatGatewayDestinationIpPortTranslationNatRules,
|
|
14661
15285
|
"ModifyFlowLogAttribute": doModifyFlowLogAttribute,
|
|
15286
|
+
"CreateRoutePolicyAssociations": doCreateRoutePolicyAssociations,
|
|
14662
15287
|
"DisassociateNetworkInterfaceSecurityGroups": doDisassociateNetworkInterfaceSecurityGroups,
|
|
14663
15288
|
"ModifyAddressInternetChargeType": doModifyAddressInternetChargeType,
|
|
14664
15289
|
"DescribeCcnAttachedInstances": doDescribeCcnAttachedInstances,
|
|
@@ -14668,10 +15293,11 @@ ACTION_MAP = {
|
|
|
14668
15293
|
"DescribeNetworkInterfaceLimit": doDescribeNetworkInterfaceLimit,
|
|
14669
15294
|
"EnableSnapshotPolicies": doEnableSnapshotPolicies,
|
|
14670
15295
|
"DescribeNetDetects": doDescribeNetDetects,
|
|
15296
|
+
"DescribeVpnGateways": doDescribeVpnGateways,
|
|
14671
15297
|
"ModifyNetworkAclQuintupleEntries": doModifyNetworkAclQuintupleEntries,
|
|
14672
15298
|
"ModifyCcnRegionBandwidthLimitsType": doModifyCcnRegionBandwidthLimitsType,
|
|
14673
15299
|
"DescribeGatewayFlowMonitorDetail": doDescribeGatewayFlowMonitorDetail,
|
|
14674
|
-
"
|
|
15300
|
+
"InquiryPriceRenewVpnGateway": doInquiryPriceRenewVpnGateway,
|
|
14675
15301
|
"UnassignIpv6Addresses": doUnassignIpv6Addresses,
|
|
14676
15302
|
"AssociateDirectConnectGatewayNatGateway": doAssociateDirectConnectGatewayNatGateway,
|
|
14677
15303
|
"DeleteVpnConnection": doDeleteVpnConnection,
|
|
@@ -14683,6 +15309,7 @@ ACTION_MAP = {
|
|
|
14683
15309
|
"ModifyIPv6AddressesBandwidth": doModifyIPv6AddressesBandwidth,
|
|
14684
15310
|
"DescribeVpcTaskResult": doDescribeVpcTaskResult,
|
|
14685
15311
|
"DeleteLocalGateway": doDeleteLocalGateway,
|
|
15312
|
+
"CreateDirectConnectGateway": doCreateDirectConnectGateway,
|
|
14686
15313
|
"DescribeSecurityGroupPolicies": doDescribeSecurityGroupPolicies,
|
|
14687
15314
|
"EnableVpcEndPointConnect": doEnableVpcEndPointConnect,
|
|
14688
15315
|
"ModifyDirectConnectGatewayAttribute": doModifyDirectConnectGatewayAttribute,
|
|
@@ -14692,7 +15319,7 @@ ACTION_MAP = {
|
|
|
14692
15319
|
"ModifyVpnGatewayRoutes": doModifyVpnGatewayRoutes,
|
|
14693
15320
|
"ReplaceSecurityGroupPolicies": doReplaceSecurityGroupPolicies,
|
|
14694
15321
|
"DisassociateVpcEndPointSecurityGroups": doDisassociateVpcEndPointSecurityGroups,
|
|
14695
|
-
"
|
|
15322
|
+
"CreateDirectConnectGatewayCcnRoutes": doCreateDirectConnectGatewayCcnRoutes,
|
|
14696
15323
|
"RemoveBandwidthPackageResources": doRemoveBandwidthPackageResources,
|
|
14697
15324
|
"CloneSecurityGroup": doCloneSecurityGroup,
|
|
14698
15325
|
"AssignPrivateIpAddresses": doAssignPrivateIpAddresses,
|
|
@@ -14716,6 +15343,7 @@ ACTION_MAP = {
|
|
|
14716
15343
|
"CreateNatGatewayDestinationIpPortTranslationNatRule": doCreateNatGatewayDestinationIpPortTranslationNatRule,
|
|
14717
15344
|
"CreateSubnet": doCreateSubnet,
|
|
14718
15345
|
"AllocateIp6AddressesBandwidth": doAllocateIp6AddressesBandwidth,
|
|
15346
|
+
"AttachNetworkInterface": doAttachNetworkInterface,
|
|
14719
15347
|
"ModifyAddressTemplateAttribute": doModifyAddressTemplateAttribute,
|
|
14720
15348
|
"AcceptAttachCcnInstances": doAcceptAttachCcnInstances,
|
|
14721
15349
|
"DeleteTemplateMember": doDeleteTemplateMember,
|
|
@@ -14733,6 +15361,7 @@ ACTION_MAP = {
|
|
|
14733
15361
|
"AllocateAddresses": doAllocateAddresses,
|
|
14734
15362
|
"CheckAssistantCidr": doCheckAssistantCidr,
|
|
14735
15363
|
"DeleteNetworkAclQuintupleEntries": doDeleteNetworkAclQuintupleEntries,
|
|
15364
|
+
"DeleteRoutePolicy": doDeleteRoutePolicy,
|
|
14736
15365
|
"DescribeVpcIpv6Addresses": doDescribeVpcIpv6Addresses,
|
|
14737
15366
|
"DescribeIp6Addresses": doDescribeIp6Addresses,
|
|
14738
15367
|
"DescribeAccountAttributes": doDescribeAccountAttributes,
|
|
@@ -14745,13 +15374,14 @@ ACTION_MAP = {
|
|
|
14745
15374
|
"AttachClassicLinkVpc": doAttachClassicLinkVpc,
|
|
14746
15375
|
"DisassociateNatGatewayAddress": doDisassociateNatGatewayAddress,
|
|
14747
15376
|
"ModifyTemplateMember": doModifyTemplateMember,
|
|
14748
|
-
"
|
|
15377
|
+
"EnableFlowLogs": doEnableFlowLogs,
|
|
14749
15378
|
"DescribeFlowLogs": doDescribeFlowLogs,
|
|
14750
15379
|
"DeleteDirectConnectGateway": doDeleteDirectConnectGateway,
|
|
14751
15380
|
"DescribeDirectConnectGatewayCcnRoutes": doDescribeDirectConnectGatewayCcnRoutes,
|
|
14752
15381
|
"CreateNetworkInterface": doCreateNetworkInterface,
|
|
14753
15382
|
"DeleteBandwidthPackage": doDeleteBandwidthPackage,
|
|
14754
15383
|
"DescribeNetDetectStates": doDescribeNetDetectStates,
|
|
15384
|
+
"CreateRoutePolicyEntries": doCreateRoutePolicyEntries,
|
|
14755
15385
|
"DescribeCcns": doDescribeCcns,
|
|
14756
15386
|
"DisassociateDirectConnectGatewayNatGateway": doDisassociateDirectConnectGatewayNatGateway,
|
|
14757
15387
|
"ModifyNetworkAclEntries": doModifyNetworkAclEntries,
|
|
@@ -14762,8 +15392,9 @@ ACTION_MAP = {
|
|
|
14762
15392
|
"CreateVpnConnection": doCreateVpnConnection,
|
|
14763
15393
|
"DeleteAssistantCidr": doDeleteAssistantCidr,
|
|
14764
15394
|
"DeleteVpnGatewayRoutes": doDeleteVpnGatewayRoutes,
|
|
15395
|
+
"DescribeRoutePolicyEntries": doDescribeRoutePolicyEntries,
|
|
14765
15396
|
"DeleteNatGatewayDestinationIpPortTranslationNatRule": doDeleteNatGatewayDestinationIpPortTranslationNatRule,
|
|
14766
|
-
"
|
|
15397
|
+
"DeleteRoutePolicyAssociations": doDeleteRoutePolicyAssociations,
|
|
14767
15398
|
"DescribeBandwidthPackageResources": doDescribeBandwidthPackageResources,
|
|
14768
15399
|
"DescribeNatGateways": doDescribeNatGateways,
|
|
14769
15400
|
"DeleteNatGatewaySourceIpTranslationNatRule": doDeleteNatGatewaySourceIpTranslationNatRule,
|
|
@@ -14771,7 +15402,7 @@ ACTION_MAP = {
|
|
|
14771
15402
|
"ModifyLocalGateway": doModifyLocalGateway,
|
|
14772
15403
|
"DescribeSubnetResourceDashboard": doDescribeSubnetResourceDashboard,
|
|
14773
15404
|
"ModifyNatGatewaySourceIpTranslationNatRule": doModifyNatGatewaySourceIpTranslationNatRule,
|
|
14774
|
-
"
|
|
15405
|
+
"EnableGatewayFlowMonitor": doEnableGatewayFlowMonitor,
|
|
14775
15406
|
"DescribeFlowLog": doDescribeFlowLog,
|
|
14776
15407
|
"ReleaseIPv6Addresses": doReleaseIPv6Addresses,
|
|
14777
15408
|
"ModifyGatewayFlowQos": doModifyGatewayFlowQos,
|
|
@@ -14779,7 +15410,6 @@ ACTION_MAP = {
|
|
|
14779
15410
|
"DisableRoutes": doDisableRoutes,
|
|
14780
15411
|
"DownloadCustomerGatewayConfiguration": doDownloadCustomerGatewayConfiguration,
|
|
14781
15412
|
"ReplaceRouteTableAssociation": doReplaceRouteTableAssociation,
|
|
14782
|
-
"EnableFlowLogs": doEnableFlowLogs,
|
|
14783
15413
|
"DescribeClassicLinkInstances": doDescribeClassicLinkInstances,
|
|
14784
15414
|
"DeleteCcn": doDeleteCcn,
|
|
14785
15415
|
"UnassignPrivateIpAddresses": doUnassignPrivateIpAddresses,
|
|
@@ -14788,16 +15418,18 @@ ACTION_MAP = {
|
|
|
14788
15418
|
"DescribeCcnRoutes": doDescribeCcnRoutes,
|
|
14789
15419
|
"CreateVpcEndPointService": doCreateVpcEndPointService,
|
|
14790
15420
|
"GenerateVpnConnectionDefaultHealthCheckIp": doGenerateVpnConnectionDefaultHealthCheckIp,
|
|
15421
|
+
"ResetRoutePolicyEntries": doResetRoutePolicyEntries,
|
|
14791
15422
|
"CreateSecurityGroupWithPolicies": doCreateSecurityGroupWithPolicies,
|
|
14792
15423
|
"CreateAssistantCidr": doCreateAssistantCidr,
|
|
14793
15424
|
"ResetNatGatewayConnection": doResetNatGatewayConnection,
|
|
14794
15425
|
"CreateDefaultVpc": doCreateDefaultVpc,
|
|
14795
|
-
"
|
|
15426
|
+
"DescribeBandwidthPackageQuota": doDescribeBandwidthPackageQuota,
|
|
14796
15427
|
"ReleaseAddresses": doReleaseAddresses,
|
|
14797
15428
|
"GetCcnRegionBandwidthLimits": doGetCcnRegionBandwidthLimits,
|
|
14798
15429
|
"DeleteSecurityGroupPolicies": doDeleteSecurityGroupPolicies,
|
|
14799
15430
|
"DescribeNetworkAclQuintupleEntries": doDescribeNetworkAclQuintupleEntries,
|
|
14800
15431
|
"DeleteNetDetect": doDeleteNetDetect,
|
|
15432
|
+
"DeleteReserveIpAddresses": doDeleteReserveIpAddresses,
|
|
14801
15433
|
"ModifySecurityGroupAttribute": doModifySecurityGroupAttribute,
|
|
14802
15434
|
"DeleteAddressTemplate": doDeleteAddressTemplate,
|
|
14803
15435
|
"NotifyRoutes": doNotifyRoutes,
|
|
@@ -14813,21 +15445,23 @@ ACTION_MAP = {
|
|
|
14813
15445
|
"DisableFlowLogs": doDisableFlowLogs,
|
|
14814
15446
|
"DescribeSgSnapshotFileContent": doDescribeSgSnapshotFileContent,
|
|
14815
15447
|
"DescribeNetworkInterfaces": doDescribeNetworkInterfaces,
|
|
14816
|
-
"
|
|
15448
|
+
"CreateRoutePolicy": doCreateRoutePolicy,
|
|
14817
15449
|
"DisableCcnRoutes": doDisableCcnRoutes,
|
|
14818
15450
|
"DescribeVpcEndPointServiceWhiteList": doDescribeVpcEndPointServiceWhiteList,
|
|
15451
|
+
"DescribeSecurityGroupReferences": doDescribeSecurityGroupReferences,
|
|
14819
15452
|
"ModifyBandwidthPackageBandwidth": doModifyBandwidthPackageBandwidth,
|
|
14820
15453
|
"ResetVpnConnection": doResetVpnConnection,
|
|
14821
15454
|
"CreateCustomerGateway": doCreateCustomerGateway,
|
|
15455
|
+
"CreateLocalGateway": doCreateLocalGateway,
|
|
14822
15456
|
"DescribeCrossBorderCompliance": doDescribeCrossBorderCompliance,
|
|
14823
15457
|
"SetVpnGatewaysRenewFlag": doSetVpnGatewaysRenewFlag,
|
|
14824
15458
|
"CreateSecurityGroup": doCreateSecurityGroup,
|
|
14825
15459
|
"AuditCrossBorderCompliance": doAuditCrossBorderCompliance,
|
|
14826
15460
|
"ModifyNetworkInterfaceAttribute": doModifyNetworkInterfaceAttribute,
|
|
14827
|
-
"
|
|
15461
|
+
"ModifyRoutePolicyAttribute": doModifyRoutePolicyAttribute,
|
|
14828
15462
|
"ModifySubnetAttribute": doModifySubnetAttribute,
|
|
14829
15463
|
"DescribeVpcInstances": doDescribeVpcInstances,
|
|
14830
|
-
"
|
|
15464
|
+
"DeleteRouteTable": doDeleteRouteTable,
|
|
14831
15465
|
"InquirePriceCreateDirectConnectGateway": doInquirePriceCreateDirectConnectGateway,
|
|
14832
15466
|
"ModifyIpv6AddressesAttribute": doModifyIpv6AddressesAttribute,
|
|
14833
15467
|
"CreateAddressTemplateGroup": doCreateAddressTemplateGroup,
|
|
@@ -14843,6 +15477,8 @@ ACTION_MAP = {
|
|
|
14843
15477
|
"HaVipAssociateAddressIp": doHaVipAssociateAddressIp,
|
|
14844
15478
|
"CreateNatGatewaySourceIpTranslationNatRule": doCreateNatGatewaySourceIpTranslationNatRule,
|
|
14845
15479
|
"DescribeSnapshotAttachedInstances": doDescribeSnapshotAttachedInstances,
|
|
15480
|
+
"ResetRoutePolicyAssociations": doResetRoutePolicyAssociations,
|
|
15481
|
+
"ModifyAddressesRenewFlag": doModifyAddressesRenewFlag,
|
|
14846
15482
|
"CreateNetworkAclQuintupleEntries": doCreateNetworkAclQuintupleEntries,
|
|
14847
15483
|
"ModifyCcnAttachedInstancesAttribute": doModifyCcnAttachedInstancesAttribute,
|
|
14848
15484
|
"AssociateNetworkInterfaceSecurityGroups": doAssociateNetworkInterfaceSecurityGroups,
|
|
@@ -14867,8 +15503,8 @@ ACTION_MAP = {
|
|
|
14867
15503
|
"ModifyPrivateIpAddressesAttribute": doModifyPrivateIpAddressesAttribute,
|
|
14868
15504
|
"DescribeAssistantCidr": doDescribeAssistantCidr,
|
|
14869
15505
|
"ReplaceDirectConnectGatewayCcnRoutes": doReplaceDirectConnectGatewayCcnRoutes,
|
|
14870
|
-
"
|
|
14871
|
-
"
|
|
15506
|
+
"DeleteRoutePolicyEntries": doDeleteRoutePolicyEntries,
|
|
15507
|
+
"ReplaceRoutePolicyEntries": doReplaceRoutePolicyEntries,
|
|
14872
15508
|
"DetachCcnInstances": doDetachCcnInstances,
|
|
14873
15509
|
"CreateReserveIpAddresses": doCreateReserveIpAddresses,
|
|
14874
15510
|
"DescribeSnapshotPolicies": doDescribeSnapshotPolicies,
|
|
@@ -14888,7 +15524,7 @@ ACTION_MAP = {
|
|
|
14888
15524
|
"AddTemplateMember": doAddTemplateMember,
|
|
14889
15525
|
"CreateNetDetect": doCreateNetDetect,
|
|
14890
15526
|
"CreateRoutes": doCreateRoutes,
|
|
14891
|
-
"
|
|
15527
|
+
"ReplaceRoutePolicyAssociations": doReplaceRoutePolicyAssociations,
|
|
14892
15528
|
"ModifyHaVipAttribute": doModifyHaVipAttribute,
|
|
14893
15529
|
"ResetAttachCcnInstances": doResetAttachCcnInstances,
|
|
14894
15530
|
"ModifyVpcEndPointServiceAttribute": doModifyVpcEndPointServiceAttribute,
|