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.
- alibabacloud_privatelink20200415/__init__.py +1 -1
- alibabacloud_privatelink20200415/client.py +2426 -3802
- alibabacloud_privatelink20200415/models/__init__.py +301 -0
- alibabacloud_privatelink20200415/models/_add_user_to_vpc_endpoint_service_request.py +88 -0
- alibabacloud_privatelink20200415/models/_add_user_to_vpc_endpoint_service_response.py +54 -0
- alibabacloud_privatelink20200415/models/_add_user_to_vpc_endpoint_service_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_add_zone_to_vpc_endpoint_request.py +112 -0
- alibabacloud_privatelink20200415/models/_add_zone_to_vpc_endpoint_response.py +54 -0
- alibabacloud_privatelink20200415/models/_add_zone_to_vpc_endpoint_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_attach_resource_to_vpc_endpoint_service_request.py +109 -0
- alibabacloud_privatelink20200415/models/_attach_resource_to_vpc_endpoint_service_response.py +54 -0
- alibabacloud_privatelink20200415/models/_attach_resource_to_vpc_endpoint_service_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_attach_security_group_to_vpc_endpoint_request.py +81 -0
- alibabacloud_privatelink20200415/models/_attach_security_group_to_vpc_endpoint_response.py +54 -0
- alibabacloud_privatelink20200415/models/_attach_security_group_to_vpc_endpoint_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_change_resource_group_request.py +59 -0
- alibabacloud_privatelink20200415/models/_change_resource_group_response.py +54 -0
- alibabacloud_privatelink20200415/models/_change_resource_group_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_check_product_open_response.py +54 -0
- alibabacloud_privatelink20200415/models/_check_product_open_response_body.py +45 -0
- alibabacloud_privatelink20200415/models/_create_vpc_endpoint_request.py +347 -0
- alibabacloud_privatelink20200415/models/_create_vpc_endpoint_response.py +54 -0
- alibabacloud_privatelink20200415/models/_create_vpc_endpoint_response_body.py +193 -0
- alibabacloud_privatelink20200415/models/_create_vpc_endpoint_service_request.py +295 -0
- alibabacloud_privatelink20200415/models/_create_vpc_endpoint_service_response.py +54 -0
- alibabacloud_privatelink20200415/models/_create_vpc_endpoint_service_response_body.py +224 -0
- alibabacloud_privatelink20200415/models/_delete_vpc_endpoint_request.py +70 -0
- alibabacloud_privatelink20200415/models/_delete_vpc_endpoint_response.py +54 -0
- alibabacloud_privatelink20200415/models/_delete_vpc_endpoint_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_delete_vpc_endpoint_service_request.py +70 -0
- alibabacloud_privatelink20200415/models/_delete_vpc_endpoint_service_response.py +54 -0
- alibabacloud_privatelink20200415/models/_delete_vpc_endpoint_service_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_describe_regions_request.py +42 -0
- alibabacloud_privatelink20200415/models/_describe_regions_response.py +54 -0
- alibabacloud_privatelink20200415/models/_describe_regions_response_body.py +166 -0
- alibabacloud_privatelink20200415/models/_describe_zones_request.py +44 -0
- alibabacloud_privatelink20200415/models/_describe_zones_response.py +54 -0
- alibabacloud_privatelink20200415/models/_describe_zones_response_body.py +120 -0
- alibabacloud_privatelink20200415/models/_detach_resource_from_vpc_endpoint_service_request.py +104 -0
- alibabacloud_privatelink20200415/models/_detach_resource_from_vpc_endpoint_service_response.py +54 -0
- alibabacloud_privatelink20200415/models/_detach_resource_from_vpc_endpoint_service_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_detach_security_group_from_vpc_endpoint_request.py +81 -0
- alibabacloud_privatelink20200415/models/_detach_security_group_from_vpc_endpoint_response.py +54 -0
- alibabacloud_privatelink20200415/models/_detach_security_group_from_vpc_endpoint_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_disable_vpc_endpoint_connection_request.py +81 -0
- alibabacloud_privatelink20200415/models/_disable_vpc_endpoint_connection_response.py +54 -0
- alibabacloud_privatelink20200415/models/_disable_vpc_endpoint_connection_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_disable_vpc_endpoint_zone_connection_request.py +108 -0
- alibabacloud_privatelink20200415/models/_disable_vpc_endpoint_zone_connection_response.py +54 -0
- alibabacloud_privatelink20200415/models/_disable_vpc_endpoint_zone_connection_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_enable_vpc_endpoint_connection_request.py +102 -0
- alibabacloud_privatelink20200415/models/_enable_vpc_endpoint_connection_response.py +54 -0
- alibabacloud_privatelink20200415/models/_enable_vpc_endpoint_connection_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_enable_vpc_endpoint_zone_connection_request.py +92 -0
- alibabacloud_privatelink20200415/models/_enable_vpc_endpoint_zone_connection_response.py +54 -0
- alibabacloud_privatelink20200415/models/_enable_vpc_endpoint_zone_connection_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_get_vpc_endpoint_attribute_request.py +49 -0
- alibabacloud_privatelink20200415/models/_get_vpc_endpoint_attribute_response.py +54 -0
- alibabacloud_privatelink20200415/models/_get_vpc_endpoint_attribute_response_body.py +267 -0
- alibabacloud_privatelink20200415/models/_get_vpc_endpoint_service_attribute_request.py +49 -0
- alibabacloud_privatelink20200415/models/_get_vpc_endpoint_service_attribute_response.py +54 -0
- alibabacloud_privatelink20200415/models/_get_vpc_endpoint_service_attribute_response_body.py +305 -0
- alibabacloud_privatelink20200415/models/_list_tag_resources_request.py +143 -0
- alibabacloud_privatelink20200415/models/_list_tag_resources_response.py +54 -0
- alibabacloud_privatelink20200415/models/_list_tag_resources_response_body.py +124 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_connections_request.py +139 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_connections_response.py +54 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_connections_response_body.py +337 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_security_groups_request.py +70 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_security_groups_response.py +54 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_security_groups_response_body.py +124 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_service_resources_request.py +70 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_service_resources_response.py +54 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_service_resources_response_body.py +201 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_service_users_request.py +88 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_service_users_response.py +54 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_service_users_response_body.py +158 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_services_by_end_user_request.py +166 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_services_by_end_user_response.py +54 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_services_by_end_user_response_body.py +286 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_services_request.py +230 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_services_response.py +54 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_services_response_body.py +417 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_zones_request.py +72 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_zones_response.py +54 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoint_zones_response_body.py +188 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoints_request.py +228 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoints_response.py +54 -0
- alibabacloud_privatelink20200415/models/_list_vpc_endpoints_response_body.py +372 -0
- alibabacloud_privatelink20200415/models/_open_private_link_service_request.py +33 -0
- alibabacloud_privatelink20200415/models/_open_private_link_service_response.py +54 -0
- alibabacloud_privatelink20200415/models/_open_private_link_service_response_body.py +43 -0
- alibabacloud_privatelink20200415/models/_remove_user_from_vpc_endpoint_service_request.py +86 -0
- alibabacloud_privatelink20200415/models/_remove_user_from_vpc_endpoint_service_response.py +54 -0
- alibabacloud_privatelink20200415/models/_remove_user_from_vpc_endpoint_service_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_remove_zone_from_vpc_endpoint_request.py +81 -0
- alibabacloud_privatelink20200415/models/_remove_zone_from_vpc_endpoint_response.py +54 -0
- alibabacloud_privatelink20200415/models/_remove_zone_from_vpc_endpoint_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_tag_resources_request.py +155 -0
- alibabacloud_privatelink20200415/models/_tag_resources_response.py +54 -0
- alibabacloud_privatelink20200415/models/_tag_resources_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_untag_resources_request.py +113 -0
- alibabacloud_privatelink20200415/models/_untag_resources_response.py +54 -0
- alibabacloud_privatelink20200415/models/_untag_resources_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_attribute_request.py +138 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_attribute_response.py +54 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_attribute_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_connection_attribute_request.py +100 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_connection_attribute_response.py +54 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_connection_attribute_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_service_attribute_request.py +162 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_service_attribute_response.py +54 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_service_attribute_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_service_resource_attribute_request.py +106 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_service_resource_attribute_response.py +54 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_service_resource_attribute_response_body.py +34 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_zone_connection_resource_attribute_request.py +145 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_zone_connection_resource_attribute_response.py +54 -0
- alibabacloud_privatelink20200415/models/_update_vpc_endpoint_zone_connection_resource_attribute_response_body.py +34 -0
- {alibabacloud_privatelink20200415-4.0.4.dist-info → alibabacloud_privatelink20200415-4.0.6.dist-info}/METADATA +7 -7
- alibabacloud_privatelink20200415-4.0.6.dist-info/RECORD +124 -0
- alibabacloud_privatelink20200415/models.py +0 -8525
- alibabacloud_privatelink20200415-4.0.4.dist-info/RECORD +0 -8
- {alibabacloud_privatelink20200415-4.0.4.dist-info → alibabacloud_privatelink20200415-4.0.6.dist-info}/LICENSE +0 -0
- {alibabacloud_privatelink20200415-4.0.4.dist-info → alibabacloud_privatelink20200415-4.0.6.dist-info}/WHEEL +0 -0
- {alibabacloud_privatelink20200415-4.0.4.dist-info → alibabacloud_privatelink20200415-4.0.6.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,295 @@
|
|
|
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 CreateVpcEndpointServiceRequest(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
address_ip_version: str = None,
|
|
14
|
+
auto_accept_enabled: bool = None,
|
|
15
|
+
client_token: str = None,
|
|
16
|
+
dry_run: bool = None,
|
|
17
|
+
payer: str = None,
|
|
18
|
+
region_id: str = None,
|
|
19
|
+
resource: List[main_models.CreateVpcEndpointServiceRequestResource] = None,
|
|
20
|
+
resource_group_id: str = None,
|
|
21
|
+
service_description: str = None,
|
|
22
|
+
service_resource_type: str = None,
|
|
23
|
+
service_support_ipv_6: bool = None,
|
|
24
|
+
supported_region_list: List[str] = None,
|
|
25
|
+
tag: List[main_models.CreateVpcEndpointServiceRequestTag] = None,
|
|
26
|
+
zone_affinity_enabled: bool = None,
|
|
27
|
+
):
|
|
28
|
+
# The protocol. Valid values:
|
|
29
|
+
#
|
|
30
|
+
# * **IPv4** (default)
|
|
31
|
+
# * **DualStack**
|
|
32
|
+
#
|
|
33
|
+
# > You can set the protocol to DualStack only for endpoint services whose backend resource type is NLB. An endpoint service supports dual-stack only if its backend resources support dual-stack.
|
|
34
|
+
self.address_ip_version = address_ip_version
|
|
35
|
+
# Specifies whether to automatically accept endpoint connection requests. Valid values:
|
|
36
|
+
#
|
|
37
|
+
# * **true**
|
|
38
|
+
# * **false** (default)
|
|
39
|
+
self.auto_accept_enabled = auto_accept_enabled
|
|
40
|
+
# The client token that is used to ensure the idempotence of the request.
|
|
41
|
+
#
|
|
42
|
+
# 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.
|
|
43
|
+
self.client_token = client_token
|
|
44
|
+
# Specifies whether to perform only a dry run, without performing the actual request.
|
|
45
|
+
#
|
|
46
|
+
# * **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.
|
|
47
|
+
# * **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.
|
|
48
|
+
self.dry_run = dry_run
|
|
49
|
+
# The payer. Valid values:
|
|
50
|
+
#
|
|
51
|
+
# * **Endpoint**: service consumer
|
|
52
|
+
# * **EndpointService**: service provider
|
|
53
|
+
self.payer = payer
|
|
54
|
+
# The region ID of the endpoint service.
|
|
55
|
+
#
|
|
56
|
+
# You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
|
|
57
|
+
#
|
|
58
|
+
# This parameter is required.
|
|
59
|
+
self.region_id = region_id
|
|
60
|
+
# The service resources of the endpoint service. You can create at most 10 resources. After the resource is created, you can continue to add service resources to the endpoint.
|
|
61
|
+
self.resource = resource
|
|
62
|
+
# The resource group ID.
|
|
63
|
+
self.resource_group_id = resource_group_id
|
|
64
|
+
# The description of the endpoint service.
|
|
65
|
+
self.service_description = service_description
|
|
66
|
+
# The type of the service resource. Valid values:
|
|
67
|
+
#
|
|
68
|
+
# * **slb**: Classic Load Balancer (CLB) instance
|
|
69
|
+
# * **alb**: Application Load Balancer (ALB) instance
|
|
70
|
+
# * **nlb**: Network Load Balancer (NLB) instance
|
|
71
|
+
#
|
|
72
|
+
# > You cannot access TCP/SSL listeners configured for NLB instances.
|
|
73
|
+
self.service_resource_type = service_resource_type
|
|
74
|
+
# Specifies whether to enable IPv6 for the endpoint service. Valid values:
|
|
75
|
+
#
|
|
76
|
+
# * **true**
|
|
77
|
+
# * **false** (default)
|
|
78
|
+
self.service_support_ipv_6 = service_support_ipv_6
|
|
79
|
+
self.supported_region_list = supported_region_list
|
|
80
|
+
# The tags to add to the resource.
|
|
81
|
+
self.tag = tag
|
|
82
|
+
# Specifies whether to first resolve the domain name of the nearest endpoint that is associated with the endpoint service. Valid values:
|
|
83
|
+
#
|
|
84
|
+
# * **true**
|
|
85
|
+
# * **false** (default)
|
|
86
|
+
self.zone_affinity_enabled = zone_affinity_enabled
|
|
87
|
+
|
|
88
|
+
def validate(self):
|
|
89
|
+
if self.resource:
|
|
90
|
+
for v1 in self.resource:
|
|
91
|
+
if v1:
|
|
92
|
+
v1.validate()
|
|
93
|
+
if self.tag:
|
|
94
|
+
for v1 in self.tag:
|
|
95
|
+
if v1:
|
|
96
|
+
v1.validate()
|
|
97
|
+
|
|
98
|
+
def to_map(self):
|
|
99
|
+
result = dict()
|
|
100
|
+
_map = super().to_map()
|
|
101
|
+
if _map is not None:
|
|
102
|
+
result = _map
|
|
103
|
+
if self.address_ip_version is not None:
|
|
104
|
+
result['AddressIpVersion'] = self.address_ip_version
|
|
105
|
+
|
|
106
|
+
if self.auto_accept_enabled is not None:
|
|
107
|
+
result['AutoAcceptEnabled'] = self.auto_accept_enabled
|
|
108
|
+
|
|
109
|
+
if self.client_token is not None:
|
|
110
|
+
result['ClientToken'] = self.client_token
|
|
111
|
+
|
|
112
|
+
if self.dry_run is not None:
|
|
113
|
+
result['DryRun'] = self.dry_run
|
|
114
|
+
|
|
115
|
+
if self.payer is not None:
|
|
116
|
+
result['Payer'] = self.payer
|
|
117
|
+
|
|
118
|
+
if self.region_id is not None:
|
|
119
|
+
result['RegionId'] = self.region_id
|
|
120
|
+
|
|
121
|
+
result['Resource'] = []
|
|
122
|
+
if self.resource is not None:
|
|
123
|
+
for k1 in self.resource:
|
|
124
|
+
result['Resource'].append(k1.to_map() if k1 else None)
|
|
125
|
+
|
|
126
|
+
if self.resource_group_id is not None:
|
|
127
|
+
result['ResourceGroupId'] = self.resource_group_id
|
|
128
|
+
|
|
129
|
+
if self.service_description is not None:
|
|
130
|
+
result['ServiceDescription'] = self.service_description
|
|
131
|
+
|
|
132
|
+
if self.service_resource_type is not None:
|
|
133
|
+
result['ServiceResourceType'] = self.service_resource_type
|
|
134
|
+
|
|
135
|
+
if self.service_support_ipv_6 is not None:
|
|
136
|
+
result['ServiceSupportIPv6'] = self.service_support_ipv_6
|
|
137
|
+
|
|
138
|
+
if self.supported_region_list is not None:
|
|
139
|
+
result['SupportedRegionList'] = self.supported_region_list
|
|
140
|
+
|
|
141
|
+
result['Tag'] = []
|
|
142
|
+
if self.tag is not None:
|
|
143
|
+
for k1 in self.tag:
|
|
144
|
+
result['Tag'].append(k1.to_map() if k1 else None)
|
|
145
|
+
|
|
146
|
+
if self.zone_affinity_enabled is not None:
|
|
147
|
+
result['ZoneAffinityEnabled'] = self.zone_affinity_enabled
|
|
148
|
+
|
|
149
|
+
return result
|
|
150
|
+
|
|
151
|
+
def from_map(self, m: dict = None):
|
|
152
|
+
m = m or dict()
|
|
153
|
+
if m.get('AddressIpVersion') is not None:
|
|
154
|
+
self.address_ip_version = m.get('AddressIpVersion')
|
|
155
|
+
|
|
156
|
+
if m.get('AutoAcceptEnabled') is not None:
|
|
157
|
+
self.auto_accept_enabled = m.get('AutoAcceptEnabled')
|
|
158
|
+
|
|
159
|
+
if m.get('ClientToken') is not None:
|
|
160
|
+
self.client_token = m.get('ClientToken')
|
|
161
|
+
|
|
162
|
+
if m.get('DryRun') is not None:
|
|
163
|
+
self.dry_run = m.get('DryRun')
|
|
164
|
+
|
|
165
|
+
if m.get('Payer') is not None:
|
|
166
|
+
self.payer = m.get('Payer')
|
|
167
|
+
|
|
168
|
+
if m.get('RegionId') is not None:
|
|
169
|
+
self.region_id = m.get('RegionId')
|
|
170
|
+
|
|
171
|
+
self.resource = []
|
|
172
|
+
if m.get('Resource') is not None:
|
|
173
|
+
for k1 in m.get('Resource'):
|
|
174
|
+
temp_model = main_models.CreateVpcEndpointServiceRequestResource()
|
|
175
|
+
self.resource.append(temp_model.from_map(k1))
|
|
176
|
+
|
|
177
|
+
if m.get('ResourceGroupId') is not None:
|
|
178
|
+
self.resource_group_id = m.get('ResourceGroupId')
|
|
179
|
+
|
|
180
|
+
if m.get('ServiceDescription') is not None:
|
|
181
|
+
self.service_description = m.get('ServiceDescription')
|
|
182
|
+
|
|
183
|
+
if m.get('ServiceResourceType') is not None:
|
|
184
|
+
self.service_resource_type = m.get('ServiceResourceType')
|
|
185
|
+
|
|
186
|
+
if m.get('ServiceSupportIPv6') is not None:
|
|
187
|
+
self.service_support_ipv_6 = m.get('ServiceSupportIPv6')
|
|
188
|
+
|
|
189
|
+
if m.get('SupportedRegionList') is not None:
|
|
190
|
+
self.supported_region_list = m.get('SupportedRegionList')
|
|
191
|
+
|
|
192
|
+
self.tag = []
|
|
193
|
+
if m.get('Tag') is not None:
|
|
194
|
+
for k1 in m.get('Tag'):
|
|
195
|
+
temp_model = main_models.CreateVpcEndpointServiceRequestTag()
|
|
196
|
+
self.tag.append(temp_model.from_map(k1))
|
|
197
|
+
|
|
198
|
+
if m.get('ZoneAffinityEnabled') is not None:
|
|
199
|
+
self.zone_affinity_enabled = m.get('ZoneAffinityEnabled')
|
|
200
|
+
|
|
201
|
+
return self
|
|
202
|
+
|
|
203
|
+
class CreateVpcEndpointServiceRequestTag(DaraModel):
|
|
204
|
+
def __init__(
|
|
205
|
+
self,
|
|
206
|
+
key: str = None,
|
|
207
|
+
value: str = None,
|
|
208
|
+
):
|
|
209
|
+
# The key of the tag to add to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.
|
|
210
|
+
#
|
|
211
|
+
# The tag key can be up to 64 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `aliyun` or `acs:`.
|
|
212
|
+
self.key = key
|
|
213
|
+
# The value of the tag to add to the resource. You can specify up to 20 tag values. The tag value can be an empty string.
|
|
214
|
+
#
|
|
215
|
+
# The tag value can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag value cannot start with `aliyun` or `acs:`.
|
|
216
|
+
self.value = value
|
|
217
|
+
|
|
218
|
+
def validate(self):
|
|
219
|
+
pass
|
|
220
|
+
|
|
221
|
+
def to_map(self):
|
|
222
|
+
result = dict()
|
|
223
|
+
_map = super().to_map()
|
|
224
|
+
if _map is not None:
|
|
225
|
+
result = _map
|
|
226
|
+
if self.key is not None:
|
|
227
|
+
result['Key'] = self.key
|
|
228
|
+
|
|
229
|
+
if self.value is not None:
|
|
230
|
+
result['Value'] = self.value
|
|
231
|
+
|
|
232
|
+
return result
|
|
233
|
+
|
|
234
|
+
def from_map(self, m: dict = None):
|
|
235
|
+
m = m or dict()
|
|
236
|
+
if m.get('Key') is not None:
|
|
237
|
+
self.key = m.get('Key')
|
|
238
|
+
|
|
239
|
+
if m.get('Value') is not None:
|
|
240
|
+
self.value = m.get('Value')
|
|
241
|
+
|
|
242
|
+
return self
|
|
243
|
+
|
|
244
|
+
class CreateVpcEndpointServiceRequestResource(DaraModel):
|
|
245
|
+
def __init__(
|
|
246
|
+
self,
|
|
247
|
+
resource_id: str = None,
|
|
248
|
+
resource_type: str = None,
|
|
249
|
+
zone_id: str = None,
|
|
250
|
+
):
|
|
251
|
+
# The ID of the service resource that is added to the endpoint service.
|
|
252
|
+
self.resource_id = resource_id
|
|
253
|
+
# The type of the service resource that is added to the endpoint service. You can add up to 20 service resources to the endpoint service. Valid values:
|
|
254
|
+
#
|
|
255
|
+
# * **slb**: CLB instance
|
|
256
|
+
# * **alb**: ALB instance
|
|
257
|
+
# * **nlb**: NLB instance
|
|
258
|
+
#
|
|
259
|
+
# > In regions where PrivateLink is supported, CLB instances deployed in virtual private clouds (VPCs) can serve as the service resources of the endpoint service. You cannot access TCP/SSL listeners configured for NLB instances.
|
|
260
|
+
self.resource_type = resource_type
|
|
261
|
+
# The zone ID of the cluster.
|
|
262
|
+
self.zone_id = zone_id
|
|
263
|
+
|
|
264
|
+
def validate(self):
|
|
265
|
+
pass
|
|
266
|
+
|
|
267
|
+
def to_map(self):
|
|
268
|
+
result = dict()
|
|
269
|
+
_map = super().to_map()
|
|
270
|
+
if _map is not None:
|
|
271
|
+
result = _map
|
|
272
|
+
if self.resource_id is not None:
|
|
273
|
+
result['ResourceId'] = self.resource_id
|
|
274
|
+
|
|
275
|
+
if self.resource_type is not None:
|
|
276
|
+
result['ResourceType'] = self.resource_type
|
|
277
|
+
|
|
278
|
+
if self.zone_id is not None:
|
|
279
|
+
result['ZoneId'] = self.zone_id
|
|
280
|
+
|
|
281
|
+
return result
|
|
282
|
+
|
|
283
|
+
def from_map(self, m: dict = None):
|
|
284
|
+
m = m or dict()
|
|
285
|
+
if m.get('ResourceId') is not None:
|
|
286
|
+
self.resource_id = m.get('ResourceId')
|
|
287
|
+
|
|
288
|
+
if m.get('ResourceType') is not None:
|
|
289
|
+
self.resource_type = m.get('ResourceType')
|
|
290
|
+
|
|
291
|
+
if m.get('ZoneId') is not None:
|
|
292
|
+
self.zone_id = m.get('ZoneId')
|
|
293
|
+
|
|
294
|
+
return self
|
|
295
|
+
|
|
@@ -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 CreateVpcEndpointServiceResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.CreateVpcEndpointServiceResponseBody = 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.CreateVpcEndpointServiceResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
@@ -0,0 +1,224 @@
|
|
|
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 CreateVpcEndpointServiceResponseBody(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
address_ip_version: str = None,
|
|
14
|
+
auto_accept_enabled: bool = None,
|
|
15
|
+
create_time: str = None,
|
|
16
|
+
request_id: str = None,
|
|
17
|
+
resource_group_id: str = None,
|
|
18
|
+
service_business_status: str = None,
|
|
19
|
+
service_description: str = None,
|
|
20
|
+
service_domain: str = None,
|
|
21
|
+
service_id: str = None,
|
|
22
|
+
service_name: str = None,
|
|
23
|
+
service_status: str = None,
|
|
24
|
+
service_support_ipv_6: bool = None,
|
|
25
|
+
supported_region_set: List[main_models.CreateVpcEndpointServiceResponseBodySupportedRegionSet] = None,
|
|
26
|
+
zone_affinity_enabled: bool = None,
|
|
27
|
+
):
|
|
28
|
+
# The protocol. Valid values:
|
|
29
|
+
#
|
|
30
|
+
# * **IPv4**
|
|
31
|
+
# * **DualStack**
|
|
32
|
+
self.address_ip_version = address_ip_version
|
|
33
|
+
# Indicates whether the endpoint service automatically accepts endpoint connection requests. Valid values:
|
|
34
|
+
#
|
|
35
|
+
# * **true**
|
|
36
|
+
# * **false**
|
|
37
|
+
self.auto_accept_enabled = auto_accept_enabled
|
|
38
|
+
# The time when the endpoint service was created.
|
|
39
|
+
self.create_time = create_time
|
|
40
|
+
# The request ID.
|
|
41
|
+
self.request_id = request_id
|
|
42
|
+
# The resource group ID.
|
|
43
|
+
self.resource_group_id = resource_group_id
|
|
44
|
+
# The service state of the endpoint service. Valid values:
|
|
45
|
+
#
|
|
46
|
+
# * **Normal**: The endpoint service runs as expected.
|
|
47
|
+
# * **FinancialLocked**: The endpoint service is locked due to overdue payments.
|
|
48
|
+
self.service_business_status = service_business_status
|
|
49
|
+
# The description of the endpoint service.
|
|
50
|
+
self.service_description = service_description
|
|
51
|
+
# The domain name of the endpoint service.
|
|
52
|
+
self.service_domain = service_domain
|
|
53
|
+
# The endpoint service ID.
|
|
54
|
+
self.service_id = service_id
|
|
55
|
+
# The name of the endpoint service.
|
|
56
|
+
self.service_name = service_name
|
|
57
|
+
# The state of the endpoint service. Valid values:
|
|
58
|
+
#
|
|
59
|
+
# * **Creating**: The endpoint service is being created.
|
|
60
|
+
# * **Pending**: The endpoint service is being modified.
|
|
61
|
+
# * **Active**: The endpoint service is available.
|
|
62
|
+
# * **Deleting**: The endpoint service is being deleted.
|
|
63
|
+
self.service_status = service_status
|
|
64
|
+
# Indicates whether IPv6 was enabled for the endpoint service. Valid values:
|
|
65
|
+
#
|
|
66
|
+
# * **true**
|
|
67
|
+
# * **false**
|
|
68
|
+
self.service_support_ipv_6 = service_support_ipv_6
|
|
69
|
+
self.supported_region_set = supported_region_set
|
|
70
|
+
# Indicates whether the domain name of the nearest endpoint that is associated with the endpoint service is resolved first. Valid values:
|
|
71
|
+
#
|
|
72
|
+
# * **true**
|
|
73
|
+
# * **false**
|
|
74
|
+
self.zone_affinity_enabled = zone_affinity_enabled
|
|
75
|
+
|
|
76
|
+
def validate(self):
|
|
77
|
+
if self.supported_region_set:
|
|
78
|
+
for v1 in self.supported_region_set:
|
|
79
|
+
if v1:
|
|
80
|
+
v1.validate()
|
|
81
|
+
|
|
82
|
+
def to_map(self):
|
|
83
|
+
result = dict()
|
|
84
|
+
_map = super().to_map()
|
|
85
|
+
if _map is not None:
|
|
86
|
+
result = _map
|
|
87
|
+
if self.address_ip_version is not None:
|
|
88
|
+
result['AddressIpVersion'] = self.address_ip_version
|
|
89
|
+
|
|
90
|
+
if self.auto_accept_enabled is not None:
|
|
91
|
+
result['AutoAcceptEnabled'] = self.auto_accept_enabled
|
|
92
|
+
|
|
93
|
+
if self.create_time is not None:
|
|
94
|
+
result['CreateTime'] = self.create_time
|
|
95
|
+
|
|
96
|
+
if self.request_id is not None:
|
|
97
|
+
result['RequestId'] = self.request_id
|
|
98
|
+
|
|
99
|
+
if self.resource_group_id is not None:
|
|
100
|
+
result['ResourceGroupId'] = self.resource_group_id
|
|
101
|
+
|
|
102
|
+
if self.service_business_status is not None:
|
|
103
|
+
result['ServiceBusinessStatus'] = self.service_business_status
|
|
104
|
+
|
|
105
|
+
if self.service_description is not None:
|
|
106
|
+
result['ServiceDescription'] = self.service_description
|
|
107
|
+
|
|
108
|
+
if self.service_domain is not None:
|
|
109
|
+
result['ServiceDomain'] = self.service_domain
|
|
110
|
+
|
|
111
|
+
if self.service_id is not None:
|
|
112
|
+
result['ServiceId'] = self.service_id
|
|
113
|
+
|
|
114
|
+
if self.service_name is not None:
|
|
115
|
+
result['ServiceName'] = self.service_name
|
|
116
|
+
|
|
117
|
+
if self.service_status is not None:
|
|
118
|
+
result['ServiceStatus'] = self.service_status
|
|
119
|
+
|
|
120
|
+
if self.service_support_ipv_6 is not None:
|
|
121
|
+
result['ServiceSupportIPv6'] = self.service_support_ipv_6
|
|
122
|
+
|
|
123
|
+
result['SupportedRegionSet'] = []
|
|
124
|
+
if self.supported_region_set is not None:
|
|
125
|
+
for k1 in self.supported_region_set:
|
|
126
|
+
result['SupportedRegionSet'].append(k1.to_map() if k1 else None)
|
|
127
|
+
|
|
128
|
+
if self.zone_affinity_enabled is not None:
|
|
129
|
+
result['ZoneAffinityEnabled'] = self.zone_affinity_enabled
|
|
130
|
+
|
|
131
|
+
return result
|
|
132
|
+
|
|
133
|
+
def from_map(self, m: dict = None):
|
|
134
|
+
m = m or dict()
|
|
135
|
+
if m.get('AddressIpVersion') is not None:
|
|
136
|
+
self.address_ip_version = m.get('AddressIpVersion')
|
|
137
|
+
|
|
138
|
+
if m.get('AutoAcceptEnabled') is not None:
|
|
139
|
+
self.auto_accept_enabled = m.get('AutoAcceptEnabled')
|
|
140
|
+
|
|
141
|
+
if m.get('CreateTime') is not None:
|
|
142
|
+
self.create_time = m.get('CreateTime')
|
|
143
|
+
|
|
144
|
+
if m.get('RequestId') is not None:
|
|
145
|
+
self.request_id = m.get('RequestId')
|
|
146
|
+
|
|
147
|
+
if m.get('ResourceGroupId') is not None:
|
|
148
|
+
self.resource_group_id = m.get('ResourceGroupId')
|
|
149
|
+
|
|
150
|
+
if m.get('ServiceBusinessStatus') is not None:
|
|
151
|
+
self.service_business_status = m.get('ServiceBusinessStatus')
|
|
152
|
+
|
|
153
|
+
if m.get('ServiceDescription') is not None:
|
|
154
|
+
self.service_description = m.get('ServiceDescription')
|
|
155
|
+
|
|
156
|
+
if m.get('ServiceDomain') is not None:
|
|
157
|
+
self.service_domain = m.get('ServiceDomain')
|
|
158
|
+
|
|
159
|
+
if m.get('ServiceId') is not None:
|
|
160
|
+
self.service_id = m.get('ServiceId')
|
|
161
|
+
|
|
162
|
+
if m.get('ServiceName') is not None:
|
|
163
|
+
self.service_name = m.get('ServiceName')
|
|
164
|
+
|
|
165
|
+
if m.get('ServiceStatus') is not None:
|
|
166
|
+
self.service_status = m.get('ServiceStatus')
|
|
167
|
+
|
|
168
|
+
if m.get('ServiceSupportIPv6') is not None:
|
|
169
|
+
self.service_support_ipv_6 = m.get('ServiceSupportIPv6')
|
|
170
|
+
|
|
171
|
+
self.supported_region_set = []
|
|
172
|
+
if m.get('SupportedRegionSet') is not None:
|
|
173
|
+
for k1 in m.get('SupportedRegionSet'):
|
|
174
|
+
temp_model = main_models.CreateVpcEndpointServiceResponseBodySupportedRegionSet()
|
|
175
|
+
self.supported_region_set.append(temp_model.from_map(k1))
|
|
176
|
+
|
|
177
|
+
if m.get('ZoneAffinityEnabled') is not None:
|
|
178
|
+
self.zone_affinity_enabled = m.get('ZoneAffinityEnabled')
|
|
179
|
+
|
|
180
|
+
return self
|
|
181
|
+
|
|
182
|
+
class CreateVpcEndpointServiceResponseBodySupportedRegionSet(DaraModel):
|
|
183
|
+
def __init__(
|
|
184
|
+
self,
|
|
185
|
+
region_business_status: str = None,
|
|
186
|
+
region_service_status: str = None,
|
|
187
|
+
service_region_id: str = None,
|
|
188
|
+
):
|
|
189
|
+
self.region_business_status = region_business_status
|
|
190
|
+
self.region_service_status = region_service_status
|
|
191
|
+
self.service_region_id = service_region_id
|
|
192
|
+
|
|
193
|
+
def validate(self):
|
|
194
|
+
pass
|
|
195
|
+
|
|
196
|
+
def to_map(self):
|
|
197
|
+
result = dict()
|
|
198
|
+
_map = super().to_map()
|
|
199
|
+
if _map is not None:
|
|
200
|
+
result = _map
|
|
201
|
+
if self.region_business_status is not None:
|
|
202
|
+
result['RegionBusinessStatus'] = self.region_business_status
|
|
203
|
+
|
|
204
|
+
if self.region_service_status is not None:
|
|
205
|
+
result['RegionServiceStatus'] = self.region_service_status
|
|
206
|
+
|
|
207
|
+
if self.service_region_id is not None:
|
|
208
|
+
result['ServiceRegionId'] = self.service_region_id
|
|
209
|
+
|
|
210
|
+
return result
|
|
211
|
+
|
|
212
|
+
def from_map(self, m: dict = None):
|
|
213
|
+
m = m or dict()
|
|
214
|
+
if m.get('RegionBusinessStatus') is not None:
|
|
215
|
+
self.region_business_status = m.get('RegionBusinessStatus')
|
|
216
|
+
|
|
217
|
+
if m.get('RegionServiceStatus') is not None:
|
|
218
|
+
self.region_service_status = m.get('RegionServiceStatus')
|
|
219
|
+
|
|
220
|
+
if m.get('ServiceRegionId') is not None:
|
|
221
|
+
self.service_region_id = m.get('ServiceRegionId')
|
|
222
|
+
|
|
223
|
+
return self
|
|
224
|
+
|
|
@@ -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 DeleteVpcEndpointRequest(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
|
+
):
|
|
15
|
+
# The client token that is used to ensure the idempotence of the request.
|
|
16
|
+
#
|
|
17
|
+
# 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.
|
|
18
|
+
self.client_token = client_token
|
|
19
|
+
# Specifies whether to perform only a dry run, without performing the actual request. Valid values:
|
|
20
|
+
#
|
|
21
|
+
# * **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.
|
|
22
|
+
# * **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.
|
|
23
|
+
self.dry_run = dry_run
|
|
24
|
+
# The ID of the endpoint that you want to delete.
|
|
25
|
+
#
|
|
26
|
+
# This parameter is required.
|
|
27
|
+
self.endpoint_id = endpoint_id
|
|
28
|
+
# The region ID of the endpoint that you want to delete. 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.client_token is not None:
|
|
42
|
+
result['ClientToken'] = self.client_token
|
|
43
|
+
|
|
44
|
+
if self.dry_run is not None:
|
|
45
|
+
result['DryRun'] = self.dry_run
|
|
46
|
+
|
|
47
|
+
if self.endpoint_id is not None:
|
|
48
|
+
result['EndpointId'] = self.endpoint_id
|
|
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('ClientToken') is not None:
|
|
58
|
+
self.client_token = m.get('ClientToken')
|
|
59
|
+
|
|
60
|
+
if m.get('DryRun') is not None:
|
|
61
|
+
self.dry_run = m.get('DryRun')
|
|
62
|
+
|
|
63
|
+
if m.get('EndpointId') is not None:
|
|
64
|
+
self.endpoint_id = m.get('EndpointId')
|
|
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 DeleteVpcEndpointResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.DeleteVpcEndpointResponseBody = 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.DeleteVpcEndpointResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|