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.
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.145.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.145.dist-info/RECORD +0 -192
  206. {huaweicloudsdkdns-3.1.145.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/LICENSE +0 -0
  207. {huaweicloudsdkdns-3.1.145.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/WHEEL +0 -0
  208. {huaweicloudsdkdns-3.1.145.dist-info → huaweicloudsdkdns-3.1.146.dist-info}/top_level.txt +0 -0
@@ -46,13 +46,13 @@ class CreateEipRecordSetResponse(SdkResponse):
46
46
 
47
47
  The model defined in huaweicloud sdk
48
48
 
49
- :param id: PTR记录的ID,格式形如{region}:{floatingip_id}。
49
+ :param id: 反向解析记录的ID,格式形如{region}:{floatingip_id}。
50
50
  :type id: str
51
- :param ptrdname: PTR记录对应的域名。
51
+ :param ptrdname: 反向解析记录对应的域名。
52
52
  :type ptrdname: str
53
- :param description: 对PTR记录的描述。
53
+ :param description: 对反向解析记录的描述。
54
54
  :type description: str
55
- :param ttl: PTR记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
55
+ :param ttl: 反向解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
56
56
  :type ttl: int
57
57
  :param address: 弹性公网IP的IP地址。
58
58
  :type address: str
@@ -102,7 +102,7 @@ class CreateEipRecordSetResponse(SdkResponse):
102
102
  def id(self):
103
103
  r"""Gets the id of this CreateEipRecordSetResponse.
104
104
 
105
- PTR记录的ID,格式形如{region}:{floatingip_id}。
105
+ 反向解析记录的ID,格式形如{region}:{floatingip_id}。
106
106
 
107
107
  :return: The id of this CreateEipRecordSetResponse.
108
108
  :rtype: str
@@ -113,7 +113,7 @@ class CreateEipRecordSetResponse(SdkResponse):
113
113
  def id(self, id):
114
114
  r"""Sets the id of this CreateEipRecordSetResponse.
115
115
 
116
- PTR记录的ID,格式形如{region}:{floatingip_id}。
116
+ 反向解析记录的ID,格式形如{region}:{floatingip_id}。
117
117
 
118
118
  :param id: The id of this CreateEipRecordSetResponse.
119
119
  :type id: str
@@ -124,7 +124,7 @@ class CreateEipRecordSetResponse(SdkResponse):
124
124
  def ptrdname(self):
125
125
  r"""Gets the ptrdname of this CreateEipRecordSetResponse.
126
126
 
127
- PTR记录对应的域名。
127
+ 反向解析记录对应的域名。
128
128
 
129
129
  :return: The ptrdname of this CreateEipRecordSetResponse.
130
130
  :rtype: str
@@ -135,7 +135,7 @@ class CreateEipRecordSetResponse(SdkResponse):
135
135
  def ptrdname(self, ptrdname):
136
136
  r"""Sets the ptrdname of this CreateEipRecordSetResponse.
137
137
 
138
- PTR记录对应的域名。
138
+ 反向解析记录对应的域名。
139
139
 
140
140
  :param ptrdname: The ptrdname of this CreateEipRecordSetResponse.
141
141
  :type ptrdname: str
@@ -146,7 +146,7 @@ class CreateEipRecordSetResponse(SdkResponse):
146
146
  def description(self):
147
147
  r"""Gets the description of this CreateEipRecordSetResponse.
148
148
 
149
- 对PTR记录的描述。
149
+ 对反向解析记录的描述。
150
150
 
151
151
  :return: The description of this CreateEipRecordSetResponse.
152
152
  :rtype: str
@@ -157,7 +157,7 @@ class CreateEipRecordSetResponse(SdkResponse):
157
157
  def description(self, description):
158
158
  r"""Sets the description of this CreateEipRecordSetResponse.
159
159
 
160
- 对PTR记录的描述。
160
+ 对反向解析记录的描述。
161
161
 
162
162
  :param description: The description of this CreateEipRecordSetResponse.
163
163
  :type description: str
@@ -168,7 +168,7 @@ class CreateEipRecordSetResponse(SdkResponse):
168
168
  def ttl(self):
169
169
  r"""Gets the ttl of this CreateEipRecordSetResponse.
170
170
 
171
- PTR记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
171
+ 反向解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
172
172
 
173
173
  :return: The ttl of this CreateEipRecordSetResponse.
174
174
  :rtype: int
@@ -179,7 +179,7 @@ class CreateEipRecordSetResponse(SdkResponse):
179
179
  def ttl(self, ttl):
180
180
  r"""Sets the ttl of this CreateEipRecordSetResponse.
181
181
 
182
- PTR记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
182
+ 反向解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
183
183
 
184
184
  :param ttl: The ttl of this CreateEipRecordSetResponse.
185
185
  :type ttl: int
@@ -0,0 +1,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateEndpointRequest:
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
+ 'body': 'CreateEndpointRequestBody'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ r"""CreateEndpointRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the CreateEndpointRequest
33
+ :type body: :class:`huaweicloudsdkdns.v2.CreateEndpointRequestBody`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ r"""Gets the body of this CreateEndpointRequest.
47
+
48
+ :return: The body of this CreateEndpointRequest.
49
+ :rtype: :class:`huaweicloudsdkdns.v2.CreateEndpointRequestBody`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ r"""Sets the body of this CreateEndpointRequest.
56
+
57
+ :param body: The body of this CreateEndpointRequest.
58
+ :type body: :class:`huaweicloudsdkdns.v2.CreateEndpointRequestBody`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, CreateEndpointRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other
@@ -0,0 +1,198 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateEndpointRequestBody:
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
+ 'name': 'str',
21
+ 'direction': 'str',
22
+ 'region': 'str',
23
+ 'ipaddresses': 'list[IpaddressInfo]'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'name': 'name',
28
+ 'direction': 'direction',
29
+ 'region': 'region',
30
+ 'ipaddresses': 'ipaddresses'
31
+ }
32
+
33
+ def __init__(self, name=None, direction=None, region=None, ipaddresses=None):
34
+ r"""CreateEndpointRequestBody
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param name: 待创建的终端节点名称。 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)。
39
+ :type name: str
40
+ :param direction: 终端节点方向。 取值: inbound,表示入站终端节点。 outbound,表示出站终端节点。
41
+ :type direction: str
42
+ :param region: 当前子网所在的region。
43
+ :type region: str
44
+ :param ipaddresses: 终端节点的IP地址和子网信息。最少需要添加2个IP地址,最多可以添加6个IP地址。
45
+ :type ipaddresses: list[:class:`huaweicloudsdkdns.v2.IpaddressInfo`]
46
+ """
47
+
48
+
49
+
50
+ self._name = None
51
+ self._direction = None
52
+ self._region = None
53
+ self._ipaddresses = None
54
+ self.discriminator = None
55
+
56
+ self.name = name
57
+ self.direction = direction
58
+ self.region = region
59
+ self.ipaddresses = ipaddresses
60
+
61
+ @property
62
+ def name(self):
63
+ r"""Gets the name of this CreateEndpointRequestBody.
64
+
65
+ 待创建的终端节点名称。 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)。
66
+
67
+ :return: The name of this CreateEndpointRequestBody.
68
+ :rtype: str
69
+ """
70
+ return self._name
71
+
72
+ @name.setter
73
+ def name(self, name):
74
+ r"""Sets the name of this CreateEndpointRequestBody.
75
+
76
+ 待创建的终端节点名称。 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)。
77
+
78
+ :param name: The name of this CreateEndpointRequestBody.
79
+ :type name: str
80
+ """
81
+ self._name = name
82
+
83
+ @property
84
+ def direction(self):
85
+ r"""Gets the direction of this CreateEndpointRequestBody.
86
+
87
+ 终端节点方向。 取值: inbound,表示入站终端节点。 outbound,表示出站终端节点。
88
+
89
+ :return: The direction of this CreateEndpointRequestBody.
90
+ :rtype: str
91
+ """
92
+ return self._direction
93
+
94
+ @direction.setter
95
+ def direction(self, direction):
96
+ r"""Sets the direction of this CreateEndpointRequestBody.
97
+
98
+ 终端节点方向。 取值: inbound,表示入站终端节点。 outbound,表示出站终端节点。
99
+
100
+ :param direction: The direction of this CreateEndpointRequestBody.
101
+ :type direction: str
102
+ """
103
+ self._direction = direction
104
+
105
+ @property
106
+ def region(self):
107
+ r"""Gets the region of this CreateEndpointRequestBody.
108
+
109
+ 当前子网所在的region。
110
+
111
+ :return: The region of this CreateEndpointRequestBody.
112
+ :rtype: str
113
+ """
114
+ return self._region
115
+
116
+ @region.setter
117
+ def region(self, region):
118
+ r"""Sets the region of this CreateEndpointRequestBody.
119
+
120
+ 当前子网所在的region。
121
+
122
+ :param region: The region of this CreateEndpointRequestBody.
123
+ :type region: str
124
+ """
125
+ self._region = region
126
+
127
+ @property
128
+ def ipaddresses(self):
129
+ r"""Gets the ipaddresses of this CreateEndpointRequestBody.
130
+
131
+ 终端节点的IP地址和子网信息。最少需要添加2个IP地址,最多可以添加6个IP地址。
132
+
133
+ :return: The ipaddresses of this CreateEndpointRequestBody.
134
+ :rtype: list[:class:`huaweicloudsdkdns.v2.IpaddressInfo`]
135
+ """
136
+ return self._ipaddresses
137
+
138
+ @ipaddresses.setter
139
+ def ipaddresses(self, ipaddresses):
140
+ r"""Sets the ipaddresses of this CreateEndpointRequestBody.
141
+
142
+ 终端节点的IP地址和子网信息。最少需要添加2个IP地址,最多可以添加6个IP地址。
143
+
144
+ :param ipaddresses: The ipaddresses of this CreateEndpointRequestBody.
145
+ :type ipaddresses: list[:class:`huaweicloudsdkdns.v2.IpaddressInfo`]
146
+ """
147
+ self._ipaddresses = ipaddresses
148
+
149
+ def to_dict(self):
150
+ """Returns the model properties as a dict"""
151
+ result = {}
152
+
153
+ for attr, _ in six.iteritems(self.openapi_types):
154
+ value = getattr(self, attr)
155
+ if isinstance(value, list):
156
+ result[attr] = list(map(
157
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
158
+ value
159
+ ))
160
+ elif hasattr(value, "to_dict"):
161
+ result[attr] = value.to_dict()
162
+ elif isinstance(value, dict):
163
+ result[attr] = dict(map(
164
+ lambda item: (item[0], item[1].to_dict())
165
+ if hasattr(item[1], "to_dict") else item,
166
+ value.items()
167
+ ))
168
+ else:
169
+ if attr in self.sensitive_list:
170
+ result[attr] = "****"
171
+ else:
172
+ result[attr] = value
173
+
174
+ return result
175
+
176
+ def to_str(self):
177
+ """Returns the string representation of the model"""
178
+ import simplejson as json
179
+ if six.PY2:
180
+ import sys
181
+ reload(sys)
182
+ sys.setdefaultencoding("utf-8")
183
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
184
+
185
+ def __repr__(self):
186
+ """For `print`"""
187
+ return self.to_str()
188
+
189
+ def __eq__(self, other):
190
+ """Returns true if both objects are equal"""
191
+ if not isinstance(other, CreateEndpointRequestBody):
192
+ return False
193
+
194
+ return self.__dict__ == other.__dict__
195
+
196
+ def __ne__(self, other):
197
+ """Returns true if both objects are not equal"""
198
+ return not self == other
@@ -0,0 +1,112 @@
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 CreateEndpointResponse(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
+ 'endpoint': 'EndpointResp'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'endpoint': 'endpoint'
26
+ }
27
+
28
+ def __init__(self, endpoint=None):
29
+ r"""CreateEndpointResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param endpoint:
34
+ :type endpoint: :class:`huaweicloudsdkdns.v2.EndpointResp`
35
+ """
36
+
37
+ super(CreateEndpointResponse, self).__init__()
38
+
39
+ self._endpoint = None
40
+ self.discriminator = None
41
+
42
+ if endpoint is not None:
43
+ self.endpoint = endpoint
44
+
45
+ @property
46
+ def endpoint(self):
47
+ r"""Gets the endpoint of this CreateEndpointResponse.
48
+
49
+ :return: The endpoint of this CreateEndpointResponse.
50
+ :rtype: :class:`huaweicloudsdkdns.v2.EndpointResp`
51
+ """
52
+ return self._endpoint
53
+
54
+ @endpoint.setter
55
+ def endpoint(self, endpoint):
56
+ r"""Sets the endpoint of this CreateEndpointResponse.
57
+
58
+ :param endpoint: The endpoint of this CreateEndpointResponse.
59
+ :type endpoint: :class:`huaweicloudsdkdns.v2.EndpointResp`
60
+ """
61
+ self._endpoint = endpoint
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, CreateEndpointResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other
@@ -50,7 +50,7 @@ class CreateLineGroupResponse(SdkResponse):
50
50
  :type status: str
51
51
  :param description: 线路分组的描述信息
52
52
  :type description: str
53
- :param line_id: 线路分组的id
53
+ :param line_id: 线路分组的ID
54
54
  :type line_id: str
55
55
  :param created_at: 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
56
56
  :type created_at: str
@@ -176,7 +176,7 @@ class CreateLineGroupResponse(SdkResponse):
176
176
  def line_id(self):
177
177
  r"""Gets the line_id of this CreateLineGroupResponse.
