alibabacloud-vpc20160428 6.8.0__py3-none-any.whl → 6.9.1__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 +456 -8
- alibabacloud_vpc20160428/models.py +728 -37
- {alibabacloud_vpc20160428-6.8.0.dist-info → alibabacloud_vpc20160428-6.9.1.dist-info}/METADATA +1 -1
- alibabacloud_vpc20160428-6.9.1.dist-info/RECORD +8 -0
- alibabacloud_vpc20160428-6.8.0.dist-info/RECORD +0 -8
- {alibabacloud_vpc20160428-6.8.0.dist-info → alibabacloud_vpc20160428-6.9.1.dist-info}/LICENSE +0 -0
- {alibabacloud_vpc20160428-6.8.0.dist-info → alibabacloud_vpc20160428-6.9.1.dist-info}/WHEEL +0 -0
- {alibabacloud_vpc20160428-6.8.0.dist-info → alibabacloud_vpc20160428-6.9.1.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '6.
|
|
1
|
+
__version__ = '6.9.1'
|
|
@@ -7381,7 +7381,16 @@ class Client(OpenApiClient):
|
|
|
7381
7381
|
runtime: util_models.RuntimeOptions,
|
|
7382
7382
|
) -> vpc_20160428_models.CreateFailoverTestJobResponse:
|
|
7383
7383
|
"""
|
|
7384
|
-
@summary
|
|
7384
|
+
@summary Creates a failover test.
|
|
7385
|
+
|
|
7386
|
+
@description You cannot create a failover test in the following scenarios:
|
|
7387
|
+
You have created a failover test in the region and its type is StartNow.
|
|
7388
|
+
The Express Connect circuit or hosted connection has pending orders or overdue payments.
|
|
7389
|
+
A failover test is already performed on the Express Connect circuit or hosted connection.
|
|
7390
|
+
More than one hosted connection is created over the Express Connect circuit.
|
|
7391
|
+
More than one cross-account VBR is created on the Express Connect circuit.
|
|
7392
|
+
No VBR is associated with the hosted connection.
|
|
7393
|
+
The VLAN ID of the hosted connection is set to 0.
|
|
7385
7394
|
|
|
7386
7395
|
@param request: CreateFailoverTestJobRequest
|
|
7387
7396
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -7440,7 +7449,16 @@ class Client(OpenApiClient):
|
|
|
7440
7449
|
runtime: util_models.RuntimeOptions,
|
|
7441
7450
|
) -> vpc_20160428_models.CreateFailoverTestJobResponse:
|
|
7442
7451
|
"""
|
|
7443
|
-
@summary
|
|
7452
|
+
@summary Creates a failover test.
|
|
7453
|
+
|
|
7454
|
+
@description You cannot create a failover test in the following scenarios:
|
|
7455
|
+
You have created a failover test in the region and its type is StartNow.
|
|
7456
|
+
The Express Connect circuit or hosted connection has pending orders or overdue payments.
|
|
7457
|
+
A failover test is already performed on the Express Connect circuit or hosted connection.
|
|
7458
|
+
More than one hosted connection is created over the Express Connect circuit.
|
|
7459
|
+
More than one cross-account VBR is created on the Express Connect circuit.
|
|
7460
|
+
No VBR is associated with the hosted connection.
|
|
7461
|
+
The VLAN ID of the hosted connection is set to 0.
|
|
7444
7462
|
|
|
7445
7463
|
@param request: CreateFailoverTestJobRequest
|
|
7446
7464
|
@param runtime: runtime options for this request RuntimeOptions
|
|
@@ -7498,7 +7516,16 @@ class Client(OpenApiClient):
|
|
|
7498
7516
|
request: vpc_20160428_models.CreateFailoverTestJobRequest,
|
|
7499
7517
|
) -> vpc_20160428_models.CreateFailoverTestJobResponse:
|
|
7500
7518
|
"""
|
|
7501
|
-
@summary
|
|
7519
|
+
@summary Creates a failover test.
|
|
7520
|
+
|
|
7521
|
+
@description You cannot create a failover test in the following scenarios:
|
|
7522
|
+
You have created a failover test in the region and its type is StartNow.
|
|
7523
|
+
The Express Connect circuit or hosted connection has pending orders or overdue payments.
|
|
7524
|
+
A failover test is already performed on the Express Connect circuit or hosted connection.
|
|
7525
|
+
More than one hosted connection is created over the Express Connect circuit.
|
|
7526
|
+
More than one cross-account VBR is created on the Express Connect circuit.
|
|
7527
|
+
No VBR is associated with the hosted connection.
|
|
7528
|
+
The VLAN ID of the hosted connection is set to 0.
|
|
7502
7529
|
|
|
7503
7530
|
@param request: CreateFailoverTestJobRequest
|
|
7504
7531
|
@return: CreateFailoverTestJobResponse
|
|
@@ -7511,7 +7538,16 @@ class Client(OpenApiClient):
|
|
|
7511
7538
|
request: vpc_20160428_models.CreateFailoverTestJobRequest,
|
|
7512
7539
|
) -> vpc_20160428_models.CreateFailoverTestJobResponse:
|
|
7513
7540
|
"""
|
|
7514
|
-
@summary
|
|
7541
|
+
@summary Creates a failover test.
|
|
7542
|
+
|
|
7543
|
+
@description You cannot create a failover test in the following scenarios:
|
|
7544
|
+
You have created a failover test in the region and its type is StartNow.
|
|
7545
|
+
The Express Connect circuit or hosted connection has pending orders or overdue payments.
|
|
7546
|
+
A failover test is already performed on the Express Connect circuit or hosted connection.
|
|
7547
|
+
More than one hosted connection is created over the Express Connect circuit.
|
|
7548
|
+
More than one cross-account VBR is created on the Express Connect circuit.
|
|
7549
|
+
No VBR is associated with the hosted connection.
|
|
7550
|
+
The VLAN ID of the hosted connection is set to 0.
|
|
7515
7551
|
|
|
7516
7552
|
@param request: CreateFailoverTestJobRequest
|
|
7517
7553
|
@return: CreateFailoverTestJobResponse
|
|
@@ -10517,7 +10553,7 @@ class Client(OpenApiClient):
|
|
|
10517
10553
|
runtime: util_models.RuntimeOptions,
|
|
10518
10554
|
) -> vpc_20160428_models.CreatePhysicalConnectionOccupancyOrderResponse:
|
|
10519
10555
|
"""
|
|
10520
|
-
@summary Creates an order for resource
|
|
10556
|
+
@summary Creates an order for resource occupation of an Express Connect circuit.
|
|
10521
10557
|
|
|
10522
10558
|
@description > You can call this operation only when the Express Connect circuit is in the *Complete** state.
|
|
10523
10559
|
|
|
@@ -10574,7 +10610,7 @@ class Client(OpenApiClient):
|
|
|
10574
10610
|
runtime: util_models.RuntimeOptions,
|
|
10575
10611
|
) -> vpc_20160428_models.CreatePhysicalConnectionOccupancyOrderResponse:
|
|
10576
10612
|
"""
|
|
10577
|
-
@summary Creates an order for resource
|
|
10613
|
+
@summary Creates an order for resource occupation of an Express Connect circuit.
|
|
10578
10614
|
|
|
10579
10615
|
@description > You can call this operation only when the Express Connect circuit is in the *Complete** state.
|
|
10580
10616
|
|
|
@@ -10630,7 +10666,7 @@ class Client(OpenApiClient):
|
|
|
10630
10666
|
request: vpc_20160428_models.CreatePhysicalConnectionOccupancyOrderRequest,
|
|
10631
10667
|
) -> vpc_20160428_models.CreatePhysicalConnectionOccupancyOrderResponse:
|
|
10632
10668
|
"""
|
|
10633
|
-
@summary Creates an order for resource
|
|
10669
|
+
@summary Creates an order for resource occupation of an Express Connect circuit.
|
|
10634
10670
|
|
|
10635
10671
|
@description > You can call this operation only when the Express Connect circuit is in the *Complete** state.
|
|
10636
10672
|
|
|
@@ -10645,7 +10681,7 @@ class Client(OpenApiClient):
|
|
|
10645
10681
|
request: vpc_20160428_models.CreatePhysicalConnectionOccupancyOrderRequest,
|
|
10646
10682
|
) -> vpc_20160428_models.CreatePhysicalConnectionOccupancyOrderResponse:
|
|
10647
10683
|
"""
|
|
10648
|
-
@summary Creates an order for resource
|
|
10684
|
+
@summary Creates an order for resource occupation of an Express Connect circuit.
|
|
10649
10685
|
|
|
10650
10686
|
@description > You can call this operation only when the Express Connect circuit is in the *Complete** state.
|
|
10651
10687
|
|
|
@@ -13848,6 +13884,8 @@ class Client(OpenApiClient):
|
|
|
13848
13884
|
query['Description'] = request.description
|
|
13849
13885
|
if not UtilClient.is_unset(request.dry_run):
|
|
13850
13886
|
query['DryRun'] = request.dry_run
|
|
13887
|
+
if not UtilClient.is_unset(request.enable_dns_hostname):
|
|
13888
|
+
query['EnableDnsHostname'] = request.enable_dns_hostname
|
|
13851
13889
|
if not UtilClient.is_unset(request.enable_ipv_6):
|
|
13852
13890
|
query['EnableIpv6'] = request.enable_ipv_6
|
|
13853
13891
|
if not UtilClient.is_unset(request.ipv_4cidr_mask):
|
|
@@ -13928,6 +13966,8 @@ class Client(OpenApiClient):
|
|
|
13928
13966
|
query['Description'] = request.description
|
|
13929
13967
|
if not UtilClient.is_unset(request.dry_run):
|
|
13930
13968
|
query['DryRun'] = request.dry_run
|
|
13969
|
+
if not UtilClient.is_unset(request.enable_dns_hostname):
|
|
13970
|
+
query['EnableDnsHostname'] = request.enable_dns_hostname
|
|
13931
13971
|
if not UtilClient.is_unset(request.enable_ipv_6):
|
|
13932
13972
|
query['EnableIpv6'] = request.enable_ipv_6
|
|
13933
13973
|
if not UtilClient.is_unset(request.ipv_4cidr_mask):
|
|
@@ -40015,6 +40055,146 @@ class Client(OpenApiClient):
|
|
|
40015
40055
|
runtime = util_models.RuntimeOptions()
|
|
40016
40056
|
return await self.list_vpc_gateway_endpoints_with_options_async(request, runtime)
|
|
40017
40057
|
|
|
40058
|
+
def list_vpc_published_route_entries_with_options(
|
|
40059
|
+
self,
|
|
40060
|
+
request: vpc_20160428_models.ListVpcPublishedRouteEntriesRequest,
|
|
40061
|
+
runtime: util_models.RuntimeOptions,
|
|
40062
|
+
) -> vpc_20160428_models.ListVpcPublishedRouteEntriesResponse:
|
|
40063
|
+
"""
|
|
40064
|
+
@summary 查询路由发布情况
|
|
40065
|
+
|
|
40066
|
+
@param request: ListVpcPublishedRouteEntriesRequest
|
|
40067
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
40068
|
+
@return: ListVpcPublishedRouteEntriesResponse
|
|
40069
|
+
"""
|
|
40070
|
+
UtilClient.validate_model(request)
|
|
40071
|
+
query = {}
|
|
40072
|
+
if not UtilClient.is_unset(request.destination_cidr_block):
|
|
40073
|
+
query['DestinationCidrBlock'] = request.destination_cidr_block
|
|
40074
|
+
if not UtilClient.is_unset(request.max_results):
|
|
40075
|
+
query['MaxResults'] = request.max_results
|
|
40076
|
+
if not UtilClient.is_unset(request.next_token):
|
|
40077
|
+
query['NextToken'] = request.next_token
|
|
40078
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
40079
|
+
query['OwnerAccount'] = request.owner_account
|
|
40080
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
40081
|
+
query['OwnerId'] = request.owner_id
|
|
40082
|
+
if not UtilClient.is_unset(request.region_id):
|
|
40083
|
+
query['RegionId'] = request.region_id
|
|
40084
|
+
if not UtilClient.is_unset(request.region_id):
|
|
40085
|
+
query['RegionId'] = request.region_id
|
|
40086
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
40087
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
40088
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
40089
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
40090
|
+
if not UtilClient.is_unset(request.route_table_id):
|
|
40091
|
+
query['RouteTableId'] = request.route_table_id
|
|
40092
|
+
if not UtilClient.is_unset(request.target_instance_id):
|
|
40093
|
+
query['TargetInstanceId'] = request.target_instance_id
|
|
40094
|
+
if not UtilClient.is_unset(request.target_type):
|
|
40095
|
+
query['TargetType'] = request.target_type
|
|
40096
|
+
req = open_api_models.OpenApiRequest(
|
|
40097
|
+
query=OpenApiUtilClient.query(query)
|
|
40098
|
+
)
|
|
40099
|
+
params = open_api_models.Params(
|
|
40100
|
+
action='ListVpcPublishedRouteEntries',
|
|
40101
|
+
version='2016-04-28',
|
|
40102
|
+
protocol='HTTPS',
|
|
40103
|
+
pathname='/',
|
|
40104
|
+
method='POST',
|
|
40105
|
+
auth_type='AK',
|
|
40106
|
+
style='RPC',
|
|
40107
|
+
req_body_type='formData',
|
|
40108
|
+
body_type='json'
|
|
40109
|
+
)
|
|
40110
|
+
return TeaCore.from_map(
|
|
40111
|
+
vpc_20160428_models.ListVpcPublishedRouteEntriesResponse(),
|
|
40112
|
+
self.call_api(params, req, runtime)
|
|
40113
|
+
)
|
|
40114
|
+
|
|
40115
|
+
async def list_vpc_published_route_entries_with_options_async(
|
|
40116
|
+
self,
|
|
40117
|
+
request: vpc_20160428_models.ListVpcPublishedRouteEntriesRequest,
|
|
40118
|
+
runtime: util_models.RuntimeOptions,
|
|
40119
|
+
) -> vpc_20160428_models.ListVpcPublishedRouteEntriesResponse:
|
|
40120
|
+
"""
|
|
40121
|
+
@summary 查询路由发布情况
|
|
40122
|
+
|
|
40123
|
+
@param request: ListVpcPublishedRouteEntriesRequest
|
|
40124
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
40125
|
+
@return: ListVpcPublishedRouteEntriesResponse
|
|
40126
|
+
"""
|
|
40127
|
+
UtilClient.validate_model(request)
|
|
40128
|
+
query = {}
|
|
40129
|
+
if not UtilClient.is_unset(request.destination_cidr_block):
|
|
40130
|
+
query['DestinationCidrBlock'] = request.destination_cidr_block
|
|
40131
|
+
if not UtilClient.is_unset(request.max_results):
|
|
40132
|
+
query['MaxResults'] = request.max_results
|
|
40133
|
+
if not UtilClient.is_unset(request.next_token):
|
|
40134
|
+
query['NextToken'] = request.next_token
|
|
40135
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
40136
|
+
query['OwnerAccount'] = request.owner_account
|
|
40137
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
40138
|
+
query['OwnerId'] = request.owner_id
|
|
40139
|
+
if not UtilClient.is_unset(request.region_id):
|
|
40140
|
+
query['RegionId'] = request.region_id
|
|
40141
|
+
if not UtilClient.is_unset(request.region_id):
|
|
40142
|
+
query['RegionId'] = request.region_id
|
|
40143
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
40144
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
40145
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
40146
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
40147
|
+
if not UtilClient.is_unset(request.route_table_id):
|
|
40148
|
+
query['RouteTableId'] = request.route_table_id
|
|
40149
|
+
if not UtilClient.is_unset(request.target_instance_id):
|
|
40150
|
+
query['TargetInstanceId'] = request.target_instance_id
|
|
40151
|
+
if not UtilClient.is_unset(request.target_type):
|
|
40152
|
+
query['TargetType'] = request.target_type
|
|
40153
|
+
req = open_api_models.OpenApiRequest(
|
|
40154
|
+
query=OpenApiUtilClient.query(query)
|
|
40155
|
+
)
|
|
40156
|
+
params = open_api_models.Params(
|
|
40157
|
+
action='ListVpcPublishedRouteEntries',
|
|
40158
|
+
version='2016-04-28',
|
|
40159
|
+
protocol='HTTPS',
|
|
40160
|
+
pathname='/',
|
|
40161
|
+
method='POST',
|
|
40162
|
+
auth_type='AK',
|
|
40163
|
+
style='RPC',
|
|
40164
|
+
req_body_type='formData',
|
|
40165
|
+
body_type='json'
|
|
40166
|
+
)
|
|
40167
|
+
return TeaCore.from_map(
|
|
40168
|
+
vpc_20160428_models.ListVpcPublishedRouteEntriesResponse(),
|
|
40169
|
+
await self.call_api_async(params, req, runtime)
|
|
40170
|
+
)
|
|
40171
|
+
|
|
40172
|
+
def list_vpc_published_route_entries(
|
|
40173
|
+
self,
|
|
40174
|
+
request: vpc_20160428_models.ListVpcPublishedRouteEntriesRequest,
|
|
40175
|
+
) -> vpc_20160428_models.ListVpcPublishedRouteEntriesResponse:
|
|
40176
|
+
"""
|
|
40177
|
+
@summary 查询路由发布情况
|
|
40178
|
+
|
|
40179
|
+
@param request: ListVpcPublishedRouteEntriesRequest
|
|
40180
|
+
@return: ListVpcPublishedRouteEntriesResponse
|
|
40181
|
+
"""
|
|
40182
|
+
runtime = util_models.RuntimeOptions()
|
|
40183
|
+
return self.list_vpc_published_route_entries_with_options(request, runtime)
|
|
40184
|
+
|
|
40185
|
+
async def list_vpc_published_route_entries_async(
|
|
40186
|
+
self,
|
|
40187
|
+
request: vpc_20160428_models.ListVpcPublishedRouteEntriesRequest,
|
|
40188
|
+
) -> vpc_20160428_models.ListVpcPublishedRouteEntriesResponse:
|
|
40189
|
+
"""
|
|
40190
|
+
@summary 查询路由发布情况
|
|
40191
|
+
|
|
40192
|
+
@param request: ListVpcPublishedRouteEntriesRequest
|
|
40193
|
+
@return: ListVpcPublishedRouteEntriesResponse
|
|
40194
|
+
"""
|
|
40195
|
+
runtime = util_models.RuntimeOptions()
|
|
40196
|
+
return await self.list_vpc_published_route_entries_with_options_async(request, runtime)
|
|
40197
|
+
|
|
40018
40198
|
def list_vpn_certificate_associations_with_options(
|
|
40019
40199
|
self,
|
|
40020
40200
|
request: vpc_20160428_models.ListVpnCertificateAssociationsRequest,
|
|
@@ -46784,6 +46964,8 @@ class Client(OpenApiClient):
|
|
|
46784
46964
|
query['CidrBlock'] = request.cidr_block
|
|
46785
46965
|
if not UtilClient.is_unset(request.description):
|
|
46786
46966
|
query['Description'] = request.description
|
|
46967
|
+
if not UtilClient.is_unset(request.enable_dns_hostname):
|
|
46968
|
+
query['EnableDnsHostname'] = request.enable_dns_hostname
|
|
46787
46969
|
if not UtilClient.is_unset(request.enable_ipv_6):
|
|
46788
46970
|
query['EnableIPv6'] = request.enable_ipv_6
|
|
46789
46971
|
if not UtilClient.is_unset(request.ipv_6cidr_block):
|
|
@@ -46844,6 +47026,8 @@ class Client(OpenApiClient):
|
|
|
46844
47026
|
query['CidrBlock'] = request.cidr_block
|
|
46845
47027
|
if not UtilClient.is_unset(request.description):
|
|
46846
47028
|
query['Description'] = request.description
|
|
47029
|
+
if not UtilClient.is_unset(request.enable_dns_hostname):
|
|
47030
|
+
query['EnableDnsHostname'] = request.enable_dns_hostname
|
|
46847
47031
|
if not UtilClient.is_unset(request.enable_ipv_6):
|
|
46848
47032
|
query['EnableIPv6'] = request.enable_ipv_6
|
|
46849
47033
|
if not UtilClient.is_unset(request.ipv_6cidr_block):
|
|
@@ -49085,6 +49269,138 @@ class Client(OpenApiClient):
|
|
|
49085
49269
|
runtime = util_models.RuntimeOptions()
|
|
49086
49270
|
return await self.open_traffic_mirror_service_with_options_async(request, runtime)
|
|
49087
49271
|
|
|
49272
|
+
def publish_vpc_route_entries_with_options(
|
|
49273
|
+
self,
|
|
49274
|
+
request: vpc_20160428_models.PublishVpcRouteEntriesRequest,
|
|
49275
|
+
runtime: util_models.RuntimeOptions,
|
|
49276
|
+
) -> vpc_20160428_models.PublishVpcRouteEntriesResponse:
|
|
49277
|
+
"""
|
|
49278
|
+
@summary 发布VPC路由
|
|
49279
|
+
|
|
49280
|
+
@param request: PublishVpcRouteEntriesRequest
|
|
49281
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
49282
|
+
@return: PublishVpcRouteEntriesResponse
|
|
49283
|
+
"""
|
|
49284
|
+
UtilClient.validate_model(request)
|
|
49285
|
+
query = {}
|
|
49286
|
+
if not UtilClient.is_unset(request.dry_run):
|
|
49287
|
+
query['DryRun'] = request.dry_run
|
|
49288
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
49289
|
+
query['OwnerAccount'] = request.owner_account
|
|
49290
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
49291
|
+
query['OwnerId'] = request.owner_id
|
|
49292
|
+
if not UtilClient.is_unset(request.region_id):
|
|
49293
|
+
query['RegionId'] = request.region_id
|
|
49294
|
+
if not UtilClient.is_unset(request.region_id):
|
|
49295
|
+
query['RegionId'] = request.region_id
|
|
49296
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
49297
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
49298
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
49299
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
49300
|
+
if not UtilClient.is_unset(request.route_entries):
|
|
49301
|
+
query['RouteEntries'] = request.route_entries
|
|
49302
|
+
if not UtilClient.is_unset(request.target_instance_id):
|
|
49303
|
+
query['TargetInstanceId'] = request.target_instance_id
|
|
49304
|
+
if not UtilClient.is_unset(request.target_type):
|
|
49305
|
+
query['TargetType'] = request.target_type
|
|
49306
|
+
req = open_api_models.OpenApiRequest(
|
|
49307
|
+
query=OpenApiUtilClient.query(query)
|
|
49308
|
+
)
|
|
49309
|
+
params = open_api_models.Params(
|
|
49310
|
+
action='PublishVpcRouteEntries',
|
|
49311
|
+
version='2016-04-28',
|
|
49312
|
+
protocol='HTTPS',
|
|
49313
|
+
pathname='/',
|
|
49314
|
+
method='POST',
|
|
49315
|
+
auth_type='AK',
|
|
49316
|
+
style='RPC',
|
|
49317
|
+
req_body_type='formData',
|
|
49318
|
+
body_type='json'
|
|
49319
|
+
)
|
|
49320
|
+
return TeaCore.from_map(
|
|
49321
|
+
vpc_20160428_models.PublishVpcRouteEntriesResponse(),
|
|
49322
|
+
self.call_api(params, req, runtime)
|
|
49323
|
+
)
|
|
49324
|
+
|
|
49325
|
+
async def publish_vpc_route_entries_with_options_async(
|
|
49326
|
+
self,
|
|
49327
|
+
request: vpc_20160428_models.PublishVpcRouteEntriesRequest,
|
|
49328
|
+
runtime: util_models.RuntimeOptions,
|
|
49329
|
+
) -> vpc_20160428_models.PublishVpcRouteEntriesResponse:
|
|
49330
|
+
"""
|
|
49331
|
+
@summary 发布VPC路由
|
|
49332
|
+
|
|
49333
|
+
@param request: PublishVpcRouteEntriesRequest
|
|
49334
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
49335
|
+
@return: PublishVpcRouteEntriesResponse
|
|
49336
|
+
"""
|
|
49337
|
+
UtilClient.validate_model(request)
|
|
49338
|
+
query = {}
|
|
49339
|
+
if not UtilClient.is_unset(request.dry_run):
|
|
49340
|
+
query['DryRun'] = request.dry_run
|
|
49341
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
49342
|
+
query['OwnerAccount'] = request.owner_account
|
|
49343
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
49344
|
+
query['OwnerId'] = request.owner_id
|
|
49345
|
+
if not UtilClient.is_unset(request.region_id):
|
|
49346
|
+
query['RegionId'] = request.region_id
|
|
49347
|
+
if not UtilClient.is_unset(request.region_id):
|
|
49348
|
+
query['RegionId'] = request.region_id
|
|
49349
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
49350
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
49351
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
49352
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
49353
|
+
if not UtilClient.is_unset(request.route_entries):
|
|
49354
|
+
query['RouteEntries'] = request.route_entries
|
|
49355
|
+
if not UtilClient.is_unset(request.target_instance_id):
|
|
49356
|
+
query['TargetInstanceId'] = request.target_instance_id
|
|
49357
|
+
if not UtilClient.is_unset(request.target_type):
|
|
49358
|
+
query['TargetType'] = request.target_type
|
|
49359
|
+
req = open_api_models.OpenApiRequest(
|
|
49360
|
+
query=OpenApiUtilClient.query(query)
|
|
49361
|
+
)
|
|
49362
|
+
params = open_api_models.Params(
|
|
49363
|
+
action='PublishVpcRouteEntries',
|
|
49364
|
+
version='2016-04-28',
|
|
49365
|
+
protocol='HTTPS',
|
|
49366
|
+
pathname='/',
|
|
49367
|
+
method='POST',
|
|
49368
|
+
auth_type='AK',
|
|
49369
|
+
style='RPC',
|
|
49370
|
+
req_body_type='formData',
|
|
49371
|
+
body_type='json'
|
|
49372
|
+
)
|
|
49373
|
+
return TeaCore.from_map(
|
|
49374
|
+
vpc_20160428_models.PublishVpcRouteEntriesResponse(),
|
|
49375
|
+
await self.call_api_async(params, req, runtime)
|
|
49376
|
+
)
|
|
49377
|
+
|
|
49378
|
+
def publish_vpc_route_entries(
|
|
49379
|
+
self,
|
|
49380
|
+
request: vpc_20160428_models.PublishVpcRouteEntriesRequest,
|
|
49381
|
+
) -> vpc_20160428_models.PublishVpcRouteEntriesResponse:
|
|
49382
|
+
"""
|
|
49383
|
+
@summary 发布VPC路由
|
|
49384
|
+
|
|
49385
|
+
@param request: PublishVpcRouteEntriesRequest
|
|
49386
|
+
@return: PublishVpcRouteEntriesResponse
|
|
49387
|
+
"""
|
|
49388
|
+
runtime = util_models.RuntimeOptions()
|
|
49389
|
+
return self.publish_vpc_route_entries_with_options(request, runtime)
|
|
49390
|
+
|
|
49391
|
+
async def publish_vpc_route_entries_async(
|
|
49392
|
+
self,
|
|
49393
|
+
request: vpc_20160428_models.PublishVpcRouteEntriesRequest,
|
|
49394
|
+
) -> vpc_20160428_models.PublishVpcRouteEntriesResponse:
|
|
49395
|
+
"""
|
|
49396
|
+
@summary 发布VPC路由
|
|
49397
|
+
|
|
49398
|
+
@param request: PublishVpcRouteEntriesRequest
|
|
49399
|
+
@return: PublishVpcRouteEntriesResponse
|
|
49400
|
+
"""
|
|
49401
|
+
runtime = util_models.RuntimeOptions()
|
|
49402
|
+
return await self.publish_vpc_route_entries_with_options_async(request, runtime)
|
|
49403
|
+
|
|
49088
49404
|
def publish_vpn_route_entry_with_options(
|
|
49089
49405
|
self,
|
|
49090
49406
|
request: vpc_20160428_models.PublishVpnRouteEntryRequest,
|
|
@@ -55636,3 +55952,135 @@ class Client(OpenApiClient):
|
|
|
55636
55952
|
"""
|
|
55637
55953
|
runtime = util_models.RuntimeOptions()
|
|
55638
55954
|
return await self.vpc_describe_vpc_nat_gateway_network_interface_quota_with_options_async(request, runtime)
|
|
55955
|
+
|
|
55956
|
+
def withdraw_vpc_published_route_entries_with_options(
|
|
55957
|
+
self,
|
|
55958
|
+
request: vpc_20160428_models.WithdrawVpcPublishedRouteEntriesRequest,
|
|
55959
|
+
runtime: util_models.RuntimeOptions,
|
|
55960
|
+
) -> vpc_20160428_models.WithdrawVpcPublishedRouteEntriesResponse:
|
|
55961
|
+
"""
|
|
55962
|
+
@summary 撤回VPC已发布路由
|
|
55963
|
+
|
|
55964
|
+
@param request: WithdrawVpcPublishedRouteEntriesRequest
|
|
55965
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
55966
|
+
@return: WithdrawVpcPublishedRouteEntriesResponse
|
|
55967
|
+
"""
|
|
55968
|
+
UtilClient.validate_model(request)
|
|
55969
|
+
query = {}
|
|
55970
|
+
if not UtilClient.is_unset(request.dry_run):
|
|
55971
|
+
query['DryRun'] = request.dry_run
|
|
55972
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
55973
|
+
query['OwnerAccount'] = request.owner_account
|
|
55974
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
55975
|
+
query['OwnerId'] = request.owner_id
|
|
55976
|
+
if not UtilClient.is_unset(request.region_id):
|
|
55977
|
+
query['RegionId'] = request.region_id
|
|
55978
|
+
if not UtilClient.is_unset(request.region_id):
|
|
55979
|
+
query['RegionId'] = request.region_id
|
|
55980
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
55981
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
55982
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
55983
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
55984
|
+
if not UtilClient.is_unset(request.route_entries):
|
|
55985
|
+
query['RouteEntries'] = request.route_entries
|
|
55986
|
+
if not UtilClient.is_unset(request.target_instance_id):
|
|
55987
|
+
query['TargetInstanceId'] = request.target_instance_id
|
|
55988
|
+
if not UtilClient.is_unset(request.target_type):
|
|
55989
|
+
query['TargetType'] = request.target_type
|
|
55990
|
+
req = open_api_models.OpenApiRequest(
|
|
55991
|
+
query=OpenApiUtilClient.query(query)
|
|
55992
|
+
)
|
|
55993
|
+
params = open_api_models.Params(
|
|
55994
|
+
action='WithdrawVpcPublishedRouteEntries',
|
|
55995
|
+
version='2016-04-28',
|
|
55996
|
+
protocol='HTTPS',
|
|
55997
|
+
pathname='/',
|
|
55998
|
+
method='POST',
|
|
55999
|
+
auth_type='AK',
|
|
56000
|
+
style='RPC',
|
|
56001
|
+
req_body_type='formData',
|
|
56002
|
+
body_type='json'
|
|
56003
|
+
)
|
|
56004
|
+
return TeaCore.from_map(
|
|
56005
|
+
vpc_20160428_models.WithdrawVpcPublishedRouteEntriesResponse(),
|
|
56006
|
+
self.call_api(params, req, runtime)
|
|
56007
|
+
)
|
|
56008
|
+
|
|
56009
|
+
async def withdraw_vpc_published_route_entries_with_options_async(
|
|
56010
|
+
self,
|
|
56011
|
+
request: vpc_20160428_models.WithdrawVpcPublishedRouteEntriesRequest,
|
|
56012
|
+
runtime: util_models.RuntimeOptions,
|
|
56013
|
+
) -> vpc_20160428_models.WithdrawVpcPublishedRouteEntriesResponse:
|
|
56014
|
+
"""
|
|
56015
|
+
@summary 撤回VPC已发布路由
|
|
56016
|
+
|
|
56017
|
+
@param request: WithdrawVpcPublishedRouteEntriesRequest
|
|
56018
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
56019
|
+
@return: WithdrawVpcPublishedRouteEntriesResponse
|
|
56020
|
+
"""
|
|
56021
|
+
UtilClient.validate_model(request)
|
|
56022
|
+
query = {}
|
|
56023
|
+
if not UtilClient.is_unset(request.dry_run):
|
|
56024
|
+
query['DryRun'] = request.dry_run
|
|
56025
|
+
if not UtilClient.is_unset(request.owner_account):
|
|
56026
|
+
query['OwnerAccount'] = request.owner_account
|
|
56027
|
+
if not UtilClient.is_unset(request.owner_id):
|
|
56028
|
+
query['OwnerId'] = request.owner_id
|
|
56029
|
+
if not UtilClient.is_unset(request.region_id):
|
|
56030
|
+
query['RegionId'] = request.region_id
|
|
56031
|
+
if not UtilClient.is_unset(request.region_id):
|
|
56032
|
+
query['RegionId'] = request.region_id
|
|
56033
|
+
if not UtilClient.is_unset(request.resource_owner_account):
|
|
56034
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
56035
|
+
if not UtilClient.is_unset(request.resource_owner_id):
|
|
56036
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
56037
|
+
if not UtilClient.is_unset(request.route_entries):
|
|
56038
|
+
query['RouteEntries'] = request.route_entries
|
|
56039
|
+
if not UtilClient.is_unset(request.target_instance_id):
|
|
56040
|
+
query['TargetInstanceId'] = request.target_instance_id
|
|
56041
|
+
if not UtilClient.is_unset(request.target_type):
|
|
56042
|
+
query['TargetType'] = request.target_type
|
|
56043
|
+
req = open_api_models.OpenApiRequest(
|
|
56044
|
+
query=OpenApiUtilClient.query(query)
|
|
56045
|
+
)
|
|
56046
|
+
params = open_api_models.Params(
|
|
56047
|
+
action='WithdrawVpcPublishedRouteEntries',
|
|
56048
|
+
version='2016-04-28',
|
|
56049
|
+
protocol='HTTPS',
|
|
56050
|
+
pathname='/',
|
|
56051
|
+
method='POST',
|
|
56052
|
+
auth_type='AK',
|
|
56053
|
+
style='RPC',
|
|
56054
|
+
req_body_type='formData',
|
|
56055
|
+
body_type='json'
|
|
56056
|
+
)
|
|
56057
|
+
return TeaCore.from_map(
|
|
56058
|
+
vpc_20160428_models.WithdrawVpcPublishedRouteEntriesResponse(),
|
|
56059
|
+
await self.call_api_async(params, req, runtime)
|
|
56060
|
+
)
|
|
56061
|
+
|
|
56062
|
+
def withdraw_vpc_published_route_entries(
|
|
56063
|
+
self,
|
|
56064
|
+
request: vpc_20160428_models.WithdrawVpcPublishedRouteEntriesRequest,
|
|
56065
|
+
) -> vpc_20160428_models.WithdrawVpcPublishedRouteEntriesResponse:
|
|
56066
|
+
"""
|
|
56067
|
+
@summary 撤回VPC已发布路由
|
|
56068
|
+
|
|
56069
|
+
@param request: WithdrawVpcPublishedRouteEntriesRequest
|
|
56070
|
+
@return: WithdrawVpcPublishedRouteEntriesResponse
|
|
56071
|
+
"""
|
|
56072
|
+
runtime = util_models.RuntimeOptions()
|
|
56073
|
+
return self.withdraw_vpc_published_route_entries_with_options(request, runtime)
|
|
56074
|
+
|
|
56075
|
+
async def withdraw_vpc_published_route_entries_async(
|
|
56076
|
+
self,
|
|
56077
|
+
request: vpc_20160428_models.WithdrawVpcPublishedRouteEntriesRequest,
|
|
56078
|
+
) -> vpc_20160428_models.WithdrawVpcPublishedRouteEntriesResponse:
|
|
56079
|
+
"""
|
|
56080
|
+
@summary 撤回VPC已发布路由
|
|
56081
|
+
|
|
56082
|
+
@param request: WithdrawVpcPublishedRouteEntriesRequest
|
|
56083
|
+
@return: WithdrawVpcPublishedRouteEntriesResponse
|
|
56084
|
+
"""
|
|
56085
|
+
runtime = util_models.RuntimeOptions()
|
|
56086
|
+
return await self.withdraw_vpc_published_route_entries_with_options_async(request, runtime)
|