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,347 @@
|
|
|
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 CreateVpcEndpointRequest(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
address_ip_version: str = None,
|
|
14
|
+
client_token: str = None,
|
|
15
|
+
cross_region_bandwidth: int = None,
|
|
16
|
+
dry_run: bool = None,
|
|
17
|
+
endpoint_description: str = None,
|
|
18
|
+
endpoint_name: str = None,
|
|
19
|
+
endpoint_type: str = None,
|
|
20
|
+
policy_document: str = None,
|
|
21
|
+
protected_enabled: bool = None,
|
|
22
|
+
region_id: str = None,
|
|
23
|
+
resource_group_id: str = None,
|
|
24
|
+
security_group_id: List[str] = None,
|
|
25
|
+
service_id: str = None,
|
|
26
|
+
service_name: str = None,
|
|
27
|
+
service_region_id: str = None,
|
|
28
|
+
tag: List[main_models.CreateVpcEndpointRequestTag] = None,
|
|
29
|
+
vpc_id: str = None,
|
|
30
|
+
zone: List[main_models.CreateVpcEndpointRequestZone] = None,
|
|
31
|
+
zone_affinity_enabled: bool = None,
|
|
32
|
+
zone_private_ip_address_count: int = None,
|
|
33
|
+
):
|
|
34
|
+
# The protocol. Valid values:
|
|
35
|
+
#
|
|
36
|
+
# * **IPv4** (default)
|
|
37
|
+
# * **DualStack**
|
|
38
|
+
#
|
|
39
|
+
# > An endpoint supports dual-stack if its associated endpoint service and VPC both support dual-stack.
|
|
40
|
+
self.address_ip_version = address_ip_version
|
|
41
|
+
# The client token that is used to ensure the idempotence of the request.
|
|
42
|
+
#
|
|
43
|
+
# 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.
|
|
44
|
+
self.client_token = client_token
|
|
45
|
+
self.cross_region_bandwidth = cross_region_bandwidth
|
|
46
|
+
# Specifies whether to perform only a dry run, without performing the actual request. Valid values:
|
|
47
|
+
#
|
|
48
|
+
# * **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.
|
|
49
|
+
# * **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.
|
|
50
|
+
self.dry_run = dry_run
|
|
51
|
+
# The description of the endpoint.
|
|
52
|
+
#
|
|
53
|
+
# The description must be 2 to 256 characters in length, and cannot start with `http://` or `https://`.
|
|
54
|
+
self.endpoint_description = endpoint_description
|
|
55
|
+
# The name of the endpoint.
|
|
56
|
+
#
|
|
57
|
+
# The name must be 2 to 128 characters in length, and can contain digits, underscores (_), and hyphens (-). The name must start with a letter.
|
|
58
|
+
self.endpoint_name = endpoint_name
|
|
59
|
+
# The endpoint type. Valid values:
|
|
60
|
+
#
|
|
61
|
+
# * **Interface** You can specify an Application Load Balancer (ALB) instance, a Classic Load Balancer (CLB) instance, or a Network Load Balancer (NLB) instance.
|
|
62
|
+
# * **Reverse** You can specify a Virtual Private Cloud (VPC) NAT gateway.
|
|
63
|
+
#
|
|
64
|
+
# > Services that support reverse endpoints are provided by Alibaba Cloud or Alibaba Cloud partners. To create such a service on your own, contact your account manager.
|
|
65
|
+
self.endpoint_type = endpoint_type
|
|
66
|
+
self.policy_document = policy_document
|
|
67
|
+
# Specifies whether to enable user authentication. This parameter is available in Security Token Service (STS) mode. Valid values:
|
|
68
|
+
#
|
|
69
|
+
# * **true**: enables user authentication. After user authentication is enabled, only the user who creates the endpoint can modify or delete the endpoint in STS mode.
|
|
70
|
+
# * **false** (default): disables user authentication.
|
|
71
|
+
self.protected_enabled = protected_enabled
|
|
72
|
+
# The region ID of the endpoint.
|
|
73
|
+
#
|
|
74
|
+
# You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
|
|
75
|
+
#
|
|
76
|
+
# This parameter is required.
|
|
77
|
+
self.region_id = region_id
|
|
78
|
+
# The resource group ID.
|
|
79
|
+
self.resource_group_id = resource_group_id
|
|
80
|
+
# The IDs of security groups that are associated with the endpoint elastic network interface (ENI).
|
|
81
|
+
self.security_group_id = security_group_id
|
|
82
|
+
# The ID of the endpoint service with which the endpoint is associated.
|
|
83
|
+
self.service_id = service_id
|
|
84
|
+
# The name of the endpoint service with which the endpoint is associated.
|
|
85
|
+
self.service_name = service_name
|
|
86
|
+
self.service_region_id = service_region_id
|
|
87
|
+
# The tags to add to the resource.
|
|
88
|
+
self.tag = tag
|
|
89
|
+
# The ID of the virtual private cloud (VPC) to which the endpoint belongs.
|
|
90
|
+
#
|
|
91
|
+
# This parameter is required.
|
|
92
|
+
self.vpc_id = vpc_id
|
|
93
|
+
# The zones where the endpoint is deployed.
|
|
94
|
+
self.zone = zone
|
|
95
|
+
self.zone_affinity_enabled = zone_affinity_enabled
|
|
96
|
+
# The number of private IP addresses that are assigned to an elastic network interface (ENI) in each zone. Set the value to **1**.
|
|
97
|
+
self.zone_private_ip_address_count = zone_private_ip_address_count
|
|
98
|
+
|
|
99
|
+
def validate(self):
|
|
100
|
+
if self.tag:
|
|
101
|
+
for v1 in self.tag:
|
|
102
|
+
if v1:
|
|
103
|
+
v1.validate()
|
|
104
|
+
if self.zone:
|
|
105
|
+
for v1 in self.zone:
|
|
106
|
+
if v1:
|
|
107
|
+
v1.validate()
|
|
108
|
+
|
|
109
|
+
def to_map(self):
|
|
110
|
+
result = dict()
|
|
111
|
+
_map = super().to_map()
|
|
112
|
+
if _map is not None:
|
|
113
|
+
result = _map
|
|
114
|
+
if self.address_ip_version is not None:
|
|
115
|
+
result['AddressIpVersion'] = self.address_ip_version
|
|
116
|
+
|
|
117
|
+
if self.client_token is not None:
|
|
118
|
+
result['ClientToken'] = self.client_token
|
|
119
|
+
|
|
120
|
+
if self.cross_region_bandwidth is not None:
|
|
121
|
+
result['CrossRegionBandwidth'] = self.cross_region_bandwidth
|
|
122
|
+
|
|
123
|
+
if self.dry_run is not None:
|
|
124
|
+
result['DryRun'] = self.dry_run
|
|
125
|
+
|
|
126
|
+
if self.endpoint_description is not None:
|
|
127
|
+
result['EndpointDescription'] = self.endpoint_description
|
|
128
|
+
|
|
129
|
+
if self.endpoint_name is not None:
|
|
130
|
+
result['EndpointName'] = self.endpoint_name
|
|
131
|
+
|
|
132
|
+
if self.endpoint_type is not None:
|
|
133
|
+
result['EndpointType'] = self.endpoint_type
|
|
134
|
+
|
|
135
|
+
if self.policy_document is not None:
|
|
136
|
+
result['PolicyDocument'] = self.policy_document
|
|
137
|
+
|
|
138
|
+
if self.protected_enabled is not None:
|
|
139
|
+
result['ProtectedEnabled'] = self.protected_enabled
|
|
140
|
+
|
|
141
|
+
if self.region_id is not None:
|
|
142
|
+
result['RegionId'] = self.region_id
|
|
143
|
+
|
|
144
|
+
if self.resource_group_id is not None:
|
|
145
|
+
result['ResourceGroupId'] = self.resource_group_id
|
|
146
|
+
|
|
147
|
+
if self.security_group_id is not None:
|
|
148
|
+
result['SecurityGroupId'] = self.security_group_id
|
|
149
|
+
|
|
150
|
+
if self.service_id is not None:
|
|
151
|
+
result['ServiceId'] = self.service_id
|
|
152
|
+
|
|
153
|
+
if self.service_name is not None:
|
|
154
|
+
result['ServiceName'] = self.service_name
|
|
155
|
+
|
|
156
|
+
if self.service_region_id is not None:
|
|
157
|
+
result['ServiceRegionId'] = self.service_region_id
|
|
158
|
+
|
|
159
|
+
result['Tag'] = []
|
|
160
|
+
if self.tag is not None:
|
|
161
|
+
for k1 in self.tag:
|
|
162
|
+
result['Tag'].append(k1.to_map() if k1 else None)
|
|
163
|
+
|
|
164
|
+
if self.vpc_id is not None:
|
|
165
|
+
result['VpcId'] = self.vpc_id
|
|
166
|
+
|
|
167
|
+
result['Zone'] = []
|
|
168
|
+
if self.zone is not None:
|
|
169
|
+
for k1 in self.zone:
|
|
170
|
+
result['Zone'].append(k1.to_map() if k1 else None)
|
|
171
|
+
|
|
172
|
+
if self.zone_affinity_enabled is not None:
|
|
173
|
+
result['ZoneAffinityEnabled'] = self.zone_affinity_enabled
|
|
174
|
+
|
|
175
|
+
if self.zone_private_ip_address_count is not None:
|
|
176
|
+
result['ZonePrivateIpAddressCount'] = self.zone_private_ip_address_count
|
|
177
|
+
|
|
178
|
+
return result
|
|
179
|
+
|
|
180
|
+
def from_map(self, m: dict = None):
|
|
181
|
+
m = m or dict()
|
|
182
|
+
if m.get('AddressIpVersion') is not None:
|
|
183
|
+
self.address_ip_version = m.get('AddressIpVersion')
|
|
184
|
+
|
|
185
|
+
if m.get('ClientToken') is not None:
|
|
186
|
+
self.client_token = m.get('ClientToken')
|
|
187
|
+
|
|
188
|
+
if m.get('CrossRegionBandwidth') is not None:
|
|
189
|
+
self.cross_region_bandwidth = m.get('CrossRegionBandwidth')
|
|
190
|
+
|
|
191
|
+
if m.get('DryRun') is not None:
|
|
192
|
+
self.dry_run = m.get('DryRun')
|
|
193
|
+
|
|
194
|
+
if m.get('EndpointDescription') is not None:
|
|
195
|
+
self.endpoint_description = m.get('EndpointDescription')
|
|
196
|
+
|
|
197
|
+
if m.get('EndpointName') is not None:
|
|
198
|
+
self.endpoint_name = m.get('EndpointName')
|
|
199
|
+
|
|
200
|
+
if m.get('EndpointType') is not None:
|
|
201
|
+
self.endpoint_type = m.get('EndpointType')
|
|
202
|
+
|
|
203
|
+
if m.get('PolicyDocument') is not None:
|
|
204
|
+
self.policy_document = m.get('PolicyDocument')
|
|
205
|
+
|
|
206
|
+
if m.get('ProtectedEnabled') is not None:
|
|
207
|
+
self.protected_enabled = m.get('ProtectedEnabled')
|
|
208
|
+
|
|
209
|
+
if m.get('RegionId') is not None:
|
|
210
|
+
self.region_id = m.get('RegionId')
|
|
211
|
+
|
|
212
|
+
if m.get('ResourceGroupId') is not None:
|
|
213
|
+
self.resource_group_id = m.get('ResourceGroupId')
|
|
214
|
+
|
|
215
|
+
if m.get('SecurityGroupId') is not None:
|
|
216
|
+
self.security_group_id = m.get('SecurityGroupId')
|
|
217
|
+
|
|
218
|
+
if m.get('ServiceId') is not None:
|
|
219
|
+
self.service_id = m.get('ServiceId')
|
|
220
|
+
|
|
221
|
+
if m.get('ServiceName') is not None:
|
|
222
|
+
self.service_name = m.get('ServiceName')
|
|
223
|
+
|
|
224
|
+
if m.get('ServiceRegionId') is not None:
|
|
225
|
+
self.service_region_id = m.get('ServiceRegionId')
|
|
226
|
+
|
|
227
|
+
self.tag = []
|
|
228
|
+
if m.get('Tag') is not None:
|
|
229
|
+
for k1 in m.get('Tag'):
|
|
230
|
+
temp_model = main_models.CreateVpcEndpointRequestTag()
|
|
231
|
+
self.tag.append(temp_model.from_map(k1))
|
|
232
|
+
|
|
233
|
+
if m.get('VpcId') is not None:
|
|
234
|
+
self.vpc_id = m.get('VpcId')
|
|
235
|
+
|
|
236
|
+
self.zone = []
|
|
237
|
+
if m.get('Zone') is not None:
|
|
238
|
+
for k1 in m.get('Zone'):
|
|
239
|
+
temp_model = main_models.CreateVpcEndpointRequestZone()
|
|
240
|
+
self.zone.append(temp_model.from_map(k1))
|
|
241
|
+
|
|
242
|
+
if m.get('ZoneAffinityEnabled') is not None:
|
|
243
|
+
self.zone_affinity_enabled = m.get('ZoneAffinityEnabled')
|
|
244
|
+
|
|
245
|
+
if m.get('ZonePrivateIpAddressCount') is not None:
|
|
246
|
+
self.zone_private_ip_address_count = m.get('ZonePrivateIpAddressCount')
|
|
247
|
+
|
|
248
|
+
return self
|
|
249
|
+
|
|
250
|
+
class CreateVpcEndpointRequestZone(DaraModel):
|
|
251
|
+
def __init__(
|
|
252
|
+
self,
|
|
253
|
+
ipv_6address: str = None,
|
|
254
|
+
v_switch_id: str = None,
|
|
255
|
+
zone_id: str = None,
|
|
256
|
+
ip: str = None,
|
|
257
|
+
):
|
|
258
|
+
# The IPv6 address of the zone where the endpoint is deployed.
|
|
259
|
+
#
|
|
260
|
+
# > You can specify this parameter only if AddressIpVersion is set to DualStack.
|
|
261
|
+
self.ipv_6address = ipv_6address
|
|
262
|
+
# The ID of the vSwitch for which you want to create the endpoint elastic network interface (ENI) in the zone. You can specify up to 10 vSwitches.
|
|
263
|
+
self.v_switch_id = v_switch_id
|
|
264
|
+
# The ID of the zone where the endpoint service is deployed.
|
|
265
|
+
#
|
|
266
|
+
# You can specify up to 10 zones.
|
|
267
|
+
self.zone_id = zone_id
|
|
268
|
+
# The IP address of the zone where the endpoint is deployed.
|
|
269
|
+
self.ip = ip
|
|
270
|
+
|
|
271
|
+
def validate(self):
|
|
272
|
+
pass
|
|
273
|
+
|
|
274
|
+
def to_map(self):
|
|
275
|
+
result = dict()
|
|
276
|
+
_map = super().to_map()
|
|
277
|
+
if _map is not None:
|
|
278
|
+
result = _map
|
|
279
|
+
if self.ipv_6address is not None:
|
|
280
|
+
result['Ipv6Address'] = self.ipv_6address
|
|
281
|
+
|
|
282
|
+
if self.v_switch_id is not None:
|
|
283
|
+
result['VSwitchId'] = self.v_switch_id
|
|
284
|
+
|
|
285
|
+
if self.zone_id is not None:
|
|
286
|
+
result['ZoneId'] = self.zone_id
|
|
287
|
+
|
|
288
|
+
if self.ip is not None:
|
|
289
|
+
result['ip'] = self.ip
|
|
290
|
+
|
|
291
|
+
return result
|
|
292
|
+
|
|
293
|
+
def from_map(self, m: dict = None):
|
|
294
|
+
m = m or dict()
|
|
295
|
+
if m.get('Ipv6Address') is not None:
|
|
296
|
+
self.ipv_6address = m.get('Ipv6Address')
|
|
297
|
+
|
|
298
|
+
if m.get('VSwitchId') is not None:
|
|
299
|
+
self.v_switch_id = m.get('VSwitchId')
|
|
300
|
+
|
|
301
|
+
if m.get('ZoneId') is not None:
|
|
302
|
+
self.zone_id = m.get('ZoneId')
|
|
303
|
+
|
|
304
|
+
if m.get('ip') is not None:
|
|
305
|
+
self.ip = m.get('ip')
|
|
306
|
+
|
|
307
|
+
return self
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
class CreateVpcEndpointRequestTag(DaraModel):
|
|
312
|
+
def __init__(
|
|
313
|
+
self,
|
|
314
|
+
key: str = None,
|
|
315
|
+
value: str = None,
|
|
316
|
+
):
|
|
317
|
+
# The key of the tag to add to the resource.
|
|
318
|
+
self.key = key
|
|
319
|
+
# The value of the tag to add to the resource.
|
|
320
|
+
self.value = value
|
|
321
|
+
|
|
322
|
+
def validate(self):
|
|
323
|
+
pass
|
|
324
|
+
|
|
325
|
+
def to_map(self):
|
|
326
|
+
result = dict()
|
|
327
|
+
_map = super().to_map()
|
|
328
|
+
if _map is not None:
|
|
329
|
+
result = _map
|
|
330
|
+
if self.key is not None:
|
|
331
|
+
result['Key'] = self.key
|
|
332
|
+
|
|
333
|
+
if self.value is not None:
|
|
334
|
+
result['Value'] = self.value
|
|
335
|
+
|
|
336
|
+
return result
|
|
337
|
+
|
|
338
|
+
def from_map(self, m: dict = None):
|
|
339
|
+
m = m or dict()
|
|
340
|
+
if m.get('Key') is not None:
|
|
341
|
+
self.key = m.get('Key')
|
|
342
|
+
|
|
343
|
+
if m.get('Value') is not None:
|
|
344
|
+
self.value = m.get('Value')
|
|
345
|
+
|
|
346
|
+
return self
|
|
347
|
+
|
|
@@ -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 CreateVpcEndpointResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.CreateVpcEndpointResponseBody = 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.CreateVpcEndpointResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
@@ -0,0 +1,193 @@
|
|
|
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 CreateVpcEndpointResponseBody(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
address_ip_version: str = None,
|
|
11
|
+
bandwidth: int = None,
|
|
12
|
+
connection_status: str = None,
|
|
13
|
+
create_time: str = None,
|
|
14
|
+
cross_region_bandwidth: int = None,
|
|
15
|
+
endpoint_business_status: str = None,
|
|
16
|
+
endpoint_description: str = None,
|
|
17
|
+
endpoint_domain: str = None,
|
|
18
|
+
endpoint_id: str = None,
|
|
19
|
+
endpoint_name: str = None,
|
|
20
|
+
endpoint_status: str = None,
|
|
21
|
+
request_id: str = None,
|
|
22
|
+
service_id: str = None,
|
|
23
|
+
service_name: str = None,
|
|
24
|
+
service_region_id: str = None,
|
|
25
|
+
vpc_id: str = None,
|
|
26
|
+
zone_affinity_enabled: bool = None,
|
|
27
|
+
):
|
|
28
|
+
# The protocol. Valid values:
|
|
29
|
+
#
|
|
30
|
+
# * **IPv4** (default)
|
|
31
|
+
# * **DualStack**
|
|
32
|
+
self.address_ip_version = address_ip_version
|
|
33
|
+
# The bandwidth of the endpoint connection. Unit: Mbit/s.
|
|
34
|
+
self.bandwidth = bandwidth
|
|
35
|
+
# The state of the endpoint connection. Valid values:
|
|
36
|
+
#
|
|
37
|
+
# * **Pending**: The connection is being modified.
|
|
38
|
+
# * **Connecting**: The connection is being established.
|
|
39
|
+
# * **Connected**: The connection is established.
|
|
40
|
+
# * **Disconnecting**: The endpoint is being disconnected from the endpoint service.
|
|
41
|
+
# * **Disconnected**: The endpoint is disconnected from the endpoint service.
|
|
42
|
+
# * **Deleting**: The connection is being deleted.
|
|
43
|
+
self.connection_status = connection_status
|
|
44
|
+
# The time when the endpoint was created.
|
|
45
|
+
self.create_time = create_time
|
|
46
|
+
self.cross_region_bandwidth = cross_region_bandwidth
|
|
47
|
+
# The service state of the endpoint. Valid values:
|
|
48
|
+
#
|
|
49
|
+
# * **Normal**: The endpoint runs as expected.
|
|
50
|
+
# * **FinancialLocked**: The endpoint is locked due to overdue payments.
|
|
51
|
+
self.endpoint_business_status = endpoint_business_status
|
|
52
|
+
# The description of the endpoint.
|
|
53
|
+
self.endpoint_description = endpoint_description
|
|
54
|
+
# The domain name of the endpoint.
|
|
55
|
+
self.endpoint_domain = endpoint_domain
|
|
56
|
+
# The endpoint ID.
|
|
57
|
+
self.endpoint_id = endpoint_id
|
|
58
|
+
# The name of the endpoint.
|
|
59
|
+
self.endpoint_name = endpoint_name
|
|
60
|
+
# The state of the endpoint. Valid values:
|
|
61
|
+
#
|
|
62
|
+
# * **Creating**: The endpoint is being created.
|
|
63
|
+
# * **Active**: The endpoint is available.
|
|
64
|
+
# * **Pending**: The endpoint is being modified.
|
|
65
|
+
# * **Deleting**: The endpoint is being deleted.
|
|
66
|
+
self.endpoint_status = endpoint_status
|
|
67
|
+
# The request ID.
|
|
68
|
+
self.request_id = request_id
|
|
69
|
+
# The ID of the endpoint service with which the endpoint is associated.
|
|
70
|
+
self.service_id = service_id
|
|
71
|
+
# The name of the endpoint service with which the endpoint is associated.
|
|
72
|
+
self.service_name = service_name
|
|
73
|
+
self.service_region_id = service_region_id
|
|
74
|
+
# The ID of the VPC to which the endpoint belongs.
|
|
75
|
+
self.vpc_id = vpc_id
|
|
76
|
+
self.zone_affinity_enabled = zone_affinity_enabled
|
|
77
|
+
|
|
78
|
+
def validate(self):
|
|
79
|
+
pass
|
|
80
|
+
|
|
81
|
+
def to_map(self):
|
|
82
|
+
result = dict()
|
|
83
|
+
_map = super().to_map()
|
|
84
|
+
if _map is not None:
|
|
85
|
+
result = _map
|
|
86
|
+
if self.address_ip_version is not None:
|
|
87
|
+
result['AddressIpVersion'] = self.address_ip_version
|
|
88
|
+
|
|
89
|
+
if self.bandwidth is not None:
|
|
90
|
+
result['Bandwidth'] = self.bandwidth
|
|
91
|
+
|
|
92
|
+
if self.connection_status is not None:
|
|
93
|
+
result['ConnectionStatus'] = self.connection_status
|
|
94
|
+
|
|
95
|
+
if self.create_time is not None:
|
|
96
|
+
result['CreateTime'] = self.create_time
|
|
97
|
+
|
|
98
|
+
if self.cross_region_bandwidth is not None:
|
|
99
|
+
result['CrossRegionBandwidth'] = self.cross_region_bandwidth
|
|
100
|
+
|
|
101
|
+
if self.endpoint_business_status is not None:
|
|
102
|
+
result['EndpointBusinessStatus'] = self.endpoint_business_status
|
|
103
|
+
|
|
104
|
+
if self.endpoint_description is not None:
|
|
105
|
+
result['EndpointDescription'] = self.endpoint_description
|
|
106
|
+
|
|
107
|
+
if self.endpoint_domain is not None:
|
|
108
|
+
result['EndpointDomain'] = self.endpoint_domain
|
|
109
|
+
|
|
110
|
+
if self.endpoint_id is not None:
|
|
111
|
+
result['EndpointId'] = self.endpoint_id
|
|
112
|
+
|
|
113
|
+
if self.endpoint_name is not None:
|
|
114
|
+
result['EndpointName'] = self.endpoint_name
|
|
115
|
+
|
|
116
|
+
if self.endpoint_status is not None:
|
|
117
|
+
result['EndpointStatus'] = self.endpoint_status
|
|
118
|
+
|
|
119
|
+
if self.request_id is not None:
|
|
120
|
+
result['RequestId'] = self.request_id
|
|
121
|
+
|
|
122
|
+
if self.service_id is not None:
|
|
123
|
+
result['ServiceId'] = self.service_id
|
|
124
|
+
|
|
125
|
+
if self.service_name is not None:
|
|
126
|
+
result['ServiceName'] = self.service_name
|
|
127
|
+
|
|
128
|
+
if self.service_region_id is not None:
|
|
129
|
+
result['ServiceRegionId'] = self.service_region_id
|
|
130
|
+
|
|
131
|
+
if self.vpc_id is not None:
|
|
132
|
+
result['VpcId'] = self.vpc_id
|
|
133
|
+
|
|
134
|
+
if self.zone_affinity_enabled is not None:
|
|
135
|
+
result['ZoneAffinityEnabled'] = self.zone_affinity_enabled
|
|
136
|
+
|
|
137
|
+
return result
|
|
138
|
+
|
|
139
|
+
def from_map(self, m: dict = None):
|
|
140
|
+
m = m or dict()
|
|
141
|
+
if m.get('AddressIpVersion') is not None:
|
|
142
|
+
self.address_ip_version = m.get('AddressIpVersion')
|
|
143
|
+
|
|
144
|
+
if m.get('Bandwidth') is not None:
|
|
145
|
+
self.bandwidth = m.get('Bandwidth')
|
|
146
|
+
|
|
147
|
+
if m.get('ConnectionStatus') is not None:
|
|
148
|
+
self.connection_status = m.get('ConnectionStatus')
|
|
149
|
+
|
|
150
|
+
if m.get('CreateTime') is not None:
|
|
151
|
+
self.create_time = m.get('CreateTime')
|
|
152
|
+
|
|
153
|
+
if m.get('CrossRegionBandwidth') is not None:
|
|
154
|
+
self.cross_region_bandwidth = m.get('CrossRegionBandwidth')
|
|
155
|
+
|
|
156
|
+
if m.get('EndpointBusinessStatus') is not None:
|
|
157
|
+
self.endpoint_business_status = m.get('EndpointBusinessStatus')
|
|
158
|
+
|
|
159
|
+
if m.get('EndpointDescription') is not None:
|
|
160
|
+
self.endpoint_description = m.get('EndpointDescription')
|
|
161
|
+
|
|
162
|
+
if m.get('EndpointDomain') is not None:
|
|
163
|
+
self.endpoint_domain = m.get('EndpointDomain')
|
|
164
|
+
|
|
165
|
+
if m.get('EndpointId') is not None:
|
|
166
|
+
self.endpoint_id = m.get('EndpointId')
|
|
167
|
+
|
|
168
|
+
if m.get('EndpointName') is not None:
|
|
169
|
+
self.endpoint_name = m.get('EndpointName')
|
|
170
|
+
|
|
171
|
+
if m.get('EndpointStatus') is not None:
|
|
172
|
+
self.endpoint_status = m.get('EndpointStatus')
|
|
173
|
+
|
|
174
|
+
if m.get('RequestId') is not None:
|
|
175
|
+
self.request_id = m.get('RequestId')
|
|
176
|
+
|
|
177
|
+
if m.get('ServiceId') is not None:
|
|
178
|
+
self.service_id = m.get('ServiceId')
|
|
179
|
+
|
|
180
|
+
if m.get('ServiceName') is not None:
|
|
181
|
+
self.service_name = m.get('ServiceName')
|
|
182
|
+
|
|
183
|
+
if m.get('ServiceRegionId') is not None:
|
|
184
|
+
self.service_region_id = m.get('ServiceRegionId')
|
|
185
|
+
|
|
186
|
+
if m.get('VpcId') is not None:
|
|
187
|
+
self.vpc_id = m.get('VpcId')
|
|
188
|
+
|
|
189
|
+
if m.get('ZoneAffinityEnabled') is not None:
|
|
190
|
+
self.zone_affinity_enabled = m.get('ZoneAffinityEnabled')
|
|
191
|
+
|
|
192
|
+
return self
|
|
193
|
+
|