178
178
 
179
- 线路分组的id
179
+ 线路分组的ID
180
180
 
181
181
  :return: The line_id of this CreateLineGroupResponse.
182
182
  :rtype: str
@@ -187,7 +187,7 @@ class CreateLineGroupResponse(SdkResponse):
187
187
  def line_id(self, line_id):
188
188
  r"""Sets the line_id of this CreateLineGroupResponse.
189
189
 
190
- 线路分组的id
190
+ 线路分组的ID
191
191
 
192
192
  :param line_id: The line_id of this CreateLineGroupResponse.
193
193
  :type line_id: str
@@ -49,7 +49,7 @@ class CreateLineGroupsResp:
49
49
  :type status: str
50
50
  :param description: 线路分组的描述信息
51
51
  :type description: str
52
- :param line_id: 线路分组的id
52
+ :param line_id: 线路分组的ID
53
53
  :type line_id: str
54
54
  :param created_at: 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
55
55
  :type created_at: str
@@ -175,7 +175,7 @@ class CreateLineGroupsResp:
175
175
  def line_id(self):
176
176
  r"""Gets the line_id of this CreateLineGroupsResp.
177
177
 
178
- 线路分组的id
178
+ 线路分组的ID
179
179
 
180
180
  :return: The line_id of this CreateLineGroupsResp.
