huaweicloudsdkdns 3.0.42rc0__py3-none-any.whl → 3.1.160__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 +137 -11
- huaweicloudsdkdns/v2/dns_async_client.py +4625 -1735
- huaweicloudsdkdns/v2/dns_client.py +4638 -1749
- huaweicloudsdkdns/v2/model/__init__.py +136 -9
- huaweicloudsdkdns/v2/model/alias_target.py +27 -20
- 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 +27 -20
- huaweicloudsdkdns/v2/model/{associate_router_req.py → associate_router_request_body.py} +23 -20
- huaweicloudsdkdns/v2/model/associate_router_response.py +35 -25
- huaweicloudsdkdns/v2/model/batch_create_record_set_with_line.py +200 -0
- huaweicloudsdkdns/v2/model/batch_create_tag_request.py +33 -22
- huaweicloudsdkdns/v2/model/batch_create_tag_response.py +14 -10
- 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 +139 -0
- huaweicloudsdkdns/v2/model/batch_delete_record_set_with_line_request_body.py +114 -0
- huaweicloudsdkdns/v2/model/batch_delete_record_set_with_line_response.py +166 -0
- huaweicloudsdkdns/v2/model/batch_delete_record_sets_request.py +111 -0
- huaweicloudsdkdns/v2/model/batch_delete_record_sets_request_body.py +142 -0
- huaweicloudsdkdns/v2/model/batch_delete_record_sets_response.py +141 -0
- huaweicloudsdkdns/v2/model/batch_delete_zones_request.py +111 -0
- huaweicloudsdkdns/v2/model/batch_delete_zones_request_body.py +142 -0
- huaweicloudsdkdns/v2/model/batch_delete_zones_response.py +141 -0
- huaweicloudsdkdns/v2/model/batch_hand_tags.py +24 -17
- huaweicloudsdkdns/v2/model/batch_set_record_sets_status_request.py +111 -0
- huaweicloudsdkdns/v2/model/batch_set_record_sets_status_request_body.py +142 -0
- huaweicloudsdkdns/v2/model/batch_set_record_sets_status_response.py +166 -0
- huaweicloudsdkdns/v2/model/batch_set_zones_status_request.py +111 -0
- huaweicloudsdkdns/v2/model/batch_set_zones_status_request_body.py +142 -0
- huaweicloudsdkdns/v2/model/batch_set_zones_status_response.py +166 -0
- huaweicloudsdkdns/v2/model/batch_update_record_set.py +229 -0
- huaweicloudsdkdns/v2/model/batch_update_record_set_with_line_request.py +139 -0
- huaweicloudsdkdns/v2/model/batch_update_record_set_with_line_request_body.py +114 -0
- huaweicloudsdkdns/v2/model/batch_update_record_set_with_line_response.py +166 -0
- huaweicloudsdkdns/v2/model/create_custom_line_request.py +20 -17
- huaweicloudsdkdns/v2/model/{create_custom_lines.py → create_custom_line_request_body.py} +36 -27
- huaweicloudsdkdns/v2/model/create_custom_line_response.py +53 -35
- huaweicloudsdkdns/v2/model/create_eip_record_set_request.py +33 -22
- huaweicloudsdkdns/v2/model/create_eip_record_set_response.py +97 -50
- 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_request.py +111 -0
- huaweicloudsdkdns/v2/model/create_line_group_response.py +290 -0
- huaweicloudsdkdns/v2/model/create_line_groups_req.py +171 -0
- huaweicloudsdkdns/v2/model/create_line_groups_resp.py +289 -0
- huaweicloudsdkdns/v2/model/create_private_zone_req.py +101 -55
- huaweicloudsdkdns/v2/model/create_private_zone_request.py +19 -16
- huaweicloudsdkdns/v2/model/create_private_zone_response.py +156 -95
- huaweicloudsdkdns/v2/model/create_ptr_req.py +47 -34
- 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 +63 -46
- huaweicloudsdkdns/v2/model/create_public_zone_request.py +19 -16
- huaweicloudsdkdns/v2/model/create_public_zone_response.py +125 -91
- huaweicloudsdkdns/v2/model/create_r_set_batch_lines_req.py +199 -0
- huaweicloudsdkdns/v2/model/create_record_set_request.py +27 -20
- huaweicloudsdkdns/v2/model/create_record_set_request_body.py +286 -0
- huaweicloudsdkdns/v2/model/create_record_set_response.py +111 -55
- huaweicloudsdkdns/v2/model/create_record_set_with_batch_lines_request.py +139 -0
- huaweicloudsdkdns/v2/model/create_record_set_with_batch_lines_response.py +166 -0
- huaweicloudsdkdns/v2/model/create_record_set_with_line_request.py +27 -20
- huaweicloudsdkdns/v2/model/create_record_set_with_line_request_body.py +370 -0
- huaweicloudsdkdns/v2/model/create_record_set_with_line_response.py +138 -102
- 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_req.py +19 -16
- huaweicloudsdkdns/v2/model/create_tag_request.py +33 -22
- huaweicloudsdkdns/v2/model/create_tag_response.py +14 -10
- huaweicloudsdkdns/v2/model/delete_custom_line_request.py +20 -13
- huaweicloudsdkdns/v2/model/delete_custom_line_response.py +53 -35
- 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 +114 -0
- huaweicloudsdkdns/v2/model/delete_line_group_response.py +290 -0
- huaweicloudsdkdns/v2/model/delete_private_zone_request.py +20 -13
- huaweicloudsdkdns/v2/model/delete_private_zone_response.py +126 -92
- 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 +20 -13
- huaweicloudsdkdns/v2/model/delete_public_zone_response.py +121 -91
- huaweicloudsdkdns/v2/model/delete_record_set_request.py +27 -16
- huaweicloudsdkdns/v2/model/delete_record_set_response.py +111 -81
- huaweicloudsdkdns/v2/model/delete_record_sets_request.py +27 -16
- huaweicloudsdkdns/v2/model/delete_record_sets_response.py +138 -102
- 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 +34 -19
- huaweicloudsdkdns/v2/model/delete_tag_response.py +14 -10
- 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 +27 -20
- huaweicloudsdkdns/v2/model/disassociate_router_response.py +35 -25
- huaweicloudsdkdns/v2/model/{disassociaterouter_req.py → disassociaterouter_request_body.py} +23 -20
- huaweicloudsdkdns/v2/model/domain_quota_response_quotas.py +198 -0
- 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/{update_public_zone_status.py → ip_info.py} +35 -29
- 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 +52 -35
- huaweicloudsdkdns/v2/model/link.py +115 -0
- huaweicloudsdkdns/v2/model/links_item.py +27 -20
- huaweicloudsdkdns/v2/model/list_api_versions_item.py +35 -26
- huaweicloudsdkdns/v2/model/list_api_versions_request.py +13 -10
- huaweicloudsdkdns/v2/model/list_api_versions_response.py +20 -16
- huaweicloudsdkdns/v2/model/list_custom_line_request.py +109 -28
- huaweicloudsdkdns/v2/model/list_custom_line_response.py +29 -21
- 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_line_groups_request.py +202 -0
- huaweicloudsdkdns/v2/model/list_line_groups_response.py +141 -0
- huaweicloudsdkdns/v2/model/list_name_servers_request.py +27 -16
- huaweicloudsdkdns/v2/model/list_name_servers_response.py +22 -14
- huaweicloudsdkdns/v2/model/list_private_zones_request.py +217 -37
- huaweicloudsdkdns/v2/model/list_private_zones_response.py +35 -27
- huaweicloudsdkdns/v2/model/list_ptr_records_floating_resp.py +99 -51
- huaweicloudsdkdns/v2/model/list_ptr_records_request.py +55 -28
- huaweicloudsdkdns/v2/model/list_ptr_records_response.py +35 -27
- 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 +186 -35
- huaweicloudsdkdns/v2/model/list_public_zones_response.py +36 -28
- huaweicloudsdkdns/v2/model/list_record_sets.py +110 -81
- huaweicloudsdkdns/v2/model/list_record_sets_by_zone_request.py +124 -48
- huaweicloudsdkdns/v2/model/list_record_sets_by_zone_response.py +35 -27
- huaweicloudsdkdns/v2/model/list_record_sets_request.py +131 -51
- huaweicloudsdkdns/v2/model/list_record_sets_response.py +36 -28
- huaweicloudsdkdns/v2/model/list_record_sets_with_line_request.py +152 -60
- huaweicloudsdkdns/v2/model/list_record_sets_with_line_response.py +36 -28
- huaweicloudsdkdns/v2/model/list_record_sets_with_tags.py +517 -0
- 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/list_tag_req.py +64 -45
- huaweicloudsdkdns/v2/model/list_tag_request.py +26 -19
- huaweicloudsdkdns/v2/model/list_tag_response.py +29 -17
- huaweicloudsdkdns/v2/model/list_tags_request.py +20 -13
- huaweicloudsdkdns/v2/model/list_tags_response.py +20 -14
- huaweicloudsdkdns/v2/model/match.py +143 -0
- huaweicloudsdkdns/v2/model/{metedata.py → metadata.py} +24 -19
- huaweicloudsdkdns/v2/model/name_servers_resp.py +31 -20
- huaweicloudsdkdns/v2/model/nameserver.py +27 -20
- huaweicloudsdkdns/v2/model/ns_records.py +28 -19
- huaweicloudsdkdns/v2/model/page_info.py +173 -0
- huaweicloudsdkdns/v2/model/page_link.py +27 -20
- huaweicloudsdkdns/v2/model/private_name_server.py +27 -20
- huaweicloudsdkdns/v2/model/private_zone_resp.py +191 -98
- 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 +575 -0
- huaweicloudsdkdns/v2/model/query_record_set_with_line_and_tags_resp.py +658 -0
- huaweicloudsdkdns/v2/model/query_record_set_with_line_resp.py +169 -105
- huaweicloudsdkdns/v2/model/recordset_data.py +600 -0
- huaweicloudsdkdns/v2/model/resolver_rule_param.py +347 -0
- huaweicloudsdkdns/v2/model/resource_item.py +36 -25
- huaweicloudsdkdns/v2/model/restore_ptr_record_request.py +33 -22
- huaweicloudsdkdns/v2/model/restore_ptr_record_response.py +14 -10
- huaweicloudsdkdns/v2/model/restore_ptr_req.py +22 -17
- huaweicloudsdkdns/v2/model/router.py +59 -23
- huaweicloudsdkdns/v2/model/router_for_rule.py +114 -0
- huaweicloudsdkdns/v2/model/router_with_status.py +34 -25
- 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 +27 -20
- huaweicloudsdkdns/v2/model/{set_record_sets_status_req.py → set_record_sets_status_request_body.py} +24 -19
- huaweicloudsdkdns/v2/model/set_record_sets_status_response.py +170 -105
- huaweicloudsdkdns/v2/model/show_api_info_request.py +20 -13
- huaweicloudsdkdns/v2/model/show_api_info_response.py +20 -16
- huaweicloudsdkdns/v2/model/show_dnssec_config_request.py +114 -0
- huaweicloudsdkdns/v2/model/show_dnssec_config_response.py +464 -0
- huaweicloudsdkdns/v2/model/show_domain_quota_request.py +114 -0
- huaweicloudsdkdns/v2/model/show_domain_quota_response.py +116 -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 +114 -0
- huaweicloudsdkdns/v2/model/show_line_group_response.py +290 -0
- huaweicloudsdkdns/v2/model/show_private_zone_name_server_request.py +20 -13
- huaweicloudsdkdns/v2/model/show_private_zone_name_server_response.py +22 -14
- huaweicloudsdkdns/v2/model/show_private_zone_request.py +20 -13
- huaweicloudsdkdns/v2/model/show_private_zone_response.py +187 -95
- huaweicloudsdkdns/v2/model/show_ptr_record_set_request.py +27 -16
- huaweicloudsdkdns/v2/model/show_ptr_record_set_response.py +97 -50
- 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 +20 -13
- huaweicloudsdkdns/v2/model/show_public_zone_name_server_response.py +22 -16
- huaweicloudsdkdns/v2/model/show_public_zone_request.py +20 -13
- huaweicloudsdkdns/v2/model/show_public_zone_response.py +127 -93
- huaweicloudsdkdns/v2/model/show_record_set_by_zone_request.py +371 -16
- huaweicloudsdkdns/v2/model/show_record_set_by_zone_resp.py +162 -127
- huaweicloudsdkdns/v2/model/show_record_set_by_zone_response.py +35 -27
- huaweicloudsdkdns/v2/model/show_record_set_request.py +27 -16
- huaweicloudsdkdns/v2/model/show_record_set_response.py +143 -84
- huaweicloudsdkdns/v2/model/show_record_set_with_line_request.py +27 -16
- huaweicloudsdkdns/v2/model/show_record_set_with_line_response.py +170 -105
- 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 +27 -16
- huaweicloudsdkdns/v2/model/show_resource_tag_response.py +22 -14
- huaweicloudsdkdns/v2/model/tag.py +27 -20
- huaweicloudsdkdns/v2/model/tag_values.py +27 -20
- huaweicloudsdkdns/v2/model/update_custom_line_request.py +27 -20
- huaweicloudsdkdns/v2/model/{update_customs_line_req.py → update_custom_line_request_body.py} +36 -27
- huaweicloudsdkdns/v2/model/update_custom_line_response.py +53 -35
- 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 +139 -0
- huaweicloudsdkdns/v2/model/update_line_groups_request_body.py +171 -0
- huaweicloudsdkdns/v2/model/update_line_groups_response.py +290 -0
- huaweicloudsdkdns/v2/model/update_private_zone_info_req.py +34 -25
- huaweicloudsdkdns/v2/model/update_private_zone_request.py +26 -19
- huaweicloudsdkdns/v2/model/update_private_zone_response.py +126 -92
- 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_request.py +33 -22
- huaweicloudsdkdns/v2/model/update_ptr_record_response.py +65 -47
- huaweicloudsdkdns/v2/model/update_ptr_req.py +40 -29
- 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 +36 -27
- huaweicloudsdkdns/v2/model/update_public_zone_request.py +26 -19
- huaweicloudsdkdns/v2/model/update_public_zone_response.py +120 -88
- huaweicloudsdkdns/v2/model/update_public_zone_status_request.py +27 -20
- huaweicloudsdkdns/v2/model/update_public_zone_status_response.py +118 -86
- huaweicloudsdkdns/v2/model/update_record_set_req.py +52 -37
- huaweicloudsdkdns/v2/model/update_record_set_request.py +33 -22
- huaweicloudsdkdns/v2/model/update_record_set_response.py +111 -55
- huaweicloudsdkdns/v2/model/update_record_sets_req.py +55 -40
- huaweicloudsdkdns/v2/model/update_record_sets_request.py +33 -22
- huaweicloudsdkdns/v2/model/update_record_sets_response.py +138 -102
- 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_zone_status_request_body.py +114 -0
- huaweicloudsdkdns/v2/model/values_item.py +21 -16
- huaweicloudsdkdns/v2/model/version_item.py +56 -41
- huaweicloudsdkdns/v2/model/vpcs_data.py +173 -0
- huaweicloudsdkdns/v2/model/zone_data.py +517 -0
- huaweicloudsdkdns/v2/region/dns_region.py +88 -38
- {huaweicloudsdkdns-3.0.42rc0.dist-info → huaweicloudsdkdns-3.1.160.dist-info}/METADATA +9 -9
- huaweicloudsdkdns-3.1.160.dist-info/RECORD +273 -0
- {huaweicloudsdkdns-3.0.42rc0.dist-info → huaweicloudsdkdns-3.1.160.dist-info}/WHEEL +1 -1
- huaweicloudsdkdns/v2/model/create_record_set_req.py +0 -263
- huaweicloudsdkdns/v2/model/create_record_set_with_line_req.py +0 -348
- huaweicloudsdkdns-3.0.42rc0.dist-info/RECORD +0 -146
- {huaweicloudsdkdns-3.0.42rc0.dist-info → huaweicloudsdkdns-3.1.160.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdns-3.0.42rc0.dist-info → huaweicloudsdkdns-3.1.160.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,517 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ZoneData:
|
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
|
+
'description': 'str',
|
23
|
+
'email': 'str',
|
24
|
+
'ttl': 'int',
|
25
|
+
'serial': 'int',
|
26
|
+
'masters': 'list[str]',
|
27
|
+
'status': 'str',
|
28
|
+
'pool_id': 'str',
|
29
|
+
'project_id': 'str',
|
30
|
+
'zone_type': 'str',
|
31
|
+
'created_at': 'str',
|
32
|
+
'updated_at': 'str',
|
33
|
+
'record_num': 'int',
|
34
|
+
'links': 'Link'
|
35
|
+
}
|
36
|
+
|
37
|
+
attribute_map = {
|
38
|
+
'id': 'id',
|
39
|
+
'name': 'name',
|
40
|
+
'description': 'description',
|
41
|
+
'email': 'email',
|
42
|
+
'ttl': 'ttl',
|
43
|
+
'serial': 'serial',
|
44
|
+
'masters': 'masters',
|
45
|
+
'status': 'status',
|
46
|
+
'pool_id': 'pool_id',
|
47
|
+
'project_id': 'project_id',
|
48
|
+
'zone_type': 'zone_type',
|
49
|
+
'created_at': 'created_at',
|
50
|
+
'updated_at': 'updated_at',
|
51
|
+
'record_num': 'record_num',
|
52
|
+
'links': 'links'
|
53
|
+
}
|
54
|
+
|
55
|
+
def __init__(self, id=None, name=None, description=None, email=None, ttl=None, serial=None, masters=None, status=None, pool_id=None, project_id=None, zone_type=None, created_at=None, updated_at=None, record_num=None, links=None):
|
56
|
+
r"""ZoneData
|
57
|
+
|
58
|
+
The model defined in huaweicloud sdk
|
59
|
+
|
60
|
+
:param id: **参数解释:** 域名的ID,UUID形式的一个资源标识。 **取值范围:** 不涉及。
|
61
|
+
:type id: str
|
62
|
+
:param name: **参数解释:** 域名。 **取值范围:** 不涉及。
|
63
|
+
:type name: str
|
64
|
+
:param description: **参数解释:** 对域名的描述信息。 **取值范围:** 长度不超过255个字符。
|
65
|
+
:type description: str
|
66
|
+
:param email: **参数解释:** 管理该域名的管理员邮箱,用于生成该域名的SOA记录。 **取值范围:** 不涉及。
|
67
|
+
:type email: str
|
68
|
+
:param ttl: **参数解释:** 该域名下SOA记录中的有效缓存时间,以秒为单位。 **取值范围:** 1~2147483647。
|
69
|
+
:type ttl: int
|
70
|
+
:param serial: **参数解释:** 该域名下SOA记录中用于标识域名文件变更的序列值,用于主从节点同步。 该参数暂未使用。 **取值范围:** 不涉及。
|
71
|
+
:type serial: int
|
72
|
+
:param masters: **参数解释:** 主从模式中,从DNS服务器获取DNS信息。 目前暂未使用。 **取值范围:** 不涉及。
|
73
|
+
:type masters: list[str]
|
74
|
+
:param status: **参数解释:** 域名状态。 **取值范围:** - ACTIVE:正常 - PENDING_CREATE:创建中 - PENDING_UPDATE:更新中 - PENDING_DELETE:删除中 - PENDING_FREEZE:冻结中 - FREEZE:冻结 - ILLEGAL:违规冻结 - POLICE:公安冻结 - PENDING_DISABLE:暂停中 - DISABLE:暂停 - ERROR:失败
|
75
|
+
:type status: str
|
76
|
+
:param pool_id: **参数解释:** 托管该域名的pool,由系统分配。 **取值范围:** 不涉及。
|
77
|
+
:type pool_id: str
|
78
|
+
:param project_id: **参数解释:** 域名所属的项目ID。 **取值范围:** 不涉及。
|
79
|
+
:type project_id: str
|
80
|
+
:param zone_type: **参数解释:** 域名类型。 **取值范围:** - public:公网域名 - private:内网域名
|
81
|
+
:type zone_type: str
|
82
|
+
:param created_at: **参数解释:** 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。 **取值范围:** 不涉及。
|
83
|
+
:type created_at: str
|
84
|
+
:param updated_at: **参数解释:** 更新时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。 **取值范围:** 不涉及。
|
85
|
+
:type updated_at: str
|
86
|
+
:param record_num: **参数解释:** 该域名下的记录集个数。 **取值范围:** 不涉及。
|
87
|
+
:type record_num: int
|
88
|
+
:param links:
|
89
|
+
:type links: :class:`huaweicloudsdkdns.v2.Link`
|
90
|
+
"""
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
self._id = None
|
95
|
+
self._name = None
|
96
|
+
self._description = None
|
97
|
+
self._email = None
|
98
|
+
self._ttl = None
|
99
|
+
self._serial = None
|
100
|
+
self._masters = None
|
101
|
+
self._status = None
|
102
|
+
self._pool_id = None
|
103
|
+
self._project_id = None
|
104
|
+
self._zone_type = None
|
105
|
+
self._created_at = None
|
106
|
+
self._updated_at = None
|
107
|
+
self._record_num = None
|
108
|
+
self._links = None
|
109
|
+
self.discriminator = None
|
110
|
+
|
111
|
+
if id is not None:
|
112
|
+
self.id = id
|
113
|
+
if name is not None:
|
114
|
+
self.name = name
|
115
|
+
if description is not None:
|
116
|
+
self.description = description
|
117
|
+
if email is not None:
|
118
|
+
self.email = email
|
119
|
+
if ttl is not None:
|
120
|
+
self.ttl = ttl
|
121
|
+
if serial is not None:
|
122
|
+
self.serial = serial
|
123
|
+
if masters is not None:
|
124
|
+
self.masters = masters
|
125
|
+
if status is not None:
|
126
|
+
self.status = status
|
127
|
+
if pool_id is not None:
|
128
|
+
self.pool_id = pool_id
|
129
|
+
if project_id is not None:
|
130
|
+
self.project_id = project_id
|
131
|
+
if zone_type is not None:
|
132
|
+
self.zone_type = zone_type
|
133
|
+
if created_at is not None:
|
134
|
+
self.created_at = created_at
|
135
|
+
if updated_at is not None:
|
136
|
+
self.updated_at = updated_at
|
137
|
+
if record_num is not None:
|
138
|
+
self.record_num = record_num
|
139
|
+
if links is not None:
|
140
|
+
self.links = links
|
141
|
+
|
142
|
+
@property
|
143
|
+
def id(self):
|
144
|
+
r"""Gets the id of this ZoneData.
|
145
|
+
|
146
|
+
**参数解释:** 域名的ID,UUID形式的一个资源标识。 **取值范围:** 不涉及。
|
147
|
+
|
148
|
+
:return: The id of this ZoneData.
|
149
|
+
:rtype: str
|
150
|
+
"""
|
151
|
+
return self._id
|
152
|
+
|
153
|
+
@id.setter
|
154
|
+
def id(self, id):
|
155
|
+
r"""Sets the id of this ZoneData.
|
156
|
+
|
157
|
+
**参数解释:** 域名的ID,UUID形式的一个资源标识。 **取值范围:** 不涉及。
|
158
|
+
|
159
|
+
:param id: The id of this ZoneData.
|
160
|
+
:type id: str
|
161
|
+
"""
|
162
|
+
self._id = id
|
163
|
+
|
164
|
+
@property
|
165
|
+
def name(self):
|
166
|
+
r"""Gets the name of this ZoneData.
|
167
|
+
|
168
|
+
**参数解释:** 域名。 **取值范围:** 不涉及。
|
169
|
+
|
170
|
+
:return: The name of this ZoneData.
|
171
|
+
:rtype: str
|
172
|
+
"""
|
173
|
+
return self._name
|
174
|
+
|
175
|
+
@name.setter
|
176
|
+
def name(self, name):
|
177
|
+
r"""Sets the name of this ZoneData.
|
178
|
+
|
179
|
+
**参数解释:** 域名。 **取值范围:** 不涉及。
|
180
|
+
|
181
|
+
:param name: The name of this ZoneData.
|
182
|
+
:type name: str
|
183
|
+
"""
|
184
|
+
self._name = name
|
185
|
+
|
186
|
+
@property
|
187
|
+
def description(self):
|
188
|
+
r"""Gets the description of this ZoneData.
|
189
|
+
|
190
|
+
**参数解释:** 对域名的描述信息。 **取值范围:** 长度不超过255个字符。
|
191
|
+
|
192
|
+
:return: The description of this ZoneData.
|
193
|
+
:rtype: str
|
194
|
+
"""
|
195
|
+
return self._description
|
196
|
+
|
197
|
+
@description.setter
|
198
|
+
def description(self, description):
|
199
|
+
r"""Sets the description of this ZoneData.
|
200
|
+
|
201
|
+
**参数解释:** 对域名的描述信息。 **取值范围:** 长度不超过255个字符。
|
202
|
+
|
203
|
+
:param description: The description of this ZoneData.
|
204
|
+
:type description: str
|
205
|
+
"""
|
206
|
+
self._description = description
|
207
|
+
|
208
|
+
@property
|
209
|
+
def email(self):
|
210
|
+
r"""Gets the email of this ZoneData.
|
211
|
+
|
212
|
+
**参数解释:** 管理该域名的管理员邮箱,用于生成该域名的SOA记录。 **取值范围:** 不涉及。
|
213
|
+
|
214
|
+
:return: The email of this ZoneData.
|
215
|
+
:rtype: str
|
216
|
+
"""
|
217
|
+
return self._email
|
218
|
+
|
219
|
+
@email.setter
|
220
|
+
def email(self, email):
|
221
|
+
r"""Sets the email of this ZoneData.
|
222
|
+
|
223
|
+
**参数解释:** 管理该域名的管理员邮箱,用于生成该域名的SOA记录。 **取值范围:** 不涉及。
|
224
|
+
|
225
|
+
:param email: The email of this ZoneData.
|
226
|
+
:type email: str
|
227
|
+
"""
|
228
|
+
self._email = email
|
229
|
+
|
230
|
+
@property
|
231
|
+
def ttl(self):
|
232
|
+
r"""Gets the ttl of this ZoneData.
|
233
|
+
|
234
|
+
**参数解释:** 该域名下SOA记录中的有效缓存时间,以秒为单位。 **取值范围:** 1~2147483647。
|
235
|
+
|
236
|
+
:return: The ttl of this ZoneData.
|
237
|
+
:rtype: int
|
238
|
+
"""
|
239
|
+
return self._ttl
|
240
|
+
|
241
|
+
@ttl.setter
|
242
|
+
def ttl(self, ttl):
|
243
|
+
r"""Sets the ttl of this ZoneData.
|
244
|
+
|
245
|
+
**参数解释:** 该域名下SOA记录中的有效缓存时间,以秒为单位。 **取值范围:** 1~2147483647。
|
246
|
+
|
247
|
+
:param ttl: The ttl of this ZoneData.
|
248
|
+
:type ttl: int
|
249
|
+
"""
|
250
|
+
self._ttl = ttl
|
251
|
+
|
252
|
+
@property
|
253
|
+
def serial(self):
|
254
|
+
r"""Gets the serial of this ZoneData.
|
255
|
+
|
256
|
+
**参数解释:** 该域名下SOA记录中用于标识域名文件变更的序列值,用于主从节点同步。 该参数暂未使用。 **取值范围:** 不涉及。
|
257
|
+
|
258
|
+
:return: The serial of this ZoneData.
|
259
|
+
:rtype: int
|
260
|
+
"""
|
261
|
+
return self._serial
|
262
|
+
|
263
|
+
@serial.setter
|
264
|
+
def serial(self, serial):
|
265
|
+
r"""Sets the serial of this ZoneData.
|
266
|
+
|
267
|
+
**参数解释:** 该域名下SOA记录中用于标识域名文件变更的序列值,用于主从节点同步。 该参数暂未使用。 **取值范围:** 不涉及。
|
268
|
+
|
269
|
+
:param serial: The serial of this ZoneData.
|
270
|
+
:type serial: int
|
271
|
+
"""
|
272
|
+
self._serial = serial
|
273
|
+
|
274
|
+
@property
|
275
|
+
def masters(self):
|
276
|
+
r"""Gets the masters of this ZoneData.
|
277
|
+
|
278
|
+
**参数解释:** 主从模式中,从DNS服务器获取DNS信息。 目前暂未使用。 **取值范围:** 不涉及。
|
279
|
+
|
280
|
+
:return: The masters of this ZoneData.
|
281
|
+
:rtype: list[str]
|
282
|
+
"""
|
283
|
+
return self._masters
|
284
|
+
|
285
|
+
@masters.setter
|
286
|
+
def masters(self, masters):
|
287
|
+
r"""Sets the masters of this ZoneData.
|
288
|
+
|
289
|
+
**参数解释:** 主从模式中,从DNS服务器获取DNS信息。 目前暂未使用。 **取值范围:** 不涉及。
|
290
|
+
|
291
|
+
:param masters: The masters of this ZoneData.
|
292
|
+
:type masters: list[str]
|
293
|
+
"""
|
294
|
+
self._masters = masters
|
295
|
+
|
296
|
+
@property
|
297
|
+
def status(self):
|
298
|
+
r"""Gets the status of this ZoneData.
|
299
|
+
|
300
|
+
**参数解释:** 域名状态。 **取值范围:** - ACTIVE:正常 - PENDING_CREATE:创建中 - PENDING_UPDATE:更新中 - PENDING_DELETE:删除中 - PENDING_FREEZE:冻结中 - FREEZE:冻结 - ILLEGAL:违规冻结 - POLICE:公安冻结 - PENDING_DISABLE:暂停中 - DISABLE:暂停 - ERROR:失败
|
301
|
+
|
302
|
+
:return: The status of this ZoneData.
|
303
|
+
:rtype: str
|
304
|
+
"""
|
305
|
+
return self._status
|
306
|
+
|
307
|
+
@status.setter
|
308
|
+
def status(self, status):
|
309
|
+
r"""Sets the status of this ZoneData.
|
310
|
+
|
311
|
+
**参数解释:** 域名状态。 **取值范围:** - ACTIVE:正常 - PENDING_CREATE:创建中 - PENDING_UPDATE:更新中 - PENDING_DELETE:删除中 - PENDING_FREEZE:冻结中 - FREEZE:冻结 - ILLEGAL:违规冻结 - POLICE:公安冻结 - PENDING_DISABLE:暂停中 - DISABLE:暂停 - ERROR:失败
|
312
|
+
|
313
|
+
:param status: The status of this ZoneData.
|
314
|
+
:type status: str
|
315
|
+
"""
|
316
|
+
self._status = status
|
317
|
+
|
318
|
+
@property
|
319
|
+
def pool_id(self):
|
320
|
+
r"""Gets the pool_id of this ZoneData.
|
321
|
+
|
322
|
+
**参数解释:** 托管该域名的pool,由系统分配。 **取值范围:** 不涉及。
|
323
|
+
|
324
|
+
:return: The pool_id of this ZoneData.
|
325
|
+
:rtype: str
|
326
|
+
"""
|
327
|
+
return self._pool_id
|
328
|
+
|
329
|
+
@pool_id.setter
|
330
|
+
def pool_id(self, pool_id):
|
331
|
+
r"""Sets the pool_id of this ZoneData.
|
332
|
+
|
333
|
+
**参数解释:** 托管该域名的pool,由系统分配。 **取值范围:** 不涉及。
|
334
|
+
|
335
|
+
:param pool_id: The pool_id of this ZoneData.
|
336
|
+
:type pool_id: str
|
337
|
+
"""
|
338
|
+
self._pool_id = pool_id
|
339
|
+
|
340
|
+
@property
|
341
|
+
def project_id(self):
|
342
|
+
r"""Gets the project_id of this ZoneData.
|
343
|
+
|
344
|
+
**参数解释:** 域名所属的项目ID。 **取值范围:** 不涉及。
|
345
|
+
|
346
|
+
:return: The project_id of this ZoneData.
|
347
|
+
:rtype: str
|
348
|
+
"""
|
349
|
+
return self._project_id
|
350
|
+
|
351
|
+
@project_id.setter
|
352
|
+
def project_id(self, project_id):
|
353
|
+
r"""Sets the project_id of this ZoneData.
|
354
|
+
|
355
|
+
**参数解释:** 域名所属的项目ID。 **取值范围:** 不涉及。
|
356
|
+
|
357
|
+
:param project_id: The project_id of this ZoneData.
|
358
|
+
:type project_id: str
|
359
|
+
"""
|
360
|
+
self._project_id = project_id
|
361
|
+
|
362
|
+
@property
|
363
|
+
def zone_type(self):
|
364
|
+
r"""Gets the zone_type of this ZoneData.
|
365
|
+
|
366
|
+
**参数解释:** 域名类型。 **取值范围:** - public:公网域名 - private:内网域名
|
367
|
+
|
368
|
+
:return: The zone_type of this ZoneData.
|
369
|
+
:rtype: str
|
370
|
+
"""
|
371
|
+
return self._zone_type
|
372
|
+
|
373
|
+
@zone_type.setter
|
374
|
+
def zone_type(self, zone_type):
|
375
|
+
r"""Sets the zone_type of this ZoneData.
|
376
|
+
|
377
|
+
**参数解释:** 域名类型。 **取值范围:** - public:公网域名 - private:内网域名
|
378
|
+
|
379
|
+
:param zone_type: The zone_type of this ZoneData.
|
380
|
+
:type zone_type: str
|
381
|
+
"""
|
382
|
+
self._zone_type = zone_type
|
383
|
+
|
384
|
+
@property
|
385
|
+
def created_at(self):
|
386
|
+
r"""Gets the created_at of this ZoneData.
|
387
|
+
|
388
|
+
**参数解释:** 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。 **取值范围:** 不涉及。
|
389
|
+
|
390
|
+
:return: The created_at of this ZoneData.
|
391
|
+
:rtype: str
|
392
|
+
"""
|
393
|
+
return self._created_at
|
394
|
+
|
395
|
+
@created_at.setter
|
396
|
+
def created_at(self, created_at):
|
397
|
+
r"""Sets the created_at of this ZoneData.
|
398
|
+
|
399
|
+
**参数解释:** 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。 **取值范围:** 不涉及。
|
400
|
+
|
401
|
+
:param created_at: The created_at of this ZoneData.
|
402
|
+
:type created_at: str
|
403
|
+
"""
|
404
|
+
self._created_at = created_at
|
405
|
+
|
406
|
+
@property
|
407
|
+
def updated_at(self):
|
408
|
+
r"""Gets the updated_at of this ZoneData.
|
409
|
+
|
410
|
+
**参数解释:** 更新时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。 **取值范围:** 不涉及。
|
411
|
+
|
412
|
+
:return: The updated_at of this ZoneData.
|
413
|
+
:rtype: str
|
414
|
+
"""
|
415
|
+
return self._updated_at
|
416
|
+
|
417
|
+
@updated_at.setter
|
418
|
+
def updated_at(self, updated_at):
|
419
|
+
r"""Sets the updated_at of this ZoneData.
|
420
|
+
|
421
|
+
**参数解释:** 更新时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。 **取值范围:** 不涉及。
|
422
|
+
|
423
|
+
:param updated_at: The updated_at of this ZoneData.
|
424
|
+
:type updated_at: str
|
425
|
+
"""
|
426
|
+
self._updated_at = updated_at
|
427
|
+
|
428
|
+
@property
|
429
|
+
def record_num(self):
|
430
|
+
r"""Gets the record_num of this ZoneData.
|
431
|
+
|
432
|
+
**参数解释:** 该域名下的记录集个数。 **取值范围:** 不涉及。
|
433
|
+
|
434
|
+
:return: The record_num of this ZoneData.
|
435
|
+
:rtype: int
|
436
|
+
"""
|
437
|
+
return self._record_num
|
438
|
+
|
439
|
+
@record_num.setter
|
440
|
+
def record_num(self, record_num):
|
441
|
+
r"""Sets the record_num of this ZoneData.
|
442
|
+
|
443
|
+
**参数解释:** 该域名下的记录集个数。 **取值范围:** 不涉及。
|
444
|
+
|
445
|
+
:param record_num: The record_num of this ZoneData.
|
446
|
+
:type record_num: int
|
447
|
+
"""
|
448
|
+
self._record_num = record_num
|
449
|
+
|
450
|
+
@property
|
451
|
+
def links(self):
|
452
|
+
r"""Gets the links of this ZoneData.
|
453
|
+
|
454
|
+
:return: The links of this ZoneData.
|
455
|
+
:rtype: :class:`huaweicloudsdkdns.v2.Link`
|
456
|
+
"""
|
457
|
+
return self._links
|
458
|
+
|
459
|
+
@links.setter
|
460
|
+
def links(self, links):
|
461
|
+
r"""Sets the links of this ZoneData.
|
462
|
+
|
463
|
+
:param links: The links of this ZoneData.
|
464
|
+
:type links: :class:`huaweicloudsdkdns.v2.Link`
|
465
|
+
"""
|
466
|
+
self._links = links
|
467
|
+
|
468
|
+
def to_dict(self):
|
469
|
+
"""Returns the model properties as a dict"""
|
470
|
+
result = {}
|
471
|
+
|
472
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
473
|
+
value = getattr(self, attr)
|
474
|
+
if isinstance(value, list):
|
475
|
+
result[attr] = list(map(
|
476
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
477
|
+
value
|
478
|
+
))
|
479
|
+
elif hasattr(value, "to_dict"):
|
480
|
+
result[attr] = value.to_dict()
|
481
|
+
elif isinstance(value, dict):
|
482
|
+
result[attr] = dict(map(
|
483
|
+
lambda item: (item[0], item[1].to_dict())
|
484
|
+
if hasattr(item[1], "to_dict") else item,
|
485
|
+
value.items()
|
486
|
+
))
|
487
|
+
else:
|
488
|
+
if attr in self.sensitive_list:
|
489
|
+
result[attr] = "****"
|
490
|
+
else:
|
491
|
+
result[attr] = value
|
492
|
+
|
493
|
+
return result
|
494
|
+
|
495
|
+
def to_str(self):
|
496
|
+
"""Returns the string representation of the model"""
|
497
|
+
import simplejson as json
|
498
|
+
if six.PY2:
|
499
|
+
import sys
|
500
|
+
reload(sys)
|
501
|
+
sys.setdefaultencoding("utf-8")
|
502
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
503
|
+
|
504
|
+
def __repr__(self):
|
505
|
+
"""For `print`"""
|
506
|
+
return self.to_str()
|
507
|
+
|
508
|
+
def __eq__(self, other):
|
509
|
+
"""Returns true if both objects are equal"""
|
510
|
+
if not isinstance(other, ZoneData):
|
511
|
+
return False
|
512
|
+
|
513
|
+
return self.__dict__ == other.__dict__
|
514
|
+
|
515
|
+
def __ne__(self, other):
|
516
|
+
"""Returns true if both objects are not equal"""
|
517
|
+
return not self == other
|
@@ -1,35 +1,63 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
import types
|
4
|
-
|
5
3
|
from huaweicloudsdkcore.region.region import Region
|
6
|
-
|
4
|
+
from huaweicloudsdkcore.region.provider import RegionProviderChain
|
7
5
|
|
8
6
|
class DnsRegion:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
7
|
+
_PROVIDER = RegionProviderChain.get_default_region_provider_chain("DNS")
|
8
|
+
|
9
|
+
CN_EAST_2 = Region("cn-east-2",
|
10
|
+
"https://dns.cn-east-2.myhuaweicloud.com")
|
11
|
+
CN_EAST_3 = Region("cn-east-3",
|
12
|
+
"https://dns.cn-east-3.myhuaweicloud.com")
|
13
|
+
CN_NORTH_1 = Region("cn-north-1",
|
14
|
+
"https://dns.cn-north-1.myhuaweicloud.com")
|
15
|
+
CN_NORTH_4 = Region("cn-north-4",
|
16
|
+
"https://dns.cn-north-4.myhuaweicloud.com")
|
17
|
+
CN_SOUTH_1 = Region("cn-south-1",
|
18
|
+
"https://dns.cn-south-1.myhuaweicloud.com")
|
19
|
+
CN_SOUTHWEST_2 = Region("cn-southwest-2",
|
20
|
+
"https://dns.cn-southwest-2.myhuaweicloud.com")
|
21
|
+
AF_SOUTH_1 = Region("af-south-1",
|
22
|
+
"https://dns.af-south-1.myhuaweicloud.com")
|
23
|
+
AP_SOUTHEAST_1 = Region("ap-southeast-1",
|
24
|
+
"https://dns.ap-southeast-1.myhuaweicloud.com")
|
25
|
+
AP_SOUTHEAST_2 = Region("ap-southeast-2",
|
26
|
+
"https://dns.ap-southeast-2.myhuaweicloud.com")
|
27
|
+
AP_SOUTHEAST_3 = Region("ap-southeast-3",
|
28
|
+
"https://dns.ap-southeast-3.myhuaweicloud.com")
|
29
|
+
SA_BRAZIL_1 = Region("sa-brazil-1",
|
30
|
+
"https://dns.sa-brazil-1.myhuaweicloud.com")
|
31
|
+
LA_SOUTH_2 = Region("la-south-2",
|
32
|
+
"https://dns.la-south-2.myhuaweicloud.com")
|
33
|
+
LA_NORTH_2 = Region("la-north-2",
|
34
|
+
"https://dns.la-north-2.myhuaweicloud.com")
|
35
|
+
NA_MEXICO_1 = Region("na-mexico-1",
|
36
|
+
"https://dns.na-mexico-1.myhuaweicloud.com")
|
37
|
+
CN_NORTH_9 = Region("cn-north-9",
|
38
|
+
"https://dns.cn-north-9.myhuaweicloud.com")
|
39
|
+
CN_NORTH_2 = Region("cn-north-2",
|
40
|
+
"https://dns.cn-north-2.myhuaweicloud.com")
|
41
|
+
CN_SOUTH_2 = Region("cn-south-2",
|
42
|
+
"https://dns.cn-south-2.myhuaweicloud.com")
|
43
|
+
AP_SOUTHEAST_4 = Region("ap-southeast-4",
|
44
|
+
"https://dns.ap-southeast-4.myhuaweicloud.com")
|
45
|
+
AE_AD_1 = Region("ae-ad-1",
|
46
|
+
"https://dns.ae-ad-1.myhuaweicloud.com")
|
47
|
+
RU_MOSCOW_1 = Region("ru-moscow-1",
|
48
|
+
"https://dns.ru-moscow-1.myhuaweicloud.com")
|
49
|
+
ME_EAST_1 = Region("me-east-1",
|
50
|
+
"https://dns.me-east-1.myhuaweicloud.com")
|
51
|
+
AP_SOUTHEAST_5 = Region("ap-southeast-5",
|
52
|
+
"https://dns.ap-southeast-5.myhuaweicloud.com")
|
53
|
+
CN_EAST_5 = Region("cn-east-5",
|
54
|
+
"https://dns.cn-east-5.myhuaweicloud.com")
|
55
|
+
CN_EAST_4 = Region("cn-east-4",
|
56
|
+
"https://dns.cn-east-4.myhuaweicloud.com")
|
57
|
+
TR_WEST_1 = Region("tr-west-1",
|
58
|
+
"https://dns.tr-west-1.myhuaweicloud.com")
|
59
|
+
|
60
|
+
static_fields = {
|
33
61
|
"cn-east-2": CN_EAST_2,
|
34
62
|
"cn-east-3": CN_EAST_3,
|
35
63
|
"cn-north-1": CN_NORTH_1,
|
@@ -40,14 +68,36 @@ class DnsRegion:
|
|
40
68
|
"ap-southeast-1": AP_SOUTHEAST_1,
|
41
69
|
"ap-southeast-2": AP_SOUTHEAST_2,
|
42
70
|
"ap-southeast-3": AP_SOUTHEAST_3,
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
71
|
+
"sa-brazil-1": SA_BRAZIL_1,
|
72
|
+
"la-south-2": LA_SOUTH_2,
|
73
|
+
"la-north-2": LA_NORTH_2,
|
74
|
+
"na-mexico-1": NA_MEXICO_1,
|
75
|
+
"cn-north-9": CN_NORTH_9,
|
76
|
+
"cn-north-2": CN_NORTH_2,
|
77
|
+
"cn-south-2": CN_SOUTH_2,
|
78
|
+
"ap-southeast-4": AP_SOUTHEAST_4,
|
79
|
+
"ae-ad-1": AE_AD_1,
|
80
|
+
"ru-moscow-1": RU_MOSCOW_1,
|
81
|
+
"me-east-1": ME_EAST_1,
|
82
|
+
"ap-southeast-5": AP_SOUTHEAST_5,
|
83
|
+
"cn-east-5": CN_EAST_5,
|
84
|
+
"cn-east-4": CN_EAST_4,
|
85
|
+
"tr-west-1": TR_WEST_1,
|
86
|
+
}
|
87
|
+
|
88
|
+
@classmethod
|
89
|
+
def value_of(cls, region_id, static_fields=None):
|
90
|
+
if not region_id:
|
91
|
+
raise KeyError("Unexpected empty parameter: region_id")
|
92
|
+
|
93
|
+
fields = static_fields or cls.static_fields
|
94
|
+
|
95
|
+
region = cls._PROVIDER.get_region(region_id)
|
96
|
+
if region:
|
97
|
+
return region
|
98
|
+
|
99
|
+
if region_id in fields:
|
100
|
+
return fields.get(region_id)
|
101
|
+
|
102
|
+
raise KeyError("region_id '%s' is not in the following supported regions of service 'Dns': [%s]" % (
|
103
|
+
region_id, ", ".join(sorted(fields.keys()))))
|
@@ -1,26 +1,26 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkdns
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.1.160
|
4
4
|
Summary: DNS
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
6
6
|
Author: HuaweiCloud SDK
|
7
7
|
Author-email: hwcloudsdk@huawei.com
|
8
8
|
License: Apache LICENSE 2.0
|
9
9
|
Keywords: huaweicloud,sdk,DNS
|
10
|
-
Platform: UNKNOWN
|
11
10
|
Classifier: Development Status :: 5 - Production/Stable
|
12
11
|
Classifier: Intended Audience :: Developers
|
13
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
15
|
-
Classifier: Programming Language :: Python :: 3.3
|
16
|
-
Classifier: Programming Language :: Python :: 3.4
|
17
|
-
Classifier: Programming Language :: Python :: 3.5
|
18
13
|
Classifier: Programming Language :: Python :: 3.6
|
19
14
|
Classifier: Programming Language :: Python :: 3.7
|
15
|
+
Classifier: Programming Language :: Python :: 3.8
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
20
20
|
Classifier: Topic :: Software Development
|
21
|
+
Requires-Python: >=3.6
|
21
22
|
Description-Content-Type: text/markdown
|
22
|
-
|
23
|
+
License-File: LICENSE
|
24
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.160
|
23
25
|
|
24
26
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
25
|
-
|
26
|
-
|