alibabacloud-privatelink20200415 4.0.4__py3-none-any.whl → 4.0.6__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 (126) hide show
  1. alibabacloud_privatelink20200415/__init__.py +1 -1
  2. alibabacloud_privatelink20200415/client.py +2426 -3802
  3. alibabacloud_privatelink20200415/models/__init__.py +301 -0
  4. alibabacloud_privatelink20200415/models/_add_user_to_vpc_endpoint_service_request.py +88 -0
  5. alibabacloud_privatelink20200415/models/_add_user_to_vpc_endpoint_service_response.py +54 -0
  6. alibabacloud_privatelink20200415/models/_add_user_to_vpc_endpoint_service_response_body.py +34 -0
  7. alibabacloud_privatelink20200415/models/_add_zone_to_vpc_endpoint_request.py +112 -0
  8. alibabacloud_privatelink20200415/models/_add_zone_to_vpc_endpoint_response.py +54 -0
  9. alibabacloud_privatelink20200415/models/_add_zone_to_vpc_endpoint_response_body.py +34 -0
  10. alibabacloud_privatelink20200415/models/_attach_resource_to_vpc_endpoint_service_request.py +109 -0
  11. alibabacloud_privatelink20200415/models/_attach_resource_to_vpc_endpoint_service_response.py +54 -0
  12. alibabacloud_privatelink20200415/models/_attach_resource_to_vpc_endpoint_service_response_body.py +34 -0
  13. alibabacloud_privatelink20200415/models/_attach_security_group_to_vpc_endpoint_request.py +81 -0
  14. alibabacloud_privatelink20200415/models/_attach_security_group_to_vpc_endpoint_response.py +54 -0
  15. alibabacloud_privatelink20200415/models/_attach_security_group_to_vpc_endpoint_response_body.py +34 -0
  16. alibabacloud_privatelink20200415/models/_change_resource_group_request.py +59 -0
  17. alibabacloud_privatelink20200415/models/_change_resource_group_response.py +54 -0
  18. alibabacloud_privatelink20200415/models/_change_resource_group_response_body.py +34 -0
  19. alibabacloud_privatelink20200415/models/_check_product_open_response.py +54 -0
  20. alibabacloud_privatelink20200415/models/_check_product_open_response_body.py +45 -0
  21. alibabacloud_privatelink20200415/models/_create_vpc_endpoint_request.py +347 -0
  22. alibabacloud_privatelink20200415/models/_create_vpc_endpoint_response.py +54 -0
  23. alibabacloud_privatelink20200415/models/_create_vpc_endpoint_response_body.py +193 -0
  24. alibabacloud_privatelink20200415/models/_create_vpc_endpoint_service_request.py +295 -0
  25. alibabacloud_privatelink20200415/models/_create_vpc_endpoint_service_response.py +54 -0
  26. alibabacloud_privatelink20200415/models/_create_vpc_endpoint_service_response_body.py +224 -0
  27. alibabacloud_privatelink20200415/models/_delete_vpc_endpoint_request.py +70 -0
  28. alibabacloud_privatelink20200415/models/_delete_vpc_endpoint_response.py +54 -0
  29. alibabacloud_privatelink20200415/models/_delete_vpc_endpoint_response_body.py +34 -0
  30. alibabacloud_privatelink20200415/models/_delete_vpc_endpoint_service_request.py +70 -0
  31. alibabacloud_privatelink20200415/models/_delete_vpc_endpoint_service_response.py +54 -0
  32. alibabacloud_privatelink20200415/models/_delete_vpc_endpoint_service_response_body.py +34 -0
  33. alibabacloud_privatelink20200415/models/_describe_regions_request.py +42 -0
  34. alibabacloud_privatelink20200415/models/_describe_regions_response.py +54 -0
  35. alibabacloud_privatelink20200415/models/_describe_regions_response_body.py +166 -0
  36. alibabacloud_privatelink20200415/models/_describe_zones_request.py +44 -0
  37. alibabacloud_privatelink20200415/models/_describe_zones_response.py +54 -0
  38. alibabacloud_privatelink20200415/models/_describe_zones_response_body.py +120 -0
  39. alibabacloud_privatelink20200415/models/_detach_resource_from_vpc_endpoint_service_request.py +104 -0
  40. alibabacloud_privatelink20200415/models/_detach_resource_from_vpc_endpoint_service_response.py +54 -0
  41. alibabacloud_privatelink20200415/models/_detach_resource_from_vpc_endpoint_service_response_body.py +34 -0
  42. alibabacloud_privatelink20200415/models/_detach_security_group_from_vpc_endpoint_request.py +81 -0
  43. alibabacloud_privatelink20200415/models/_detach_security_group_from_vpc_endpoint_response.py +54 -0
  44. alibabacloud_privatelink20200415/models/_detach_security_group_from_vpc_endpoint_response_body.py +34 -0
  45. alibabacloud_privatelink20200415/models/_disable_vpc_endpoint_connection_request.py +81 -0
  46. alibabacloud_privatelink20200415/models/_disable_vpc_endpoint_connection_response.py +54 -0
  47. alibabacloud_privatelink20200415/models/_disable_vpc_endpoint_connection_response_body.py +34 -0
  48. alibabacloud_privatelink20200415/models/_disable_vpc_endpoint_zone_connection_request.py +108 -0
  49. alibabacloud_privatelink20200415/models/_disable_vpc_endpoint_zone_connection_response.py +54 -0
  50. alibabacloud_privatelink20200415/models/_disable_vpc_endpoint_zone_connection_response_body.py +34 -0
  51. alibabacloud_privatelink20200415/models/_enable_vpc_endpoint_connection_request.py +102 -0
  52. alibabacloud_privatelink20200415/models/_enable_vpc_endpoint_connection_response.py +54 -0
  53. alibabacloud_privatelink20200415/models/_enable_vpc_endpoint_connection_response_body.py +34 -0
  54. alibabacloud_privatelink20200415/models/_enable_vpc_endpoint_zone_connection_request.py +92 -0
  55. alibabacloud_privatelink20200415/models/_enable_vpc_endpoint_zone_connection_response.py +54 -0
  56. alibabacloud_privatelink20200415/models/_enable_vpc_endpoint_zone_connection_response_body.py +34 -0
  57. alibabacloud_privatelink20200415/models/_get_vpc_endpoint_attribute_request.py +49 -0
  58. alibabacloud_privatelink20200415/models/_get_vpc_endpoint_attribute_response.py +54 -0
  59. alibabacloud_privatelink20200415/models/_get_vpc_endpoint_attribute_response_body.py +267 -0
  60. alibabacloud_privatelink20200415/models/_get_vpc_endpoint_service_attribute_request.py +49 -0
  61. alibabacloud_privatelink20200415/models/_get_vpc_endpoint_service_attribute_response.py +54 -0
  62. alibabacloud_privatelink20200415/models/_get_vpc_endpoint_service_attribute_response_body.py +305 -0
  63. alibabacloud_privatelink20200415/models/_list_tag_resources_request.py +143 -0
  64. alibabacloud_privatelink20200415/models/_list_tag_resources_response.py +54 -0
  65. alibabacloud_privatelink20200415/models/_list_tag_resources_response_body.py +124 -0
  66. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_connections_request.py +139 -0
  67. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_connections_response.py +54 -0
  68. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_connections_response_body.py +337 -0
  69. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_security_groups_request.py +70 -0
  70. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_security_groups_response.py +54 -0
  71. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_security_groups_response_body.py +124 -0
  72. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_service_resources_request.py +70 -0
  73. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_service_resources_response.py +54 -0
  74. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_service_resources_response_body.py +201 -0
  75. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_service_users_request.py +88 -0
  76. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_service_users_response.py +54 -0
  77. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_service_users_response_body.py +158 -0
  78. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_services_by_end_user_request.py +166 -0
  79. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_services_by_end_user_response.py +54 -0
  80. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_services_by_end_user_response_body.py +286 -0
  81. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_services_request.py +230 -0
  82. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_services_response.py +54 -0
  83. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_services_response_body.py +417 -0
  84. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_zones_request.py +72 -0
  85. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_zones_response.py +54 -0
  86. alibabacloud_privatelink20200415/models/_list_vpc_endpoint_zones_response_body.py +188 -0
  87. alibabacloud_privatelink20200415/models/_list_vpc_endpoints_request.py +228 -0
  88. alibabacloud_privatelink20200415/models/_list_vpc_endpoints_response.py +54 -0
  89. alibabacloud_privatelink20200415/models/_list_vpc_endpoints_response_body.py +372 -0
  90. alibabacloud_privatelink20200415/models/_open_private_link_service_request.py +33 -0
  91. alibabacloud_privatelink20200415/models/_open_private_link_service_response.py +54 -0
  92. alibabacloud_privatelink20200415/models/_open_private_link_service_response_body.py +43 -0
  93. alibabacloud_privatelink20200415/models/_remove_user_from_vpc_endpoint_service_request.py +86 -0
  94. alibabacloud_privatelink20200415/models/_remove_user_from_vpc_endpoint_service_response.py +54 -0
  95. alibabacloud_privatelink20200415/models/_remove_user_from_vpc_endpoint_service_response_body.py +34 -0
  96. alibabacloud_privatelink20200415/models/_remove_zone_from_vpc_endpoint_request.py +81 -0
  97. alibabacloud_privatelink20200415/models/_remove_zone_from_vpc_endpoint_response.py +54 -0
  98. alibabacloud_privatelink20200415/models/_remove_zone_from_vpc_endpoint_response_body.py +34 -0
  99. alibabacloud_privatelink20200415/models/_tag_resources_request.py +155 -0
  100. alibabacloud_privatelink20200415/models/_tag_resources_response.py +54 -0
  101. alibabacloud_privatelink20200415/models/_tag_resources_response_body.py +34 -0
  102. alibabacloud_privatelink20200415/models/_untag_resources_request.py +113 -0
  103. alibabacloud_privatelink20200415/models/_untag_resources_response.py +54 -0
  104. alibabacloud_privatelink20200415/models/_untag_resources_response_body.py +34 -0
  105. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_attribute_request.py +138 -0
  106. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_attribute_response.py +54 -0
  107. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_attribute_response_body.py +34 -0
  108. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_connection_attribute_request.py +100 -0
  109. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_connection_attribute_response.py +54 -0
  110. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_connection_attribute_response_body.py +34 -0
  111. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_service_attribute_request.py +162 -0
  112. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_service_attribute_response.py +54 -0
  113. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_service_attribute_response_body.py +34 -0
  114. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_service_resource_attribute_request.py +106 -0
  115. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_service_resource_attribute_response.py +54 -0
  116. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_service_resource_attribute_response_body.py +34 -0
  117. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_zone_connection_resource_attribute_request.py +145 -0
  118. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_zone_connection_resource_attribute_response.py +54 -0
  119. alibabacloud_privatelink20200415/models/_update_vpc_endpoint_zone_connection_resource_attribute_response_body.py +34 -0
  120. {alibabacloud_privatelink20200415-4.0.4.dist-info → alibabacloud_privatelink20200415-4.0.6.dist-info}/METADATA +7 -7
  121. alibabacloud_privatelink20200415-4.0.6.dist-info/RECORD +124 -0
  122. alibabacloud_privatelink20200415/models.py +0 -8525
  123. alibabacloud_privatelink20200415-4.0.4.dist-info/RECORD +0 -8
  124. {alibabacloud_privatelink20200415-4.0.4.dist-info → alibabacloud_privatelink20200415-4.0.6.dist-info}/LICENSE +0 -0
  125. {alibabacloud_privatelink20200415-4.0.4.dist-info → alibabacloud_privatelink20200415-4.0.6.dist-info}/WHEEL +0 -0
  126. {alibabacloud_privatelink20200415-4.0.4.dist-info → alibabacloud_privatelink20200415-4.0.6.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,72 @@
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 ListVpcEndpointZonesRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ endpoint_id: str = None,
11
+ max_results: int = None,
12
+ next_token: str = None,
13
+ region_id: str = None,
14
+ ):
15
+ # The ID of the endpoint for which you want to query zones.
16
+ #
17
+ # After you specify an endpoint ID, the system queries the zones of the specified endpoint.
18
+ #
19
+ # This parameter is required.
20
+ self.endpoint_id = endpoint_id
21
+ # The number of entries to return on each page. Valid values: **1** to **50**. Default value: **50**.
22
+ self.max_results = max_results
23
+ # The pagination token that is used in the next request to retrieve a new page of results. Valid values:
24
+ #
25
+ # * If this is your first request and no next requests are to be performed, you do not need to specify this parameter.
26
+ # * If a next request is to be performed, set the parameter to the value of **NextToken** that is returned from the last call.
27
+ self.next_token = next_token
28
+ # The region ID of the endpoint.
29
+ #
30
+ # You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
31
+ #
32
+ # This parameter is required.
33
+ self.region_id = region_id
34
+
35
+ def validate(self):
36
+ pass
37
+
38
+ def to_map(self):
39
+ result = dict()
40
+ _map = super().to_map()
41
+ if _map is not None:
42
+ result = _map
43
+ if self.endpoint_id is not None:
44
+ result['EndpointId'] = self.endpoint_id
45
+
46
+ if self.max_results is not None:
47
+ result['MaxResults'] = self.max_results
48
+
49
+ if self.next_token is not None:
50
+ result['NextToken'] = self.next_token
51
+
52
+ if self.region_id is not None:
53
+ result['RegionId'] = self.region_id
54
+
55
+ return result
56
+
57
+ def from_map(self, m: dict = None):
58
+ m = m or dict()
59
+ if m.get('EndpointId') is not None:
60
+ self.endpoint_id = m.get('EndpointId')
61
+
62
+ if m.get('MaxResults') is not None:
63
+ self.max_results = m.get('MaxResults')
64
+
65
+ if m.get('NextToken') is not None:
66
+ self.next_token = m.get('NextToken')
67
+
68
+ if m.get('RegionId') is not None:
69
+ self.region_id = m.get('RegionId')
70
+
71
+ return self
72
+
@@ -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_privatelink20200415 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class ListVpcEndpointZonesResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.ListVpcEndpointZonesResponseBody = 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.ListVpcEndpointZonesResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,188 @@
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 List
6
+
7
+ from alibabacloud_privatelink20200415 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class ListVpcEndpointZonesResponseBody(DaraModel):
11
+ def __init__(
12
+ self,
13
+ max_results: int = None,
14
+ next_token: str = None,
15
+ request_id: str = None,
16
+ total_count: int = None,
17
+ zones: List[main_models.ListVpcEndpointZonesResponseBodyZones] = None,
18
+ ):
19
+ # The number of entries returned on each page.
20
+ self.max_results = max_results
21
+ # The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. Valid values:
22
+ #
23
+ # * If no value is returned for **NextToken**, no next requests are performed.
24
+ # * If a value is returned for **NextToken**, the value can be used in the next request to retrieve a new page of results.
25
+ self.next_token = next_token
26
+ # The request ID.
27
+ self.request_id = request_id
28
+ # The total number of entries returned.
29
+ self.total_count = total_count
30
+ # The information about the zones.
31
+ self.zones = zones
32
+
33
+ def validate(self):
34
+ if self.zones:
35
+ for v1 in self.zones:
36
+ if v1:
37
+ v1.validate()
38
+
39
+ def to_map(self):
40
+ result = dict()
41
+ _map = super().to_map()
42
+ if _map is not None:
43
+ result = _map
44
+ if self.max_results is not None:
45
+ result['MaxResults'] = self.max_results
46
+
47
+ if self.next_token is not None:
48
+ result['NextToken'] = self.next_token
49
+
50
+ if self.request_id is not None:
51
+ result['RequestId'] = self.request_id
52
+
53
+ if self.total_count is not None:
54
+ result['TotalCount'] = self.total_count
55
+
56
+ result['Zones'] = []
57
+ if self.zones is not None:
58
+ for k1 in self.zones:
59
+ result['Zones'].append(k1.to_map() if k1 else None)
60
+
61
+ return result
62
+
63
+ def from_map(self, m: dict = None):
64
+ m = m or dict()
65
+ if m.get('MaxResults') is not None:
66
+ self.max_results = m.get('MaxResults')
67
+
68
+ if m.get('NextToken') is not None:
69
+ self.next_token = m.get('NextToken')
70
+
71
+ if m.get('RequestId') is not None:
72
+ self.request_id = m.get('RequestId')
73
+
74
+ if m.get('TotalCount') is not None:
75
+ self.total_count = m.get('TotalCount')
76
+
77
+ self.zones = []
78
+ if m.get('Zones') is not None:
79
+ for k1 in m.get('Zones'):
80
+ temp_model = main_models.ListVpcEndpointZonesResponseBodyZones()
81
+ self.zones.append(temp_model.from_map(k1))
82
+
83
+ return self
84
+
85
+ class ListVpcEndpointZonesResponseBodyZones(DaraModel):
86
+ def __init__(
87
+ self,
88
+ eni_id: str = None,
89
+ eni_ip: str = None,
90
+ region_id: str = None,
91
+ v_switch_id: str = None,
92
+ zone_domain: str = None,
93
+ zone_id: str = None,
94
+ zone_ipv_6address: str = None,
95
+ zone_status: str = None,
96
+ ):
97
+ # The ID of the endpoint ENI.
98
+ self.eni_id = eni_id
99
+ # The IP address of the endpoint ENI.
100
+ self.eni_ip = eni_ip
101
+ # The region ID of the endpoint.
102
+ self.region_id = region_id
103
+ # The ID of the vSwitch in the zone. The system automatically creates an endpoint elastic network interface (ENI) in the vSwitch.
104
+ self.v_switch_id = v_switch_id
105
+ # The domain name of the zone.
106
+ #
107
+ # After the endpoint in the zone is connected to the endpoint service, you can access the service resources of the endpoint service by using the domain name of the zone.
108
+ self.zone_domain = zone_domain
109
+ # The zone ID.
110
+ self.zone_id = zone_id
111
+ # Indicates whether the endpoint service supports IPv6. Valid values:
112
+ #
113
+ # * **true**
114
+ # * **false** (default)
115
+ self.zone_ipv_6address = zone_ipv_6address
116
+ # The state of the zone. Valid values:
117
+ #
118
+ # * **Creating**: The zone is being created.
119
+ # * **Wait**: The zone is to be connected.
120
+ # * **Connected**: The zone is connected.
121
+ # * **Deleting**: The zone is being deleted.
122
+ # * **Disconnecting**: The zone is being disconnected.
123
+ # * **Disconnected**: The zone is disconnected.
124
+ # * **Connecting**: The zone is being connected.
125
+ self.zone_status = zone_status
126
+
127
+ def validate(self):
128
+ pass
129
+
130
+ def to_map(self):
131
+ result = dict()
132
+ _map = super().to_map()
133
+ if _map is not None:
134
+ result = _map
135
+ if self.eni_id is not None:
136
+ result['EniId'] = self.eni_id
137
+
138
+ if self.eni_ip is not None:
139
+ result['EniIp'] = self.eni_ip
140
+
141
+ if self.region_id is not None:
142
+ result['RegionId'] = self.region_id
143
+
144
+ if self.v_switch_id is not None:
145
+ result['VSwitchId'] = self.v_switch_id
146
+
147
+ if self.zone_domain is not None:
148
+ result['ZoneDomain'] = self.zone_domain
149
+
150
+ if self.zone_id is not None:
151
+ result['ZoneId'] = self.zone_id
152
+
153
+ if self.zone_ipv_6address is not None:
154
+ result['ZoneIpv6Address'] = self.zone_ipv_6address
155
+
156
+ if self.zone_status is not None:
157
+ result['ZoneStatus'] = self.zone_status
158
+
159
+ return result
160
+
161
+ def from_map(self, m: dict = None):
162
+ m = m or dict()
163
+ if m.get('EniId') is not None:
164
+ self.eni_id = m.get('EniId')
165
+
166
+ if m.get('EniIp') is not None:
167
+ self.eni_ip = m.get('EniIp')
168
+
169
+ if m.get('RegionId') is not None:
170
+ self.region_id = m.get('RegionId')
171
+
172
+ if m.get('VSwitchId') is not None:
173
+ self.v_switch_id = m.get('VSwitchId')
174
+
175
+ if m.get('ZoneDomain') is not None:
176
+ self.zone_domain = m.get('ZoneDomain')
177
+
178
+ if m.get('ZoneId') is not None:
179
+ self.zone_id = m.get('ZoneId')
180
+
181
+ if m.get('ZoneIpv6Address') is not None:
182
+ self.zone_ipv_6address = m.get('ZoneIpv6Address')
183
+
184
+ if m.get('ZoneStatus') is not None:
185
+ self.zone_status = m.get('ZoneStatus')
186
+
187
+ return self
188
+
@@ -0,0 +1,228 @@
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 List
6
+
7
+ from alibabacloud_privatelink20200415 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class ListVpcEndpointsRequest(DaraModel):
11
+ def __init__(
12
+ self,
13
+ address_ip_version: str = None,
14
+ connection_status: str = None,
15
+ endpoint_id: str = None,
16
+ endpoint_name: str = None,
17
+ endpoint_status: str = None,
18
+ endpoint_type: str = None,
19
+ max_results: int = None,
20
+ next_token: str = None,
21
+ region_id: str = None,
22
+ resource_group_id: str = None,
23
+ service_name: str = None,
24
+ service_region_id: str = None,
25
+ tag: List[main_models.ListVpcEndpointsRequestTag] = None,
26
+ vpc_id: str = None,
27
+ ):
28
+ # The protocol. Valid values:
29
+ #
30
+ # * **IPv4**
31
+ # * **DualStack**
32
+ self.address_ip_version = address_ip_version
33
+ # The state of the endpoint connection. Valid values:
34
+ #
35
+ # * **Pending**: The endpoint connection is being modified.
36
+ # * **Connecting**: The endpoint connection is being established.
37
+ # * **Connected**: The endpoint connection is established.
38
+ # * **Disconnecting**: The endpoint is being disconnected from the endpoint service.
39
+ # * **Disconnected**: The endpoint is disconnected from the endpoint service.
40
+ # * **Deleting**: The connection is being deleted.
41
+ # * **ServiceDeleted**: The corresponding endpoint service has been deleted.
42
+ self.connection_status = connection_status
43
+ # The ID of the endpoint.
44
+ self.endpoint_id = endpoint_id
45
+ # The name of the endpoint.
46
+ self.endpoint_name = endpoint_name
47
+ # The state of the endpoint. Valid values:
48
+ #
49
+ # * **Creating**: The endpoint is being created.
50
+ # * **Active**: The endpoint is available.
51
+ # * **Pending**: The endpoint is being modified.
52
+ # * **Deleting**: The endpoint is being deleted.
53
+ self.endpoint_status = endpoint_status
54
+ # The type of the endpoint. Valid values:
55
+ #
56
+ # * **Interface**: interface endpoint
57
+ # * **Reverse**: reverse endpoint
58
+ self.endpoint_type = endpoint_type
59
+ # The number of entries per page. Valid values: **1** to **1000**. Default value: **50**.
60
+ self.max_results = max_results
61
+ # The pagination token that is used in the next request to retrieve a new page of results. Valid values:
62
+ #
63
+ # * If this is your first request and no next requests are to be performed, you do not need to specify this parameter.
64
+ # * If a next request is to be performed, set the parameter to the value of **NextToken** that is returned from the last call.
65
+ self.next_token = next_token
66
+ # The region ID of the endpoint.
67
+ #
68
+ # You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
69
+ #
70
+ # This parameter is required.
71
+ self.region_id = region_id
72
+ # The ID of the resource group.
73
+ self.resource_group_id = resource_group_id
74
+ # The name of the endpoint service with which the endpoint is associated.
75
+ self.service_name = service_name
76
+ self.service_region_id = service_region_id
77
+ # The tags.
78
+ self.tag = tag
79
+ # The ID of the VPC to which the endpoint belongs.
80
+ self.vpc_id = vpc_id
81
+
82
+ def validate(self):
83
+ if self.tag:
84
+ for v1 in self.tag:
85
+ if v1:
86
+ v1.validate()
87
+
88
+ def to_map(self):
89
+ result = dict()
90
+ _map = super().to_map()
91
+ if _map is not None:
92
+ result = _map
93
+ if self.address_ip_version is not None:
94
+ result['AddressIpVersion'] = self.address_ip_version
95
+
96
+ if self.connection_status is not None:
97
+ result['ConnectionStatus'] = self.connection_status
98
+
99
+ if self.endpoint_id is not None:
100
+ result['EndpointId'] = self.endpoint_id
101
+
102
+ if self.endpoint_name is not None:
103
+ result['EndpointName'] = self.endpoint_name
104
+
105
+ if self.endpoint_status is not None:
106
+ result['EndpointStatus'] = self.endpoint_status
107
+
108
+ if self.endpoint_type is not None:
109
+ result['EndpointType'] = self.endpoint_type
110
+
111
+ if self.max_results is not None:
112
+ result['MaxResults'] = self.max_results
113
+
114
+ if self.next_token is not None:
115
+ result['NextToken'] = self.next_token
116
+
117
+ if self.region_id is not None:
118
+ result['RegionId'] = self.region_id
119
+
120
+ if self.resource_group_id is not None:
121
+ result['ResourceGroupId'] = self.resource_group_id
122
+
123
+ if self.service_name is not None:
124
+ result['ServiceName'] = self.service_name
125
+
126
+ if self.service_region_id is not None:
127
+ result['ServiceRegionId'] = self.service_region_id
128
+
129
+ result['Tag'] = []
130
+ if self.tag is not None:
131
+ for k1 in self.tag:
132
+ result['Tag'].append(k1.to_map() if k1 else None)
133
+
134
+ if self.vpc_id is not None:
135
+ result['VpcId'] = self.vpc_id
136
+
137
+ return result
138
+
139
+ def from_map(self, m: dict = None):
140
+ m = m or dict()
141
+ if m.get('AddressIpVersion') is not None:
142
+ self.address_ip_version = m.get('AddressIpVersion')
143
+
144
+ if m.get('ConnectionStatus') is not None:
145
+ self.connection_status = m.get('ConnectionStatus')
146
+
147
+ if m.get('EndpointId') is not None:
148
+ self.endpoint_id = m.get('EndpointId')
149
+
150
+ if m.get('EndpointName') is not None:
151
+ self.endpoint_name = m.get('EndpointName')
152
+
153
+ if m.get('EndpointStatus') is not None:
154
+ self.endpoint_status = m.get('EndpointStatus')
155
+
156
+ if m.get('EndpointType') is not None:
157
+ self.endpoint_type = m.get('EndpointType')
158
+
159
+ if m.get('MaxResults') is not None:
160
+ self.max_results = m.get('MaxResults')
161
+
162
+ if m.get('NextToken') is not None:
163
+ self.next_token = m.get('NextToken')
164
+
165
+ if m.get('RegionId') is not None:
166
+ self.region_id = m.get('RegionId')
167
+
168
+ if m.get('ResourceGroupId') is not None:
169
+ self.resource_group_id = m.get('ResourceGroupId')
170
+
171
+ if m.get('ServiceName') is not None:
172
+ self.service_name = m.get('ServiceName')
173
+
174
+ if m.get('ServiceRegionId') is not None:
175
+ self.service_region_id = m.get('ServiceRegionId')
176
+
177
+ self.tag = []
178
+ if m.get('Tag') is not None:
179
+ for k1 in m.get('Tag'):
180
+ temp_model = main_models.ListVpcEndpointsRequestTag()
181
+ self.tag.append(temp_model.from_map(k1))
182
+
183
+ if m.get('VpcId') is not None:
184
+ self.vpc_id = m.get('VpcId')
185
+
186
+ return self
187
+
188
+ class ListVpcEndpointsRequestTag(DaraModel):
189
+ def __init__(
190
+ self,
191
+ key: str = None,
192
+ value: str = None,
193
+ ):
194
+ # The key of the tag added to the resource. You can specify at most 20 tag keys. The tag key cannot be an empty string.
195
+ #
196
+ # The tag key can be up to 64 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `aliyun` or `acs:`.
197
+ self.key = key
198
+ # The tag value. You can specify up to 20 tag values. The tag value can be an empty string.
199
+ #
200
+ # The tag value can be up to 128 characters in length. It cannot start with `aliyun` or `acs:`, and cannot contain `http://` or `https://`.
201
+ self.value = value
202
+
203
+ def validate(self):
204
+ pass
205
+
206
+ def to_map(self):
207
+ result = dict()
208
+ _map = super().to_map()
209
+ if _map is not None:
210
+ result = _map
211
+ if self.key is not None:
212
+ result['Key'] = self.key
213
+
214
+ if self.value is not None:
215
+ result['Value'] = self.value
216
+
217
+ return result
218
+
219
+ def from_map(self, m: dict = None):
220
+ m = m or dict()
221
+ if m.get('Key') is not None:
222
+ self.key = m.get('Key')
223
+
224
+ if m.get('Value') is not None:
225
+ self.value = m.get('Value')
226
+
227
+ return self
228
+
@@ -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_privatelink20200415 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class ListVpcEndpointsResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.ListVpcEndpointsResponseBody = 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.ListVpcEndpointsResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+