181
181
  :rtype: str
@@ -186,7 +186,7 @@ class CreateLineGroupsResp:
186
186
  def line_id(self, line_id):
187
187
  r"""Sets the line_id of this CreateLineGroupsResp.
188
188
 
189
- 线路分组的id
189
+ 线路分组的ID
190
190
 
191
191
  :param line_id: The line_id of this CreateLineGroupsResp.
192
192
  :type line_id: str
@@ -51,17 +51,17 @@ class CreatePrivateZoneReq:
51
51
  :type description: str
52
52
  :param zone_type: 域名类型。取值:private。
53
53
  :type zone_type: str
54
- :param email: 管理该zone的管理员邮箱,用于生成该Zone的SOA记录。
54
+ :param email: 管理该域名的管理员邮箱,用于生成该域名的SOA记录。
55
55
  :type email: str
56
56
  :param ttl: 用于填写默认生成的SOA记录中有效缓存时间,以秒为单位。
57
57
  :type ttl: int
58
58
  :param router:
59
59
  :type router: :class:`huaweicloudsdkdns.v2.Router`
60
- :param proxy_pattern: 内网Zone的子域名递归解析代理模式。 取值范围: AUTHORITY:当前Zone未开启递归解析代理 RECURSIVE:当前Zone已开启递归解析代理
60
+ :param proxy_pattern: 内网域名的子域名递归解析代理模式。 取值范围: AUTHORITY:当前域名未开启递归解析代理 RECURSIVE:当前域名已开启递归解析代理
61
61
  :type proxy_pattern: str
62
62
  :param tags: 资源标签。
63
63
  :type tags: list[:class:`huaweicloudsdkdns.v2.Tag`]
64
- :param enterprise_project_id: 域名关联的企业项目ID,长度不超过36个字符。 默认值为0。
64
+ :param enterprise_project_id: 域名关联的企业项目ID,长度不超过36个字符。默认值为0。
65
65
  :type enterprise_project_id: str
66
66
  """
