alibabacloud-vpc20160428 6.14.1__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 +16 -258
- alibabacloud_vpc20160428/models/__init__.py +0 -18
- alibabacloud_vpc20160428/models/_create_forward_entry_request.py +7 -6
- alibabacloud_vpc20160428/models/_create_full_nat_entry_request.py +8 -2
- alibabacloud_vpc20160428/models/_create_nat_gateway_request.py +2 -0
- alibabacloud_vpc20160428/models/_create_nat_gateway_shrink_request.py +2 -0
- alibabacloud_vpc20160428/models/_create_nat_ip_request.py +2 -0
- alibabacloud_vpc20160428/models/_create_nat_ip_response_body.py +5 -0
- alibabacloud_vpc20160428/models/_create_snat_entry_request.py +5 -0
- alibabacloud_vpc20160428/models/_create_vpn_attachment_request.py +8 -0
- alibabacloud_vpc20160428/models/_delete_nat_ip_request.py +2 -0
- alibabacloud_vpc20160428/models/_describe_nat_gateway_associate_network_interfaces_response_body.py +1 -0
- alibabacloud_vpc20160428/models/_describe_nat_gateways_request.py +2 -2
- alibabacloud_vpc20160428/models/_describe_nat_gateways_response_body.py +11 -0
- alibabacloud_vpc20160428/models/_describe_physical_connection_loaresponse_body.py +8 -0
- alibabacloud_vpc20160428/models/_describe_snat_table_entries_request.py +1 -0
- alibabacloud_vpc20160428/models/_describe_snat_table_entries_response_body.py +4 -0
- alibabacloud_vpc20160428/models/_describe_virtual_border_routers_for_physical_connection_response_body.py +8 -0
- alibabacloud_vpc20160428/models/_describe_vpn_attachments_response_body.py +8 -0
- alibabacloud_vpc20160428/models/_describe_vpn_connection_response_body.py +8 -0
- alibabacloud_vpc20160428/models/_describe_vpn_connections_response_body.py +8 -0
- alibabacloud_vpc20160428/models/_describe_vpn_gateway_available_zones_request.py +8 -0
- alibabacloud_vpc20160428/models/_describe_vpn_gateway_response_body.py +8 -0
- alibabacloud_vpc20160428/models/_describe_vpn_gateways_request.py +8 -0
- alibabacloud_vpc20160428/models/_describe_vpn_gateways_response_body.py +8 -0
- alibabacloud_vpc20160428/models/_get_nat_gateway_attribute_response_body.py +16 -0
- alibabacloud_vpc20160428/models/_list_full_nat_entries_response_body.py +16 -0
- alibabacloud_vpc20160428/models/_list_nat_ips_request.py +2 -0
- alibabacloud_vpc20160428/models/_list_nat_ips_response_body.py +1 -0
- alibabacloud_vpc20160428/models/_modify_forward_entry_request.py +5 -0
- alibabacloud_vpc20160428/models/_modify_full_nat_entry_attribute_request.py +8 -0
- alibabacloud_vpc20160428/models/_modify_nat_gateway_attribute_request.py +11 -7
- alibabacloud_vpc20160428/models/_modify_nat_gateway_attribute_shrink_request.py +9 -7
- alibabacloud_vpc20160428/models/_modify_snat_entry_request.py +8 -0
- {alibabacloud_vpc20160428-6.14.1.dist-info → alibabacloud_vpc20160428-7.0.0.dist-info}/METADATA +2 -2
- {alibabacloud_vpc20160428-6.14.1.dist-info → alibabacloud_vpc20160428-7.0.0.dist-info}/RECORD +40 -49
- 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-6.14.1.dist-info → alibabacloud_vpc20160428-7.0.0.dist-info}/LICENSE +0 -0
- {alibabacloud_vpc20160428-6.14.1.dist-info → alibabacloud_vpc20160428-7.0.0.dist-info}/WHEEL +0 -0
- {alibabacloud_vpc20160428-6.14.1.dist-info → alibabacloud_vpc20160428-7.0.0.dist-info}/top_level.txt +0 -0
|
@@ -144,6 +144,7 @@ class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway(DaraModel):
|
|
|
144
144
|
tags: main_models.DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayTags = None,
|
|
145
145
|
vpc_id: str = None,
|
|
146
146
|
):
|
|
147
|
+
# Access mode for reverse access to VPC NAT gateway.
|
|
147
148
|
self.access_mode = access_mode
|
|
148
149
|
# Indicates whether automatic payment is enabled. Valid values:
|
|
149
150
|
#
|
|
@@ -176,6 +177,9 @@ class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway(DaraModel):
|
|
|
176
177
|
#
|
|
177
178
|
# > Note: If you use the NAT mode, the EIP occupies one private IP address on the vSwitch of the NAT gateway. Make sure that the vSwitch has sufficient private IP addresses. Otherwise, the NAT gateway fails to be associated with the EIP. In NAT mode, you can associate a NAT gateway with up to 50 EIPs.
|
|
178
179
|
self.eip_bind_mode = eip_bind_mode
|
|
180
|
+
# Whether to enable session logging, with values:
|
|
181
|
+
# - **true**: Session logging is enabled.
|
|
182
|
+
# - **false**: Session logging is disabled.
|
|
179
183
|
self.enable_session_log = enable_session_log
|
|
180
184
|
# The time when the NAT gateway expires.
|
|
181
185
|
self.expired_time = expired_time
|
|
@@ -197,6 +201,7 @@ class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway(DaraModel):
|
|
|
197
201
|
self.internet_charge_type = internet_charge_type
|
|
198
202
|
# The list of elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.
|
|
199
203
|
self.ip_lists = ip_lists
|
|
204
|
+
# List of NAT IP prefix address segments.
|
|
200
205
|
self.ip_prefix_list = ip_prefix_list
|
|
201
206
|
# The name of the NAT gateway.
|
|
202
207
|
self.name = name
|
|
@@ -713,6 +718,7 @@ class DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayIpPrefixListIpPrefixLi
|
|
|
713
718
|
self,
|
|
714
719
|
ip_prefix: str = None,
|
|
715
720
|
):
|
|
721
|
+
# NAT IP prefix address range
|
|
716
722
|
self.ip_prefix = ip_prefix
|
|
717
723
|
|
|
718
724
|
def validate(self):
|
|
@@ -902,7 +908,12 @@ class DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayAccessMode(DaraModel):
|
|
|
902
908
|
mode_value: str = None,
|
|
903
909
|
tunnel_type: str = None,
|
|
904
910
|
):
|
|
911
|
+
# Access mode, with values:
|
|
912
|
+
# - **route**: Route mode.
|
|
913
|
+
# - **tunnel**: Tunnel mode.
|
|
905
914
|
self.mode_value = mode_value
|
|
915
|
+
# Tunnel mode type:
|
|
916
|
+
# - **geneve**: Geneve type.
|
|
906
917
|
self.tunnel_type = tunnel_type
|
|
907
918
|
|
|
908
919
|
def validate(self):
|
|
@@ -52,6 +52,7 @@ class DescribePhysicalConnectionLOAResponseBodyPhysicalConnectionLOAType(DaraMod
|
|
|
52
52
|
company_localized_name: str = None,
|
|
53
53
|
company_name: str = None,
|
|
54
54
|
construction_time: str = None,
|
|
55
|
+
description: str = None,
|
|
55
56
|
instance_id: str = None,
|
|
56
57
|
line_code: str = None,
|
|
57
58
|
line_label: str = None,
|
|
@@ -69,6 +70,7 @@ class DescribePhysicalConnectionLOAResponseBodyPhysicalConnectionLOAType(DaraMod
|
|
|
69
70
|
self.company_name = company_name
|
|
70
71
|
# The time when construction starts.
|
|
71
72
|
self.construction_time = construction_time
|
|
73
|
+
self.description = description
|
|
72
74
|
# The ID of the Express Connect circuit.
|
|
73
75
|
self.instance_id = instance_id
|
|
74
76
|
# The circuit code provided by the connectivity provider.
|
|
@@ -126,6 +128,9 @@ class DescribePhysicalConnectionLOAResponseBodyPhysicalConnectionLOAType(DaraMod
|
|
|
126
128
|
if self.construction_time is not None:
|
|
127
129
|
result['ConstructionTime'] = self.construction_time
|
|
128
130
|
|
|
131
|
+
if self.description is not None:
|
|
132
|
+
result['Description'] = self.description
|
|
133
|
+
|
|
129
134
|
if self.instance_id is not None:
|
|
130
135
|
result['InstanceId'] = self.instance_id
|
|
131
136
|
|
|
@@ -169,6 +174,9 @@ class DescribePhysicalConnectionLOAResponseBodyPhysicalConnectionLOAType(DaraMod
|
|
|
169
174
|
if m.get('ConstructionTime') is not None:
|
|
170
175
|
self.construction_time = m.get('ConstructionTime')
|
|
171
176
|
|
|
177
|
+
if m.get('Description') is not None:
|
|
178
|
+
self.description = m.get('Description')
|
|
179
|
+
|
|
172
180
|
if m.get('InstanceId') is not None:
|
|
173
181
|
self.instance_id = m.get('InstanceId')
|
|
174
182
|
|
|
@@ -29,6 +29,7 @@ class DescribeSnatTableEntriesRequest(DaraModel):
|
|
|
29
29
|
#
|
|
30
30
|
# > You must specify at least one of **SnatTableId** and **NatGatewayId**.
|
|
31
31
|
self.nat_gateway_id = nat_gateway_id
|
|
32
|
+
# The ID of the elastic network interface to be queried.
|
|
32
33
|
self.network_interface_ids = network_interface_ids
|
|
33
34
|
self.owner_account = owner_account
|
|
34
35
|
self.owner_id = owner_id
|
|
@@ -122,9 +122,13 @@ class DescribeSnatTableEntriesResponseBodySnatTableEntriesSnatTableEntry(DaraMod
|
|
|
122
122
|
source_vswitch_id: str = None,
|
|
123
123
|
status: str = None,
|
|
124
124
|
):
|
|
125
|
+
# Whether to enable IP affinity. Values:
|
|
126
|
+
# - **0**: Disable IP affinity. - **1**: Enable IP affinity.
|
|
127
|
+
# > After enabling the IP affinity switch, if an SNAT entry is bound to multiple EIPs or NAT IPs, the same client will use the same EIP or NAT IP for access. Otherwise, the client will randomly select from the bound EIPs or NAT IPs for access.
|
|
125
128
|
self.eip_affinity = eip_affinity
|
|
126
129
|
# The ID of the NAT gateway to which the SNAT entry belongs.
|
|
127
130
|
self.nat_gateway_id = nat_gateway_id
|
|
131
|
+
# Elastic Network Interface ID
|
|
128
132
|
self.network_interface_id = network_interface_id
|
|
129
133
|
# The ID of the SNAT entry.
|
|
130
134
|
self.snat_entry_id = snat_entry_id
|
|
@@ -132,6 +132,7 @@ class DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorder
|
|
|
132
132
|
termination_time: str = None,
|
|
133
133
|
type: str = None,
|
|
134
134
|
vbr_id: str = None,
|
|
135
|
+
vbr_name: str = None,
|
|
135
136
|
vbr_owner_uid: int = None,
|
|
136
137
|
vlan_id: int = None,
|
|
137
138
|
):
|
|
@@ -202,6 +203,7 @@ class DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorder
|
|
|
202
203
|
self.type = type
|
|
203
204
|
# The VBR ID.
|
|
204
205
|
self.vbr_id = vbr_id
|
|
206
|
+
self.vbr_name = vbr_name
|
|
205
207
|
# The ID of the Alibaba Cloud account to which the VBR belongs.
|
|
206
208
|
#
|
|
207
209
|
# If the owner of the VBR is the same as that of the Express Connect circuit, this parameter is empty.
|
|
@@ -280,6 +282,9 @@ class DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorder
|
|
|
280
282
|
if self.vbr_id is not None:
|
|
281
283
|
result['VbrId'] = self.vbr_id
|
|
282
284
|
|
|
285
|
+
if self.vbr_name is not None:
|
|
286
|
+
result['VbrName'] = self.vbr_name
|
|
287
|
+
|
|
283
288
|
if self.vbr_owner_uid is not None:
|
|
284
289
|
result['VbrOwnerUid'] = self.vbr_owner_uid
|
|
285
290
|
|
|
@@ -353,6 +358,9 @@ class DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorder
|
|
|
353
358
|
if m.get('VbrId') is not None:
|
|
354
359
|
self.vbr_id = m.get('VbrId')
|
|
355
360
|
|
|
361
|
+
if m.get('VbrName') is not None:
|
|
362
|
+
self.vbr_name = m.get('VbrName')
|
|
363
|
+
|
|
356
364
|
if m.get('VbrOwnerUid') is not None:
|
|
357
365
|
self.vbr_owner_uid = m.get('VbrOwnerUid')
|
|
358
366
|
|
|
@@ -91,6 +91,7 @@ class DescribeVpnAttachmentsResponseBodyVpnAttachments(DaraModel):
|
|
|
91
91
|
tags: List[main_models.DescribeVpnAttachmentsResponseBodyVpnAttachmentsTags] = None,
|
|
92
92
|
transit_router_id: str = None,
|
|
93
93
|
transit_router_name: str = None,
|
|
94
|
+
tunnel_bandwidth: str = None,
|
|
94
95
|
):
|
|
95
96
|
# The type of resource that is associated with the IPsec-VPN connection. The value is set to **CEN**, which indicates that the IPsec-VPN connection is associated with a transit router.
|
|
96
97
|
self.attach_type = attach_type
|
|
@@ -120,6 +121,7 @@ class DescribeVpnAttachmentsResponseBodyVpnAttachments(DaraModel):
|
|
|
120
121
|
self.transit_router_id = transit_router_id
|
|
121
122
|
# The name of the transit router.
|
|
122
123
|
self.transit_router_name = transit_router_name
|
|
124
|
+
self.tunnel_bandwidth = tunnel_bandwidth
|
|
123
125
|
|
|
124
126
|
def validate(self):
|
|
125
127
|
if self.tags:
|
|
@@ -161,6 +163,9 @@ class DescribeVpnAttachmentsResponseBodyVpnAttachments(DaraModel):
|
|
|
161
163
|
if self.transit_router_name is not None:
|
|
162
164
|
result['TransitRouterName'] = self.transit_router_name
|
|
163
165
|
|
|
166
|
+
if self.tunnel_bandwidth is not None:
|
|
167
|
+
result['TunnelBandwidth'] = self.tunnel_bandwidth
|
|
168
|
+
|
|
164
169
|
return result
|
|
165
170
|
|
|
166
171
|
def from_map(self, m: dict = None):
|
|
@@ -195,6 +200,9 @@ class DescribeVpnAttachmentsResponseBodyVpnAttachments(DaraModel):
|
|
|
195
200
|
if m.get('TransitRouterName') is not None:
|
|
196
201
|
self.transit_router_name = m.get('TransitRouterName')
|
|
197
202
|
|
|
203
|
+
if m.get('TunnelBandwidth') is not None:
|
|
204
|
+
self.tunnel_bandwidth = m.get('TunnelBandwidth')
|
|
205
|
+
|
|
198
206
|
return self
|
|
199
207
|
|
|
200
208
|
class DescribeVpnAttachmentsResponseBodyVpnAttachmentsTags(DaraModel):
|
|
@@ -35,6 +35,7 @@ class DescribeVpnConnectionResponseBody(DaraModel):
|
|
|
35
35
|
tags: main_models.DescribeVpnConnectionResponseBodyTags = None,
|
|
36
36
|
transit_router_id: str = None,
|
|
37
37
|
transit_router_name: str = None,
|
|
38
|
+
tunnel_bandwidth: str = None,
|
|
38
39
|
tunnel_options_specification: main_models.DescribeVpnConnectionResponseBodyTunnelOptionsSpecification = None,
|
|
39
40
|
vco_health_check: main_models.DescribeVpnConnectionResponseBodyVcoHealthCheck = None,
|
|
40
41
|
vpn_bgp_config: main_models.DescribeVpnConnectionResponseBodyVpnBgpConfig = None,
|
|
@@ -142,6 +143,7 @@ class DescribeVpnConnectionResponseBody(DaraModel):
|
|
|
142
143
|
self.transit_router_id = transit_router_id
|
|
143
144
|
# The name of the transit router.
|
|
144
145
|
self.transit_router_name = transit_router_name
|
|
146
|
+
self.tunnel_bandwidth = tunnel_bandwidth
|
|
145
147
|
# The tunnel configurations of the IPsec-VPN connection.
|
|
146
148
|
#
|
|
147
149
|
# Parameters in **TunnelOptionsSpecification** are returned only if you query an IPsec-VPN connection in dual-tunnel mode.
|
|
@@ -253,6 +255,9 @@ class DescribeVpnConnectionResponseBody(DaraModel):
|
|
|
253
255
|
if self.transit_router_name is not None:
|
|
254
256
|
result['TransitRouterName'] = self.transit_router_name
|
|
255
257
|
|
|
258
|
+
if self.tunnel_bandwidth is not None:
|
|
259
|
+
result['TunnelBandwidth'] = self.tunnel_bandwidth
|
|
260
|
+
|
|
256
261
|
if self.tunnel_options_specification is not None:
|
|
257
262
|
result['TunnelOptionsSpecification'] = self.tunnel_options_specification.to_map()
|
|
258
263
|
|
|
@@ -353,6 +358,9 @@ class DescribeVpnConnectionResponseBody(DaraModel):
|
|
|
353
358
|
if m.get('TransitRouterName') is not None:
|
|
354
359
|
self.transit_router_name = m.get('TransitRouterName')
|
|
355
360
|
|
|
361
|
+
if m.get('TunnelBandwidth') is not None:
|
|
362
|
+
self.tunnel_bandwidth = m.get('TunnelBandwidth')
|
|
363
|
+
|
|
356
364
|
if m.get('TunnelOptionsSpecification') is not None:
|
|
357
365
|
temp_model = main_models.DescribeVpnConnectionResponseBodyTunnelOptionsSpecification()
|
|
358
366
|
self.tunnel_options_specification = temp_model.from_map(m.get('TunnelOptionsSpecification'))
|
|
@@ -135,6 +135,7 @@ class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnection(DaraModel):
|
|
|
135
135
|
tag: main_models.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTag = None,
|
|
136
136
|
transit_router_id: str = None,
|
|
137
137
|
transit_router_name: str = None,
|
|
138
|
+
tunnel_bandwidth: str = None,
|
|
138
139
|
tunnel_options_specification: main_models.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecification = None,
|
|
139
140
|
vco_health_check: main_models.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionVcoHealthCheck = None,
|
|
140
141
|
vpn_bgp_config: main_models.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionVpnBgpConfig = None,
|
|
@@ -243,6 +244,7 @@ class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnection(DaraModel):
|
|
|
243
244
|
self.transit_router_id = transit_router_id
|
|
244
245
|
# The name of the transit router.
|
|
245
246
|
self.transit_router_name = transit_router_name
|
|
247
|
+
self.tunnel_bandwidth = tunnel_bandwidth
|
|
246
248
|
# The tunnel configurations of the IPsec-VPN connection.
|
|
247
249
|
#
|
|
248
250
|
# Parameters in **TunnelOptionsSpecification** are returned only if you query an IPsec-VPN connection in dual-tunnel mode.
|
|
@@ -347,6 +349,9 @@ class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnection(DaraModel):
|
|
|
347
349
|
if self.transit_router_name is not None:
|
|
348
350
|
result['TransitRouterName'] = self.transit_router_name
|
|
349
351
|
|
|
352
|
+
if self.tunnel_bandwidth is not None:
|
|
353
|
+
result['TunnelBandwidth'] = self.tunnel_bandwidth
|
|
354
|
+
|
|
350
355
|
if self.tunnel_options_specification is not None:
|
|
351
356
|
result['TunnelOptionsSpecification'] = self.tunnel_options_specification.to_map()
|
|
352
357
|
|
|
@@ -441,6 +446,9 @@ class DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnection(DaraModel):
|
|
|
441
446
|
if m.get('TransitRouterName') is not None:
|
|
442
447
|
self.transit_router_name = m.get('TransitRouterName')
|
|
443
448
|
|
|
449
|
+
if m.get('TunnelBandwidth') is not None:
|
|
450
|
+
self.tunnel_bandwidth = m.get('TunnelBandwidth')
|
|
451
|
+
|
|
444
452
|
if m.get('TunnelOptionsSpecification') is not None:
|
|
445
453
|
temp_model = main_models.DescribeVpnConnectionsResponseBodyVpnConnectionsVpnConnectionTunnelOptionsSpecification()
|
|
446
454
|
self.tunnel_options_specification = temp_model.from_map(m.get('TunnelOptionsSpecification'))
|
|
@@ -8,6 +8,7 @@ class DescribeVpnGatewayAvailableZonesRequest(DaraModel):
|
|
|
8
8
|
def __init__(
|
|
9
9
|
self,
|
|
10
10
|
accept_language: str = None,
|
|
11
|
+
gateway_type: str = None,
|
|
11
12
|
owner_account: str = None,
|
|
12
13
|
owner_id: int = None,
|
|
13
14
|
region_id: str = None,
|
|
@@ -20,6 +21,7 @@ class DescribeVpnGatewayAvailableZonesRequest(DaraModel):
|
|
|
20
21
|
# * **zh-CN**: Chinese
|
|
21
22
|
# * **en-US** (default): English
|
|
22
23
|
self.accept_language = accept_language
|
|
24
|
+
self.gateway_type = gateway_type
|
|
23
25
|
self.owner_account = owner_account
|
|
24
26
|
self.owner_id = owner_id
|
|
25
27
|
# The region ID.
|
|
@@ -58,6 +60,9 @@ class DescribeVpnGatewayAvailableZonesRequest(DaraModel):
|
|
|
58
60
|
if self.accept_language is not None:
|
|
59
61
|
result['AcceptLanguage'] = self.accept_language
|
|
60
62
|
|
|
63
|
+
if self.gateway_type is not None:
|
|
64
|
+
result['GatewayType'] = self.gateway_type
|
|
65
|
+
|
|
61
66
|
if self.owner_account is not None:
|
|
62
67
|
result['OwnerAccount'] = self.owner_account
|
|
63
68
|
|
|
@@ -83,6 +88,9 @@ class DescribeVpnGatewayAvailableZonesRequest(DaraModel):
|
|
|
83
88
|
if m.get('AcceptLanguage') is not None:
|
|
84
89
|
self.accept_language = m.get('AcceptLanguage')
|
|
85
90
|
|
|
91
|
+
if m.get('GatewayType') is not None:
|
|
92
|
+
self.gateway_type = m.get('GatewayType')
|
|
93
|
+
|
|
86
94
|
if m.get('OwnerAccount') is not None:
|
|
87
95
|
self.owner_account = m.get('OwnerAccount')
|
|
88
96
|
|
|
@@ -20,6 +20,7 @@ class DescribeVpnGatewayResponseBody(DaraModel):
|
|
|
20
20
|
enable_bgp: bool = None,
|
|
21
21
|
end_time: int = None,
|
|
22
22
|
eni_instance_ids: main_models.DescribeVpnGatewayResponseBodyEniInstanceIds = None,
|
|
23
|
+
gateway_type: str = None,
|
|
23
24
|
internet_ip: str = None,
|
|
24
25
|
ipsec_vpn: str = None,
|
|
25
26
|
name: str = None,
|
|
@@ -78,6 +79,7 @@ class DescribeVpnGatewayResponseBody(DaraModel):
|
|
|
78
79
|
self.end_time = end_time
|
|
79
80
|
# The ENIs created by the system for the VPN gateway.
|
|
80
81
|
self.eni_instance_ids = eni_instance_ids
|
|
82
|
+
self.gateway_type = gateway_type
|
|
81
83
|
# * If the VPN gateway supports IPsec-VPN connections in single-tunnel mode, the address is the IP address of the VPN gateway and can be used to create an IPsec-VPN connection or an SSL-VPN connection.
|
|
82
84
|
#
|
|
83
85
|
# * If the VPN gateway supports IPsec-VPN connections in dual-tunnel mode, the address is the first IP address used to create an IPsec-VPN connection. The address cannot be used to create an SSL-VPN connection.
|
|
@@ -212,6 +214,9 @@ class DescribeVpnGatewayResponseBody(DaraModel):
|
|
|
212
214
|
if self.eni_instance_ids is not None:
|
|
213
215
|
result['EniInstanceIds'] = self.eni_instance_ids.to_map()
|
|
214
216
|
|
|
217
|
+
if self.gateway_type is not None:
|
|
218
|
+
result['GatewayType'] = self.gateway_type
|
|
219
|
+
|
|
215
220
|
if self.internet_ip is not None:
|
|
216
221
|
result['InternetIp'] = self.internet_ip
|
|
217
222
|
|
|
@@ -301,6 +306,9 @@ class DescribeVpnGatewayResponseBody(DaraModel):
|
|
|
301
306
|
temp_model = main_models.DescribeVpnGatewayResponseBodyEniInstanceIds()
|
|
302
307
|
self.eni_instance_ids = temp_model.from_map(m.get('EniInstanceIds'))
|
|
303
308
|
|
|
309
|
+
if m.get('GatewayType') is not None:
|
|
310
|
+
self.gateway_type = m.get('GatewayType')
|
|
311
|
+
|
|
304
312
|
if m.get('InternetIp') is not None:
|
|
305
313
|
self.internet_ip = m.get('InternetIp')
|
|
306
314
|
|
|
@@ -11,6 +11,7 @@ class DescribeVpnGatewaysRequest(DaraModel):
|
|
|
11
11
|
def __init__(
|
|
12
12
|
self,
|
|
13
13
|
business_status: str = None,
|
|
14
|
+
gateway_type: str = None,
|
|
14
15
|
include_reservation_data: bool = None,
|
|
15
16
|
owner_account: str = None,
|
|
16
17
|
owner_id: int = None,
|
|
@@ -30,6 +31,7 @@ class DescribeVpnGatewaysRequest(DaraModel):
|
|
|
30
31
|
# * **Normal**
|
|
31
32
|
# * **FinancialLocked**
|
|
32
33
|
self.business_status = business_status
|
|
34
|
+
self.gateway_type = gateway_type
|
|
33
35
|
# Specifies whether to return information about pending orders. Valid values:
|
|
34
36
|
#
|
|
35
37
|
# * **false** (default)
|
|
@@ -82,6 +84,9 @@ class DescribeVpnGatewaysRequest(DaraModel):
|
|
|
82
84
|
if self.business_status is not None:
|
|
83
85
|
result['BusinessStatus'] = self.business_status
|
|
84
86
|
|
|
87
|
+
if self.gateway_type is not None:
|
|
88
|
+
result['GatewayType'] = self.gateway_type
|
|
89
|
+
|
|
85
90
|
if self.include_reservation_data is not None:
|
|
86
91
|
result['IncludeReservationData'] = self.include_reservation_data
|
|
87
92
|
|
|
@@ -130,6 +135,9 @@ class DescribeVpnGatewaysRequest(DaraModel):
|
|
|
130
135
|
if m.get('BusinessStatus') is not None:
|
|
131
136
|
self.business_status = m.get('BusinessStatus')
|
|
132
137
|
|
|
138
|
+
if m.get('GatewayType') is not None:
|
|
139
|
+
self.gateway_type = m.get('GatewayType')
|
|
140
|
+
|
|
133
141
|
if m.get('IncludeReservationData') is not None:
|
|
134
142
|
self.include_reservation_data = m.get('IncludeReservationData')
|
|
135
143
|
|
|
@@ -121,6 +121,7 @@ class DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGateway(DaraModel):
|
|
|
121
121
|
enable_bgp: bool = None,
|
|
122
122
|
end_time: int = None,
|
|
123
123
|
eni_instance_ids: main_models.DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayEniInstanceIds = None,
|
|
124
|
+
gateway_type: str = None,
|
|
124
125
|
internet_ip: str = None,
|
|
125
126
|
ipsec_vpn: str = None,
|
|
126
127
|
name: str = None,
|
|
@@ -178,6 +179,7 @@ class DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGateway(DaraModel):
|
|
|
178
179
|
self.end_time = end_time
|
|
179
180
|
# The ENIs created by the system for the VPN gateway.
|
|
180
181
|
self.eni_instance_ids = eni_instance_ids
|
|
182
|
+
self.gateway_type = gateway_type
|
|
181
183
|
# * If the VPN gateway supports IPsec-VPN connections in single-tunnel mode, the value of this parameter is the IP address of the VPN gateway, which can be used to create IPsec-VPN or SSL-VPN connections.
|
|
182
184
|
#
|
|
183
185
|
# * If the VPN gateway supports IPsec-VPN connections in dual-tunnel mode, the value of this parameter is the first IP address that is used to create an IPsec-VPN connection. The IP address cannot be used to create SSL-VPN connections.
|
|
@@ -312,6 +314,9 @@ class DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGateway(DaraModel):
|
|
|
312
314
|
if self.eni_instance_ids is not None:
|
|
313
315
|
result['EniInstanceIds'] = self.eni_instance_ids.to_map()
|
|
314
316
|
|
|
317
|
+
if self.gateway_type is not None:
|
|
318
|
+
result['GatewayType'] = self.gateway_type
|
|
319
|
+
|
|
315
320
|
if self.internet_ip is not None:
|
|
316
321
|
result['InternetIp'] = self.internet_ip
|
|
317
322
|
|
|
@@ -398,6 +403,9 @@ class DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGateway(DaraModel):
|
|
|
398
403
|
temp_model = main_models.DescribeVpnGatewaysResponseBodyVpnGatewaysVpnGatewayEniInstanceIds()
|
|
399
404
|
self.eni_instance_ids = temp_model.from_map(m.get('EniInstanceIds'))
|
|
400
405
|
|
|
406
|
+
if m.get('GatewayType') is not None:
|
|
407
|
+
self.gateway_type = m.get('GatewayType')
|
|
408
|
+
|
|
401
409
|
if m.get('InternetIp') is not None:
|
|
402
410
|
self.internet_ip = m.get('InternetIp')
|
|
403
411
|
|
|
@@ -37,6 +37,7 @@ class GetNatGatewayAttributeResponseBody(DaraModel):
|
|
|
37
37
|
status: str = None,
|
|
38
38
|
vpc_id: str = None,
|
|
39
39
|
):
|
|
40
|
+
# Access mode for reverse access to VPC NAT gateway.
|
|
40
41
|
self.access_mode = access_mode
|
|
41
42
|
# The billing information.
|
|
42
43
|
self.billing_config = billing_config
|
|
@@ -56,6 +57,9 @@ class GetNatGatewayAttributeResponseBody(DaraModel):
|
|
|
56
57
|
# * **true**: yes
|
|
57
58
|
# * **false**: no
|
|
58
59
|
self.ecs_metric_enabled = ecs_metric_enabled
|
|
60
|
+
# Whether to enable session log, with values:
|
|
61
|
+
# - **true**: Session logging is enabled.
|
|
62
|
+
# - **false**: Session logging is disabled.
|
|
59
63
|
self.enable_session_log = enable_session_log
|
|
60
64
|
# The time when the NAT gateway expires.
|
|
61
65
|
self.expired_time = expired_time
|
|
@@ -65,6 +69,7 @@ class GetNatGatewayAttributeResponseBody(DaraModel):
|
|
|
65
69
|
self.full_nat_table = full_nat_table
|
|
66
70
|
# The elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.
|
|
67
71
|
self.ip_list = ip_list
|
|
72
|
+
# Session log configuration information.
|
|
68
73
|
self.log_delivery = log_delivery
|
|
69
74
|
# The name of the NAT gateway.
|
|
70
75
|
self.name = name
|
|
@@ -419,9 +424,15 @@ class GetNatGatewayAttributeResponseBodyLogDelivery(DaraModel):
|
|
|
419
424
|
log_delivery_type: str = None,
|
|
420
425
|
log_destination: str = None,
|
|
421
426
|
):
|
|
427
|
+
# Error message for session log write failure.
|
|
422
428
|
self.deliver_logs_error_message = deliver_logs_error_message
|
|
429
|
+
# Session log write status. Values:
|
|
430
|
+
# - **Success**: Success.
|
|
431
|
+
# - **Failure**: Failure.
|
|
423
432
|
self.delivery_status = delivery_status
|
|
433
|
+
# Session log delivery destination type. Value: **sls**, Alibaba Cloud Log Service SLS.
|
|
424
434
|
self.log_delivery_type = log_delivery_type
|
|
435
|
+
# Destination address for session log writing
|
|
425
436
|
self.log_destination = log_destination
|
|
426
437
|
|
|
427
438
|
def validate(self):
|
|
@@ -694,7 +705,12 @@ class GetNatGatewayAttributeResponseBodyAccessMode(DaraModel):
|
|
|
694
705
|
mode_value: str = None,
|
|
695
706
|
tunnel_type: str = None,
|
|
696
707
|
):
|
|
708
|
+
# Access mode values:
|
|
709
|
+
# - **route**: Route mode.
|
|
710
|
+
# - **tunnel**: Tunnel mode.
|
|
697
711
|
self.mode_value = mode_value
|
|
712
|
+
# Tunnel mode type:
|
|
713
|
+
# - **geneve**: Geneve type.
|
|
698
714
|
self.tunnel_type = tunnel_type
|
|
699
715
|
|
|
700
716
|
def validate(self):
|
|
@@ -103,9 +103,11 @@ class ListFullNatEntriesResponseBody(DaraModel):
|
|
|
103
103
|
class ListFullNatEntriesResponseBodyFullNatEntries(DaraModel):
|
|
104
104
|
def __init__(
|
|
105
105
|
self,
|
|
106
|
+
access_domain: str = None,
|
|
106
107
|
access_ip: str = None,
|
|
107
108
|
access_port: str = None,
|
|
108
109
|
creation_time: str = None,
|
|
110
|
+
domain_resolve: str = None,
|
|
109
111
|
full_nat_entry_description: str = None,
|
|
110
112
|
full_nat_entry_id: str = None,
|
|
111
113
|
full_nat_entry_name: str = None,
|
|
@@ -117,12 +119,14 @@ class ListFullNatEntriesResponseBodyFullNatEntries(DaraModel):
|
|
|
117
119
|
network_interface_id: str = None,
|
|
118
120
|
network_interface_type: str = None,
|
|
119
121
|
):
|
|
122
|
+
self.access_domain = access_domain
|
|
120
123
|
# The backend IP address that is used for FULLNAT address translation in FULLNAT entries.
|
|
121
124
|
self.access_ip = access_ip
|
|
122
125
|
# The backend port that is used for port mapping in FULLNAT entries. Valid values: **1** to **65535**.
|
|
123
126
|
self.access_port = access_port
|
|
124
127
|
# The time when the FULLNAT entry was created.
|
|
125
128
|
self.creation_time = creation_time
|
|
129
|
+
self.domain_resolve = domain_resolve
|
|
126
130
|
# The description of the FULLNAT entry.
|
|
127
131
|
#
|
|
128
132
|
# The name must be 2 to 128 characters in length. It must start with a letter but cannot start with `http://` or `https://`.
|
|
@@ -164,6 +168,9 @@ class ListFullNatEntriesResponseBodyFullNatEntries(DaraModel):
|
|
|
164
168
|
_map = super().to_map()
|
|
165
169
|
if _map is not None:
|
|
166
170
|
result = _map
|
|
171
|
+
if self.access_domain is not None:
|
|
172
|
+
result['AccessDomain'] = self.access_domain
|
|
173
|
+
|
|
167
174
|
if self.access_ip is not None:
|
|
168
175
|
result['AccessIp'] = self.access_ip
|
|
169
176
|
|
|
@@ -173,6 +180,9 @@ class ListFullNatEntriesResponseBodyFullNatEntries(DaraModel):
|
|
|
173
180
|
if self.creation_time is not None:
|
|
174
181
|
result['CreationTime'] = self.creation_time
|
|
175
182
|
|
|
183
|
+
if self.domain_resolve is not None:
|
|
184
|
+
result['DomainResolve'] = self.domain_resolve
|
|
185
|
+
|
|
176
186
|
if self.full_nat_entry_description is not None:
|
|
177
187
|
result['FullNatEntryDescription'] = self.full_nat_entry_description
|
|
178
188
|
|
|
@@ -207,6 +217,9 @@ class ListFullNatEntriesResponseBodyFullNatEntries(DaraModel):
|
|
|
207
217
|
|
|
208
218
|
def from_map(self, m: dict = None):
|
|
209
219
|
m = m or dict()
|
|
220
|
+
if m.get('AccessDomain') is not None:
|
|
221
|
+
self.access_domain = m.get('AccessDomain')
|
|
222
|
+
|
|
210
223
|
if m.get('AccessIp') is not None:
|
|
211
224
|
self.access_ip = m.get('AccessIp')
|
|
212
225
|
|
|
@@ -216,6 +229,9 @@ class ListFullNatEntriesResponseBodyFullNatEntries(DaraModel):
|
|
|
216
229
|
if m.get('CreationTime') is not None:
|
|
217
230
|
self.creation_time = m.get('CreationTime')
|
|
218
231
|
|
|
232
|
+
if m.get('DomainResolve') is not None:
|
|
233
|
+
self.domain_resolve = m.get('DomainResolve')
|
|
234
|
+
|
|
219
235
|
if m.get('FullNatEntryDescription') is not None:
|
|
220
236
|
self.full_nat_entry_description = m.get('FullNatEntryDescription')
|
|
221
237
|
|
|
@@ -37,7 +37,9 @@ class ListNatIpsRequest(DaraModel):
|
|
|
37
37
|
# * **true**: checks the API request. IP addresses are not queried. The system checks the required parameters, request syntax, and limits. If the request fails to pass the precheck, the corresponding error message is returned. If the request passes the precheck, the `DryRunOperation` error code is returned.
|
|
38
38
|
# * **false** (default): sends the request. If the request passes the precheck, a 2xx HTTP status code is returned and the operation is performed.
|
|
39
39
|
self.dry_run = dry_run
|
|
40
|
+
# The enumeration of the fields used to describe the source of the NatIp. Prefix indicates the NatIp that belongs to the IPv4Prefix. The value cidr indicates isolated NatIp. The value control indicates all NatIp.
|
|
40
41
|
self.ip_origin = ip_origin
|
|
42
|
+
# The IP prefix address range.
|
|
41
43
|
self.ipv_4prefix = ipv_4prefix
|
|
42
44
|
# The number of entries to return on each page. Valid values: **1** to **100**. Default value: **20**.
|
|
43
45
|
self.max_results = max_results
|
|
@@ -86,6 +86,7 @@ class ListNatIpsResponseBodyNatIps(DaraModel):
|
|
|
86
86
|
nat_ip_name: str = None,
|
|
87
87
|
nat_ip_status: str = None,
|
|
88
88
|
):
|
|
89
|
+
# The IP prefix address range to which the queried NAT IP address belongs.
|
|
89
90
|
self.ipv_4prefix = ipv_4prefix
|
|
90
91
|
# Indicates whether the IP address is the default IP address of the NAT gateway. Valid values:
|
|
91
92
|
#
|
|
@@ -30,6 +30,11 @@ class ModifyForwardEntryRequest(DaraModel):
|
|
|
30
30
|
#
|
|
31
31
|
# > If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
|
|
32
32
|
self.client_token = client_token
|
|
33
|
+
# Specifies whether to perform only a dry run, without performing the actual request. Valid values:
|
|
34
|
+
#
|
|
35
|
+
# - true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
|
|
36
|
+
#
|
|
37
|
+
# - false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
|
|
33
38
|
self.dry_run = dry_run
|
|
34
39
|
# * When you modify DNAT entries of Internet NAT gateways, this parameter specifies the elastic IP addresses (EIPs) that are used to access the Internet.
|
|
35
40
|
# * When you modify DNAT entries of Virtual Private Cloud (VPC) NAT gateways, this parameter specifies the NAT IP addresses that are accessed by external networks.
|
|
@@ -7,6 +7,7 @@ from darabonba.model import DaraModel
|
|
|
7
7
|
class ModifyFullNatEntryAttributeRequest(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,
|
|
@@ -25,6 +26,7 @@ class ModifyFullNatEntryAttributeRequest(DaraModel):
|
|
|
25
26
|
resource_owner_account: str = None,
|
|
26
27
|
resource_owner_id: int = None,
|
|
27
28
|
):
|
|
29
|
+
self.access_domain = access_domain
|
|
28
30
|
# The backend IP address to be modified in FULLNAT address translation.
|
|
29
31
|
self.access_ip = access_ip
|
|
30
32
|
# The backend port to be modified in FULLNAT port mapping. Valid values: **1** to **65535**.
|
|
@@ -86,6 +88,9 @@ class ModifyFullNatEntryAttributeRequest(DaraModel):
|
|
|
86
88
|
_map = super().to_map()
|
|
87
89
|
if _map is not None:
|
|
88
90
|
result = _map
|
|
91
|
+
if self.access_domain is not None:
|
|
92
|
+
result['AccessDomain'] = self.access_domain
|
|
93
|
+
|
|
89
94
|
if self.access_ip is not None:
|
|
90
95
|
result['AccessIp'] = self.access_ip
|
|
91
96
|
|
|
@@ -141,6 +146,9 @@ class ModifyFullNatEntryAttributeRequest(DaraModel):
|
|
|
141
146
|
|
|
142
147
|
def from_map(self, m: dict = None):
|
|
143
148
|
m = m or dict()
|
|
149
|
+
if m.get('AccessDomain') is not None:
|
|
150
|
+
self.access_domain = m.get('AccessDomain')
|
|
151
|
+
|
|
144
152
|
if m.get('AccessIp') is not None:
|
|
145
153
|
self.access_ip = m.get('AccessIp')
|
|
146
154
|
|
|
@@ -25,23 +25,25 @@ class ModifyNatGatewayAttributeRequest(DaraModel):
|
|
|
25
25
|
#
|
|
26
26
|
# The description must be 1 to 128 characters in length, and cannot start with `http://` or `https://`.
|
|
27
27
|
self.description = description
|
|
28
|
-
#
|
|
28
|
+
# Modifies the mode in which the EIP is associated with the NAT gateway. The value can be empty or **NAT**, which specifies the NAT mode.
|
|
29
29
|
#
|
|
30
|
-
#
|
|
30
|
+
# >
|
|
31
31
|
#
|
|
32
|
-
# **
|
|
32
|
+
# * You can only change **MULTI_BINDED** to **NAT**. You cannot change **NAT** to **MULTI_BINDED**. For more information about the **MULTI_BINDED** mode, see [CreateNatGateway](https://help.aliyun.com/document_detail/120219.html).
|
|
33
33
|
#
|
|
34
|
-
# *
|
|
35
|
-
#
|
|
36
|
-
# * When the mode in which the NAT gateway is associated with an EIP is being changed, a transient connection that lasts a few seconds may occur. If the number of EIPs with which the NAT gateway is associated increases, the transient connection lasts longer. You can change the mode only for a NAT gateway that is associated with up to five EIPs. We recommend that you change the mode during off-peak hours.
|
|
37
|
-
# * After the mode is changed to **NAT**, the Internet NAT gateway is compatible with the IPv4 gateway. However, if you associate an EIP with the NAT gateway, the EIP occupies one private IP address on the vSwitch of the NAT gateway. Make sure that the vSwitch has sufficient private IP addresses. Otherwise, the EIP fails to be associated with the NAT gateway.
|
|
34
|
+
# * When you change the association mode, your network may be interrupted for seconds. The duration increases with the number of EIPs. You can change the association mode for at most 5 EIPs at the same time. We recommend changing the association mode during off-peak hours.
|
|
35
|
+
# * After the association mode is changed to **NAT**, the Internet NAT gateway is compatible with an IPv4 gateway. If an EIP is associated with a NAT gateway in NAT mode, the EIP occupies a private IP address of the vSwitch to which the NAT gateway belongs. Ensure the vSwitch has sufficient private IP addresses for EIPs to be associated with the NAT gateway.
|
|
38
36
|
self.eip_bind_mode = eip_bind_mode
|
|
37
|
+
# Whether to enable session logging, with values:
|
|
38
|
+
# - **true**: Session logging is enabled.
|
|
39
|
+
# - **false**: Session logging is disabled.
|
|
39
40
|
self.enable_session_log = enable_session_log
|
|
40
41
|
# Specifies whether to enable the Internet Control Message Protocol (ICMP) non-retrieval feature. Valid values:
|
|
41
42
|
#
|
|
42
43
|
# * **false** (default)
|
|
43
44
|
# * **true**
|
|
44
45
|
self.icmp_reply_enabled = icmp_reply_enabled
|
|
46
|
+
# Session log configuration information.
|
|
45
47
|
self.log_delivery = log_delivery
|
|
46
48
|
# The name of the NAT gateway.
|
|
47
49
|
#
|
|
@@ -156,7 +158,9 @@ class ModifyNatGatewayAttributeRequestLogDelivery(DaraModel):
|
|
|
156
158
|
log_delivery_type: str = None,
|
|
157
159
|
log_destination: str = None,
|
|
158
160
|
):
|
|
161
|
+
# Session log write type. Value: **sls**, Alibaba Cloud Log Service SLS.
|
|
159
162
|
self.log_delivery_type = log_delivery_type
|
|
163
|
+
# Session log write address. Value: acs:log:${regionName}:${projectOwnerAliUid}:project/${projectName}/logstore/${logstoreName}
|
|
160
164
|
self.log_destination = log_destination
|
|
161
165
|
|
|
162
166
|
def validate(self):
|