alibabacloud-vpc20160428 6.6.2__tar.gz → 6.6.3__tar.gz
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-6.6.2 → alibabacloud_vpc20160428-6.6.3}/ChangeLog.md +8 -0
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/PKG-INFO +1 -1
- alibabacloud_vpc20160428-6.6.3/alibabacloud_vpc20160428/__init__.py +1 -0
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/alibabacloud_vpc20160428/client.py +22 -6
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/alibabacloud_vpc20160428/models.py +260 -22
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/alibabacloud_vpc20160428.egg-info/PKG-INFO +1 -1
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/setup.py +1 -1
- alibabacloud_vpc20160428-6.6.2/alibabacloud_vpc20160428/__init__.py +0 -1
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/LICENSE +0 -0
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/MANIFEST.in +0 -0
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/README-CN.md +0 -0
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/README.md +0 -0
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/alibabacloud_vpc20160428.egg-info/SOURCES.txt +0 -0
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/alibabacloud_vpc20160428.egg-info/dependency_links.txt +0 -0
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/alibabacloud_vpc20160428.egg-info/requires.txt +0 -0
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/alibabacloud_vpc20160428.egg-info/top_level.txt +0 -0
- {alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/setup.cfg +0 -0
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
2024-05-06 Version: 6.6.2
|
|
2
|
+
- Update API DescribeSnatTableEntries: update response param.
|
|
3
|
+
- Update API DescribeVpnGateway: update response param.
|
|
4
|
+
- Update API DescribeVpnGateways: update response param.
|
|
5
|
+
- Update API ListTrafficMirrorFilters: update response param.
|
|
6
|
+
- Update API ModifySnatEntry: add param EipAffinity.
|
|
7
|
+
|
|
8
|
+
|
|
1
9
|
2024-04-25 Version: 6.6.1
|
|
2
10
|
- Update API AssociateVpcCidrBlock: add param SecondaryCidrMask.
|
|
3
11
|
- Update API CreateVpc: add param Ipv4CidrMask.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '6.6.3'
|
{alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/alibabacloud_vpc20160428/client.py
RENAMED
|
@@ -38385,25 +38385,33 @@ class Client(OpenApiClient):
|
|
|
38385
38385
|
|
|
38386
38386
|
def modify_nat_gateway_attribute_with_options(
|
|
38387
38387
|
self,
|
|
38388
|
-
|
|
38388
|
+
tmp_req: vpc_20160428_models.ModifyNatGatewayAttributeRequest,
|
|
38389
38389
|
runtime: util_models.RuntimeOptions,
|
|
38390
38390
|
) -> vpc_20160428_models.ModifyNatGatewayAttributeResponse:
|
|
38391
38391
|
"""
|
|
38392
38392
|
## [](#)Description
|
|
38393
38393
|
You can call this operation to query an Internet NAT gateway or a virtual private cloud (VPC) NAT gateway. The term NAT gateway in this topic refers to both NAT gateway types.
|
|
38394
38394
|
|
|
38395
|
-
@param
|
|
38395
|
+
@param tmp_req: ModifyNatGatewayAttributeRequest
|
|
38396
38396
|
@param runtime: runtime options for this request RuntimeOptions
|
|
38397
38397
|
@return: ModifyNatGatewayAttributeResponse
|
|
38398
38398
|
"""
|
|
38399
|
-
UtilClient.validate_model(
|
|
38399
|
+
UtilClient.validate_model(tmp_req)
|
|
38400
|
+
request = vpc_20160428_models.ModifyNatGatewayAttributeShrinkRequest()
|
|
38401
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
38402
|
+
if not UtilClient.is_unset(tmp_req.log_delivery):
|
|
38403
|
+
request.log_delivery_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.log_delivery, 'LogDelivery', 'json')
|
|
38400
38404
|
query = {}
|
|
38401
38405
|
if not UtilClient.is_unset(request.description):
|
|
38402
38406
|
query['Description'] = request.description
|
|
38403
38407
|
if not UtilClient.is_unset(request.eip_bind_mode):
|
|
38404
38408
|
query['EipBindMode'] = request.eip_bind_mode
|
|
38409
|
+
if not UtilClient.is_unset(request.enable_session_log):
|
|
38410
|
+
query['EnableSessionLog'] = request.enable_session_log
|
|
38405
38411
|
if not UtilClient.is_unset(request.icmp_reply_enabled):
|
|
38406
38412
|
query['IcmpReplyEnabled'] = request.icmp_reply_enabled
|
|
38413
|
+
if not UtilClient.is_unset(request.log_delivery_shrink):
|
|
38414
|
+
query['LogDelivery'] = request.log_delivery_shrink
|
|
38407
38415
|
if not UtilClient.is_unset(request.name):
|
|
38408
38416
|
query['Name'] = request.name
|
|
38409
38417
|
if not UtilClient.is_unset(request.nat_gateway_id):
|
|
@@ -38439,25 +38447,33 @@ class Client(OpenApiClient):
|
|
|
38439
38447
|
|
|
38440
38448
|
async def modify_nat_gateway_attribute_with_options_async(
|
|
38441
38449
|
self,
|
|
38442
|
-
|
|
38450
|
+
tmp_req: vpc_20160428_models.ModifyNatGatewayAttributeRequest,
|
|
38443
38451
|
runtime: util_models.RuntimeOptions,
|
|
38444
38452
|
) -> vpc_20160428_models.ModifyNatGatewayAttributeResponse:
|
|
38445
38453
|
"""
|
|
38446
38454
|
## [](#)Description
|
|
38447
38455
|
You can call this operation to query an Internet NAT gateway or a virtual private cloud (VPC) NAT gateway. The term NAT gateway in this topic refers to both NAT gateway types.
|
|
38448
38456
|
|
|
38449
|
-
@param
|
|
38457
|
+
@param tmp_req: ModifyNatGatewayAttributeRequest
|
|
38450
38458
|
@param runtime: runtime options for this request RuntimeOptions
|
|
38451
38459
|
@return: ModifyNatGatewayAttributeResponse
|
|
38452
38460
|
"""
|
|
38453
|
-
UtilClient.validate_model(
|
|
38461
|
+
UtilClient.validate_model(tmp_req)
|
|
38462
|
+
request = vpc_20160428_models.ModifyNatGatewayAttributeShrinkRequest()
|
|
38463
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
38464
|
+
if not UtilClient.is_unset(tmp_req.log_delivery):
|
|
38465
|
+
request.log_delivery_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.log_delivery, 'LogDelivery', 'json')
|
|
38454
38466
|
query = {}
|
|
38455
38467
|
if not UtilClient.is_unset(request.description):
|
|
38456
38468
|
query['Description'] = request.description
|
|
38457
38469
|
if not UtilClient.is_unset(request.eip_bind_mode):
|
|
38458
38470
|
query['EipBindMode'] = request.eip_bind_mode
|
|
38471
|
+
if not UtilClient.is_unset(request.enable_session_log):
|
|
38472
|
+
query['EnableSessionLog'] = request.enable_session_log
|
|
38459
38473
|
if not UtilClient.is_unset(request.icmp_reply_enabled):
|
|
38460
38474
|
query['IcmpReplyEnabled'] = request.icmp_reply_enabled
|
|
38475
|
+
if not UtilClient.is_unset(request.log_delivery_shrink):
|
|
38476
|
+
query['LogDelivery'] = request.log_delivery_shrink
|
|
38461
38477
|
if not UtilClient.is_unset(request.name):
|
|
38462
38478
|
query['Name'] = request.name
|
|
38463
38479
|
if not UtilClient.is_unset(request.nat_gateway_id):
|
{alibabacloud_vpc20160428-6.6.2 → alibabacloud_vpc20160428-6.6.3}/alibabacloud_vpc20160428/models.py
RENAMED
|
@@ -43803,6 +43803,7 @@ class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway(TeaModel):
|
|
|
43803
43803
|
description: str = None,
|
|
43804
43804
|
ecs_metric_enabled: bool = None,
|
|
43805
43805
|
eip_bind_mode: str = None,
|
|
43806
|
+
enable_session_log: str = None,
|
|
43806
43807
|
expired_time: str = None,
|
|
43807
43808
|
forward_table_ids: DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayForwardTableIds = None,
|
|
43808
43809
|
full_nat_table_ids: DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayFullNatTableIds = None,
|
|
@@ -43857,6 +43858,7 @@ class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway(TeaModel):
|
|
|
43857
43858
|
#
|
|
43858
43859
|
# > 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.
|
|
43859
43860
|
self.eip_bind_mode = eip_bind_mode
|
|
43861
|
+
self.enable_session_log = enable_session_log
|
|
43860
43862
|
# The time when the NAT gateway expires.
|
|
43861
43863
|
self.expired_time = expired_time
|
|
43862
43864
|
# The ID of the DNAT table.
|
|
@@ -43964,6 +43966,8 @@ class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway(TeaModel):
|
|
|
43964
43966
|
result['EcsMetricEnabled'] = self.ecs_metric_enabled
|
|
43965
43967
|
if self.eip_bind_mode is not None:
|
|
43966
43968
|
result['EipBindMode'] = self.eip_bind_mode
|
|
43969
|
+
if self.enable_session_log is not None:
|
|
43970
|
+
result['EnableSessionLog'] = self.enable_session_log
|
|
43967
43971
|
if self.expired_time is not None:
|
|
43968
43972
|
result['ExpiredTime'] = self.expired_time
|
|
43969
43973
|
if self.forward_table_ids is not None:
|
|
@@ -44026,6 +44030,8 @@ class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway(TeaModel):
|
|
|
44026
44030
|
self.ecs_metric_enabled = m.get('EcsMetricEnabled')
|
|
44027
44031
|
if m.get('EipBindMode') is not None:
|
|
44028
44032
|
self.eip_bind_mode = m.get('EipBindMode')
|
|
44033
|
+
if m.get('EnableSessionLog') is not None:
|
|
44034
|
+
self.enable_session_log = m.get('EnableSessionLog')
|
|
44029
44035
|
if m.get('ExpiredTime') is not None:
|
|
44030
44036
|
self.expired_time = m.get('ExpiredTime')
|
|
44031
44037
|
if m.get('ForwardTableIds') is not None:
|
|
@@ -67436,6 +67442,51 @@ class GetNatGatewayAttributeResponseBodyIpList(TeaModel):
|
|
|
67436
67442
|
return self
|
|
67437
67443
|
|
|
67438
67444
|
|
|
67445
|
+
class GetNatGatewayAttributeResponseBodyLogDelivery(TeaModel):
|
|
67446
|
+
def __init__(
|
|
67447
|
+
self,
|
|
67448
|
+
deliver_logs_error_message: str = None,
|
|
67449
|
+
delivery_status: str = None,
|
|
67450
|
+
log_delivery_type: str = None,
|
|
67451
|
+
log_destination: str = None,
|
|
67452
|
+
):
|
|
67453
|
+
self.deliver_logs_error_message = deliver_logs_error_message
|
|
67454
|
+
self.delivery_status = delivery_status
|
|
67455
|
+
self.log_delivery_type = log_delivery_type
|
|
67456
|
+
self.log_destination = log_destination
|
|
67457
|
+
|
|
67458
|
+
def validate(self):
|
|
67459
|
+
pass
|
|
67460
|
+
|
|
67461
|
+
def to_map(self):
|
|
67462
|
+
_map = super().to_map()
|
|
67463
|
+
if _map is not None:
|
|
67464
|
+
return _map
|
|
67465
|
+
|
|
67466
|
+
result = dict()
|
|
67467
|
+
if self.deliver_logs_error_message is not None:
|
|
67468
|
+
result['DeliverLogsErrorMessage'] = self.deliver_logs_error_message
|
|
67469
|
+
if self.delivery_status is not None:
|
|
67470
|
+
result['DeliveryStatus'] = self.delivery_status
|
|
67471
|
+
if self.log_delivery_type is not None:
|
|
67472
|
+
result['LogDeliveryType'] = self.log_delivery_type
|
|
67473
|
+
if self.log_destination is not None:
|
|
67474
|
+
result['LogDestination'] = self.log_destination
|
|
67475
|
+
return result
|
|
67476
|
+
|
|
67477
|
+
def from_map(self, m: dict = None):
|
|
67478
|
+
m = m or dict()
|
|
67479
|
+
if m.get('DeliverLogsErrorMessage') is not None:
|
|
67480
|
+
self.deliver_logs_error_message = m.get('DeliverLogsErrorMessage')
|
|
67481
|
+
if m.get('DeliveryStatus') is not None:
|
|
67482
|
+
self.delivery_status = m.get('DeliveryStatus')
|
|
67483
|
+
if m.get('LogDeliveryType') is not None:
|
|
67484
|
+
self.log_delivery_type = m.get('LogDeliveryType')
|
|
67485
|
+
if m.get('LogDestination') is not None:
|
|
67486
|
+
self.log_destination = m.get('LogDestination')
|
|
67487
|
+
return self
|
|
67488
|
+
|
|
67489
|
+
|
|
67439
67490
|
class GetNatGatewayAttributeResponseBodyPrivateInfo(TeaModel):
|
|
67440
67491
|
def __init__(
|
|
67441
67492
|
self,
|
|
@@ -67536,10 +67587,12 @@ class GetNatGatewayAttributeResponseBody(TeaModel):
|
|
|
67536
67587
|
deletion_protection_info: GetNatGatewayAttributeResponseBodyDeletionProtectionInfo = None,
|
|
67537
67588
|
description: str = None,
|
|
67538
67589
|
ecs_metric_enabled: bool = None,
|
|
67590
|
+
enable_session_log: bool = None,
|
|
67539
67591
|
expired_time: str = None,
|
|
67540
67592
|
forward_table: GetNatGatewayAttributeResponseBodyForwardTable = None,
|
|
67541
67593
|
full_nat_table: GetNatGatewayAttributeResponseBodyFullNatTable = None,
|
|
67542
67594
|
ip_list: List[GetNatGatewayAttributeResponseBodyIpList] = None,
|
|
67595
|
+
log_delivery: GetNatGatewayAttributeResponseBodyLogDelivery = None,
|
|
67543
67596
|
name: str = None,
|
|
67544
67597
|
nat_gateway_id: str = None,
|
|
67545
67598
|
nat_type: str = None,
|
|
@@ -67572,6 +67625,7 @@ class GetNatGatewayAttributeResponseBody(TeaModel):
|
|
|
67572
67625
|
# * **true**: yes
|
|
67573
67626
|
# * **false**: no
|
|
67574
67627
|
self.ecs_metric_enabled = ecs_metric_enabled
|
|
67628
|
+
self.enable_session_log = enable_session_log
|
|
67575
67629
|
# The time when the NAT gateway expires.
|
|
67576
67630
|
self.expired_time = expired_time
|
|
67577
67631
|
# The information about the DNAT table.
|
|
@@ -67580,6 +67634,7 @@ class GetNatGatewayAttributeResponseBody(TeaModel):
|
|
|
67580
67634
|
self.full_nat_table = full_nat_table
|
|
67581
67635
|
# The elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.
|
|
67582
67636
|
self.ip_list = ip_list
|
|
67637
|
+
self.log_delivery = log_delivery
|
|
67583
67638
|
# The name of the NAT gateway.
|
|
67584
67639
|
self.name = name
|
|
67585
67640
|
# The ID of the NAT gateway.
|
|
@@ -67635,6 +67690,8 @@ class GetNatGatewayAttributeResponseBody(TeaModel):
|
|
|
67635
67690
|
for k in self.ip_list:
|
|
67636
67691
|
if k:
|
|
67637
67692
|
k.validate()
|
|
67693
|
+
if self.log_delivery:
|
|
67694
|
+
self.log_delivery.validate()
|
|
67638
67695
|
if self.private_info:
|
|
67639
67696
|
self.private_info.validate()
|
|
67640
67697
|
if self.snat_table:
|
|
@@ -67658,6 +67715,8 @@ class GetNatGatewayAttributeResponseBody(TeaModel):
|
|
|
67658
67715
|
result['Description'] = self.description
|
|
67659
67716
|
if self.ecs_metric_enabled is not None:
|
|
67660
67717
|
result['EcsMetricEnabled'] = self.ecs_metric_enabled
|
|
67718
|
+
if self.enable_session_log is not None:
|
|
67719
|
+
result['EnableSessionLog'] = self.enable_session_log
|
|
67661
67720
|
if self.expired_time is not None:
|
|
67662
67721
|
result['ExpiredTime'] = self.expired_time
|
|
67663
67722
|
if self.forward_table is not None:
|
|
@@ -67668,6 +67727,8 @@ class GetNatGatewayAttributeResponseBody(TeaModel):
|
|
|
67668
67727
|
if self.ip_list is not None:
|
|
67669
67728
|
for k in self.ip_list:
|
|
67670
67729
|
result['IpList'].append(k.to_map() if k else None)
|
|
67730
|
+
if self.log_delivery is not None:
|
|
67731
|
+
result['LogDelivery'] = self.log_delivery.to_map()
|
|
67671
67732
|
if self.name is not None:
|
|
67672
67733
|
result['Name'] = self.name
|
|
67673
67734
|
if self.nat_gateway_id is not None:
|
|
@@ -67712,6 +67773,8 @@ class GetNatGatewayAttributeResponseBody(TeaModel):
|
|
|
67712
67773
|
self.description = m.get('Description')
|
|
67713
67774
|
if m.get('EcsMetricEnabled') is not None:
|
|
67714
67775
|
self.ecs_metric_enabled = m.get('EcsMetricEnabled')
|
|
67776
|
+
if m.get('EnableSessionLog') is not None:
|
|
67777
|
+
self.enable_session_log = m.get('EnableSessionLog')
|
|
67715
67778
|
if m.get('ExpiredTime') is not None:
|
|
67716
67779
|
self.expired_time = m.get('ExpiredTime')
|
|
67717
67780
|
if m.get('ForwardTable') is not None:
|
|
@@ -67725,6 +67788,9 @@ class GetNatGatewayAttributeResponseBody(TeaModel):
|
|
|
67725
67788
|
for k in m.get('IpList'):
|
|
67726
67789
|
temp_model = GetNatGatewayAttributeResponseBodyIpList()
|
|
67727
67790
|
self.ip_list.append(temp_model.from_map(k))
|
|
67791
|
+
if m.get('LogDelivery') is not None:
|
|
67792
|
+
temp_model = GetNatGatewayAttributeResponseBodyLogDelivery()
|
|
67793
|
+
self.log_delivery = temp_model.from_map(m['LogDelivery'])
|
|
67728
67794
|
if m.get('Name') is not None:
|
|
67729
67795
|
self.name = m.get('Name')
|
|
67730
67796
|
if m.get('NatGatewayId') is not None:
|
|
@@ -74229,6 +74295,10 @@ class ListPublicIpAddressPoolsRequest(TeaModel):
|
|
|
74229
74295
|
self.resource_group_id = resource_group_id
|
|
74230
74296
|
self.resource_owner_account = resource_owner_account
|
|
74231
74297
|
self.resource_owner_id = resource_owner_id
|
|
74298
|
+
# Specifies whether to enable Anti-DDoS Pro/Premium. Valid values:
|
|
74299
|
+
#
|
|
74300
|
+
# * **false**\
|
|
74301
|
+
# * **true**\
|
|
74232
74302
|
self.security_protection_enabled = security_protection_enabled
|
|
74233
74303
|
# The status of the IP address pool. Valid values:
|
|
74234
74304
|
#
|
|
@@ -74329,9 +74399,9 @@ class ListPublicIpAddressPoolsResponseBodyPublicIpAddressPoolListTags(TeaModel):
|
|
|
74329
74399
|
key: str = None,
|
|
74330
74400
|
value: str = None,
|
|
74331
74401
|
):
|
|
74332
|
-
# The tag
|
|
74402
|
+
# The key of tag N.
|
|
74333
74403
|
self.key = key
|
|
74334
|
-
# The tag
|
|
74404
|
+
# The value of tag N.
|
|
74335
74405
|
self.value = value
|
|
74336
74406
|
|
|
74337
74407
|
def validate(self):
|
|
@@ -74380,26 +74450,26 @@ class ListPublicIpAddressPoolsResponseBodyPublicIpAddressPoolList(TeaModel):
|
|
|
74380
74450
|
user_type: bool = None,
|
|
74381
74451
|
zones: List[str] = None,
|
|
74382
74452
|
):
|
|
74383
|
-
# The service type of the IP address pool.
|
|
74453
|
+
# The service type of the IP address pool.
|
|
74384
74454
|
#
|
|
74385
|
-
# * **CloudBox
|
|
74386
|
-
# * **Default** (default)
|
|
74455
|
+
# * **CloudBox** Only cloud box users can select this type.
|
|
74456
|
+
# * **Default** (default)
|
|
74387
74457
|
self.biz_type = biz_type
|
|
74388
74458
|
# The time when the IP address pool was created. The time is displayed in the `YYYY-MM-DDThh:mm:ssZ` format.
|
|
74389
74459
|
self.creation_time = creation_time
|
|
74390
|
-
# The
|
|
74460
|
+
# The description of the IP address pool.
|
|
74391
74461
|
self.description = description
|
|
74392
|
-
# Indicates whether
|
|
74462
|
+
# Indicates whether idle IP addresses exist.
|
|
74393
74463
|
#
|
|
74394
74464
|
# * **true**\
|
|
74395
74465
|
# * **false**\
|
|
74396
74466
|
self.ip_address_remaining = ip_address_remaining
|
|
74397
|
-
# The line type.
|
|
74467
|
+
# The line type.
|
|
74398
74468
|
#
|
|
74399
|
-
# * **BGP**: BGP (Multi-ISP)
|
|
74400
|
-
# * **BGP_PRO**: BGP (Multi-ISP) Pro
|
|
74469
|
+
# * **BGP**: BGP (Multi-ISP)
|
|
74470
|
+
# * **BGP_PRO**: BGP (Multi-ISP) Pro
|
|
74401
74471
|
#
|
|
74402
|
-
# For more information about
|
|
74472
|
+
# For more information about BGP (Multi-ISP) and BGP (Multi-ISP) Pro, see [EIP line types](~~32321~~).
|
|
74403
74473
|
#
|
|
74404
74474
|
# If you are allowed to use single-ISP bandwidth, one of the following values may be returned:
|
|
74405
74475
|
#
|
|
@@ -74418,34 +74488,38 @@ class ListPublicIpAddressPoolsResponseBodyPublicIpAddressPoolList(TeaModel):
|
|
|
74418
74488
|
self.owner_id = owner_id
|
|
74419
74489
|
# The ID of the IP address pool.
|
|
74420
74490
|
self.public_ip_address_pool_id = public_ip_address_pool_id
|
|
74421
|
-
# The ID of the
|
|
74491
|
+
# The region ID of the IP address pool.
|
|
74422
74492
|
self.region_id = region_id
|
|
74423
74493
|
# The ID of the resource group to which the IP address pool belongs.
|
|
74424
74494
|
self.resource_group_id = resource_group_id
|
|
74495
|
+
# The edition of Anti-DDoS.
|
|
74496
|
+
#
|
|
74497
|
+
# * If you do not set this parameter, Anti-DDoS Origin Basic is used.
|
|
74498
|
+
# * If the value is set to **AntiDDoS_Enhanced**, Anti-DDoS Pro/Premium is used.
|
|
74425
74499
|
self.security_protection_types = security_protection_types
|
|
74426
|
-
#
|
|
74500
|
+
# The sharing type of the IP address pool.
|
|
74427
74501
|
#
|
|
74428
|
-
# *
|
|
74429
|
-
# *
|
|
74502
|
+
# * If **Shared** is returned, the IP address pool is shared.
|
|
74503
|
+
# * If an empty value is returned, the IP address pool is not shared.
|
|
74430
74504
|
self.share_type = share_type
|
|
74431
|
-
# The status of the IP address pool.
|
|
74505
|
+
# The status of the IP address pool.
|
|
74432
74506
|
#
|
|
74433
74507
|
# * **Created**\
|
|
74434
74508
|
# * **Deleting**\
|
|
74435
74509
|
# * **Modifying**\
|
|
74436
74510
|
self.status = status
|
|
74437
|
-
# The
|
|
74511
|
+
# The tag list.
|
|
74438
74512
|
self.tags = tags
|
|
74439
|
-
# The total number of IP addresses in the public IP address pool.
|
|
74513
|
+
# The total number of available IP addresses in the public IP address pool.
|
|
74440
74514
|
self.total_ip_num = total_ip_num
|
|
74441
|
-
# The number of
|
|
74515
|
+
# The number of used IP addresses in the public IP address pool.
|
|
74442
74516
|
self.used_ip_num = used_ip_num
|
|
74443
74517
|
# The user type. Valid values:
|
|
74444
74518
|
#
|
|
74445
|
-
# * **admin**:
|
|
74446
|
-
# * **user**:
|
|
74519
|
+
# * **admin**: An administrator can delete, modify, and query IP address pools, and can assign elastic IP addresses (EIPs) to the pool.
|
|
74520
|
+
# * **user**: A user can only assign EIPs to the IP address pool and query the IP address pool, but cannot modify or delete the IP address pool.
|
|
74447
74521
|
self.user_type = user_type
|
|
74448
|
-
# The
|
|
74522
|
+
# The zone of the IP address pool. This parameter is returned only when the service type of the IP address pool is CloudBox.
|
|
74449
74523
|
self.zones = zones
|
|
74450
74524
|
|
|
74451
74525
|
def validate(self):
|
|
@@ -82749,12 +82823,166 @@ class ModifyIpv6InternetBandwidthResponse(TeaModel):
|
|
|
82749
82823
|
return self
|
|
82750
82824
|
|
|
82751
82825
|
|
|
82826
|
+
class ModifyNatGatewayAttributeRequestLogDelivery(TeaModel):
|
|
82827
|
+
def __init__(
|
|
82828
|
+
self,
|
|
82829
|
+
log_delivery_type: str = None,
|
|
82830
|
+
log_destination: str = None,
|
|
82831
|
+
):
|
|
82832
|
+
self.log_delivery_type = log_delivery_type
|
|
82833
|
+
self.log_destination = log_destination
|
|
82834
|
+
|
|
82835
|
+
def validate(self):
|
|
82836
|
+
pass
|
|
82837
|
+
|
|
82838
|
+
def to_map(self):
|
|
82839
|
+
_map = super().to_map()
|
|
82840
|
+
if _map is not None:
|
|
82841
|
+
return _map
|
|
82842
|
+
|
|
82843
|
+
result = dict()
|
|
82844
|
+
if self.log_delivery_type is not None:
|
|
82845
|
+
result['LogDeliveryType'] = self.log_delivery_type
|
|
82846
|
+
if self.log_destination is not None:
|
|
82847
|
+
result['LogDestination'] = self.log_destination
|
|
82848
|
+
return result
|
|
82849
|
+
|
|
82850
|
+
def from_map(self, m: dict = None):
|
|
82851
|
+
m = m or dict()
|
|
82852
|
+
if m.get('LogDeliveryType') is not None:
|
|
82853
|
+
self.log_delivery_type = m.get('LogDeliveryType')
|
|
82854
|
+
if m.get('LogDestination') is not None:
|
|
82855
|
+
self.log_destination = m.get('LogDestination')
|
|
82856
|
+
return self
|
|
82857
|
+
|
|
82858
|
+
|
|
82752
82859
|
class ModifyNatGatewayAttributeRequest(TeaModel):
|
|
82753
82860
|
def __init__(
|
|
82754
82861
|
self,
|
|
82755
82862
|
description: str = None,
|
|
82756
82863
|
eip_bind_mode: str = None,
|
|
82864
|
+
enable_session_log: bool = None,
|
|
82865
|
+
icmp_reply_enabled: bool = None,
|
|
82866
|
+
log_delivery: ModifyNatGatewayAttributeRequestLogDelivery = None,
|
|
82867
|
+
name: str = None,
|
|
82868
|
+
nat_gateway_id: str = None,
|
|
82869
|
+
owner_account: str = None,
|
|
82870
|
+
owner_id: int = None,
|
|
82871
|
+
region_id: str = None,
|
|
82872
|
+
resource_owner_account: str = None,
|
|
82873
|
+
resource_owner_id: int = None,
|
|
82874
|
+
):
|
|
82875
|
+
# The description of the NAT gateway.
|
|
82876
|
+
#
|
|
82877
|
+
# The description must be 1 to 128 characters in length, and cannot start with `http://` or `https://`.
|
|
82878
|
+
self.description = description
|
|
82879
|
+
# The mode in which the NAT gateway is associated with an elastic IP address (EIP). You can leave this parameter empty. If you want to specify a value for this parameter, set the value to **NAT**, which indicates that the NAT gateway is associated with the EIP in NAT mode.
|
|
82880
|
+
#
|
|
82881
|
+
# **\
|
|
82882
|
+
#
|
|
82883
|
+
# **Description**\
|
|
82884
|
+
#
|
|
82885
|
+
# * If EipBindMode is set to MULTI_BINDED when the NAT gateway is created, you can change the value of this parameter from **MULTI_BINDED** to **NAT**. If EipBindMode is set to NAT when the NAT gateway is created, you cannot change the value of this parameter from **NAT** to **MULTI_BINDED**. For more information about **MULTI_BINDED**, see [CreateNatGateway](~~120219~~).
|
|
82886
|
+
#
|
|
82887
|
+
# * 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.
|
|
82888
|
+
# * 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.
|
|
82889
|
+
self.eip_bind_mode = eip_bind_mode
|
|
82890
|
+
self.enable_session_log = enable_session_log
|
|
82891
|
+
# Specifies whether to enable the Internet Control Message Protocol (ICMP) non-retrieval feature. Valid values:
|
|
82892
|
+
#
|
|
82893
|
+
# * **false** (default)
|
|
82894
|
+
# * **true**\
|
|
82895
|
+
self.icmp_reply_enabled = icmp_reply_enabled
|
|
82896
|
+
self.log_delivery = log_delivery
|
|
82897
|
+
# The name of the NAT gateway.
|
|
82898
|
+
#
|
|
82899
|
+
# The name must be 1 to 128 characters in length and cannot start with `http://` or `https://`.
|
|
82900
|
+
self.name = name
|
|
82901
|
+
# The ID of the NAT gateway.
|
|
82902
|
+
self.nat_gateway_id = nat_gateway_id
|
|
82903
|
+
self.owner_account = owner_account
|
|
82904
|
+
self.owner_id = owner_id
|
|
82905
|
+
# The region ID of the NAT gateway.
|
|
82906
|
+
#
|
|
82907
|
+
# You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
|
|
82908
|
+
self.region_id = region_id
|
|
82909
|
+
self.resource_owner_account = resource_owner_account
|
|
82910
|
+
self.resource_owner_id = resource_owner_id
|
|
82911
|
+
|
|
82912
|
+
def validate(self):
|
|
82913
|
+
if self.log_delivery:
|
|
82914
|
+
self.log_delivery.validate()
|
|
82915
|
+
|
|
82916
|
+
def to_map(self):
|
|
82917
|
+
_map = super().to_map()
|
|
82918
|
+
if _map is not None:
|
|
82919
|
+
return _map
|
|
82920
|
+
|
|
82921
|
+
result = dict()
|
|
82922
|
+
if self.description is not None:
|
|
82923
|
+
result['Description'] = self.description
|
|
82924
|
+
if self.eip_bind_mode is not None:
|
|
82925
|
+
result['EipBindMode'] = self.eip_bind_mode
|
|
82926
|
+
if self.enable_session_log is not None:
|
|
82927
|
+
result['EnableSessionLog'] = self.enable_session_log
|
|
82928
|
+
if self.icmp_reply_enabled is not None:
|
|
82929
|
+
result['IcmpReplyEnabled'] = self.icmp_reply_enabled
|
|
82930
|
+
if self.log_delivery is not None:
|
|
82931
|
+
result['LogDelivery'] = self.log_delivery.to_map()
|
|
82932
|
+
if self.name is not None:
|
|
82933
|
+
result['Name'] = self.name
|
|
82934
|
+
if self.nat_gateway_id is not None:
|
|
82935
|
+
result['NatGatewayId'] = self.nat_gateway_id
|
|
82936
|
+
if self.owner_account is not None:
|
|
82937
|
+
result['OwnerAccount'] = self.owner_account
|
|
82938
|
+
if self.owner_id is not None:
|
|
82939
|
+
result['OwnerId'] = self.owner_id
|
|
82940
|
+
if self.region_id is not None:
|
|
82941
|
+
result['RegionId'] = self.region_id
|
|
82942
|
+
if self.resource_owner_account is not None:
|
|
82943
|
+
result['ResourceOwnerAccount'] = self.resource_owner_account
|
|
82944
|
+
if self.resource_owner_id is not None:
|
|
82945
|
+
result['ResourceOwnerId'] = self.resource_owner_id
|
|
82946
|
+
return result
|
|
82947
|
+
|
|
82948
|
+
def from_map(self, m: dict = None):
|
|
82949
|
+
m = m or dict()
|
|
82950
|
+
if m.get('Description') is not None:
|
|
82951
|
+
self.description = m.get('Description')
|
|
82952
|
+
if m.get('EipBindMode') is not None:
|
|
82953
|
+
self.eip_bind_mode = m.get('EipBindMode')
|
|
82954
|
+
if m.get('EnableSessionLog') is not None:
|
|
82955
|
+
self.enable_session_log = m.get('EnableSessionLog')
|
|
82956
|
+
if m.get('IcmpReplyEnabled') is not None:
|
|
82957
|
+
self.icmp_reply_enabled = m.get('IcmpReplyEnabled')
|
|
82958
|
+
if m.get('LogDelivery') is not None:
|
|
82959
|
+
temp_model = ModifyNatGatewayAttributeRequestLogDelivery()
|
|
82960
|
+
self.log_delivery = temp_model.from_map(m['LogDelivery'])
|
|
82961
|
+
if m.get('Name') is not None:
|
|
82962
|
+
self.name = m.get('Name')
|
|
82963
|
+
if m.get('NatGatewayId') is not None:
|
|
82964
|
+
self.nat_gateway_id = m.get('NatGatewayId')
|
|
82965
|
+
if m.get('OwnerAccount') is not None:
|
|
82966
|
+
self.owner_account = m.get('OwnerAccount')
|
|
82967
|
+
if m.get('OwnerId') is not None:
|
|
82968
|
+
self.owner_id = m.get('OwnerId')
|
|
82969
|
+
if m.get('RegionId') is not None:
|
|
82970
|
+
self.region_id = m.get('RegionId')
|
|
82971
|
+
if m.get('ResourceOwnerAccount') is not None:
|
|
82972
|
+
self.resource_owner_account = m.get('ResourceOwnerAccount')
|
|
82973
|
+
if m.get('ResourceOwnerId') is not None:
|
|
82974
|
+
self.resource_owner_id = m.get('ResourceOwnerId')
|
|
82975
|
+
return self
|
|
82976
|
+
|
|
82977
|
+
|
|
82978
|
+
class ModifyNatGatewayAttributeShrinkRequest(TeaModel):
|
|
82979
|
+
def __init__(
|
|
82980
|
+
self,
|
|
82981
|
+
description: str = None,
|
|
82982
|
+
eip_bind_mode: str = None,
|
|
82983
|
+
enable_session_log: bool = None,
|
|
82757
82984
|
icmp_reply_enabled: bool = None,
|
|
82985
|
+
log_delivery_shrink: str = None,
|
|
82758
82986
|
name: str = None,
|
|
82759
82987
|
nat_gateway_id: str = None,
|
|
82760
82988
|
owner_account: str = None,
|
|
@@ -82778,11 +83006,13 @@ class ModifyNatGatewayAttributeRequest(TeaModel):
|
|
|
82778
83006
|
# * 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.
|
|
82779
83007
|
# * 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.
|
|
82780
83008
|
self.eip_bind_mode = eip_bind_mode
|
|
83009
|
+
self.enable_session_log = enable_session_log
|
|
82781
83010
|
# Specifies whether to enable the Internet Control Message Protocol (ICMP) non-retrieval feature. Valid values:
|
|
82782
83011
|
#
|
|
82783
83012
|
# * **false** (default)
|
|
82784
83013
|
# * **true**\
|
|
82785
83014
|
self.icmp_reply_enabled = icmp_reply_enabled
|
|
83015
|
+
self.log_delivery_shrink = log_delivery_shrink
|
|
82786
83016
|
# The name of the NAT gateway.
|
|
82787
83017
|
#
|
|
82788
83018
|
# The name must be 1 to 128 characters in length and cannot start with `http://` or `https://`.
|
|
@@ -82811,8 +83041,12 @@ class ModifyNatGatewayAttributeRequest(TeaModel):
|
|
|
82811
83041
|
result['Description'] = self.description
|
|
82812
83042
|
if self.eip_bind_mode is not None:
|
|
82813
83043
|
result['EipBindMode'] = self.eip_bind_mode
|
|
83044
|
+
if self.enable_session_log is not None:
|
|
83045
|
+
result['EnableSessionLog'] = self.enable_session_log
|
|
82814
83046
|
if self.icmp_reply_enabled is not None:
|
|
82815
83047
|
result['IcmpReplyEnabled'] = self.icmp_reply_enabled
|
|
83048
|
+
if self.log_delivery_shrink is not None:
|
|
83049
|
+
result['LogDelivery'] = self.log_delivery_shrink
|
|
82816
83050
|
if self.name is not None:
|
|
82817
83051
|
result['Name'] = self.name
|
|
82818
83052
|
if self.nat_gateway_id is not None:
|
|
@@ -82835,8 +83069,12 @@ class ModifyNatGatewayAttributeRequest(TeaModel):
|
|
|
82835
83069
|
self.description = m.get('Description')
|
|
82836
83070
|
if m.get('EipBindMode') is not None:
|
|
82837
83071
|
self.eip_bind_mode = m.get('EipBindMode')
|
|
83072
|
+
if m.get('EnableSessionLog') is not None:
|
|
83073
|
+
self.enable_session_log = m.get('EnableSessionLog')
|
|
82838
83074
|
if m.get('IcmpReplyEnabled') is not None:
|
|
82839
83075
|
self.icmp_reply_enabled = m.get('IcmpReplyEnabled')
|
|
83076
|
+
if m.get('LogDelivery') is not None:
|
|
83077
|
+
self.log_delivery_shrink = m.get('LogDelivery')
|
|
82840
83078
|
if m.get('Name') is not None:
|
|
82841
83079
|
self.name = m.get('Name')
|
|
82842
83080
|
if m.get('NatGatewayId') is not None:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '6.6.2'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|