alibabacloud-vpc20160428 6.15.0__py3-none-any.whl → 7.0.0__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.
- alibabacloud_vpc20160428/__init__.py +1 -1
- alibabacloud_vpc20160428/client.py +8 -466
- alibabacloud_vpc20160428/models/__init__.py +0 -30
- alibabacloud_vpc20160428/models/_create_full_nat_entry_request.py +8 -2
- alibabacloud_vpc20160428/models/_describe_physical_connection_loaresponse_body.py +8 -0
- alibabacloud_vpc20160428/models/_describe_virtual_border_routers_for_physical_connection_response_body.py +8 -0
- alibabacloud_vpc20160428/models/_describe_vpn_gateway_available_zones_request.py +8 -0
- alibabacloud_vpc20160428/models/_list_full_nat_entries_response_body.py +16 -0
- alibabacloud_vpc20160428/models/_modify_full_nat_entry_attribute_request.py +8 -0
- {alibabacloud_vpc20160428-6.15.0.dist-info → alibabacloud_vpc20160428-7.0.0.dist-info}/METADATA +1 -1
- {alibabacloud_vpc20160428-6.15.0.dist-info → alibabacloud_vpc20160428-7.0.0.dist-info}/RECORD +14 -29
- alibabacloud_vpc20160428/models/_convert_bandwidth_package_request.py +0 -80
- alibabacloud_vpc20160428/models/_convert_bandwidth_package_response.py +0 -54
- alibabacloud_vpc20160428/models/_convert_bandwidth_package_response_body.py +0 -43
- alibabacloud_vpc20160428/models/_disable_nat_gateway_ecs_metric_request.py +0 -60
- alibabacloud_vpc20160428/models/_disable_nat_gateway_ecs_metric_response.py +0 -54
- alibabacloud_vpc20160428/models/_disable_nat_gateway_ecs_metric_response_body.py +0 -34
- alibabacloud_vpc20160428/models/_enable_nat_gateway_ecs_metric_request.py +0 -60
- alibabacloud_vpc20160428/models/_enable_nat_gateway_ecs_metric_response.py +0 -54
- alibabacloud_vpc20160428/models/_enable_nat_gateway_ecs_metric_response_body.py +0 -34
- alibabacloud_vpc20160428/models/_get_nat_ip_attribute_request.py +0 -99
- alibabacloud_vpc20160428/models/_get_nat_ip_attribute_response.py +0 -54
- alibabacloud_vpc20160428/models/_get_nat_ip_attribute_response_body.py +0 -109
- alibabacloud_vpc20160428/models/_get_nat_ip_cidr_attribute_request.py +0 -111
- alibabacloud_vpc20160428/models/_get_nat_ip_cidr_attribute_response.py +0 -54
- alibabacloud_vpc20160428/models/_get_nat_ip_cidr_attribute_response_body.py +0 -91
- {alibabacloud_vpc20160428-6.15.0.dist-info → alibabacloud_vpc20160428-7.0.0.dist-info}/LICENSE +0 -0
- {alibabacloud_vpc20160428-6.15.0.dist-info → alibabacloud_vpc20160428-7.0.0.dist-info}/WHEEL +0 -0
- {alibabacloud_vpc20160428-6.15.0.dist-info → alibabacloud_vpc20160428-7.0.0.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '
|
|
1
|
+
__version__ = '7.0.0'
|
|
@@ -3895,100 +3895,6 @@ class Client(OpenApiClient):
|
|
|
3895
3895
|
runtime = RuntimeOptions()
|
|
3896
3896
|
return await self.connect_router_interface_with_options_async(request, runtime)
|
|
3897
3897
|
|
|
3898
|
-
def convert_bandwidth_package_with_options(
|
|
3899
|
-
self,
|
|
3900
|
-
request: main_models.ConvertBandwidthPackageRequest,
|
|
3901
|
-
runtime: RuntimeOptions,
|
|
3902
|
-
) -> main_models.ConvertBandwidthPackageResponse:
|
|
3903
|
-
request.validate()
|
|
3904
|
-
query = {}
|
|
3905
|
-
if not DaraCore.is_null(request.bandwidth_package_id):
|
|
3906
|
-
query['BandwidthPackageId'] = request.bandwidth_package_id
|
|
3907
|
-
if not DaraCore.is_null(request.client_token):
|
|
3908
|
-
query['ClientToken'] = request.client_token
|
|
3909
|
-
if not DaraCore.is_null(request.owner_id):
|
|
3910
|
-
query['OwnerId'] = request.owner_id
|
|
3911
|
-
if not DaraCore.is_null(request.region_id):
|
|
3912
|
-
query['RegionId'] = request.region_id
|
|
3913
|
-
if not DaraCore.is_null(request.region_id):
|
|
3914
|
-
query['RegionId'] = request.region_id
|
|
3915
|
-
if not DaraCore.is_null(request.resource_owner_account):
|
|
3916
|
-
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
3917
|
-
if not DaraCore.is_null(request.resource_owner_id):
|
|
3918
|
-
query['ResourceOwnerId'] = request.resource_owner_id
|
|
3919
|
-
req = open_api_util_models.OpenApiRequest(
|
|
3920
|
-
query = Utils.query(query)
|
|
3921
|
-
)
|
|
3922
|
-
params = open_api_util_models.Params(
|
|
3923
|
-
action = 'ConvertBandwidthPackage',
|
|
3924
|
-
version = '2016-04-28',
|
|
3925
|
-
protocol = 'HTTPS',
|
|
3926
|
-
pathname = '/',
|
|
3927
|
-
method = 'POST',
|
|
3928
|
-
auth_type = 'AK',
|
|
3929
|
-
style = 'RPC',
|
|
3930
|
-
req_body_type = 'formData',
|
|
3931
|
-
body_type = 'json'
|
|
3932
|
-
)
|
|
3933
|
-
return DaraCore.from_map(
|
|
3934
|
-
main_models.ConvertBandwidthPackageResponse(),
|
|
3935
|
-
self.call_api(params, req, runtime)
|
|
3936
|
-
)
|
|
3937
|
-
|
|
3938
|
-
async def convert_bandwidth_package_with_options_async(
|
|
3939
|
-
self,
|
|
3940
|
-
request: main_models.ConvertBandwidthPackageRequest,
|
|
3941
|
-
runtime: RuntimeOptions,
|
|
3942
|
-
) -> main_models.ConvertBandwidthPackageResponse:
|
|
3943
|
-
request.validate()
|
|
3944
|
-
query = {}
|
|
3945
|
-
if not DaraCore.is_null(request.bandwidth_package_id):
|
|
3946
|
-
query['BandwidthPackageId'] = request.bandwidth_package_id
|
|
3947
|
-
if not DaraCore.is_null(request.client_token):
|
|
3948
|
-
query['ClientToken'] = request.client_token
|
|
3949
|
-
if not DaraCore.is_null(request.owner_id):
|
|
3950
|
-
query['OwnerId'] = request.owner_id
|
|
3951
|
-
if not DaraCore.is_null(request.region_id):
|
|
3952
|
-
query['RegionId'] = request.region_id
|
|
3953
|
-
if not DaraCore.is_null(request.region_id):
|
|
3954
|
-
query['RegionId'] = request.region_id
|
|
3955
|
-
if not DaraCore.is_null(request.resource_owner_account):
|
|
3956
|
-
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
3957
|
-
if not DaraCore.is_null(request.resource_owner_id):
|
|
3958
|
-
query['ResourceOwnerId'] = request.resource_owner_id
|
|
3959
|
-
req = open_api_util_models.OpenApiRequest(
|
|
3960
|
-
query = Utils.query(query)
|
|
3961
|
-
)
|
|
3962
|
-
params = open_api_util_models.Params(
|
|
3963
|
-
action = 'ConvertBandwidthPackage',
|
|
3964
|
-
version = '2016-04-28',
|
|
3965
|
-
protocol = 'HTTPS',
|
|
3966
|
-
pathname = '/',
|
|
3967
|
-
method = 'POST',
|
|
3968
|
-
auth_type = 'AK',
|
|
3969
|
-
style = 'RPC',
|
|
3970
|
-
req_body_type = 'formData',
|
|
3971
|
-
body_type = 'json'
|
|
3972
|
-
)
|
|
3973
|
-
return DaraCore.from_map(
|
|
3974
|
-
main_models.ConvertBandwidthPackageResponse(),
|
|
3975
|
-
await self.call_api_async(params, req, runtime)
|
|
3976
|
-
)
|
|
3977
|
-
|
|
3978
|
-
def convert_bandwidth_package(
|
|
3979
|
-
self,
|
|
3980
|
-
request: main_models.ConvertBandwidthPackageRequest,
|
|
3981
|
-
) -> main_models.ConvertBandwidthPackageResponse:
|
|
3982
|
-
runtime = RuntimeOptions()
|
|
3983
|
-
return self.convert_bandwidth_package_with_options(request, runtime)
|
|
3984
|
-
|
|
3985
|
-
async def convert_bandwidth_package_async(
|
|
3986
|
-
self,
|
|
3987
|
-
request: main_models.ConvertBandwidthPackageRequest,
|
|
3988
|
-
) -> main_models.ConvertBandwidthPackageResponse:
|
|
3989
|
-
runtime = RuntimeOptions()
|
|
3990
|
-
return await self.convert_bandwidth_package_with_options_async(request, runtime)
|
|
3991
|
-
|
|
3992
3898
|
def copy_network_acl_entries_with_options(
|
|
3993
3899
|
self,
|
|
3994
3900
|
request: main_models.CopyNetworkAclEntriesRequest,
|
|
@@ -5782,6 +5688,8 @@ class Client(OpenApiClient):
|
|
|
5782
5688
|
) -> main_models.CreateFullNatEntryResponse:
|
|
5783
5689
|
request.validate()
|
|
5784
5690
|
query = {}
|
|
5691
|
+
if not DaraCore.is_null(request.access_domain):
|
|
5692
|
+
query['AccessDomain'] = request.access_domain
|
|
5785
5693
|
if not DaraCore.is_null(request.access_ip):
|
|
5786
5694
|
query['AccessIp'] = request.access_ip
|
|
5787
5695
|
if not DaraCore.is_null(request.access_port):
|
|
@@ -5840,6 +5748,8 @@ class Client(OpenApiClient):
|
|
|
5840
5748
|
) -> main_models.CreateFullNatEntryResponse:
|
|
5841
5749
|
request.validate()
|
|
5842
5750
|
query = {}
|
|
5751
|
+
if not DaraCore.is_null(request.access_domain):
|
|
5752
|
+
query['AccessDomain'] = request.access_domain
|
|
5843
5753
|
if not DaraCore.is_null(request.access_ip):
|
|
5844
5754
|
query['AccessIp'] = request.access_ip
|
|
5845
5755
|
if not DaraCore.is_null(request.access_port):
|
|
@@ -25685,88 +25595,6 @@ class Client(OpenApiClient):
|
|
|
25685
25595
|
runtime = RuntimeOptions()
|
|
25686
25596
|
return await self.diagnose_vpn_gateway_with_options_async(request, runtime)
|
|
25687
25597
|
|
|
25688
|
-
def disable_nat_gateway_ecs_metric_with_options(
|
|
25689
|
-
self,
|
|
25690
|
-
request: main_models.DisableNatGatewayEcsMetricRequest,
|
|
25691
|
-
runtime: RuntimeOptions,
|
|
25692
|
-
) -> main_models.DisableNatGatewayEcsMetricResponse:
|
|
25693
|
-
request.validate()
|
|
25694
|
-
query = {}
|
|
25695
|
-
if not DaraCore.is_null(request.dry_run):
|
|
25696
|
-
query['DryRun'] = request.dry_run
|
|
25697
|
-
if not DaraCore.is_null(request.nat_gateway_id):
|
|
25698
|
-
query['NatGatewayId'] = request.nat_gateway_id
|
|
25699
|
-
if not DaraCore.is_null(request.region_id):
|
|
25700
|
-
query['RegionId'] = request.region_id
|
|
25701
|
-
if not DaraCore.is_null(request.region_id):
|
|
25702
|
-
query['RegionId'] = request.region_id
|
|
25703
|
-
req = open_api_util_models.OpenApiRequest(
|
|
25704
|
-
query = Utils.query(query)
|
|
25705
|
-
)
|
|
25706
|
-
params = open_api_util_models.Params(
|
|
25707
|
-
action = 'DisableNatGatewayEcsMetric',
|
|
25708
|
-
version = '2016-04-28',
|
|
25709
|
-
protocol = 'HTTPS',
|
|
25710
|
-
pathname = '/',
|
|
25711
|
-
method = 'POST',
|
|
25712
|
-
auth_type = 'AK',
|
|
25713
|
-
style = 'RPC',
|
|
25714
|
-
req_body_type = 'formData',
|
|
25715
|
-
body_type = 'json'
|
|
25716
|
-
)
|
|
25717
|
-
return DaraCore.from_map(
|
|
25718
|
-
main_models.DisableNatGatewayEcsMetricResponse(),
|
|
25719
|
-
self.call_api(params, req, runtime)
|
|
25720
|
-
)
|
|
25721
|
-
|
|
25722
|
-
async def disable_nat_gateway_ecs_metric_with_options_async(
|
|
25723
|
-
self,
|
|
25724
|
-
request: main_models.DisableNatGatewayEcsMetricRequest,
|
|
25725
|
-
runtime: RuntimeOptions,
|
|
25726
|
-
) -> main_models.DisableNatGatewayEcsMetricResponse:
|
|
25727
|
-
request.validate()
|
|
25728
|
-
query = {}
|
|
25729
|
-
if not DaraCore.is_null(request.dry_run):
|
|
25730
|
-
query['DryRun'] = request.dry_run
|
|
25731
|
-
if not DaraCore.is_null(request.nat_gateway_id):
|
|
25732
|
-
query['NatGatewayId'] = request.nat_gateway_id
|
|
25733
|
-
if not DaraCore.is_null(request.region_id):
|
|
25734
|
-
query['RegionId'] = request.region_id
|
|
25735
|
-
if not DaraCore.is_null(request.region_id):
|
|
25736
|
-
query['RegionId'] = request.region_id
|
|
25737
|
-
req = open_api_util_models.OpenApiRequest(
|
|
25738
|
-
query = Utils.query(query)
|
|
25739
|
-
)
|
|
25740
|
-
params = open_api_util_models.Params(
|
|
25741
|
-
action = 'DisableNatGatewayEcsMetric',
|
|
25742
|
-
version = '2016-04-28',
|
|
25743
|
-
protocol = 'HTTPS',
|
|
25744
|
-
pathname = '/',
|
|
25745
|
-
method = 'POST',
|
|
25746
|
-
auth_type = 'AK',
|
|
25747
|
-
style = 'RPC',
|
|
25748
|
-
req_body_type = 'formData',
|
|
25749
|
-
body_type = 'json'
|
|
25750
|
-
)
|
|
25751
|
-
return DaraCore.from_map(
|
|
25752
|
-
main_models.DisableNatGatewayEcsMetricResponse(),
|
|
25753
|
-
await self.call_api_async(params, req, runtime)
|
|
25754
|
-
)
|
|
25755
|
-
|
|
25756
|
-
def disable_nat_gateway_ecs_metric(
|
|
25757
|
-
self,
|
|
25758
|
-
request: main_models.DisableNatGatewayEcsMetricRequest,
|
|
25759
|
-
) -> main_models.DisableNatGatewayEcsMetricResponse:
|
|
25760
|
-
runtime = RuntimeOptions()
|
|
25761
|
-
return self.disable_nat_gateway_ecs_metric_with_options(request, runtime)
|
|
25762
|
-
|
|
25763
|
-
async def disable_nat_gateway_ecs_metric_async(
|
|
25764
|
-
self,
|
|
25765
|
-
request: main_models.DisableNatGatewayEcsMetricRequest,
|
|
25766
|
-
) -> main_models.DisableNatGatewayEcsMetricResponse:
|
|
25767
|
-
runtime = RuntimeOptions()
|
|
25768
|
-
return await self.disable_nat_gateway_ecs_metric_with_options_async(request, runtime)
|
|
25769
|
-
|
|
25770
25598
|
def disable_vpc_classic_link_with_options(
|
|
25771
25599
|
self,
|
|
25772
25600
|
request: main_models.DisableVpcClassicLinkRequest,
|
|
@@ -26253,88 +26081,6 @@ class Client(OpenApiClient):
|
|
|
26253
26081
|
runtime = RuntimeOptions()
|
|
26254
26082
|
return await self.download_vpn_connection_config_with_options_async(request, runtime)
|
|
26255
26083
|
|
|
26256
|
-
def enable_nat_gateway_ecs_metric_with_options(
|
|
26257
|
-
self,
|
|
26258
|
-
request: main_models.EnableNatGatewayEcsMetricRequest,
|
|
26259
|
-
runtime: RuntimeOptions,
|
|
26260
|
-
) -> main_models.EnableNatGatewayEcsMetricResponse:
|
|
26261
|
-
request.validate()
|
|
26262
|
-
query = {}
|
|
26263
|
-
if not DaraCore.is_null(request.dry_run):
|
|
26264
|
-
query['DryRun'] = request.dry_run
|
|
26265
|
-
if not DaraCore.is_null(request.nat_gateway_id):
|
|
26266
|
-
query['NatGatewayId'] = request.nat_gateway_id
|
|
26267
|
-
if not DaraCore.is_null(request.region_id):
|
|
26268
|
-
query['RegionId'] = request.region_id
|
|
26269
|
-
if not DaraCore.is_null(request.region_id):
|
|
26270
|
-
query['RegionId'] = request.region_id
|
|
26271
|
-
req = open_api_util_models.OpenApiRequest(
|
|
26272
|
-
query = Utils.query(query)
|
|
26273
|
-
)
|
|
26274
|
-
params = open_api_util_models.Params(
|
|
26275
|
-
action = 'EnableNatGatewayEcsMetric',
|
|
26276
|
-
version = '2016-04-28',
|
|
26277
|
-
protocol = 'HTTPS',
|
|
26278
|
-
pathname = '/',
|
|
26279
|
-
method = 'POST',
|
|
26280
|
-
auth_type = 'AK',
|
|
26281
|
-
style = 'RPC',
|
|
26282
|
-
req_body_type = 'formData',
|
|
26283
|
-
body_type = 'json'
|
|
26284
|
-
)
|
|
26285
|
-
return DaraCore.from_map(
|
|
26286
|
-
main_models.EnableNatGatewayEcsMetricResponse(),
|
|
26287
|
-
self.call_api(params, req, runtime)
|
|
26288
|
-
)
|
|
26289
|
-
|
|
26290
|
-
async def enable_nat_gateway_ecs_metric_with_options_async(
|
|
26291
|
-
self,
|
|
26292
|
-
request: main_models.EnableNatGatewayEcsMetricRequest,
|
|
26293
|
-
runtime: RuntimeOptions,
|
|
26294
|
-
) -> main_models.EnableNatGatewayEcsMetricResponse:
|
|
26295
|
-
request.validate()
|
|
26296
|
-
query = {}
|
|
26297
|
-
if not DaraCore.is_null(request.dry_run):
|
|
26298
|
-
query['DryRun'] = request.dry_run
|
|
26299
|
-
if not DaraCore.is_null(request.nat_gateway_id):
|
|
26300
|
-
query['NatGatewayId'] = request.nat_gateway_id
|
|
26301
|
-
if not DaraCore.is_null(request.region_id):
|
|
26302
|
-
query['RegionId'] = request.region_id
|
|
26303
|
-
if not DaraCore.is_null(request.region_id):
|
|
26304
|
-
query['RegionId'] = request.region_id
|
|
26305
|
-
req = open_api_util_models.OpenApiRequest(
|
|
26306
|
-
query = Utils.query(query)
|
|
26307
|
-
)
|
|
26308
|
-
params = open_api_util_models.Params(
|
|
26309
|
-
action = 'EnableNatGatewayEcsMetric',
|
|
26310
|
-
version = '2016-04-28',
|
|
26311
|
-
protocol = 'HTTPS',
|
|
26312
|
-
pathname = '/',
|
|
26313
|
-
method = 'POST',
|
|
26314
|
-
auth_type = 'AK',
|
|
26315
|
-
style = 'RPC',
|
|
26316
|
-
req_body_type = 'formData',
|
|
26317
|
-
body_type = 'json'
|
|
26318
|
-
)
|
|
26319
|
-
return DaraCore.from_map(
|
|
26320
|
-
main_models.EnableNatGatewayEcsMetricResponse(),
|
|
26321
|
-
await self.call_api_async(params, req, runtime)
|
|
26322
|
-
)
|
|
26323
|
-
|
|
26324
|
-
def enable_nat_gateway_ecs_metric(
|
|
26325
|
-
self,
|
|
26326
|
-
request: main_models.EnableNatGatewayEcsMetricRequest,
|
|
26327
|
-
) -> main_models.EnableNatGatewayEcsMetricResponse:
|
|
26328
|
-
runtime = RuntimeOptions()
|
|
26329
|
-
return self.enable_nat_gateway_ecs_metric_with_options(request, runtime)
|
|
26330
|
-
|
|
26331
|
-
async def enable_nat_gateway_ecs_metric_async(
|
|
26332
|
-
self,
|
|
26333
|
-
request: main_models.EnableNatGatewayEcsMetricRequest,
|
|
26334
|
-
) -> main_models.EnableNatGatewayEcsMetricResponse:
|
|
26335
|
-
runtime = RuntimeOptions()
|
|
26336
|
-
return await self.enable_nat_gateway_ecs_metric_with_options_async(request, runtime)
|
|
26337
|
-
|
|
26338
26084
|
def enable_physical_connection_with_options(
|
|
26339
26085
|
self,
|
|
26340
26086
|
request: main_models.EnablePhysicalConnectionRequest,
|
|
@@ -27005,214 +26751,6 @@ class Client(OpenApiClient):
|
|
|
27005
26751
|
runtime = RuntimeOptions()
|
|
27006
26752
|
return await self.get_nat_gateway_attribute_with_options_async(request, runtime)
|
|
27007
26753
|
|
|
27008
|
-
def get_nat_ip_attribute_with_options(
|
|
27009
|
-
self,
|
|
27010
|
-
request: main_models.GetNatIpAttributeRequest,
|
|
27011
|
-
runtime: RuntimeOptions,
|
|
27012
|
-
) -> main_models.GetNatIpAttributeResponse:
|
|
27013
|
-
request.validate()
|
|
27014
|
-
query = {}
|
|
27015
|
-
if not DaraCore.is_null(request.client_token):
|
|
27016
|
-
query['ClientToken'] = request.client_token
|
|
27017
|
-
if not DaraCore.is_null(request.dry_run):
|
|
27018
|
-
query['DryRun'] = request.dry_run
|
|
27019
|
-
if not DaraCore.is_null(request.nat_ip_id):
|
|
27020
|
-
query['NatIpId'] = request.nat_ip_id
|
|
27021
|
-
if not DaraCore.is_null(request.owner_account):
|
|
27022
|
-
query['OwnerAccount'] = request.owner_account
|
|
27023
|
-
if not DaraCore.is_null(request.owner_id):
|
|
27024
|
-
query['OwnerId'] = request.owner_id
|
|
27025
|
-
if not DaraCore.is_null(request.region_id):
|
|
27026
|
-
query['RegionId'] = request.region_id
|
|
27027
|
-
if not DaraCore.is_null(request.region_id):
|
|
27028
|
-
query['RegionId'] = request.region_id
|
|
27029
|
-
if not DaraCore.is_null(request.resource_owner_account):
|
|
27030
|
-
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
27031
|
-
if not DaraCore.is_null(request.resource_owner_id):
|
|
27032
|
-
query['ResourceOwnerId'] = request.resource_owner_id
|
|
27033
|
-
req = open_api_util_models.OpenApiRequest(
|
|
27034
|
-
query = Utils.query(query)
|
|
27035
|
-
)
|
|
27036
|
-
params = open_api_util_models.Params(
|
|
27037
|
-
action = 'GetNatIpAttribute',
|
|
27038
|
-
version = '2016-04-28',
|
|
27039
|
-
protocol = 'HTTPS',
|
|
27040
|
-
pathname = '/',
|
|
27041
|
-
method = 'POST',
|
|
27042
|
-
auth_type = 'AK',
|
|
27043
|
-
style = 'RPC',
|
|
27044
|
-
req_body_type = 'formData',
|
|
27045
|
-
body_type = 'json'
|
|
27046
|
-
)
|
|
27047
|
-
return DaraCore.from_map(
|
|
27048
|
-
main_models.GetNatIpAttributeResponse(),
|
|
27049
|
-
self.call_api(params, req, runtime)
|
|
27050
|
-
)
|
|
27051
|
-
|
|
27052
|
-
async def get_nat_ip_attribute_with_options_async(
|
|
27053
|
-
self,
|
|
27054
|
-
request: main_models.GetNatIpAttributeRequest,
|
|
27055
|
-
runtime: RuntimeOptions,
|
|
27056
|
-
) -> main_models.GetNatIpAttributeResponse:
|
|
27057
|
-
request.validate()
|
|
27058
|
-
query = {}
|
|
27059
|
-
if not DaraCore.is_null(request.client_token):
|
|
27060
|
-
query['ClientToken'] = request.client_token
|
|
27061
|
-
if not DaraCore.is_null(request.dry_run):
|
|
27062
|
-
query['DryRun'] = request.dry_run
|
|
27063
|
-
if not DaraCore.is_null(request.nat_ip_id):
|
|
27064
|
-
query['NatIpId'] = request.nat_ip_id
|
|
27065
|
-
if not DaraCore.is_null(request.owner_account):
|
|
27066
|
-
query['OwnerAccount'] = request.owner_account
|
|
27067
|
-
if not DaraCore.is_null(request.owner_id):
|
|
27068
|
-
query['OwnerId'] = request.owner_id
|
|
27069
|
-
if not DaraCore.is_null(request.region_id):
|
|
27070
|
-
query['RegionId'] = request.region_id
|
|
27071
|
-
if not DaraCore.is_null(request.region_id):
|
|
27072
|
-
query['RegionId'] = request.region_id
|
|
27073
|
-
if not DaraCore.is_null(request.resource_owner_account):
|
|
27074
|
-
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
27075
|
-
if not DaraCore.is_null(request.resource_owner_id):
|
|
27076
|
-
query['ResourceOwnerId'] = request.resource_owner_id
|
|
27077
|
-
req = open_api_util_models.OpenApiRequest(
|
|
27078
|
-
query = Utils.query(query)
|
|
27079
|
-
)
|
|
27080
|
-
params = open_api_util_models.Params(
|
|
27081
|
-
action = 'GetNatIpAttribute',
|
|
27082
|
-
version = '2016-04-28',
|
|
27083
|
-
protocol = 'HTTPS',
|
|
27084
|
-
pathname = '/',
|
|
27085
|
-
method = 'POST',
|
|
27086
|
-
auth_type = 'AK',
|
|
27087
|
-
style = 'RPC',
|
|
27088
|
-
req_body_type = 'formData',
|
|
27089
|
-
body_type = 'json'
|
|
27090
|
-
)
|
|
27091
|
-
return DaraCore.from_map(
|
|
27092
|
-
main_models.GetNatIpAttributeResponse(),
|
|
27093
|
-
await self.call_api_async(params, req, runtime)
|
|
27094
|
-
)
|
|
27095
|
-
|
|
27096
|
-
def get_nat_ip_attribute(
|
|
27097
|
-
self,
|
|
27098
|
-
request: main_models.GetNatIpAttributeRequest,
|
|
27099
|
-
) -> main_models.GetNatIpAttributeResponse:
|
|
27100
|
-
runtime = RuntimeOptions()
|
|
27101
|
-
return self.get_nat_ip_attribute_with_options(request, runtime)
|
|
27102
|
-
|
|
27103
|
-
async def get_nat_ip_attribute_async(
|
|
27104
|
-
self,
|
|
27105
|
-
request: main_models.GetNatIpAttributeRequest,
|
|
27106
|
-
) -> main_models.GetNatIpAttributeResponse:
|
|
27107
|
-
runtime = RuntimeOptions()
|
|
27108
|
-
return await self.get_nat_ip_attribute_with_options_async(request, runtime)
|
|
27109
|
-
|
|
27110
|
-
def get_nat_ip_cidr_attribute_with_options(
|
|
27111
|
-
self,
|
|
27112
|
-
request: main_models.GetNatIpCidrAttributeRequest,
|
|
27113
|
-
runtime: RuntimeOptions,
|
|
27114
|
-
) -> main_models.GetNatIpCidrAttributeResponse:
|
|
27115
|
-
request.validate()
|
|
27116
|
-
query = {}
|
|
27117
|
-
if not DaraCore.is_null(request.client_token):
|
|
27118
|
-
query['ClientToken'] = request.client_token
|
|
27119
|
-
if not DaraCore.is_null(request.dry_run):
|
|
27120
|
-
query['DryRun'] = request.dry_run
|
|
27121
|
-
if not DaraCore.is_null(request.nat_gateway_id):
|
|
27122
|
-
query['NatGatewayId'] = request.nat_gateway_id
|
|
27123
|
-
if not DaraCore.is_null(request.nat_ip_cidr):
|
|
27124
|
-
query['NatIpCidr'] = request.nat_ip_cidr
|
|
27125
|
-
if not DaraCore.is_null(request.owner_account):
|
|
27126
|
-
query['OwnerAccount'] = request.owner_account
|
|
27127
|
-
if not DaraCore.is_null(request.owner_id):
|
|
27128
|
-
query['OwnerId'] = request.owner_id
|
|
27129
|
-
if not DaraCore.is_null(request.region_id):
|
|
27130
|
-
query['RegionId'] = request.region_id
|
|
27131
|
-
if not DaraCore.is_null(request.region_id):
|
|
27132
|
-
query['RegionId'] = request.region_id
|
|
27133
|
-
if not DaraCore.is_null(request.resource_owner_account):
|
|
27134
|
-
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
27135
|
-
if not DaraCore.is_null(request.resource_owner_id):
|
|
27136
|
-
query['ResourceOwnerId'] = request.resource_owner_id
|
|
27137
|
-
req = open_api_util_models.OpenApiRequest(
|
|
27138
|
-
query = Utils.query(query)
|
|
27139
|
-
)
|
|
27140
|
-
params = open_api_util_models.Params(
|
|
27141
|
-
action = 'GetNatIpCidrAttribute',
|
|
27142
|
-
version = '2016-04-28',
|
|
27143
|
-
protocol = 'HTTPS',
|
|
27144
|
-
pathname = '/',
|
|
27145
|
-
method = 'POST',
|
|
27146
|
-
auth_type = 'AK',
|
|
27147
|
-
style = 'RPC',
|
|
27148
|
-
req_body_type = 'formData',
|
|
27149
|
-
body_type = 'json'
|
|
27150
|
-
)
|
|
27151
|
-
return DaraCore.from_map(
|
|
27152
|
-
main_models.GetNatIpCidrAttributeResponse(),
|
|
27153
|
-
self.call_api(params, req, runtime)
|
|
27154
|
-
)
|
|
27155
|
-
|
|
27156
|
-
async def get_nat_ip_cidr_attribute_with_options_async(
|
|
27157
|
-
self,
|
|
27158
|
-
request: main_models.GetNatIpCidrAttributeRequest,
|
|
27159
|
-
runtime: RuntimeOptions,
|
|
27160
|
-
) -> main_models.GetNatIpCidrAttributeResponse:
|
|
27161
|
-
request.validate()
|
|
27162
|
-
query = {}
|
|
27163
|
-
if not DaraCore.is_null(request.client_token):
|
|
27164
|
-
query['ClientToken'] = request.client_token
|
|
27165
|
-
if not DaraCore.is_null(request.dry_run):
|
|
27166
|
-
query['DryRun'] = request.dry_run
|
|
27167
|
-
if not DaraCore.is_null(request.nat_gateway_id):
|
|
27168
|
-
query['NatGatewayId'] = request.nat_gateway_id
|
|
27169
|
-
if not DaraCore.is_null(request.nat_ip_cidr):
|
|
27170
|
-
query['NatIpCidr'] = request.nat_ip_cidr
|
|
27171
|
-
if not DaraCore.is_null(request.owner_account):
|
|
27172
|
-
query['OwnerAccount'] = request.owner_account
|
|
27173
|
-
if not DaraCore.is_null(request.owner_id):
|
|
27174
|
-
query['OwnerId'] = request.owner_id
|
|
27175
|
-
if not DaraCore.is_null(request.region_id):
|
|
27176
|
-
query['RegionId'] = request.region_id
|
|
27177
|
-
if not DaraCore.is_null(request.region_id):
|
|
27178
|
-
query['RegionId'] = request.region_id
|
|
27179
|
-
if not DaraCore.is_null(request.resource_owner_account):
|
|
27180
|
-
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
27181
|
-
if not DaraCore.is_null(request.resource_owner_id):
|
|
27182
|
-
query['ResourceOwnerId'] = request.resource_owner_id
|
|
27183
|
-
req = open_api_util_models.OpenApiRequest(
|
|
27184
|
-
query = Utils.query(query)
|
|
27185
|
-
)
|
|
27186
|
-
params = open_api_util_models.Params(
|
|
27187
|
-
action = 'GetNatIpCidrAttribute',
|
|
27188
|
-
version = '2016-04-28',
|
|
27189
|
-
protocol = 'HTTPS',
|
|
27190
|
-
pathname = '/',
|
|
27191
|
-
method = 'POST',
|
|
27192
|
-
auth_type = 'AK',
|
|
27193
|
-
style = 'RPC',
|
|
27194
|
-
req_body_type = 'formData',
|
|
27195
|
-
body_type = 'json'
|
|
27196
|
-
)
|
|
27197
|
-
return DaraCore.from_map(
|
|
27198
|
-
main_models.GetNatIpCidrAttributeResponse(),
|
|
27199
|
-
await self.call_api_async(params, req, runtime)
|
|
27200
|
-
)
|
|
27201
|
-
|
|
27202
|
-
def get_nat_ip_cidr_attribute(
|
|
27203
|
-
self,
|
|
27204
|
-
request: main_models.GetNatIpCidrAttributeRequest,
|
|
27205
|
-
) -> main_models.GetNatIpCidrAttributeResponse:
|
|
27206
|
-
runtime = RuntimeOptions()
|
|
27207
|
-
return self.get_nat_ip_cidr_attribute_with_options(request, runtime)
|
|
27208
|
-
|
|
27209
|
-
async def get_nat_ip_cidr_attribute_async(
|
|
27210
|
-
self,
|
|
27211
|
-
request: main_models.GetNatIpCidrAttributeRequest,
|
|
27212
|
-
) -> main_models.GetNatIpCidrAttributeResponse:
|
|
27213
|
-
runtime = RuntimeOptions()
|
|
27214
|
-
return await self.get_nat_ip_cidr_attribute_with_options_async(request, runtime)
|
|
27215
|
-
|
|
27216
26754
|
def get_physical_connection_service_status_with_options(
|
|
27217
26755
|
self,
|
|
27218
26756
|
request: main_models.GetPhysicalConnectionServiceStatusRequest,
|
|
@@ -32836,6 +32374,8 @@ class Client(OpenApiClient):
|
|
|
32836
32374
|
) -> main_models.ModifyFullNatEntryAttributeResponse:
|
|
32837
32375
|
request.validate()
|
|
32838
32376
|
query = {}
|
|
32377
|
+
if not DaraCore.is_null(request.access_domain):
|
|
32378
|
+
query['AccessDomain'] = request.access_domain
|
|
32839
32379
|
if not DaraCore.is_null(request.access_ip):
|
|
32840
32380
|
query['AccessIp'] = request.access_ip
|
|
32841
32381
|
if not DaraCore.is_null(request.access_port):
|
|
@@ -32896,6 +32436,8 @@ class Client(OpenApiClient):
|
|
|
32896
32436
|
) -> main_models.ModifyFullNatEntryAttributeResponse:
|
|
32897
32437
|
request.validate()
|
|
32898
32438
|
query = {}
|
|
32439
|
+
if not DaraCore.is_null(request.access_domain):
|
|
32440
|
+
query['AccessDomain'] = request.access_domain
|
|
32899
32441
|
if not DaraCore.is_null(request.access_ip):
|
|
32900
32442
|
query['AccessIp'] = request.access_ip
|
|
32901
32443
|
if not DaraCore.is_null(request.access_port):
|
|
@@ -110,9 +110,6 @@ from ._confirm_physical_connection_response import ConfirmPhysicalConnectionResp
|
|
|
110
110
|
from ._connect_router_interface_request import ConnectRouterInterfaceRequest
|
|
111
111
|
from ._connect_router_interface_response_body import ConnectRouterInterfaceResponseBody
|
|
112
112
|
from ._connect_router_interface_response import ConnectRouterInterfaceResponse
|
|
113
|
-
from ._convert_bandwidth_package_request import ConvertBandwidthPackageRequest
|
|
114
|
-
from ._convert_bandwidth_package_response_body import ConvertBandwidthPackageResponseBody
|
|
115
|
-
from ._convert_bandwidth_package_response import ConvertBandwidthPackageResponse
|
|
116
113
|
from ._copy_network_acl_entries_request import CopyNetworkAclEntriesRequest
|
|
117
114
|
from ._copy_network_acl_entries_response_body import CopyNetworkAclEntriesResponseBody
|
|
118
115
|
from ._copy_network_acl_entries_response import CopyNetworkAclEntriesResponse
|
|
@@ -708,9 +705,6 @@ from ._diagnose_vpn_connections_response import DiagnoseVpnConnectionsResponse
|
|
|
708
705
|
from ._diagnose_vpn_gateway_request import DiagnoseVpnGatewayRequest
|
|
709
706
|
from ._diagnose_vpn_gateway_response_body import DiagnoseVpnGatewayResponseBody
|
|
710
707
|
from ._diagnose_vpn_gateway_response import DiagnoseVpnGatewayResponse
|
|
711
|
-
from ._disable_nat_gateway_ecs_metric_request import DisableNatGatewayEcsMetricRequest
|
|
712
|
-
from ._disable_nat_gateway_ecs_metric_response_body import DisableNatGatewayEcsMetricResponseBody
|
|
713
|
-
from ._disable_nat_gateway_ecs_metric_response import DisableNatGatewayEcsMetricResponse
|
|
714
708
|
from ._disable_vpc_classic_link_request import DisableVpcClassicLinkRequest
|
|
715
709
|
from ._disable_vpc_classic_link_response_body import DisableVpcClassicLinkResponseBody
|
|
716
710
|
from ._disable_vpc_classic_link_response import DisableVpcClassicLinkResponse
|
|
@@ -726,9 +720,6 @@ from ._dissociate_vpn_gateway_with_certificate_response import DissociateVpnGate
|
|
|
726
720
|
from ._download_vpn_connection_config_request import DownloadVpnConnectionConfigRequest
|
|
727
721
|
from ._download_vpn_connection_config_response_body import DownloadVpnConnectionConfigResponseBody
|
|
728
722
|
from ._download_vpn_connection_config_response import DownloadVpnConnectionConfigResponse
|
|
729
|
-
from ._enable_nat_gateway_ecs_metric_request import EnableNatGatewayEcsMetricRequest
|
|
730
|
-
from ._enable_nat_gateway_ecs_metric_response_body import EnableNatGatewayEcsMetricResponseBody
|
|
731
|
-
from ._enable_nat_gateway_ecs_metric_response import EnableNatGatewayEcsMetricResponse
|
|
732
723
|
from ._enable_physical_connection_request import EnablePhysicalConnectionRequest
|
|
733
724
|
from ._enable_physical_connection_response_body import EnablePhysicalConnectionResponseBody
|
|
734
725
|
from ._enable_physical_connection_response import EnablePhysicalConnectionResponse
|
|
@@ -750,12 +741,6 @@ from ._get_ipv_4gateway_attribute_response import GetIpv4GatewayAttributeRespons
|
|
|
750
741
|
from ._get_nat_gateway_attribute_request import GetNatGatewayAttributeRequest
|
|
751
742
|
from ._get_nat_gateway_attribute_response_body import GetNatGatewayAttributeResponseBody
|
|
752
743
|
from ._get_nat_gateway_attribute_response import GetNatGatewayAttributeResponse
|
|
753
|
-
from ._get_nat_ip_attribute_request import GetNatIpAttributeRequest
|
|
754
|
-
from ._get_nat_ip_attribute_response_body import GetNatIpAttributeResponseBody
|
|
755
|
-
from ._get_nat_ip_attribute_response import GetNatIpAttributeResponse
|
|
756
|
-
from ._get_nat_ip_cidr_attribute_request import GetNatIpCidrAttributeRequest
|
|
757
|
-
from ._get_nat_ip_cidr_attribute_response_body import GetNatIpCidrAttributeResponseBody
|
|
758
|
-
from ._get_nat_ip_cidr_attribute_response import GetNatIpCidrAttributeResponse
|
|
759
744
|
from ._get_physical_connection_service_status_request import GetPhysicalConnectionServiceStatusRequest
|
|
760
745
|
from ._get_physical_connection_service_status_response_body import GetPhysicalConnectionServiceStatusResponseBody
|
|
761
746
|
from ._get_physical_connection_service_status_response import GetPhysicalConnectionServiceStatusResponse
|
|
@@ -1837,9 +1822,6 @@ __all__ = [
|
|
|
1837
1822
|
ConnectRouterInterfaceRequest,
|
|
1838
1823
|
ConnectRouterInterfaceResponseBody,
|
|
1839
1824
|
ConnectRouterInterfaceResponse,
|
|
1840
|
-
ConvertBandwidthPackageRequest,
|
|
1841
|
-
ConvertBandwidthPackageResponseBody,
|
|
1842
|
-
ConvertBandwidthPackageResponse,
|
|
1843
1825
|
CopyNetworkAclEntriesRequest,
|
|
1844
1826
|
CopyNetworkAclEntriesResponseBody,
|
|
1845
1827
|
CopyNetworkAclEntriesResponse,
|
|
@@ -2435,9 +2417,6 @@ __all__ = [
|
|
|
2435
2417
|
DiagnoseVpnGatewayRequest,
|
|
2436
2418
|
DiagnoseVpnGatewayResponseBody,
|
|
2437
2419
|
DiagnoseVpnGatewayResponse,
|
|
2438
|
-
DisableNatGatewayEcsMetricRequest,
|
|
2439
|
-
DisableNatGatewayEcsMetricResponseBody,
|
|
2440
|
-
DisableNatGatewayEcsMetricResponse,
|
|
2441
2420
|
DisableVpcClassicLinkRequest,
|
|
2442
2421
|
DisableVpcClassicLinkResponseBody,
|
|
2443
2422
|
DisableVpcClassicLinkResponse,
|
|
@@ -2453,9 +2432,6 @@ __all__ = [
|
|
|
2453
2432
|
DownloadVpnConnectionConfigRequest,
|
|
2454
2433
|
DownloadVpnConnectionConfigResponseBody,
|
|
2455
2434
|
DownloadVpnConnectionConfigResponse,
|
|
2456
|
-
EnableNatGatewayEcsMetricRequest,
|
|
2457
|
-
EnableNatGatewayEcsMetricResponseBody,
|
|
2458
|
-
EnableNatGatewayEcsMetricResponse,
|
|
2459
2435
|
EnablePhysicalConnectionRequest,
|
|
2460
2436
|
EnablePhysicalConnectionResponseBody,
|
|
2461
2437
|
EnablePhysicalConnectionResponse,
|
|
@@ -2477,12 +2453,6 @@ __all__ = [
|
|
|
2477
2453
|
GetNatGatewayAttributeRequest,
|
|
2478
2454
|
GetNatGatewayAttributeResponseBody,
|
|
2479
2455
|
GetNatGatewayAttributeResponse,
|
|
2480
|
-
GetNatIpAttributeRequest,
|
|
2481
|
-
GetNatIpAttributeResponseBody,
|
|
2482
|
-
GetNatIpAttributeResponse,
|
|
2483
|
-
GetNatIpCidrAttributeRequest,
|
|
2484
|
-
GetNatIpCidrAttributeResponseBody,
|
|
2485
|
-
GetNatIpCidrAttributeResponse,
|
|
2486
2456
|
GetPhysicalConnectionServiceStatusRequest,
|
|
2487
2457
|
GetPhysicalConnectionServiceStatusResponseBody,
|
|
2488
2458
|
GetPhysicalConnectionServiceStatusResponse,
|
|
@@ -7,6 +7,7 @@ from darabonba.model import DaraModel
|
|
|
7
7
|
class CreateFullNatEntryRequest(DaraModel):
|
|
8
8
|
def __init__(
|
|
9
9
|
self,
|
|
10
|
+
access_domain: str = None,
|
|
10
11
|
access_ip: str = None,
|
|
11
12
|
access_port: str = None,
|
|
12
13
|
client_token: str = None,
|
|
@@ -24,9 +25,8 @@ class CreateFullNatEntryRequest(DaraModel):
|
|
|
24
25
|
resource_owner_account: str = None,
|
|
25
26
|
resource_owner_id: int = None,
|
|
26
27
|
):
|
|
28
|
+
self.access_domain = access_domain
|
|
27
29
|
# The backend IP address to be modified in FULLNAT address translation.
|
|
28
|
-
#
|
|
29
|
-
# This parameter is required.
|
|
30
30
|
self.access_ip = access_ip
|
|
31
31
|
# The backend port to be modified in the mapping of FULLNAT port. Valid values: **1** to **65535**.
|
|
32
32
|
#
|
|
@@ -89,6 +89,9 @@ class CreateFullNatEntryRequest(DaraModel):
|
|
|
89
89
|
_map = super().to_map()
|
|
90
90
|
if _map is not None:
|
|
91
91
|
result = _map
|
|
92
|
+
if self.access_domain is not None:
|
|
93
|
+
result['AccessDomain'] = self.access_domain
|
|
94
|
+
|
|
92
95
|
if self.access_ip is not None:
|
|
93
96
|
result['AccessIp'] = self.access_ip
|
|
94
97
|
|
|
@@ -141,6 +144,9 @@ class CreateFullNatEntryRequest(DaraModel):
|
|
|
141
144
|
|
|
142
145
|
def from_map(self, m: dict = None):
|
|
143
146
|
m = m or dict()
|
|
147
|
+
if m.get('AccessDomain') is not None:
|
|
148
|
+
self.access_domain = m.get('AccessDomain')
|
|
149
|
+
|
|
144
150
|
if m.get('AccessIp') is not None:
|
|
145
151
|
self.access_ip = m.get('AccessIp')
|
|
146
152
|
|