tccli 3.0.1239.1__py2.py3-none-any.whl → 3.0.1241.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/apm/v20210622/api.json +66 -69
- tccli/services/apm/v20210622/examples.json +26 -26
- tccli/services/autoscaling/v20180419/api.json +12 -1
- tccli/services/batch/v20170312/api.json +11 -11
- tccli/services/billing/v20180709/api.json +20 -0
- tccli/services/cam/v20190116/api.json +1 -1
- tccli/services/car/v20220110/api.json +1 -1
- tccli/services/car/v20220110/examples.json +3 -3
- tccli/services/cdb/v20170320/api.json +582 -579
- tccli/services/cdb/v20170320/examples.json +9 -9
- tccli/services/cdwdoris/v20211228/api.json +40 -0
- tccli/services/cfg/v20210820/api.json +11 -0
- tccli/services/chdfs/v20201112/api.json +10 -10
- tccli/services/chdfs/v20201112/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/cmq/v20190304/api.json +77 -77
- tccli/services/csip/csip_client.py +281 -16
- tccli/services/csip/v20221121/api.json +1631 -101
- tccli/services/csip/v20221121/examples.json +40 -0
- tccli/services/cvm/cvm_client.py +60 -325
- tccli/services/cvm/v20170312/api.json +618 -1401
- tccli/services/cvm/v20170312/examples.json +8 -48
- tccli/services/cwp/cwp_client.py +0 -53
- tccli/services/cwp/v20180228/api.json +0 -34
- tccli/services/cwp/v20180228/examples.json +0 -8
- tccli/services/cynosdb/v20190107/api.json +452 -458
- tccli/services/cynosdb/v20190107/examples.json +23 -23
- tccli/services/dbbrain/v20191016/api.json +16 -4
- tccli/services/dbbrain/v20191016/examples.json +5 -5
- tccli/services/dbbrain/v20210527/api.json +44 -44
- tccli/services/dbbrain/v20210527/examples.json +8 -8
- tccli/services/dts/v20180330/api.json +30 -30
- tccli/services/dts/v20180330/examples.json +4 -4
- tccli/services/dts/v20211206/api.json +19 -9
- tccli/services/dts/v20211206/examples.json +5 -5
- tccli/services/ecm/v20190719/api.json +55 -48
- tccli/services/ecm/v20190719/examples.json +7 -7
- tccli/services/emr/emr_client.py +493 -16
- tccli/services/emr/v20190103/api.json +1323 -246
- tccli/services/emr/v20190103/examples.json +72 -0
- tccli/services/ess/v20201111/api.json +15 -6
- tccli/services/ess/v20201111/examples.json +12 -0
- tccli/services/essbasic/v20210526/api.json +11 -2
- tccli/services/essbasic/v20210526/examples.json +12 -0
- tccli/services/faceid/v20180301/api.json +3 -3
- tccli/services/gaap/v20180529/api.json +181 -183
- tccli/services/gaap/v20180529/examples.json +31 -37
- tccli/services/gs/v20191118/api.json +3 -3
- tccli/services/gs/v20191118/examples.json +3 -3
- tccli/services/iai/iai_client.py +53 -0
- tccli/services/iai/v20200303/api.json +80 -0
- tccli/services/iai/v20200303/examples.json +14 -0
- tccli/services/iotexplorer/v20190423/api.json +10 -0
- tccli/services/keewidb/v20220308/api.json +188 -190
- tccli/services/live/v20180801/api.json +323 -222
- tccli/services/live/v20180801/examples.json +79 -79
- tccli/services/mna/v20210119/api.json +20 -20
- tccli/services/mps/v20190612/api.json +40 -0
- tccli/services/oceanus/v20190422/api.json +407 -39
- tccli/services/oceanus/v20190422/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +50 -0
- tccli/services/sms/v20190711/api.json +81 -81
- tccli/services/sms/v20190711/examples.json +8 -8
- tccli/services/sms/v20210111/api.json +39 -39
- tccli/services/sqlserver/v20180328/api.json +235 -139
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +777 -779
- tccli/services/ssl/v20191205/examples.json +8 -8
- tccli/services/tbaas/v20180416/api.json +118 -82
- tccli/services/tbaas/v20180416/examples.json +7 -7
- tccli/services/tcb/v20180608/api.json +18 -18
- tccli/services/tcb/v20180608/examples.json +2 -2
- tccli/services/tcm/v20210413/api.json +6 -6
- tccli/services/tcm/v20210413/examples.json +1 -1
- tccli/services/tcr/v20190924/api.json +17 -12
- tccli/services/tdmq/v20200217/api.json +18 -0
- tccli/services/tem/v20210701/api.json +439 -280
- tccli/services/tem/v20210701/examples.json +39 -39
- tccli/services/tke/v20180525/api.json +50 -39
- tccli/services/tke/v20180525/examples.json +51 -21
- tccli/services/trro/v20220325/api.json +27 -27
- tccli/services/trro/v20220325/examples.json +1 -1
- tccli/services/tse/v20201207/api.json +46 -9
- tccli/services/tse/v20201207/examples.json +31 -31
- tccli/services/tsf/v20180326/api.json +448 -434
- tccli/services/tsf/v20180326/examples.json +122 -122
- tccli/services/tts/v20190823/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +278 -37
- tccli/services/vpc/v20170312/examples.json +56 -8
- tccli/services/vpc/vpc_client.py +159 -0
- tccli/services/waf/v20180125/api.json +303 -4
- tccli/services/waf/v20180125/examples.json +25 -1
- tccli/services/waf/waf_client.py +163 -4
- {tccli-3.0.1239.1.dist-info → tccli-3.0.1241.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1239.1.dist-info → tccli-3.0.1241.1.dist-info}/RECORD +99 -99
- {tccli-3.0.1239.1.dist-info → tccli-3.0.1241.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1239.1.dist-info → tccli-3.0.1241.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1239.1.dist-info → tccli-3.0.1241.1.dist-info}/license_files/LICENSE +0 -0
@@ -390,7 +390,7 @@
|
|
390
390
|
{
|
391
391
|
"document": "创建对端网关",
|
392
392
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCustomerGateway\n<公共请求参数>\n\n{\n \"IpAddress\": \"58.211.1.12\",\n \"CustomerGatewayName\": \"test-cgw\",\n \"Tags\": [\n {\n \"Value\": \"shanghai\",\n \"Key\": \"city\"\n }\n ]\n}",
|
393
|
-
"output": "{\n \"Response\": {\n \"CustomerGateway\": {\n \"CustomerGatewayId\": \"cgw-mgp33pll\",\n \"
|
393
|
+
"output": "{\n \"Response\": {\n \"CustomerGateway\": {\n \"CustomerGatewayId\": \"cgw-mgp33pll\",\n \"CustomerGatewayName\": \"cgw-name\",\n \"IpAddress\": \"58.21.1.12\",\n \"CreatedTime\": \"2023-05-29 11:28:45\",\n \"BgpAsn\": 141\n },\n \"RequestId\": \"5bd98433-263a-47b6-9a1c-84aa613a8ff6\"\n }\n}",
|
394
394
|
"title": "创建对端网关"
|
395
395
|
}
|
396
396
|
],
|
@@ -2396,7 +2396,7 @@
|
|
2396
2396
|
{
|
2397
2397
|
"document": "下载SSL-VPN-CLIENT配置",
|
2398
2398
|
"input": "https://vpc.tencentcloudapi.com/?Action=DownloadVpnGatewaySslClientCert\n&SslVpnClientId=vpnc--84tby4k2\n&<公共请求参数>",
|
2399
|
-
"output": "{\n \"Response\": {\n \"SslClientConfigsSet\": \"
|
2399
|
+
"output": "{\n \"Response\": {\n \"SslClientConfigsSet\": \"{\\\"SslVpnClientConfiguration\\\": \\\"-config-\\\"......}\",\n \"SslClientConfig\": [\n {\n \"SslVpnClientConfiguration\": \"config...\",\n \"SslVpnRootCert\": \"CERTIFICATE...\",\n \"SslVpnKey\": \"PRIVATE KEY...\",\n \"SslVpnCert\": \"CERTIFICATE...\",\n \"SslVpnClientId\": \"vpnc-axa315c\"\n }\n ],\n \"Authenticated\": 1,\n \"RequestId\": \"8e08f027-048b-41e8-ac99-77e954ca15c5\"\n }\n}",
|
2400
2400
|
"title": "下载SSL-VPN-CLIENT配置"
|
2401
2401
|
}
|
2402
2402
|
],
|
@@ -2508,6 +2508,26 @@
|
|
2508
2508
|
"title": "创建专线网关询价输入"
|
2509
2509
|
}
|
2510
2510
|
],
|
2511
|
+
"InquiryPriceAllocateAddresses": [
|
2512
|
+
{
|
2513
|
+
"document": "小时流量计费模式弹性公网IP询价。",
|
2514
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceAllocateAddresses\n<公共请求参数>\n\n{\n \"AddressType\": \"EIP\",\n \"InternetMaxBandwidthOut\": \"1\",\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\"\n}",
|
2515
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"ChargeUnit\": \"HOUR\",\n \"UnitPrice\": 0.8,\n \"DiscountPrice\": 0.8\n }\n },\n \"RequestId\": \"90d508a8-9ee8-4220-9c8e-9faeedce3ab4\"\n }\n}",
|
2516
|
+
"title": "小时流量计费模式弹性公网IP询价"
|
2517
|
+
},
|
2518
|
+
{
|
2519
|
+
"document": "小时带宽计费模式弹性公网IP询价。",
|
2520
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceAllocateAddresses\n<公共请求参数>\n\n{\n \"AddressType\": \"EIP\",\n \"InternetMaxBandwidthOut\": \"1\",\n \"InternetChargeType\": \"BANDWIDTH_POSTPAID_BY_HOUR\"\n}",
|
2521
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"UnitPrice\": 0.063,\n \"DiscountPrice\": 0.063,\n \"ChargeUnit\": \"HOUR\"\n }\n },\n \"RequestId\": \"ebc826be-ec1a-4522-b08f-8da3fe5adedc\"\n }\n}",
|
2522
|
+
"title": "小时带宽计费模式弹性公网IP询价"
|
2523
|
+
},
|
2524
|
+
{
|
2525
|
+
"document": "包月带宽计费模式弹性公网IP询价。",
|
2526
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceAllocateAddresses\n<公共请求参数>\n\n{\n \"AddressChargePrepaid\": {\n \"Period\": 1\n },\n \"AddressType\": \"EIP\",\n \"InternetChargeType\": \"BANDWIDTH_PREPAID_BY_MONTH\",\n \"InternetMaxBandwidthOut\": 1\n}",
|
2527
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"OriginalPrice\": 20,\n \"DiscountPrice\": 20\n }\n },\n \"RequestId\": \"136605f0-ca35-4d22-9b77-e053168fa25f\"\n }\n}",
|
2528
|
+
"title": "包月带宽计费模式弹性公网IP询价"
|
2529
|
+
}
|
2530
|
+
],
|
2511
2531
|
"InquiryPriceCreateVpnGateway": [
|
2512
2532
|
{
|
2513
2533
|
"document": "包年包月询价时输入",
|
@@ -2522,11 +2542,39 @@
|
|
2522
2542
|
"title": "按量计费询价输入"
|
2523
2543
|
}
|
2524
2544
|
],
|
2525
|
-
"
|
2545
|
+
"InquiryPriceModifyAddressesBandwidth": [
|
2546
|
+
{
|
2547
|
+
"document": "小时流量EIP修改带宽询价。",
|
2548
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceModifyAddressesBandwidth\n<公共请求参数>\n\n{\n \"InternetMaxBandwidthOut\": \"2\",\n \"AddressIds\": [\n \"eip-hxlqja90\"\n ]\n}",
|
2549
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"UnitPrice\": 0.8,\n \"DiscountPrice\": 0.8,\n \"ChargeUnit\": \"HOUR\"\n }\n },\n \"RequestId\": \"7daad6af-50de-4df5-8238-0d76c7be62e1\"\n }\n}",
|
2550
|
+
"title": "小时流量EIP修改带宽询价"
|
2551
|
+
},
|
2552
|
+
{
|
2553
|
+
"document": "小时带宽EIP修改带宽询价。",
|
2554
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceModifyAddressesBandwidth\n<公共请求参数>\n\n{\n \"AddressIds\": [\n \"eip-3hwtklhj\"\n ],\n \"InternetMaxBandwidthOut\": 5\n}",
|
2555
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"UnitPrice\": 0.315,\n \"DiscountPrice\": 0.315,\n \"ChargeUnit\": \"HOUR\"\n }\n },\n \"RequestId\": \"db071565-27cb-482a-a3fe-1c7bba77e4a9\"\n }\n}",
|
2556
|
+
"title": "小时带宽EIP修改带宽询价"
|
2557
|
+
},
|
2558
|
+
{
|
2559
|
+
"document": "包月带宽EIP调整带宽询价。",
|
2560
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceModifyAddressesBandwidth\n<公共请求参数>\n\n{\n \"AddressIds\": [\n \"eip-iu4ml5pp\"\n ],\n \"InternetMaxBandwidthOut\": 5\n}",
|
2561
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"OriginalPrice\": 95,\n \"DiscountPrice\": 95\n }\n },\n \"RequestId\": \"ddf8edf2-0457-4ba7-b2ab-e66e98823cc6\"\n }\n}",
|
2562
|
+
"title": "包月带宽EIP调整带宽询价"
|
2563
|
+
}
|
2564
|
+
],
|
2565
|
+
"InquiryPriceRenewAddresses": [
|
2526
2566
|
{
|
2527
2567
|
"document": "",
|
2528
|
-
"input": "
|
2529
|
-
"output": "{\n \"Response\": {\n \"Price\": {\n \"
|
2568
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRenewAddresses\n<公共请求参数>\n\n{\n \"AddressIds\": [\n \"eip-iu4ml5pp\"\n ],\n \"AddressChargePrepaid\": {\n \"Period\": 12\n }\n}",
|
2569
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"OriginalPrice\": 240,\n \"DiscountPrice\": 240\n }\n },\n \"RequestId\": \"84658acc-bdb9-4a3e-a37a-84a2e0c14e44\"\n }\n}",
|
2570
|
+
"title": "包月带宽计费模式EIP续费询价"
|
2571
|
+
}
|
2572
|
+
],
|
2573
|
+
"InquiryPriceRenewVpnGateway": [
|
2574
|
+
{
|
2575
|
+
"document": "包年包月网关续费网关询价输入",
|
2576
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRenewVpnGateway\n<公共请求参数>\n\n{\n \"VpnGatewayId\": \"vpngw-abcxa123z\",\n \"InstanceChargePrepaid\": {\n \"Period\": 1,\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\"\n }\n}",
|
2577
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"OriginalPrice\": 380.0,\n \"DiscountPrice\": 177.4,\n \"UnitPrice\": 0.0,\n \"ChargeUnit\": \"\"\n },\n \"BandwidthPrice\": {\n \"OriginalPrice\": 0.0,\n \"DiscountPrice\": 0.0,\n \"UnitPrice\": 0.0,\n \"ChargeUnit\": \"\"\n }\n },\n \"RequestId\": \"74883e1b-5901-46de-ae1e-d6e2cf591c5b\"\n }\n}",
|
2530
2578
|
"title": "包年包月网关续费网关询价输入"
|
2531
2579
|
}
|
2532
2580
|
],
|
@@ -3101,7 +3149,7 @@
|
|
3101
3149
|
"ModifyVpnConnectionAttribute": [
|
3102
3150
|
{
|
3103
3151
|
"document": "修改VPN通道",
|
3104
|
-
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyVpnConnectionAttribute\n<公共请求参数>\n\n{\n \"VpnConnectionName\": \"test-abc\",\n \"VpnConnectionId\": \"vpnx-abc123x\",\n \"PreShareKey\": \"
|
3152
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyVpnConnectionAttribute\n<公共请求参数>\n\n{\n \"VpnConnectionName\": \"test-abc\",\n \"VpnConnectionId\": \"vpnx-abc123x\",\n \"PreShareKey\": \"qwer12ty\",\n \"EnableHealthCheck\": \"false\"\n}",
|
3105
3153
|
"output": "{\n \"Response\": {\n \"RequestId\": \"b6c8a8c4-ba39-49ca-9b21-66247b7e3ad3\"\n }\n}",
|
3106
3154
|
"title": "修改VPN通道"
|
3107
3155
|
}
|
@@ -3240,8 +3288,8 @@
|
|
3240
3288
|
],
|
3241
3289
|
"RenewVpnGateway": [
|
3242
3290
|
{
|
3243
|
-
"document": "",
|
3244
|
-
"input": "
|
3291
|
+
"document": "续费VPN网关",
|
3292
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RenewVpnGateway\n<公共请求参数>\n\n{\n \"VpnGatewayId\": \"vpngw-lazly92z\",\n \"InstanceChargePrepaid\": {\n \"Period\": 1,\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\"\n }\n}",
|
3245
3293
|
"output": "{\n \"Response\": {\n \"RequestId\": \"74883e1b-5901-46de-ae1e-d6e2cf591c5b\"\n }\n}",
|
3246
3294
|
"title": "续费VPN网关"
|
3247
3295
|
}
|
tccli/services/vpc/vpc_client.py
CHANGED
@@ -7401,6 +7401,58 @@ def doCreateHighPriorityRouteTable(args, parsed_globals):
|
|
7401
7401
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7402
7402
|
|
7403
7403
|
|
7404
|
+
def doInquiryPriceRenewAddresses(args, parsed_globals):
|
7405
|
+
g_param = parse_global_arg(parsed_globals)
|
7406
|
+
|
7407
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7408
|
+
cred = credential.CVMRoleCredential()
|
7409
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7410
|
+
cred = credential.STSAssumeRoleCredential(
|
7411
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7412
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
7413
|
+
)
|
7414
|
+
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):
|
7415
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7416
|
+
else:
|
7417
|
+
cred = credential.Credential(
|
7418
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7419
|
+
)
|
7420
|
+
http_profile = HttpProfile(
|
7421
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7422
|
+
reqMethod="POST",
|
7423
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7424
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7425
|
+
)
|
7426
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7427
|
+
if g_param[OptionsDefine.Language]:
|
7428
|
+
profile.language = g_param[OptionsDefine.Language]
|
7429
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7430
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
7431
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
7432
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7433
|
+
model = models.InquiryPriceRenewAddressesRequest()
|
7434
|
+
model.from_json_string(json.dumps(args))
|
7435
|
+
start_time = time.time()
|
7436
|
+
while True:
|
7437
|
+
rsp = client.InquiryPriceRenewAddresses(model)
|
7438
|
+
result = rsp.to_json_string()
|
7439
|
+
try:
|
7440
|
+
json_obj = json.loads(result)
|
7441
|
+
except TypeError as e:
|
7442
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7443
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7444
|
+
break
|
7445
|
+
cur_time = time.time()
|
7446
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7447
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7448
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7449
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7450
|
+
else:
|
7451
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7452
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7453
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7454
|
+
|
7455
|
+
|
7404
7456
|
def doModifyGatewayFlowQos(args, parsed_globals):
|
7405
7457
|
g_param = parse_global_arg(parsed_globals)
|
7406
7458
|
|
@@ -13017,6 +13069,58 @@ def doCreateServiceTemplate(args, parsed_globals):
|
|
13017
13069
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
13018
13070
|
|
13019
13071
|
|
13072
|
+
def doInquiryPriceAllocateAddresses(args, parsed_globals):
|
13073
|
+
g_param = parse_global_arg(parsed_globals)
|
13074
|
+
|
13075
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
13076
|
+
cred = credential.CVMRoleCredential()
|
13077
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
13078
|
+
cred = credential.STSAssumeRoleCredential(
|
13079
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
13080
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
13081
|
+
)
|
13082
|
+
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):
|
13083
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
13084
|
+
else:
|
13085
|
+
cred = credential.Credential(
|
13086
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
13087
|
+
)
|
13088
|
+
http_profile = HttpProfile(
|
13089
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
13090
|
+
reqMethod="POST",
|
13091
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
13092
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
13093
|
+
)
|
13094
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
13095
|
+
if g_param[OptionsDefine.Language]:
|
13096
|
+
profile.language = g_param[OptionsDefine.Language]
|
13097
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
13098
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
13099
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
13100
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
13101
|
+
model = models.InquiryPriceAllocateAddressesRequest()
|
13102
|
+
model.from_json_string(json.dumps(args))
|
13103
|
+
start_time = time.time()
|
13104
|
+
while True:
|
13105
|
+
rsp = client.InquiryPriceAllocateAddresses(model)
|
13106
|
+
result = rsp.to_json_string()
|
13107
|
+
try:
|
13108
|
+
json_obj = json.loads(result)
|
13109
|
+
except TypeError as e:
|
13110
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
13111
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
13112
|
+
break
|
13113
|
+
cur_time = time.time()
|
13114
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
13115
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
13116
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
13117
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
13118
|
+
else:
|
13119
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
13120
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
13121
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
13122
|
+
|
13123
|
+
|
13020
13124
|
def doModifyDirectConnectGatewayAttribute(args, parsed_globals):
|
13021
13125
|
g_param = parse_global_arg(parsed_globals)
|
13022
13126
|
|
@@ -15929,6 +16033,58 @@ def doDescribeVpcs(args, parsed_globals):
|
|
15929
16033
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
15930
16034
|
|
15931
16035
|
|
16036
|
+
def doInquiryPriceModifyAddressesBandwidth(args, parsed_globals):
|
16037
|
+
g_param = parse_global_arg(parsed_globals)
|
16038
|
+
|
16039
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
16040
|
+
cred = credential.CVMRoleCredential()
|
16041
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
16042
|
+
cred = credential.STSAssumeRoleCredential(
|
16043
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
16044
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
16045
|
+
)
|
16046
|
+
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):
|
16047
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
16048
|
+
else:
|
16049
|
+
cred = credential.Credential(
|
16050
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
16051
|
+
)
|
16052
|
+
http_profile = HttpProfile(
|
16053
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
16054
|
+
reqMethod="POST",
|
16055
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
16056
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
16057
|
+
)
|
16058
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
16059
|
+
if g_param[OptionsDefine.Language]:
|
16060
|
+
profile.language = g_param[OptionsDefine.Language]
|
16061
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
16062
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
16063
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
16064
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
16065
|
+
model = models.InquiryPriceModifyAddressesBandwidthRequest()
|
16066
|
+
model.from_json_string(json.dumps(args))
|
16067
|
+
start_time = time.time()
|
16068
|
+
while True:
|
16069
|
+
rsp = client.InquiryPriceModifyAddressesBandwidth(model)
|
16070
|
+
result = rsp.to_json_string()
|
16071
|
+
try:
|
16072
|
+
json_obj = json.loads(result)
|
16073
|
+
except TypeError as e:
|
16074
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
16075
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
16076
|
+
break
|
16077
|
+
cur_time = time.time()
|
16078
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
16079
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
16080
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
16081
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
16082
|
+
else:
|
16083
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
16084
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
16085
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
16086
|
+
|
16087
|
+
|
15932
16088
|
def doDescribeHighPriorityRouteTables(args, parsed_globals):
|
15933
16089
|
g_param = parse_global_arg(parsed_globals)
|
15934
16090
|
|
@@ -20138,6 +20294,7 @@ ACTION_MAP = {
|
|
20138
20294
|
"DescribeBandwidthPackageResources": doDescribeBandwidthPackageResources,
|
20139
20295
|
"DescribeVpcPeeringConnections": doDescribeVpcPeeringConnections,
|
20140
20296
|
"CreateHighPriorityRouteTable": doCreateHighPriorityRouteTable,
|
20297
|
+
"InquiryPriceRenewAddresses": doInquiryPriceRenewAddresses,
|
20141
20298
|
"ModifyGatewayFlowQos": doModifyGatewayFlowQos,
|
20142
20299
|
"DescribeRouteConflicts": doDescribeRouteConflicts,
|
20143
20300
|
"DownloadCustomerGatewayConfiguration": doDownloadCustomerGatewayConfiguration,
|
@@ -20246,6 +20403,7 @@ ACTION_MAP = {
|
|
20246
20403
|
"DeleteVpcEndPoint": doDeleteVpcEndPoint,
|
20247
20404
|
"DeleteHighPriorityRoutes": doDeleteHighPriorityRoutes,
|
20248
20405
|
"CreateServiceTemplate": doCreateServiceTemplate,
|
20406
|
+
"InquiryPriceAllocateAddresses": doInquiryPriceAllocateAddresses,
|
20249
20407
|
"ModifyDirectConnectGatewayAttribute": doModifyDirectConnectGatewayAttribute,
|
20250
20408
|
"ModifySubnetAttribute": doModifySubnetAttribute,
|
20251
20409
|
"DescribeSgSnapshotFileContent": doDescribeSgSnapshotFileContent,
|
@@ -20302,6 +20460,7 @@ ACTION_MAP = {
|
|
20302
20460
|
"DescribeNatGateways": doDescribeNatGateways,
|
20303
20461
|
"ResetHighPriorityRoutes": doResetHighPriorityRoutes,
|
20304
20462
|
"DescribeVpcs": doDescribeVpcs,
|
20463
|
+
"InquiryPriceModifyAddressesBandwidth": doInquiryPriceModifyAddressesBandwidth,
|
20305
20464
|
"DescribeHighPriorityRouteTables": doDescribeHighPriorityRouteTables,
|
20306
20465
|
"AcceptAttachCcnInstances": doAcceptAttachCcnInstances,
|
20307
20466
|
"DescribeGatewayFlowQos": doDescribeGatewayFlowQos,
|