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,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 DisableVpcEndpointZoneConnectionResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.DisableVpcEndpointZoneConnectionResponseBody = 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.DisableVpcEndpointZoneConnectionResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,34 @@
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 DisableVpcEndpointZoneConnectionResponseBody(DaraModel):
8
+ def __init__(
9
+ self,
10
+ request_id: str = None,
11
+ ):
12
+ # The request ID.
13
+ self.request_id = request_id
14
+
15
+ def validate(self):
16
+ pass
17
+
18
+ def to_map(self):
19
+ result = dict()
20
+ _map = super().to_map()
21
+ if _map is not None:
22
+ result = _map
23
+ if self.request_id is not None:
24
+ result['RequestId'] = self.request_id
25
+
26
+ return result
27
+
28
+ def from_map(self, m: dict = None):
29
+ m = m or dict()
30
+ if m.get('RequestId') is not None:
31
+ self.request_id = m.get('RequestId')
32
+
33
+ return self
34
+
@@ -0,0 +1,102 @@
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 EnableVpcEndpointConnectionRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ bandwidth: int = None,
11
+ client_token: str = None,
12
+ dry_run: bool = None,
13
+ endpoint_id: str = None,
14
+ region_id: str = None,
15
+ service_id: str = None,
16
+ traffic_control_mode: str = None,
17
+ ):
18
+ # The bandwidth of the endpoint connection. Unit: Mbit/s. Valid values: **3072 to 10240**.
19
+ #
20
+ # > The bandwidth of an endpoint connection is in the range of **100 to 10,240** Mbit/s. The default bandwidth is **3,072** Mbit/s. When the endpoint is connected to the endpoint service, the default bandwidth is the minimum bandwidth. In this case, the connection bandwidth range is **3,072 to 10,240** Mbit/s. If Classic Load Balancer (CLB) instances or Application Load Balancer (ALB) instances are specified as service resources, you can modify the endpoint connection bandwidth based on your business requirements. This parameter is invalid if Network Load Balancer (NLB) instances are specified as service resources.
21
+ self.bandwidth = bandwidth
22
+ # The client token that is used to ensure the idempotence of the request.
23
+ #
24
+ # You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
25
+ self.client_token = client_token
26
+ # Specifies whether to perform only a dry run, without performing the actual request. Valid values:
27
+ #
28
+ # * **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the check, the `DryRunOperation` error code is returned.
29
+ # * **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
30
+ self.dry_run = dry_run
31
+ # The endpoint ID.
32
+ #
33
+ # This parameter is required.
34
+ self.endpoint_id = endpoint_id
35
+ # The ID of the region where the connection request is accepted.
36
+ #
37
+ # You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
38
+ #
39
+ # This parameter is required.
40
+ self.region_id = region_id
41
+ # The endpoint service ID.
42
+ #
43
+ # This parameter is required.
44
+ self.service_id = service_id
45
+ self.traffic_control_mode = traffic_control_mode
46
+
47
+ def validate(self):
48
+ pass
49
+
50
+ def to_map(self):
51
+ result = dict()
52
+ _map = super().to_map()
53
+ if _map is not None:
54
+ result = _map
55
+ if self.bandwidth is not None:
56
+ result['Bandwidth'] = self.bandwidth
57
+
58
+ if self.client_token is not None:
59
+ result['ClientToken'] = self.client_token
60
+
61
+ if self.dry_run is not None:
62
+ result['DryRun'] = self.dry_run
63
+
64
+ if self.endpoint_id is not None:
65
+ result['EndpointId'] = self.endpoint_id
66
+
67
+ if self.region_id is not None:
68
+ result['RegionId'] = self.region_id
69
+
70
+ if self.service_id is not None:
71
+ result['ServiceId'] = self.service_id
72
+
73
+ if self.traffic_control_mode is not None:
74
+ result['TrafficControlMode'] = self.traffic_control_mode
75
+
76
+ return result
77
+
78
+ def from_map(self, m: dict = None):
79
+ m = m or dict()
80
+ if m.get('Bandwidth') is not None:
81
+ self.bandwidth = m.get('Bandwidth')
82
+
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('EndpointId') is not None:
90
+ self.endpoint_id = m.get('EndpointId')
91
+
92
+ if m.get('RegionId') is not None:
93
+ self.region_id = m.get('RegionId')
94
+
95
+ if m.get('ServiceId') is not None:
96
+ self.service_id = m.get('ServiceId')
97
+
98
+ if m.get('TrafficControlMode') is not None:
99
+ self.traffic_control_mode = m.get('TrafficControlMode')
100
+
101
+ return self
102
+
@@ -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 EnableVpcEndpointConnectionResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.EnableVpcEndpointConnectionResponseBody = 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.EnableVpcEndpointConnectionResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,34 @@
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 EnableVpcEndpointConnectionResponseBody(DaraModel):
8
+ def __init__(
9
+ self,
10
+ request_id: str = None,
11
+ ):
12
+ # The request ID.
13
+ self.request_id = request_id
14
+
15
+ def validate(self):
16
+ pass
17
+
18
+ def to_map(self):
19
+ result = dict()
20
+ _map = super().to_map()
21
+ if _map is not None:
22
+ result = _map
23
+ if self.request_id is not None:
24
+ result['RequestId'] = self.request_id
25
+
26
+ return result
27
+
28
+ def from_map(self, m: dict = None):
29
+ m = m or dict()
30
+ if m.get('RequestId') is not None:
31
+ self.request_id = m.get('RequestId')
32
+
33
+ return self
34
+
@@ -0,0 +1,92 @@
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 EnableVpcEndpointZoneConnectionRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ client_token: str = None,
11
+ dry_run: bool = None,
12
+ endpoint_id: str = None,
13
+ region_id: str = None,
14
+ service_id: str = None,
15
+ zone_id: str = None,
16
+ ):
17
+ # The client token that is used to ensure the idempotence of the request.
18
+ #
19
+ # You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
20
+ self.client_token = client_token
21
+ # Specifies whether to perform only a dry run, without performing the actual request. Valid values:
22
+ #
23
+ # * **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.
24
+ # * **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
25
+ self.dry_run = dry_run
26
+ # The endpoint ID.
27
+ #
28
+ # This parameter is required.
29
+ self.endpoint_id = endpoint_id
30
+ # The ID of the region where the endpoint connection request is accepted. 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
+ # The endpoint service ID.
35
+ #
36
+ # This parameter is required.
37
+ self.service_id = service_id
38
+ # The ID of the zone that is associated with the endpoint.
39
+ #
40
+ # This parameter is required.
41
+ self.zone_id = zone_id
42
+
43
+ def validate(self):
44
+ pass
45
+
46
+ def to_map(self):
47
+ result = dict()
48
+ _map = super().to_map()
49
+ if _map is not None:
50
+ result = _map
51
+ if self.client_token is not None:
52
+ result['ClientToken'] = self.client_token
53
+
54
+ if self.dry_run is not None:
55
+ result['DryRun'] = self.dry_run
56
+
57
+ if self.endpoint_id is not None:
58
+ result['EndpointId'] = self.endpoint_id
59
+
60
+ if self.region_id is not None:
61
+ result['RegionId'] = self.region_id
62
+
63
+ if self.service_id is not None:
64
+ result['ServiceId'] = self.service_id
65
+
66
+ if self.zone_id is not None:
67
+ result['ZoneId'] = self.zone_id
68
+
69
+ return result
70
+
71
+ def from_map(self, m: dict = None):
72
+ m = m or dict()
73
+ if m.get('ClientToken') is not None:
74
+ self.client_token = m.get('ClientToken')
75
+
76
+ if m.get('DryRun') is not None:
77
+ self.dry_run = m.get('DryRun')
78
+
79
+ if m.get('EndpointId') is not None:
80
+ self.endpoint_id = m.get('EndpointId')
81
+
82
+ if m.get('RegionId') is not None:
83
+ self.region_id = m.get('RegionId')
84
+
85
+ if m.get('ServiceId') is not None:
86
+ self.service_id = m.get('ServiceId')
87
+
88
+ if m.get('ZoneId') is not None:
89
+ self.zone_id = m.get('ZoneId')
90
+
91
+ return self
92
+
@@ -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 EnableVpcEndpointZoneConnectionResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.EnableVpcEndpointZoneConnectionResponseBody = 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.EnableVpcEndpointZoneConnectionResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,34 @@
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 EnableVpcEndpointZoneConnectionResponseBody(DaraModel):
8
+ def __init__(
9
+ self,
10
+ request_id: str = None,
11
+ ):
12
+ # The request ID.
13
+ self.request_id = request_id
14
+
15
+ def validate(self):
16
+ pass
17
+
18
+ def to_map(self):
19
+ result = dict()
20
+ _map = super().to_map()
21
+ if _map is not None:
22
+ result = _map
23
+ if self.request_id is not None:
24
+ result['RequestId'] = self.request_id
25
+
26
+ return result
27
+
28
+ def from_map(self, m: dict = None):
29
+ m = m or dict()
30
+ if m.get('RequestId') is not None:
31
+ self.request_id = m.get('RequestId')
32
+
33
+ return self
34
+
@@ -0,0 +1,49 @@
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 GetVpcEndpointAttributeRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ endpoint_id: str = None,
11
+ region_id: str = None,
12
+ ):
13
+ # The ID of the endpoint whose attributes you want to query.
14
+ #
15
+ # This parameter is required.
16
+ self.endpoint_id = endpoint_id
17
+ # The region ID of the endpoint whose attributes you want to query.
18
+ #
19
+ # You can call the [DescribeRegions](https://help.aliyun.com/document_detail/448570.html) operation to query the most recent region list.
20
+ #
21
+ # This parameter is required.
22
+ self.region_id = region_id
23
+
24
+ def validate(self):
25
+ pass
26
+
27
+ def to_map(self):
28
+ result = dict()
29
+ _map = super().to_map()
30
+ if _map is not None:
31
+ result = _map
32
+ if self.endpoint_id is not None:
33
+ result['EndpointId'] = self.endpoint_id
34
+
35
+ if self.region_id is not None:
36
+ result['RegionId'] = self.region_id
37
+
38
+ return result
39
+
40
+ def from_map(self, m: dict = None):
41
+ m = m or dict()
42
+ if m.get('EndpointId') is not None:
43
+ self.endpoint_id = m.get('EndpointId')
44
+
45
+ if m.get('RegionId') is not None:
46
+ self.region_id = m.get('RegionId')
47
+
48
+ return self
49
+
@@ -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 GetVpcEndpointAttributeResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.GetVpcEndpointAttributeResponseBody = 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.GetVpcEndpointAttributeResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+