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
@@ -1,17 +1,13 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
import pprint
|
4
|
-
import re
|
5
|
-
|
6
3
|
import six
|
7
4
|
|
8
|
-
|
9
5
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
10
7
|
|
11
8
|
|
12
9
|
class UpdatePtrRecordResponse(SdkResponse):
|
13
10
|
|
14
|
-
|
15
11
|
"""
|
16
12
|
Attributes:
|
17
13
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +15,6 @@ class UpdatePtrRecordResponse(SdkResponse):
|
|
19
15
|
attribute_map (dict): The key is attribute name
|
20
16
|
and the value is json key in definition.
|
21
17
|
"""
|
22
|
-
|
23
18
|
sensitive_list = []
|
24
19
|
|
25
20
|
openapi_types = {
|
@@ -45,9 +40,29 @@ class UpdatePtrRecordResponse(SdkResponse):
|
|
45
40
|
}
|
46
41
|
|
47
42
|
def __init__(self, id=None, ptrdname=None, description=None, ttl=None, address=None, status=None, action=None, links=None):
|
48
|
-
"""UpdatePtrRecordResponse
|
43
|
+
r"""UpdatePtrRecordResponse
|
44
|
+
|
45
|
+
The model defined in huaweicloud sdk
|
46
|
+
|
47
|
+
:param id: 反向解析记录的ID,格式形如{region}:{floatingip_id}。
|
48
|
+
:type id: str
|
49
|
+
:param ptrdname: 反向解析记录对应的域名。
|
50
|
+
:type ptrdname: str
|
51
|
+
:param description: 对反向解析记录的描述。
|
52
|
+
:type description: str
|
53
|
+
:param ttl: 反向解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
|
54
|
+
:type ttl: int
|
55
|
+
:param address: 弹性公网IP的IP地址。
|
56
|
+
:type address: str
|
57
|
+
:param status: 资源状态。
|
58
|
+
:type status: str
|
59
|
+
:param action: 对该资源的当前操作。 取值范围: CREATE:表示创建 UPDATE:表示更新 DELETE:表示删除 NONE:表示无操作
|
60
|
+
:type action: str
|
61
|
+
:param links:
|
62
|
+
:type links: :class:`huaweicloudsdkdns.v2.PageLink`
|
63
|
+
"""
|
49
64
|
|
50
|
-
super().__init__()
|
65
|
+
super(UpdatePtrRecordResponse, self).__init__()
|
51
66
|
|
52
67
|
self._id = None
|
53
68
|
self._ptrdname = None
|
@@ -78,9 +93,9 @@ class UpdatePtrRecordResponse(SdkResponse):
|
|
78
93
|
|
79
94
|
@property
|
80
95
|
def id(self):
|
81
|
-
"""Gets the id of this UpdatePtrRecordResponse.
|
96
|
+
r"""Gets the id of this UpdatePtrRecordResponse.
|
82
97
|
|
83
|
-
|
98
|
+
反向解析记录的ID,格式形如{region}:{floatingip_id}。
|
84
99
|
|
85
100
|
:return: The id of this UpdatePtrRecordResponse.
|
86
101
|
:rtype: str
|
@@ -89,20 +104,20 @@ class UpdatePtrRecordResponse(SdkResponse):
|
|
89
104
|
|
90
105
|
@id.setter
|
91
106
|
def id(self, id):
|
92
|
-
"""Sets the id of this UpdatePtrRecordResponse.
|
107
|
+
r"""Sets the id of this UpdatePtrRecordResponse.
|
93
108
|
|
94
|
-
|
109
|
+
反向解析记录的ID,格式形如{region}:{floatingip_id}。
|
95
110
|
|
96
111
|
:param id: The id of this UpdatePtrRecordResponse.
|
97
|
-
:type: str
|
112
|
+
:type id: str
|
98
113
|
"""
|
99
114
|
self._id = id
|
100
115
|
|
101
116
|
@property
|
102
117
|
def ptrdname(self):
|
103
|
-
"""Gets the ptrdname of this UpdatePtrRecordResponse.
|
118
|
+
r"""Gets the ptrdname of this UpdatePtrRecordResponse.
|
104
119
|
|
105
|
-
|
120
|
+
反向解析记录对应的域名。
|
106
121
|
|
107
122
|
:return: The ptrdname of this UpdatePtrRecordResponse.
|
108
123
|
:rtype: str
|
@@ -111,20 +126,20 @@ class UpdatePtrRecordResponse(SdkResponse):
|
|
111
126
|
|
112
127
|
@ptrdname.setter
|
113
128
|
def ptrdname(self, ptrdname):
|
114
|
-
"""Sets the ptrdname of this UpdatePtrRecordResponse.
|
129
|
+
r"""Sets the ptrdname of this UpdatePtrRecordResponse.
|
115
130
|
|
116
|
-
|
131
|
+
反向解析记录对应的域名。
|
117
132
|
|
118
133
|
:param ptrdname: The ptrdname of this UpdatePtrRecordResponse.
|
119
|
-
:type: str
|
134
|
+
:type ptrdname: str
|
120
135
|
"""
|
121
136
|
self._ptrdname = ptrdname
|
122
137
|
|
123
138
|
@property
|
124
139
|
def description(self):
|
125
|
-
"""Gets the description of this UpdatePtrRecordResponse.
|
140
|
+
r"""Gets the description of this UpdatePtrRecordResponse.
|
126
141
|
|
127
|
-
|
142
|
+
对反向解析记录的描述。
|
128
143
|
|
129
144
|
:return: The description of this UpdatePtrRecordResponse.
|
130
145
|
:rtype: str
|
@@ -133,20 +148,20 @@ class UpdatePtrRecordResponse(SdkResponse):
|
|
133
148
|
|
134
149
|
@description.setter
|
135
150
|
def description(self, description):
|
136
|
-
"""Sets the description of this UpdatePtrRecordResponse.
|
151
|
+
r"""Sets the description of this UpdatePtrRecordResponse.
|
137
152
|
|
138
|
-
|
153
|
+
对反向解析记录的描述。
|
139
154
|
|
140
155
|
:param description: The description of this UpdatePtrRecordResponse.
|
141
|
-
:type: str
|
156
|
+
:type description: str
|
142
157
|
"""
|
143
158
|
self._description = description
|
144
159
|
|
145
160
|
@property
|
146
161
|
def ttl(self):
|
147
|
-
"""Gets the ttl of this UpdatePtrRecordResponse.
|
162
|
+
r"""Gets the ttl of this UpdatePtrRecordResponse.
|
148
163
|
|
149
|
-
|
164
|
+
反向解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
|
150
165
|
|
151
166
|
:return: The ttl of this UpdatePtrRecordResponse.
|
152
167
|
:rtype: int
|
@@ -155,20 +170,20 @@ class UpdatePtrRecordResponse(SdkResponse):
|
|
155
170
|
|
156
171
|
@ttl.setter
|
157
172
|
def ttl(self, ttl):
|
158
|
-
"""Sets the ttl of this UpdatePtrRecordResponse.
|
173
|
+
r"""Sets the ttl of this UpdatePtrRecordResponse.
|
159
174
|
|
160
|
-
|
175
|
+
反向解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
|
161
176
|
|
162
177
|
:param ttl: The ttl of this UpdatePtrRecordResponse.
|
163
|
-
:type: int
|
178
|
+
:type ttl: int
|
164
179
|
"""
|
165
180
|
self._ttl = ttl
|
166
181
|
|
167
182
|
@property
|
168
183
|
def address(self):
|
169
|
-
"""Gets the address of this UpdatePtrRecordResponse.
|
184
|
+
r"""Gets the address of this UpdatePtrRecordResponse.
|
170
185
|
|
171
|
-
|
186
|
+
弹性公网IP的IP地址。
|
172
187
|
|
173
188
|
:return: The address of this UpdatePtrRecordResponse.
|
174
189
|
:rtype: str
|
@@ -177,18 +192,18 @@ class UpdatePtrRecordResponse(SdkResponse):
|
|
177
192
|
|
178
193
|
@address.setter
|
179
194
|
def address(self, address):
|
180
|
-
"""Sets the address of this UpdatePtrRecordResponse.
|
195
|
+
r"""Sets the address of this UpdatePtrRecordResponse.
|
181
196
|
|
182
|
-
|
197
|
+
弹性公网IP的IP地址。
|
183
198
|
|
184
199
|
:param address: The address of this UpdatePtrRecordResponse.
|
185
|
-
:type: str
|
200
|
+
:type address: str
|
186
201
|
"""
|
187
202
|
self._address = address
|
188
203
|
|
189
204
|
@property
|
190
205
|
def status(self):
|
191
|
-
"""Gets the status of this UpdatePtrRecordResponse.
|
206
|
+
r"""Gets the status of this UpdatePtrRecordResponse.
|
192
207
|
|
193
208
|
资源状态。
|
194
209
|
|
@@ -199,18 +214,18 @@ class UpdatePtrRecordResponse(SdkResponse):
|
|
199
214
|
|
200
215
|
@status.setter
|
201
216
|
def status(self, status):
|
202
|
-
"""Sets the status of this UpdatePtrRecordResponse.
|
217
|
+
r"""Sets the status of this UpdatePtrRecordResponse.
|
203
218
|
|
204
219
|
资源状态。
|
205
220
|
|
206
221
|
:param status: The status of this UpdatePtrRecordResponse.
|
207
|
-
:type: str
|
222
|
+
:type status: str
|
208
223
|
"""
|
209
224
|
self._status = status
|
210
225
|
|
211
226
|
@property
|
212
227
|
def action(self):
|
213
|
-
"""Gets the action of this UpdatePtrRecordResponse.
|
228
|
+
r"""Gets the action of this UpdatePtrRecordResponse.
|
214
229
|
|
215
230
|
对该资源的当前操作。 取值范围: CREATE:表示创建 UPDATE:表示更新 DELETE:表示删除 NONE:表示无操作
|
216
231
|
|
@@ -221,32 +236,30 @@ class UpdatePtrRecordResponse(SdkResponse):
|
|
221
236
|
|
222
237
|
@action.setter
|
223
238
|
def action(self, action):
|
224
|
-
"""Sets the action of this UpdatePtrRecordResponse.
|
239
|
+
r"""Sets the action of this UpdatePtrRecordResponse.
|
225
240
|
|
226
241
|
对该资源的当前操作。 取值范围: CREATE:表示创建 UPDATE:表示更新 DELETE:表示删除 NONE:表示无操作
|
227
242
|
|
228
243
|
:param action: The action of this UpdatePtrRecordResponse.
|
229
|
-
:type: str
|
244
|
+
:type action: str
|
230
245
|
"""
|
231
246
|
self._action = action
|
232
247
|
|
233
248
|
@property
|
234
249
|
def links(self):
|
235
|
-
"""Gets the links of this UpdatePtrRecordResponse.
|
236
|
-
|
250
|
+
r"""Gets the links of this UpdatePtrRecordResponse.
|
237
251
|
|
238
252
|
:return: The links of this UpdatePtrRecordResponse.
|
239
|
-
:rtype: PageLink
|
253
|
+
:rtype: :class:`huaweicloudsdkdns.v2.PageLink`
|
240
254
|
"""
|
241
255
|
return self._links
|
242
256
|
|
243
257
|
@links.setter
|
244
258
|
def links(self, links):
|
245
|
-
"""Sets the links of this UpdatePtrRecordResponse.
|
246
|
-
|
259
|
+
r"""Sets the links of this UpdatePtrRecordResponse.
|
247
260
|
|
248
261
|
:param links: The links of this UpdatePtrRecordResponse.
|
249
|
-
:type: PageLink
|
262
|
+
:type links: :class:`huaweicloudsdkdns.v2.PageLink`
|
250
263
|
"""
|
251
264
|
self._links = links
|
252
265
|
|
@@ -279,10 +292,15 @@ class UpdatePtrRecordResponse(SdkResponse):
|
|
279
292
|
|
280
293
|
def to_str(self):
|
281
294
|
"""Returns the string representation of the model"""
|
282
|
-
|
295
|
+
import simplejson as json
|
296
|
+
if six.PY2:
|
297
|
+
import sys
|
298
|
+
reload(sys)
|
299
|
+
sys.setdefaultencoding("utf-8")
|
300
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
283
301
|
|
284
302
|
def __repr__(self):
|
285
|
-
"""For `print`
|
303
|
+
"""For `print`"""
|
286
304
|
return self.to_str()
|
287
305
|
|
288
306
|
def __eq__(self, other):
|
@@ -1,17 +1,12 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
import pprint
|
4
|
-
import re
|
5
|
-
|
6
3
|
import six
|
7
4
|
|
8
|
-
|
9
|
-
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
10
6
|
|
11
7
|
|
12
8
|
class UpdatePtrReq:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class UpdatePtrReq:
|
|
19
14
|
attribute_map (dict): The key is attribute name
|
20
15
|
and the value is json key in definition.
|
21
16
|
"""
|
22
|
-
|
23
17
|
sensitive_list = []
|
24
18
|
|
25
19
|
openapi_types = {
|
@@ -37,7 +31,19 @@ class UpdatePtrReq:
|
|
37
31
|
}
|
38
32
|
|
39
33
|
def __init__(self, ptrdname=None, description=None, ttl=None, tags=None):
|
40
|
-
"""UpdatePtrReq
|
34
|
+
r"""UpdatePtrReq
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param ptrdname: 反向解析记录对应的域名。
|
39
|
+
:type ptrdname: str
|
40
|
+
:param description: 对反向解析记录的描述。
|
41
|
+
:type description: str
|
42
|
+
:param ttl: 反向解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
|
43
|
+
:type ttl: int
|
44
|
+
:param tags: 资源标签。
|
45
|
+
:type tags: list[:class:`huaweicloudsdkdns.v2.Tag`]
|
46
|
+
"""
|
41
47
|
|
42
48
|
|
43
49
|
|
@@ -57,9 +63,9 @@ class UpdatePtrReq:
|
|
57
63
|
|
58
64
|
@property
|
59
65
|
def ptrdname(self):
|
60
|
-
"""Gets the ptrdname of this UpdatePtrReq.
|
66
|
+
r"""Gets the ptrdname of this UpdatePtrReq.
|
61
67
|
|
62
|
-
|
68
|
+
反向解析记录对应的域名。
|
63
69
|
|
64
70
|
:return: The ptrdname of this UpdatePtrReq.
|
65
71
|
:rtype: str
|
@@ -68,20 +74,20 @@ class UpdatePtrReq:
|
|
68
74
|
|
69
75
|
@ptrdname.setter
|
70
76
|
def ptrdname(self, ptrdname):
|
71
|
-
"""Sets the ptrdname of this UpdatePtrReq.
|
77
|
+
r"""Sets the ptrdname of this UpdatePtrReq.
|
72
78
|
|
73
|
-
|
79
|
+
反向解析记录对应的域名。
|
74
80
|
|
75
81
|
:param ptrdname: The ptrdname of this UpdatePtrReq.
|
76
|
-
:type: str
|
82
|
+
:type ptrdname: str
|
77
83
|
"""
|
78
84
|
self._ptrdname = ptrdname
|
79
85
|
|
80
86
|
@property
|
81
87
|
def description(self):
|
82
|
-
"""Gets the description of this UpdatePtrReq.
|
88
|
+
r"""Gets the description of this UpdatePtrReq.
|
83
89
|
|
84
|
-
|
90
|
+
对反向解析记录的描述。
|
85
91
|
|
86
92
|
:return: The description of this UpdatePtrReq.
|
87
93
|
:rtype: str
|
@@ -90,20 +96,20 @@ class UpdatePtrReq:
|
|
90
96
|
|
91
97
|
@description.setter
|
92
98
|
def description(self, description):
|
93
|
-
"""Sets the description of this UpdatePtrReq.
|
99
|
+
r"""Sets the description of this UpdatePtrReq.
|
94
100
|
|
95
|
-
|
101
|
+
对反向解析记录的描述。
|
96
102
|
|
97
103
|
:param description: The description of this UpdatePtrReq.
|
98
|
-
:type: str
|
104
|
+
:type description: str
|
99
105
|
"""
|
100
106
|
self._description = description
|
101
107
|
|
102
108
|
@property
|
103
109
|
def ttl(self):
|
104
|
-
"""Gets the ttl of this UpdatePtrReq.
|
110
|
+
r"""Gets the ttl of this UpdatePtrReq.
|
105
111
|
|
106
|
-
|
112
|
+
反向解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
|
107
113
|
|
108
114
|
:return: The ttl of this UpdatePtrReq.
|
109
115
|
:rtype: int
|
@@ -112,34 +118,34 @@ class UpdatePtrReq:
|
|
112
118
|
|
113
119
|
@ttl.setter
|
114
120
|
def ttl(self, ttl):
|
115
|
-
"""Sets the ttl of this UpdatePtrReq.
|
121
|
+
r"""Sets the ttl of this UpdatePtrReq.
|
116
122
|
|
117
|
-
|
123
|
+
反向解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
|
118
124
|
|
119
125
|
:param ttl: The ttl of this UpdatePtrReq.
|
120
|
-
:type: int
|
126
|
+
:type ttl: int
|
121
127
|
"""
|
122
128
|
self._ttl = ttl
|
123
129
|
|
124
130
|
@property
|
125
131
|
def tags(self):
|
126
|
-
"""Gets the tags of this UpdatePtrReq.
|
132
|
+
r"""Gets the tags of this UpdatePtrReq.
|
127
133
|
|
128
134
|
资源标签。
|
129
135
|
|
130
136
|
:return: The tags of this UpdatePtrReq.
|
131
|
-
:rtype: list[Tag]
|
137
|
+
:rtype: list[:class:`huaweicloudsdkdns.v2.Tag`]
|
132
138
|
"""
|
133
139
|
return self._tags
|
134
140
|
|
135
141
|
@tags.setter
|
136
142
|
def tags(self, tags):
|
137
|
-
"""Sets the tags of this UpdatePtrReq.
|
143
|
+
r"""Sets the tags of this UpdatePtrReq.
|
138
144
|
|
139
145
|
资源标签。
|
140
146
|
|
141
147
|
:param tags: The tags of this UpdatePtrReq.
|
142
|
-
:type: list[Tag]
|
148
|
+
:type tags: list[:class:`huaweicloudsdkdns.v2.Tag`]
|
143
149
|
"""
|
144
150
|
self._tags = tags
|
145
151
|
|
@@ -172,10 +178,15 @@ class UpdatePtrReq:
|
|
172
178
|
|
173
179
|
def to_str(self):
|
174
180
|
"""Returns the string representation of the model"""
|
175
|
-
|
181
|
+
import simplejson as json
|
182
|
+
if six.PY2:
|
183
|
+
import sys
|
184
|
+
reload(sys)
|
185
|
+
sys.setdefaultencoding("utf-8")
|
186
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
176
187
|
|
177
188
|
def __repr__(self):
|
178
|
-
"""For `print`
|
189
|
+
"""For `print`"""
|
179
190
|
return self.to_str()
|
180
191
|
|
181
192
|
def __eq__(self, other):
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdatePtrRequest:
|
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
|
+
'ptr_id': 'str',
|
21
|
+
'body': 'UpdatePtrRequestBody'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'ptr_id': 'ptr_id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, ptr_id=None, body=None):
|
30
|
+
r"""UpdatePtrRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param ptr_id: 反向解析ID。
|
35
|
+
:type ptr_id: str
|
36
|
+
:param body: Body of the UpdatePtrRequest
|
37
|
+
:type body: :class:`huaweicloudsdkdns.v2.UpdatePtrRequestBody`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._ptr_id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.ptr_id = ptr_id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def ptr_id(self):
|
52
|
+
r"""Gets the ptr_id of this UpdatePtrRequest.
|
53
|
+
|
54
|
+
反向解析ID。
|
55
|
+
|
56
|
+
:return: The ptr_id of this UpdatePtrRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._ptr_id
|
60
|
+
|
61
|
+
@ptr_id.setter
|
62
|
+
def ptr_id(self, ptr_id):
|
63
|
+
r"""Sets the ptr_id of this UpdatePtrRequest.
|
64
|
+
|
65
|
+
反向解析ID。
|
66
|
+
|
67
|
+
:param ptr_id: The ptr_id of this UpdatePtrRequest.
|
68
|
+
:type ptr_id: str
|
69
|
+
"""
|
70
|
+
self._ptr_id = ptr_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
r"""Gets the body of this UpdatePtrRequest.
|
75
|
+
|
76
|
+
:return: The body of this UpdatePtrRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkdns.v2.UpdatePtrRequestBody`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
r"""Sets the body of this UpdatePtrRequest.
|
84
|
+
|
85
|
+
:param body: The body of this UpdatePtrRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkdns.v2.UpdatePtrRequestBody`
|
87
|
+
"""
|
88
|
+
self._body = body
|
89
|
+
|
90
|
+
def to_dict(self):
|
91
|
+
"""Returns the model properties as a dict"""
|
92
|
+
result = {}
|
93
|
+
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
95
|
+
value = getattr(self, attr)
|
96
|
+
if isinstance(value, list):
|
97
|
+
result[attr] = list(map(
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
99
|
+
value
|
100
|
+
))
|
101
|
+
elif hasattr(value, "to_dict"):
|
102
|
+
result[attr] = value.to_dict()
|
103
|
+
elif isinstance(value, dict):
|
104
|
+
result[attr] = dict(map(
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
107
|
+
value.items()
|
108
|
+
))
|
109
|
+
else:
|
110
|
+
if attr in self.sensitive_list:
|
111
|
+
result[attr] = "****"
|
112
|
+
else:
|
113
|
+
result[attr] = value
|
114
|
+
|
115
|
+
return result
|
116
|
+
|
117
|
+
def to_str(self):
|
118
|
+
"""Returns the string representation of the model"""
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
"""For `print`"""
|
128
|
+
return self.to_str()
|
129
|
+
|
130
|
+
def __eq__(self, other):
|
131
|
+
"""Returns true if both objects are equal"""
|
132
|
+
if not isinstance(other, UpdatePtrRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
return not self == other
|