alibabacloud-vpc20160428 6.14.0__py3-none-any.whl → 6.15.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.
Files changed (41) hide show
  1. alibabacloud_vpc20160428/__init__.py +1 -1
  2. alibabacloud_vpc20160428/client.py +220 -0
  3. alibabacloud_vpc20160428/models/__init__.py +12 -0
  4. alibabacloud_vpc20160428/models/_create_forward_entry_request.py +7 -6
  5. alibabacloud_vpc20160428/models/_create_nat_gateway_request.py +2 -0
  6. alibabacloud_vpc20160428/models/_create_nat_gateway_shrink_request.py +2 -0
  7. alibabacloud_vpc20160428/models/_create_nat_ip_request.py +2 -0
  8. alibabacloud_vpc20160428/models/_create_nat_ip_response_body.py +5 -0
  9. alibabacloud_vpc20160428/models/_create_snat_entry_request.py +5 -0
  10. alibabacloud_vpc20160428/models/_create_vpn_attachment_request.py +8 -0
  11. alibabacloud_vpc20160428/models/_delete_nat_ip_request.py +2 -0
  12. alibabacloud_vpc20160428/models/_describe_nat_gateway_associate_network_interfaces_response_body.py +1 -0
  13. alibabacloud_vpc20160428/models/_describe_nat_gateways_request.py +2 -2
  14. alibabacloud_vpc20160428/models/_describe_nat_gateways_response_body.py +11 -0
  15. alibabacloud_vpc20160428/models/_describe_snat_table_entries_request.py +1 -0
  16. alibabacloud_vpc20160428/models/_describe_snat_table_entries_response_body.py +4 -0
  17. alibabacloud_vpc20160428/models/_describe_vpn_attachments_response_body.py +8 -0
  18. alibabacloud_vpc20160428/models/_describe_vpn_connection_response_body.py +8 -0
  19. alibabacloud_vpc20160428/models/_describe_vpn_connections_response_body.py +8 -0
  20. alibabacloud_vpc20160428/models/_describe_vpn_gateway_response_body.py +8 -0
  21. alibabacloud_vpc20160428/models/_describe_vpn_gateways_request.py +8 -0
  22. alibabacloud_vpc20160428/models/_describe_vpn_gateways_response_body.py +8 -0
  23. alibabacloud_vpc20160428/models/_get_nat_gateway_attribute_response_body.py +16 -0
  24. alibabacloud_vpc20160428/models/_get_nat_ip_attribute_request.py +99 -0
  25. alibabacloud_vpc20160428/models/_get_nat_ip_attribute_response.py +54 -0
  26. alibabacloud_vpc20160428/models/_get_nat_ip_attribute_response_body.py +109 -0
  27. alibabacloud_vpc20160428/models/_get_nat_ip_cidr_attribute_request.py +111 -0
  28. alibabacloud_vpc20160428/models/_get_nat_ip_cidr_attribute_response.py +54 -0
  29. alibabacloud_vpc20160428/models/_get_nat_ip_cidr_attribute_response_body.py +91 -0
  30. alibabacloud_vpc20160428/models/_get_route_target_group_response_body.py +9 -1
  31. alibabacloud_vpc20160428/models/_list_nat_ips_request.py +10 -0
  32. alibabacloud_vpc20160428/models/_list_nat_ips_response_body.py +1 -0
  33. alibabacloud_vpc20160428/models/_modify_forward_entry_request.py +5 -0
  34. alibabacloud_vpc20160428/models/_modify_nat_gateway_attribute_request.py +11 -7
  35. alibabacloud_vpc20160428/models/_modify_nat_gateway_attribute_shrink_request.py +9 -7
  36. alibabacloud_vpc20160428/models/_modify_snat_entry_request.py +8 -0
  37. {alibabacloud_vpc20160428-6.14.0.dist-info → alibabacloud_vpc20160428-6.15.0.dist-info}/METADATA +2 -2
  38. {alibabacloud_vpc20160428-6.14.0.dist-info → alibabacloud_vpc20160428-6.15.0.dist-info}/RECORD +41 -35
  39. {alibabacloud_vpc20160428-6.14.0.dist-info → alibabacloud_vpc20160428-6.15.0.dist-info}/LICENSE +0 -0
  40. {alibabacloud_vpc20160428-6.14.0.dist-info → alibabacloud_vpc20160428-6.15.0.dist-info}/WHEEL +0 -0
  41. {alibabacloud_vpc20160428-6.14.0.dist-info → alibabacloud_vpc20160428-6.15.0.dist-info}/top_level.txt +0 -0
