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,104 @@
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 DetachResourceFromVpcEndpointServiceRequest(DaraModel):
8
+ def __init__(
9
+ self,
10
+ client_token: str = None,
11
+ dry_run: bool = None,
12
+ region_id: str = None,
13
+ resource_id: str = None,
14
+ resource_type: str = None,
15
+ service_id: str = None,
16
+ zone_id: str = None,
17
+ ):
18
+ # The client token that is used to ensure the idempotence of the request.
19
+ #
20
+ # You can use the client to generate a value, but you must make sure that the value is unique among different requests. The token can contain only ASCII characters.
21
+ self.client_token = client_token
22
+ # Specifies whether to perform only a dry run, without performing the actual request. Valid values:
23
+ #
24
+ # * **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 code is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.
25
+ # * **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.
26
+ self.dry_run = dry_run
27
+ # The region ID of the endpoint.
28
+ #
29
+ # You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
30
+ #
31
+ # This parameter is required.
32
+ self.region_id = region_id
33
+ # The service resource ID.
34
+ #
35
+ # This parameter is required.
36
+ self.resource_id = resource_id
37
+ # The type of the service resource. Valid values:
38
+ #
39
+ # * **slb**: a Classic Load Balancer (CLB) instance that supports PrivateLink. In addition, the CLB instance is deployed in a virtual private cloud (VPC).
40
+ # * **alb**: an Application Load Balancer (ALB) instance that supports PrivateLink. In addition, the ALB instance is deployed in a VPC.
41
+ self.resource_type = resource_type
42
+ # The endpoint service ID.
43
+ #
44
+ # This parameter is required.
45
+ self.service_id = service_id
46
+ # The ID of the zone that you want to remove.
47
+ self.zone_id = zone_id
48
+
49
+ def validate(self):
50
+ pass
51
+
52
+ def to_map(self):
53
+ result = dict()
54
+ _map = super().to_map()
55
+ if _map is not None:
56
+ result = _map
57
+ if self.client_token is not None:
58
+ result['ClientToken'] = self.client_token
59
+
60
+ if self.dry_run is not None:
61
+ result['DryRun'] = self.dry_run
62
+
63
+ if self.region_id is not None:
64
+ result['RegionId'] = self.region_id
65
+
66
+ if self.resource_id is not None:
67
+ result['ResourceId'] = self.resource_id
68
+
69
+ if self.resource_type is not None:
70
+ result['ResourceType'] = self.resource_type
71
+
72
+ if self.service_id is not None:
73
+ result['ServiceId'] = self.service_id
74
+
75
+ if self.zone_id is not None:
76
+ result['ZoneId'] = self.zone_id
77
+
78
+ return result
79
+
80
+ def from_map(self, m: dict = None):
81
+ m = m or dict()
82
+ if m.get('ClientToken') is not None:
83
+ self.client_token = m.get('ClientToken')
84
+
85
+ if m.get('DryRun') is not None:
86
+ self.dry_run = m.get('DryRun')
87
+
88
+ if m.get('RegionId') is not None:
89
+ self.region_id = m.get('RegionId')
90
+
91
+ if m.get('ResourceId') is not None:
92
+ self.resource_id = m.get('ResourceId')
93
+
94
+ if m.get('ResourceType') is not None:
95
+ self.resource_type = m.get('ResourceType')
96
+
97
+ if m.get('ServiceId') is not None:
98
+ self.service_id = m.get('ServiceId')
99
+
100
+ if m.get('ZoneId') is not None:
101
+ self.zone_id = m.get('ZoneId')
102
+
103
+ return self
104
+
@@ -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 DetachResourceFromVpcEndpointServiceResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.DetachResourceFromVpcEndpointServiceResponseBody = 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.DetachResourceFromVpcEndpointServiceResponseBody()
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 DetachResourceFromVpcEndpointServiceResponseBody(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,81 @@
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 DetachSecurityGroupFromVpcEndpointRequest(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
+ security_group_id: str = None,
15
+ ):
16
+ # The client token that is used to ensure the idempotence of the request.
17
+ #
18
+ # 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.
19
+ self.client_token = client_token
20
+ # Specifies whether to perform only a dry run, without performing the actual request. Valid values:
21
+ #
22
+ # * **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.
23
+ # * **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.
24
+ self.dry_run = dry_run
25
+ # The ID of the endpoint that you want to disassociate from the security group.
26
+ #
27
+ # This parameter is required.
28
+ self.endpoint_id = endpoint_id
29
+ # The region ID of the endpoint that you want to disassociate from the security group. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
30
+ #
31
+ # This parameter is required.
32
+ self.region_id = region_id
33
+ # The ID of the security group from which you want to disassociate the endpoint.
34
+ #
35
+ # This parameter is required.
36
+ self.security_group_id = security_group_id
37
+
38
+ def validate(self):
39
+ pass
40
+
41
+ def to_map(self):
42
+ result = dict()
43
+ _map = super().to_map()
44
+ if _map is not None:
45
+ result = _map
46
+ if self.client_token is not None:
47
+ result['ClientToken'] = self.client_token
48
+
49
+ if self.dry_run is not None:
50
+ result['DryRun'] = self.dry_run
51
+
52
+ if self.endpoint_id is not None:
53
+ result['EndpointId'] = self.endpoint_id
54
+
55
+ if self.region_id is not None:
56
+ result['RegionId'] = self.region_id
57
+
58
+ if self.security_group_id is not None:
59
+ result['SecurityGroupId'] = self.security_group_id
60
+
61
+ return result
62
+
63
+ def from_map(self, m: dict = None):
64
+ m = m or dict()
65
+ if m.get('ClientToken') is not None:
66
+ self.client_token = m.get('ClientToken')
67
+
68
+ if m.get('DryRun') is not None:
69
+ self.dry_run = m.get('DryRun')
70
+
71
+ if m.get('EndpointId') is not None:
72
+ self.endpoint_id = m.get('EndpointId')
73
+
74
+ if m.get('RegionId') is not None:
75
+ self.region_id = m.get('RegionId')
76
+
77
+ if m.get('SecurityGroupId') is not None:
78
+ self.security_group_id = m.get('SecurityGroupId')
79
+
80
+ return self
81
+
@@ -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 DetachSecurityGroupFromVpcEndpointResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.DetachSecurityGroupFromVpcEndpointResponseBody = 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.DetachSecurityGroupFromVpcEndpointResponseBody()
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 DetachSecurityGroupFromVpcEndpointResponseBody(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,81 @@
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 DisableVpcEndpointConnectionRequest(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
+ ):
16
+ # The client token that is used to ensure the idempotence of the request.
17
+ #
18
+ # 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.
19
+ self.client_token = client_token
20
+ # Specifies whether to perform only a dry run, without performing the actual request. Valid values:
21
+ #
22
+ # * **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.
23
+ # * **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.
24
+ self.dry_run = dry_run
25
+ # The endpoint ID.
26
+ #
27
+ # This parameter is required.
28
+ self.endpoint_id = endpoint_id
29
+ # The ID of the region where the connection request from the endpoint is rejected. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
30
+ #
31
+ # This parameter is required.
32
+ self.region_id = region_id
33
+ # The endpoint service ID.
34
+ #
35
+ # This parameter is required.
36
+ self.service_id = service_id
37
+
38
+ def validate(self):
39
+ pass
40
+
41
+ def to_map(self):
42
+ result = dict()
43
+ _map = super().to_map()
44
+ if _map is not None:
45
+ result = _map
46
+ if self.client_token is not None:
47
+ result['ClientToken'] = self.client_token
48
+
49
+ if self.dry_run is not None:
50
+ result['DryRun'] = self.dry_run
51
+
52
+ if self.endpoint_id is not None:
53
+ result['EndpointId'] = self.endpoint_id
54
+
55
+ if self.region_id is not None:
56
+ result['RegionId'] = self.region_id
57
+
58
+ if self.service_id is not None:
59
+ result['ServiceId'] = self.service_id
60
+
61
+ return result
62
+
63
+ def from_map(self, m: dict = None):
64
+ m = m or dict()
65
+ if m.get('ClientToken') is not None:
66
+ self.client_token = m.get('ClientToken')
67
+
68
+ if m.get('DryRun') is not None:
69
+ self.dry_run = m.get('DryRun')
70
+
71
+ if m.get('EndpointId') is not None:
72
+ self.endpoint_id = m.get('EndpointId')
73
+
74
+ if m.get('RegionId') is not None:
75
+ self.region_id = m.get('RegionId')
76
+
77
+ if m.get('ServiceId') is not None:
78
+ self.service_id = m.get('ServiceId')
79
+
80
+ return self
81
+
@@ -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 DisableVpcEndpointConnectionResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.DisableVpcEndpointConnectionResponseBody = 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.DisableVpcEndpointConnectionResponseBody()
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 DisableVpcEndpointConnectionResponseBody(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,108 @@
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 DisableVpcEndpointZoneConnectionRequest(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
+ replaced_resource: bool = None,
15
+ service_id: str = None,
16
+ zone_id: str = None,
17
+ ):
18
+ # The client token that is used to ensure the idempotence of the request.
19
+ #
20
+ # 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.
21
+ self.client_token = client_token
22
+ # Specifies whether to perform only a dry run, without performing the actual request. Valid values:
23
+ #
24
+ # * **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.
25
+ # * **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.
26
+ self.dry_run = dry_run
27
+ # The endpoint ID.
28
+ #
29
+ # This parameter is required.
30
+ self.endpoint_id = endpoint_id
31
+ # The ID of the region where the connection request from the endpoint is rejected.
32
+ #
33
+ # You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
34
+ #
35
+ # This parameter is required.
36
+ self.region_id = region_id
37
+ # Specifies whether to close connections in the endpoint zone after migration. Valid values:
38
+ #
39
+ # * **true**: yes
40
+ # * **false** (default): no
41
+ #
42
+ # > Set the value to true if you want to close connections in the endpoint zone after migration.
43
+ self.replaced_resource = replaced_resource
44
+ # The endpoint service ID.
45
+ #
46
+ # This parameter is required.
47
+ self.service_id = service_id
48
+ # The ID of the zone that is associated with the endpoint.
49
+ #
50
+ # This parameter is required.
51
+ self.zone_id = zone_id
52
+
53
+ def validate(self):
54
+ pass
55
+
56
+ def to_map(self):
57
+ result = dict()
58
+ _map = super().to_map()
59
+ if _map is not None:
60
+ result = _map
61
+ if self.client_token is not None:
62
+ result['ClientToken'] = self.client_token
63
+
64
+ if self.dry_run is not None:
65
+ result['DryRun'] = self.dry_run
66
+
67
+ if self.endpoint_id is not None:
68
+ result['EndpointId'] = self.endpoint_id
69
+
70
+ if self.region_id is not None:
71
+ result['RegionId'] = self.region_id
72
+
73
+ if self.replaced_resource is not None:
74
+ result['ReplacedResource'] = self.replaced_resource
75
+
76
+ if self.service_id is not None:
77
+ result['ServiceId'] = self.service_id
78
+
79
+ if self.zone_id is not None:
80
+ result['ZoneId'] = self.zone_id
81
+
82
+ return result
83
+
84
+ def from_map(self, m: dict = None):
85
+ m = m or dict()
86
+ if m.get('ClientToken') is not None:
87
+ self.client_token = m.get('ClientToken')
88
+
89
+ if m.get('DryRun') is not None:
90
+ self.dry_run = m.get('DryRun')
91
+
92
+ if m.get('EndpointId') is not None:
93
+ self.endpoint_id = m.get('EndpointId')
94
+
95
+ if m.get('RegionId') is not None:
96
+ self.region_id = m.get('RegionId')
97
+
98
+ if m.get('ReplacedResource') is not None:
99
+ self.replaced_resource = m.get('ReplacedResource')
100
+
101
+ if m.get('ServiceId') is not None:
102
+ self.service_id = m.get('ServiceId')
103
+
104
+ if m.get('ZoneId') is not None:
105
+ self.zone_id = m.get('ZoneId')
106
+
107
+ return self
108
+