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,143 @@
|
|
|
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 ListTagResourcesRequest(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
client_token: str = None,
|
|
14
|
+
next_token: str = None,
|
|
15
|
+
region_id: str = None,
|
|
16
|
+
resource_id: List[str] = None,
|
|
17
|
+
resource_type: str = None,
|
|
18
|
+
tag: List[main_models.ListTagResourcesRequestTag] = None,
|
|
19
|
+
):
|
|
20
|
+
# The client token that is used to ensure the idempotence of the request.
|
|
21
|
+
#
|
|
22
|
+
# 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.
|
|
23
|
+
self.client_token = client_token
|
|
24
|
+
# The pagination token that is used in the next request to retrieve a new page of results.
|
|
25
|
+
#
|
|
26
|
+
# * If this is your first request or no next requests are to be sent, you do not need to specify this parameter.
|
|
27
|
+
# * If a next request is to be sent, you must specify the token that is obtained from the previous request as the value of **NextToken**.
|
|
28
|
+
self.next_token = next_token
|
|
29
|
+
# The ID of the region where the resource resides. 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 resource IDs. You can specify up to 50 resource IDs.
|
|
34
|
+
self.resource_id = resource_id
|
|
35
|
+
# The type of the resource. Valid values:
|
|
36
|
+
#
|
|
37
|
+
# * **vpcendpoint**: endpoint
|
|
38
|
+
# * **vpcendpointservice**: endpoint service
|
|
39
|
+
#
|
|
40
|
+
# This parameter is required.
|
|
41
|
+
self.resource_type = resource_type
|
|
42
|
+
# The tags to add to the resource.
|
|
43
|
+
self.tag = tag
|
|
44
|
+
|
|
45
|
+
def validate(self):
|
|
46
|
+
if self.tag:
|
|
47
|
+
for v1 in self.tag:
|
|
48
|
+
if v1:
|
|
49
|
+
v1.validate()
|
|
50
|
+
|
|
51
|
+
def to_map(self):
|
|
52
|
+
result = dict()
|
|
53
|
+
_map = super().to_map()
|
|
54
|
+
if _map is not None:
|
|
55
|
+
result = _map
|
|
56
|
+
if self.client_token is not None:
|
|
57
|
+
result['ClientToken'] = self.client_token
|
|
58
|
+
|
|
59
|
+
if self.next_token is not None:
|
|
60
|
+
result['NextToken'] = self.next_token
|
|
61
|
+
|
|
62
|
+
if self.region_id is not None:
|
|
63
|
+
result['RegionId'] = self.region_id
|
|
64
|
+
|
|
65
|
+
if self.resource_id is not None:
|
|
66
|
+
result['ResourceId'] = self.resource_id
|
|
67
|
+
|
|
68
|
+
if self.resource_type is not None:
|
|
69
|
+
result['ResourceType'] = self.resource_type
|
|
70
|
+
|
|
71
|
+
result['Tag'] = []
|
|
72
|
+
if self.tag is not None:
|
|
73
|
+
for k1 in self.tag:
|
|
74
|
+
result['Tag'].append(k1.to_map() if k1 else None)
|
|
75
|
+
|
|
76
|
+
return result
|
|
77
|
+
|
|
78
|
+
def from_map(self, m: dict = None):
|
|
79
|
+
m = m or dict()
|
|
80
|
+
if m.get('ClientToken') is not None:
|
|
81
|
+
self.client_token = m.get('ClientToken')
|
|
82
|
+
|
|
83
|
+
if m.get('NextToken') is not None:
|
|
84
|
+
self.next_token = m.get('NextToken')
|
|
85
|
+
|
|
86
|
+
if m.get('RegionId') is not None:
|
|
87
|
+
self.region_id = m.get('RegionId')
|
|
88
|
+
|
|
89
|
+
if m.get('ResourceId') is not None:
|
|
90
|
+
self.resource_id = m.get('ResourceId')
|
|
91
|
+
|
|
92
|
+
if m.get('ResourceType') is not None:
|
|
93
|
+
self.resource_type = m.get('ResourceType')
|
|
94
|
+
|
|
95
|
+
self.tag = []
|
|
96
|
+
if m.get('Tag') is not None:
|
|
97
|
+
for k1 in m.get('Tag'):
|
|
98
|
+
temp_model = main_models.ListTagResourcesRequestTag()
|
|
99
|
+
self.tag.append(temp_model.from_map(k1))
|
|
100
|
+
|
|
101
|
+
return self
|
|
102
|
+
|
|
103
|
+
class ListTagResourcesRequestTag(DaraModel):
|
|
104
|
+
def __init__(
|
|
105
|
+
self,
|
|
106
|
+
key: str = None,
|
|
107
|
+
value: str = None,
|
|
108
|
+
):
|
|
109
|
+
# The key of tag N to add to the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.
|
|
110
|
+
#
|
|
111
|
+
# The tag key can be up to 64 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The tag key must start with a letter but cannot start with `aliyun` or `acs:`. The tag key cannot contain `http://` or `https://`.
|
|
112
|
+
self.key = key
|
|
113
|
+
# The value of tag N to add to the resource. You can specify up to 20 tag values. The tag value can be an empty string.
|
|
114
|
+
#
|
|
115
|
+
# The tag value can be up to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The tag value must start with a letter but cannot start with `aliyun` or `acs:`. The tag value cannot contain `http://` or `https://`.
|
|
116
|
+
self.value = value
|
|
117
|
+
|
|
118
|
+
def validate(self):
|
|
119
|
+
pass
|
|
120
|
+
|
|
121
|
+
def to_map(self):
|
|
122
|
+
result = dict()
|
|
123
|
+
_map = super().to_map()
|
|
124
|
+
if _map is not None:
|
|
125
|
+
result = _map
|
|
126
|
+
if self.key is not None:
|
|
127
|
+
result['Key'] = self.key
|
|
128
|
+
|
|
129
|
+
if self.value is not None:
|
|
130
|
+
result['Value'] = self.value
|
|
131
|
+
|
|
132
|
+
return result
|
|
133
|
+
|
|
134
|
+
def from_map(self, m: dict = None):
|
|
135
|
+
m = m or dict()
|
|
136
|
+
if m.get('Key') is not None:
|
|
137
|
+
self.key = m.get('Key')
|
|
138
|
+
|
|
139
|
+
if m.get('Value') is not None:
|
|
140
|
+
self.value = m.get('Value')
|
|
141
|
+
|
|
142
|
+
return self
|
|
143
|
+
|
|
@@ -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 ListTagResourcesResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.ListTagResourcesResponseBody = 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.ListTagResourcesResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
from alibabacloud_privatelink20200415 import models as main_models
|
|
8
|
+
from darabonba.model import DaraModel
|
|
9
|
+
|
|
10
|
+
class ListTagResourcesResponseBody(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
next_token: str = None,
|
|
14
|
+
request_id: str = None,
|
|
15
|
+
tag_resources: List[main_models.ListTagResourcesResponseBodyTagResources] = None,
|
|
16
|
+
):
|
|
17
|
+
# The pagination token that is used in the next request to retrieve a new page of results. Valid values:
|
|
18
|
+
#
|
|
19
|
+
# * If this is your first request and no next requests are to be performed, you do not need to specify this parameter.
|
|
20
|
+
# * If a next request is to be performed, set the parameter to the value of NextToken that is returned from the last call.
|
|
21
|
+
self.next_token = next_token
|
|
22
|
+
# The request ID.
|
|
23
|
+
self.request_id = request_id
|
|
24
|
+
# The resources to which the tags are added.
|
|
25
|
+
self.tag_resources = tag_resources
|
|
26
|
+
|
|
27
|
+
def validate(self):
|
|
28
|
+
if self.tag_resources:
|
|
29
|
+
for v1 in self.tag_resources:
|
|
30
|
+
if v1:
|
|
31
|
+
v1.validate()
|
|
32
|
+
|
|
33
|
+
def to_map(self):
|
|
34
|
+
result = dict()
|
|
35
|
+
_map = super().to_map()
|
|
36
|
+
if _map is not None:
|
|
37
|
+
result = _map
|
|
38
|
+
if self.next_token is not None:
|
|
39
|
+
result['NextToken'] = self.next_token
|
|
40
|
+
|
|
41
|
+
if self.request_id is not None:
|
|
42
|
+
result['RequestId'] = self.request_id
|
|
43
|
+
|
|
44
|
+
result['TagResources'] = []
|
|
45
|
+
if self.tag_resources is not None:
|
|
46
|
+
for k1 in self.tag_resources:
|
|
47
|
+
result['TagResources'].append(k1.to_map() if k1 else None)
|
|
48
|
+
|
|
49
|
+
return result
|
|
50
|
+
|
|
51
|
+
def from_map(self, m: dict = None):
|
|
52
|
+
m = m or dict()
|
|
53
|
+
if m.get('NextToken') is not None:
|
|
54
|
+
self.next_token = m.get('NextToken')
|
|
55
|
+
|
|
56
|
+
if m.get('RequestId') is not None:
|
|
57
|
+
self.request_id = m.get('RequestId')
|
|
58
|
+
|
|
59
|
+
self.tag_resources = []
|
|
60
|
+
if m.get('TagResources') is not None:
|
|
61
|
+
for k1 in m.get('TagResources'):
|
|
62
|
+
temp_model = main_models.ListTagResourcesResponseBodyTagResources()
|
|
63
|
+
self.tag_resources.append(temp_model.from_map(k1))
|
|
64
|
+
|
|
65
|
+
return self
|
|
66
|
+
|
|
67
|
+
class ListTagResourcesResponseBodyTagResources(DaraModel):
|
|
68
|
+
def __init__(
|
|
69
|
+
self,
|
|
70
|
+
resource_id: str = None,
|
|
71
|
+
resource_type: str = None,
|
|
72
|
+
tag_key: str = None,
|
|
73
|
+
tag_value: str = None,
|
|
74
|
+
):
|
|
75
|
+
# The resource ID.
|
|
76
|
+
self.resource_id = resource_id
|
|
77
|
+
# The type of the resource. Valid values:
|
|
78
|
+
#
|
|
79
|
+
# * **vpcendpoint**: endpoint
|
|
80
|
+
# * **vpcendpointservice**: endpoint service
|
|
81
|
+
self.resource_type = resource_type
|
|
82
|
+
# The key of tag N added to the resource.
|
|
83
|
+
self.tag_key = tag_key
|
|
84
|
+
# The value of tag N added to the resource.
|
|
85
|
+
self.tag_value = tag_value
|
|
86
|
+
|
|
87
|
+
def validate(self):
|
|
88
|
+
pass
|
|
89
|
+
|
|
90
|
+
def to_map(self):
|
|
91
|
+
result = dict()
|
|
92
|
+
_map = super().to_map()
|
|
93
|
+
if _map is not None:
|
|
94
|
+
result = _map
|
|
95
|
+
if self.resource_id is not None:
|
|
96
|
+
result['ResourceId'] = self.resource_id
|
|
97
|
+
|
|
98
|
+
if self.resource_type is not None:
|
|
99
|
+
result['ResourceType'] = self.resource_type
|
|
100
|
+
|
|
101
|
+
if self.tag_key is not None:
|
|
102
|
+
result['TagKey'] = self.tag_key
|
|
103
|
+
|
|
104
|
+
if self.tag_value is not None:
|
|
105
|
+
result['TagValue'] = self.tag_value
|
|
106
|
+
|
|
107
|
+
return result
|
|
108
|
+
|
|
109
|
+
def from_map(self, m: dict = None):
|
|
110
|
+
m = m or dict()
|
|
111
|
+
if m.get('ResourceId') is not None:
|
|
112
|
+
self.resource_id = m.get('ResourceId')
|
|
113
|
+
|
|
114
|
+
if m.get('ResourceType') is not None:
|
|
115
|
+
self.resource_type = m.get('ResourceType')
|
|
116
|
+
|
|
117
|
+
if m.get('TagKey') is not None:
|
|
118
|
+
self.tag_key = m.get('TagKey')
|
|
119
|
+
|
|
120
|
+
if m.get('TagValue') is not None:
|
|
121
|
+
self.tag_value = m.get('TagValue')
|
|
122
|
+
|
|
123
|
+
return self
|
|
124
|
+
|
|
@@ -0,0 +1,139 @@
|
|
|
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 ListVpcEndpointConnectionsRequest(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
connection_status: str = None,
|
|
11
|
+
endpoint_id: str = None,
|
|
12
|
+
endpoint_owner_id: int = None,
|
|
13
|
+
eni_id: str = None,
|
|
14
|
+
max_results: int = None,
|
|
15
|
+
next_token: str = None,
|
|
16
|
+
region_id: str = None,
|
|
17
|
+
replaced_resource_id: str = None,
|
|
18
|
+
resource_group_id: str = None,
|
|
19
|
+
resource_id: str = None,
|
|
20
|
+
service_id: str = None,
|
|
21
|
+
):
|
|
22
|
+
# The state of the endpoint connection. Valid values:
|
|
23
|
+
#
|
|
24
|
+
# * **Pending**: The endpoint connection is being modified.
|
|
25
|
+
# * **Connecting**: The endpoint connection is being established.
|
|
26
|
+
# * **Connected**: The endpoint connection is established.
|
|
27
|
+
# * **Disconnecting**: The endpoint is being disconnected from the endpoint service.
|
|
28
|
+
# * **Disconnected**: The endpoint is disconnected from the endpoint service.
|
|
29
|
+
# * **Deleting**: The connection is being deleted.
|
|
30
|
+
# * **ServiceDeleted**: The corresponding endpoint service has been deleted.
|
|
31
|
+
self.connection_status = connection_status
|
|
32
|
+
# The endpoint ID.
|
|
33
|
+
self.endpoint_id = endpoint_id
|
|
34
|
+
# The ID of the Alibaba Cloud account to which the endpoint belongs.
|
|
35
|
+
self.endpoint_owner_id = endpoint_owner_id
|
|
36
|
+
# The ID of the endpoint elastic network interface (ENI).
|
|
37
|
+
self.eni_id = eni_id
|
|
38
|
+
# The number of entries to return on each page. Valid values: **1** to **50**. Default value: **50**.
|
|
39
|
+
self.max_results = max_results
|
|
40
|
+
# The pagination token that is used in the next request to retrieve a new page of results. Valid values:
|
|
41
|
+
#
|
|
42
|
+
# * If this is your first request and no next requests are to be performed, you do not need to specify this parameter.
|
|
43
|
+
# * If a next request is to be performed, set the value to the value of **NextToken** that is returned from the last call.
|
|
44
|
+
self.next_token = next_token
|
|
45
|
+
# The region ID of the endpoint connection.
|
|
46
|
+
#
|
|
47
|
+
# You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
|
|
48
|
+
#
|
|
49
|
+
# This parameter is required.
|
|
50
|
+
self.region_id = region_id
|
|
51
|
+
# The ID of the replaced service resource in smooth migration scenarios.
|
|
52
|
+
self.replaced_resource_id = replaced_resource_id
|
|
53
|
+
# The ID of the resource group to which the endpoint belongs.
|
|
54
|
+
self.resource_group_id = resource_group_id
|
|
55
|
+
# The service resource ID.
|
|
56
|
+
self.resource_id = resource_id
|
|
57
|
+
# The endpoint service ID.
|
|
58
|
+
self.service_id = service_id
|
|
59
|
+
|
|
60
|
+
def validate(self):
|
|
61
|
+
pass
|
|
62
|
+
|
|
63
|
+
def to_map(self):
|
|
64
|
+
result = dict()
|
|
65
|
+
_map = super().to_map()
|
|
66
|
+
if _map is not None:
|
|
67
|
+
result = _map
|
|
68
|
+
if self.connection_status is not None:
|
|
69
|
+
result['ConnectionStatus'] = self.connection_status
|
|
70
|
+
|
|
71
|
+
if self.endpoint_id is not None:
|
|
72
|
+
result['EndpointId'] = self.endpoint_id
|
|
73
|
+
|
|
74
|
+
if self.endpoint_owner_id is not None:
|
|
75
|
+
result['EndpointOwnerId'] = self.endpoint_owner_id
|
|
76
|
+
|
|
77
|
+
if self.eni_id is not None:
|
|
78
|
+
result['EniId'] = self.eni_id
|
|
79
|
+
|
|
80
|
+
if self.max_results is not None:
|
|
81
|
+
result['MaxResults'] = self.max_results
|
|
82
|
+
|
|
83
|
+
if self.next_token is not None:
|
|
84
|
+
result['NextToken'] = self.next_token
|
|
85
|
+
|
|
86
|
+
if self.region_id is not None:
|
|
87
|
+
result['RegionId'] = self.region_id
|
|
88
|
+
|
|
89
|
+
if self.replaced_resource_id is not None:
|
|
90
|
+
result['ReplacedResourceId'] = self.replaced_resource_id
|
|
91
|
+
|
|
92
|
+
if self.resource_group_id is not None:
|
|
93
|
+
result['ResourceGroupId'] = self.resource_group_id
|
|
94
|
+
|
|
95
|
+
if self.resource_id is not None:
|
|
96
|
+
result['ResourceId'] = self.resource_id
|
|
97
|
+
|
|
98
|
+
if self.service_id is not None:
|
|
99
|
+
result['ServiceId'] = self.service_id
|
|
100
|
+
|
|
101
|
+
return result
|
|
102
|
+
|
|
103
|
+
def from_map(self, m: dict = None):
|
|
104
|
+
m = m or dict()
|
|
105
|
+
if m.get('ConnectionStatus') is not None:
|
|
106
|
+
self.connection_status = m.get('ConnectionStatus')
|
|
107
|
+
|
|
108
|
+
if m.get('EndpointId') is not None:
|
|
109
|
+
self.endpoint_id = m.get('EndpointId')
|
|
110
|
+
|
|
111
|
+
if m.get('EndpointOwnerId') is not None:
|
|
112
|
+
self.endpoint_owner_id = m.get('EndpointOwnerId')
|
|
113
|
+
|
|
114
|
+
if m.get('EniId') is not None:
|
|
115
|
+
self.eni_id = m.get('EniId')
|
|
116
|
+
|
|
117
|
+
if m.get('MaxResults') is not None:
|
|
118
|
+
self.max_results = m.get('MaxResults')
|
|
119
|
+
|
|
120
|
+
if m.get('NextToken') is not None:
|
|
121
|
+
self.next_token = m.get('NextToken')
|
|
122
|
+
|
|
123
|
+
if m.get('RegionId') is not None:
|
|
124
|
+
self.region_id = m.get('RegionId')
|
|
125
|
+
|
|
126
|
+
if m.get('ReplacedResourceId') is not None:
|
|
127
|
+
self.replaced_resource_id = m.get('ReplacedResourceId')
|
|
128
|
+
|
|
129
|
+
if m.get('ResourceGroupId') is not None:
|
|
130
|
+
self.resource_group_id = m.get('ResourceGroupId')
|
|
131
|
+
|
|
132
|
+
if m.get('ResourceId') is not None:
|
|
133
|
+
self.resource_id = m.get('ResourceId')
|
|
134
|
+
|
|
135
|
+
if m.get('ServiceId') is not None:
|
|
136
|
+
self.service_id = m.get('ServiceId')
|
|
137
|
+
|
|
138
|
+
return self
|
|
139
|
+
|
|
@@ -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 ListVpcEndpointConnectionsResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.ListVpcEndpointConnectionsResponseBody = 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.ListVpcEndpointConnectionsResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|