@@ -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'))
@@ -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):
@@ -0,0 +1,99 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from darabonba.model import DaraModel
6
+
7
+ class GetNatIpAttributeRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ client_token: str = None,
11
+ dry_run: bool = None,
12
+ nat_ip_id: str = None,
13
+ owner_account: str = None,
14
+ owner_id: int = None,
15
+ region_id: str = None,
16
+ resource_owner_account: str = None,
17
+ resource_owner_id: int = None,
18
+ ):
19
+ # Client Token, used to ensure the idempotence of requests. Generate a unique value for this parameter from your client, ensuring that it is unique across different requests. ClientToken only supports ASCII characters. If not specified, the system automatically uses the **RequestId** of the API request as the **ClientToken** identifier. The **RequestId** may differ for each API request.
20
+ self.client_token = client_token
21
+ # Indicates whether to perform a dry run of the request. Values:
22
+ # - **true**: Sends a check request without querying NAT IP address information. The checks include whether the AccessKey is valid, the RAM user\\"s authorization status, and if all required parameters are filled out. If any check fails, the corresponding error is returned. If all checks pass, the `DryRunOperation` error code is returned.
23
+ # - **false** (default): Sends a normal request. After passing the checks, it returns an HTTP 2xx status code and queries the NAT IP address information.
24
+ self.dry_run = dry_run
25
+ # The ID of the NAT IP address instance to be queried.
26
+ #
27
+ # This parameter is required.
28
+ self.nat_ip_id = nat_ip_id
29
+ self.owner_account = owner_account
30
+ self.owner_id = owner_id
31
+ # The region ID of the NAT gateway instance to which the NAT IP address to be queried belongs. You can obtain the region ID by calling the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) interface.
32
+ #
33
+ # This parameter is required.
34
+ self.region_id = region_id
35
+ self.resource_owner_account = resource_owner_account
36
+ self.resource_owner_id = resource_owner_id
37
+
38
+ def validate(self):
39
+ pass
40
+
41
+ def to_map(self):
42
+ result = dict()
43
+ _map = super().to_map()
44
+ if _map is not None:
45
+ result = _map
46
+ if self.client_token is not None:
47
+ result['ClientToken'] = self.client_token
48
+
49
+ if self.dry_run is not None:
50
+ result['DryRun'] = self.dry_run
51
+
52
+ if self.nat_ip_id is not None:
53
+ result['NatIpId'] = self.nat_ip_id
54
+
55
+ if self.owner_account is not None:
56
+ result['OwnerAccount'] = self.owner_account
57
+
58
+ if self.owner_id is not None:
59
+ result['OwnerId'] = self.owner_id
60
+
61
+ if self.region_id is not None:
62
+ result['RegionId'] = self.region_id
63
+
64
+ if self.resource_owner_account is not None:
65
+ result['ResourceOwnerAccount'] = self.resource_owner_account
66
+
67
+ if self.resource_owner_id is not None:
68
+ result['ResourceOwnerId'] = self.resource_owner_id
69
+
70
+ return result
71
+
72
+ def from_map(self, m: dict = None):
73
+ m = m or dict()
74
+ if m.get('ClientToken') is not None:
75
+ self.client_token = m.get('ClientToken')
76
+
77
+ if m.get('DryRun') is not None:
78
+ self.dry_run = m.get('DryRun')
79
+
80
+ if m.get('NatIpId') is not None:
81
+ self.nat_ip_id = m.get('NatIpId')
82
+
83
+ if m.get('OwnerAccount') is not None:
84
+ self.owner_account = m.get('OwnerAccount')
85
+
86
+ if m.get('OwnerId') is not None:
87
+ self.owner_id = m.get('OwnerId')
88
+
89
+ if m.get('RegionId') is not None:
90
+ self.region_id = m.get('RegionId')
91
+
92
+ if m.get('ResourceOwnerAccount') is not None:
93
+ self.resource_owner_account = m.get('ResourceOwnerAccount')
94
+
95
+ if m.get('ResourceOwnerId') is not None:
96
+ self.resource_owner_id = m.get('ResourceOwnerId')
97
+
98
+ return self
99
+
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+
7
+ from alibabacloud_vpc20160428 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class GetNatIpAttributeResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.GetNatIpAttributeResponseBody = None,
16
+ ):
17
+ self.headers = headers
18
+ self.status_code = status_code
19
+ self.body = body
20
+
21
+ def validate(self):
22
+ if self.body:
23
+ self.body.validate()
24
+
25
+ def to_map(self):
26
+ result = dict()
27
+ _map = super().to_map()
28
+ if _map is not None:
29
+ result = _map
30
+ if self.headers is not None:
31
+ result['headers'] = self.headers
32
+
33
+ if self.status_code is not None:
34
+ result['statusCode'] = self.status_code
35
+
36
+ if self.body is not None:
37
+ result['body'] = self.body.to_map()
38
+
39
+ return result
40
+
41
+ def from_map(self, m: dict = None):
42
+ m = m or dict()
43
+ if m.get('headers') is not None:
44
+ self.headers = m.get('headers')
45
+
46
+ if m.get('statusCode') is not None:
47
+ self.status_code = m.get('statusCode')
48
+
49
+ if m.get('body') is not None:
50
+ temp_model = main_models.GetNatIpAttributeResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,109 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from darabonba.model import DaraModel
6
+
7
+ class GetNatIpAttributeResponseBody(DaraModel):
8
+ def __init__(
9
+ self,
10
+ creation_time: str = None,
11
+ nat_gateway_id: str = None,
12
+ nat_ip: str = None,
13
+ nat_ip_cidr: str = None,
14
+ nat_ip_description: str = None,
15
+ nat_ip_id: str = None,
16
+ nat_ip_name: str = None,
17
+ nat_ip_status: str = None,
18
+ request_id: str = None,
19
+ ):
20
+ # The creation time of the queried NAT IP address.
21
+ self.creation_time = creation_time
22
+ # The ID of the VPC NAT gateway instance to which the queried NAT IP address belongs.
23
+ self.nat_gateway_id = nat_gateway_id
24
+ # The queried NAT IP address.
25
+ self.nat_ip = nat_ip
26
+ # The address range where the queried NAT IP address is located.
27
+ self.nat_ip_cidr = nat_ip_cidr
28
+ # Description of the queried NAT IP address.
29
+ self.nat_ip_description = nat_ip_description
30
+ # The ID of the queried NAT IP address instance.
31
+ self.nat_ip_id = nat_ip_id
32
+ # Name of the queried NAT IP address.
33
+ self.nat_ip_name = nat_ip_name
34
+ # The status of the queried NAT IP address. Values:
35
+ # - **Available**: Available.
36
+ # - **Deleting**: Deleting.
37
+ # - **Creating**: Creating.
38
+ self.nat_ip_status = nat_ip_status
39
+ # Request ID.
40
+ self.request_id = request_id
41
+
42
+ def validate(self):
43
+ pass
44
+
45
+ def to_map(self):
46
+ result = dict()
47
+ _map = super().to_map()
48
+ if _map is not None:
49
+ result = _map
50
+ if self.creation_time is not None:
51
+ result['CreationTime'] = self.creation_time
52
+
53
+ if self.nat_gateway_id is not None:
54
+ result['NatGatewayId'] = self.nat_gateway_id
55
+
56
+ if self.nat_ip is not None:
57
+ result['NatIp'] = self.nat_ip
58
+
59
+ if self.nat_ip_cidr is not None:
60
+ result['NatIpCidr'] = self.nat_ip_cidr
61
+
62
+ if self.nat_ip_description is not None:
63
+ result['NatIpDescription'] = self.nat_ip_description
64
+
65
+ if self.nat_ip_id is not None:
66
+ result['NatIpId'] = self.nat_ip_id
67
+
68
+ if self.nat_ip_name is not None:
69
+ result['NatIpName'] = self.nat_ip_name
70
+
71
+ if self.nat_ip_status is not None:
72
+ result['NatIpStatus'] = self.nat_ip_status
73
+
74
+ if self.request_id is not None:
75
+ result['RequestId'] = self.request_id
76
+
77
+ return result
78
+
79
+ def from_map(self, m: dict = None):
80
+ m = m or dict()
81
+ if m.get('CreationTime') is not None:
82
+ self.creation_time = m.get('CreationTime')
83
+
84
+ if m.get('NatGatewayId') is not None:
85
+ self.nat_gateway_id = m.get('NatGatewayId')
86
+
87
+ if m.get('NatIp') is not None:
88
+ self.nat_ip = m.get('NatIp')
89
+
90
+ if m.get('NatIpCidr') is not None:
91
+ self.nat_ip_cidr = m.get('NatIpCidr')
92
+
93
+ if m.get('NatIpDescription') is not None:
94
+ self.nat_ip_description = m.get('NatIpDescription')
95
+
96
+ if m.get('NatIpId') is not None:
97
+ self.nat_ip_id = m.get('NatIpId')
98
+
99
+ if m.get('NatIpName') is not None:
100
+ self.nat_ip_name = m.get('NatIpName')
101
+
102
+ if m.get('NatIpStatus') is not None:
103
+ self.nat_ip_status = m.get('NatIpStatus')
104
+
105
+ if m.get('RequestId') is not None:
106
+ self.request_id = m.get('RequestId')
107
+
108
+ return self
109
+
@@ -0,0 +1,111 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from darabonba.model import DaraModel
6
+
7
+ class GetNatIpCidrAttributeRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ client_token: str = None,
11
+ dry_run: bool = None,
12
+ nat_gateway_id: str = None,
13
+ nat_ip_cidr: str = None,
14
+ owner_account: str = None,
15
+ owner_id: int = None,
16
+ region_id: str = None,
17
+ resource_owner_account: str = None,
18
+ resource_owner_id: int = None,
19
+ ):
20
+ # Client Token, used to ensure the idempotence of requests. Generate a unique value for this parameter from your client, ensuring it is unique across different requests. ClientToken only supports ASCII characters.
21
+ # > If not specified, the system automatically uses the RequestId of the API request as the ClientToken identifier. The RequestId is different for each API request.
22
+ self.client_token = client_token
23
+ # Whether to perform a dry run of this request. Values:
24
+ # - true: Sends a check request. The checks include whether the AccessKey is valid, the RAM user\\"s authorization status, and if all required parameters are filled out. If any check fails, the corresponding error is returned. If all checks pass, an error code DryRunOperation is returned.
25
+ # - false (default): Sends a normal request. After passing the checks, a 2xx HTTP status code is returned.
26
+ self.dry_run = dry_run
27
+ # The ID of the VPC NAT gateway instance to which the queried NAT IP address range belongs.
28
+ #
29
+ # This parameter is required.
30
+ self.nat_gateway_id = nat_gateway_id
31
+ # The NAT IP address range to be queried.
32
+ #
33
+ # This parameter is required.
34
+ self.nat_ip_cidr = nat_ip_cidr
35
+ self.owner_account = owner_account
36
+ self.owner_id = owner_id
37
+ # The region ID of the NAT gateway instance to which the NAT IP address range to be queried belongs. You can obtain the region ID by calling the DescribeRegions interface.
38
+ #
39
+ # This parameter is required.
40
+ self.region_id = region_id
41
+ self.resource_owner_account = resource_owner_account
42
+ self.resource_owner_id = resource_owner_id
43
+
44
+ def validate(self):
45
+ pass
46
+
47
+ def to_map(self):
48
+ result = dict()
49
+ _map = super().to_map()
50
+ if _map is not None:
51
+ result = _map
52
+ if self.client_token is not None:
53
+ result['ClientToken'] = self.client_token
54
+
55
+ if self.dry_run is not None:
56
+ result['DryRun'] = self.dry_run
57
+
58
+ if self.nat_gateway_id is not None:
59
+ result['NatGatewayId'] = self.nat_gateway_id
60
+
61
+ if self.nat_ip_cidr is not None:
62
+ result['NatIpCidr'] = self.nat_ip_cidr
63
+
64
+ if self.owner_account is not None:
65
+ result['OwnerAccount'] = self.owner_account
66
+
67
+ if self.owner_id is not None:
68
+ result['OwnerId'] = self.owner_id
69
+
70
+ if self.region_id is not None:
71
+ result['RegionId'] = self.region_id
72
+
73
+ if self.resource_owner_account is not None:
74
+ result['ResourceOwnerAccount'] = self.resource_owner_account
75
+
76
+ if self.resource_owner_id is not None:
77
+ result['ResourceOwnerId'] = self.resource_owner_id
78
+
79
+ return result
80
+
81
+ def from_map(self, m: dict = None):
82
+ m = m or dict()
83
+ if m.get('ClientToken') is not None:
84
+ self.client_token = m.get('ClientToken')
85
+
86
+ if m.get('DryRun') is not None:
87
+ self.dry_run = m.get('DryRun')
88
+
89
+ if m.get('NatGatewayId') is not None:
90
+ self.nat_gateway_id = m.get('NatGatewayId')
91
+
92
+ if m.get('NatIpCidr') is not None:
93
+ self.nat_ip_cidr = m.get('NatIpCidr')
94
+
95
+ if m.get('OwnerAccount') is not None:
96
+ self.owner_account = m.get('OwnerAccount')
97
+
98
+ if m.get('OwnerId') is not None:
99
+ self.owner_id = m.get('OwnerId')
100
+
101
+ if m.get('RegionId') is not None:
102
+ self.region_id = m.get('RegionId')
103
+
104
+ if m.get('ResourceOwnerAccount') is not None:
105
+ self.resource_owner_account = m.get('ResourceOwnerAccount')
106
+
107
+ if m.get('ResourceOwnerId') is not None:
108
+ self.resource_owner_id = m.get('ResourceOwnerId')
109
+
110
+ return self
111
+
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+
7
+ from alibabacloud_vpc20160428 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class GetNatIpCidrAttributeResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.GetNatIpCidrAttributeResponseBody = None,
16
+ ):
17
+ self.headers = headers
18
+ self.status_code = status_code
19
+ self.body = body
20
+
21
+ def validate(self):
22
+ if self.body:
23
+ self.body.validate()
24
+
25
+ def to_map(self):
26
+ result = dict()
27
+ _map = super().to_map()
28
+ if _map is not None:
29
+ result = _map
30
+ if self.headers is not None:
31
+ result['headers'] = self.headers
32
+
33
+ if self.status_code is not None:
34
+ result['statusCode'] = self.status_code
35
+
36
+ if self.body is not None:
37
+ result['body'] = self.body.to_map()
38
+
39
+ return result
40
+
41
+ def from_map(self, m: dict = None):
42
+ m = m or dict()
43
+ if m.get('headers') is not None:
44
+ self.headers = m.get('headers')
45
+
46
+ if m.get('statusCode') is not None:
47
+ self.status_code = m.get('statusCode')
48
+
49
+ if m.get('body') is not None:
50
+ temp_model = main_models.GetNatIpCidrAttributeResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+