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,81 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
|
|
7
|
+
class RemoveZoneFromVpcEndpointRequest(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
|
+
zone_id: str = None,
|
|
15
|
+
):
|
|
16
|
+
# The client token that is used to ensure the idempotence of the request.
|
|
17
|
+
#
|
|
18
|
+
# You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
|
|
19
|
+
self.client_token = client_token
|
|
20
|
+
# Specifies whether to perform only a dry run, without performing the actual request. Valid values:
|
|
21
|
+
#
|
|
22
|
+
# * **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.
|
|
23
|
+
# * **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
|
|
24
|
+
self.dry_run = dry_run
|
|
25
|
+
# The ID of the endpoint for which you want to delete the zone.
|
|
26
|
+
#
|
|
27
|
+
# This parameter is required.
|
|
28
|
+
self.endpoint_id = endpoint_id
|
|
29
|
+
# The region ID of the endpoint for which you want to delete the zone. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
|
|
30
|
+
#
|
|
31
|
+
# This parameter is required.
|
|
32
|
+
self.region_id = region_id
|
|
33
|
+
# The ID of the zone that you want to delete.
|
|
34
|
+
#
|
|
35
|
+
# This parameter is required.
|
|
36
|
+
self.zone_id = zone_id
|
|
37
|
+
|
|
38
|
+
def validate(self):
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
def to_map(self):
|
|
42
|
+
result = dict()
|
|
43
|
+
_map = super().to_map()
|
|
44
|
+
if _map is not None:
|
|
45
|
+
result = _map
|
|
46
|
+
if self.client_token is not None:
|
|
47
|
+
result['ClientToken'] = self.client_token
|
|
48
|
+
|
|
49
|
+
if self.dry_run is not None:
|
|
50
|
+
result['DryRun'] = self.dry_run
|
|
51
|
+
|
|
52
|
+
if self.endpoint_id is not None:
|
|
53
|
+
result['EndpointId'] = self.endpoint_id
|
|
54
|
+
|
|
55
|
+
if self.region_id is not None:
|
|
56
|
+
result['RegionId'] = self.region_id
|
|
57
|
+
|
|
58
|
+
if self.zone_id is not None:
|
|
59
|
+
result['ZoneId'] = self.zone_id
|
|
60
|
+
|
|
61
|
+
return result
|
|
62
|
+
|
|
63
|
+
def from_map(self, m: dict = None):
|
|
64
|
+
m = m or dict()
|
|
65
|
+
if m.get('ClientToken') is not None:
|
|
66
|
+
self.client_token = m.get('ClientToken')
|
|
67
|
+
|
|
68
|
+
if m.get('DryRun') is not None:
|
|
69
|
+
self.dry_run = m.get('DryRun')
|
|
70
|
+
|
|
71
|
+
if m.get('EndpointId') is not None:
|
|
72
|
+
self.endpoint_id = m.get('EndpointId')
|
|
73
|
+
|
|
74
|
+
if m.get('RegionId') is not None:
|
|
75
|
+
self.region_id = m.get('RegionId')
|
|
76
|
+
|
|
77
|
+
if m.get('ZoneId') is not None:
|
|
78
|
+
self.zone_id = m.get('ZoneId')
|
|
79
|
+
|
|
80
|
+
return self
|
|
81
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict
|
|
6
|
+
|
|
7
|
+
from alibabacloud_privatelink20200415 import models as main_models
|
|
8
|
+
from darabonba.model import DaraModel
|
|
9
|
+
|
|
10
|
+
class RemoveZoneFromVpcEndpointResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.RemoveZoneFromVpcEndpointResponseBody = 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.RemoveZoneFromVpcEndpointResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
|
|
7
|
+
class RemoveZoneFromVpcEndpointResponseBody(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
request_id: str = None,
|
|
11
|
+
):
|
|
12
|
+
# The request ID.
|
|
13
|
+
self.request_id = request_id
|
|
14
|
+
|
|
15
|
+
def validate(self):
|
|
16
|
+
pass
|
|
17
|
+
|
|
18
|
+
def to_map(self):
|
|
19
|
+
result = dict()
|
|
20
|
+
_map = super().to_map()
|
|
21
|
+
if _map is not None:
|
|
22
|
+
result = _map
|
|
23
|
+
if self.request_id is not None:
|
|
24
|
+
result['RequestId'] = self.request_id
|
|
25
|
+
|
|
26
|
+
return result
|
|
27
|
+
|
|
28
|
+
def from_map(self, m: dict = None):
|
|
29
|
+
m = m or dict()
|
|
30
|
+
if m.get('RequestId') is not None:
|
|
31
|
+
self.request_id = m.get('RequestId')
|
|
32
|
+
|
|
33
|
+
return self
|
|
34
|
+
|
|
@@ -0,0 +1,155 @@
|
|
|
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 TagResourcesRequest(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
client_token: str = None,
|
|
14
|
+
dry_run: bool = None,
|
|
15
|
+
region_id: str = None,
|
|
16
|
+
resource_id: List[str] = None,
|
|
17
|
+
resource_type: str = None,
|
|
18
|
+
tag: List[main_models.TagResourcesRequestTag] = 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
|
+
#
|
|
24
|
+
# > If you do not specify this parameter, the system automatically uses the request ID as the client token.******** The request ID may be different for each request.
|
|
25
|
+
self.client_token = client_token
|
|
26
|
+
# Specifies whether to perform only a dry run, without performing the actual request. Valid values:
|
|
27
|
+
#
|
|
28
|
+
# * **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.
|
|
29
|
+
# * **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
|
|
30
|
+
self.dry_run = dry_run
|
|
31
|
+
# The region ID of the PrivateLink instance.
|
|
32
|
+
#
|
|
33
|
+
# You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
|
|
34
|
+
#
|
|
35
|
+
# This parameter is required.
|
|
36
|
+
self.region_id = region_id
|
|
37
|
+
# The resource IDs. Up to 50 resource IDs are supported.
|
|
38
|
+
#
|
|
39
|
+
# This parameter is required.
|
|
40
|
+
self.resource_id = resource_id
|
|
41
|
+
# The type of resource. Valid values:
|
|
42
|
+
#
|
|
43
|
+
# * **vpcendpoint**: endpoint
|
|
44
|
+
# * **vpcendpointservice**: endpoint service
|
|
45
|
+
#
|
|
46
|
+
# This parameter is required.
|
|
47
|
+
self.resource_type = resource_type
|
|
48
|
+
# The tags to add to the resources.
|
|
49
|
+
#
|
|
50
|
+
# This parameter is required.
|
|
51
|
+
self.tag = tag
|
|
52
|
+
|
|
53
|
+
def validate(self):
|
|
54
|
+
if self.tag:
|
|
55
|
+
for v1 in self.tag:
|
|
56
|
+
if v1:
|
|
57
|
+
v1.validate()
|
|
58
|
+
|
|
59
|
+
def to_map(self):
|
|
60
|
+
result = dict()
|
|
61
|
+
_map = super().to_map()
|
|
62
|
+
if _map is not None:
|
|
63
|
+
result = _map
|
|
64
|
+
if self.client_token is not None:
|
|
65
|
+
result['ClientToken'] = self.client_token
|
|
66
|
+
|
|
67
|
+
if self.dry_run is not None:
|
|
68
|
+
result['DryRun'] = self.dry_run
|
|
69
|
+
|
|
70
|
+
if self.region_id is not None:
|
|
71
|
+
result['RegionId'] = self.region_id
|
|
72
|
+
|
|
73
|
+
if self.resource_id is not None:
|
|
74
|
+
result['ResourceId'] = self.resource_id
|
|
75
|
+
|
|
76
|
+
if self.resource_type is not None:
|
|
77
|
+
result['ResourceType'] = self.resource_type
|
|
78
|
+
|
|
79
|
+
result['Tag'] = []
|
|
80
|
+
if self.tag is not None:
|
|
81
|
+
for k1 in self.tag:
|
|
82
|
+
result['Tag'].append(k1.to_map() if k1 else None)
|
|
83
|
+
|
|
84
|
+
return result
|
|
85
|
+
|
|
86
|
+
def from_map(self, m: dict = None):
|
|
87
|
+
m = m or dict()
|
|
88
|
+
if m.get('ClientToken') is not None:
|
|
89
|
+
self.client_token = m.get('ClientToken')
|
|
90
|
+
|
|
91
|
+
if m.get('DryRun') is not None:
|
|
92
|
+
self.dry_run = m.get('DryRun')
|
|
93
|
+
|
|
94
|
+
if m.get('RegionId') is not None:
|
|
95
|
+
self.region_id = m.get('RegionId')
|
|
96
|
+
|
|
97
|
+
if m.get('ResourceId') is not None:
|
|
98
|
+
self.resource_id = m.get('ResourceId')
|
|
99
|
+
|
|
100
|
+
if m.get('ResourceType') is not None:
|
|
101
|
+
self.resource_type = m.get('ResourceType')
|
|
102
|
+
|
|
103
|
+
self.tag = []
|
|
104
|
+
if m.get('Tag') is not None:
|
|
105
|
+
for k1 in m.get('Tag'):
|
|
106
|
+
temp_model = main_models.TagResourcesRequestTag()
|
|
107
|
+
self.tag.append(temp_model.from_map(k1))
|
|
108
|
+
|
|
109
|
+
return self
|
|
110
|
+
|
|
111
|
+
class TagResourcesRequestTag(DaraModel):
|
|
112
|
+
def __init__(
|
|
113
|
+
self,
|
|
114
|
+
key: str = None,
|
|
115
|
+
value: str = None,
|
|
116
|
+
):
|
|
117
|
+
# 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.
|
|
118
|
+
#
|
|
119
|
+
# 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:`.
|
|
120
|
+
#
|
|
121
|
+
# This parameter is required.
|
|
122
|
+
self.key = key
|
|
123
|
+
# 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.
|
|
124
|
+
#
|
|
125
|
+
# The tag value can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag value cannot start with `acs:` or `aliyun`.
|
|
126
|
+
#
|
|
127
|
+
# This parameter is required.
|
|
128
|
+
self.value = value
|
|
129
|
+
|
|
130
|
+
def validate(self):
|
|
131
|
+
pass
|
|
132
|
+
|
|
133
|
+
def to_map(self):
|
|
134
|
+
result = dict()
|
|
135
|
+
_map = super().to_map()
|
|
136
|
+
if _map is not None:
|
|
137
|
+
result = _map
|
|
138
|
+
if self.key is not None:
|
|
139
|
+
result['Key'] = self.key
|
|
140
|
+
|
|
141
|
+
if self.value is not None:
|
|
142
|
+
result['Value'] = self.value
|
|
143
|
+
|
|
144
|
+
return result
|
|
145
|
+
|
|
146
|
+
def from_map(self, m: dict = None):
|
|
147
|
+
m = m or dict()
|
|
148
|
+
if m.get('Key') is not None:
|
|
149
|
+
self.key = m.get('Key')
|
|
150
|
+
|
|
151
|
+
if m.get('Value') is not None:
|
|
152
|
+
self.value = m.get('Value')
|
|
153
|
+
|
|
154
|
+
return self
|
|
155
|
+
|
|
@@ -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 TagResourcesResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.TagResourcesResponseBody = 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.TagResourcesResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
|
|
7
|
+
class TagResourcesResponseBody(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
request_id: str = None,
|
|
11
|
+
):
|
|
12
|
+
# The request ID.
|
|
13
|
+
self.request_id = request_id
|
|
14
|
+
|
|
15
|
+
def validate(self):
|
|
16
|
+
pass
|
|
17
|
+
|
|
18
|
+
def to_map(self):
|
|
19
|
+
result = dict()
|
|
20
|
+
_map = super().to_map()
|
|
21
|
+
if _map is not None:
|
|
22
|
+
result = _map
|
|
23
|
+
if self.request_id is not None:
|
|
24
|
+
result['RequestId'] = self.request_id
|
|
25
|
+
|
|
26
|
+
return result
|
|
27
|
+
|
|
28
|
+
def from_map(self, m: dict = None):
|
|
29
|
+
m = m or dict()
|
|
30
|
+
if m.get('RequestId') is not None:
|
|
31
|
+
self.request_id = m.get('RequestId')
|
|
32
|
+
|
|
33
|
+
return self
|
|
34
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
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 darabonba.model import DaraModel
|
|
8
|
+
|
|
9
|
+
class UntagResourcesRequest(DaraModel):
|
|
10
|
+
def __init__(
|
|
11
|
+
self,
|
|
12
|
+
all: bool = None,
|
|
13
|
+
client_token: str = None,
|
|
14
|
+
dry_run: bool = None,
|
|
15
|
+
region_id: str = None,
|
|
16
|
+
resource_id: List[str] = None,
|
|
17
|
+
resource_type: str = None,
|
|
18
|
+
tag_key: List[str] = None,
|
|
19
|
+
):
|
|
20
|
+
# Specifies whether to remove all tags from the resource. Valid values:
|
|
21
|
+
#
|
|
22
|
+
# * **true**
|
|
23
|
+
# * **false**
|
|
24
|
+
#
|
|
25
|
+
# > If you specify both the All and TagKey.N parameters, the All parameter does not take effect.
|
|
26
|
+
self.all = all
|
|
27
|
+
# The client token that is used to ensure the idempotence of the request.
|
|
28
|
+
#
|
|
29
|
+
# 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.
|
|
30
|
+
#
|
|
31
|
+
# > If you do not specify this parameter, the system automatically uses the request ID as the client token.******** The request ID may be different for each request.
|
|
32
|
+
self.client_token = client_token
|
|
33
|
+
# Specifies whether to perform only a dry run, without performing the actual request. Valid values:
|
|
34
|
+
#
|
|
35
|
+
# * **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.
|
|
36
|
+
# * **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.
|
|
37
|
+
self.dry_run = dry_run
|
|
38
|
+
# The region ID of the PrivateLink instance.
|
|
39
|
+
#
|
|
40
|
+
# You can call the [DescribeRegions](https://help.aliyun.com/document_detail/120468.html) operation to query the most recent region list.
|
|
41
|
+
#
|
|
42
|
+
# This parameter is required.
|
|
43
|
+
self.region_id = region_id
|
|
44
|
+
# The resource IDs. You can specify up to 50 resource IDs.
|
|
45
|
+
#
|
|
46
|
+
# This parameter is required.
|
|
47
|
+
self.resource_id = resource_id
|
|
48
|
+
# The resource type. Valid values:
|
|
49
|
+
#
|
|
50
|
+
# * **vpcendpoint**: endpoint
|
|
51
|
+
# * **vpcendpointservice**: endpoint service
|
|
52
|
+
#
|
|
53
|
+
# This parameter is required.
|
|
54
|
+
self.resource_type = resource_type
|
|
55
|
+
# The keys of the tags that you want to remove from the resources. You can specify up to 20 tag keys.
|
|
56
|
+
self.tag_key = tag_key
|
|
57
|
+
|
|
58
|
+
def validate(self):
|
|
59
|
+
pass
|
|
60
|
+
|
|
61
|
+
def to_map(self):
|
|
62
|
+
result = dict()
|
|
63
|
+
_map = super().to_map()
|
|
64
|
+
if _map is not None:
|
|
65
|
+
result = _map
|
|
66
|
+
if self.all is not None:
|
|
67
|
+
result['All'] = self.all
|
|
68
|
+
|
|
69
|
+
if self.client_token is not None:
|
|
70
|
+
result['ClientToken'] = self.client_token
|
|
71
|
+
|
|
72
|
+
if self.dry_run is not None:
|
|
73
|
+
result['DryRun'] = self.dry_run
|
|
74
|
+
|
|
75
|
+
if self.region_id is not None:
|
|
76
|
+
result['RegionId'] = self.region_id
|
|
77
|
+
|
|
78
|
+
if self.resource_id is not None:
|
|
79
|
+
result['ResourceId'] = self.resource_id
|
|
80
|
+
|
|
81
|
+
if self.resource_type is not None:
|
|
82
|
+
result['ResourceType'] = self.resource_type
|
|
83
|
+
|
|
84
|
+
if self.tag_key is not None:
|
|
85
|
+
result['TagKey'] = self.tag_key
|
|
86
|
+
|
|
87
|
+
return result
|
|
88
|
+
|
|
89
|
+
def from_map(self, m: dict = None):
|
|
90
|
+
m = m or dict()
|
|
91
|
+
if m.get('All') is not None:
|
|
92
|
+
self.all = m.get('All')
|
|
93
|
+
|
|
94
|
+
if m.get('ClientToken') is not None:
|
|
95
|
+
self.client_token = m.get('ClientToken')
|
|
96
|
+
|
|
97
|
+
if m.get('DryRun') is not None:
|
|
98
|
+
self.dry_run = m.get('DryRun')
|
|
99
|
+
|
|
100
|
+
if m.get('RegionId') is not None:
|
|
101
|
+
self.region_id = m.get('RegionId')
|
|
102
|
+
|
|
103
|
+
if m.get('ResourceId') is not None:
|
|
104
|
+
self.resource_id = m.get('ResourceId')
|
|
105
|
+
|
|
106
|
+
if m.get('ResourceType') is not None:
|
|
107
|
+
self.resource_type = m.get('ResourceType')
|
|
108
|
+
|
|
109
|
+
if m.get('TagKey') is not None:
|
|
110
|
+
self.tag_key = m.get('TagKey')
|
|
111
|
+
|
|
112
|
+
return self
|
|
113
|
+
|
|
@@ -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 UntagResourcesResponse(DaraModel):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
headers: Dict[str, str] = None,
|
|
14
|
+
status_code: int = None,
|
|
15
|
+
body: main_models.UntagResourcesResponseBody = 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.UntagResourcesResponseBody()
|
|
51
|
+
self.body = temp_model.from_map(m.get('body'))
|
|
52
|
+
|
|
53
|
+
return self
|
|
54
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
|
|
7
|
+
class UntagResourcesResponseBody(DaraModel):
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
request_id: str = None,
|
|
11
|
+
):
|
|
12
|
+
# The ID of the request.
|
|
13
|
+
self.request_id = request_id
|
|
14
|
+
|
|
15
|
+
def validate(self):
|
|
16
|
+
pass
|
|
17
|
+
|
|
18
|
+
def to_map(self):
|
|
19
|
+
result = dict()
|
|
20
|
+
_map = super().to_map()
|
|
21
|
+
if _map is not None:
|
|
22
|
+
result = _map
|
|
23
|
+
if self.request_id is not None:
|
|
24
|
+
result['RequestId'] = self.request_id
|
|
25
|
+
|
|
26
|
+
return result
|
|
27
|
+
|
|
28
|
+
def from_map(self, m: dict = None):
|
|
29
|
+
m = m or dict()
|
|
30
|
+
if m.get('RequestId') is not None:
|
|
31
|
+
self.request_id = m.get('RequestId')
|
|
32
|
+
|
|
33
|
+
return self
|
|
34
|
+
|