67
67
 
@@ -164,7 +164,7 @@ class CreatePrivateZoneReq:
164
164
  def email(self):
165
165
  r"""Gets the email of this CreatePrivateZoneReq.
166
166
 
167
- 管理该zone的管理员邮箱,用于生成该Zone的SOA记录。
167
+ 管理该域名的管理员邮箱,用于生成该域名的SOA记录。
168
168
 
169
169
  :return: The email of this CreatePrivateZoneReq.
170
170
  :rtype: str
@@ -175,7 +175,7 @@ class CreatePrivateZoneReq:
175
175
  def email(self, email):
176
176
  r"""Sets the email of this CreatePrivateZoneReq.
177
177
 
178
- 管理该zone的管理员邮箱,用于生成该Zone的SOA记录。
178
+ 管理该域名的管理员邮箱,用于生成该域名的SOA记录。
179
179
 
180
180
  :param email: The email of this CreatePrivateZoneReq.
181
181
  :type email: str
@@ -226,7 +226,7 @@ class CreatePrivateZoneReq:
226
226
  def proxy_pattern(self):
227
227
  r"""Gets the proxy_pattern of this CreatePrivateZoneReq.
228
228
 
229
- 内网Zone的子域名递归解析代理模式。 取值范围: AUTHORITY:当前Zone未开启递归解析代理 RECURSIVE:当前Zone已开启递归解析代理
229
+ 内网域名的子域名递归解析代理模式。 取值范围: AUTHORITY:当前域名未开启递归解析代理 RECURSIVE:当前域名已开启递归解析代理
230
230
 
231
231
  :return: The proxy_pattern of this CreatePrivateZoneReq.
232
232
  :rtype: str
@@ -237,7 +237,7 @@ class CreatePrivateZoneReq:
237
237
  def proxy_pattern(self, proxy_pattern):
238
238
  r"""Sets the proxy_pattern of this CreatePrivateZoneReq.
