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,337 @@
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 ListVpcEndpointConnectionsResponseBody(DaraModel):
11
+ def __init__(
12
+ self,
13
+ connections: List[main_models.ListVpcEndpointConnectionsResponseBodyConnections] = None,
14
+ max_results: int = None,
15
+ next_token: str = None,
16
+ request_id: str = None,
17
+ total_count: str = None,
18
+ ):
19
+ # The endpoint connections.
20
+ self.connections = connections
21
+ # The number of entries returned on each page.
22
+ self.max_results = max_results
23
+ # 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:
24
+ #
25
+ # * If no value is returned for **NextToken**, no next requests are performed.
26
+ # * If a value is returned for **NextToken**, the value can be used in the next request to retrieve a new page of results.
27
+ self.next_token = next_token
28
+ # The request ID.
29
+ self.request_id = request_id
30
+ # The total number of entries returned.
31
+ self.total_count = total_count
32
+
33
+ def validate(self):
34
+ if self.connections:
35
+ for v1 in self.connections:
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
+ result['Connections'] = []
45
+ if self.connections is not None:
46
+ for k1 in self.connections:
47
+ result['Connections'].append(k1.to_map() if k1 else None)
48
+
49
+ if self.max_results is not None:
50
+ result['MaxResults'] = self.max_results
51
+
52
+ if self.next_token is not None:
53
+ result['NextToken'] = self.next_token
54
+
55
+ if self.request_id is not None:
56
+ result['RequestId'] = self.request_id
57
+
58
+ if self.total_count is not None:
59
+ result['TotalCount'] = self.total_count
60
+
61
+ return result
62
+
63
+ def from_map(self, m: dict = None):
64
+ m = m or dict()
65
+ self.connections = []
66
+ if m.get('Connections') is not None:
67
+ for k1 in m.get('Connections'):
68
+ temp_model = main_models.ListVpcEndpointConnectionsResponseBodyConnections()
69
+ self.connections.append(temp_model.from_map(k1))
70
+
71
+ if m.get('MaxResults') is not None:
72
+ self.max_results = m.get('MaxResults')
73
+
74
+ if m.get('NextToken') is not None:
75
+ self.next_token = m.get('NextToken')
76
+
77
+ if m.get('RequestId') is not None:
78
+ self.request_id = m.get('RequestId')
79
+
80
+ if m.get('TotalCount') is not None:
81
+ self.total_count = m.get('TotalCount')
82
+
83
+ return self
84
+
85
+ class ListVpcEndpointConnectionsResponseBodyConnections(DaraModel):
86
+ def __init__(
87
+ self,
88
+ bandwidth: int = None,
89
+ connection_status: str = None,
90
+ endpoint_id: str = None,
91
+ endpoint_owner_id: int = None,
92
+ endpoint_region_id: str = None,
93
+ endpoint_vpc_id: str = None,
94
+ modified_time: str = None,
95
+ resource_group_id: str = None,
96
+ resource_owner: bool = None,
97
+ service_id: str = None,
98
+ service_region_id: str = None,
99
+ traffic_control_mode: str = None,
100
+ zones: List[main_models.ListVpcEndpointConnectionsResponseBodyConnectionsZones] = None,
101
+ ):
102
+ # The bandwidth of the endpoint connection. Valid values: **1024 to 10240**. Unit: Mbit/s.
103
+ self.bandwidth = bandwidth
104
+ # The state of the endpoint connection. Valid values:
105
+ #
106
+ # * **Pending**: The connection is being modified.
107
+ # * **Connecting**: The connection is being established.
108
+ # * **Connected**: The connection is established.
109
+ # * **Disconnecting**: The endpoint is being disconnected from the endpoint service.
110
+ # * **Disconnected**: The endpoint is disconnected from the endpoint service.
111
+ # * **Deleting**: The connection is being deleted.
112
+ # * **ServiceDeleted**: The corresponding endpoint service has been deleted.
113
+ self.connection_status = connection_status
114
+ # The endpoint ID.
115
+ self.endpoint_id = endpoint_id
116
+ # The ID of the Alibaba Cloud account to which the endpoint belongs.
117
+ self.endpoint_owner_id = endpoint_owner_id
118
+ self.endpoint_region_id = endpoint_region_id
119
+ # The ID of the virtual private cloud (VPC) to which the endpoint belongs.
120
+ self.endpoint_vpc_id = endpoint_vpc_id
121
+ # The time when the endpoint connection was modified.
122
+ self.modified_time = modified_time
123
+ # The ID of the resource group to which the endpoint belongs.
124
+ self.resource_group_id = resource_group_id
125
+ # Indicates whether the endpoint and the endpoint service belong to the same Alibaba Cloud account. Valid values:
126
+ #
127
+ # * **true**
128
+ # * **false**
129
+ self.resource_owner = resource_owner
130
+ # The endpoint service ID.
131
+ self.service_id = service_id
132
+ self.service_region_id = service_region_id
133
+ self.traffic_control_mode = traffic_control_mode
134
+ # The zones.
135
+ self.zones = zones
136
+
137
+ def validate(self):
138
+ if self.zones:
139
+ for v1 in self.zones:
140
+ if v1:
141
+ v1.validate()
142
+
143
+ def to_map(self):
144
+ result = dict()
145
+ _map = super().to_map()
146
+ if _map is not None:
147
+ result = _map
148
+ if self.bandwidth is not None:
149
+ result['Bandwidth'] = self.bandwidth
150
+
151
+ if self.connection_status is not None:
152
+ result['ConnectionStatus'] = self.connection_status
153
+
154
+ if self.endpoint_id is not None:
155
+ result['EndpointId'] = self.endpoint_id
156
+
157
+ if self.endpoint_owner_id is not None:
158
+ result['EndpointOwnerId'] = self.endpoint_owner_id
159
+
160
+ if self.endpoint_region_id is not None:
161
+ result['EndpointRegionId'] = self.endpoint_region_id
162
+
163
+ if self.endpoint_vpc_id is not None:
164
+ result['EndpointVpcId'] = self.endpoint_vpc_id
165
+
166
+ if self.modified_time is not None:
167
+ result['ModifiedTime'] = self.modified_time
168
+
169
+ if self.resource_group_id is not None:
170
+ result['ResourceGroupId'] = self.resource_group_id
171
+
172
+ if self.resource_owner is not None:
173
+ result['ResourceOwner'] = self.resource_owner
174
+
175
+ if self.service_id is not None:
176
+ result['ServiceId'] = self.service_id
177
+
178
+ if self.service_region_id is not None:
179
+ result['ServiceRegionId'] = self.service_region_id
180
+
181
+ if self.traffic_control_mode is not None:
182
+ result['TrafficControlMode'] = self.traffic_control_mode
183
+
184
+ result['Zones'] = []
185
+ if self.zones is not None:
186
+ for k1 in self.zones:
187
+ result['Zones'].append(k1.to_map() if k1 else None)
188
+
189
+ return result
190
+
191
+ def from_map(self, m: dict = None):
192
+ m = m or dict()
193
+ if m.get('Bandwidth') is not None:
194
+ self.bandwidth = m.get('Bandwidth')
195
+
196
+ if m.get('ConnectionStatus') is not None:
197
+ self.connection_status = m.get('ConnectionStatus')
198
+
199
+ if m.get('EndpointId') is not None:
200
+ self.endpoint_id = m.get('EndpointId')
201
+
202
+ if m.get('EndpointOwnerId') is not None:
203
+ self.endpoint_owner_id = m.get('EndpointOwnerId')
204
+
205
+ if m.get('EndpointRegionId') is not None:
206
+ self.endpoint_region_id = m.get('EndpointRegionId')
207
+
208
+ if m.get('EndpointVpcId') is not None:
209
+ self.endpoint_vpc_id = m.get('EndpointVpcId')
210
+
211
+ if m.get('ModifiedTime') is not None:
212
+ self.modified_time = m.get('ModifiedTime')
213
+
214
+ if m.get('ResourceGroupId') is not None:
215
+ self.resource_group_id = m.get('ResourceGroupId')
216
+
217
+ if m.get('ResourceOwner') is not None:
218
+ self.resource_owner = m.get('ResourceOwner')
219
+
220
+ if m.get('ServiceId') is not None:
221
+ self.service_id = m.get('ServiceId')
222
+
223
+ if m.get('ServiceRegionId') is not None:
224
+ self.service_region_id = m.get('ServiceRegionId')
225
+
226
+ if m.get('TrafficControlMode') is not None:
227
+ self.traffic_control_mode = m.get('TrafficControlMode')
228
+
229
+ self.zones = []
230
+ if m.get('Zones') is not None:
231
+ for k1 in m.get('Zones'):
232
+ temp_model = main_models.ListVpcEndpointConnectionsResponseBodyConnectionsZones()
233
+ self.zones.append(temp_model.from_map(k1))
234
+
235
+ return self
236
+
237
+ class ListVpcEndpointConnectionsResponseBodyConnectionsZones(DaraModel):
238
+ def __init__(
239
+ self,
240
+ eni_id: str = None,
241
+ replaced_eni_id: str = None,
242
+ replaced_resource_id: str = None,
243
+ resource_id: str = None,
244
+ v_switch_id: str = None,
245
+ zone_domain: str = None,
246
+ zone_id: str = None,
247
+ zone_status: str = None,
248
+ ):
249
+ # The endpoint ENI ID.
250
+ self.eni_id = eni_id
251
+ # The ID of the replaced endpoint ENI in smooth migration scenarios.
252
+ self.replaced_eni_id = replaced_eni_id
253
+ # The ID of the replaced service resource in smooth migration scenarios.
254
+ self.replaced_resource_id = replaced_resource_id
255
+ # The service resource ID.
256
+ self.resource_id = resource_id
257
+ # The ID of the vSwitch to which the endpoint belongs.
258
+ self.v_switch_id = v_switch_id
259
+ # The domain name of the zone.
260
+ self.zone_domain = zone_domain
261
+ # The zone ID.
262
+ self.zone_id = zone_id
263
+ # The state of the zone. Valid values:
264
+ #
265
+ # * **Creating**: The zone is being created.
266
+ # * **Wait**: The zone is to be connected.
267
+ # * **Connected**: The zone is connected.
268
+ # * **Deleting**: The zone is being deleted.
269
+ # * **Disconnecting**: The zone is being disconnected.
270
+ # * **Disconnected**: The zone is disconnected.
271
+ # * **Connecting**: The zone is being connected.
272
+ # * **Migrating**: The zone is being migrated.
273
+ # * **Migrated**: The zone is migrated.
274
+ self.zone_status = zone_status
275
+
276
+ def validate(self):
277
+ pass
278
+
279
+ def to_map(self):
280
+ result = dict()
281
+ _map = super().to_map()
282
+ if _map is not None:
283
+ result = _map
284
+ if self.eni_id is not None:
285
+ result['EniId'] = self.eni_id
286
+
287
+ if self.replaced_eni_id is not None:
288
+ result['ReplacedEniId'] = self.replaced_eni_id
289
+
290
+ if self.replaced_resource_id is not None:
291
+ result['ReplacedResourceId'] = self.replaced_resource_id
292
+
293
+ if self.resource_id is not None:
294
+ result['ResourceId'] = self.resource_id
295
+
296
+ if self.v_switch_id is not None:
297
+ result['VSwitchId'] = self.v_switch_id
298
+
299
+ if self.zone_domain is not None:
300
+ result['ZoneDomain'] = self.zone_domain
301
+
302
+ if self.zone_id is not None:
303
+ result['ZoneId'] = self.zone_id
304
+
305
+ if self.zone_status is not None:
306
+ result['ZoneStatus'] = self.zone_status
307
+
308
+ return result
309
+
310
+ def from_map(self, m: dict = None):
311
+ m = m or dict()
312
+ if m.get('EniId') is not None:
313
+ self.eni_id = m.get('EniId')
314
+
315
+ if m.get('ReplacedEniId') is not None:
316
+ self.replaced_eni_id = m.get('ReplacedEniId')
317
+
318
+ if m.get('ReplacedResourceId') is not None:
319
+ self.replaced_resource_id = m.get('ReplacedResourceId')
320
+
321
+ if m.get('ResourceId') is not None:
322
+ self.resource_id = m.get('ResourceId')
323
+
324
+ if m.get('VSwitchId') is not None:
325
+ self.v_switch_id = m.get('VSwitchId')
326
+
327
+ if m.get('ZoneDomain') is not None:
328
+ self.zone_domain = m.get('ZoneDomain')
329
+
330
+ if m.get('ZoneId') is not None:
331
+ self.zone_id = m.get('ZoneId')
332
+
333
+ if m.get('ZoneStatus') is not None:
334
+ self.zone_status = m.get('ZoneStatus')
335
+
336
+ return self
337
+
@@ -0,0 +1,70 @@
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 ListVpcEndpointSecurityGroupsRequest(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 that you want to query.
16
+ #
17
+ # This parameter is required.
18
+ self.endpoint_id = endpoint_id
19
+ # The number of entries to return on each page. Valid values:**1** to **50**. Default value: **50**.
20
+ self.max_results = max_results
21
+ # The pagination token that is used in the next request to retrieve a new page of results. Valid values:
22
+ #
23
+ # * If this is your first request and no next requests are to be performed, you do not need to specify this parameter.
24
+ # * If a next request is to be performed, set the parameter to the value of **NextToken** that is returned from the last call.
25
+ self.next_token = next_token
26
+ # The region ID of the endpoint that you want to query.
27
+ #
28
+ # You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
29
+ #
30
+ # This parameter is required.
31
+ self.region_id = region_id
32
+
33
+ def validate(self):
34
+ pass
35
+
36
+ def to_map(self):
37
+ result = dict()
38
+ _map = super().to_map()
39
+ if _map is not None:
40
+ result = _map
41
+ if self.endpoint_id is not None:
42
+ result['EndpointId'] = self.endpoint_id
43
+
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.region_id is not None:
51
+ result['RegionId'] = self.region_id
52
+
53
+ return result
54
+
55
+ def from_map(self, m: dict = None):
56
+ m = m or dict()
57
+ if m.get('EndpointId') is not None:
58
+ self.endpoint_id = m.get('EndpointId')
59
+
60
+ if m.get('MaxResults') is not None:
61
+ self.max_results = m.get('MaxResults')
62
+
63
+ if m.get('NextToken') is not None:
64
+ self.next_token = m.get('NextToken')
65
+
66
+ if m.get('RegionId') is not None:
67
+ self.region_id = m.get('RegionId')
68
+
69
+ return self
70
+
@@ -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 ListVpcEndpointSecurityGroupsResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.ListVpcEndpointSecurityGroupsResponseBody = 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.ListVpcEndpointSecurityGroupsResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,124 @@
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 ListVpcEndpointSecurityGroupsResponseBody(DaraModel):
11
+ def __init__(
12
+ self,
13
+ max_results: int = None,
14
+ next_token: str = None,
15
+ request_id: str = None,
16
+ security_groups: List[main_models.ListVpcEndpointSecurityGroupsResponseBodySecurityGroups] = None,
17
+ total_count: int = None,
18
+ ):
19
+ # The number of entries returned per 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 information about the security groups.
29
+ self.security_groups = security_groups
30
+ # The total number of entries returned.
31
+ self.total_count = total_count
32
+
33
+ def validate(self):
34
+ if self.security_groups:
35
+ for v1 in self.security_groups:
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
+ result['SecurityGroups'] = []
54
+ if self.security_groups is not None:
55
+ for k1 in self.security_groups:
56
+ result['SecurityGroups'].append(k1.to_map() if k1 else None)
57
+
58
+ if self.total_count is not None:
59
+ result['TotalCount'] = self.total_count
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
+ self.security_groups = []
75
+ if m.get('SecurityGroups') is not None:
76
+ for k1 in m.get('SecurityGroups'):
77
+ temp_model = main_models.ListVpcEndpointSecurityGroupsResponseBodySecurityGroups()
78
+ self.security_groups.append(temp_model.from_map(k1))
79
+
80
+ if m.get('TotalCount') is not None:
81
+ self.total_count = m.get('TotalCount')
82
+
83
+ return self
84
+
85
+ class ListVpcEndpointSecurityGroupsResponseBodySecurityGroups(DaraModel):
86
+ def __init__(
87
+ self,
88
+ security_group_id: str = None,
89
+ security_group_status: str = None,
90
+ ):
91
+ # The ID of the security group that is associated with the endpoint.
92
+ self.security_group_id = security_group_id
93
+ # The associate status of the security group, valid values:
94
+ # - Attaching: The security group is being attached.
95
+ # - Attached: The security group is attached.
96
+ # - Detaching: The security group is being detached.
97
+ self.security_group_status = security_group_status
98
+
99
+ def validate(self):
100
+ pass
101
+
102
+ def to_map(self):
103
+ result = dict()
104
+ _map = super().to_map()
105
+ if _map is not None:
106
+ result = _map
107
+ if self.security_group_id is not None:
108
+ result['SecurityGroupId'] = self.security_group_id
109
+
110
+ if self.security_group_status is not None:
111
+ result['SecurityGroupStatus'] = self.security_group_status
112
+
113
+ return result
114
+
115
+ def from_map(self, m: dict = None):
116
+ m = m or dict()
117
+ if m.get('SecurityGroupId') is not None:
118
+ self.security_group_id = m.get('SecurityGroupId')
119
+
120
+ if m.get('SecurityGroupStatus') is not None:
121
+ self.security_group_status = m.get('SecurityGroupStatus')
122
+
123
+ return self
124
+
@@ -0,0 +1,70 @@
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 ListVpcEndpointServiceResourcesRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ max_results: int = None,
11
+ next_token: str = None,
12
+ region_id: str = None,
13
+ service_id: str = None,
14
+ ):
15
+ # The number of entries to return on each page. Valid values: **1** to **50**. Default value: **50**.
16
+ self.max_results = max_results
17
+ # The pagination token that is used in the next request to retrieve a new page of results. Valid values:
18
+ #
19
+ # * If this is your first request and no next requests are to be performed, you do not need to specify this parameter.
20
+ # * If a next request is to be performed, set the parameter to the value of NextToken that is returned from the last call.
21
+ self.next_token = next_token
22
+ # The region ID of the service resource.
23
+ #
24
+ # You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
25
+ #
26
+ # This parameter is required.
27
+ self.region_id = region_id
28
+ # The endpoint service ID.
29
+ #
30
+ # This parameter is required.
31
+ self.service_id = service_id
32
+
33
+ def validate(self):
34
+ pass
35
+
36
+ def to_map(self):
37
+ result = dict()
38
+ _map = super().to_map()
39
+ if _map is not None:
40
+ result = _map
41
+ if self.max_results is not None:
42
+ result['MaxResults'] = self.max_results
43
+
44
+ if self.next_token is not None:
45
+ result['NextToken'] = self.next_token
46
+
47
+ if self.region_id is not None:
48
+ result['RegionId'] = self.region_id
49
+
50
+ if self.service_id is not None:
51
+ result['ServiceId'] = self.service_id
52
+
53
+ return result
54
+
55
+ def from_map(self, m: dict = None):
56
+ m = m or dict()
57
+ if m.get('MaxResults') is not None:
58
+ self.max_results = m.get('MaxResults')
59
+
60
+ if m.get('NextToken') is not None:
61
+ self.next_token = m.get('NextToken')
62
+
63
+ if m.get('RegionId') is not None:
64
+ self.region_id = m.get('RegionId')
65
+
66
+ if m.get('ServiceId') is not None:
67
+ self.service_id = m.get('ServiceId')
68
+
69
+ return self
70
+