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.
Files changed (208) hide show
  1. huaweicloudsdkdns/v2/__init__.py +82 -1
  2. huaweicloudsdkdns/v2/dns_async_client.py +2933 -1055
  3. huaweicloudsdkdns/v2/dns_client.py +2933 -1055
  4. huaweicloudsdkdns/v2/model/__init__.py +82 -1
  5. huaweicloudsdkdns/v2/model/alias_target.py +3 -3
  6. huaweicloudsdkdns/v2/model/associate_endpoint_ipaddress_request.py +139 -0
  7. huaweicloudsdkdns/v2/model/associate_endpoint_ipaddress_response.py +112 -0
  8. huaweicloudsdkdns/v2/model/associate_or_disassociate_router_with_rule_request_body.py +110 -0
  9. huaweicloudsdkdns/v2/model/associate_resolver_rule_router_request.py +139 -0
  10. huaweicloudsdkdns/v2/model/associate_resolver_rule_router_response.py +174 -0
  11. huaweicloudsdkdns/v2/model/associate_router_request.py +3 -3
  12. huaweicloudsdkdns/v2/model/batch_create_record_set_with_line.py +3 -3
  13. huaweicloudsdkdns/v2/model/batch_create_tag_request.py +3 -3
  14. huaweicloudsdkdns/v2/model/batch_delete_ptr_records_request.py +111 -0
  15. huaweicloudsdkdns/v2/model/batch_delete_ptr_records_request_body.py +115 -0
  16. huaweicloudsdkdns/v2/model/batch_delete_ptr_records_response.py +85 -0
  17. huaweicloudsdkdns/v2/model/batch_delete_record_set_with_line_request.py +3 -3
  18. huaweicloudsdkdns/v2/model/batch_delete_record_set_with_line_request_body.py +3 -3
  19. huaweicloudsdkdns/v2/model/batch_delete_record_set_with_line_response.py +3 -3
  20. huaweicloudsdkdns/v2/model/batch_delete_record_sets_request_body.py +6 -6
  21. huaweicloudsdkdns/v2/model/batch_delete_record_sets_response.py +3 -3
  22. huaweicloudsdkdns/v2/model/batch_delete_zones_request_body.py +6 -6
  23. huaweicloudsdkdns/v2/model/batch_delete_zones_response.py +3 -3
  24. huaweicloudsdkdns/v2/model/batch_set_record_sets_status_request_body.py +6 -6
  25. huaweicloudsdkdns/v2/model/batch_set_record_sets_status_response.py +3 -3
  26. huaweicloudsdkdns/v2/model/batch_set_zones_status_request_body.py +6 -6
  27. huaweicloudsdkdns/v2/model/batch_set_zones_status_response.py +3 -3
  28. huaweicloudsdkdns/v2/model/batch_update_record_set.py +9 -9
  29. huaweicloudsdkdns/v2/model/batch_update_record_set_with_line_request.py +3 -3
  30. huaweicloudsdkdns/v2/model/batch_update_record_set_with_line_request_body.py +3 -3
  31. huaweicloudsdkdns/v2/model/batch_update_record_set_with_line_response.py +3 -3
  32. huaweicloudsdkdns/v2/model/create_custom_line_response.py +6 -6
  33. huaweicloudsdkdns/v2/model/create_eip_record_set_response.py +12 -12
  34. huaweicloudsdkdns/v2/model/create_endpoint_request.py +111 -0
  35. huaweicloudsdkdns/v2/model/create_endpoint_request_body.py +198 -0
  36. huaweicloudsdkdns/v2/model/create_endpoint_response.py +112 -0
  37. huaweicloudsdkdns/v2/model/create_line_group_response.py +3 -3
  38. huaweicloudsdkdns/v2/model/create_line_groups_resp.py +3 -3
  39. huaweicloudsdkdns/v2/model/create_private_zone_req.py +9 -9
  40. huaweicloudsdkdns/v2/model/create_private_zone_response.py +39 -39
  41. huaweicloudsdkdns/v2/model/create_ptr_req.py +12 -12
  42. huaweicloudsdkdns/v2/model/create_ptr_request.py +111 -0
  43. huaweicloudsdkdns/v2/model/create_ptr_request_body.py +255 -0
  44. huaweicloudsdkdns/v2/model/create_ptr_response.py +311 -0
  45. huaweicloudsdkdns/v2/model/create_public_zone_req.py +15 -15
  46. huaweicloudsdkdns/v2/model/create_public_zone_response.py +39 -39
  47. huaweicloudsdkdns/v2/model/create_r_set_batch_lines_req.py +6 -6
  48. huaweicloudsdkdns/v2/model/create_record_set_request.py +3 -3
  49. huaweicloudsdkdns/v2/model/create_record_set_request_body.py +3 -3
  50. huaweicloudsdkdns/v2/model/create_record_set_response.py +27 -27
  51. huaweicloudsdkdns/v2/model/create_record_set_with_batch_lines_request.py +3 -3
  52. huaweicloudsdkdns/v2/model/create_record_set_with_batch_lines_response.py +3 -3
  53. huaweicloudsdkdns/v2/model/create_record_set_with_line_request.py +3 -3
  54. huaweicloudsdkdns/v2/model/create_record_set_with_line_request_body.py +12 -12
  55. huaweicloudsdkdns/v2/model/create_record_set_with_line_response.py +27 -27
  56. huaweicloudsdkdns/v2/model/create_resolver_rule_request.py +111 -0
  57. huaweicloudsdkdns/v2/model/create_resolver_rule_request_body.py +198 -0
  58. huaweicloudsdkdns/v2/model/create_resolver_rule_response.py +112 -0
  59. huaweicloudsdkdns/v2/model/create_tag_request.py +3 -3
  60. huaweicloudsdkdns/v2/model/delete_custom_line_request.py +3 -3
  61. huaweicloudsdkdns/v2/model/delete_custom_line_response.py +6 -6
  62. huaweicloudsdkdns/v2/model/delete_endpoint_request.py +114 -0
  63. huaweicloudsdkdns/v2/model/delete_endpoint_response.py +112 -0
  64. huaweicloudsdkdns/v2/model/delete_line_group_request.py +3 -3
  65. huaweicloudsdkdns/v2/model/delete_line_group_response.py +3 -3
  66. huaweicloudsdkdns/v2/model/delete_private_zone_request.py +3 -3
  67. huaweicloudsdkdns/v2/model/delete_private_zone_response.py +42 -42
  68. huaweicloudsdkdns/v2/model/delete_ptr_request.py +114 -0
  69. huaweicloudsdkdns/v2/model/delete_ptr_response.py +85 -0
  70. huaweicloudsdkdns/v2/model/delete_public_zone_request.py +3 -3
  71. huaweicloudsdkdns/v2/model/delete_public_zone_response.py +42 -42
  72. huaweicloudsdkdns/v2/model/delete_record_set_request.py +6 -6
  73. huaweicloudsdkdns/v2/model/delete_record_set_response.py +27 -27
  74. huaweicloudsdkdns/v2/model/delete_record_sets_request.py +6 -6
  75. huaweicloudsdkdns/v2/model/delete_record_sets_response.py +27 -27
  76. huaweicloudsdkdns/v2/model/delete_resolver_rule_request.py +114 -0
  77. huaweicloudsdkdns/v2/model/delete_resolver_rule_response.py +112 -0
  78. huaweicloudsdkdns/v2/model/delete_tag_request.py +3 -3
  79. huaweicloudsdkdns/v2/model/disable_dnssec_config_request.py +114 -0
  80. huaweicloudsdkdns/v2/model/disable_dnssec_config_response.py +116 -0
  81. huaweicloudsdkdns/v2/model/disassociate_endpoint_ipaddress_request.py +142 -0
  82. huaweicloudsdkdns/v2/model/disassociate_endpoint_ipaddress_response.py +112 -0
  83. huaweicloudsdkdns/v2/model/disassociate_resolver_rule_router_request.py +139 -0
  84. huaweicloudsdkdns/v2/model/disassociate_resolver_rule_router_response.py +174 -0
  85. huaweicloudsdkdns/v2/model/disassociate_router_request.py +3 -3
  86. huaweicloudsdkdns/v2/model/enable_dnssec_config_request.py +114 -0
  87. huaweicloudsdkdns/v2/model/enable_dnssec_config_response.py +464 -0
  88. huaweicloudsdkdns/v2/model/endpoint_resp.py +347 -0
  89. huaweicloudsdkdns/v2/model/floating_ips_ptr.py +339 -0
  90. huaweicloudsdkdns/v2/model/ip_info.py +115 -0
  91. huaweicloudsdkdns/v2/model/ip_value.py +115 -0
  92. huaweicloudsdkdns/v2/model/ipaddress_info.py +143 -0
  93. huaweicloudsdkdns/v2/model/ipaddresses.py +110 -0
  94. huaweicloudsdkdns/v2/model/ipaddresses_data.py +289 -0
  95. huaweicloudsdkdns/v2/model/line.py +6 -6
  96. huaweicloudsdkdns/v2/model/list_endpoint_ipaddresses_request.py +114 -0
  97. huaweicloudsdkdns/v2/model/list_endpoint_ipaddresses_response.py +116 -0
  98. huaweicloudsdkdns/v2/model/list_endpoint_vpcs_request.py +173 -0
  99. huaweicloudsdkdns/v2/model/list_endpoint_vpcs_response.py +141 -0
  100. huaweicloudsdkdns/v2/model/list_endpoints_request.py +230 -0
  101. huaweicloudsdkdns/v2/model/list_endpoints_response.py +141 -0
  102. huaweicloudsdkdns/v2/model/list_private_zones_request.py +15 -15
  103. huaweicloudsdkdns/v2/model/list_private_zones_response.py +3 -3
  104. huaweicloudsdkdns/v2/model/list_ptr_records_floating_resp.py +12 -12
  105. huaweicloudsdkdns/v2/model/list_ptr_records_request.py +3 -3
  106. huaweicloudsdkdns/v2/model/list_ptr_records_response.py +3 -3
  107. huaweicloudsdkdns/v2/model/list_ptrs_request.py +289 -0
  108. huaweicloudsdkdns/v2/model/list_ptrs_response.py +166 -0
  109. huaweicloudsdkdns/v2/model/list_public_zone_lines_request.py +172 -0
  110. huaweicloudsdkdns/v2/model/list_public_zone_lines_response.py +166 -0
  111. huaweicloudsdkdns/v2/model/list_public_zones_request.py +18 -18
  112. huaweicloudsdkdns/v2/model/list_public_zones_response.py +3 -3
  113. huaweicloudsdkdns/v2/model/list_record_sets.py +27 -27
  114. huaweicloudsdkdns/v2/model/list_record_sets_by_zone_request.py +24 -24
  115. huaweicloudsdkdns/v2/model/list_record_sets_by_zone_response.py +3 -3
  116. huaweicloudsdkdns/v2/model/list_record_sets_request.py +27 -27
  117. huaweicloudsdkdns/v2/model/list_record_sets_response.py +3 -3
  118. huaweicloudsdkdns/v2/model/list_record_sets_with_line_request.py +33 -33
  119. huaweicloudsdkdns/v2/model/list_record_sets_with_line_response.py +3 -3
  120. huaweicloudsdkdns/v2/model/list_record_sets_with_tags.py +27 -27
  121. huaweicloudsdkdns/v2/model/list_resolver_rule_param.py +376 -0
  122. huaweicloudsdkdns/v2/model/list_resolver_rules_request.py +289 -0
  123. huaweicloudsdkdns/v2/model/list_resolver_rules_response.py +191 -0
  124. huaweicloudsdkdns/v2/model/match.py +3 -3
  125. huaweicloudsdkdns/v2/model/page_info.py +173 -0
  126. huaweicloudsdkdns/v2/model/private_zone_resp.py +42 -42
  127. huaweicloudsdkdns/v2/model/public_ip_req.py +144 -0
  128. huaweicloudsdkdns/v2/model/public_ip_res.py +173 -0
  129. huaweicloudsdkdns/v2/model/public_zone_lines.py +173 -0
  130. huaweicloudsdkdns/v2/model/public_zone_resp.py +39 -39
  131. huaweicloudsdkdns/v2/model/query_record_set_with_line_and_tags_resp.py +57 -28
  132. huaweicloudsdkdns/v2/model/query_record_set_with_line_resp.py +27 -27
  133. huaweicloudsdkdns/v2/model/recordset_data.py +27 -27
  134. huaweicloudsdkdns/v2/model/resolver_rule_param.py +347 -0
  135. huaweicloudsdkdns/v2/model/restore_ptr_req.py +3 -3
  136. huaweicloudsdkdns/v2/model/router_for_rule.py +114 -0
  137. huaweicloudsdkdns/v2/model/set_private_zone_proxy_pattern_request.py +139 -0
  138. huaweicloudsdkdns/v2/model/set_private_zone_proxy_pattern_request_body.py +114 -0
  139. huaweicloudsdkdns/v2/model/set_private_zone_proxy_pattern_response.py +85 -0
  140. huaweicloudsdkdns/v2/model/set_record_sets_status_request.py +3 -3
  141. huaweicloudsdkdns/v2/model/set_record_sets_status_response.py +27 -27
  142. huaweicloudsdkdns/v2/model/show_dnssec_config_request.py +114 -0
  143. huaweicloudsdkdns/v2/model/show_dnssec_config_response.py +464 -0
  144. huaweicloudsdkdns/v2/model/show_endpoint_request.py +114 -0
  145. huaweicloudsdkdns/v2/model/show_endpoint_response.py +112 -0
  146. huaweicloudsdkdns/v2/model/show_line_group_request.py +3 -3
  147. huaweicloudsdkdns/v2/model/show_line_group_response.py +3 -3
  148. huaweicloudsdkdns/v2/model/show_private_zone_name_server_request.py +3 -3
  149. huaweicloudsdkdns/v2/model/show_private_zone_request.py +3 -3
  150. huaweicloudsdkdns/v2/model/show_private_zone_response.py +42 -42
  151. huaweicloudsdkdns/v2/model/show_ptr_record_set_response.py +12 -12
  152. huaweicloudsdkdns/v2/model/show_ptr_request.py +114 -0
  153. huaweicloudsdkdns/v2/model/show_ptr_response.py +311 -0
  154. huaweicloudsdkdns/v2/model/show_public_zone_name_server_request.py +3 -3
  155. huaweicloudsdkdns/v2/model/show_public_zone_name_server_response.py +3 -3
  156. huaweicloudsdkdns/v2/model/show_public_zone_request.py +3 -3
  157. huaweicloudsdkdns/v2/model/show_public_zone_response.py +45 -45
  158. huaweicloudsdkdns/v2/model/show_record_set_by_zone_request.py +27 -27
  159. huaweicloudsdkdns/v2/model/show_record_set_by_zone_resp.py +27 -27
  160. huaweicloudsdkdns/v2/model/show_record_set_by_zone_response.py +3 -3
  161. huaweicloudsdkdns/v2/model/show_record_set_request.py +6 -6
  162. huaweicloudsdkdns/v2/model/show_record_set_response.py +27 -27
  163. huaweicloudsdkdns/v2/model/show_record_set_with_line_request.py +6 -6
  164. huaweicloudsdkdns/v2/model/show_record_set_with_line_response.py +27 -27
  165. huaweicloudsdkdns/v2/model/show_resolver_rule_request.py +114 -0
  166. huaweicloudsdkdns/v2/model/show_resolver_rule_resp_param.py +405 -0
  167. huaweicloudsdkdns/v2/model/show_resolver_rule_response.py +112 -0
  168. huaweicloudsdkdns/v2/model/show_resource_tag_request.py +3 -3
  169. huaweicloudsdkdns/v2/model/update_custom_line_request.py +3 -3
  170. huaweicloudsdkdns/v2/model/update_custom_line_response.py +6 -6
  171. huaweicloudsdkdns/v2/model/update_endpoint_request.py +139 -0
  172. huaweicloudsdkdns/v2/model/update_endpoint_request_body.py +114 -0
  173. huaweicloudsdkdns/v2/model/update_endpoint_response.py +112 -0
  174. huaweicloudsdkdns/v2/model/update_line_groups_request.py +3 -3
  175. huaweicloudsdkdns/v2/model/update_line_groups_response.py +3 -3
  176. huaweicloudsdkdns/v2/model/update_private_zone_info_req.py +3 -3
  177. huaweicloudsdkdns/v2/model/update_private_zone_request.py +3 -3
  178. huaweicloudsdkdns/v2/model/update_private_zone_response.py +39 -39
  179. huaweicloudsdkdns/v2/model/update_private_zone_status_request.py +139 -0
  180. huaweicloudsdkdns/v2/model/update_private_zone_status_response.py +518 -0
  181. huaweicloudsdkdns/v2/model/update_ptr_record_response.py +12 -12
  182. huaweicloudsdkdns/v2/model/update_ptr_req.py +9 -9
  183. huaweicloudsdkdns/v2/model/update_ptr_request.py +139 -0
  184. huaweicloudsdkdns/v2/model/update_ptr_request_body.py +172 -0
  185. huaweicloudsdkdns/v2/model/update_ptr_response.py +311 -0
  186. huaweicloudsdkdns/v2/model/update_public_zone_info.py +3 -3
  187. huaweicloudsdkdns/v2/model/update_public_zone_request.py +3 -3
  188. huaweicloudsdkdns/v2/model/update_public_zone_response.py +36 -36
  189. huaweicloudsdkdns/v2/model/update_public_zone_status_request.py +7 -7
  190. huaweicloudsdkdns/v2/model/update_public_zone_status_response.py +36 -36
  191. huaweicloudsdkdns/v2/model/update_record_set_req.py +3 -3
  192. huaweicloudsdkdns/v2/model/update_record_set_request.py +6 -6
  193. huaweicloudsdkdns/v2/model/update_record_set_response.py +27 -27
  194. huaweicloudsdkdns/v2/model/update_record_sets_req.py +3 -3
  195. huaweicloudsdkdns/v2/model/update_record_sets_request.py +6 -6
  196. huaweicloudsdkdns/v2/model/update_record_sets_response.py +27 -27
  197. huaweicloudsdkdns/v2/model/update_resolver_rule_request.py +139 -0
  198. huaweicloudsdkdns/v2/model/update_resolver_rule_request_body.py +144 -0
  199. huaweicloudsdkdns/v2/model/update_resolver_rule_response.py +112 -0
  200. huaweicloudsdkdns/v2/model/{update_public_zone_status_request_body.py → update_zone_status_request_body.py} +10 -10
  201. huaweicloudsdkdns/v2/model/vpcs_data.py +173 -0
  202. huaweicloudsdkdns/v2/model/zone_data.py +52 -52
  203. {huaweicloudsdkdns-3.1.144.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/METADATA +2 -2
  204. huaweicloudsdkdns-3.1.146.dist-info/RECORD +273 -0
  205. huaweicloudsdkdns-3.1.144.dist-info/RECORD +0 -192
  206. {huaweicloudsdkdns-3.1.144.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/LICENSE +0 -0
  207. {huaweicloudsdkdns-3.1.144.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/WHEEL +0 -0
  208. {huaweicloudsdkdns-3.1.144.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,347 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class EndpointResp:
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
+ 'id': 'str',
21
+ 'name': 'str',
22
+ 'direction': 'str',
23
+ 'status': 'str',
24
+ 'vpc_id': 'str',
25
+ 'ipaddress_count': 'int',
26
+ 'resolver_rule_count': 'int',
27
+ 'create_time': 'str',
28
+ 'update_time': 'str'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'id': 'id',
33
+ 'name': 'name',
34
+ 'direction': 'direction',
35
+ 'status': 'status',
36
+ 'vpc_id': 'vpc_id',
37
+ 'ipaddress_count': 'ipaddress_count',
38
+ 'resolver_rule_count': 'resolver_rule_count',
39
+ 'create_time': 'create_time',
40
+ 'update_time': 'update_time'
41
+ }
42
+
43
+ def __init__(self, id=None, name=None, direction=None, status=None, vpc_id=None, ipaddress_count=None, resolver_rule_count=None, create_time=None, update_time=None):
44
+ r"""EndpointResp
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param id: 终端节点的ID,UUID形式的一个资源标识。
49
+ :type id: str
50
+ :param name: 终端节点的名称。
51
+ :type name: str
52
+ :param direction: 终端节点方向。 取值: inbound,表示入站终端节点。 outbound,表示出站终端节点。
53
+ :type direction: str
54
+ :param status: 资源状态。 取值范围:PENDING_CREATE, ACTIVE, PENDING_DELETE, ERROR。
55
+ :type status: str
56
+ :param vpc_id: 终端节点所属的VPC ID。
57
+ :type vpc_id: str
58
+ :param ipaddress_count: 该终端节点下的IP地址数量。
59
+ :type ipaddress_count: int
60
+ :param resolver_rule_count: 该终端节点下的转发规则数量。 仅创建出站终端节点时返回该参数。
61
+ :type resolver_rule_count: int
62
+ :param create_time: 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
63
+ :type create_time: str
64
+ :param update_time: 更新时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
65
+ :type update_time: str
66
+ """
67
+
68
+
69
+
70
+ self._id = None
71
+ self._name = None
72
+ self._direction = None
73
+ self._status = None
74
+ self._vpc_id = None
75
+ self._ipaddress_count = None
76
+ self._resolver_rule_count = None
77
+ self._create_time = None
78
+ self._update_time = None
79
+ self.discriminator = None
80
+
81
+ if id is not None:
82
+ self.id = id
83
+ if name is not None:
84
+ self.name = name
85
+ if direction is not None:
86
+ self.direction = direction
87
+ if status is not None:
88
+ self.status = status
89
+ if vpc_id is not None:
90
+ self.vpc_id = vpc_id
91
+ if ipaddress_count is not None:
92
+ self.ipaddress_count = ipaddress_count
93
+ if resolver_rule_count is not None:
94
+ self.resolver_rule_count = resolver_rule_count
95
+ if create_time is not None:
96
+ self.create_time = create_time
97
+ if update_time is not None:
98
+ self.update_time = update_time
99
+
100
+ @property
101
+ def id(self):
102
+ r"""Gets the id of this EndpointResp.
103
+
104
+ 终端节点的ID,UUID形式的一个资源标识。
105
+
106
+ :return: The id of this EndpointResp.
107
+ :rtype: str
108
+ """
109
+ return self._id
110
+
111
+ @id.setter
112
+ def id(self, id):
113
+ r"""Sets the id of this EndpointResp.
114
+
115
+ 终端节点的ID,UUID形式的一个资源标识。
116
+
117
+ :param id: The id of this EndpointResp.
118
+ :type id: str
119
+ """
120
+ self._id = id
121
+
122
+ @property
123
+ def name(self):
124
+ r"""Gets the name of this EndpointResp.
125
+
126
+ 终端节点的名称。
127
+
128
+ :return: The name of this EndpointResp.
129
+ :rtype: str
130
+ """
131
+ return self._name
132
+
133
+ @name.setter
134
+ def name(self, name):
135
+ r"""Sets the name of this EndpointResp.
136
+
137
+ 终端节点的名称。
138
+
139
+ :param name: The name of this EndpointResp.
140
+ :type name: str
141
+ """
142
+ self._name = name
143
+
144
+ @property
145
+ def direction(self):
146
+ r"""Gets the direction of this EndpointResp.
147
+
148
+ 终端节点方向。 取值: inbound,表示入站终端节点。 outbound,表示出站终端节点。
149
+
150
+ :return: The direction of this EndpointResp.
151
+ :rtype: str
152
+ """
153
+ return self._direction
154
+
155
+ @direction.setter
156
+ def direction(self, direction):
157
+ r"""Sets the direction of this EndpointResp.
158
+
159
+ 终端节点方向。 取值: inbound,表示入站终端节点。 outbound,表示出站终端节点。
160
+
161
+ :param direction: The direction of this EndpointResp.
162
+ :type direction: str
163
+ """
164
+ self._direction = direction
165
+
166
+ @property
167
+ def status(self):
168
+ r"""Gets the status of this EndpointResp.
169
+
170
+ 资源状态。 取值范围:PENDING_CREATE, ACTIVE, PENDING_DELETE, ERROR。
171
+
172
+ :return: The status of this EndpointResp.
173
+ :rtype: str
174
+ """
175
+ return self._status
176
+
177
+ @status.setter
178
+ def status(self, status):
179
+ r"""Sets the status of this EndpointResp.
180
+
181
+ 资源状态。 取值范围:PENDING_CREATE, ACTIVE, PENDING_DELETE, ERROR。
182
+
183
+ :param status: The status of this EndpointResp.
184
+ :type status: str
185
+ """
186
+ self._status = status
187
+
188
+ @property
189
+ def vpc_id(self):
190
+ r"""Gets the vpc_id of this EndpointResp.
191
+
192
+ 终端节点所属的VPC ID。
193
+
194
+ :return: The vpc_id of this EndpointResp.
195
+ :rtype: str
196
+ """
197
+ return self._vpc_id
198
+
199
+ @vpc_id.setter
200
+ def vpc_id(self, vpc_id):
201
+ r"""Sets the vpc_id of this EndpointResp.
202
+
203
+ 终端节点所属的VPC ID。
204
+
205
+ :param vpc_id: The vpc_id of this EndpointResp.
206
+ :type vpc_id: str
207
+ """
208
+ self._vpc_id = vpc_id
209
+
210
+ @property
211
+ def ipaddress_count(self):
212
+ r"""Gets the ipaddress_count of this EndpointResp.
213
+
214
+ 该终端节点下的IP地址数量。
215
+
216
+ :return: The ipaddress_count of this EndpointResp.
217
+ :rtype: int
218
+ """
219
+ return self._ipaddress_count
220
+
221
+ @ipaddress_count.setter
222
+ def ipaddress_count(self, ipaddress_count):
223
+ r"""Sets the ipaddress_count of this EndpointResp.
224
+
225
+ 该终端节点下的IP地址数量。
226
+
227
+ :param ipaddress_count: The ipaddress_count of this EndpointResp.
228
+ :type ipaddress_count: int
229
+ """
230
+ self._ipaddress_count = ipaddress_count
231
+
232
+ @property
233
+ def resolver_rule_count(self):
234
+ r"""Gets the resolver_rule_count of this EndpointResp.
235
+
236
+ 该终端节点下的转发规则数量。 仅创建出站终端节点时返回该参数。
237
+
238
+ :return: The resolver_rule_count of this EndpointResp.
239
+ :rtype: int
240
+ """
241
+ return self._resolver_rule_count
242
+
243
+ @resolver_rule_count.setter
244
+ def resolver_rule_count(self, resolver_rule_count):
245
+ r"""Sets the resolver_rule_count of this EndpointResp.
246
+
247
+ 该终端节点下的转发规则数量。 仅创建出站终端节点时返回该参数。
248
+
249
+ :param resolver_rule_count: The resolver_rule_count of this EndpointResp.
250
+ :type resolver_rule_count: int
251
+ """
252
+ self._resolver_rule_count = resolver_rule_count
253
+
254
+ @property
255
+ def create_time(self):
256
+ r"""Gets the create_time of this EndpointResp.
257
+
258
+ 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
259
+
260
+ :return: The create_time of this EndpointResp.
261
+ :rtype: str
262
+ """
263
+ return self._create_time
264
+
265
+ @create_time.setter
266
+ def create_time(self, create_time):
267
+ r"""Sets the create_time of this EndpointResp.
268
+
269
+ 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
270
+
271
+ :param create_time: The create_time of this EndpointResp.
272
+ :type create_time: str
273
+ """
274
+ self._create_time = create_time
275
+
276
+ @property
277
+ def update_time(self):
278
+ r"""Gets the update_time of this EndpointResp.
279
+
280
+ 更新时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
281
+
282
+ :return: The update_time of this EndpointResp.
283
+ :rtype: str
284
+ """
285
+ return self._update_time
286
+
287
+ @update_time.setter
288
+ def update_time(self, update_time):
289
+ r"""Sets the update_time of this EndpointResp.
290
+
291
+ 更新时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
292
+
293
+ :param update_time: The update_time of this EndpointResp.
294
+ :type update_time: str
295
+ """
296
+ self._update_time = update_time
297
+
298
+ def to_dict(self):
299
+ """Returns the model properties as a dict"""
300
+ result = {}
301
+
302
+ for attr, _ in six.iteritems(self.openapi_types):
303
+ value = getattr(self, attr)
304
+ if isinstance(value, list):
305
+ result[attr] = list(map(
306
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
307
+ value
308
+ ))
309
+ elif hasattr(value, "to_dict"):
310
+ result[attr] = value.to_dict()
311
+ elif isinstance(value, dict):
312
+ result[attr] = dict(map(
313
+ lambda item: (item[0], item[1].to_dict())
314
+ if hasattr(item[1], "to_dict") else item,
315
+ value.items()
316
+ ))
317
+ else:
318
+ if attr in self.sensitive_list:
319
+ result[attr] = "****"
320
+ else:
321
+ result[attr] = value
322
+
323
+ return result
324
+
325
+ def to_str(self):
326
+ """Returns the string representation of the model"""
327
+ import simplejson as json
328
+ if six.PY2:
329
+ import sys
330
+ reload(sys)
331
+ sys.setdefaultencoding("utf-8")
332
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
333
+
334
+ def __repr__(self):
335
+ """For `print`"""
336
+ return self.to_str()
337
+
338
+ def __eq__(self, other):
339
+ """Returns true if both objects are equal"""
340
+ if not isinstance(other, EndpointResp):
341
+ return False
342
+
343
+ return self.__dict__ == other.__dict__
344
+
345
+ def __ne__(self, other):
346
+ """Returns true if both objects are not equal"""
347
+ return not self == other
@@ -0,0 +1,339 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class FloatingIpsPtr:
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
+ 'ptrdnames': 'list[str]',
21
+ 'id': 'str',
22
+ 'publicip': 'PublicIpRes',
23
+ 'description': 'str',
24
+ 'ttl': 'int',
25
+ 'status': 'str',
26
+ 'links': 'PageLink',
27
+ 'enterprise_project_id': 'str',
28
+ 'tags': 'list[Tag]'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'ptrdnames': 'ptrdnames',
33
+ 'id': 'id',
34
+ 'publicip': 'publicip',
35
+ 'description': 'description',
36
+ 'ttl': 'ttl',
37
+ 'status': 'status',
38
+ 'links': 'links',
39
+ 'enterprise_project_id': 'enterprise_project_id',
40
+ 'tags': 'tags'
41
+ }
42
+
43
+ def __init__(self, ptrdnames=None, id=None, publicip=None, description=None, ttl=None, status=None, links=None, enterprise_project_id=None, tags=None):
44
+ r"""FloatingIpsPtr
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param ptrdnames: 反向解析记录对应的域名列表,最大个数不超过10个。
49
+ :type ptrdnames: list[str]
50
+ :param id: 反向解析记录的ID。
51
+ :type id: str
52
+ :param publicip:
53
+ :type publicip: :class:`huaweicloudsdkdns.v2.PublicIpRes`
54
+ :param description: 对反向解析记录的描述。
55
+ :type description: str
56
+ :param ttl: 反向解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
57
+ :type ttl: int
58
+ :param status: 资源状态。
59
+ :type status: str
60
+ :param links:
61
+ :type links: :class:`huaweicloudsdkdns.v2.PageLink`
62
+ :param enterprise_project_id: 反向解析关联的企业项目ID,长度不超过36个字符。
63
+ :type enterprise_project_id: str
64
+ :param tags: 资源标签。
65
+ :type tags: list[:class:`huaweicloudsdkdns.v2.Tag`]
66
+ """
67
+
68
+
69
+
70
+ self._ptrdnames = None
71
+ self._id = None
72
+ self._publicip = None
73
+ self._description = None
74
+ self._ttl = None
75
+ self._status = None
76
+ self._links = None
77
+ self._enterprise_project_id = None
78
+ self._tags = None
79
+ self.discriminator = None
80
+
81
+ if ptrdnames is not None:
82
+ self.ptrdnames = ptrdnames
83
+ if id is not None:
84
+ self.id = id
85
+ if publicip is not None:
86
+ self.publicip = publicip
87
+ if description is not None:
88
+ self.description = description
89
+ if ttl is not None:
90
+ self.ttl = ttl
91
+ if status is not None:
92
+ self.status = status
93
+ if links is not None:
94
+ self.links = links
95
+ if enterprise_project_id is not None:
96
+ self.enterprise_project_id = enterprise_project_id
97
+ if tags is not None:
98
+ self.tags = tags
99
+
100
+ @property
101
+ def ptrdnames(self):
102
+ r"""Gets the ptrdnames of this FloatingIpsPtr.
103
+
104
+ 反向解析记录对应的域名列表,最大个数不超过10个。
105
+
106
+ :return: The ptrdnames of this FloatingIpsPtr.
107
+ :rtype: list[str]
108
+ """
109
+ return self._ptrdnames
110
+
111
+ @ptrdnames.setter
112
+ def ptrdnames(self, ptrdnames):
113
+ r"""Sets the ptrdnames of this FloatingIpsPtr.
114
+
115
+ 反向解析记录对应的域名列表,最大个数不超过10个。
116
+
117
+ :param ptrdnames: The ptrdnames of this FloatingIpsPtr.
118
+ :type ptrdnames: list[str]
119
+ """
120
+ self._ptrdnames = ptrdnames
121
+
122
+ @property
123
+ def id(self):
124
+ r"""Gets the id of this FloatingIpsPtr.
125
+
126
+ 反向解析记录的ID。
127
+
128
+ :return: The id of this FloatingIpsPtr.
129
+ :rtype: str
130
+ """
131
+ return self._id
132
+
133
+ @id.setter
134
+ def id(self, id):
135
+ r"""Sets the id of this FloatingIpsPtr.
136
+
137
+ 反向解析记录的ID。
138
+
139
+ :param id: The id of this FloatingIpsPtr.
140
+ :type id: str
141
+ """
142
+ self._id = id
143
+
144
+ @property
145
+ def publicip(self):
146
+ r"""Gets the publicip of this FloatingIpsPtr.
147
+
148
+ :return: The publicip of this FloatingIpsPtr.
149
+ :rtype: :class:`huaweicloudsdkdns.v2.PublicIpRes`
150
+ """
151
+ return self._publicip
152
+
153
+ @publicip.setter
154
+ def publicip(self, publicip):
155
+ r"""Sets the publicip of this FloatingIpsPtr.
156
+
157
+ :param publicip: The publicip of this FloatingIpsPtr.
158
+ :type publicip: :class:`huaweicloudsdkdns.v2.PublicIpRes`
159
+ """
160
+ self._publicip = publicip
161
+
162
+ @property
163
+ def description(self):
164
+ r"""Gets the description of this FloatingIpsPtr.
165
+
166
+ 对反向解析记录的描述。
167
+
168
+ :return: The description of this FloatingIpsPtr.
169
+ :rtype: str
170
+ """
171
+ return self._description
172
+
173
+ @description.setter
174
+ def description(self, description):
175
+ r"""Sets the description of this FloatingIpsPtr.
176
+
177
+ 对反向解析记录的描述。
178
+
179
+ :param description: The description of this FloatingIpsPtr.
180
+ :type description: str
181
+ """
182
+ self._description = description
183
+
184
+ @property
185
+ def ttl(self):
186
+ r"""Gets the ttl of this FloatingIpsPtr.
187
+
188
+ 反向解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
189
+
190
+ :return: The ttl of this FloatingIpsPtr.
191
+ :rtype: int
192
+ """
193
+ return self._ttl
194
+
195
+ @ttl.setter
196
+ def ttl(self, ttl):
197
+ r"""Sets the ttl of this FloatingIpsPtr.
198
+
199
+ 反向解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
200
+
201
+ :param ttl: The ttl of this FloatingIpsPtr.
202
+ :type ttl: int
203
+ """
204
+ self._ttl = ttl
205
+
206
+ @property
207
+ def status(self):
208
+ r"""Gets the status of this FloatingIpsPtr.
209
+
210
+ 资源状态。
211
+
212
+ :return: The status of this FloatingIpsPtr.
213
+ :rtype: str
214
+ """
215
+ return self._status
216
+
217
+ @status.setter
218
+ def status(self, status):
219
+ r"""Sets the status of this FloatingIpsPtr.
220
+
221
+ 资源状态。
222
+
223
+ :param status: The status of this FloatingIpsPtr.
224
+ :type status: str
225
+ """
226
+ self._status = status
227
+
228
+ @property
229
+ def links(self):
230
+ r"""Gets the links of this FloatingIpsPtr.
231
+
232
+ :return: The links of this FloatingIpsPtr.
233
+ :rtype: :class:`huaweicloudsdkdns.v2.PageLink`
234
+ """
235
+ return self._links
236
+
237
+ @links.setter
238
+ def links(self, links):
239
+ r"""Sets the links of this FloatingIpsPtr.
240
+
241
+ :param links: The links of this FloatingIpsPtr.
242
+ :type links: :class:`huaweicloudsdkdns.v2.PageLink`
243
+ """
244
+ self._links = links
245
+
246
+ @property
247
+ def enterprise_project_id(self):
248
+ r"""Gets the enterprise_project_id of this FloatingIpsPtr.
249
+
250
+ 反向解析关联的企业项目ID,长度不超过36个字符。
251
+
252
+ :return: The enterprise_project_id of this FloatingIpsPtr.
253
+ :rtype: str
254
+ """
255
+ return self._enterprise_project_id
256
+
257
+ @enterprise_project_id.setter
258
+ def enterprise_project_id(self, enterprise_project_id):
259
+ r"""Sets the enterprise_project_id of this FloatingIpsPtr.
260
+
261
+ 反向解析关联的企业项目ID,长度不超过36个字符。
262
+
263
+ :param enterprise_project_id: The enterprise_project_id of this FloatingIpsPtr.
264
+ :type enterprise_project_id: str
265
+ """
266
+ self._enterprise_project_id = enterprise_project_id
267
+
268
+ @property
269
+ def tags(self):
270
+ r"""Gets the tags of this FloatingIpsPtr.
271
+
272
+ 资源标签。
273
+
274
+ :return: The tags of this FloatingIpsPtr.
275
+ :rtype: list[:class:`huaweicloudsdkdns.v2.Tag`]
276
+ """
277
+ return self._tags
278
+
279
+ @tags.setter
280
+ def tags(self, tags):
281
+ r"""Sets the tags of this FloatingIpsPtr.
282
+
283
+ 资源标签。
284
+
285
+ :param tags: The tags of this FloatingIpsPtr.
286
+ :type tags: list[:class:`huaweicloudsdkdns.v2.Tag`]
287
+ """
288
+ self._tags = tags
289
+
290
+ def to_dict(self):
291
+ """Returns the model properties as a dict"""
292
+ result = {}
293
+
294
+ for attr, _ in six.iteritems(self.openapi_types):
295
+ value = getattr(self, attr)
296
+ if isinstance(value, list):
297
+ result[attr] = list(map(
298
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
299
+ value
300
+ ))
301
+ elif hasattr(value, "to_dict"):
302
+ result[attr] = value.to_dict()
303
+ elif isinstance(value, dict):
304
+ result[attr] = dict(map(
305
+ lambda item: (item[0], item[1].to_dict())
306
+ if hasattr(item[1], "to_dict") else item,
307
+ value.items()
308
+ ))
309
+ else:
310
+ if attr in self.sensitive_list:
311
+ result[attr] = "****"
312
+ else:
313
+ result[attr] = value
314
+
315
+ return result
316
+
317
+ def to_str(self):
318
+ """Returns the string representation of the model"""
319
+ import simplejson as json
320
+ if six.PY2:
321
+ import sys
322
+ reload(sys)
323
+ sys.setdefaultencoding("utf-8")
324
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
325
+
326
+ def __repr__(self):
327
+ """For `print`"""
328
+ return self.to_str()
329
+
330
+ def __eq__(self, other):
331
+ """Returns true if both objects are equal"""
332
+ if not isinstance(other, FloatingIpsPtr):
333
+ return False
334
+
335
+ return self.__dict__ == other.__dict__
336
+
337
+ def __ne__(self, other):
338
+ """Returns true if both objects are not equal"""
339
+ return not self == other