239
239
 
240
- 内网Zone的子域名递归解析代理模式。 取值范围: AUTHORITY:当前Zone未开启递归解析代理 RECURSIVE:当前Zone已开启递归解析代理
240
+ 内网域名的子域名递归解析代理模式。 取值范围: AUTHORITY:当前域名未开启递归解析代理 RECURSIVE:当前域名已开启递归解析代理
241
241
 
242
242
  :param proxy_pattern: The proxy_pattern of this CreatePrivateZoneReq.
243
243
  :type proxy_pattern: str
@@ -270,7 +270,7 @@ class CreatePrivateZoneReq:
270
270
  def enterprise_project_id(self):
271
271
  r"""Gets the enterprise_project_id of this CreatePrivateZoneReq.
272
272
 
273
- 域名关联的企业项目ID,长度不超过36个字符。 默认值为0。
273
+ 域名关联的企业项目ID,长度不超过36个字符。默认值为0。
274
274
 
275
275
  :return: The enterprise_project_id of this CreatePrivateZoneReq.
276
276
  :rtype: str
@@ -281,7 +281,7 @@ class CreatePrivateZoneReq:
281
281
  def enterprise_project_id(self, enterprise_project_id):
282
282
  r"""Sets the enterprise_project_id of this CreatePrivateZoneReq.
283
283
 
284
- 域名关联的企业项目ID,长度不超过36个字符。 默认值为0。
284
+ 域名关联的企业项目ID,长度不超过36个字符。默认值为0。
285
285
 
286
286
  :param enterprise_project_id: The enterprise_project_id of this CreatePrivateZoneReq.
287
287
  :type enterprise_project_id: str