huaweicloudsdkdns 3.1.144__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.144.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/METADATA +2 -2
- huaweicloudsdkdns-3.1.146.dist-info/RECORD +273 -0
- huaweicloudsdkdns-3.1.144.dist-info/RECORD +0 -192
- {huaweicloudsdkdns-3.1.144.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdns-3.1.144.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdns-3.1.144.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class PublicIpReq:
|
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
|
+
'region': 'str',
|
21
|
+
'id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'region': 'region',
|
26
|
+
'id': 'id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, region=None, id=None):
|
30
|
+
r"""PublicIpReq
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param region: 弹性公网IP(EIP)所属的区域。
|
35
|
+
:type region: str
|
36
|
+
:param id: 弹性公网IP(EIP)的ID。
|
37
|
+
:type id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._region = None
|
43
|
+
self._id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if region is not None:
|
47
|
+
self.region = region
|
48
|
+
if id is not None:
|
49
|
+
self.id = id
|
50
|
+
|
51
|
+
@property
|
52
|
+
def region(self):
|
53
|
+
r"""Gets the region of this PublicIpReq.
|
54
|
+
|
55
|
+
弹性公网IP(EIP)所属的区域。
|
56
|
+
|
57
|
+
:return: The region of this PublicIpReq.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._region
|
61
|
+
|
62
|
+
@region.setter
|
63
|
+
def region(self, region):
|
64
|
+
r"""Sets the region of this PublicIpReq.
|
65
|
+
|
66
|
+
弹性公网IP(EIP)所属的区域。
|
67
|
+
|
68
|
+
:param region: The region of this PublicIpReq.
|
69
|
+
:type region: str
|
70
|
+
"""
|
71
|
+
self._region = region
|
72
|
+
|
73
|
+
@property
|
74
|
+
def id(self):
|
75
|
+
r"""Gets the id of this PublicIpReq.
|
76
|
+
|
77
|
+
弹性公网IP(EIP)的ID。
|
78
|
+
|
79
|
+
:return: The id of this PublicIpReq.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._id
|
83
|
+
|
84
|
+
@id.setter
|
85
|
+
def id(self, id):
|
86
|
+
r"""Sets the id of this PublicIpReq.
|
87
|
+
|
88
|
+
弹性公网IP(EIP)的ID。
|
89
|
+
|
90
|
+
:param id: The id of this PublicIpReq.
|
91
|
+
:type id: str
|
92
|
+
"""
|
93
|
+
self._id = id
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, PublicIpReq):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -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 PublicIpRes:
|
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
|
+
'region': 'str',
|
21
|
+
'id': 'str',
|
22
|
+
'address': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'region': 'region',
|
27
|
+
'id': 'id',
|
28
|
+
'address': 'address'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, region=None, id=None, address=None):
|
32
|
+
r"""PublicIpRes
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param region: 弹性公网IP(EIP)所属的区域。
|
37
|
+
:type region: str
|
38
|
+
:param id: 弹性公网IP(EIP)的ID。
|
39
|
+
:type id: str
|
40
|
+
:param address: 弹性公网IP(EIP)。
|
41
|
+
:type address: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._region = None
|
47
|
+
self._id = None
|
48
|
+
self._address = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if region is not None:
|
52
|
+
self.region = region
|
53
|
+
if id is not None:
|
54
|
+
self.id = id
|
55
|
+
if address is not None:
|
56
|
+
self.address = address
|
57
|
+
|
58
|
+
@property
|
59
|
+
def region(self):
|
60
|
+
r"""Gets the region of this PublicIpRes.
|
61
|
+
|
62
|
+
弹性公网IP(EIP)所属的区域。
|
63
|
+
|
64
|
+
:return: The region of this PublicIpRes.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._region
|
68
|
+
|
69
|
+
@region.setter
|
70
|
+
def region(self, region):
|
71
|
+
r"""Sets the region of this PublicIpRes.
|
72
|
+
|
73
|
+
弹性公网IP(EIP)所属的区域。
|
74
|
+
|
75
|
+
:param region: The region of this PublicIpRes.
|
76
|
+
:type region: str
|
77
|
+
"""
|
78
|
+
self._region = region
|
79
|
+
|
80
|
+
@property
|
81
|
+
def id(self):
|
82
|
+
r"""Gets the id of this PublicIpRes.
|
83
|
+
|
84
|
+
弹性公网IP(EIP)的ID。
|
85
|
+
|
86
|
+
:return: The id of this PublicIpRes.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._id
|
90
|
+
|
91
|
+
@id.setter
|
92
|
+
def id(self, id):
|
93
|
+
r"""Sets the id of this PublicIpRes.
|
94
|
+
|
95
|
+
弹性公网IP(EIP)的ID。
|
96
|
+
|
97
|
+
:param id: The id of this PublicIpRes.
|
98
|
+
:type id: str
|
99
|
+
"""
|
100
|
+
self._id = id
|
101
|
+
|
102
|
+
@property
|
103
|
+
def address(self):
|
104
|
+
r"""Gets the address of this PublicIpRes.
|
105
|
+
|
106
|
+
弹性公网IP(EIP)。
|
107
|
+
|
108
|
+
:return: The address of this PublicIpRes.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._address
|
112
|
+
|
113
|
+
@address.setter
|
114
|
+
def address(self, address):
|
115
|
+
r"""Sets the address of this PublicIpRes.
|
116
|
+
|
117
|
+
弹性公网IP(EIP)。
|
118
|
+
|
119
|
+
:param address: The address of this PublicIpRes.
|
120
|
+
:type address: str
|
121
|
+
"""
|
122
|
+
self._address = address
|
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, PublicIpRes):
|
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,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class PublicZoneLines:
|
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
|
+
'line': 'str',
|
21
|
+
'line_name': 'str',
|
22
|
+
'create_time': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'line': 'line',
|
27
|
+
'line_name': 'line_name',
|
28
|
+
'create_time': 'create_time'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, line=None, line_name=None, create_time=None):
|
32
|
+
r"""PublicZoneLines
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param line: 线路ID。
|
37
|
+
:type line: str
|
38
|
+
:param line_name: 线路名称。
|
39
|
+
:type line_name: str
|
40
|
+
:param create_time: 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
|
41
|
+
:type create_time: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._line = None
|
47
|
+
self._line_name = None
|
48
|
+
self._create_time = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if line is not None:
|
52
|
+
self.line = line
|
53
|
+
if line_name is not None:
|
54
|
+
self.line_name = line_name
|
55
|
+
if create_time is not None:
|
56
|
+
self.create_time = create_time
|
57
|
+
|
58
|
+
@property
|
59
|
+
def line(self):
|
60
|
+
r"""Gets the line of this PublicZoneLines.
|
61
|
+
|
62
|
+
线路ID。
|
63
|
+
|
64
|
+
:return: The line of this PublicZoneLines.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._line
|
68
|
+
|
69
|
+
@line.setter
|
70
|
+
def line(self, line):
|
71
|
+
r"""Sets the line of this PublicZoneLines.
|
72
|
+
|
73
|
+
线路ID。
|
74
|
+
|
75
|
+
:param line: The line of this PublicZoneLines.
|
76
|
+
:type line: str
|
77
|
+
"""
|
78
|
+
self._line = line
|
79
|
+
|
80
|
+
@property
|
81
|
+
def line_name(self):
|
82
|
+
r"""Gets the line_name of this PublicZoneLines.
|
83
|
+
|
84
|
+
线路名称。
|
85
|
+
|
86
|
+
:return: The line_name of this PublicZoneLines.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._line_name
|
90
|
+
|
91
|
+
@line_name.setter
|
92
|
+
def line_name(self, line_name):
|
93
|
+
r"""Sets the line_name of this PublicZoneLines.
|
94
|
+
|
95
|
+
线路名称。
|
96
|
+
|
97
|
+
:param line_name: The line_name of this PublicZoneLines.
|
98
|
+
:type line_name: str
|
99
|
+
"""
|
100
|
+
self._line_name = line_name
|
101
|
+
|
102
|
+
@property
|
103
|
+
def create_time(self):
|
104
|
+
r"""Gets the create_time of this PublicZoneLines.
|
105
|
+
|
106
|
+
创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
|
107
|
+
|
108
|
+
:return: The create_time of this PublicZoneLines.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._create_time
|
112
|
+
|
113
|
+
@create_time.setter
|
114
|
+
def create_time(self, create_time):
|
115
|
+
r"""Sets the create_time of this PublicZoneLines.
|
116
|
+
|
117
|
+
创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
|
118
|
+
|
119
|
+
:param create_time: The create_time of this PublicZoneLines.
|
120
|
+
:type create_time: str
|
121
|
+
"""
|
122
|
+
self._create_time = create_time
|
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, PublicZoneLines):
|
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
|