huaweicloudsdkdns 3.1.145__py2.py3-none-any.whl → 3.1.146__py2.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.
- huaweicloudsdkdns/v2/__init__.py +82 -1
- huaweicloudsdkdns/v2/dns_async_client.py +2933 -1055
- huaweicloudsdkdns/v2/dns_client.py +2933 -1055
- huaweicloudsdkdns/v2/model/__init__.py +82 -1
- huaweicloudsdkdns/v2/model/alias_target.py +3 -3
- huaweicloudsdkdns/v2/model/associate_endpoint_ipaddress_request.py +139 -0
- huaweicloudsdkdns/v2/model/associate_endpoint_ipaddress_response.py +112 -0
- huaweicloudsdkdns/v2/model/associate_or_disassociate_router_with_rule_request_body.py +110 -0
- huaweicloudsdkdns/v2/model/associate_resolver_rule_router_request.py +139 -0
- huaweicloudsdkdns/v2/model/associate_resolver_rule_router_response.py +174 -0
- huaweicloudsdkdns/v2/model/associate_router_request.py +3 -3
- huaweicloudsdkdns/v2/model/batch_create_record_set_with_line.py +3 -3
- huaweicloudsdkdns/v2/model/batch_create_tag_request.py +3 -3
- huaweicloudsdkdns/v2/model/batch_delete_ptr_records_request.py +111 -0
- huaweicloudsdkdns/v2/model/batch_delete_ptr_records_request_body.py +115 -0
- huaweicloudsdkdns/v2/model/batch_delete_ptr_records_response.py +85 -0
- huaweicloudsdkdns/v2/model/batch_delete_record_set_with_line_request.py +3 -3
- huaweicloudsdkdns/v2/model/batch_delete_record_set_with_line_request_body.py +3 -3
- huaweicloudsdkdns/v2/model/batch_delete_record_set_with_line_response.py +3 -3
- huaweicloudsdkdns/v2/model/batch_delete_record_sets_request_body.py +6 -6
- huaweicloudsdkdns/v2/model/batch_delete_record_sets_response.py +3 -3
- huaweicloudsdkdns/v2/model/batch_delete_zones_request_body.py +6 -6
- huaweicloudsdkdns/v2/model/batch_delete_zones_response.py +3 -3
- huaweicloudsdkdns/v2/model/batch_set_record_sets_status_request_body.py +6 -6
- huaweicloudsdkdns/v2/model/batch_set_record_sets_status_response.py +3 -3
- huaweicloudsdkdns/v2/model/batch_set_zones_status_request_body.py +6 -6
- huaweicloudsdkdns/v2/model/batch_set_zones_status_response.py +3 -3
- huaweicloudsdkdns/v2/model/batch_update_record_set.py +9 -9
- huaweicloudsdkdns/v2/model/batch_update_record_set_with_line_request.py +3 -3
- huaweicloudsdkdns/v2/model/batch_update_record_set_with_line_request_body.py +3 -3
- huaweicloudsdkdns/v2/model/batch_update_record_set_with_line_response.py +3 -3
- huaweicloudsdkdns/v2/model/create_custom_line_response.py +6 -6
- huaweicloudsdkdns/v2/model/create_eip_record_set_response.py +12 -12
- huaweicloudsdkdns/v2/model/create_endpoint_request.py +111 -0
- huaweicloudsdkdns/v2/model/create_endpoint_request_body.py +198 -0
- huaweicloudsdkdns/v2/model/create_endpoint_response.py +112 -0
- huaweicloudsdkdns/v2/model/create_line_group_response.py +3 -3
- huaweicloudsdkdns/v2/model/create_line_groups_resp.py +3 -3
- huaweicloudsdkdns/v2/model/create_private_zone_req.py +9 -9
- huaweicloudsdkdns/v2/model/create_private_zone_response.py +39 -39
- huaweicloudsdkdns/v2/model/create_ptr_req.py +12 -12
- huaweicloudsdkdns/v2/model/create_ptr_request.py +111 -0
- huaweicloudsdkdns/v2/model/create_ptr_request_body.py +255 -0
- huaweicloudsdkdns/v2/model/create_ptr_response.py +311 -0
- huaweicloudsdkdns/v2/model/create_public_zone_req.py +15 -15
- huaweicloudsdkdns/v2/model/create_public_zone_response.py +39 -39
- huaweicloudsdkdns/v2/model/create_r_set_batch_lines_req.py +6 -6
- huaweicloudsdkdns/v2/model/create_record_set_request.py +3 -3
- huaweicloudsdkdns/v2/model/create_record_set_request_body.py +3 -3
- huaweicloudsdkdns/v2/model/create_record_set_response.py +27 -27
- huaweicloudsdkdns/v2/model/create_record_set_with_batch_lines_request.py +3 -3
- huaweicloudsdkdns/v2/model/create_record_set_with_batch_lines_response.py +3 -3
- huaweicloudsdkdns/v2/model/create_record_set_with_line_request.py +3 -3
- huaweicloudsdkdns/v2/model/create_record_set_with_line_request_body.py +12 -12
- huaweicloudsdkdns/v2/model/create_record_set_with_line_response.py +27 -27
- huaweicloudsdkdns/v2/model/create_resolver_rule_request.py +111 -0
- huaweicloudsdkdns/v2/model/create_resolver_rule_request_body.py +198 -0
- huaweicloudsdkdns/v2/model/create_resolver_rule_response.py +112 -0
- huaweicloudsdkdns/v2/model/create_tag_request.py +3 -3
- huaweicloudsdkdns/v2/model/delete_custom_line_request.py +3 -3
- huaweicloudsdkdns/v2/model/delete_custom_line_response.py +6 -6
- huaweicloudsdkdns/v2/model/delete_endpoint_request.py +114 -0
- huaweicloudsdkdns/v2/model/delete_endpoint_response.py +112 -0
- huaweicloudsdkdns/v2/model/delete_line_group_request.py +3 -3
- huaweicloudsdkdns/v2/model/delete_line_group_response.py +3 -3
- huaweicloudsdkdns/v2/model/delete_private_zone_request.py +3 -3
- huaweicloudsdkdns/v2/model/delete_private_zone_response.py +42 -42
- huaweicloudsdkdns/v2/model/delete_ptr_request.py +114 -0
- huaweicloudsdkdns/v2/model/delete_ptr_response.py +85 -0
- huaweicloudsdkdns/v2/model/delete_public_zone_request.py +3 -3
- huaweicloudsdkdns/v2/model/delete_public_zone_response.py +42 -42
- huaweicloudsdkdns/v2/model/delete_record_set_request.py +6 -6
- huaweicloudsdkdns/v2/model/delete_record_set_response.py +27 -27
- huaweicloudsdkdns/v2/model/delete_record_sets_request.py +6 -6
- huaweicloudsdkdns/v2/model/delete_record_sets_response.py +27 -27
- huaweicloudsdkdns/v2/model/delete_resolver_rule_request.py +114 -0
- huaweicloudsdkdns/v2/model/delete_resolver_rule_response.py +112 -0
- huaweicloudsdkdns/v2/model/delete_tag_request.py +3 -3
- huaweicloudsdkdns/v2/model/disable_dnssec_config_request.py +114 -0
- huaweicloudsdkdns/v2/model/disable_dnssec_config_response.py +116 -0
- huaweicloudsdkdns/v2/model/disassociate_endpoint_ipaddress_request.py +142 -0
- huaweicloudsdkdns/v2/model/disassociate_endpoint_ipaddress_response.py +112 -0
- huaweicloudsdkdns/v2/model/disassociate_resolver_rule_router_request.py +139 -0
- huaweicloudsdkdns/v2/model/disassociate_resolver_rule_router_response.py +174 -0
- huaweicloudsdkdns/v2/model/disassociate_router_request.py +3 -3
- huaweicloudsdkdns/v2/model/enable_dnssec_config_request.py +114 -0
- huaweicloudsdkdns/v2/model/enable_dnssec_config_response.py +464 -0
- huaweicloudsdkdns/v2/model/endpoint_resp.py +347 -0
- huaweicloudsdkdns/v2/model/floating_ips_ptr.py +339 -0
- huaweicloudsdkdns/v2/model/ip_info.py +115 -0
- huaweicloudsdkdns/v2/model/ip_value.py +115 -0
- huaweicloudsdkdns/v2/model/ipaddress_info.py +143 -0
- huaweicloudsdkdns/v2/model/ipaddresses.py +110 -0
- huaweicloudsdkdns/v2/model/ipaddresses_data.py +289 -0
- huaweicloudsdkdns/v2/model/line.py +6 -6
- huaweicloudsdkdns/v2/model/list_endpoint_ipaddresses_request.py +114 -0
- huaweicloudsdkdns/v2/model/list_endpoint_ipaddresses_response.py +116 -0
- huaweicloudsdkdns/v2/model/list_endpoint_vpcs_request.py +173 -0
- huaweicloudsdkdns/v2/model/list_endpoint_vpcs_response.py +141 -0
- huaweicloudsdkdns/v2/model/list_endpoints_request.py +230 -0
- huaweicloudsdkdns/v2/model/list_endpoints_response.py +141 -0
- huaweicloudsdkdns/v2/model/list_private_zones_request.py +15 -15
- huaweicloudsdkdns/v2/model/list_private_zones_response.py +3 -3
- huaweicloudsdkdns/v2/model/list_ptr_records_floating_resp.py +12 -12
- huaweicloudsdkdns/v2/model/list_ptr_records_request.py +3 -3
- huaweicloudsdkdns/v2/model/list_ptr_records_response.py +3 -3
- huaweicloudsdkdns/v2/model/list_ptrs_request.py +289 -0
- huaweicloudsdkdns/v2/model/list_ptrs_response.py +166 -0
- huaweicloudsdkdns/v2/model/list_public_zone_lines_request.py +172 -0
- huaweicloudsdkdns/v2/model/list_public_zone_lines_response.py +166 -0
- huaweicloudsdkdns/v2/model/list_public_zones_request.py +18 -18
- huaweicloudsdkdns/v2/model/list_public_zones_response.py +3 -3
- huaweicloudsdkdns/v2/model/list_record_sets.py +27 -27
- huaweicloudsdkdns/v2/model/list_record_sets_by_zone_request.py +24 -24
- huaweicloudsdkdns/v2/model/list_record_sets_by_zone_response.py +3 -3
- huaweicloudsdkdns/v2/model/list_record_sets_request.py +27 -27
- huaweicloudsdkdns/v2/model/list_record_sets_response.py +3 -3
- huaweicloudsdkdns/v2/model/list_record_sets_with_line_request.py +33 -33
- huaweicloudsdkdns/v2/model/list_record_sets_with_line_response.py +3 -3
- huaweicloudsdkdns/v2/model/list_record_sets_with_tags.py +27 -27
- huaweicloudsdkdns/v2/model/list_resolver_rule_param.py +376 -0
- huaweicloudsdkdns/v2/model/list_resolver_rules_request.py +289 -0
- huaweicloudsdkdns/v2/model/list_resolver_rules_response.py +191 -0
- huaweicloudsdkdns/v2/model/match.py +3 -3
- huaweicloudsdkdns/v2/model/page_info.py +173 -0
- huaweicloudsdkdns/v2/model/private_zone_resp.py +42 -42
- huaweicloudsdkdns/v2/model/public_ip_req.py +144 -0
- huaweicloudsdkdns/v2/model/public_ip_res.py +173 -0
- huaweicloudsdkdns/v2/model/public_zone_lines.py +173 -0
- huaweicloudsdkdns/v2/model/public_zone_resp.py +39 -39
- huaweicloudsdkdns/v2/model/query_record_set_with_line_and_tags_resp.py +57 -28
- huaweicloudsdkdns/v2/model/query_record_set_with_line_resp.py +27 -27
- huaweicloudsdkdns/v2/model/recordset_data.py +27 -27
- huaweicloudsdkdns/v2/model/resolver_rule_param.py +347 -0
- huaweicloudsdkdns/v2/model/restore_ptr_req.py +3 -3
- huaweicloudsdkdns/v2/model/router_for_rule.py +114 -0
- huaweicloudsdkdns/v2/model/set_private_zone_proxy_pattern_request.py +139 -0
- huaweicloudsdkdns/v2/model/set_private_zone_proxy_pattern_request_body.py +114 -0
- huaweicloudsdkdns/v2/model/set_private_zone_proxy_pattern_response.py +85 -0
- huaweicloudsdkdns/v2/model/set_record_sets_status_request.py +3 -3
- huaweicloudsdkdns/v2/model/set_record_sets_status_response.py +27 -27
- huaweicloudsdkdns/v2/model/show_dnssec_config_request.py +114 -0
- huaweicloudsdkdns/v2/model/show_dnssec_config_response.py +464 -0
- huaweicloudsdkdns/v2/model/show_endpoint_request.py +114 -0
- huaweicloudsdkdns/v2/model/show_endpoint_response.py +112 -0
- huaweicloudsdkdns/v2/model/show_line_group_request.py +3 -3
- huaweicloudsdkdns/v2/model/show_line_group_response.py +3 -3
- huaweicloudsdkdns/v2/model/show_private_zone_name_server_request.py +3 -3
- huaweicloudsdkdns/v2/model/show_private_zone_request.py +3 -3
- huaweicloudsdkdns/v2/model/show_private_zone_response.py +42 -42
- huaweicloudsdkdns/v2/model/show_ptr_record_set_response.py +12 -12
- huaweicloudsdkdns/v2/model/show_ptr_request.py +114 -0
- huaweicloudsdkdns/v2/model/show_ptr_response.py +311 -0
- huaweicloudsdkdns/v2/model/show_public_zone_name_server_request.py +3 -3
- huaweicloudsdkdns/v2/model/show_public_zone_name_server_response.py +3 -3
- huaweicloudsdkdns/v2/model/show_public_zone_request.py +3 -3
- huaweicloudsdkdns/v2/model/show_public_zone_response.py +45 -45
- huaweicloudsdkdns/v2/model/show_record_set_by_zone_request.py +27 -27
- huaweicloudsdkdns/v2/model/show_record_set_by_zone_resp.py +27 -27
- huaweicloudsdkdns/v2/model/show_record_set_by_zone_response.py +3 -3
- huaweicloudsdkdns/v2/model/show_record_set_request.py +6 -6
- huaweicloudsdkdns/v2/model/show_record_set_response.py +27 -27
- huaweicloudsdkdns/v2/model/show_record_set_with_line_request.py +6 -6
- huaweicloudsdkdns/v2/model/show_record_set_with_line_response.py +27 -27
- huaweicloudsdkdns/v2/model/show_resolver_rule_request.py +114 -0
- huaweicloudsdkdns/v2/model/show_resolver_rule_resp_param.py +405 -0
- huaweicloudsdkdns/v2/model/show_resolver_rule_response.py +112 -0
- huaweicloudsdkdns/v2/model/show_resource_tag_request.py +3 -3
- huaweicloudsdkdns/v2/model/update_custom_line_request.py +3 -3
- huaweicloudsdkdns/v2/model/update_custom_line_response.py +6 -6
- huaweicloudsdkdns/v2/model/update_endpoint_request.py +139 -0
- huaweicloudsdkdns/v2/model/update_endpoint_request_body.py +114 -0
- huaweicloudsdkdns/v2/model/update_endpoint_response.py +112 -0
- huaweicloudsdkdns/v2/model/update_line_groups_request.py +3 -3
- huaweicloudsdkdns/v2/model/update_line_groups_response.py +3 -3
- huaweicloudsdkdns/v2/model/update_private_zone_info_req.py +3 -3
- huaweicloudsdkdns/v2/model/update_private_zone_request.py +3 -3
- huaweicloudsdkdns/v2/model/update_private_zone_response.py +39 -39
- huaweicloudsdkdns/v2/model/update_private_zone_status_request.py +139 -0
- huaweicloudsdkdns/v2/model/update_private_zone_status_response.py +518 -0
- huaweicloudsdkdns/v2/model/update_ptr_record_response.py +12 -12
- huaweicloudsdkdns/v2/model/update_ptr_req.py +9 -9
- huaweicloudsdkdns/v2/model/update_ptr_request.py +139 -0
- huaweicloudsdkdns/v2/model/update_ptr_request_body.py +172 -0
- huaweicloudsdkdns/v2/model/update_ptr_response.py +311 -0
- huaweicloudsdkdns/v2/model/update_public_zone_info.py +3 -3
- huaweicloudsdkdns/v2/model/update_public_zone_request.py +3 -3
- huaweicloudsdkdns/v2/model/update_public_zone_response.py +36 -36
- huaweicloudsdkdns/v2/model/update_public_zone_status_request.py +7 -7
- huaweicloudsdkdns/v2/model/update_public_zone_status_response.py +36 -36
- huaweicloudsdkdns/v2/model/update_record_set_req.py +3 -3
- huaweicloudsdkdns/v2/model/update_record_set_request.py +6 -6
- huaweicloudsdkdns/v2/model/update_record_set_response.py +27 -27
- huaweicloudsdkdns/v2/model/update_record_sets_req.py +3 -3
- huaweicloudsdkdns/v2/model/update_record_sets_request.py +6 -6
- huaweicloudsdkdns/v2/model/update_record_sets_response.py +27 -27
- huaweicloudsdkdns/v2/model/update_resolver_rule_request.py +139 -0
- huaweicloudsdkdns/v2/model/update_resolver_rule_request_body.py +144 -0
- huaweicloudsdkdns/v2/model/update_resolver_rule_response.py +112 -0
- huaweicloudsdkdns/v2/model/{update_public_zone_status_request_body.py → update_zone_status_request_body.py} +10 -10
- huaweicloudsdkdns/v2/model/vpcs_data.py +173 -0
- huaweicloudsdkdns/v2/model/zone_data.py +52 -52
- {huaweicloudsdkdns-3.1.145.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/METADATA +2 -2
- huaweicloudsdkdns-3.1.146.dist-info/RECORD +273 -0
- huaweicloudsdkdns-3.1.145.dist-info/RECORD +0 -192
- {huaweicloudsdkdns-3.1.145.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdns-3.1.145.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdns-3.1.145.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListEndpointVpcsRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'limit': 'int',
|
21
|
+
'offset': 'int',
|
22
|
+
'vpc_id': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'limit': 'limit',
|
27
|
+
'offset': 'offset',
|
28
|
+
'vpc_id': 'vpc_id'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, limit=None, offset=None, vpc_id=None):
|
32
|
+
r"""ListEndpointVpcsRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param limit: 每页返回的资源个数。 取值范围:0~500 取值一般为10,20,50。默认值为500。
|
37
|
+
:type limit: int
|
38
|
+
:param offset: 分页查询起始偏移量,表示从偏移量的下一个资源开始查询。 取值范围:0~2147483647 默认值为0。 当前设置marker不为空时,以marker为分页起始标识。
|
39
|
+
:type offset: int
|
40
|
+
:param vpc_id: 待查询的VPC的ID。
|
41
|
+
:type vpc_id: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._limit = None
|
47
|
+
self._offset = None
|
48
|
+
self._vpc_id = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if limit is not None:
|
52
|
+
self.limit = limit
|
53
|
+
if offset is not None:
|
54
|
+
self.offset = offset
|
55
|
+
if vpc_id is not None:
|
56
|
+
self.vpc_id = vpc_id
|
57
|
+
|
58
|
+
@property
|
59
|
+
def limit(self):
|
60
|
+
r"""Gets the limit of this ListEndpointVpcsRequest.
|
61
|
+
|
62
|
+
每页返回的资源个数。 取值范围:0~500 取值一般为10,20,50。默认值为500。
|
63
|
+
|
64
|
+
:return: The limit of this ListEndpointVpcsRequest.
|
65
|
+
:rtype: int
|
66
|
+
"""
|
67
|
+
return self._limit
|
68
|
+
|
69
|
+
@limit.setter
|
70
|
+
def limit(self, limit):
|
71
|
+
r"""Sets the limit of this ListEndpointVpcsRequest.
|
72
|
+
|
73
|
+
每页返回的资源个数。 取值范围:0~500 取值一般为10,20,50。默认值为500。
|
74
|
+
|
75
|
+
:param limit: The limit of this ListEndpointVpcsRequest.
|
76
|
+
:type limit: int
|
77
|
+
"""
|
78
|
+
self._limit = limit
|
79
|
+
|
80
|
+
@property
|
81
|
+
def offset(self):
|
82
|
+
r"""Gets the offset of this ListEndpointVpcsRequest.
|
83
|
+
|
84
|
+
分页查询起始偏移量,表示从偏移量的下一个资源开始查询。 取值范围:0~2147483647 默认值为0。 当前设置marker不为空时,以marker为分页起始标识。
|
85
|
+
|
86
|
+
:return: The offset of this ListEndpointVpcsRequest.
|
87
|
+
:rtype: int
|
88
|
+
"""
|
89
|
+
return self._offset
|
90
|
+
|
91
|
+
@offset.setter
|
92
|
+
def offset(self, offset):
|
93
|
+
r"""Sets the offset of this ListEndpointVpcsRequest.
|
94
|
+
|
95
|
+
分页查询起始偏移量,表示从偏移量的下一个资源开始查询。 取值范围:0~2147483647 默认值为0。 当前设置marker不为空时,以marker为分页起始标识。
|
96
|
+
|
97
|
+
:param offset: The offset of this ListEndpointVpcsRequest.
|
98
|
+
:type offset: int
|
99
|
+
"""
|
100
|
+
self._offset = offset
|
101
|
+
|
102
|
+
@property
|
103
|
+
def vpc_id(self):
|
104
|
+
r"""Gets the vpc_id of this ListEndpointVpcsRequest.
|
105
|
+
|
106
|
+
待查询的VPC的ID。
|
107
|
+
|
108
|
+
:return: The vpc_id of this ListEndpointVpcsRequest.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._vpc_id
|
112
|
+
|
113
|
+
@vpc_id.setter
|
114
|
+
def vpc_id(self, vpc_id):
|
115
|
+
r"""Sets the vpc_id of this ListEndpointVpcsRequest.
|
116
|
+
|
117
|
+
待查询的VPC的ID。
|
118
|
+
|
119
|
+
:param vpc_id: The vpc_id of this ListEndpointVpcsRequest.
|
120
|
+
:type vpc_id: str
|
121
|
+
"""
|
122
|
+
self._vpc_id = vpc_id
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, ListEndpointVpcsRequest):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -0,0 +1,141 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ListEndpointVpcsResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'vpcs': 'list[VpcsData]',
|
22
|
+
'metadata': 'Metadata'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'vpcs': 'vpcs',
|
27
|
+
'metadata': 'metadata'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, vpcs=None, metadata=None):
|
31
|
+
r"""ListEndpointVpcsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param vpcs: 终端节点VPC列表。
|
36
|
+
:type vpcs: list[:class:`huaweicloudsdkdns.v2.VpcsData`]
|
37
|
+
:param metadata:
|
38
|
+
:type metadata: :class:`huaweicloudsdkdns.v2.Metadata`
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListEndpointVpcsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._vpcs = None
|
44
|
+
self._metadata = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if vpcs is not None:
|
48
|
+
self.vpcs = vpcs
|
49
|
+
if metadata is not None:
|
50
|
+
self.metadata = metadata
|
51
|
+
|
52
|
+
@property
|
53
|
+
def vpcs(self):
|
54
|
+
r"""Gets the vpcs of this ListEndpointVpcsResponse.
|
55
|
+
|
56
|
+
终端节点VPC列表。
|
57
|
+
|
58
|
+
:return: The vpcs of this ListEndpointVpcsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkdns.v2.VpcsData`]
|
60
|
+
"""
|
61
|
+
return self._vpcs
|
62
|
+
|
63
|
+
@vpcs.setter
|
64
|
+
def vpcs(self, vpcs):
|
65
|
+
r"""Sets the vpcs of this ListEndpointVpcsResponse.
|
66
|
+
|
67
|
+
终端节点VPC列表。
|
68
|
+
|
69
|
+
:param vpcs: The vpcs of this ListEndpointVpcsResponse.
|
70
|
+
:type vpcs: list[:class:`huaweicloudsdkdns.v2.VpcsData`]
|
71
|
+
"""
|
72
|
+
self._vpcs = vpcs
|
73
|
+
|
74
|
+
@property
|
75
|
+
def metadata(self):
|
76
|
+
r"""Gets the metadata of this ListEndpointVpcsResponse.
|
77
|
+
|
78
|
+
:return: The metadata of this ListEndpointVpcsResponse.
|
79
|
+
:rtype: :class:`huaweicloudsdkdns.v2.Metadata`
|
80
|
+
"""
|
81
|
+
return self._metadata
|
82
|
+
|
83
|
+
@metadata.setter
|
84
|
+
def metadata(self, metadata):
|
85
|
+
r"""Sets the metadata of this ListEndpointVpcsResponse.
|
86
|
+
|
87
|
+
:param metadata: The metadata of this ListEndpointVpcsResponse.
|
88
|
+
:type metadata: :class:`huaweicloudsdkdns.v2.Metadata`
|
89
|
+
"""
|
90
|
+
self._metadata = metadata
|
91
|
+
|
92
|
+
def to_dict(self):
|
93
|
+
"""Returns the model properties as a dict"""
|
94
|
+
result = {}
|
95
|
+
|
96
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
97
|
+
value = getattr(self, attr)
|
98
|
+
if isinstance(value, list):
|
99
|
+
result[attr] = list(map(
|
100
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
101
|
+
value
|
102
|
+
))
|
103
|
+
elif hasattr(value, "to_dict"):
|
104
|
+
result[attr] = value.to_dict()
|
105
|
+
elif isinstance(value, dict):
|
106
|
+
result[attr] = dict(map(
|
107
|
+
lambda item: (item[0], item[1].to_dict())
|
108
|
+
if hasattr(item[1], "to_dict") else item,
|
109
|
+
value.items()
|
110
|
+
))
|
111
|
+
else:
|
112
|
+
if attr in self.sensitive_list:
|
113
|
+
result[attr] = "****"
|
114
|
+
else:
|
115
|
+
result[attr] = value
|
116
|
+
|
117
|
+
return result
|
118
|
+
|
119
|
+
def to_str(self):
|
120
|
+
"""Returns the string representation of the model"""
|
121
|
+
import simplejson as json
|
122
|
+
if six.PY2:
|
123
|
+
import sys
|
124
|
+
reload(sys)
|
125
|
+
sys.setdefaultencoding("utf-8")
|
126
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
127
|
+
|
128
|
+
def __repr__(self):
|
129
|
+
"""For `print`"""
|
130
|
+
return self.to_str()
|
131
|
+
|
132
|
+
def __eq__(self, other):
|
133
|
+
"""Returns true if both objects are equal"""
|
134
|
+
if not isinstance(other, ListEndpointVpcsResponse):
|
135
|
+
return False
|
136
|
+
|
137
|
+
return self.__dict__ == other.__dict__
|
138
|
+
|
139
|
+
def __ne__(self, other):
|
140
|
+
"""Returns true if both objects are not equal"""
|
141
|
+
return not self == other
|
@@ -0,0 +1,230 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListEndpointsRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'direction': 'str',
|
21
|
+
'vpc_id': 'str',
|
22
|
+
'name': 'str',
|
23
|
+
'limit': 'int',
|
24
|
+
'offset': 'int'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'direction': 'direction',
|
29
|
+
'vpc_id': 'vpc_id',
|
30
|
+
'name': 'name',
|
31
|
+
'limit': 'limit',
|
32
|
+
'offset': 'offset'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, direction=None, vpc_id=None, name=None, limit=None, offset=None):
|
36
|
+
r"""ListEndpointsRequest
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param direction: 终端节点方向。 取值: inbound,表示入站终端节点。 outbound,表示出站终端节点。
|
41
|
+
:type direction: str
|
42
|
+
:param vpc_id: 待查询的终端节点所属VPC的ID。
|
43
|
+
:type vpc_id: str
|
44
|
+
:param name: 终端节点名称。
|
45
|
+
:type name: str
|
46
|
+
:param limit: 每页返回的资源个数。 取值范围:0~500 取值一般为10,20,50。默认值为500。
|
47
|
+
:type limit: int
|
48
|
+
:param offset: 分页查询起始偏移量,表示从偏移量的下一个资源开始查询。 取值范围:0~2147483647 默认值为0。 当前设置marker不为空时,以marker为分页起始标识。
|
49
|
+
:type offset: int
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._direction = None
|
55
|
+
self._vpc_id = None
|
56
|
+
self._name = None
|
57
|
+
self._limit = None
|
58
|
+
self._offset = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.direction = direction
|
62
|
+
if vpc_id is not None:
|
63
|
+
self.vpc_id = vpc_id
|
64
|
+
if name is not None:
|
65
|
+
self.name = name
|
66
|
+
if limit is not None:
|
67
|
+
self.limit = limit
|
68
|
+
if offset is not None:
|
69
|
+
self.offset = offset
|
70
|
+
|
71
|
+
@property
|
72
|
+
def direction(self):
|
73
|
+
r"""Gets the direction of this ListEndpointsRequest.
|
74
|
+
|
75
|
+
终端节点方向。 取值: inbound,表示入站终端节点。 outbound,表示出站终端节点。
|
76
|
+
|
77
|
+
:return: The direction of this ListEndpointsRequest.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._direction
|
81
|
+
|
82
|
+
@direction.setter
|
83
|
+
def direction(self, direction):
|
84
|
+
r"""Sets the direction of this ListEndpointsRequest.
|
85
|
+
|
86
|
+
终端节点方向。 取值: inbound,表示入站终端节点。 outbound,表示出站终端节点。
|
87
|
+
|
88
|
+
:param direction: The direction of this ListEndpointsRequest.
|
89
|
+
:type direction: str
|
90
|
+
"""
|
91
|
+
self._direction = direction
|
92
|
+
|
93
|
+
@property
|
94
|
+
def vpc_id(self):
|
95
|
+
r"""Gets the vpc_id of this ListEndpointsRequest.
|
96
|
+
|
97
|
+
待查询的终端节点所属VPC的ID。
|
98
|
+
|
99
|
+
:return: The vpc_id of this ListEndpointsRequest.
|
100
|
+
:rtype: str
|
101
|
+
"""
|
102
|
+
return self._vpc_id
|
103
|
+
|
104
|
+
@vpc_id.setter
|
105
|
+
def vpc_id(self, vpc_id):
|
106
|
+
r"""Sets the vpc_id of this ListEndpointsRequest.
|
107
|
+
|
108
|
+
待查询的终端节点所属VPC的ID。
|
109
|
+
|
110
|
+
:param vpc_id: The vpc_id of this ListEndpointsRequest.
|
111
|
+
:type vpc_id: str
|
112
|
+
"""
|
113
|
+
self._vpc_id = vpc_id
|
114
|
+
|
115
|
+
@property
|
116
|
+
def name(self):
|
117
|
+
r"""Gets the name of this ListEndpointsRequest.
|
118
|
+
|
119
|
+
终端节点名称。
|
120
|
+
|
121
|
+
:return: The name of this ListEndpointsRequest.
|
122
|
+
:rtype: str
|
123
|
+
"""
|
124
|
+
return self._name
|
125
|
+
|
126
|
+
@name.setter
|
127
|
+
def name(self, name):
|
128
|
+
r"""Sets the name of this ListEndpointsRequest.
|
129
|
+
|
130
|
+
终端节点名称。
|
131
|
+
|
132
|
+
:param name: The name of this ListEndpointsRequest.
|
133
|
+
:type name: str
|
134
|
+
"""
|
135
|
+
self._name = name
|
136
|
+
|
137
|
+
@property
|
138
|
+
def limit(self):
|
139
|
+
r"""Gets the limit of this ListEndpointsRequest.
|
140
|
+
|
141
|
+
每页返回的资源个数。 取值范围:0~500 取值一般为10,20,50。默认值为500。
|
142
|
+
|
143
|
+
:return: The limit of this ListEndpointsRequest.
|
144
|
+
:rtype: int
|
145
|
+
"""
|
146
|
+
return self._limit
|
147
|
+
|
148
|
+
@limit.setter
|
149
|
+
def limit(self, limit):
|
150
|
+
r"""Sets the limit of this ListEndpointsRequest.
|
151
|
+
|
152
|
+
每页返回的资源个数。 取值范围:0~500 取值一般为10,20,50。默认值为500。
|
153
|
+
|
154
|
+
:param limit: The limit of this ListEndpointsRequest.
|
155
|
+
:type limit: int
|
156
|
+
"""
|
157
|
+
self._limit = limit
|
158
|
+
|
159
|
+
@property
|
160
|
+
def offset(self):
|
161
|
+
r"""Gets the offset of this ListEndpointsRequest.
|
162
|
+
|
163
|
+
分页查询起始偏移量,表示从偏移量的下一个资源开始查询。 取值范围:0~2147483647 默认值为0。 当前设置marker不为空时,以marker为分页起始标识。
|
164
|
+
|
165
|
+
:return: The offset of this ListEndpointsRequest.
|
166
|
+
:rtype: int
|
167
|
+
"""
|
168
|
+
return self._offset
|
169
|
+
|
170
|
+
@offset.setter
|
171
|
+
def offset(self, offset):
|
172
|
+
r"""Sets the offset of this ListEndpointsRequest.
|
173
|
+
|
174
|
+
分页查询起始偏移量,表示从偏移量的下一个资源开始查询。 取值范围:0~2147483647 默认值为0。 当前设置marker不为空时,以marker为分页起始标识。
|
175
|
+
|
176
|
+
:param offset: The offset of this ListEndpointsRequest.
|
177
|
+
:type offset: int
|
178
|
+
"""
|
179
|
+
self._offset = offset
|
180
|
+
|
181
|
+
def to_dict(self):
|
182
|
+
"""Returns the model properties as a dict"""
|
183
|
+
result = {}
|
184
|
+
|
185
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
186
|
+
value = getattr(self, attr)
|
187
|
+
if isinstance(value, list):
|
188
|
+
result[attr] = list(map(
|
189
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
190
|
+
value
|
191
|
+
))
|
192
|
+
elif hasattr(value, "to_dict"):
|
193
|
+
result[attr] = value.to_dict()
|
194
|
+
elif isinstance(value, dict):
|
195
|
+
result[attr] = dict(map(
|
196
|
+
lambda item: (item[0], item[1].to_dict())
|
197
|
+
if hasattr(item[1], "to_dict") else item,
|
198
|
+
value.items()
|
199
|
+
))
|
200
|
+
else:
|
201
|
+
if attr in self.sensitive_list:
|
202
|
+
result[attr] = "****"
|
203
|
+
else:
|
204
|
+
result[attr] = value
|
205
|
+
|
206
|
+
return result
|
207
|
+
|
208
|
+
def to_str(self):
|
209
|
+
"""Returns the string representation of the model"""
|
210
|
+
import simplejson as json
|
211
|
+
if six.PY2:
|
212
|
+
import sys
|
213
|
+
reload(sys)
|
214
|
+
sys.setdefaultencoding("utf-8")
|
215
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
216
|
+
|
217
|
+
def __repr__(self):
|
218
|
+
"""For `print`"""
|
219
|
+
return self.to_str()
|
220
|
+
|
221
|
+
def __eq__(self, other):
|
222
|
+
"""Returns true if both objects are equal"""
|
223
|
+
if not isinstance(other, ListEndpointsRequest):
|
224
|
+
return False
|
225
|
+
|
226
|
+
return self.__dict__ == other.__dict__
|
227
|
+
|
228
|
+
def __ne__(self, other):
|
229
|
+
"""Returns true if both objects are not equal"""
|
230
|
+
return not self == other
|
@@ -0,0 +1,141 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ListEndpointsResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'endpoints': 'list[EndpointResp]',
|
22
|
+
'metadata': 'Metadata'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'endpoints': 'endpoints',
|
27
|
+
'metadata': 'metadata'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, endpoints=None, metadata=None):
|
31
|
+
r"""ListEndpointsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param endpoints: 查询终端节点列表响应。
|
36
|
+
:type endpoints: list[:class:`huaweicloudsdkdns.v2.EndpointResp`]
|
37
|
+
:param metadata:
|
38
|
+
:type metadata: :class:`huaweicloudsdkdns.v2.Metadata`
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListEndpointsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._endpoints = None
|
44
|
+
self._metadata = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if endpoints is not None:
|
48
|
+
self.endpoints = endpoints
|
49
|
+
if metadata is not None:
|
50
|
+
self.metadata = metadata
|
51
|
+
|
52
|
+
@property
|
53
|
+
def endpoints(self):
|
54
|
+
r"""Gets the endpoints of this ListEndpointsResponse.
|
55
|
+
|
56
|
+
查询终端节点列表响应。
|
57
|
+
|
58
|
+
:return: The endpoints of this ListEndpointsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkdns.v2.EndpointResp`]
|
60
|
+
"""
|
61
|
+
return self._endpoints
|
62
|
+
|
63
|
+
@endpoints.setter
|
64
|
+
def endpoints(self, endpoints):
|
65
|
+
r"""Sets the endpoints of this ListEndpointsResponse.
|
66
|
+
|
67
|
+
查询终端节点列表响应。
|
68
|
+
|
69
|
+
:param endpoints: The endpoints of this ListEndpointsResponse.
|
70
|
+
:type endpoints: list[:class:`huaweicloudsdkdns.v2.EndpointResp`]
|
71
|
+
"""
|
72
|
+
self._endpoints = endpoints
|
73
|
+
|
74
|
+
@property
|
75
|
+
def metadata(self):
|
76
|
+
r"""Gets the metadata of this ListEndpointsResponse.
|
77
|
+
|
78
|
+
:return: The metadata of this ListEndpointsResponse.
|
79
|
+
:rtype: :class:`huaweicloudsdkdns.v2.Metadata`
|
80
|
+
"""
|
81
|
+
return self._metadata
|
82
|
+
|
83
|
+
@metadata.setter
|
84
|
+
def metadata(self, metadata):
|
85
|
+
r"""Sets the metadata of this ListEndpointsResponse.
|
86
|
+
|
87
|
+
:param metadata: The metadata of this ListEndpointsResponse.
|
88
|
+
:type metadata: :class:`huaweicloudsdkdns.v2.Metadata`
|
89
|
+
"""
|
90
|
+
self._metadata = metadata
|
91
|
+
|
92
|
+
def to_dict(self):
|
93
|
+
"""Returns the model properties as a dict"""
|
94
|
+
result = {}
|
95
|
+
|
96
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
97
|
+
value = getattr(self, attr)
|
98
|
+
if isinstance(value, list):
|
99
|
+
result[attr] = list(map(
|
100
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
101
|
+
value
|
102
|
+
))
|
103
|
+
elif hasattr(value, "to_dict"):
|
104
|
+
result[attr] = value.to_dict()
|
105
|
+
elif isinstance(value, dict):
|
106
|
+
result[attr] = dict(map(
|
107
|
+
lambda item: (item[0], item[1].to_dict())
|
108
|
+
if hasattr(item[1], "to_dict") else item,
|
109
|
+
value.items()
|
110
|
+
))
|
111
|
+
else:
|
112
|
+
if attr in self.sensitive_list:
|
113
|
+
result[attr] = "****"
|
114
|
+
else:
|
115
|
+
result[attr] = value
|
116
|
+
|
117
|
+
return result
|
118
|
+
|
119
|
+
def to_str(self):
|
120
|
+
"""Returns the string representation of the model"""
|
121
|
+
import simplejson as json
|
122
|
+
if six.PY2:
|
123
|
+
import sys
|
124
|
+
reload(sys)
|
125
|
+
sys.setdefaultencoding("utf-8")
|
126
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
127
|
+
|
128
|
+
def __repr__(self):
|
129
|
+
"""For `print`"""
|
130
|
+
return self.to_str()
|
131
|
+
|
132
|
+
def __eq__(self, other):
|
133
|
+
"""Returns true if both objects are equal"""
|
134
|
+
if not isinstance(other, ListEndpointsResponse):
|
135
|
+
return False
|
136
|
+
|
137
|
+
return self.__dict__ == other.__dict__
|
138
|
+
|
139
|
+
def __ne__(self, other):
|
140
|
+
"""Returns true if both objects are not equal"""
|
141
|
+
return not self == other
|