From 09c36fb1eb69a6509b89f163ffc69484fd6dff3e Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 30 Aug 2024 02:52:55 +0000 Subject: [PATCH] Generated 2018-01-29 for Domain. --- ChangeLog.txt | 8 + services/domain/acknowledge_task_result.go | 102 +++++++++++++ ...batch_fuzzy_match_domain_sensitive_word.go | 102 +++++++++++++ services/domain/cancel_domain_verification.go | 102 +++++++++++++ services/domain/cancel_operation_audit.go | 100 +++++++++++++ .../cancel_qualification_verification.go | 102 +++++++++++++ .../domain/{fail_demand.go => cancel_task.go} | 49 +++--- services/domain/change_auction.go | 120 --------------- services/domain/change_resource_group.go | 104 +++++++++++++ services/domain/check_domain.go | 110 ++++++++++++++ services/domain/check_domain_status.go | 103 ------------- services/domain/check_domain_sunrise_claim.go | 103 +++++++++++++ .../check_intl_fix_price_domain_status.go | 100 +++++++++++++ .../domain/check_max_year_of_server_lock.go | 103 +++++++++++++ .../check_processing_server_lock_apply.go | 103 +++++++++++++ .../domain/check_selected_domain_status.go | 103 ------------- .../domain/check_transfer_in_feasibility.go | 106 +++++++++++++ services/domain/confirm_transfer_in_email.go | 104 +++++++++++++ .../domain/create_fixed_price_demand_order.go | 106 ------------- .../create_fixed_price_selected_order.go | 107 ------------- .../create_intl_fixed_price_domain_order.go | 103 +++++++++++++ services/domain/delete_contact_templates.go | 100 +++++++++++++ services/domain/delete_domain_group.go | 101 +++++++++++++ services/domain/delete_email_verification.go | 103 +++++++++++++ services/domain/delete_registrant_profile.go | 101 +++++++++++++ services/domain/domain_special_biz_cancel.go | 99 +++++++++++++ .../{reserve_domain.go => email_verified.go} | 50 +++---- services/domain/finish_demand.go | 100 ------------- .../fuzzy_match_domain_sensitive_word.go | 104 +++++++++++++ .../domain/get_intl_domain_download_url.go | 108 -------------- .../get_intl_fix_price_domain_list_url.go | 100 +++++++++++++ .../domain/get_operation_oss_upload_policy.go | 106 +++++++++++++ .../domain/get_qualification_upload_policy.go | 107 +++++++++++++ services/domain/get_reserve_domain_url.go | 99 ------------- services/domain/list_email_verification.go | 113 ++++++++++++++ services/domain/list_server_lock.go | 118 +++++++++++++++ services/domain/lookup_tmch_notice.go | 106 +++++++++++++ services/domain/poll_task_result.go | 113 ++++++++++++++ services/domain/purchase_intl_domain.go | 111 -------------- services/domain/query_advanced_domain_list.go | 140 ++++++++++++++++++ services/domain/query_art_extension.go | 111 ++++++++++++++ services/domain/query_auction_detail.go | 122 --------------- services/domain/query_auctions.go | 108 -------------- services/domain/query_bid_records.go | 106 ------------- services/domain/query_booking_domain_info.go | 106 ------------- services/domain/query_broker_demand.go | 107 ------------- services/domain/query_broker_demand_record.go | 106 ------------- services/domain/query_change_log_list.go | 113 ++++++++++++++ services/domain/query_contact_info.go | 119 +++++++++++++++ .../{accept_demand.go => query_dns_host.go} | 53 +++---- .../domain/query_domain_admin_division.go | 101 +++++++++++++ .../domain/query_domain_by_domain_name.go | 134 +++++++++++++++++ .../domain/query_domain_by_instance_id.go | 134 +++++++++++++++++ services/domain/query_domain_group_list.go | 103 +++++++++++++ services/domain/query_domain_list.go | 128 ++++++++++++++++ ...uery_domain_real_name_verification_info.go | 109 ++++++++++++++ .../domain/query_domain_special_biz_detail.go | 111 ++++++++++++++ ...query_domain_special_biz_info_by_domain.go | 112 ++++++++++++++ services/domain/query_domain_suffix.go | 101 +++++++++++++ .../domain/query_domain_transfer_status.go | 100 ------------- services/domain/query_ds_record.go | 102 +++++++++++++ services/domain/query_email_verification.go | 111 ++++++++++++++ services/domain/query_ens_association.go | 102 +++++++++++++ ...eason_for_domain_real_name_verification.go | 103 +++++++++++++ ...gistrant_profile_real_name_verification.go | 102 +++++++++++++ ...y_failing_reason_list_for_qualification.go | 104 +++++++++++++ .../query_intl_fixed_price_order_list.go | 103 +++++++++++++ .../domain/query_local_ens_association.go | 102 +++++++++++++ .../query_operation_audit_info_detail.go | 109 ++++++++++++++ .../domain/query_operation_audit_info_list.go | 111 ++++++++++++++ services/domain/query_purchased_domains.go | 112 -------------- services/domain/query_qualification_detail.go | 105 +++++++++++++ ...ant_profile_real_name_verification_info.go | 109 ++++++++++++++ services/domain/query_registrant_profiles.go | 118 +++++++++++++++ services/domain/query_server_lock.go | 111 ++++++++++++++ services/domain/query_task_detail_history.go | 111 ++++++++++++++ services/domain/query_task_detail_list.go | 113 ++++++++++++++ services/domain/query_task_info_history.go | 110 ++++++++++++++ services/domain/query_task_list.go | 111 ++++++++++++++ .../query_transfer_in_by_instance_id.go | 122 +++++++++++++++ services/domain/query_transfer_in_list.go | 113 ++++++++++++++ services/domain/query_transfer_out_info.go | 108 ++++++++++++++ services/domain/record_demand.go | 100 ------------- services/domain/refuse_demand.go | 100 ------------- ...gistrant_profile_real_name_verification.go | 104 +++++++++++++ services/domain/request_pay_demand.go | 103 ------------- services/domain/resend_email_verification.go | 103 +++++++++++++ services/domain/reserve_intl_domain.go | 109 -------------- .../reset_qualification_verification.go | 101 +++++++++++++ services/domain/save_batch_domain_remark.go | 102 +++++++++++++ ...ask_for_apply_quick_transfer_out_openly.go | 102 +++++++++++++ ..._batch_task_for_creating_order_activate.go | 137 +++++++++++++++++ ...ve_batch_task_for_creating_order_redeem.go | 112 ++++++++++++++ ...ave_batch_task_for_creating_order_renew.go | 113 ++++++++++++++ ..._batch_task_for_creating_order_transfer.go | 114 ++++++++++++++ ...atch_task_for_domain_name_proxy_service.go | 103 +++++++++++++ ...ch_task_for_generate_domain_certificate.go | 102 +++++++++++++ ...ave_batch_task_for_modifying_domain_dns.go | 104 +++++++++++++ ...batch_task_for_reserve_drop_list_domain.go | 108 ++++++++++++++ ...atch_task_for_transfer_prohibition_lock.go | 103 +++++++++++++ ..._batch_task_for_update_prohibition_lock.go | 103 +++++++++++++ ...or_updating_contact_info_by_new_contact.go | 121 +++++++++++++++ ...g_contact_info_by_registrant_profile_id.go | 105 +++++++++++++ services/domain/save_domain_group.go | 109 ++++++++++++++ services/domain/save_registrant_profile.go | 121 +++++++++++++++ ...gistrant_profile_real_name_verification.go | 123 +++++++++++++++ .../save_single_task_for_adding_ds_record.go | 106 +++++++++++++ ...ask_for_apply_quick_transfer_out_openly.go | 102 +++++++++++++ ..._single_task_for_approving_transfer_out.go | 102 +++++++++++++ .../save_single_task_for_associating_ens.go | 103 +++++++++++++ ...e_single_task_for_canceling_transfer_in.go | 102 +++++++++++++ ..._single_task_for_canceling_transfer_out.go | 102 +++++++++++++ .../save_single_task_for_creating_dns_host.go | 104 +++++++++++++ ...single_task_for_creating_order_activate.go | 132 +++++++++++++++++ ...e_single_task_for_creating_order_redeem.go | 107 +++++++++++++ ...ve_single_task_for_creating_order_renew.go | 108 ++++++++++++++ ...single_task_for_creating_order_transfer.go | 109 ++++++++++++++ .../save_single_task_for_deleting_dns_host.go | 103 +++++++++++++ ...save_single_task_for_deleting_ds_record.go | 103 +++++++++++++ ...save_single_task_for_disassociating_ens.go | 102 +++++++++++++ ...ngle_task_for_domain_name_proxy_service.go | 103 +++++++++++++ ...le_task_for_generate_domain_certificate.go | 102 +++++++++++++ ...save_single_task_for_modifying_dns_host.go | 104 +++++++++++++ ...ave_single_task_for_modifying_ds_record.go | 106 +++++++++++++ ...or_querying_transfer_authorization_code.go | 102 +++++++++++++ ...ingle_task_for_reserve_drop_list_domain.go | 103 +++++++++++++ ...save_single_task_for_save_art_extension.go | 111 ++++++++++++++ ..._single_task_for_synchronizing_dns_host.go | 102 +++++++++++++ ...single_task_for_synchronizing_ds_record.go | 102 +++++++++++++ ...ngle_task_for_transfer_prohibition_lock.go | 103 +++++++++++++ ...single_task_for_update_prohibition_lock.go | 103 +++++++++++++ ...e_single_task_for_updating_contact_info.go | 106 +++++++++++++ .../save_task_for_submitting_domain_delete.go | 102 +++++++++++++ ...ame_verification_by_identity_credential.go | 105 +++++++++++++ ...e_verification_by_registrant_profile_id.go | 104 +++++++++++++ ..._registrant_info_by_identity_credential.go | 123 +++++++++++++++ ...egistrant_info_by_registrant_profile_id.go | 104 +++++++++++++ services/domain/scroll_domain_list.go | 125 ++++++++++++++++ services/domain/selected_domain_list.go | 102 ------------- .../domain/set_default_registrant_profile.go | 100 +++++++++++++ services/domain/setup_domain_auto_renew.go | 101 +++++++++++++ services/domain/struct_addr.go | 25 ++++ services/domain/struct_admin_division.go | 22 +++ services/domain/struct_admin_divisions.go | 21 +++ services/domain/struct_auction_detail.go | 45 ------ services/domain/struct_change_log.go | 26 ++++ ...uery_bid_records.go => struct_children.go} | 6 +- services/domain/struct_children_item.go | 21 +++ services/domain/struct_claim.go | 26 ++++ services/domain/struct_claims.go | 21 +++ services/domain/struct_class_desc.go | 22 +++ services/domain/struct_class_descs.go | 21 +++ ...struct_bid_record.go => struct_contact.go} | 16 +- services/domain/struct_contacts.go | 21 +++ services/domain/struct_credentials.go | 21 +++ services/domain/struct_current_page_cursor.go | 35 +++++ ...struct_data_in_list_email_verification.go} | 6 +- .../domain/struct_data_in_list_server_lock.go | 21 +++ .../domain/struct_data_in_poll_task_result.go | 21 +++ ...ruct_data_in_query_advanced_domain_list.go | 21 +++ .../struct_data_in_query_change_log_list.go | 21 +++ .../struct_data_in_query_domain_group_list.go | 21 +++ .../struct_data_in_query_domain_list.go | 21 +++ ...eason_for_domain_real_name_verification.go | 21 +++ ...gistrant_profile_real_name_verification.go | 21 +++ ...y_failing_reason_list_for_qualification.go | 21 +++ ...data_in_query_operation_audit_info_list.go | 21 +++ ... struct_data_in_query_task_detail_list.go} | 6 +- .../domain/struct_data_in_query_task_list.go | 21 +++ .../struct_data_in_query_transfer_in_list.go | 21 +++ .../struct_data_in_scroll_domain_list.go | 21 +++ services/domain/struct_demand.go | 40 ----- services/domain/struct_dns_host.go | 22 +++ services/domain/struct_dns_host_list.go | 21 +++ ..._dns_list_in_query_advanced_domain_list.go | 21 +++ ...dns_list_in_query_domain_by_domain_name.go | 21 +++ ...dns_list_in_query_domain_by_instance_id.go | 21 +++ .../struct_dns_list_in_scroll_domain_list.go | 21 +++ services/domain/struct_domain.go | 45 ++++++ ...ased_domains.go => struct_domain_group.go} | 17 ++- .../struct_domain_special_biz_contact.go | 45 ++++++ .../struct_domain_special_biz_credential.go | 27 ++++ ...ials_in_query_domain_special_biz_detail.go | 21 +++ ...query_domain_special_biz_info_by_domain.go | 21 +++ .../struct_domain_special_order_result.go | 29 ++++ .../domain/struct_domain_transfer_status.go | 21 --- services/domain/struct_ds_record.go | 24 +++ services/domain/struct_ds_record_list.go | 21 +++ services/domain/struct_email_verification.go | 30 ++++ ...rgs_in_query_domain_special_biz_detail.go} | 4 +- ...uery_domain_special_biz_info_by_domain.go} | 4 +- services/domain/struct_exist_list.go | 21 +++ ..._fail_list_in_confirm_transfer_in_email.go | 21 +++ ..._fail_list_in_delete_email_verification.go | 21 +++ ..._fail_list_in_resend_email_verification.go | 21 +++ ..._fail_list_in_submit_email_verification.go | 21 +++ ...il_list_in_transfer_in_check_mail_token.go | 21 +++ services/domain/struct_fail_record.go | 23 +++ services/domain/struct_holder.go | 23 +++ services/domain/struct_holders.go | 21 +++ services/domain/struct_ip_list.go | 21 +++ services/domain/struct_jur_desc.go | 22 +++ .../domain/struct_matched_sensitive_word.go | 21 +++ ...batch_fuzzy_match_domain_sensitive_word.go | 21 +++ ...s_in_fuzzy_match_domain_sensitive_word.go} | 8 +- services/domain/struct_module.go | 37 ++++- ..._module_in_check_selected_domain_status.go | 26 ---- ...dule_in_create_fixed_price_demand_order.go | 23 --- ...le_in_create_fixed_price_selected_order.go | 23 --- ...le_in_query_intl_fixed_price_order_list.go | 28 ++++ services/domain/struct_next_page_cursor.go | 35 +++++ ...t_objects_in_query_task_detail_history.go} | 6 +- ...ruct_objects_in_query_task_info_history.go | 21 +++ .../domain/struct_operation_audit_record.go | 29 ++++ services/domain/struct_pre_page_cursor.go | 35 +++++ services/domain/struct_price_info.go | 23 +++ .../domain/struct_qualification_credential.go | 23 +++ .../struct_query_transfer_in_response.go | 30 ++++ services/domain/struct_registrant_profile.go | 47 ++++++ services/domain/struct_registrant_profiles.go | 21 +++ services/domain/struct_send_result.go | 23 +++ ... => struct_sensitive_word_match_result.go} | 9 +- ...struct_sensitive_word_match_result_list.go | 21 +++ services/domain/struct_static_price_info.go | 21 +++ .../struct_street_in_lookup_tmch_notice.go | 21 +++ ...ccess_list_in_confirm_transfer_in_email.go | 21 +++ ...ccess_list_in_delete_email_verification.go | 21 +++ ...ccess_list_in_resend_email_verification.go | 21 +++ ...ccess_list_in_submit_email_verification.go | 21 +++ ...ss_list_in_transfer_in_check_mail_token.go | 21 +++ services/domain/struct_suffix_list.go | 21 +++ ...ruct_tag_in_query_advanced_domain_list.go} | 6 +- ...ruct_tag_in_query_domain_by_domain_name.go | 21 +++ ...ruct_tag_in_query_domain_by_instance_id.go | 21 +++ .../domain/struct_tag_in_query_domain_list.go | 21 +++ .../struct_tag_in_scroll_domain_list.go | 21 +++ ...ry_broker_demand.go => struct_tag_item.go} | 8 +- services/domain/struct_task_detail.go | 34 +++++ services/domain/struct_task_detail_history.go | 32 ++++ services/domain/struct_task_info.go | 30 ++++ services/domain/struct_task_info_history.go | 29 ++++ services/domain/struct_transfer_in_info.go | 41 +++++ .../submit_domain_special_biz_credentials.go | 101 +++++++++++++ services/domain/submit_email_verification.go | 105 +++++++++++++ .../domain/submit_operation_audit_info.go | 104 +++++++++++++ .../domain/submit_operation_credentials.go | 103 +++++++++++++ services/domain/submit_purchase_info.go | 101 ------------- .../domain/transfer_in_check_mail_token.go | 103 +++++++++++++ ..._in_reenter_transfer_authorization_code.go | 102 +++++++++++++ .../domain/transfer_in_refetch_whois_email.go | 101 +++++++++++++ .../domain/transfer_in_resend_mail_token.go | 101 +++++++++++++ .../domain/update_domain_to_domain_group.go | 105 +++++++++++++ .../domain/update_partner_reserve_price.go | 102 ------------- services/domain/verify_contact_field.go | 118 +++++++++++++++ .../domain/{bid_domain.go => verify_email.go} | 51 ++++--- 255 files changed, 15608 insertions(+), 2872 deletions(-) create mode 100644 services/domain/acknowledge_task_result.go create mode 100644 services/domain/batch_fuzzy_match_domain_sensitive_word.go create mode 100644 services/domain/cancel_domain_verification.go create mode 100644 services/domain/cancel_operation_audit.go create mode 100644 services/domain/cancel_qualification_verification.go rename services/domain/{fail_demand.go => cancel_task.go} (53%) delete mode 100644 services/domain/change_auction.go create mode 100644 services/domain/change_resource_group.go create mode 100644 services/domain/check_domain.go delete mode 100644 services/domain/check_domain_status.go create mode 100644 services/domain/check_domain_sunrise_claim.go create mode 100644 services/domain/check_intl_fix_price_domain_status.go create mode 100644 services/domain/check_max_year_of_server_lock.go create mode 100644 services/domain/check_processing_server_lock_apply.go delete mode 100644 services/domain/check_selected_domain_status.go create mode 100644 services/domain/check_transfer_in_feasibility.go create mode 100644 services/domain/confirm_transfer_in_email.go delete mode 100644 services/domain/create_fixed_price_demand_order.go delete mode 100644 services/domain/create_fixed_price_selected_order.go create mode 100644 services/domain/create_intl_fixed_price_domain_order.go create mode 100644 services/domain/delete_contact_templates.go create mode 100644 services/domain/delete_domain_group.go create mode 100644 services/domain/delete_email_verification.go create mode 100644 services/domain/delete_registrant_profile.go create mode 100644 services/domain/domain_special_biz_cancel.go rename services/domain/{reserve_domain.go => email_verified.go} (52%) delete mode 100644 services/domain/finish_demand.go create mode 100644 services/domain/fuzzy_match_domain_sensitive_word.go delete mode 100644 services/domain/get_intl_domain_download_url.go create mode 100644 services/domain/get_intl_fix_price_domain_list_url.go create mode 100644 services/domain/get_operation_oss_upload_policy.go create mode 100644 services/domain/get_qualification_upload_policy.go delete mode 100644 services/domain/get_reserve_domain_url.go create mode 100644 services/domain/list_email_verification.go create mode 100644 services/domain/list_server_lock.go create mode 100644 services/domain/lookup_tmch_notice.go create mode 100644 services/domain/poll_task_result.go delete mode 100644 services/domain/purchase_intl_domain.go create mode 100644 services/domain/query_advanced_domain_list.go create mode 100644 services/domain/query_art_extension.go delete mode 100644 services/domain/query_auction_detail.go delete mode 100644 services/domain/query_auctions.go delete mode 100644 services/domain/query_bid_records.go delete mode 100644 services/domain/query_booking_domain_info.go delete mode 100644 services/domain/query_broker_demand.go delete mode 100644 services/domain/query_broker_demand_record.go create mode 100644 services/domain/query_change_log_list.go create mode 100644 services/domain/query_contact_info.go rename services/domain/{accept_demand.go => query_dns_host.go} (50%) create mode 100644 services/domain/query_domain_admin_division.go create mode 100644 services/domain/query_domain_by_domain_name.go create mode 100644 services/domain/query_domain_by_instance_id.go create mode 100644 services/domain/query_domain_group_list.go create mode 100644 services/domain/query_domain_list.go create mode 100644 services/domain/query_domain_real_name_verification_info.go create mode 100644 services/domain/query_domain_special_biz_detail.go create mode 100644 services/domain/query_domain_special_biz_info_by_domain.go create mode 100644 services/domain/query_domain_suffix.go delete mode 100644 services/domain/query_domain_transfer_status.go create mode 100644 services/domain/query_ds_record.go create mode 100644 services/domain/query_email_verification.go create mode 100644 services/domain/query_ens_association.go create mode 100644 services/domain/query_fail_reason_for_domain_real_name_verification.go create mode 100644 services/domain/query_fail_reason_for_registrant_profile_real_name_verification.go create mode 100644 services/domain/query_failing_reason_list_for_qualification.go create mode 100644 services/domain/query_intl_fixed_price_order_list.go create mode 100644 services/domain/query_local_ens_association.go create mode 100644 services/domain/query_operation_audit_info_detail.go create mode 100644 services/domain/query_operation_audit_info_list.go delete mode 100644 services/domain/query_purchased_domains.go create mode 100644 services/domain/query_qualification_detail.go create mode 100644 services/domain/query_registrant_profile_real_name_verification_info.go create mode 100644 services/domain/query_registrant_profiles.go create mode 100644 services/domain/query_server_lock.go create mode 100644 services/domain/query_task_detail_history.go create mode 100644 services/domain/query_task_detail_list.go create mode 100644 services/domain/query_task_info_history.go create mode 100644 services/domain/query_task_list.go create mode 100644 services/domain/query_transfer_in_by_instance_id.go create mode 100644 services/domain/query_transfer_in_list.go create mode 100644 services/domain/query_transfer_out_info.go delete mode 100644 services/domain/record_demand.go delete mode 100644 services/domain/refuse_demand.go create mode 100644 services/domain/registrant_profile_real_name_verification.go delete mode 100644 services/domain/request_pay_demand.go create mode 100644 services/domain/resend_email_verification.go delete mode 100644 services/domain/reserve_intl_domain.go create mode 100644 services/domain/reset_qualification_verification.go create mode 100644 services/domain/save_batch_domain_remark.go create mode 100644 services/domain/save_batch_task_for_apply_quick_transfer_out_openly.go create mode 100644 services/domain/save_batch_task_for_creating_order_activate.go create mode 100644 services/domain/save_batch_task_for_creating_order_redeem.go create mode 100644 services/domain/save_batch_task_for_creating_order_renew.go create mode 100644 services/domain/save_batch_task_for_creating_order_transfer.go create mode 100644 services/domain/save_batch_task_for_domain_name_proxy_service.go create mode 100644 services/domain/save_batch_task_for_generate_domain_certificate.go create mode 100644 services/domain/save_batch_task_for_modifying_domain_dns.go create mode 100644 services/domain/save_batch_task_for_reserve_drop_list_domain.go create mode 100644 services/domain/save_batch_task_for_transfer_prohibition_lock.go create mode 100644 services/domain/save_batch_task_for_update_prohibition_lock.go create mode 100644 services/domain/save_batch_task_for_updating_contact_info_by_new_contact.go create mode 100644 services/domain/save_batch_task_for_updating_contact_info_by_registrant_profile_id.go create mode 100644 services/domain/save_domain_group.go create mode 100644 services/domain/save_registrant_profile.go create mode 100644 services/domain/save_registrant_profile_real_name_verification.go create mode 100644 services/domain/save_single_task_for_adding_ds_record.go create mode 100644 services/domain/save_single_task_for_apply_quick_transfer_out_openly.go create mode 100644 services/domain/save_single_task_for_approving_transfer_out.go create mode 100644 services/domain/save_single_task_for_associating_ens.go create mode 100644 services/domain/save_single_task_for_canceling_transfer_in.go create mode 100644 services/domain/save_single_task_for_canceling_transfer_out.go create mode 100644 services/domain/save_single_task_for_creating_dns_host.go create mode 100644 services/domain/save_single_task_for_creating_order_activate.go create mode 100644 services/domain/save_single_task_for_creating_order_redeem.go create mode 100644 services/domain/save_single_task_for_creating_order_renew.go create mode 100644 services/domain/save_single_task_for_creating_order_transfer.go create mode 100644 services/domain/save_single_task_for_deleting_dns_host.go create mode 100644 services/domain/save_single_task_for_deleting_ds_record.go create mode 100644 services/domain/save_single_task_for_disassociating_ens.go create mode 100644 services/domain/save_single_task_for_domain_name_proxy_service.go create mode 100644 services/domain/save_single_task_for_generate_domain_certificate.go create mode 100644 services/domain/save_single_task_for_modifying_dns_host.go create mode 100644 services/domain/save_single_task_for_modifying_ds_record.go create mode 100644 services/domain/save_single_task_for_querying_transfer_authorization_code.go create mode 100644 services/domain/save_single_task_for_reserve_drop_list_domain.go create mode 100644 services/domain/save_single_task_for_save_art_extension.go create mode 100644 services/domain/save_single_task_for_synchronizing_dns_host.go create mode 100644 services/domain/save_single_task_for_synchronizing_ds_record.go create mode 100644 services/domain/save_single_task_for_transfer_prohibition_lock.go create mode 100644 services/domain/save_single_task_for_update_prohibition_lock.go create mode 100644 services/domain/save_single_task_for_updating_contact_info.go create mode 100644 services/domain/save_task_for_submitting_domain_delete.go create mode 100644 services/domain/save_task_for_submitting_domain_real_name_verification_by_identity_credential.go create mode 100644 services/domain/save_task_for_submitting_domain_real_name_verification_by_registrant_profile_id.go create mode 100644 services/domain/save_task_for_updating_registrant_info_by_identity_credential.go create mode 100644 services/domain/save_task_for_updating_registrant_info_by_registrant_profile_id.go create mode 100644 services/domain/scroll_domain_list.go delete mode 100644 services/domain/selected_domain_list.go create mode 100644 services/domain/set_default_registrant_profile.go create mode 100644 services/domain/setup_domain_auto_renew.go create mode 100644 services/domain/struct_addr.go create mode 100644 services/domain/struct_admin_division.go create mode 100644 services/domain/struct_admin_divisions.go delete mode 100644 services/domain/struct_auction_detail.go create mode 100644 services/domain/struct_change_log.go rename services/domain/{struct_data_in_query_bid_records.go => struct_children.go} (81%) create mode 100644 services/domain/struct_children_item.go create mode 100644 services/domain/struct_claim.go create mode 100644 services/domain/struct_claims.go create mode 100644 services/domain/struct_class_desc.go create mode 100644 services/domain/struct_class_descs.go rename services/domain/{struct_bid_record.go => struct_contact.go} (67%) create mode 100644 services/domain/struct_contacts.go create mode 100644 services/domain/struct_credentials.go create mode 100644 services/domain/struct_current_page_cursor.go rename services/domain/{struct_data_in_query_purchased_domains.go => struct_data_in_list_email_verification.go} (78%) create mode 100644 services/domain/struct_data_in_list_server_lock.go create mode 100644 services/domain/struct_data_in_poll_task_result.go create mode 100644 services/domain/struct_data_in_query_advanced_domain_list.go create mode 100644 services/domain/struct_data_in_query_change_log_list.go create mode 100644 services/domain/struct_data_in_query_domain_group_list.go create mode 100644 services/domain/struct_data_in_query_domain_list.go create mode 100644 services/domain/struct_data_in_query_fail_reason_for_domain_real_name_verification.go create mode 100644 services/domain/struct_data_in_query_fail_reason_for_registrant_profile_real_name_verification.go create mode 100644 services/domain/struct_data_in_query_failing_reason_list_for_qualification.go create mode 100644 services/domain/struct_data_in_query_operation_audit_info_list.go rename services/domain/{struct_data_in_query_auctions.go => struct_data_in_query_task_detail_list.go} (80%) create mode 100644 services/domain/struct_data_in_query_task_list.go create mode 100644 services/domain/struct_data_in_query_transfer_in_list.go create mode 100644 services/domain/struct_data_in_scroll_domain_list.go delete mode 100644 services/domain/struct_demand.go create mode 100644 services/domain/struct_dns_host.go create mode 100644 services/domain/struct_dns_host_list.go create mode 100644 services/domain/struct_dns_list_in_query_advanced_domain_list.go create mode 100644 services/domain/struct_dns_list_in_query_domain_by_domain_name.go create mode 100644 services/domain/struct_dns_list_in_query_domain_by_instance_id.go create mode 100644 services/domain/struct_dns_list_in_scroll_domain_list.go create mode 100644 services/domain/struct_domain.go rename services/domain/{struct_purchased_domains.go => struct_domain_group.go} (55%) create mode 100644 services/domain/struct_domain_special_biz_contact.go create mode 100644 services/domain/struct_domain_special_biz_credential.go create mode 100644 services/domain/struct_domain_special_biz_credentials_in_query_domain_special_biz_detail.go create mode 100644 services/domain/struct_domain_special_biz_credentials_in_query_domain_special_biz_info_by_domain.go create mode 100644 services/domain/struct_domain_special_order_result.go delete mode 100644 services/domain/struct_domain_transfer_status.go create mode 100644 services/domain/struct_ds_record.go create mode 100644 services/domain/struct_ds_record_list.go create mode 100644 services/domain/struct_email_verification.go rename services/domain/{struct_error_args_in_purchase_intl_domain.go => struct_error_args_in_query_domain_special_biz_detail.go} (85%) rename services/domain/{struct_error_args_in_get_intl_domain_download_url.go => struct_error_args_in_query_domain_special_biz_info_by_domain.go} (83%) create mode 100644 services/domain/struct_exist_list.go create mode 100644 services/domain/struct_fail_list_in_confirm_transfer_in_email.go create mode 100644 services/domain/struct_fail_list_in_delete_email_verification.go create mode 100644 services/domain/struct_fail_list_in_resend_email_verification.go create mode 100644 services/domain/struct_fail_list_in_submit_email_verification.go create mode 100644 services/domain/struct_fail_list_in_transfer_in_check_mail_token.go create mode 100644 services/domain/struct_fail_record.go create mode 100644 services/domain/struct_holder.go create mode 100644 services/domain/struct_holders.go create mode 100644 services/domain/struct_ip_list.go create mode 100644 services/domain/struct_jur_desc.go create mode 100644 services/domain/struct_matched_sensitive_word.go create mode 100644 services/domain/struct_matched_sentive_words_in_batch_fuzzy_match_domain_sensitive_word.go rename services/domain/{struct_broker_demand_record.go => struct_matched_sentive_words_in_fuzzy_match_domain_sensitive_word.go} (73%) delete mode 100644 services/domain/struct_module_in_check_selected_domain_status.go delete mode 100644 services/domain/struct_module_in_create_fixed_price_demand_order.go delete mode 100644 services/domain/struct_module_in_create_fixed_price_selected_order.go create mode 100644 services/domain/struct_module_in_query_intl_fixed_price_order_list.go create mode 100644 services/domain/struct_next_page_cursor.go rename services/domain/{struct_data_in_query_broker_demand_record.go => struct_objects_in_query_task_detail_history.go} (77%) create mode 100644 services/domain/struct_objects_in_query_task_info_history.go create mode 100644 services/domain/struct_operation_audit_record.go create mode 100644 services/domain/struct_pre_page_cursor.go create mode 100644 services/domain/struct_price_info.go create mode 100644 services/domain/struct_qualification_credential.go create mode 100644 services/domain/struct_query_transfer_in_response.go create mode 100644 services/domain/struct_registrant_profile.go create mode 100644 services/domain/struct_registrant_profiles.go create mode 100644 services/domain/struct_send_result.go rename services/domain/{struct_domain_transfer_status_item.go => struct_sensitive_word_match_result.go} (61%) create mode 100644 services/domain/struct_sensitive_word_match_result_list.go create mode 100644 services/domain/struct_static_price_info.go create mode 100644 services/domain/struct_street_in_lookup_tmch_notice.go create mode 100644 services/domain/struct_success_list_in_confirm_transfer_in_email.go create mode 100644 services/domain/struct_success_list_in_delete_email_verification.go create mode 100644 services/domain/struct_success_list_in_resend_email_verification.go create mode 100644 services/domain/struct_success_list_in_submit_email_verification.go create mode 100644 services/domain/struct_success_list_in_transfer_in_check_mail_token.go create mode 100644 services/domain/struct_suffix_list.go rename services/domain/{struct_error_args_in_reserve_intl_domain.go => struct_tag_in_query_advanced_domain_list.go} (81%) create mode 100644 services/domain/struct_tag_in_query_domain_by_domain_name.go create mode 100644 services/domain/struct_tag_in_query_domain_by_instance_id.go create mode 100644 services/domain/struct_tag_in_query_domain_list.go create mode 100644 services/domain/struct_tag_in_scroll_domain_list.go rename services/domain/{struct_data_in_query_broker_demand.go => struct_tag_item.go} (83%) create mode 100644 services/domain/struct_task_detail.go create mode 100644 services/domain/struct_task_detail_history.go create mode 100644 services/domain/struct_task_info.go create mode 100644 services/domain/struct_task_info_history.go create mode 100644 services/domain/struct_transfer_in_info.go create mode 100644 services/domain/submit_domain_special_biz_credentials.go create mode 100644 services/domain/submit_email_verification.go create mode 100644 services/domain/submit_operation_audit_info.go create mode 100644 services/domain/submit_operation_credentials.go delete mode 100644 services/domain/submit_purchase_info.go create mode 100644 services/domain/transfer_in_check_mail_token.go create mode 100644 services/domain/transfer_in_reenter_transfer_authorization_code.go create mode 100644 services/domain/transfer_in_refetch_whois_email.go create mode 100644 services/domain/transfer_in_resend_mail_token.go create mode 100644 services/domain/update_domain_to_domain_group.go delete mode 100644 services/domain/update_partner_reserve_price.go create mode 100644 services/domain/verify_contact_field.go rename services/domain/{bid_domain.go => verify_email.go} (51%) diff --git a/ChangeLog.txt b/ChangeLog.txt index cef7b90216..071ca38253 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,11 @@ +2024-08-30 Version: v1.63.9 +- Generated 2018-01-29 for `Domain`. +- 增加国际一口价相关接口. +- GetIntlFixPriceDomainListUrl. +- CheckIntlFixPriceDomainStatus. +- CreateIntlFixedPriceDomainOrder. +- QueryIntlFixedPriceOrderList. + 2024-08-28 Version: v1.63.8 - Generated 2015-12-01 for `Dds`. undefined diff --git a/services/domain/acknowledge_task_result.go b/services/domain/acknowledge_task_result.go new file mode 100644 index 0000000000..a953e20852 --- /dev/null +++ b/services/domain/acknowledge_task_result.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AcknowledgeTaskResult invokes the domain.AcknowledgeTaskResult API synchronously +func (client *Client) AcknowledgeTaskResult(request *AcknowledgeTaskResultRequest) (response *AcknowledgeTaskResultResponse, err error) { + response = CreateAcknowledgeTaskResultResponse() + err = client.DoAction(request, response) + return +} + +// AcknowledgeTaskResultWithChan invokes the domain.AcknowledgeTaskResult API asynchronously +func (client *Client) AcknowledgeTaskResultWithChan(request *AcknowledgeTaskResultRequest) (<-chan *AcknowledgeTaskResultResponse, <-chan error) { + responseChan := make(chan *AcknowledgeTaskResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AcknowledgeTaskResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AcknowledgeTaskResultWithCallback invokes the domain.AcknowledgeTaskResult API asynchronously +func (client *Client) AcknowledgeTaskResultWithCallback(request *AcknowledgeTaskResultRequest, callback func(response *AcknowledgeTaskResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AcknowledgeTaskResultResponse + var err error + defer close(result) + response, err = client.AcknowledgeTaskResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AcknowledgeTaskResultRequest is the request struct for api AcknowledgeTaskResult +type AcknowledgeTaskResultRequest struct { + *requests.RpcRequest + TaskDetailNo *[]string `position:"Query" name:"TaskDetailNo" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// AcknowledgeTaskResultResponse is the response struct for api AcknowledgeTaskResult +type AcknowledgeTaskResultResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Result int `json:"Result" xml:"Result"` +} + +// CreateAcknowledgeTaskResultRequest creates a request to invoke AcknowledgeTaskResult API +func CreateAcknowledgeTaskResultRequest() (request *AcknowledgeTaskResultRequest) { + request = &AcknowledgeTaskResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "AcknowledgeTaskResult", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateAcknowledgeTaskResultResponse creates a response to parse from AcknowledgeTaskResult response +func CreateAcknowledgeTaskResultResponse() (response *AcknowledgeTaskResultResponse) { + response = &AcknowledgeTaskResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/batch_fuzzy_match_domain_sensitive_word.go b/services/domain/batch_fuzzy_match_domain_sensitive_word.go new file mode 100644 index 0000000000..341e197ed7 --- /dev/null +++ b/services/domain/batch_fuzzy_match_domain_sensitive_word.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// BatchFuzzyMatchDomainSensitiveWord invokes the domain.BatchFuzzyMatchDomainSensitiveWord API synchronously +func (client *Client) BatchFuzzyMatchDomainSensitiveWord(request *BatchFuzzyMatchDomainSensitiveWordRequest) (response *BatchFuzzyMatchDomainSensitiveWordResponse, err error) { + response = CreateBatchFuzzyMatchDomainSensitiveWordResponse() + err = client.DoAction(request, response) + return +} + +// BatchFuzzyMatchDomainSensitiveWordWithChan invokes the domain.BatchFuzzyMatchDomainSensitiveWord API asynchronously +func (client *Client) BatchFuzzyMatchDomainSensitiveWordWithChan(request *BatchFuzzyMatchDomainSensitiveWordRequest) (<-chan *BatchFuzzyMatchDomainSensitiveWordResponse, <-chan error) { + responseChan := make(chan *BatchFuzzyMatchDomainSensitiveWordResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BatchFuzzyMatchDomainSensitiveWord(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BatchFuzzyMatchDomainSensitiveWordWithCallback invokes the domain.BatchFuzzyMatchDomainSensitiveWord API asynchronously +func (client *Client) BatchFuzzyMatchDomainSensitiveWordWithCallback(request *BatchFuzzyMatchDomainSensitiveWordRequest, callback func(response *BatchFuzzyMatchDomainSensitiveWordResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BatchFuzzyMatchDomainSensitiveWordResponse + var err error + defer close(result) + response, err = client.BatchFuzzyMatchDomainSensitiveWord(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BatchFuzzyMatchDomainSensitiveWordRequest is the request struct for api BatchFuzzyMatchDomainSensitiveWord +type BatchFuzzyMatchDomainSensitiveWordRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Keyword string `position:"Query" name:"Keyword"` + Lang string `position:"Query" name:"Lang"` +} + +// BatchFuzzyMatchDomainSensitiveWordResponse is the response struct for api BatchFuzzyMatchDomainSensitiveWord +type BatchFuzzyMatchDomainSensitiveWordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SensitiveWordMatchResultList SensitiveWordMatchResultList `json:"SensitiveWordMatchResultList" xml:"SensitiveWordMatchResultList"` +} + +// CreateBatchFuzzyMatchDomainSensitiveWordRequest creates a request to invoke BatchFuzzyMatchDomainSensitiveWord API +func CreateBatchFuzzyMatchDomainSensitiveWordRequest() (request *BatchFuzzyMatchDomainSensitiveWordRequest) { + request = &BatchFuzzyMatchDomainSensitiveWordRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "BatchFuzzyMatchDomainSensitiveWord", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateBatchFuzzyMatchDomainSensitiveWordResponse creates a response to parse from BatchFuzzyMatchDomainSensitiveWord response +func CreateBatchFuzzyMatchDomainSensitiveWordResponse() (response *BatchFuzzyMatchDomainSensitiveWordResponse) { + response = &BatchFuzzyMatchDomainSensitiveWordResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/cancel_domain_verification.go b/services/domain/cancel_domain_verification.go new file mode 100644 index 0000000000..e9139d4af0 --- /dev/null +++ b/services/domain/cancel_domain_verification.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelDomainVerification invokes the domain.CancelDomainVerification API synchronously +func (client *Client) CancelDomainVerification(request *CancelDomainVerificationRequest) (response *CancelDomainVerificationResponse, err error) { + response = CreateCancelDomainVerificationResponse() + err = client.DoAction(request, response) + return +} + +// CancelDomainVerificationWithChan invokes the domain.CancelDomainVerification API asynchronously +func (client *Client) CancelDomainVerificationWithChan(request *CancelDomainVerificationRequest) (<-chan *CancelDomainVerificationResponse, <-chan error) { + responseChan := make(chan *CancelDomainVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelDomainVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelDomainVerificationWithCallback invokes the domain.CancelDomainVerification API asynchronously +func (client *Client) CancelDomainVerificationWithCallback(request *CancelDomainVerificationRequest, callback func(response *CancelDomainVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelDomainVerificationResponse + var err error + defer close(result) + response, err = client.CancelDomainVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelDomainVerificationRequest is the request struct for api CancelDomainVerification +type CancelDomainVerificationRequest struct { + *requests.RpcRequest + ActionType string `position:"Query" name:"ActionType"` + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// CancelDomainVerificationResponse is the response struct for api CancelDomainVerification +type CancelDomainVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelDomainVerificationRequest creates a request to invoke CancelDomainVerification API +func CreateCancelDomainVerificationRequest() (request *CancelDomainVerificationRequest) { + request = &CancelDomainVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "CancelDomainVerification", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateCancelDomainVerificationResponse creates a response to parse from CancelDomainVerification response +func CreateCancelDomainVerificationResponse() (response *CancelDomainVerificationResponse) { + response = &CancelDomainVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/cancel_operation_audit.go b/services/domain/cancel_operation_audit.go new file mode 100644 index 0000000000..440d1db1cc --- /dev/null +++ b/services/domain/cancel_operation_audit.go @@ -0,0 +1,100 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelOperationAudit invokes the domain.CancelOperationAudit API synchronously +func (client *Client) CancelOperationAudit(request *CancelOperationAuditRequest) (response *CancelOperationAuditResponse, err error) { + response = CreateCancelOperationAuditResponse() + err = client.DoAction(request, response) + return +} + +// CancelOperationAuditWithChan invokes the domain.CancelOperationAudit API asynchronously +func (client *Client) CancelOperationAuditWithChan(request *CancelOperationAuditRequest) (<-chan *CancelOperationAuditResponse, <-chan error) { + responseChan := make(chan *CancelOperationAuditResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelOperationAudit(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelOperationAuditWithCallback invokes the domain.CancelOperationAudit API asynchronously +func (client *Client) CancelOperationAuditWithCallback(request *CancelOperationAuditRequest, callback func(response *CancelOperationAuditResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelOperationAuditResponse + var err error + defer close(result) + response, err = client.CancelOperationAudit(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelOperationAuditRequest is the request struct for api CancelOperationAudit +type CancelOperationAuditRequest struct { + *requests.RpcRequest + AuditRecordId requests.Integer `position:"Query" name:"AuditRecordId"` + Lang string `position:"Query" name:"Lang"` +} + +// CancelOperationAuditResponse is the response struct for api CancelOperationAudit +type CancelOperationAuditResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelOperationAuditRequest creates a request to invoke CancelOperationAudit API +func CreateCancelOperationAuditRequest() (request *CancelOperationAuditRequest) { + request = &CancelOperationAuditRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "CancelOperationAudit", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateCancelOperationAuditResponse creates a response to parse from CancelOperationAudit response +func CreateCancelOperationAuditResponse() (response *CancelOperationAuditResponse) { + response = &CancelOperationAuditResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/cancel_qualification_verification.go b/services/domain/cancel_qualification_verification.go new file mode 100644 index 0000000000..997c1a9a1c --- /dev/null +++ b/services/domain/cancel_qualification_verification.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelQualificationVerification invokes the domain.CancelQualificationVerification API synchronously +func (client *Client) CancelQualificationVerification(request *CancelQualificationVerificationRequest) (response *CancelQualificationVerificationResponse, err error) { + response = CreateCancelQualificationVerificationResponse() + err = client.DoAction(request, response) + return +} + +// CancelQualificationVerificationWithChan invokes the domain.CancelQualificationVerification API asynchronously +func (client *Client) CancelQualificationVerificationWithChan(request *CancelQualificationVerificationRequest) (<-chan *CancelQualificationVerificationResponse, <-chan error) { + responseChan := make(chan *CancelQualificationVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelQualificationVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelQualificationVerificationWithCallback invokes the domain.CancelQualificationVerification API asynchronously +func (client *Client) CancelQualificationVerificationWithCallback(request *CancelQualificationVerificationRequest, callback func(response *CancelQualificationVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelQualificationVerificationResponse + var err error + defer close(result) + response, err = client.CancelQualificationVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelQualificationVerificationRequest is the request struct for api CancelQualificationVerification +type CancelQualificationVerificationRequest struct { + *requests.RpcRequest + QualificationType string `position:"Query" name:"QualificationType"` + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// CancelQualificationVerificationResponse is the response struct for api CancelQualificationVerification +type CancelQualificationVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelQualificationVerificationRequest creates a request to invoke CancelQualificationVerification API +func CreateCancelQualificationVerificationRequest() (request *CancelQualificationVerificationRequest) { + request = &CancelQualificationVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "CancelQualificationVerification", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateCancelQualificationVerificationResponse creates a response to parse from CancelQualificationVerification response +func CreateCancelQualificationVerificationResponse() (response *CancelQualificationVerificationResponse) { + response = &CancelQualificationVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/fail_demand.go b/services/domain/cancel_task.go similarity index 53% rename from services/domain/fail_demand.go rename to services/domain/cancel_task.go index d95aef23f5..d53d7e3477 100644 --- a/services/domain/fail_demand.go +++ b/services/domain/cancel_task.go @@ -20,21 +20,21 @@ import ( "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" ) -// FailDemand invokes the domain.FailDemand API synchronously -func (client *Client) FailDemand(request *FailDemandRequest) (response *FailDemandResponse, err error) { - response = CreateFailDemandResponse() +// CancelTask invokes the domain.CancelTask API synchronously +func (client *Client) CancelTask(request *CancelTaskRequest) (response *CancelTaskResponse, err error) { + response = CreateCancelTaskResponse() err = client.DoAction(request, response) return } -// FailDemandWithChan invokes the domain.FailDemand API asynchronously -func (client *Client) FailDemandWithChan(request *FailDemandRequest) (<-chan *FailDemandResponse, <-chan error) { - responseChan := make(chan *FailDemandResponse, 1) +// CancelTaskWithChan invokes the domain.CancelTask API asynchronously +func (client *Client) CancelTaskWithChan(request *CancelTaskRequest) (<-chan *CancelTaskResponse, <-chan error) { + responseChan := make(chan *CancelTaskResponse, 1) errChan := make(chan error, 1) err := client.AddAsyncTask(func() { defer close(responseChan) defer close(errChan) - response, err := client.FailDemand(request) + response, err := client.CancelTask(request) if err != nil { errChan <- err } else { @@ -49,14 +49,14 @@ func (client *Client) FailDemandWithChan(request *FailDemandRequest) (<-chan *Fa return responseChan, errChan } -// FailDemandWithCallback invokes the domain.FailDemand API asynchronously -func (client *Client) FailDemandWithCallback(request *FailDemandRequest, callback func(response *FailDemandResponse, err error)) <-chan int { +// CancelTaskWithCallback invokes the domain.CancelTask API asynchronously +func (client *Client) CancelTaskWithCallback(request *CancelTaskRequest, callback func(response *CancelTaskResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { - var response *FailDemandResponse + var response *CancelTaskResponse var err error defer close(result) - response, err = client.FailDemand(request) + response, err = client.CancelTask(request) callback(response, err) result <- 1 }) @@ -68,32 +68,33 @@ func (client *Client) FailDemandWithCallback(request *FailDemandRequest, callbac return result } -// FailDemandRequest is the request struct for api FailDemand -type FailDemandRequest struct { +// CancelTaskRequest is the request struct for api CancelTask +type CancelTaskRequest struct { *requests.RpcRequest - Message string `position:"Query" name:"Message"` - BizId string `position:"Query" name:"BizId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + TaskNo string `position:"Query" name:"TaskNo"` + Lang string `position:"Query" name:"Lang"` } -// FailDemandResponse is the response struct for api FailDemand -type FailDemandResponse struct { +// CancelTaskResponse is the response struct for api CancelTask +type CancelTaskResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` } -// CreateFailDemandRequest creates a request to invoke FailDemand API -func CreateFailDemandRequest() (request *FailDemandRequest) { - request = &FailDemandRequest{ +// CreateCancelTaskRequest creates a request to invoke CancelTask API +func CreateCancelTaskRequest() (request *CancelTaskRequest) { + request = &CancelTaskRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Domain", "2018-02-08", "FailDemand", "domain", "openAPI") + request.InitWithApiInfo("Domain", "2018-01-29", "CancelTask", "domain", "openAPI") request.Method = requests.POST return } -// CreateFailDemandResponse creates a response to parse from FailDemand response -func CreateFailDemandResponse() (response *FailDemandResponse) { - response = &FailDemandResponse{ +// CreateCancelTaskResponse creates a response to parse from CancelTask response +func CreateCancelTaskResponse() (response *CancelTaskResponse) { + response = &CancelTaskResponse{ BaseResponse: &responses.BaseResponse{}, } return diff --git a/services/domain/change_auction.go b/services/domain/change_auction.go deleted file mode 100644 index 7aa25dbf28..0000000000 --- a/services/domain/change_auction.go +++ /dev/null @@ -1,120 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ChangeAuction invokes the domain.ChangeAuction API synchronously -func (client *Client) ChangeAuction(request *ChangeAuctionRequest) (response *ChangeAuctionResponse, err error) { - response = CreateChangeAuctionResponse() - err = client.DoAction(request, response) - return -} - -// ChangeAuctionWithChan invokes the domain.ChangeAuction API asynchronously -func (client *Client) ChangeAuctionWithChan(request *ChangeAuctionRequest) (<-chan *ChangeAuctionResponse, <-chan error) { - responseChan := make(chan *ChangeAuctionResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ChangeAuction(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ChangeAuctionWithCallback invokes the domain.ChangeAuction API asynchronously -func (client *Client) ChangeAuctionWithCallback(request *ChangeAuctionRequest, callback func(response *ChangeAuctionResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ChangeAuctionResponse - var err error - defer close(result) - response, err = client.ChangeAuction(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ChangeAuctionRequest is the request struct for api ChangeAuction -type ChangeAuctionRequest struct { - *requests.RpcRequest - AuctionList *[]ChangeAuctionAuctionList `position:"Body" name:"AuctionList" type:"Repeated"` -} - -// ChangeAuctionAuctionList is a repeated param struct in ChangeAuctionRequest -type ChangeAuctionAuctionList struct { - Winner string `name:"Winner"` - ReserveRange string `name:"ReserveRange"` - DomainName string `name:"DomainName"` - EndTime string `name:"EndTime"` - TimeLeft string `name:"TimeLeft"` - BidRecords *[]ChangeAuctionAuctionListBidRecords `name:"BidRecords" type:"Repeated"` - IsReserve string `name:"IsReserve"` - Status string `name:"Status"` - WinnerPrice string `name:"WinnerPrice"` - ReservePrice string `name:"ReservePrice"` -} - -// ChangeAuctionAuctionListBidRecords is a repeated param struct in ChangeAuctionRequest -type ChangeAuctionAuctionListBidRecords struct { - CreateTime string `name:"CreateTime"` - Price string `name:"Price"` - UserId string `name:"UserId"` -} - -// ChangeAuctionResponse is the response struct for api ChangeAuction -type ChangeAuctionResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateChangeAuctionRequest creates a request to invoke ChangeAuction API -func CreateChangeAuctionRequest() (request *ChangeAuctionRequest) { - request = &ChangeAuctionRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "ChangeAuction", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateChangeAuctionResponse creates a response to parse from ChangeAuction response -func CreateChangeAuctionResponse() (response *ChangeAuctionResponse) { - response = &ChangeAuctionResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/change_resource_group.go b/services/domain/change_resource_group.go new file mode 100644 index 0000000000..0864b7d9c2 --- /dev/null +++ b/services/domain/change_resource_group.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ChangeResourceGroup invokes the domain.ChangeResourceGroup API synchronously +func (client *Client) ChangeResourceGroup(request *ChangeResourceGroupRequest) (response *ChangeResourceGroupResponse, err error) { + response = CreateChangeResourceGroupResponse() + err = client.DoAction(request, response) + return +} + +// ChangeResourceGroupWithChan invokes the domain.ChangeResourceGroup API asynchronously +func (client *Client) ChangeResourceGroupWithChan(request *ChangeResourceGroupRequest) (<-chan *ChangeResourceGroupResponse, <-chan error) { + responseChan := make(chan *ChangeResourceGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ChangeResourceGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ChangeResourceGroupWithCallback invokes the domain.ChangeResourceGroup API asynchronously +func (client *Client) ChangeResourceGroupWithCallback(request *ChangeResourceGroupRequest, callback func(response *ChangeResourceGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ChangeResourceGroupResponse + var err error + defer close(result) + response, err = client.ChangeResourceGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ChangeResourceGroupRequest is the request struct for api ChangeResourceGroup +type ChangeResourceGroupRequest struct { + *requests.RpcRequest + ResourceId string `position:"Query" name:"ResourceId"` + ResourceType string `position:"Query" name:"ResourceType"` + NewResourceGroupId string `position:"Query" name:"NewResourceGroupId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// ChangeResourceGroupResponse is the response struct for api ChangeResourceGroup +type ChangeResourceGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Result string `json:"Result" xml:"Result"` +} + +// CreateChangeResourceGroupRequest creates a request to invoke ChangeResourceGroup API +func CreateChangeResourceGroupRequest() (request *ChangeResourceGroupRequest) { + request = &ChangeResourceGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "ChangeResourceGroup", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateChangeResourceGroupResponse creates a response to parse from ChangeResourceGroup response +func CreateChangeResourceGroupResponse() (response *ChangeResourceGroupResponse) { + response = &ChangeResourceGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/check_domain.go b/services/domain/check_domain.go new file mode 100644 index 0000000000..76c42f6324 --- /dev/null +++ b/services/domain/check_domain.go @@ -0,0 +1,110 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckDomain invokes the domain.CheckDomain API synchronously +func (client *Client) CheckDomain(request *CheckDomainRequest) (response *CheckDomainResponse, err error) { + response = CreateCheckDomainResponse() + err = client.DoAction(request, response) + return +} + +// CheckDomainWithChan invokes the domain.CheckDomain API asynchronously +func (client *Client) CheckDomainWithChan(request *CheckDomainRequest) (<-chan *CheckDomainResponse, <-chan error) { + responseChan := make(chan *CheckDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckDomainWithCallback invokes the domain.CheckDomain API asynchronously +func (client *Client) CheckDomainWithCallback(request *CheckDomainRequest, callback func(response *CheckDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckDomainResponse + var err error + defer close(result) + response, err = client.CheckDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckDomainRequest is the request struct for api CheckDomain +type CheckDomainRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + FeeCurrency string `position:"Query" name:"FeeCurrency"` + FeePeriod requests.Integer `position:"Query" name:"FeePeriod"` + FeeCommand string `position:"Query" name:"FeeCommand"` + Lang string `position:"Query" name:"Lang"` +} + +// CheckDomainResponse is the response struct for api CheckDomain +type CheckDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Avail string `json:"Avail" xml:"Avail"` + Price int64 `json:"Price" xml:"Price"` + DomainName string `json:"DomainName" xml:"DomainName"` + Premium string `json:"Premium" xml:"Premium"` + DynamicCheck bool `json:"DynamicCheck" xml:"DynamicCheck"` + Reason string `json:"Reason" xml:"Reason"` + StaticPriceInfo StaticPriceInfo `json:"StaticPriceInfo" xml:"StaticPriceInfo"` +} + +// CreateCheckDomainRequest creates a request to invoke CheckDomain API +func CreateCheckDomainRequest() (request *CheckDomainRequest) { + request = &CheckDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "CheckDomain", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateCheckDomainResponse creates a response to parse from CheckDomain response +func CreateCheckDomainResponse() (response *CheckDomainResponse) { + response = &CheckDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/check_domain_status.go b/services/domain/check_domain_status.go deleted file mode 100644 index 25b478c2d1..0000000000 --- a/services/domain/check_domain_status.go +++ /dev/null @@ -1,103 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CheckDomainStatus invokes the domain.CheckDomainStatus API synchronously -func (client *Client) CheckDomainStatus(request *CheckDomainStatusRequest) (response *CheckDomainStatusResponse, err error) { - response = CreateCheckDomainStatusResponse() - err = client.DoAction(request, response) - return -} - -// CheckDomainStatusWithChan invokes the domain.CheckDomainStatus API asynchronously -func (client *Client) CheckDomainStatusWithChan(request *CheckDomainStatusRequest) (<-chan *CheckDomainStatusResponse, <-chan error) { - responseChan := make(chan *CheckDomainStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CheckDomainStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CheckDomainStatusWithCallback invokes the domain.CheckDomainStatus API asynchronously -func (client *Client) CheckDomainStatusWithCallback(request *CheckDomainStatusRequest, callback func(response *CheckDomainStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CheckDomainStatusResponse - var err error - defer close(result) - response, err = client.CheckDomainStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CheckDomainStatusRequest is the request struct for api CheckDomainStatus -type CheckDomainStatusRequest struct { - *requests.RpcRequest - Domain string `position:"Query" name:"Domain"` -} - -// CheckDomainStatusResponse is the response struct for api CheckDomainStatus -type CheckDomainStatusResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - Success bool `json:"Success" xml:"Success"` - Module Module `json:"Module" xml:"Module"` -} - -// CreateCheckDomainStatusRequest creates a request to invoke CheckDomainStatus API -func CreateCheckDomainStatusRequest() (request *CheckDomainStatusRequest) { - request = &CheckDomainStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "CheckDomainStatus", "domain", "openAPI") - request.Method = requests.GET - return -} - -// CreateCheckDomainStatusResponse creates a response to parse from CheckDomainStatus response -func CreateCheckDomainStatusResponse() (response *CheckDomainStatusResponse) { - response = &CheckDomainStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/check_domain_sunrise_claim.go b/services/domain/check_domain_sunrise_claim.go new file mode 100644 index 0000000000..9e33dd178e --- /dev/null +++ b/services/domain/check_domain_sunrise_claim.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckDomainSunriseClaim invokes the domain.CheckDomainSunriseClaim API synchronously +func (client *Client) CheckDomainSunriseClaim(request *CheckDomainSunriseClaimRequest) (response *CheckDomainSunriseClaimResponse, err error) { + response = CreateCheckDomainSunriseClaimResponse() + err = client.DoAction(request, response) + return +} + +// CheckDomainSunriseClaimWithChan invokes the domain.CheckDomainSunriseClaim API asynchronously +func (client *Client) CheckDomainSunriseClaimWithChan(request *CheckDomainSunriseClaimRequest) (<-chan *CheckDomainSunriseClaimResponse, <-chan error) { + responseChan := make(chan *CheckDomainSunriseClaimResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckDomainSunriseClaim(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckDomainSunriseClaimWithCallback invokes the domain.CheckDomainSunriseClaim API asynchronously +func (client *Client) CheckDomainSunriseClaimWithCallback(request *CheckDomainSunriseClaimRequest, callback func(response *CheckDomainSunriseClaimResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckDomainSunriseClaimResponse + var err error + defer close(result) + response, err = client.CheckDomainSunriseClaim(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckDomainSunriseClaimRequest is the request struct for api CheckDomainSunriseClaim +type CheckDomainSunriseClaimRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// CheckDomainSunriseClaimResponse is the response struct for api CheckDomainSunriseClaim +type CheckDomainSunriseClaimResponse struct { + *responses.BaseResponse + ClaimKey string `json:"ClaimKey" xml:"ClaimKey"` + RequestId string `json:"RequestId" xml:"RequestId"` + Result int `json:"Result" xml:"Result"` +} + +// CreateCheckDomainSunriseClaimRequest creates a request to invoke CheckDomainSunriseClaim API +func CreateCheckDomainSunriseClaimRequest() (request *CheckDomainSunriseClaimRequest) { + request = &CheckDomainSunriseClaimRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "CheckDomainSunriseClaim", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateCheckDomainSunriseClaimResponse creates a response to parse from CheckDomainSunriseClaim response +func CreateCheckDomainSunriseClaimResponse() (response *CheckDomainSunriseClaimResponse) { + response = &CheckDomainSunriseClaimResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/check_intl_fix_price_domain_status.go b/services/domain/check_intl_fix_price_domain_status.go new file mode 100644 index 0000000000..4663887eb5 --- /dev/null +++ b/services/domain/check_intl_fix_price_domain_status.go @@ -0,0 +1,100 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckIntlFixPriceDomainStatus invokes the domain.CheckIntlFixPriceDomainStatus API synchronously +func (client *Client) CheckIntlFixPriceDomainStatus(request *CheckIntlFixPriceDomainStatusRequest) (response *CheckIntlFixPriceDomainStatusResponse, err error) { + response = CreateCheckIntlFixPriceDomainStatusResponse() + err = client.DoAction(request, response) + return +} + +// CheckIntlFixPriceDomainStatusWithChan invokes the domain.CheckIntlFixPriceDomainStatus API asynchronously +func (client *Client) CheckIntlFixPriceDomainStatusWithChan(request *CheckIntlFixPriceDomainStatusRequest) (<-chan *CheckIntlFixPriceDomainStatusResponse, <-chan error) { + responseChan := make(chan *CheckIntlFixPriceDomainStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckIntlFixPriceDomainStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckIntlFixPriceDomainStatusWithCallback invokes the domain.CheckIntlFixPriceDomainStatus API asynchronously +func (client *Client) CheckIntlFixPriceDomainStatusWithCallback(request *CheckIntlFixPriceDomainStatusRequest, callback func(response *CheckIntlFixPriceDomainStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckIntlFixPriceDomainStatusResponse + var err error + defer close(result) + response, err = client.CheckIntlFixPriceDomainStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckIntlFixPriceDomainStatusRequest is the request struct for api CheckIntlFixPriceDomainStatus +type CheckIntlFixPriceDomainStatusRequest struct { + *requests.RpcRequest + Domain string `position:"Query" name:"Domain"` +} + +// CheckIntlFixPriceDomainStatusResponse is the response struct for api CheckIntlFixPriceDomainStatus +type CheckIntlFixPriceDomainStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module Module `json:"Module" xml:"Module"` +} + +// CreateCheckIntlFixPriceDomainStatusRequest creates a request to invoke CheckIntlFixPriceDomainStatus API +func CreateCheckIntlFixPriceDomainStatusRequest() (request *CheckIntlFixPriceDomainStatusRequest) { + request = &CheckIntlFixPriceDomainStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "CheckIntlFixPriceDomainStatus", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateCheckIntlFixPriceDomainStatusResponse creates a response to parse from CheckIntlFixPriceDomainStatus response +func CreateCheckIntlFixPriceDomainStatusResponse() (response *CheckIntlFixPriceDomainStatusResponse) { + response = &CheckIntlFixPriceDomainStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/check_max_year_of_server_lock.go b/services/domain/check_max_year_of_server_lock.go new file mode 100644 index 0000000000..12caabba65 --- /dev/null +++ b/services/domain/check_max_year_of_server_lock.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckMaxYearOfServerLock invokes the domain.CheckMaxYearOfServerLock API synchronously +func (client *Client) CheckMaxYearOfServerLock(request *CheckMaxYearOfServerLockRequest) (response *CheckMaxYearOfServerLockResponse, err error) { + response = CreateCheckMaxYearOfServerLockResponse() + err = client.DoAction(request, response) + return +} + +// CheckMaxYearOfServerLockWithChan invokes the domain.CheckMaxYearOfServerLock API asynchronously +func (client *Client) CheckMaxYearOfServerLockWithChan(request *CheckMaxYearOfServerLockRequest) (<-chan *CheckMaxYearOfServerLockResponse, <-chan error) { + responseChan := make(chan *CheckMaxYearOfServerLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckMaxYearOfServerLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckMaxYearOfServerLockWithCallback invokes the domain.CheckMaxYearOfServerLock API asynchronously +func (client *Client) CheckMaxYearOfServerLockWithCallback(request *CheckMaxYearOfServerLockRequest, callback func(response *CheckMaxYearOfServerLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckMaxYearOfServerLockResponse + var err error + defer close(result) + response, err = client.CheckMaxYearOfServerLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckMaxYearOfServerLockRequest is the request struct for api CheckMaxYearOfServerLock +type CheckMaxYearOfServerLockRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + CheckAction string `position:"Query" name:"CheckAction"` + Lang string `position:"Query" name:"Lang"` +} + +// CheckMaxYearOfServerLockResponse is the response struct for api CheckMaxYearOfServerLock +type CheckMaxYearOfServerLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MaxYear int `json:"MaxYear" xml:"MaxYear"` +} + +// CreateCheckMaxYearOfServerLockRequest creates a request to invoke CheckMaxYearOfServerLock API +func CreateCheckMaxYearOfServerLockRequest() (request *CheckMaxYearOfServerLockRequest) { + request = &CheckMaxYearOfServerLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "CheckMaxYearOfServerLock", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateCheckMaxYearOfServerLockResponse creates a response to parse from CheckMaxYearOfServerLock response +func CreateCheckMaxYearOfServerLockResponse() (response *CheckMaxYearOfServerLockResponse) { + response = &CheckMaxYearOfServerLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/check_processing_server_lock_apply.go b/services/domain/check_processing_server_lock_apply.go new file mode 100644 index 0000000000..5055a9a442 --- /dev/null +++ b/services/domain/check_processing_server_lock_apply.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckProcessingServerLockApply invokes the domain.CheckProcessingServerLockApply API synchronously +func (client *Client) CheckProcessingServerLockApply(request *CheckProcessingServerLockApplyRequest) (response *CheckProcessingServerLockApplyResponse, err error) { + response = CreateCheckProcessingServerLockApplyResponse() + err = client.DoAction(request, response) + return +} + +// CheckProcessingServerLockApplyWithChan invokes the domain.CheckProcessingServerLockApply API asynchronously +func (client *Client) CheckProcessingServerLockApplyWithChan(request *CheckProcessingServerLockApplyRequest) (<-chan *CheckProcessingServerLockApplyResponse, <-chan error) { + responseChan := make(chan *CheckProcessingServerLockApplyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckProcessingServerLockApply(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckProcessingServerLockApplyWithCallback invokes the domain.CheckProcessingServerLockApply API asynchronously +func (client *Client) CheckProcessingServerLockApplyWithCallback(request *CheckProcessingServerLockApplyRequest, callback func(response *CheckProcessingServerLockApplyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckProcessingServerLockApplyResponse + var err error + defer close(result) + response, err = client.CheckProcessingServerLockApply(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckProcessingServerLockApplyRequest is the request struct for api CheckProcessingServerLockApply +type CheckProcessingServerLockApplyRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + FeePeriod requests.Integer `position:"Query" name:"FeePeriod"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// CheckProcessingServerLockApplyResponse is the response struct for api CheckProcessingServerLockApply +type CheckProcessingServerLockApplyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Exists bool `json:"Exists" xml:"Exists"` +} + +// CreateCheckProcessingServerLockApplyRequest creates a request to invoke CheckProcessingServerLockApply API +func CreateCheckProcessingServerLockApplyRequest() (request *CheckProcessingServerLockApplyRequest) { + request = &CheckProcessingServerLockApplyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "CheckProcessingServerLockApply", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateCheckProcessingServerLockApplyResponse creates a response to parse from CheckProcessingServerLockApply response +func CreateCheckProcessingServerLockApplyResponse() (response *CheckProcessingServerLockApplyResponse) { + response = &CheckProcessingServerLockApplyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/check_selected_domain_status.go b/services/domain/check_selected_domain_status.go deleted file mode 100644 index ff914c7e87..0000000000 --- a/services/domain/check_selected_domain_status.go +++ /dev/null @@ -1,103 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CheckSelectedDomainStatus invokes the domain.CheckSelectedDomainStatus API synchronously -func (client *Client) CheckSelectedDomainStatus(request *CheckSelectedDomainStatusRequest) (response *CheckSelectedDomainStatusResponse, err error) { - response = CreateCheckSelectedDomainStatusResponse() - err = client.DoAction(request, response) - return -} - -// CheckSelectedDomainStatusWithChan invokes the domain.CheckSelectedDomainStatus API asynchronously -func (client *Client) CheckSelectedDomainStatusWithChan(request *CheckSelectedDomainStatusRequest) (<-chan *CheckSelectedDomainStatusResponse, <-chan error) { - responseChan := make(chan *CheckSelectedDomainStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CheckSelectedDomainStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CheckSelectedDomainStatusWithCallback invokes the domain.CheckSelectedDomainStatus API asynchronously -func (client *Client) CheckSelectedDomainStatusWithCallback(request *CheckSelectedDomainStatusRequest, callback func(response *CheckSelectedDomainStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CheckSelectedDomainStatusResponse - var err error - defer close(result) - response, err = client.CheckSelectedDomainStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CheckSelectedDomainStatusRequest is the request struct for api CheckSelectedDomainStatus -type CheckSelectedDomainStatusRequest struct { - *requests.RpcRequest - Domain string `position:"Query" name:"Domain"` -} - -// CheckSelectedDomainStatusResponse is the response struct for api CheckSelectedDomainStatus -type CheckSelectedDomainStatusResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - Success bool `json:"Success" xml:"Success"` - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - Module ModuleInCheckSelectedDomainStatus `json:"Module" xml:"Module"` -} - -// CreateCheckSelectedDomainStatusRequest creates a request to invoke CheckSelectedDomainStatus API -func CreateCheckSelectedDomainStatusRequest() (request *CheckSelectedDomainStatusRequest) { - request = &CheckSelectedDomainStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "CheckSelectedDomainStatus", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateCheckSelectedDomainStatusResponse creates a response to parse from CheckSelectedDomainStatus response -func CreateCheckSelectedDomainStatusResponse() (response *CheckSelectedDomainStatusResponse) { - response = &CheckSelectedDomainStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/check_transfer_in_feasibility.go b/services/domain/check_transfer_in_feasibility.go new file mode 100644 index 0000000000..7a467a0b99 --- /dev/null +++ b/services/domain/check_transfer_in_feasibility.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckTransferInFeasibility invokes the domain.CheckTransferInFeasibility API synchronously +func (client *Client) CheckTransferInFeasibility(request *CheckTransferInFeasibilityRequest) (response *CheckTransferInFeasibilityResponse, err error) { + response = CreateCheckTransferInFeasibilityResponse() + err = client.DoAction(request, response) + return +} + +// CheckTransferInFeasibilityWithChan invokes the domain.CheckTransferInFeasibility API asynchronously +func (client *Client) CheckTransferInFeasibilityWithChan(request *CheckTransferInFeasibilityRequest) (<-chan *CheckTransferInFeasibilityResponse, <-chan error) { + responseChan := make(chan *CheckTransferInFeasibilityResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckTransferInFeasibility(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckTransferInFeasibilityWithCallback invokes the domain.CheckTransferInFeasibility API asynchronously +func (client *Client) CheckTransferInFeasibilityWithCallback(request *CheckTransferInFeasibilityRequest, callback func(response *CheckTransferInFeasibilityResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckTransferInFeasibilityResponse + var err error + defer close(result) + response, err = client.CheckTransferInFeasibility(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckTransferInFeasibilityRequest is the request struct for api CheckTransferInFeasibility +type CheckTransferInFeasibilityRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + TransferAuthorizationCode string `position:"Query" name:"TransferAuthorizationCode"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// CheckTransferInFeasibilityResponse is the response struct for api CheckTransferInFeasibility +type CheckTransferInFeasibilityResponse struct { + *responses.BaseResponse + CanTransfer bool `json:"CanTransfer" xml:"CanTransfer"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + ProductId string `json:"ProductId" xml:"ProductId"` + Code string `json:"Code" xml:"Code"` +} + +// CreateCheckTransferInFeasibilityRequest creates a request to invoke CheckTransferInFeasibility API +func CreateCheckTransferInFeasibilityRequest() (request *CheckTransferInFeasibilityRequest) { + request = &CheckTransferInFeasibilityRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "CheckTransferInFeasibility", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateCheckTransferInFeasibilityResponse creates a response to parse from CheckTransferInFeasibility response +func CreateCheckTransferInFeasibilityResponse() (response *CheckTransferInFeasibilityResponse) { + response = &CheckTransferInFeasibilityResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/confirm_transfer_in_email.go b/services/domain/confirm_transfer_in_email.go new file mode 100644 index 0000000000..537ec4ff9a --- /dev/null +++ b/services/domain/confirm_transfer_in_email.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ConfirmTransferInEmail invokes the domain.ConfirmTransferInEmail API synchronously +func (client *Client) ConfirmTransferInEmail(request *ConfirmTransferInEmailRequest) (response *ConfirmTransferInEmailResponse, err error) { + response = CreateConfirmTransferInEmailResponse() + err = client.DoAction(request, response) + return +} + +// ConfirmTransferInEmailWithChan invokes the domain.ConfirmTransferInEmail API asynchronously +func (client *Client) ConfirmTransferInEmailWithChan(request *ConfirmTransferInEmailRequest) (<-chan *ConfirmTransferInEmailResponse, <-chan error) { + responseChan := make(chan *ConfirmTransferInEmailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ConfirmTransferInEmail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ConfirmTransferInEmailWithCallback invokes the domain.ConfirmTransferInEmail API asynchronously +func (client *Client) ConfirmTransferInEmailWithCallback(request *ConfirmTransferInEmailRequest, callback func(response *ConfirmTransferInEmailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ConfirmTransferInEmailResponse + var err error + defer close(result) + response, err = client.ConfirmTransferInEmail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ConfirmTransferInEmailRequest is the request struct for api ConfirmTransferInEmail +type ConfirmTransferInEmailRequest struct { + *requests.RpcRequest + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` +} + +// ConfirmTransferInEmailResponse is the response struct for api ConfirmTransferInEmail +type ConfirmTransferInEmailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList SuccessListInConfirmTransferInEmail `json:"SuccessList" xml:"SuccessList"` + FailList FailListInConfirmTransferInEmail `json:"FailList" xml:"FailList"` +} + +// CreateConfirmTransferInEmailRequest creates a request to invoke ConfirmTransferInEmail API +func CreateConfirmTransferInEmailRequest() (request *ConfirmTransferInEmailRequest) { + request = &ConfirmTransferInEmailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "ConfirmTransferInEmail", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateConfirmTransferInEmailResponse creates a response to parse from ConfirmTransferInEmail response +func CreateConfirmTransferInEmailResponse() (response *ConfirmTransferInEmailResponse) { + response = &ConfirmTransferInEmailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/create_fixed_price_demand_order.go b/services/domain/create_fixed_price_demand_order.go deleted file mode 100644 index 41f08a3ce9..0000000000 --- a/services/domain/create_fixed_price_demand_order.go +++ /dev/null @@ -1,106 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateFixedPriceDemandOrder invokes the domain.CreateFixedPriceDemandOrder API synchronously -func (client *Client) CreateFixedPriceDemandOrder(request *CreateFixedPriceDemandOrderRequest) (response *CreateFixedPriceDemandOrderResponse, err error) { - response = CreateCreateFixedPriceDemandOrderResponse() - err = client.DoAction(request, response) - return -} - -// CreateFixedPriceDemandOrderWithChan invokes the domain.CreateFixedPriceDemandOrder API asynchronously -func (client *Client) CreateFixedPriceDemandOrderWithChan(request *CreateFixedPriceDemandOrderRequest) (<-chan *CreateFixedPriceDemandOrderResponse, <-chan error) { - responseChan := make(chan *CreateFixedPriceDemandOrderResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateFixedPriceDemandOrder(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateFixedPriceDemandOrderWithCallback invokes the domain.CreateFixedPriceDemandOrder API asynchronously -func (client *Client) CreateFixedPriceDemandOrderWithCallback(request *CreateFixedPriceDemandOrderRequest, callback func(response *CreateFixedPriceDemandOrderResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateFixedPriceDemandOrderResponse - var err error - defer close(result) - response, err = client.CreateFixedPriceDemandOrder(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateFixedPriceDemandOrderRequest is the request struct for api CreateFixedPriceDemandOrder -type CreateFixedPriceDemandOrderRequest struct { - *requests.RpcRequest - Code string `position:"Query" name:"Code"` - ContactId string `position:"Query" name:"ContactId"` - Source string `position:"Query" name:"Source"` - Domain string `position:"Query" name:"Domain"` -} - -// CreateFixedPriceDemandOrderResponse is the response struct for api CreateFixedPriceDemandOrder -type CreateFixedPriceDemandOrderResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - Success bool `json:"Success" xml:"Success"` - Module ModuleInCreateFixedPriceDemandOrder `json:"Module" xml:"Module"` -} - -// CreateCreateFixedPriceDemandOrderRequest creates a request to invoke CreateFixedPriceDemandOrder API -func CreateCreateFixedPriceDemandOrderRequest() (request *CreateFixedPriceDemandOrderRequest) { - request = &CreateFixedPriceDemandOrderRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "CreateFixedPriceDemandOrder", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateFixedPriceDemandOrderResponse creates a response to parse from CreateFixedPriceDemandOrder response -func CreateCreateFixedPriceDemandOrderResponse() (response *CreateFixedPriceDemandOrderResponse) { - response = &CreateFixedPriceDemandOrderResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/create_fixed_price_selected_order.go b/services/domain/create_fixed_price_selected_order.go deleted file mode 100644 index bb59723162..0000000000 --- a/services/domain/create_fixed_price_selected_order.go +++ /dev/null @@ -1,107 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateFixedPriceSelectedOrder invokes the domain.CreateFixedPriceSelectedOrder API synchronously -func (client *Client) CreateFixedPriceSelectedOrder(request *CreateFixedPriceSelectedOrderRequest) (response *CreateFixedPriceSelectedOrderResponse, err error) { - response = CreateCreateFixedPriceSelectedOrderResponse() - err = client.DoAction(request, response) - return -} - -// CreateFixedPriceSelectedOrderWithChan invokes the domain.CreateFixedPriceSelectedOrder API asynchronously -func (client *Client) CreateFixedPriceSelectedOrderWithChan(request *CreateFixedPriceSelectedOrderRequest) (<-chan *CreateFixedPriceSelectedOrderResponse, <-chan error) { - responseChan := make(chan *CreateFixedPriceSelectedOrderResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateFixedPriceSelectedOrder(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateFixedPriceSelectedOrderWithCallback invokes the domain.CreateFixedPriceSelectedOrder API asynchronously -func (client *Client) CreateFixedPriceSelectedOrderWithCallback(request *CreateFixedPriceSelectedOrderRequest, callback func(response *CreateFixedPriceSelectedOrderResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateFixedPriceSelectedOrderResponse - var err error - defer close(result) - response, err = client.CreateFixedPriceSelectedOrder(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateFixedPriceSelectedOrderRequest is the request struct for api CreateFixedPriceSelectedOrder -type CreateFixedPriceSelectedOrderRequest struct { - *requests.RpcRequest - Code string `position:"Query" name:"Code"` - ContactId string `position:"Query" name:"ContactId"` - ExpectedPrice string `position:"Query" name:"ExpectedPrice"` - DomainName string `position:"Query" name:"DomainName"` - Source string `position:"Query" name:"Source"` -} - -// CreateFixedPriceSelectedOrderResponse is the response struct for api CreateFixedPriceSelectedOrder -type CreateFixedPriceSelectedOrderResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - Success bool `json:"Success" xml:"Success"` - Module ModuleInCreateFixedPriceSelectedOrder `json:"Module" xml:"Module"` -} - -// CreateCreateFixedPriceSelectedOrderRequest creates a request to invoke CreateFixedPriceSelectedOrder API -func CreateCreateFixedPriceSelectedOrderRequest() (request *CreateFixedPriceSelectedOrderRequest) { - request = &CreateFixedPriceSelectedOrderRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "CreateFixedPriceSelectedOrder", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreateFixedPriceSelectedOrderResponse creates a response to parse from CreateFixedPriceSelectedOrder response -func CreateCreateFixedPriceSelectedOrderResponse() (response *CreateFixedPriceSelectedOrderResponse) { - response = &CreateFixedPriceSelectedOrderResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/create_intl_fixed_price_domain_order.go b/services/domain/create_intl_fixed_price_domain_order.go new file mode 100644 index 0000000000..00a085949a --- /dev/null +++ b/services/domain/create_intl_fixed_price_domain_order.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateIntlFixedPriceDomainOrder invokes the domain.CreateIntlFixedPriceDomainOrder API synchronously +func (client *Client) CreateIntlFixedPriceDomainOrder(request *CreateIntlFixedPriceDomainOrderRequest) (response *CreateIntlFixedPriceDomainOrderResponse, err error) { + response = CreateCreateIntlFixedPriceDomainOrderResponse() + err = client.DoAction(request, response) + return +} + +// CreateIntlFixedPriceDomainOrderWithChan invokes the domain.CreateIntlFixedPriceDomainOrder API asynchronously +func (client *Client) CreateIntlFixedPriceDomainOrderWithChan(request *CreateIntlFixedPriceDomainOrderRequest) (<-chan *CreateIntlFixedPriceDomainOrderResponse, <-chan error) { + responseChan := make(chan *CreateIntlFixedPriceDomainOrderResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateIntlFixedPriceDomainOrder(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateIntlFixedPriceDomainOrderWithCallback invokes the domain.CreateIntlFixedPriceDomainOrder API asynchronously +func (client *Client) CreateIntlFixedPriceDomainOrderWithCallback(request *CreateIntlFixedPriceDomainOrderRequest, callback func(response *CreateIntlFixedPriceDomainOrderResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateIntlFixedPriceDomainOrderResponse + var err error + defer close(result) + response, err = client.CreateIntlFixedPriceDomainOrder(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateIntlFixedPriceDomainOrderRequest is the request struct for api CreateIntlFixedPriceDomainOrder +type CreateIntlFixedPriceDomainOrderRequest struct { + *requests.RpcRequest + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + ContactId requests.Integer `position:"Query" name:"ContactId"` + ExpectedPrice requests.Integer `position:"Query" name:"ExpectedPrice"` + Domain string `position:"Query" name:"Domain"` +} + +// CreateIntlFixedPriceDomainOrderResponse is the response struct for api CreateIntlFixedPriceDomainOrder +type CreateIntlFixedPriceDomainOrderResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module Module `json:"Module" xml:"Module"` +} + +// CreateCreateIntlFixedPriceDomainOrderRequest creates a request to invoke CreateIntlFixedPriceDomainOrder API +func CreateCreateIntlFixedPriceDomainOrderRequest() (request *CreateIntlFixedPriceDomainOrderRequest) { + request = &CreateIntlFixedPriceDomainOrderRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "CreateIntlFixedPriceDomainOrder", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateIntlFixedPriceDomainOrderResponse creates a response to parse from CreateIntlFixedPriceDomainOrder response +func CreateCreateIntlFixedPriceDomainOrderResponse() (response *CreateIntlFixedPriceDomainOrderResponse) { + response = &CreateIntlFixedPriceDomainOrderResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/delete_contact_templates.go b/services/domain/delete_contact_templates.go new file mode 100644 index 0000000000..0d6a6b1060 --- /dev/null +++ b/services/domain/delete_contact_templates.go @@ -0,0 +1,100 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteContactTemplates invokes the domain.DeleteContactTemplates API synchronously +func (client *Client) DeleteContactTemplates(request *DeleteContactTemplatesRequest) (response *DeleteContactTemplatesResponse, err error) { + response = CreateDeleteContactTemplatesResponse() + err = client.DoAction(request, response) + return +} + +// DeleteContactTemplatesWithChan invokes the domain.DeleteContactTemplates API asynchronously +func (client *Client) DeleteContactTemplatesWithChan(request *DeleteContactTemplatesRequest) (<-chan *DeleteContactTemplatesResponse, <-chan error) { + responseChan := make(chan *DeleteContactTemplatesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteContactTemplates(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteContactTemplatesWithCallback invokes the domain.DeleteContactTemplates API asynchronously +func (client *Client) DeleteContactTemplatesWithCallback(request *DeleteContactTemplatesRequest, callback func(response *DeleteContactTemplatesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteContactTemplatesResponse + var err error + defer close(result) + response, err = client.DeleteContactTemplates(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteContactTemplatesRequest is the request struct for api DeleteContactTemplates +type DeleteContactTemplatesRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrantProfileIds string `position:"Query" name:"RegistrantProfileIds"` +} + +// DeleteContactTemplatesResponse is the response struct for api DeleteContactTemplates +type DeleteContactTemplatesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteContactTemplatesRequest creates a request to invoke DeleteContactTemplates API +func CreateDeleteContactTemplatesRequest() (request *DeleteContactTemplatesRequest) { + request = &DeleteContactTemplatesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "DeleteContactTemplates", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteContactTemplatesResponse creates a response to parse from DeleteContactTemplates response +func CreateDeleteContactTemplatesResponse() (response *DeleteContactTemplatesResponse) { + response = &DeleteContactTemplatesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/delete_domain_group.go b/services/domain/delete_domain_group.go new file mode 100644 index 0000000000..fa1271267f --- /dev/null +++ b/services/domain/delete_domain_group.go @@ -0,0 +1,101 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDomainGroup invokes the domain.DeleteDomainGroup API synchronously +func (client *Client) DeleteDomainGroup(request *DeleteDomainGroupRequest) (response *DeleteDomainGroupResponse, err error) { + response = CreateDeleteDomainGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDomainGroupWithChan invokes the domain.DeleteDomainGroup API asynchronously +func (client *Client) DeleteDomainGroupWithChan(request *DeleteDomainGroupRequest) (<-chan *DeleteDomainGroupResponse, <-chan error) { + responseChan := make(chan *DeleteDomainGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDomainGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDomainGroupWithCallback invokes the domain.DeleteDomainGroup API asynchronously +func (client *Client) DeleteDomainGroupWithCallback(request *DeleteDomainGroupRequest, callback func(response *DeleteDomainGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDomainGroupResponse + var err error + defer close(result) + response, err = client.DeleteDomainGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDomainGroupRequest is the request struct for api DeleteDomainGroup +type DeleteDomainGroupRequest struct { + *requests.RpcRequest + DomainGroupId requests.Integer `position:"Query" name:"DomainGroupId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// DeleteDomainGroupResponse is the response struct for api DeleteDomainGroup +type DeleteDomainGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDomainGroupRequest creates a request to invoke DeleteDomainGroup API +func CreateDeleteDomainGroupRequest() (request *DeleteDomainGroupRequest) { + request = &DeleteDomainGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "DeleteDomainGroup", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteDomainGroupResponse creates a response to parse from DeleteDomainGroup response +func CreateDeleteDomainGroupResponse() (response *DeleteDomainGroupResponse) { + response = &DeleteDomainGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/delete_email_verification.go b/services/domain/delete_email_verification.go new file mode 100644 index 0000000000..186372ae69 --- /dev/null +++ b/services/domain/delete_email_verification.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteEmailVerification invokes the domain.DeleteEmailVerification API synchronously +func (client *Client) DeleteEmailVerification(request *DeleteEmailVerificationRequest) (response *DeleteEmailVerificationResponse, err error) { + response = CreateDeleteEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// DeleteEmailVerificationWithChan invokes the domain.DeleteEmailVerification API asynchronously +func (client *Client) DeleteEmailVerificationWithChan(request *DeleteEmailVerificationRequest) (<-chan *DeleteEmailVerificationResponse, <-chan error) { + responseChan := make(chan *DeleteEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteEmailVerificationWithCallback invokes the domain.DeleteEmailVerification API asynchronously +func (client *Client) DeleteEmailVerificationWithCallback(request *DeleteEmailVerificationRequest, callback func(response *DeleteEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteEmailVerificationResponse + var err error + defer close(result) + response, err = client.DeleteEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteEmailVerificationRequest is the request struct for api DeleteEmailVerification +type DeleteEmailVerificationRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` +} + +// DeleteEmailVerificationResponse is the response struct for api DeleteEmailVerification +type DeleteEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList []SendResult `json:"SuccessList" xml:"SuccessList"` + FailList []SendResult `json:"FailList" xml:"FailList"` +} + +// CreateDeleteEmailVerificationRequest creates a request to invoke DeleteEmailVerification API +func CreateDeleteEmailVerificationRequest() (request *DeleteEmailVerificationRequest) { + request = &DeleteEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "DeleteEmailVerification", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteEmailVerificationResponse creates a response to parse from DeleteEmailVerification response +func CreateDeleteEmailVerificationResponse() (response *DeleteEmailVerificationResponse) { + response = &DeleteEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/delete_registrant_profile.go b/services/domain/delete_registrant_profile.go new file mode 100644 index 0000000000..d12c114273 --- /dev/null +++ b/services/domain/delete_registrant_profile.go @@ -0,0 +1,101 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteRegistrantProfile invokes the domain.DeleteRegistrantProfile API synchronously +func (client *Client) DeleteRegistrantProfile(request *DeleteRegistrantProfileRequest) (response *DeleteRegistrantProfileResponse, err error) { + response = CreateDeleteRegistrantProfileResponse() + err = client.DoAction(request, response) + return +} + +// DeleteRegistrantProfileWithChan invokes the domain.DeleteRegistrantProfile API asynchronously +func (client *Client) DeleteRegistrantProfileWithChan(request *DeleteRegistrantProfileRequest) (<-chan *DeleteRegistrantProfileResponse, <-chan error) { + responseChan := make(chan *DeleteRegistrantProfileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteRegistrantProfile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteRegistrantProfileWithCallback invokes the domain.DeleteRegistrantProfile API asynchronously +func (client *Client) DeleteRegistrantProfileWithCallback(request *DeleteRegistrantProfileRequest, callback func(response *DeleteRegistrantProfileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteRegistrantProfileResponse + var err error + defer close(result) + response, err = client.DeleteRegistrantProfile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteRegistrantProfileRequest is the request struct for api DeleteRegistrantProfile +type DeleteRegistrantProfileRequest struct { + *requests.RpcRequest + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// DeleteRegistrantProfileResponse is the response struct for api DeleteRegistrantProfile +type DeleteRegistrantProfileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteRegistrantProfileRequest creates a request to invoke DeleteRegistrantProfile API +func CreateDeleteRegistrantProfileRequest() (request *DeleteRegistrantProfileRequest) { + request = &DeleteRegistrantProfileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "DeleteRegistrantProfile", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteRegistrantProfileResponse creates a response to parse from DeleteRegistrantProfile response +func CreateDeleteRegistrantProfileResponse() (response *DeleteRegistrantProfileResponse) { + response = &DeleteRegistrantProfileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/domain_special_biz_cancel.go b/services/domain/domain_special_biz_cancel.go new file mode 100644 index 0000000000..e7438e6285 --- /dev/null +++ b/services/domain/domain_special_biz_cancel.go @@ -0,0 +1,99 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DomainSpecialBizCancel invokes the domain.DomainSpecialBizCancel API synchronously +func (client *Client) DomainSpecialBizCancel(request *DomainSpecialBizCancelRequest) (response *DomainSpecialBizCancelResponse, err error) { + response = CreateDomainSpecialBizCancelResponse() + err = client.DoAction(request, response) + return +} + +// DomainSpecialBizCancelWithChan invokes the domain.DomainSpecialBizCancel API asynchronously +func (client *Client) DomainSpecialBizCancelWithChan(request *DomainSpecialBizCancelRequest) (<-chan *DomainSpecialBizCancelResponse, <-chan error) { + responseChan := make(chan *DomainSpecialBizCancelResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DomainSpecialBizCancel(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DomainSpecialBizCancelWithCallback invokes the domain.DomainSpecialBizCancel API asynchronously +func (client *Client) DomainSpecialBizCancelWithCallback(request *DomainSpecialBizCancelRequest, callback func(response *DomainSpecialBizCancelResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DomainSpecialBizCancelResponse + var err error + defer close(result) + response, err = client.DomainSpecialBizCancel(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DomainSpecialBizCancelRequest is the request struct for api DomainSpecialBizCancel +type DomainSpecialBizCancelRequest struct { + *requests.RpcRequest + BizId requests.Integer `position:"Body" name:"BizId"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// DomainSpecialBizCancelResponse is the response struct for api DomainSpecialBizCancel +type DomainSpecialBizCancelResponse struct { + *responses.BaseResponse +} + +// CreateDomainSpecialBizCancelRequest creates a request to invoke DomainSpecialBizCancel API +func CreateDomainSpecialBizCancelRequest() (request *DomainSpecialBizCancelRequest) { + request = &DomainSpecialBizCancelRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "DomainSpecialBizCancel", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateDomainSpecialBizCancelResponse creates a response to parse from DomainSpecialBizCancel response +func CreateDomainSpecialBizCancelResponse() (response *DomainSpecialBizCancelResponse) { + response = &DomainSpecialBizCancelResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/reserve_domain.go b/services/domain/email_verified.go similarity index 52% rename from services/domain/reserve_domain.go rename to services/domain/email_verified.go index e56a1d6a73..1e424ea131 100644 --- a/services/domain/reserve_domain.go +++ b/services/domain/email_verified.go @@ -20,21 +20,21 @@ import ( "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" ) -// ReserveDomain invokes the domain.ReserveDomain API synchronously -func (client *Client) ReserveDomain(request *ReserveDomainRequest) (response *ReserveDomainResponse, err error) { - response = CreateReserveDomainResponse() +// EmailVerified invokes the domain.EmailVerified API synchronously +func (client *Client) EmailVerified(request *EmailVerifiedRequest) (response *EmailVerifiedResponse, err error) { + response = CreateEmailVerifiedResponse() err = client.DoAction(request, response) return } -// ReserveDomainWithChan invokes the domain.ReserveDomain API asynchronously -func (client *Client) ReserveDomainWithChan(request *ReserveDomainRequest) (<-chan *ReserveDomainResponse, <-chan error) { - responseChan := make(chan *ReserveDomainResponse, 1) +// EmailVerifiedWithChan invokes the domain.EmailVerified API asynchronously +func (client *Client) EmailVerifiedWithChan(request *EmailVerifiedRequest) (<-chan *EmailVerifiedResponse, <-chan error) { + responseChan := make(chan *EmailVerifiedResponse, 1) errChan := make(chan error, 1) err := client.AddAsyncTask(func() { defer close(responseChan) defer close(errChan) - response, err := client.ReserveDomain(request) + response, err := client.EmailVerified(request) if err != nil { errChan <- err } else { @@ -49,14 +49,14 @@ func (client *Client) ReserveDomainWithChan(request *ReserveDomainRequest) (<-ch return responseChan, errChan } -// ReserveDomainWithCallback invokes the domain.ReserveDomain API asynchronously -func (client *Client) ReserveDomainWithCallback(request *ReserveDomainRequest, callback func(response *ReserveDomainResponse, err error)) <-chan int { +// EmailVerifiedWithCallback invokes the domain.EmailVerified API asynchronously +func (client *Client) EmailVerifiedWithCallback(request *EmailVerifiedRequest, callback func(response *EmailVerifiedResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { - var response *ReserveDomainResponse + var response *EmailVerifiedResponse var err error defer close(result) - response, err = client.ReserveDomain(request) + response, err = client.EmailVerified(request) callback(response, err) result <- 1 }) @@ -68,33 +68,33 @@ func (client *Client) ReserveDomainWithCallback(request *ReserveDomainRequest, c return result } -// ReserveDomainRequest is the request struct for api ReserveDomain -type ReserveDomainRequest struct { +// EmailVerifiedRequest is the request struct for api EmailVerified +type EmailVerifiedRequest struct { *requests.RpcRequest - DomainName string `position:"Body" name:"DomainName"` - Channels *[]string `position:"Body" name:"Channels" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` } -// ReserveDomainResponse is the response struct for api ReserveDomain -type ReserveDomainResponse struct { +// EmailVerifiedResponse is the response struct for api EmailVerified +type EmailVerifiedResponse struct { *responses.BaseResponse - AuctionId string `json:"AuctionId" xml:"AuctionId"` RequestId string `json:"RequestId" xml:"RequestId"` } -// CreateReserveDomainRequest creates a request to invoke ReserveDomain API -func CreateReserveDomainRequest() (request *ReserveDomainRequest) { - request = &ReserveDomainRequest{ +// CreateEmailVerifiedRequest creates a request to invoke EmailVerified API +func CreateEmailVerifiedRequest() (request *EmailVerifiedRequest) { + request = &EmailVerifiedRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Domain", "2018-02-08", "ReserveDomain", "domain", "openAPI") + request.InitWithApiInfo("Domain", "2018-01-29", "EmailVerified", "domain", "openAPI") request.Method = requests.POST return } -// CreateReserveDomainResponse creates a response to parse from ReserveDomain response -func CreateReserveDomainResponse() (response *ReserveDomainResponse) { - response = &ReserveDomainResponse{ +// CreateEmailVerifiedResponse creates a response to parse from EmailVerified response +func CreateEmailVerifiedResponse() (response *EmailVerifiedResponse) { + response = &EmailVerifiedResponse{ BaseResponse: &responses.BaseResponse{}, } return diff --git a/services/domain/finish_demand.go b/services/domain/finish_demand.go deleted file mode 100644 index d2725c7054..0000000000 --- a/services/domain/finish_demand.go +++ /dev/null @@ -1,100 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// FinishDemand invokes the domain.FinishDemand API synchronously -func (client *Client) FinishDemand(request *FinishDemandRequest) (response *FinishDemandResponse, err error) { - response = CreateFinishDemandResponse() - err = client.DoAction(request, response) - return -} - -// FinishDemandWithChan invokes the domain.FinishDemand API asynchronously -func (client *Client) FinishDemandWithChan(request *FinishDemandRequest) (<-chan *FinishDemandResponse, <-chan error) { - responseChan := make(chan *FinishDemandResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.FinishDemand(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// FinishDemandWithCallback invokes the domain.FinishDemand API asynchronously -func (client *Client) FinishDemandWithCallback(request *FinishDemandRequest, callback func(response *FinishDemandResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *FinishDemandResponse - var err error - defer close(result) - response, err = client.FinishDemand(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// FinishDemandRequest is the request struct for api FinishDemand -type FinishDemandRequest struct { - *requests.RpcRequest - Message string `position:"Query" name:"Message"` - BizId string `position:"Query" name:"BizId"` -} - -// FinishDemandResponse is the response struct for api FinishDemand -type FinishDemandResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateFinishDemandRequest creates a request to invoke FinishDemand API -func CreateFinishDemandRequest() (request *FinishDemandRequest) { - request = &FinishDemandRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "FinishDemand", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateFinishDemandResponse creates a response to parse from FinishDemand response -func CreateFinishDemandResponse() (response *FinishDemandResponse) { - response = &FinishDemandResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/fuzzy_match_domain_sensitive_word.go b/services/domain/fuzzy_match_domain_sensitive_word.go new file mode 100644 index 0000000000..6247341269 --- /dev/null +++ b/services/domain/fuzzy_match_domain_sensitive_word.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// FuzzyMatchDomainSensitiveWord invokes the domain.FuzzyMatchDomainSensitiveWord API synchronously +func (client *Client) FuzzyMatchDomainSensitiveWord(request *FuzzyMatchDomainSensitiveWordRequest) (response *FuzzyMatchDomainSensitiveWordResponse, err error) { + response = CreateFuzzyMatchDomainSensitiveWordResponse() + err = client.DoAction(request, response) + return +} + +// FuzzyMatchDomainSensitiveWordWithChan invokes the domain.FuzzyMatchDomainSensitiveWord API asynchronously +func (client *Client) FuzzyMatchDomainSensitiveWordWithChan(request *FuzzyMatchDomainSensitiveWordRequest) (<-chan *FuzzyMatchDomainSensitiveWordResponse, <-chan error) { + responseChan := make(chan *FuzzyMatchDomainSensitiveWordResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FuzzyMatchDomainSensitiveWord(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FuzzyMatchDomainSensitiveWordWithCallback invokes the domain.FuzzyMatchDomainSensitiveWord API asynchronously +func (client *Client) FuzzyMatchDomainSensitiveWordWithCallback(request *FuzzyMatchDomainSensitiveWordRequest, callback func(response *FuzzyMatchDomainSensitiveWordResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FuzzyMatchDomainSensitiveWordResponse + var err error + defer close(result) + response, err = client.FuzzyMatchDomainSensitiveWord(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FuzzyMatchDomainSensitiveWordRequest is the request struct for api FuzzyMatchDomainSensitiveWord +type FuzzyMatchDomainSensitiveWordRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Keyword string `position:"Query" name:"Keyword"` + Lang string `position:"Query" name:"Lang"` +} + +// FuzzyMatchDomainSensitiveWordResponse is the response struct for api FuzzyMatchDomainSensitiveWord +type FuzzyMatchDomainSensitiveWordResponse struct { + *responses.BaseResponse + Exist bool `json:"Exist" xml:"Exist"` + RequestId string `json:"RequestId" xml:"RequestId"` + Keyword string `json:"Keyword" xml:"Keyword"` + MatchedSentiveWords MatchedSentiveWordsInFuzzyMatchDomainSensitiveWord `json:"MatchedSentiveWords" xml:"MatchedSentiveWords"` +} + +// CreateFuzzyMatchDomainSensitiveWordRequest creates a request to invoke FuzzyMatchDomainSensitiveWord API +func CreateFuzzyMatchDomainSensitiveWordRequest() (request *FuzzyMatchDomainSensitiveWordRequest) { + request = &FuzzyMatchDomainSensitiveWordRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "FuzzyMatchDomainSensitiveWord", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateFuzzyMatchDomainSensitiveWordResponse creates a response to parse from FuzzyMatchDomainSensitiveWord response +func CreateFuzzyMatchDomainSensitiveWordResponse() (response *FuzzyMatchDomainSensitiveWordResponse) { + response = &FuzzyMatchDomainSensitiveWordResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/get_intl_domain_download_url.go b/services/domain/get_intl_domain_download_url.go deleted file mode 100644 index 587c49773e..0000000000 --- a/services/domain/get_intl_domain_download_url.go +++ /dev/null @@ -1,108 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// GetIntlDomainDownloadUrl invokes the domain.GetIntlDomainDownloadUrl API synchronously -func (client *Client) GetIntlDomainDownloadUrl(request *GetIntlDomainDownloadUrlRequest) (response *GetIntlDomainDownloadUrlResponse, err error) { - response = CreateGetIntlDomainDownloadUrlResponse() - err = client.DoAction(request, response) - return -} - -// GetIntlDomainDownloadUrlWithChan invokes the domain.GetIntlDomainDownloadUrl API asynchronously -func (client *Client) GetIntlDomainDownloadUrlWithChan(request *GetIntlDomainDownloadUrlRequest) (<-chan *GetIntlDomainDownloadUrlResponse, <-chan error) { - responseChan := make(chan *GetIntlDomainDownloadUrlResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.GetIntlDomainDownloadUrl(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// GetIntlDomainDownloadUrlWithCallback invokes the domain.GetIntlDomainDownloadUrl API asynchronously -func (client *Client) GetIntlDomainDownloadUrlWithCallback(request *GetIntlDomainDownloadUrlRequest, callback func(response *GetIntlDomainDownloadUrlResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *GetIntlDomainDownloadUrlResponse - var err error - defer close(result) - response, err = client.GetIntlDomainDownloadUrl(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// GetIntlDomainDownloadUrlRequest is the request struct for api GetIntlDomainDownloadUrl -type GetIntlDomainDownloadUrlRequest struct { - *requests.RpcRequest -} - -// GetIntlDomainDownloadUrlResponse is the response struct for api GetIntlDomainDownloadUrl -type GetIntlDomainDownloadUrlResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` - DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` - ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - Success bool `json:"Success" xml:"Success"` - AllowRetry bool `json:"AllowRetry" xml:"AllowRetry"` - AppName string `json:"AppName" xml:"AppName"` - Url string `json:"Url" xml:"Url"` - ErrorArgs []string `json:"ErrorArgs" xml:"ErrorArgs"` -} - -// CreateGetIntlDomainDownloadUrlRequest creates a request to invoke GetIntlDomainDownloadUrl API -func CreateGetIntlDomainDownloadUrlRequest() (request *GetIntlDomainDownloadUrlRequest) { - request = &GetIntlDomainDownloadUrlRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "GetIntlDomainDownloadUrl", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateGetIntlDomainDownloadUrlResponse creates a response to parse from GetIntlDomainDownloadUrl response -func CreateGetIntlDomainDownloadUrlResponse() (response *GetIntlDomainDownloadUrlResponse) { - response = &GetIntlDomainDownloadUrlResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/get_intl_fix_price_domain_list_url.go b/services/domain/get_intl_fix_price_domain_list_url.go new file mode 100644 index 0000000000..2e917d83b5 --- /dev/null +++ b/services/domain/get_intl_fix_price_domain_list_url.go @@ -0,0 +1,100 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetIntlFixPriceDomainListUrl invokes the domain.GetIntlFixPriceDomainListUrl API synchronously +func (client *Client) GetIntlFixPriceDomainListUrl(request *GetIntlFixPriceDomainListUrlRequest) (response *GetIntlFixPriceDomainListUrlResponse, err error) { + response = CreateGetIntlFixPriceDomainListUrlResponse() + err = client.DoAction(request, response) + return +} + +// GetIntlFixPriceDomainListUrlWithChan invokes the domain.GetIntlFixPriceDomainListUrl API asynchronously +func (client *Client) GetIntlFixPriceDomainListUrlWithChan(request *GetIntlFixPriceDomainListUrlRequest) (<-chan *GetIntlFixPriceDomainListUrlResponse, <-chan error) { + responseChan := make(chan *GetIntlFixPriceDomainListUrlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetIntlFixPriceDomainListUrl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetIntlFixPriceDomainListUrlWithCallback invokes the domain.GetIntlFixPriceDomainListUrl API asynchronously +func (client *Client) GetIntlFixPriceDomainListUrlWithCallback(request *GetIntlFixPriceDomainListUrlRequest, callback func(response *GetIntlFixPriceDomainListUrlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetIntlFixPriceDomainListUrlResponse + var err error + defer close(result) + response, err = client.GetIntlFixPriceDomainListUrl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetIntlFixPriceDomainListUrlRequest is the request struct for api GetIntlFixPriceDomainListUrl +type GetIntlFixPriceDomainListUrlRequest struct { + *requests.RpcRequest + ListDate string `position:"Query" name:"ListDate"` +} + +// GetIntlFixPriceDomainListUrlResponse is the response struct for api GetIntlFixPriceDomainListUrl +type GetIntlFixPriceDomainListUrlResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module Module `json:"Module" xml:"Module"` +} + +// CreateGetIntlFixPriceDomainListUrlRequest creates a request to invoke GetIntlFixPriceDomainListUrl API +func CreateGetIntlFixPriceDomainListUrlRequest() (request *GetIntlFixPriceDomainListUrlRequest) { + request = &GetIntlFixPriceDomainListUrlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "GetIntlFixPriceDomainListUrl", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateGetIntlFixPriceDomainListUrlResponse creates a response to parse from GetIntlFixPriceDomainListUrl response +func CreateGetIntlFixPriceDomainListUrlResponse() (response *GetIntlFixPriceDomainListUrlResponse) { + response = &GetIntlFixPriceDomainListUrlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/get_operation_oss_upload_policy.go b/services/domain/get_operation_oss_upload_policy.go new file mode 100644 index 0000000000..86a7f8822c --- /dev/null +++ b/services/domain/get_operation_oss_upload_policy.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetOperationOssUploadPolicy invokes the domain.GetOperationOssUploadPolicy API synchronously +func (client *Client) GetOperationOssUploadPolicy(request *GetOperationOssUploadPolicyRequest) (response *GetOperationOssUploadPolicyResponse, err error) { + response = CreateGetOperationOssUploadPolicyResponse() + err = client.DoAction(request, response) + return +} + +// GetOperationOssUploadPolicyWithChan invokes the domain.GetOperationOssUploadPolicy API asynchronously +func (client *Client) GetOperationOssUploadPolicyWithChan(request *GetOperationOssUploadPolicyRequest) (<-chan *GetOperationOssUploadPolicyResponse, <-chan error) { + responseChan := make(chan *GetOperationOssUploadPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetOperationOssUploadPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetOperationOssUploadPolicyWithCallback invokes the domain.GetOperationOssUploadPolicy API asynchronously +func (client *Client) GetOperationOssUploadPolicyWithCallback(request *GetOperationOssUploadPolicyRequest, callback func(response *GetOperationOssUploadPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetOperationOssUploadPolicyResponse + var err error + defer close(result) + response, err = client.GetOperationOssUploadPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetOperationOssUploadPolicyRequest is the request struct for api GetOperationOssUploadPolicy +type GetOperationOssUploadPolicyRequest struct { + *requests.RpcRequest + AuditType requests.Integer `position:"Query" name:"AuditType"` + Lang string `position:"Query" name:"Lang"` +} + +// GetOperationOssUploadPolicyResponse is the response struct for api GetOperationOssUploadPolicy +type GetOperationOssUploadPolicyResponse struct { + *responses.BaseResponse + FileDir string `json:"FileDir" xml:"FileDir"` + EncodedPolicy string `json:"EncodedPolicy" xml:"EncodedPolicy"` + RequestId string `json:"RequestId" xml:"RequestId"` + Accessid string `json:"Accessid" xml:"Accessid"` + Signature string `json:"Signature" xml:"Signature"` + Host string `json:"Host" xml:"Host"` + ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` +} + +// CreateGetOperationOssUploadPolicyRequest creates a request to invoke GetOperationOssUploadPolicy API +func CreateGetOperationOssUploadPolicyRequest() (request *GetOperationOssUploadPolicyRequest) { + request = &GetOperationOssUploadPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "GetOperationOssUploadPolicy", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateGetOperationOssUploadPolicyResponse creates a response to parse from GetOperationOssUploadPolicy response +func CreateGetOperationOssUploadPolicyResponse() (response *GetOperationOssUploadPolicyResponse) { + response = &GetOperationOssUploadPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/get_qualification_upload_policy.go b/services/domain/get_qualification_upload_policy.go new file mode 100644 index 0000000000..3708f42d08 --- /dev/null +++ b/services/domain/get_qualification_upload_policy.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetQualificationUploadPolicy invokes the domain.GetQualificationUploadPolicy API synchronously +func (client *Client) GetQualificationUploadPolicy(request *GetQualificationUploadPolicyRequest) (response *GetQualificationUploadPolicyResponse, err error) { + response = CreateGetQualificationUploadPolicyResponse() + err = client.DoAction(request, response) + return +} + +// GetQualificationUploadPolicyWithChan invokes the domain.GetQualificationUploadPolicy API asynchronously +func (client *Client) GetQualificationUploadPolicyWithChan(request *GetQualificationUploadPolicyRequest) (<-chan *GetQualificationUploadPolicyResponse, <-chan error) { + responseChan := make(chan *GetQualificationUploadPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetQualificationUploadPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetQualificationUploadPolicyWithCallback invokes the domain.GetQualificationUploadPolicy API asynchronously +func (client *Client) GetQualificationUploadPolicyWithCallback(request *GetQualificationUploadPolicyRequest, callback func(response *GetQualificationUploadPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetQualificationUploadPolicyResponse + var err error + defer close(result) + response, err = client.GetQualificationUploadPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetQualificationUploadPolicyRequest is the request struct for api GetQualificationUploadPolicy +type GetQualificationUploadPolicyRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// GetQualificationUploadPolicyResponse is the response struct for api GetQualificationUploadPolicy +type GetQualificationUploadPolicyResponse struct { + *responses.BaseResponse + Policy string `json:"Policy" xml:"Policy"` + Expire string `json:"Expire" xml:"Expire"` + RequestId string `json:"RequestId" xml:"RequestId"` + Accessid string `json:"Accessid" xml:"Accessid"` + Signature string `json:"Signature" xml:"Signature"` + Host string `json:"Host" xml:"Host"` + Prefix string `json:"Prefix" xml:"Prefix"` + Dir string `json:"Dir" xml:"Dir"` +} + +// CreateGetQualificationUploadPolicyRequest creates a request to invoke GetQualificationUploadPolicy API +func CreateGetQualificationUploadPolicyRequest() (request *GetQualificationUploadPolicyRequest) { + request = &GetQualificationUploadPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "GetQualificationUploadPolicy", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateGetQualificationUploadPolicyResponse creates a response to parse from GetQualificationUploadPolicy response +func CreateGetQualificationUploadPolicyResponse() (response *GetQualificationUploadPolicyResponse) { + response = &GetQualificationUploadPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/get_reserve_domain_url.go b/services/domain/get_reserve_domain_url.go deleted file mode 100644 index 9a7cb1b22d..0000000000 --- a/services/domain/get_reserve_domain_url.go +++ /dev/null @@ -1,99 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// GetReserveDomainUrl invokes the domain.GetReserveDomainUrl API synchronously -func (client *Client) GetReserveDomainUrl(request *GetReserveDomainUrlRequest) (response *GetReserveDomainUrlResponse, err error) { - response = CreateGetReserveDomainUrlResponse() - err = client.DoAction(request, response) - return -} - -// GetReserveDomainUrlWithChan invokes the domain.GetReserveDomainUrl API asynchronously -func (client *Client) GetReserveDomainUrlWithChan(request *GetReserveDomainUrlRequest) (<-chan *GetReserveDomainUrlResponse, <-chan error) { - responseChan := make(chan *GetReserveDomainUrlResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.GetReserveDomainUrl(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// GetReserveDomainUrlWithCallback invokes the domain.GetReserveDomainUrl API asynchronously -func (client *Client) GetReserveDomainUrlWithCallback(request *GetReserveDomainUrlRequest, callback func(response *GetReserveDomainUrlResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *GetReserveDomainUrlResponse - var err error - defer close(result) - response, err = client.GetReserveDomainUrl(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// GetReserveDomainUrlRequest is the request struct for api GetReserveDomainUrl -type GetReserveDomainUrlRequest struct { - *requests.RpcRequest -} - -// GetReserveDomainUrlResponse is the response struct for api GetReserveDomainUrl -type GetReserveDomainUrlResponse struct { - *responses.BaseResponse - Url string `json:"Url" xml:"Url"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateGetReserveDomainUrlRequest creates a request to invoke GetReserveDomainUrl API -func CreateGetReserveDomainUrlRequest() (request *GetReserveDomainUrlRequest) { - request = &GetReserveDomainUrlRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "GetReserveDomainUrl", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateGetReserveDomainUrlResponse creates a response to parse from GetReserveDomainUrl response -func CreateGetReserveDomainUrlResponse() (response *GetReserveDomainUrlResponse) { - response = &GetReserveDomainUrlResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/list_email_verification.go b/services/domain/list_email_verification.go new file mode 100644 index 0000000000..75a5562bdd --- /dev/null +++ b/services/domain/list_email_verification.go @@ -0,0 +1,113 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListEmailVerification invokes the domain.ListEmailVerification API synchronously +func (client *Client) ListEmailVerification(request *ListEmailVerificationRequest) (response *ListEmailVerificationResponse, err error) { + response = CreateListEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// ListEmailVerificationWithChan invokes the domain.ListEmailVerification API asynchronously +func (client *Client) ListEmailVerificationWithChan(request *ListEmailVerificationRequest) (<-chan *ListEmailVerificationResponse, <-chan error) { + responseChan := make(chan *ListEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListEmailVerificationWithCallback invokes the domain.ListEmailVerification API asynchronously +func (client *Client) ListEmailVerificationWithCallback(request *ListEmailVerificationRequest, callback func(response *ListEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListEmailVerificationResponse + var err error + defer close(result) + response, err = client.ListEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListEmailVerificationRequest is the request struct for api ListEmailVerification +type ListEmailVerificationRequest struct { + *requests.RpcRequest + EndCreateTime requests.Integer `position:"Query" name:"EndCreateTime"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + VerificationStatus requests.Integer `position:"Query" name:"VerificationStatus"` + BeginCreateTime requests.Integer `position:"Query" name:"BeginCreateTime"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` +} + +// ListEmailVerificationResponse is the response struct for api ListEmailVerification +type ListEmailVerificationResponse struct { + *responses.BaseResponse + PrePage bool `json:"PrePage" xml:"PrePage"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data []EmailVerification `json:"Data" xml:"Data"` +} + +// CreateListEmailVerificationRequest creates a request to invoke ListEmailVerification API +func CreateListEmailVerificationRequest() (request *ListEmailVerificationRequest) { + request = &ListEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "ListEmailVerification", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateListEmailVerificationResponse creates a response to parse from ListEmailVerification response +func CreateListEmailVerificationResponse() (response *ListEmailVerificationResponse) { + response = &ListEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/list_server_lock.go b/services/domain/list_server_lock.go new file mode 100644 index 0000000000..aebd043f3b --- /dev/null +++ b/services/domain/list_server_lock.go @@ -0,0 +1,118 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListServerLock invokes the domain.ListServerLock API synchronously +func (client *Client) ListServerLock(request *ListServerLockRequest) (response *ListServerLockResponse, err error) { + response = CreateListServerLockResponse() + err = client.DoAction(request, response) + return +} + +// ListServerLockWithChan invokes the domain.ListServerLock API asynchronously +func (client *Client) ListServerLockWithChan(request *ListServerLockRequest) (<-chan *ListServerLockResponse, <-chan error) { + responseChan := make(chan *ListServerLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListServerLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListServerLockWithCallback invokes the domain.ListServerLock API asynchronously +func (client *Client) ListServerLockWithCallback(request *ListServerLockRequest, callback func(response *ListServerLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListServerLockResponse + var err error + defer close(result) + response, err = client.ListServerLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListServerLockRequest is the request struct for api ListServerLock +type ListServerLockRequest struct { + *requests.RpcRequest + LockProductId string `position:"Query" name:"LockProductId"` + EndExpireDate requests.Integer `position:"Query" name:"EndExpireDate"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + BeginStartDate requests.Integer `position:"Query" name:"BeginStartDate"` + OrderByType string `position:"Query" name:"OrderByType"` + ServerLockStatus requests.Integer `position:"Query" name:"ServerLockStatus"` + StartExpireDate requests.Integer `position:"Query" name:"StartExpireDate"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + OrderBy string `position:"Query" name:"OrderBy"` + EndStartDate requests.Integer `position:"Query" name:"EndStartDate"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// ListServerLockResponse is the response struct for api ListServerLock +type ListServerLockResponse struct { + *responses.BaseResponse + PrePage bool `json:"PrePage" xml:"PrePage"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data []QueryTransferInResponse `json:"Data" xml:"Data"` +} + +// CreateListServerLockRequest creates a request to invoke ListServerLock API +func CreateListServerLockRequest() (request *ListServerLockRequest) { + request = &ListServerLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "ListServerLock", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateListServerLockResponse creates a response to parse from ListServerLock response +func CreateListServerLockResponse() (response *ListServerLockResponse) { + response = &ListServerLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/lookup_tmch_notice.go b/services/domain/lookup_tmch_notice.go new file mode 100644 index 0000000000..1c8f973a99 --- /dev/null +++ b/services/domain/lookup_tmch_notice.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// LookupTmchNotice invokes the domain.LookupTmchNotice API synchronously +func (client *Client) LookupTmchNotice(request *LookupTmchNoticeRequest) (response *LookupTmchNoticeResponse, err error) { + response = CreateLookupTmchNoticeResponse() + err = client.DoAction(request, response) + return +} + +// LookupTmchNoticeWithChan invokes the domain.LookupTmchNotice API asynchronously +func (client *Client) LookupTmchNoticeWithChan(request *LookupTmchNoticeRequest) (<-chan *LookupTmchNoticeResponse, <-chan error) { + responseChan := make(chan *LookupTmchNoticeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.LookupTmchNotice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// LookupTmchNoticeWithCallback invokes the domain.LookupTmchNotice API asynchronously +func (client *Client) LookupTmchNoticeWithCallback(request *LookupTmchNoticeRequest, callback func(response *LookupTmchNoticeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *LookupTmchNoticeResponse + var err error + defer close(result) + response, err = client.LookupTmchNotice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// LookupTmchNoticeRequest is the request struct for api LookupTmchNotice +type LookupTmchNoticeRequest struct { + *requests.RpcRequest + ClaimKey string `position:"Query" name:"ClaimKey"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// LookupTmchNoticeResponse is the response struct for api LookupTmchNotice +type LookupTmchNoticeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Label string `json:"Label" xml:"Label"` + Id int64 `json:"Id" xml:"Id"` + NotBefore string `json:"NotBefore" xml:"NotBefore"` + NotAfter string `json:"NotAfter" xml:"NotAfter"` + Claims Claims `json:"Claims" xml:"Claims"` +} + +// CreateLookupTmchNoticeRequest creates a request to invoke LookupTmchNotice API +func CreateLookupTmchNoticeRequest() (request *LookupTmchNoticeRequest) { + request = &LookupTmchNoticeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "LookupTmchNotice", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateLookupTmchNoticeResponse creates a response to parse from LookupTmchNotice response +func CreateLookupTmchNoticeResponse() (response *LookupTmchNoticeResponse) { + response = &LookupTmchNoticeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/poll_task_result.go b/services/domain/poll_task_result.go new file mode 100644 index 0000000000..b5e46e343a --- /dev/null +++ b/services/domain/poll_task_result.go @@ -0,0 +1,113 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PollTaskResult invokes the domain.PollTaskResult API synchronously +func (client *Client) PollTaskResult(request *PollTaskResultRequest) (response *PollTaskResultResponse, err error) { + response = CreatePollTaskResultResponse() + err = client.DoAction(request, response) + return +} + +// PollTaskResultWithChan invokes the domain.PollTaskResult API asynchronously +func (client *Client) PollTaskResultWithChan(request *PollTaskResultRequest) (<-chan *PollTaskResultResponse, <-chan error) { + responseChan := make(chan *PollTaskResultResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PollTaskResult(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PollTaskResultWithCallback invokes the domain.PollTaskResult API asynchronously +func (client *Client) PollTaskResultWithCallback(request *PollTaskResultRequest, callback func(response *PollTaskResultResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PollTaskResultResponse + var err error + defer close(result) + response, err = client.PollTaskResult(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PollTaskResultRequest is the request struct for api PollTaskResult +type PollTaskResultRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + TaskResultStatus requests.Integer `position:"Query" name:"TaskResultStatus"` + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + TaskNo string `position:"Query" name:"TaskNo"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` +} + +// PollTaskResultResponse is the response struct for api PollTaskResult +type PollTaskResultResponse struct { + *responses.BaseResponse + PrePage bool `json:"PrePage" xml:"PrePage"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInPollTaskResult `json:"Data" xml:"Data"` +} + +// CreatePollTaskResultRequest creates a request to invoke PollTaskResult API +func CreatePollTaskResultRequest() (request *PollTaskResultRequest) { + request = &PollTaskResultRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "PollTaskResult", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreatePollTaskResultResponse creates a response to parse from PollTaskResult response +func CreatePollTaskResultResponse() (response *PollTaskResultResponse) { + response = &PollTaskResultResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/purchase_intl_domain.go b/services/domain/purchase_intl_domain.go deleted file mode 100644 index 8b5be68219..0000000000 --- a/services/domain/purchase_intl_domain.go +++ /dev/null @@ -1,111 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// PurchaseIntlDomain invokes the domain.PurchaseIntlDomain API synchronously -func (client *Client) PurchaseIntlDomain(request *PurchaseIntlDomainRequest) (response *PurchaseIntlDomainResponse, err error) { - response = CreatePurchaseIntlDomainResponse() - err = client.DoAction(request, response) - return -} - -// PurchaseIntlDomainWithChan invokes the domain.PurchaseIntlDomain API asynchronously -func (client *Client) PurchaseIntlDomainWithChan(request *PurchaseIntlDomainRequest) (<-chan *PurchaseIntlDomainResponse, <-chan error) { - responseChan := make(chan *PurchaseIntlDomainResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.PurchaseIntlDomain(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// PurchaseIntlDomainWithCallback invokes the domain.PurchaseIntlDomain API asynchronously -func (client *Client) PurchaseIntlDomainWithCallback(request *PurchaseIntlDomainRequest, callback func(response *PurchaseIntlDomainResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *PurchaseIntlDomainResponse - var err error - defer close(result) - response, err = client.PurchaseIntlDomain(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// PurchaseIntlDomainRequest is the request struct for api PurchaseIntlDomain -type PurchaseIntlDomainRequest struct { - *requests.RpcRequest - AuctionId string `position:"Body" name:"AuctionId"` - Price string `position:"Body" name:"Price"` - Currency string `position:"Body" name:"Currency"` -} - -// PurchaseIntlDomainResponse is the response struct for api PurchaseIntlDomain -type PurchaseIntlDomainResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` - DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` - ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - Success bool `json:"Success" xml:"Success"` - AllowRetry bool `json:"AllowRetry" xml:"AllowRetry"` - AppName string `json:"AppName" xml:"AppName"` - AuctionId string `json:"AuctionId" xml:"AuctionId"` - ErrorArgs []string `json:"ErrorArgs" xml:"ErrorArgs"` -} - -// CreatePurchaseIntlDomainRequest creates a request to invoke PurchaseIntlDomain API -func CreatePurchaseIntlDomainRequest() (request *PurchaseIntlDomainRequest) { - request = &PurchaseIntlDomainRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "PurchaseIntlDomain", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreatePurchaseIntlDomainResponse creates a response to parse from PurchaseIntlDomain response -func CreatePurchaseIntlDomainResponse() (response *PurchaseIntlDomainResponse) { - response = &PurchaseIntlDomainResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/query_advanced_domain_list.go b/services/domain/query_advanced_domain_list.go new file mode 100644 index 0000000000..6f40cf6417 --- /dev/null +++ b/services/domain/query_advanced_domain_list.go @@ -0,0 +1,140 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryAdvancedDomainList invokes the domain.QueryAdvancedDomainList API synchronously +func (client *Client) QueryAdvancedDomainList(request *QueryAdvancedDomainListRequest) (response *QueryAdvancedDomainListResponse, err error) { + response = CreateQueryAdvancedDomainListResponse() + err = client.DoAction(request, response) + return +} + +// QueryAdvancedDomainListWithChan invokes the domain.QueryAdvancedDomainList API asynchronously +func (client *Client) QueryAdvancedDomainListWithChan(request *QueryAdvancedDomainListRequest) (<-chan *QueryAdvancedDomainListResponse, <-chan error) { + responseChan := make(chan *QueryAdvancedDomainListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryAdvancedDomainList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryAdvancedDomainListWithCallback invokes the domain.QueryAdvancedDomainList API asynchronously +func (client *Client) QueryAdvancedDomainListWithCallback(request *QueryAdvancedDomainListRequest, callback func(response *QueryAdvancedDomainListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryAdvancedDomainListResponse + var err error + defer close(result) + response, err = client.QueryAdvancedDomainList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryAdvancedDomainListRequest is the request struct for api QueryAdvancedDomainList +type QueryAdvancedDomainListRequest struct { + *requests.RpcRequest + ProductDomainType string `position:"Query" name:"ProductDomainType"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + Excluded string `position:"Query" name:"Excluded"` + StartLength requests.Integer `position:"Query" name:"StartLength"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + ExcludedSuffix requests.Boolean `position:"Query" name:"ExcludedSuffix"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag *[]QueryAdvancedDomainListTag `position:"Query" name:"Tag" type:"Repeated"` + Lang string `position:"Query" name:"Lang"` + ExcludedPrefix requests.Boolean `position:"Query" name:"ExcludedPrefix"` + KeyWord string `position:"Query" name:"KeyWord"` + ProductDomainTypeSort requests.Boolean `position:"Query" name:"ProductDomainTypeSort"` + EndExpirationDate requests.Integer `position:"Query" name:"EndExpirationDate"` + Suffixs string `position:"Query" name:"Suffixs"` + DomainNameSort requests.Boolean `position:"Query" name:"DomainNameSort"` + ExpirationDateSort requests.Boolean `position:"Query" name:"ExpirationDateSort"` + StartExpirationDate requests.Integer `position:"Query" name:"StartExpirationDate"` + DomainStatus requests.Integer `position:"Query" name:"DomainStatus"` + DomainGroupId requests.Integer `position:"Query" name:"DomainGroupId"` + KeyWordSuffix requests.Boolean `position:"Query" name:"KeyWordSuffix"` + KeyWordPrefix requests.Boolean `position:"Query" name:"KeyWordPrefix"` + TradeType requests.Integer `position:"Query" name:"TradeType"` + EndRegistrationDate requests.Integer `position:"Query" name:"EndRegistrationDate"` + Form requests.Integer `position:"Query" name:"Form"` + IsPremiumDomain requests.Boolean `position:"Query" name:"IsPremiumDomain"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrationDateSort requests.Boolean `position:"Query" name:"RegistrationDateSort"` + StartRegistrationDate requests.Integer `position:"Query" name:"StartRegistrationDate"` + EndLength requests.Integer `position:"Query" name:"EndLength"` +} + +// QueryAdvancedDomainListTag is a repeated param struct in QueryAdvancedDomainListRequest +type QueryAdvancedDomainListTag struct { + Value string `name:"Value"` + Key string `name:"Key"` +} + +// QueryAdvancedDomainListResponse is the response struct for api QueryAdvancedDomainList +type QueryAdvancedDomainListResponse struct { + *responses.BaseResponse + PrePage bool `json:"PrePage" xml:"PrePage"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryAdvancedDomainList `json:"Data" xml:"Data"` +} + +// CreateQueryAdvancedDomainListRequest creates a request to invoke QueryAdvancedDomainList API +func CreateQueryAdvancedDomainListRequest() (request *QueryAdvancedDomainListRequest) { + request = &QueryAdvancedDomainListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryAdvancedDomainList", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryAdvancedDomainListResponse creates a response to parse from QueryAdvancedDomainList response +func CreateQueryAdvancedDomainListResponse() (response *QueryAdvancedDomainListResponse) { + response = &QueryAdvancedDomainListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_art_extension.go b/services/domain/query_art_extension.go new file mode 100644 index 0000000000..e74d6a434a --- /dev/null +++ b/services/domain/query_art_extension.go @@ -0,0 +1,111 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryArtExtension invokes the domain.QueryArtExtension API synchronously +func (client *Client) QueryArtExtension(request *QueryArtExtensionRequest) (response *QueryArtExtensionResponse, err error) { + response = CreateQueryArtExtensionResponse() + err = client.DoAction(request, response) + return +} + +// QueryArtExtensionWithChan invokes the domain.QueryArtExtension API asynchronously +func (client *Client) QueryArtExtensionWithChan(request *QueryArtExtensionRequest) (<-chan *QueryArtExtensionResponse, <-chan error) { + responseChan := make(chan *QueryArtExtensionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryArtExtension(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryArtExtensionWithCallback invokes the domain.QueryArtExtension API asynchronously +func (client *Client) QueryArtExtensionWithCallback(request *QueryArtExtensionRequest, callback func(response *QueryArtExtensionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryArtExtensionResponse + var err error + defer close(result) + response, err = client.QueryArtExtension(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryArtExtensionRequest is the request struct for api QueryArtExtension +type QueryArtExtensionRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryArtExtensionResponse is the response struct for api QueryArtExtension +type QueryArtExtensionResponse struct { + *responses.BaseResponse + ObjectType string `json:"ObjectType" xml:"ObjectType"` + MaterialsAndTechniques string `json:"MaterialsAndTechniques" xml:"MaterialsAndTechniques"` + InscriptionsAndMarkings string `json:"InscriptionsAndMarkings" xml:"InscriptionsAndMarkings"` + RequestId string `json:"RequestId" xml:"RequestId"` + Reference string `json:"Reference" xml:"Reference"` + DateOrPeriod string `json:"DateOrPeriod" xml:"DateOrPeriod"` + Dimensions string `json:"Dimensions" xml:"Dimensions"` + Title string `json:"Title" xml:"Title"` + Features string `json:"Features" xml:"Features"` + Subject string `json:"Subject" xml:"Subject"` + Maker string `json:"Maker" xml:"Maker"` +} + +// CreateQueryArtExtensionRequest creates a request to invoke QueryArtExtension API +func CreateQueryArtExtensionRequest() (request *QueryArtExtensionRequest) { + request = &QueryArtExtensionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryArtExtension", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryArtExtensionResponse creates a response to parse from QueryArtExtension response +func CreateQueryArtExtensionResponse() (response *QueryArtExtensionResponse) { + response = &QueryArtExtensionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_auction_detail.go b/services/domain/query_auction_detail.go deleted file mode 100644 index f99cd24916..0000000000 --- a/services/domain/query_auction_detail.go +++ /dev/null @@ -1,122 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// QueryAuctionDetail invokes the domain.QueryAuctionDetail API synchronously -func (client *Client) QueryAuctionDetail(request *QueryAuctionDetailRequest) (response *QueryAuctionDetailResponse, err error) { - response = CreateQueryAuctionDetailResponse() - err = client.DoAction(request, response) - return -} - -// QueryAuctionDetailWithChan invokes the domain.QueryAuctionDetail API asynchronously -func (client *Client) QueryAuctionDetailWithChan(request *QueryAuctionDetailRequest) (<-chan *QueryAuctionDetailResponse, <-chan error) { - responseChan := make(chan *QueryAuctionDetailResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.QueryAuctionDetail(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// QueryAuctionDetailWithCallback invokes the domain.QueryAuctionDetail API asynchronously -func (client *Client) QueryAuctionDetailWithCallback(request *QueryAuctionDetailRequest, callback func(response *QueryAuctionDetailResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *QueryAuctionDetailResponse - var err error - defer close(result) - response, err = client.QueryAuctionDetail(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// QueryAuctionDetailRequest is the request struct for api QueryAuctionDetail -type QueryAuctionDetailRequest struct { - *requests.RpcRequest - AuctionId string `position:"Body" name:"AuctionId"` -} - -// QueryAuctionDetailResponse is the response struct for api QueryAuctionDetail -type QueryAuctionDetailResponse struct { - *responses.BaseResponse - Status string `json:"Status" xml:"Status"` - ReserveMet bool `json:"ReserveMet" xml:"ReserveMet"` - HighBid float64 `json:"HighBid" xml:"HighBid"` - DeliveryTime int64 `json:"DeliveryTime" xml:"DeliveryTime"` - TransferInPrice float64 `json:"TransferInPrice" xml:"TransferInPrice"` - NextValidBid float64 `json:"NextValidBid" xml:"NextValidBid"` - ProduceStatus string `json:"ProduceStatus" xml:"ProduceStatus"` - HighBidder string `json:"HighBidder" xml:"HighBidder"` - BookedPartner string `json:"BookedPartner" xml:"BookedPartner"` - Currency string `json:"Currency" xml:"Currency"` - DomainName string `json:"DomainName" xml:"DomainName"` - YourCurrentBid float64 `json:"YourCurrentBid" xml:"YourCurrentBid"` - FailCode string `json:"FailCode" xml:"FailCode"` - AuctionEndTime int64 `json:"AuctionEndTime" xml:"AuctionEndTime"` - BookEndTime int64 `json:"BookEndTime" xml:"BookEndTime"` - PayEndTime int64 `json:"PayEndTime" xml:"PayEndTime"` - PayStatus string `json:"PayStatus" xml:"PayStatus"` - RequestId string `json:"RequestId" xml:"RequestId"` - YourMaxBid float64 `json:"YourMaxBid" xml:"YourMaxBid"` - PayPrice float64 `json:"PayPrice" xml:"PayPrice"` - AuctionId string `json:"AuctionId" xml:"AuctionId"` - PartnerType string `json:"PartnerType" xml:"PartnerType"` - DomainType string `json:"DomainType" xml:"DomainType"` - ReservePrice float64 `json:"ReservePrice" xml:"ReservePrice"` -} - -// CreateQueryAuctionDetailRequest creates a request to invoke QueryAuctionDetail API -func CreateQueryAuctionDetailRequest() (request *QueryAuctionDetailRequest) { - request = &QueryAuctionDetailRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "QueryAuctionDetail", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateQueryAuctionDetailResponse creates a response to parse from QueryAuctionDetail response -func CreateQueryAuctionDetailResponse() (response *QueryAuctionDetailResponse) { - response = &QueryAuctionDetailResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/query_auctions.go b/services/domain/query_auctions.go deleted file mode 100644 index 104fd0ae87..0000000000 --- a/services/domain/query_auctions.go +++ /dev/null @@ -1,108 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// QueryAuctions invokes the domain.QueryAuctions API synchronously -func (client *Client) QueryAuctions(request *QueryAuctionsRequest) (response *QueryAuctionsResponse, err error) { - response = CreateQueryAuctionsResponse() - err = client.DoAction(request, response) - return -} - -// QueryAuctionsWithChan invokes the domain.QueryAuctions API asynchronously -func (client *Client) QueryAuctionsWithChan(request *QueryAuctionsRequest) (<-chan *QueryAuctionsResponse, <-chan error) { - responseChan := make(chan *QueryAuctionsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.QueryAuctions(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// QueryAuctionsWithCallback invokes the domain.QueryAuctions API asynchronously -func (client *Client) QueryAuctionsWithCallback(request *QueryAuctionsRequest, callback func(response *QueryAuctionsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *QueryAuctionsResponse - var err error - defer close(result) - response, err = client.QueryAuctions(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// QueryAuctionsRequest is the request struct for api QueryAuctions -type QueryAuctionsRequest struct { - *requests.RpcRequest - CurrentPage requests.Integer `position:"Body" name:"CurrentPage"` - PageSize requests.Integer `position:"Body" name:"PageSize"` - Statuses string `position:"Body" name:"Statuses"` - AuctionEndTimeOrder string `position:"Body" name:"AuctionEndTimeOrder"` - Status string `position:"Body" name:"Status"` -} - -// QueryAuctionsResponse is the response struct for api QueryAuctions -type QueryAuctionsResponse struct { - *responses.BaseResponse - CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` - TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` - Data []AuctionDetail `json:"Data" xml:"Data"` -} - -// CreateQueryAuctionsRequest creates a request to invoke QueryAuctions API -func CreateQueryAuctionsRequest() (request *QueryAuctionsRequest) { - request = &QueryAuctionsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "QueryAuctions", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateQueryAuctionsResponse creates a response to parse from QueryAuctions response -func CreateQueryAuctionsResponse() (response *QueryAuctionsResponse) { - response = &QueryAuctionsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/query_bid_records.go b/services/domain/query_bid_records.go deleted file mode 100644 index 73f3e2469f..0000000000 --- a/services/domain/query_bid_records.go +++ /dev/null @@ -1,106 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// QueryBidRecords invokes the domain.QueryBidRecords API synchronously -func (client *Client) QueryBidRecords(request *QueryBidRecordsRequest) (response *QueryBidRecordsResponse, err error) { - response = CreateQueryBidRecordsResponse() - err = client.DoAction(request, response) - return -} - -// QueryBidRecordsWithChan invokes the domain.QueryBidRecords API asynchronously -func (client *Client) QueryBidRecordsWithChan(request *QueryBidRecordsRequest) (<-chan *QueryBidRecordsResponse, <-chan error) { - responseChan := make(chan *QueryBidRecordsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.QueryBidRecords(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// QueryBidRecordsWithCallback invokes the domain.QueryBidRecords API asynchronously -func (client *Client) QueryBidRecordsWithCallback(request *QueryBidRecordsRequest, callback func(response *QueryBidRecordsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *QueryBidRecordsResponse - var err error - defer close(result) - response, err = client.QueryBidRecords(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// QueryBidRecordsRequest is the request struct for api QueryBidRecords -type QueryBidRecordsRequest struct { - *requests.RpcRequest - CurrentPage requests.Integer `position:"Body" name:"CurrentPage"` - AuctionId string `position:"Body" name:"AuctionId"` - PageSize requests.Integer `position:"Body" name:"PageSize"` -} - -// QueryBidRecordsResponse is the response struct for api QueryBidRecords -type QueryBidRecordsResponse struct { - *responses.BaseResponse - CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` - TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` - Data []BidRecord `json:"Data" xml:"Data"` -} - -// CreateQueryBidRecordsRequest creates a request to invoke QueryBidRecords API -func CreateQueryBidRecordsRequest() (request *QueryBidRecordsRequest) { - request = &QueryBidRecordsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "QueryBidRecords", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateQueryBidRecordsResponse creates a response to parse from QueryBidRecords response -func CreateQueryBidRecordsResponse() (response *QueryBidRecordsResponse) { - response = &QueryBidRecordsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/query_booking_domain_info.go b/services/domain/query_booking_domain_info.go deleted file mode 100644 index 38a93e721d..0000000000 --- a/services/domain/query_booking_domain_info.go +++ /dev/null @@ -1,106 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// QueryBookingDomainInfo invokes the domain.QueryBookingDomainInfo API synchronously -func (client *Client) QueryBookingDomainInfo(request *QueryBookingDomainInfoRequest) (response *QueryBookingDomainInfoResponse, err error) { - response = CreateQueryBookingDomainInfoResponse() - err = client.DoAction(request, response) - return -} - -// QueryBookingDomainInfoWithChan invokes the domain.QueryBookingDomainInfo API asynchronously -func (client *Client) QueryBookingDomainInfoWithChan(request *QueryBookingDomainInfoRequest) (<-chan *QueryBookingDomainInfoResponse, <-chan error) { - responseChan := make(chan *QueryBookingDomainInfoResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.QueryBookingDomainInfo(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// QueryBookingDomainInfoWithCallback invokes the domain.QueryBookingDomainInfo API asynchronously -func (client *Client) QueryBookingDomainInfoWithCallback(request *QueryBookingDomainInfoRequest, callback func(response *QueryBookingDomainInfoResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *QueryBookingDomainInfoResponse - var err error - defer close(result) - response, err = client.QueryBookingDomainInfo(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// QueryBookingDomainInfoRequest is the request struct for api QueryBookingDomainInfo -type QueryBookingDomainInfoRequest struct { - *requests.RpcRequest - DomainName string `position:"Body" name:"DomainName"` -} - -// QueryBookingDomainInfoResponse is the response struct for api QueryBookingDomainInfo -type QueryBookingDomainInfoResponse struct { - *responses.BaseResponse - BookEndTime int64 `json:"BookEndTime" xml:"BookEndTime"` - RequestId string `json:"RequestId" xml:"RequestId"` - MaxBid float64 `json:"MaxBid" xml:"MaxBid"` - TransferInPrice float64 `json:"TransferInPrice" xml:"TransferInPrice"` - AuctionId int `json:"AuctionId" xml:"AuctionId"` - Currency string `json:"Currency" xml:"Currency"` - PartnerType string `json:"PartnerType" xml:"PartnerType"` - SnatchNo string `json:"SnatchNo" xml:"SnatchNo"` -} - -// CreateQueryBookingDomainInfoRequest creates a request to invoke QueryBookingDomainInfo API -func CreateQueryBookingDomainInfoRequest() (request *QueryBookingDomainInfoRequest) { - request = &QueryBookingDomainInfoRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "QueryBookingDomainInfo", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateQueryBookingDomainInfoResponse creates a response to parse from QueryBookingDomainInfo response -func CreateQueryBookingDomainInfoResponse() (response *QueryBookingDomainInfoResponse) { - response = &QueryBookingDomainInfoResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/query_broker_demand.go b/services/domain/query_broker_demand.go deleted file mode 100644 index f96d9fcc0d..0000000000 --- a/services/domain/query_broker_demand.go +++ /dev/null @@ -1,107 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// QueryBrokerDemand invokes the domain.QueryBrokerDemand API synchronously -func (client *Client) QueryBrokerDemand(request *QueryBrokerDemandRequest) (response *QueryBrokerDemandResponse, err error) { - response = CreateQueryBrokerDemandResponse() - err = client.DoAction(request, response) - return -} - -// QueryBrokerDemandWithChan invokes the domain.QueryBrokerDemand API asynchronously -func (client *Client) QueryBrokerDemandWithChan(request *QueryBrokerDemandRequest) (<-chan *QueryBrokerDemandResponse, <-chan error) { - responseChan := make(chan *QueryBrokerDemandResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.QueryBrokerDemand(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// QueryBrokerDemandWithCallback invokes the domain.QueryBrokerDemand API asynchronously -func (client *Client) QueryBrokerDemandWithCallback(request *QueryBrokerDemandRequest, callback func(response *QueryBrokerDemandResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *QueryBrokerDemandResponse - var err error - defer close(result) - response, err = client.QueryBrokerDemand(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// QueryBrokerDemandRequest is the request struct for api QueryBrokerDemand -type QueryBrokerDemandRequest struct { - *requests.RpcRequest - CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - BizId string `position:"Query" name:"BizId"` - Status string `position:"Query" name:"Status"` -} - -// QueryBrokerDemandResponse is the response struct for api QueryBrokerDemand -type QueryBrokerDemandResponse struct { - *responses.BaseResponse - CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` - TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` - Data []Demand `json:"Data" xml:"Data"` -} - -// CreateQueryBrokerDemandRequest creates a request to invoke QueryBrokerDemand API -func CreateQueryBrokerDemandRequest() (request *QueryBrokerDemandRequest) { - request = &QueryBrokerDemandRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "QueryBrokerDemand", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateQueryBrokerDemandResponse creates a response to parse from QueryBrokerDemand response -func CreateQueryBrokerDemandResponse() (response *QueryBrokerDemandResponse) { - response = &QueryBrokerDemandResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/query_broker_demand_record.go b/services/domain/query_broker_demand_record.go deleted file mode 100644 index 67b1d529dc..0000000000 --- a/services/domain/query_broker_demand_record.go +++ /dev/null @@ -1,106 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// QueryBrokerDemandRecord invokes the domain.QueryBrokerDemandRecord API synchronously -func (client *Client) QueryBrokerDemandRecord(request *QueryBrokerDemandRecordRequest) (response *QueryBrokerDemandRecordResponse, err error) { - response = CreateQueryBrokerDemandRecordResponse() - err = client.DoAction(request, response) - return -} - -// QueryBrokerDemandRecordWithChan invokes the domain.QueryBrokerDemandRecord API asynchronously -func (client *Client) QueryBrokerDemandRecordWithChan(request *QueryBrokerDemandRecordRequest) (<-chan *QueryBrokerDemandRecordResponse, <-chan error) { - responseChan := make(chan *QueryBrokerDemandRecordResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.QueryBrokerDemandRecord(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// QueryBrokerDemandRecordWithCallback invokes the domain.QueryBrokerDemandRecord API asynchronously -func (client *Client) QueryBrokerDemandRecordWithCallback(request *QueryBrokerDemandRecordRequest, callback func(response *QueryBrokerDemandRecordResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *QueryBrokerDemandRecordResponse - var err error - defer close(result) - response, err = client.QueryBrokerDemandRecord(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// QueryBrokerDemandRecordRequest is the request struct for api QueryBrokerDemandRecord -type QueryBrokerDemandRecordRequest struct { - *requests.RpcRequest - CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - BizId string `position:"Query" name:"BizId"` -} - -// QueryBrokerDemandRecordResponse is the response struct for api QueryBrokerDemandRecord -type QueryBrokerDemandRecordResponse struct { - *responses.BaseResponse - CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` - TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` - Data DataInQueryBrokerDemandRecord `json:"Data" xml:"Data"` -} - -// CreateQueryBrokerDemandRecordRequest creates a request to invoke QueryBrokerDemandRecord API -func CreateQueryBrokerDemandRecordRequest() (request *QueryBrokerDemandRecordRequest) { - request = &QueryBrokerDemandRecordRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "QueryBrokerDemandRecord", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateQueryBrokerDemandRecordResponse creates a response to parse from QueryBrokerDemandRecord response -func CreateQueryBrokerDemandRecordResponse() (response *QueryBrokerDemandRecordResponse) { - response = &QueryBrokerDemandRecordResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/query_change_log_list.go b/services/domain/query_change_log_list.go new file mode 100644 index 0000000000..52a4b8bb54 --- /dev/null +++ b/services/domain/query_change_log_list.go @@ -0,0 +1,113 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryChangeLogList invokes the domain.QueryChangeLogList API synchronously +func (client *Client) QueryChangeLogList(request *QueryChangeLogListRequest) (response *QueryChangeLogListResponse, err error) { + response = CreateQueryChangeLogListResponse() + err = client.DoAction(request, response) + return +} + +// QueryChangeLogListWithChan invokes the domain.QueryChangeLogList API asynchronously +func (client *Client) QueryChangeLogListWithChan(request *QueryChangeLogListRequest) (<-chan *QueryChangeLogListResponse, <-chan error) { + responseChan := make(chan *QueryChangeLogListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryChangeLogList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryChangeLogListWithCallback invokes the domain.QueryChangeLogList API asynchronously +func (client *Client) QueryChangeLogListWithCallback(request *QueryChangeLogListRequest, callback func(response *QueryChangeLogListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryChangeLogListResponse + var err error + defer close(result) + response, err = client.QueryChangeLogList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryChangeLogListRequest is the request struct for api QueryChangeLogList +type QueryChangeLogListRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + StartDate requests.Integer `position:"Query" name:"StartDate"` + EndDate requests.Integer `position:"Query" name:"EndDate"` + UserClientIp string `position:"Query" name:"UserClientIp"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryChangeLogListResponse is the response struct for api QueryChangeLogList +type QueryChangeLogListResponse struct { + *responses.BaseResponse + PrePage bool `json:"PrePage" xml:"PrePage"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + ResultLimit bool `json:"ResultLimit" xml:"ResultLimit"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryChangeLogList `json:"Data" xml:"Data"` +} + +// CreateQueryChangeLogListRequest creates a request to invoke QueryChangeLogList API +func CreateQueryChangeLogListRequest() (request *QueryChangeLogListRequest) { + request = &QueryChangeLogListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryChangeLogList", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryChangeLogListResponse creates a response to parse from QueryChangeLogList response +func CreateQueryChangeLogListResponse() (response *QueryChangeLogListResponse) { + response = &QueryChangeLogListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_contact_info.go b/services/domain/query_contact_info.go new file mode 100644 index 0000000000..d60ad0a66e --- /dev/null +++ b/services/domain/query_contact_info.go @@ -0,0 +1,119 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryContactInfo invokes the domain.QueryContactInfo API synchronously +func (client *Client) QueryContactInfo(request *QueryContactInfoRequest) (response *QueryContactInfoResponse, err error) { + response = CreateQueryContactInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryContactInfoWithChan invokes the domain.QueryContactInfo API asynchronously +func (client *Client) QueryContactInfoWithChan(request *QueryContactInfoRequest) (<-chan *QueryContactInfoResponse, <-chan error) { + responseChan := make(chan *QueryContactInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryContactInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryContactInfoWithCallback invokes the domain.QueryContactInfo API asynchronously +func (client *Client) QueryContactInfoWithCallback(request *QueryContactInfoRequest, callback func(response *QueryContactInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryContactInfoResponse + var err error + defer close(result) + response, err = client.QueryContactInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryContactInfoRequest is the request struct for api QueryContactInfo +type QueryContactInfoRequest struct { + *requests.RpcRequest + ContactType string `position:"Query" name:"ContactType"` + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryContactInfoResponse is the response struct for api QueryContactInfo +type QueryContactInfoResponse struct { + *responses.BaseResponse + ZhProvince string `json:"ZhProvince" xml:"ZhProvince"` + Email string `json:"Email" xml:"Email"` + Telephone string `json:"Telephone" xml:"Telephone"` + RequestId string `json:"RequestId" xml:"RequestId"` + Address string `json:"Address" xml:"Address"` + PostalCode string `json:"PostalCode" xml:"PostalCode"` + ZhRegistrantName string `json:"ZhRegistrantName" xml:"ZhRegistrantName"` + City string `json:"City" xml:"City"` + CreateDate string `json:"CreateDate" xml:"CreateDate"` + Province string `json:"Province" xml:"Province"` + ZhCity string `json:"ZhCity" xml:"ZhCity"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + ZhRegistrantOrganization string `json:"ZhRegistrantOrganization" xml:"ZhRegistrantOrganization"` + Country string `json:"Country" xml:"Country"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + TelExt string `json:"TelExt" xml:"TelExt"` + TelArea string `json:"TelArea" xml:"TelArea"` + ZhAddress string `json:"ZhAddress" xml:"ZhAddress"` +} + +// CreateQueryContactInfoRequest creates a request to invoke QueryContactInfo API +func CreateQueryContactInfoRequest() (request *QueryContactInfoRequest) { + request = &QueryContactInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryContactInfo", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryContactInfoResponse creates a response to parse from QueryContactInfo response +func CreateQueryContactInfoResponse() (response *QueryContactInfoResponse) { + response = &QueryContactInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/accept_demand.go b/services/domain/query_dns_host.go similarity index 50% rename from services/domain/accept_demand.go rename to services/domain/query_dns_host.go index e8607eb660..7d8e491a37 100644 --- a/services/domain/accept_demand.go +++ b/services/domain/query_dns_host.go @@ -20,21 +20,21 @@ import ( "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" ) -// AcceptDemand invokes the domain.AcceptDemand API synchronously -func (client *Client) AcceptDemand(request *AcceptDemandRequest) (response *AcceptDemandResponse, err error) { - response = CreateAcceptDemandResponse() +// QueryDnsHost invokes the domain.QueryDnsHost API synchronously +func (client *Client) QueryDnsHost(request *QueryDnsHostRequest) (response *QueryDnsHostResponse, err error) { + response = CreateQueryDnsHostResponse() err = client.DoAction(request, response) return } -// AcceptDemandWithChan invokes the domain.AcceptDemand API asynchronously -func (client *Client) AcceptDemandWithChan(request *AcceptDemandRequest) (<-chan *AcceptDemandResponse, <-chan error) { - responseChan := make(chan *AcceptDemandResponse, 1) +// QueryDnsHostWithChan invokes the domain.QueryDnsHost API asynchronously +func (client *Client) QueryDnsHostWithChan(request *QueryDnsHostRequest) (<-chan *QueryDnsHostResponse, <-chan error) { + responseChan := make(chan *QueryDnsHostResponse, 1) errChan := make(chan error, 1) err := client.AddAsyncTask(func() { defer close(responseChan) defer close(errChan) - response, err := client.AcceptDemand(request) + response, err := client.QueryDnsHost(request) if err != nil { errChan <- err } else { @@ -49,14 +49,14 @@ func (client *Client) AcceptDemandWithChan(request *AcceptDemandRequest) (<-chan return responseChan, errChan } -// AcceptDemandWithCallback invokes the domain.AcceptDemand API asynchronously -func (client *Client) AcceptDemandWithCallback(request *AcceptDemandRequest, callback func(response *AcceptDemandResponse, err error)) <-chan int { +// QueryDnsHostWithCallback invokes the domain.QueryDnsHost API asynchronously +func (client *Client) QueryDnsHostWithCallback(request *QueryDnsHostRequest, callback func(response *QueryDnsHostResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { - var response *AcceptDemandResponse + var response *QueryDnsHostResponse var err error defer close(result) - response, err = client.AcceptDemand(request) + response, err = client.QueryDnsHost(request) callback(response, err) result <- 1 }) @@ -68,33 +68,34 @@ func (client *Client) AcceptDemandWithCallback(request *AcceptDemandRequest, cal return result } -// AcceptDemandRequest is the request struct for api AcceptDemand -type AcceptDemandRequest struct { +// QueryDnsHostRequest is the request struct for api QueryDnsHost +type QueryDnsHostRequest struct { *requests.RpcRequest - Message string `position:"Query" name:"Message"` - BizId string `position:"Query" name:"BizId"` + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` } -// AcceptDemandResponse is the response struct for api AcceptDemand -type AcceptDemandResponse struct { +// QueryDnsHostResponse is the response struct for api QueryDnsHost +type QueryDnsHostResponse struct { *responses.BaseResponse - BindUrl string `json:"BindUrl" xml:"BindUrl"` - RequestId string `json:"RequestId" xml:"RequestId"` + RequestId string `json:"RequestId" xml:"RequestId"` + DnsHostList []DnsHost `json:"DnsHostList" xml:"DnsHostList"` } -// CreateAcceptDemandRequest creates a request to invoke AcceptDemand API -func CreateAcceptDemandRequest() (request *AcceptDemandRequest) { - request = &AcceptDemandRequest{ +// CreateQueryDnsHostRequest creates a request to invoke QueryDnsHost API +func CreateQueryDnsHostRequest() (request *QueryDnsHostRequest) { + request = &QueryDnsHostRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Domain", "2018-02-08", "AcceptDemand", "domain", "openAPI") + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDnsHost", "domain", "openAPI") request.Method = requests.POST return } -// CreateAcceptDemandResponse creates a response to parse from AcceptDemand response -func CreateAcceptDemandResponse() (response *AcceptDemandResponse) { - response = &AcceptDemandResponse{ +// CreateQueryDnsHostResponse creates a response to parse from QueryDnsHost response +func CreateQueryDnsHostResponse() (response *QueryDnsHostResponse) { + response = &QueryDnsHostResponse{ BaseResponse: &responses.BaseResponse{}, } return diff --git a/services/domain/query_domain_admin_division.go b/services/domain/query_domain_admin_division.go new file mode 100644 index 0000000000..c9c81342d8 --- /dev/null +++ b/services/domain/query_domain_admin_division.go @@ -0,0 +1,101 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainAdminDivision invokes the domain.QueryDomainAdminDivision API synchronously +func (client *Client) QueryDomainAdminDivision(request *QueryDomainAdminDivisionRequest) (response *QueryDomainAdminDivisionResponse, err error) { + response = CreateQueryDomainAdminDivisionResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainAdminDivisionWithChan invokes the domain.QueryDomainAdminDivision API asynchronously +func (client *Client) QueryDomainAdminDivisionWithChan(request *QueryDomainAdminDivisionRequest) (<-chan *QueryDomainAdminDivisionResponse, <-chan error) { + responseChan := make(chan *QueryDomainAdminDivisionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainAdminDivision(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainAdminDivisionWithCallback invokes the domain.QueryDomainAdminDivision API asynchronously +func (client *Client) QueryDomainAdminDivisionWithCallback(request *QueryDomainAdminDivisionRequest, callback func(response *QueryDomainAdminDivisionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainAdminDivisionResponse + var err error + defer close(result) + response, err = client.QueryDomainAdminDivision(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainAdminDivisionRequest is the request struct for api QueryDomainAdminDivision +type QueryDomainAdminDivisionRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryDomainAdminDivisionResponse is the response struct for api QueryDomainAdminDivision +type QueryDomainAdminDivisionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AdminDivisions AdminDivisions `json:"AdminDivisions" xml:"AdminDivisions"` +} + +// CreateQueryDomainAdminDivisionRequest creates a request to invoke QueryDomainAdminDivision API +func CreateQueryDomainAdminDivisionRequest() (request *QueryDomainAdminDivisionRequest) { + request = &QueryDomainAdminDivisionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainAdminDivision", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryDomainAdminDivisionResponse creates a response to parse from QueryDomainAdminDivision response +func CreateQueryDomainAdminDivisionResponse() (response *QueryDomainAdminDivisionResponse) { + response = &QueryDomainAdminDivisionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_domain_by_domain_name.go b/services/domain/query_domain_by_domain_name.go new file mode 100644 index 0000000000..ed0d497c21 --- /dev/null +++ b/services/domain/query_domain_by_domain_name.go @@ -0,0 +1,134 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainByDomainName invokes the domain.QueryDomainByDomainName API synchronously +func (client *Client) QueryDomainByDomainName(request *QueryDomainByDomainNameRequest) (response *QueryDomainByDomainNameResponse, err error) { + response = CreateQueryDomainByDomainNameResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainByDomainNameWithChan invokes the domain.QueryDomainByDomainName API asynchronously +func (client *Client) QueryDomainByDomainNameWithChan(request *QueryDomainByDomainNameRequest) (<-chan *QueryDomainByDomainNameResponse, <-chan error) { + responseChan := make(chan *QueryDomainByDomainNameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainByDomainName(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainByDomainNameWithCallback invokes the domain.QueryDomainByDomainName API asynchronously +func (client *Client) QueryDomainByDomainNameWithCallback(request *QueryDomainByDomainNameRequest, callback func(response *QueryDomainByDomainNameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainByDomainNameResponse + var err error + defer close(result) + response, err = client.QueryDomainByDomainName(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainByDomainNameRequest is the request struct for api QueryDomainByDomainName +type QueryDomainByDomainNameRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryDomainByDomainNameResponse is the response struct for api QueryDomainByDomainName +type QueryDomainByDomainNameResponse struct { + *responses.BaseResponse + Email string `json:"Email" xml:"Email"` + RegistrationDate string `json:"RegistrationDate" xml:"RegistrationDate"` + RegistrationDateLong int64 `json:"RegistrationDateLong" xml:"RegistrationDateLong"` + RealNameStatus string `json:"RealNameStatus" xml:"RealNameStatus"` + Premium bool `json:"Premium" xml:"Premium"` + DomainNameVerificationStatus string `json:"DomainNameVerificationStatus" xml:"DomainNameVerificationStatus"` + ExpirationDateLong int64 `json:"ExpirationDateLong" xml:"ExpirationDateLong"` + TransferOutStatus string `json:"TransferOutStatus" xml:"TransferOutStatus"` + ZhRegistrantOrganization string `json:"ZhRegistrantOrganization" xml:"ZhRegistrantOrganization"` + EmailVerificationClientHold bool `json:"EmailVerificationClientHold" xml:"EmailVerificationClientHold"` + EmailVerificationStatus int `json:"EmailVerificationStatus" xml:"EmailVerificationStatus"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + TransferProhibitionLock string `json:"TransferProhibitionLock" xml:"TransferProhibitionLock"` + DomainNameProxyService bool `json:"DomainNameProxyService" xml:"DomainNameProxyService"` + RegistrantType string `json:"RegistrantType" xml:"RegistrantType"` + RegistrantUpdatingStatus string `json:"RegistrantUpdatingStatus" xml:"RegistrantUpdatingStatus"` + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + ZhRegistrantName string `json:"ZhRegistrantName" xml:"ZhRegistrantName"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + UserId string `json:"UserId" xml:"UserId"` + UpdateProhibitionLock string `json:"UpdateProhibitionLock" xml:"UpdateProhibitionLock"` + DomainGroupId int64 `json:"DomainGroupId" xml:"DomainGroupId"` + Remark string `json:"Remark" xml:"Remark"` + DomainGroupName string `json:"DomainGroupName" xml:"DomainGroupName"` + ExpirationDateStatus string `json:"ExpirationDateStatus" xml:"ExpirationDateStatus"` + ExpirationCurrDateDiff int `json:"ExpirationCurrDateDiff" xml:"ExpirationCurrDateDiff"` + DomainType string `json:"DomainType" xml:"DomainType"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + DnsList DnsListInQueryDomainByDomainName `json:"DnsList" xml:"DnsList"` + Tag TagInQueryDomainByDomainName `json:"Tag" xml:"Tag"` +} + +// CreateQueryDomainByDomainNameRequest creates a request to invoke QueryDomainByDomainName API +func CreateQueryDomainByDomainNameRequest() (request *QueryDomainByDomainNameRequest) { + request = &QueryDomainByDomainNameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainByDomainName", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryDomainByDomainNameResponse creates a response to parse from QueryDomainByDomainName response +func CreateQueryDomainByDomainNameResponse() (response *QueryDomainByDomainNameResponse) { + response = &QueryDomainByDomainNameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_domain_by_instance_id.go b/services/domain/query_domain_by_instance_id.go new file mode 100644 index 0000000000..a500b243c0 --- /dev/null +++ b/services/domain/query_domain_by_instance_id.go @@ -0,0 +1,134 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainByInstanceId invokes the domain.QueryDomainByInstanceId API synchronously +func (client *Client) QueryDomainByInstanceId(request *QueryDomainByInstanceIdRequest) (response *QueryDomainByInstanceIdResponse, err error) { + response = CreateQueryDomainByInstanceIdResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainByInstanceIdWithChan invokes the domain.QueryDomainByInstanceId API asynchronously +func (client *Client) QueryDomainByInstanceIdWithChan(request *QueryDomainByInstanceIdRequest) (<-chan *QueryDomainByInstanceIdResponse, <-chan error) { + responseChan := make(chan *QueryDomainByInstanceIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainByInstanceId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainByInstanceIdWithCallback invokes the domain.QueryDomainByInstanceId API asynchronously +func (client *Client) QueryDomainByInstanceIdWithCallback(request *QueryDomainByInstanceIdRequest, callback func(response *QueryDomainByInstanceIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainByInstanceIdResponse + var err error + defer close(result) + response, err = client.QueryDomainByInstanceId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainByInstanceIdRequest is the request struct for api QueryDomainByInstanceId +type QueryDomainByInstanceIdRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryDomainByInstanceIdResponse is the response struct for api QueryDomainByInstanceId +type QueryDomainByInstanceIdResponse struct { + *responses.BaseResponse + Email string `json:"Email" xml:"Email"` + RegistrationDate string `json:"RegistrationDate" xml:"RegistrationDate"` + RegistrationDateLong int64 `json:"RegistrationDateLong" xml:"RegistrationDateLong"` + RealNameStatus string `json:"RealNameStatus" xml:"RealNameStatus"` + Premium bool `json:"Premium" xml:"Premium"` + DomainNameVerificationStatus string `json:"DomainNameVerificationStatus" xml:"DomainNameVerificationStatus"` + ExpirationDateLong int64 `json:"ExpirationDateLong" xml:"ExpirationDateLong"` + TransferOutStatus string `json:"TransferOutStatus" xml:"TransferOutStatus"` + ZhRegistrantOrganization string `json:"ZhRegistrantOrganization" xml:"ZhRegistrantOrganization"` + EmailVerificationClientHold bool `json:"EmailVerificationClientHold" xml:"EmailVerificationClientHold"` + EmailVerificationStatus int `json:"EmailVerificationStatus" xml:"EmailVerificationStatus"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + TransferProhibitionLock string `json:"TransferProhibitionLock" xml:"TransferProhibitionLock"` + DomainNameProxyService bool `json:"DomainNameProxyService" xml:"DomainNameProxyService"` + RegistrantType string `json:"RegistrantType" xml:"RegistrantType"` + RegistrantUpdatingStatus string `json:"RegistrantUpdatingStatus" xml:"RegistrantUpdatingStatus"` + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + ZhRegistrantName string `json:"ZhRegistrantName" xml:"ZhRegistrantName"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + UserId string `json:"UserId" xml:"UserId"` + UpdateProhibitionLock string `json:"UpdateProhibitionLock" xml:"UpdateProhibitionLock"` + DomainGroupId int64 `json:"DomainGroupId" xml:"DomainGroupId"` + Remark string `json:"Remark" xml:"Remark"` + DomainGroupName string `json:"DomainGroupName" xml:"DomainGroupName"` + ExpirationDateStatus string `json:"ExpirationDateStatus" xml:"ExpirationDateStatus"` + ExpirationCurrDateDiff int `json:"ExpirationCurrDateDiff" xml:"ExpirationCurrDateDiff"` + DomainType string `json:"DomainType" xml:"DomainType"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + DnsList DnsListInQueryDomainByInstanceId `json:"DnsList" xml:"DnsList"` + Tag TagInQueryDomainByInstanceId `json:"Tag" xml:"Tag"` +} + +// CreateQueryDomainByInstanceIdRequest creates a request to invoke QueryDomainByInstanceId API +func CreateQueryDomainByInstanceIdRequest() (request *QueryDomainByInstanceIdRequest) { + request = &QueryDomainByInstanceIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainByInstanceId", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryDomainByInstanceIdResponse creates a response to parse from QueryDomainByInstanceId response +func CreateQueryDomainByInstanceIdResponse() (response *QueryDomainByInstanceIdResponse) { + response = &QueryDomainByInstanceIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_domain_group_list.go b/services/domain/query_domain_group_list.go new file mode 100644 index 0000000000..d1ec2f959c --- /dev/null +++ b/services/domain/query_domain_group_list.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainGroupList invokes the domain.QueryDomainGroupList API synchronously +func (client *Client) QueryDomainGroupList(request *QueryDomainGroupListRequest) (response *QueryDomainGroupListResponse, err error) { + response = CreateQueryDomainGroupListResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainGroupListWithChan invokes the domain.QueryDomainGroupList API asynchronously +func (client *Client) QueryDomainGroupListWithChan(request *QueryDomainGroupListRequest) (<-chan *QueryDomainGroupListResponse, <-chan error) { + responseChan := make(chan *QueryDomainGroupListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainGroupList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainGroupListWithCallback invokes the domain.QueryDomainGroupList API asynchronously +func (client *Client) QueryDomainGroupListWithCallback(request *QueryDomainGroupListRequest, callback func(response *QueryDomainGroupListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainGroupListResponse + var err error + defer close(result) + response, err = client.QueryDomainGroupList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainGroupListRequest is the request struct for api QueryDomainGroupList +type QueryDomainGroupListRequest struct { + *requests.RpcRequest + ShowDeletingGroup requests.Boolean `position:"Query" name:"ShowDeletingGroup"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainGroupName string `position:"Query" name:"DomainGroupName"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryDomainGroupListResponse is the response struct for api QueryDomainGroupList +type QueryDomainGroupListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data DataInQueryDomainGroupList `json:"Data" xml:"Data"` +} + +// CreateQueryDomainGroupListRequest creates a request to invoke QueryDomainGroupList API +func CreateQueryDomainGroupListRequest() (request *QueryDomainGroupListRequest) { + request = &QueryDomainGroupListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainGroupList", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryDomainGroupListResponse creates a response to parse from QueryDomainGroupList response +func CreateQueryDomainGroupListResponse() (response *QueryDomainGroupListResponse) { + response = &QueryDomainGroupListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_domain_list.go b/services/domain/query_domain_list.go new file mode 100644 index 0000000000..bcbe716065 --- /dev/null +++ b/services/domain/query_domain_list.go @@ -0,0 +1,128 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainList invokes the domain.QueryDomainList API synchronously +func (client *Client) QueryDomainList(request *QueryDomainListRequest) (response *QueryDomainListResponse, err error) { + response = CreateQueryDomainListResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainListWithChan invokes the domain.QueryDomainList API asynchronously +func (client *Client) QueryDomainListWithChan(request *QueryDomainListRequest) (<-chan *QueryDomainListResponse, <-chan error) { + responseChan := make(chan *QueryDomainListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainListWithCallback invokes the domain.QueryDomainList API asynchronously +func (client *Client) QueryDomainListWithCallback(request *QueryDomainListRequest, callback func(response *QueryDomainListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainListResponse + var err error + defer close(result) + response, err = client.QueryDomainList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainListRequest is the request struct for api QueryDomainList +type QueryDomainListRequest struct { + *requests.RpcRequest + ProductDomainType string `position:"Query" name:"ProductDomainType"` + Ccompany string `position:"Query" name:"Ccompany"` + OrderKeyType string `position:"Query" name:"OrderKeyType"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + OrderByType string `position:"Query" name:"OrderByType"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag *[]QueryDomainListTag `position:"Query" name:"Tag" type:"Repeated"` + Lang string `position:"Query" name:"Lang"` + QueryType string `position:"Query" name:"QueryType"` + EndExpirationDate requests.Integer `position:"Query" name:"EndExpirationDate"` + DomainName string `position:"Query" name:"DomainName"` + StartExpirationDate requests.Integer `position:"Query" name:"StartExpirationDate"` + DomainGroupId string `position:"Query" name:"DomainGroupId"` + EndRegistrationDate requests.Integer `position:"Query" name:"EndRegistrationDate"` + UserClientIp string `position:"Query" name:"UserClientIp"` + StartRegistrationDate requests.Integer `position:"Query" name:"StartRegistrationDate"` +} + +// QueryDomainListTag is a repeated param struct in QueryDomainListRequest +type QueryDomainListTag struct { + Value string `name:"Value"` + Key string `name:"Key"` +} + +// QueryDomainListResponse is the response struct for api QueryDomainList +type QueryDomainListResponse struct { + *responses.BaseResponse + PrePage bool `json:"PrePage" xml:"PrePage"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryDomainList `json:"Data" xml:"Data"` +} + +// CreateQueryDomainListRequest creates a request to invoke QueryDomainList API +func CreateQueryDomainListRequest() (request *QueryDomainListRequest) { + request = &QueryDomainListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainList", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryDomainListResponse creates a response to parse from QueryDomainList response +func CreateQueryDomainListResponse() (response *QueryDomainListResponse) { + response = &QueryDomainListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_domain_real_name_verification_info.go b/services/domain/query_domain_real_name_verification_info.go new file mode 100644 index 0000000000..20898158b4 --- /dev/null +++ b/services/domain/query_domain_real_name_verification_info.go @@ -0,0 +1,109 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainRealNameVerificationInfo invokes the domain.QueryDomainRealNameVerificationInfo API synchronously +func (client *Client) QueryDomainRealNameVerificationInfo(request *QueryDomainRealNameVerificationInfoRequest) (response *QueryDomainRealNameVerificationInfoResponse, err error) { + response = CreateQueryDomainRealNameVerificationInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainRealNameVerificationInfoWithChan invokes the domain.QueryDomainRealNameVerificationInfo API asynchronously +func (client *Client) QueryDomainRealNameVerificationInfoWithChan(request *QueryDomainRealNameVerificationInfoRequest) (<-chan *QueryDomainRealNameVerificationInfoResponse, <-chan error) { + responseChan := make(chan *QueryDomainRealNameVerificationInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainRealNameVerificationInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainRealNameVerificationInfoWithCallback invokes the domain.QueryDomainRealNameVerificationInfo API asynchronously +func (client *Client) QueryDomainRealNameVerificationInfoWithCallback(request *QueryDomainRealNameVerificationInfoRequest, callback func(response *QueryDomainRealNameVerificationInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainRealNameVerificationInfoResponse + var err error + defer close(result) + response, err = client.QueryDomainRealNameVerificationInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainRealNameVerificationInfoRequest is the request struct for api QueryDomainRealNameVerificationInfo +type QueryDomainRealNameVerificationInfoRequest struct { + *requests.RpcRequest + FetchImage requests.Boolean `position:"Query" name:"FetchImage"` + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryDomainRealNameVerificationInfoResponse is the response struct for api QueryDomainRealNameVerificationInfo +type QueryDomainRealNameVerificationInfoResponse struct { + *responses.BaseResponse + IdentityCredentialType string `json:"IdentityCredentialType" xml:"IdentityCredentialType"` + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DomainName string `json:"DomainName" xml:"DomainName"` + IdentityCredential string `json:"IdentityCredential" xml:"IdentityCredential"` + SubmissionDate string `json:"SubmissionDate" xml:"SubmissionDate"` + IdentityCredentialNo string `json:"IdentityCredentialNo" xml:"IdentityCredentialNo"` + IdentityCredentialUrl string `json:"IdentityCredentialUrl" xml:"IdentityCredentialUrl"` +} + +// CreateQueryDomainRealNameVerificationInfoRequest creates a request to invoke QueryDomainRealNameVerificationInfo API +func CreateQueryDomainRealNameVerificationInfoRequest() (request *QueryDomainRealNameVerificationInfoRequest) { + request = &QueryDomainRealNameVerificationInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainRealNameVerificationInfo", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryDomainRealNameVerificationInfoResponse creates a response to parse from QueryDomainRealNameVerificationInfo response +func CreateQueryDomainRealNameVerificationInfoResponse() (response *QueryDomainRealNameVerificationInfoResponse) { + response = &QueryDomainRealNameVerificationInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_domain_special_biz_detail.go b/services/domain/query_domain_special_biz_detail.go new file mode 100644 index 0000000000..be8fda3e6e --- /dev/null +++ b/services/domain/query_domain_special_biz_detail.go @@ -0,0 +1,111 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainSpecialBizDetail invokes the domain.QueryDomainSpecialBizDetail API synchronously +func (client *Client) QueryDomainSpecialBizDetail(request *QueryDomainSpecialBizDetailRequest) (response *QueryDomainSpecialBizDetailResponse, err error) { + response = CreateQueryDomainSpecialBizDetailResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainSpecialBizDetailWithChan invokes the domain.QueryDomainSpecialBizDetail API asynchronously +func (client *Client) QueryDomainSpecialBizDetailWithChan(request *QueryDomainSpecialBizDetailRequest) (<-chan *QueryDomainSpecialBizDetailResponse, <-chan error) { + responseChan := make(chan *QueryDomainSpecialBizDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainSpecialBizDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainSpecialBizDetailWithCallback invokes the domain.QueryDomainSpecialBizDetail API asynchronously +func (client *Client) QueryDomainSpecialBizDetailWithCallback(request *QueryDomainSpecialBizDetailRequest, callback func(response *QueryDomainSpecialBizDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainSpecialBizDetailResponse + var err error + defer close(result) + response, err = client.QueryDomainSpecialBizDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainSpecialBizDetailRequest is the request struct for api QueryDomainSpecialBizDetail +type QueryDomainSpecialBizDetailRequest struct { + *requests.RpcRequest + BizId requests.Integer `position:"Body" name:"BizId"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// QueryDomainSpecialBizDetailResponse is the response struct for api QueryDomainSpecialBizDetail +type QueryDomainSpecialBizDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` + DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` + Synchro bool `json:"Synchro" xml:"Synchro"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + Success bool `json:"Success" xml:"Success"` + AllowRetry bool `json:"AllowRetry" xml:"AllowRetry"` + AppName string `json:"AppName" xml:"AppName"` + ErrorArgs []string `json:"ErrorArgs" xml:"ErrorArgs"` + Module Module `json:"Module" xml:"Module"` +} + +// CreateQueryDomainSpecialBizDetailRequest creates a request to invoke QueryDomainSpecialBizDetail API +func CreateQueryDomainSpecialBizDetailRequest() (request *QueryDomainSpecialBizDetailRequest) { + request = &QueryDomainSpecialBizDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainSpecialBizDetail", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryDomainSpecialBizDetailResponse creates a response to parse from QueryDomainSpecialBizDetail response +func CreateQueryDomainSpecialBizDetailResponse() (response *QueryDomainSpecialBizDetailResponse) { + response = &QueryDomainSpecialBizDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_domain_special_biz_info_by_domain.go b/services/domain/query_domain_special_biz_info_by_domain.go new file mode 100644 index 0000000000..73c58c74b4 --- /dev/null +++ b/services/domain/query_domain_special_biz_info_by_domain.go @@ -0,0 +1,112 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainSpecialBizInfoByDomain invokes the domain.QueryDomainSpecialBizInfoByDomain API synchronously +func (client *Client) QueryDomainSpecialBizInfoByDomain(request *QueryDomainSpecialBizInfoByDomainRequest) (response *QueryDomainSpecialBizInfoByDomainResponse, err error) { + response = CreateQueryDomainSpecialBizInfoByDomainResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainSpecialBizInfoByDomainWithChan invokes the domain.QueryDomainSpecialBizInfoByDomain API asynchronously +func (client *Client) QueryDomainSpecialBizInfoByDomainWithChan(request *QueryDomainSpecialBizInfoByDomainRequest) (<-chan *QueryDomainSpecialBizInfoByDomainResponse, <-chan error) { + responseChan := make(chan *QueryDomainSpecialBizInfoByDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainSpecialBizInfoByDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainSpecialBizInfoByDomainWithCallback invokes the domain.QueryDomainSpecialBizInfoByDomain API asynchronously +func (client *Client) QueryDomainSpecialBizInfoByDomainWithCallback(request *QueryDomainSpecialBizInfoByDomainRequest, callback func(response *QueryDomainSpecialBizInfoByDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainSpecialBizInfoByDomainResponse + var err error + defer close(result) + response, err = client.QueryDomainSpecialBizInfoByDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainSpecialBizInfoByDomainRequest is the request struct for api QueryDomainSpecialBizInfoByDomain +type QueryDomainSpecialBizInfoByDomainRequest struct { + *requests.RpcRequest + DomainName string `position:"Body" name:"DomainName"` + BizType string `position:"Body" name:"BizType"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// QueryDomainSpecialBizInfoByDomainResponse is the response struct for api QueryDomainSpecialBizInfoByDomain +type QueryDomainSpecialBizInfoByDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` + DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` + Synchro bool `json:"Synchro" xml:"Synchro"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + Success bool `json:"Success" xml:"Success"` + AllowRetry bool `json:"AllowRetry" xml:"AllowRetry"` + AppName string `json:"AppName" xml:"AppName"` + ErrorArgs []string `json:"ErrorArgs" xml:"ErrorArgs"` + Module Module `json:"Module" xml:"Module"` +} + +// CreateQueryDomainSpecialBizInfoByDomainRequest creates a request to invoke QueryDomainSpecialBizInfoByDomain API +func CreateQueryDomainSpecialBizInfoByDomainRequest() (request *QueryDomainSpecialBizInfoByDomainRequest) { + request = &QueryDomainSpecialBizInfoByDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainSpecialBizInfoByDomain", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryDomainSpecialBizInfoByDomainResponse creates a response to parse from QueryDomainSpecialBizInfoByDomain response +func CreateQueryDomainSpecialBizInfoByDomainResponse() (response *QueryDomainSpecialBizInfoByDomainResponse) { + response = &QueryDomainSpecialBizInfoByDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_domain_suffix.go b/services/domain/query_domain_suffix.go new file mode 100644 index 0000000000..6ec9f8a2c2 --- /dev/null +++ b/services/domain/query_domain_suffix.go @@ -0,0 +1,101 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDomainSuffix invokes the domain.QueryDomainSuffix API synchronously +func (client *Client) QueryDomainSuffix(request *QueryDomainSuffixRequest) (response *QueryDomainSuffixResponse, err error) { + response = CreateQueryDomainSuffixResponse() + err = client.DoAction(request, response) + return +} + +// QueryDomainSuffixWithChan invokes the domain.QueryDomainSuffix API asynchronously +func (client *Client) QueryDomainSuffixWithChan(request *QueryDomainSuffixRequest) (<-chan *QueryDomainSuffixResponse, <-chan error) { + responseChan := make(chan *QueryDomainSuffixResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDomainSuffix(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDomainSuffixWithCallback invokes the domain.QueryDomainSuffix API asynchronously +func (client *Client) QueryDomainSuffixWithCallback(request *QueryDomainSuffixRequest, callback func(response *QueryDomainSuffixResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDomainSuffixResponse + var err error + defer close(result) + response, err = client.QueryDomainSuffix(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDomainSuffixRequest is the request struct for api QueryDomainSuffix +type QueryDomainSuffixRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryDomainSuffixResponse is the response struct for api QueryDomainSuffix +type QueryDomainSuffixResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuffixList SuffixList `json:"SuffixList" xml:"SuffixList"` +} + +// CreateQueryDomainSuffixRequest creates a request to invoke QueryDomainSuffix API +func CreateQueryDomainSuffixRequest() (request *QueryDomainSuffixRequest) { + request = &QueryDomainSuffixRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDomainSuffix", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryDomainSuffixResponse creates a response to parse from QueryDomainSuffix response +func CreateQueryDomainSuffixResponse() (response *QueryDomainSuffixResponse) { + response = &QueryDomainSuffixResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_domain_transfer_status.go b/services/domain/query_domain_transfer_status.go deleted file mode 100644 index 7d43815c77..0000000000 --- a/services/domain/query_domain_transfer_status.go +++ /dev/null @@ -1,100 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// QueryDomainTransferStatus invokes the domain.QueryDomainTransferStatus API synchronously -func (client *Client) QueryDomainTransferStatus(request *QueryDomainTransferStatusRequest) (response *QueryDomainTransferStatusResponse, err error) { - response = CreateQueryDomainTransferStatusResponse() - err = client.DoAction(request, response) - return -} - -// QueryDomainTransferStatusWithChan invokes the domain.QueryDomainTransferStatus API asynchronously -func (client *Client) QueryDomainTransferStatusWithChan(request *QueryDomainTransferStatusRequest) (<-chan *QueryDomainTransferStatusResponse, <-chan error) { - responseChan := make(chan *QueryDomainTransferStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.QueryDomainTransferStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// QueryDomainTransferStatusWithCallback invokes the domain.QueryDomainTransferStatus API asynchronously -func (client *Client) QueryDomainTransferStatusWithCallback(request *QueryDomainTransferStatusRequest, callback func(response *QueryDomainTransferStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *QueryDomainTransferStatusResponse - var err error - defer close(result) - response, err = client.QueryDomainTransferStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// QueryDomainTransferStatusRequest is the request struct for api QueryDomainTransferStatus -type QueryDomainTransferStatusRequest struct { - *requests.RpcRequest - DomainName string `position:"Body" name:"DomainName"` -} - -// QueryDomainTransferStatusResponse is the response struct for api QueryDomainTransferStatus -type QueryDomainTransferStatusResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - DomainTransferStatus []DomainTransferStatusItem `json:"DomainTransferStatus" xml:"DomainTransferStatus"` -} - -// CreateQueryDomainTransferStatusRequest creates a request to invoke QueryDomainTransferStatus API -func CreateQueryDomainTransferStatusRequest() (request *QueryDomainTransferStatusRequest) { - request = &QueryDomainTransferStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "QueryDomainTransferStatus", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateQueryDomainTransferStatusResponse creates a response to parse from QueryDomainTransferStatus response -func CreateQueryDomainTransferStatusResponse() (response *QueryDomainTransferStatusResponse) { - response = &QueryDomainTransferStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/query_ds_record.go b/services/domain/query_ds_record.go new file mode 100644 index 0000000000..593abc0c3a --- /dev/null +++ b/services/domain/query_ds_record.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryDSRecord invokes the domain.QueryDSRecord API synchronously +func (client *Client) QueryDSRecord(request *QueryDSRecordRequest) (response *QueryDSRecordResponse, err error) { + response = CreateQueryDSRecordResponse() + err = client.DoAction(request, response) + return +} + +// QueryDSRecordWithChan invokes the domain.QueryDSRecord API asynchronously +func (client *Client) QueryDSRecordWithChan(request *QueryDSRecordRequest) (<-chan *QueryDSRecordResponse, <-chan error) { + responseChan := make(chan *QueryDSRecordResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryDSRecord(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryDSRecordWithCallback invokes the domain.QueryDSRecord API asynchronously +func (client *Client) QueryDSRecordWithCallback(request *QueryDSRecordRequest, callback func(response *QueryDSRecordResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryDSRecordResponse + var err error + defer close(result) + response, err = client.QueryDSRecord(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryDSRecordRequest is the request struct for api QueryDSRecord +type QueryDSRecordRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryDSRecordResponse is the response struct for api QueryDSRecord +type QueryDSRecordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DSRecordList []DSRecord `json:"DSRecordList" xml:"DSRecordList"` +} + +// CreateQueryDSRecordRequest creates a request to invoke QueryDSRecord API +func CreateQueryDSRecordRequest() (request *QueryDSRecordRequest) { + request = &QueryDSRecordRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryDSRecord", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryDSRecordResponse creates a response to parse from QueryDSRecord response +func CreateQueryDSRecordResponse() (response *QueryDSRecordResponse) { + response = &QueryDSRecordResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_email_verification.go b/services/domain/query_email_verification.go new file mode 100644 index 0000000000..48e6732ed4 --- /dev/null +++ b/services/domain/query_email_verification.go @@ -0,0 +1,111 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryEmailVerification invokes the domain.QueryEmailVerification API synchronously +func (client *Client) QueryEmailVerification(request *QueryEmailVerificationRequest) (response *QueryEmailVerificationResponse, err error) { + response = CreateQueryEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// QueryEmailVerificationWithChan invokes the domain.QueryEmailVerification API asynchronously +func (client *Client) QueryEmailVerificationWithChan(request *QueryEmailVerificationRequest) (<-chan *QueryEmailVerificationResponse, <-chan error) { + responseChan := make(chan *QueryEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryEmailVerificationWithCallback invokes the domain.QueryEmailVerification API asynchronously +func (client *Client) QueryEmailVerificationWithCallback(request *QueryEmailVerificationRequest, callback func(response *QueryEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryEmailVerificationResponse + var err error + defer close(result) + response, err = client.QueryEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryEmailVerificationRequest is the request struct for api QueryEmailVerification +type QueryEmailVerificationRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` +} + +// QueryEmailVerificationResponse is the response struct for api QueryEmailVerification +type QueryEmailVerificationResponse struct { + *responses.BaseResponse + VerificationStatus int `json:"VerificationStatus" xml:"VerificationStatus"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + Email string `json:"Email" xml:"Email"` + EmailVerificationNo string `json:"EmailVerificationNo" xml:"EmailVerificationNo"` + ConfirmIp string `json:"ConfirmIp" xml:"ConfirmIp"` + RequestId string `json:"RequestId" xml:"RequestId"` + UserId string `json:"UserId" xml:"UserId"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + SendIp string `json:"SendIp" xml:"SendIp"` + VerificationTime string `json:"VerificationTime" xml:"VerificationTime"` + TokenSendTime string `json:"TokenSendTime" xml:"TokenSendTime"` +} + +// CreateQueryEmailVerificationRequest creates a request to invoke QueryEmailVerification API +func CreateQueryEmailVerificationRequest() (request *QueryEmailVerificationRequest) { + request = &QueryEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryEmailVerification", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryEmailVerificationResponse creates a response to parse from QueryEmailVerification response +func CreateQueryEmailVerificationResponse() (response *QueryEmailVerificationResponse) { + response = &QueryEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_ens_association.go b/services/domain/query_ens_association.go new file mode 100644 index 0000000000..191e0edcbc --- /dev/null +++ b/services/domain/query_ens_association.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryEnsAssociation invokes the domain.QueryEnsAssociation API synchronously +func (client *Client) QueryEnsAssociation(request *QueryEnsAssociationRequest) (response *QueryEnsAssociationResponse, err error) { + response = CreateQueryEnsAssociationResponse() + err = client.DoAction(request, response) + return +} + +// QueryEnsAssociationWithChan invokes the domain.QueryEnsAssociation API asynchronously +func (client *Client) QueryEnsAssociationWithChan(request *QueryEnsAssociationRequest) (<-chan *QueryEnsAssociationResponse, <-chan error) { + responseChan := make(chan *QueryEnsAssociationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryEnsAssociation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryEnsAssociationWithCallback invokes the domain.QueryEnsAssociation API asynchronously +func (client *Client) QueryEnsAssociationWithCallback(request *QueryEnsAssociationRequest, callback func(response *QueryEnsAssociationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryEnsAssociationResponse + var err error + defer close(result) + response, err = client.QueryEnsAssociation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryEnsAssociationRequest is the request struct for api QueryEnsAssociation +type QueryEnsAssociationRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryEnsAssociationResponse is the response struct for api QueryEnsAssociation +type QueryEnsAssociationResponse struct { + *responses.BaseResponse + Address string `json:"Address" xml:"Address"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateQueryEnsAssociationRequest creates a request to invoke QueryEnsAssociation API +func CreateQueryEnsAssociationRequest() (request *QueryEnsAssociationRequest) { + request = &QueryEnsAssociationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryEnsAssociation", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryEnsAssociationResponse creates a response to parse from QueryEnsAssociation response +func CreateQueryEnsAssociationResponse() (response *QueryEnsAssociationResponse) { + response = &QueryEnsAssociationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_fail_reason_for_domain_real_name_verification.go b/services/domain/query_fail_reason_for_domain_real_name_verification.go new file mode 100644 index 0000000000..df61ebf209 --- /dev/null +++ b/services/domain/query_fail_reason_for_domain_real_name_verification.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryFailReasonForDomainRealNameVerification invokes the domain.QueryFailReasonForDomainRealNameVerification API synchronously +func (client *Client) QueryFailReasonForDomainRealNameVerification(request *QueryFailReasonForDomainRealNameVerificationRequest) (response *QueryFailReasonForDomainRealNameVerificationResponse, err error) { + response = CreateQueryFailReasonForDomainRealNameVerificationResponse() + err = client.DoAction(request, response) + return +} + +// QueryFailReasonForDomainRealNameVerificationWithChan invokes the domain.QueryFailReasonForDomainRealNameVerification API asynchronously +func (client *Client) QueryFailReasonForDomainRealNameVerificationWithChan(request *QueryFailReasonForDomainRealNameVerificationRequest) (<-chan *QueryFailReasonForDomainRealNameVerificationResponse, <-chan error) { + responseChan := make(chan *QueryFailReasonForDomainRealNameVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryFailReasonForDomainRealNameVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryFailReasonForDomainRealNameVerificationWithCallback invokes the domain.QueryFailReasonForDomainRealNameVerification API asynchronously +func (client *Client) QueryFailReasonForDomainRealNameVerificationWithCallback(request *QueryFailReasonForDomainRealNameVerificationRequest, callback func(response *QueryFailReasonForDomainRealNameVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryFailReasonForDomainRealNameVerificationResponse + var err error + defer close(result) + response, err = client.QueryFailReasonForDomainRealNameVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryFailReasonForDomainRealNameVerificationRequest is the request struct for api QueryFailReasonForDomainRealNameVerification +type QueryFailReasonForDomainRealNameVerificationRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + RealNameVerificationAction string `position:"Query" name:"RealNameVerificationAction"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryFailReasonForDomainRealNameVerificationResponse is the response struct for api QueryFailReasonForDomainRealNameVerification +type QueryFailReasonForDomainRealNameVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data []FailRecord `json:"Data" xml:"Data"` +} + +// CreateQueryFailReasonForDomainRealNameVerificationRequest creates a request to invoke QueryFailReasonForDomainRealNameVerification API +func CreateQueryFailReasonForDomainRealNameVerificationRequest() (request *QueryFailReasonForDomainRealNameVerificationRequest) { + request = &QueryFailReasonForDomainRealNameVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryFailReasonForDomainRealNameVerification", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryFailReasonForDomainRealNameVerificationResponse creates a response to parse from QueryFailReasonForDomainRealNameVerification response +func CreateQueryFailReasonForDomainRealNameVerificationResponse() (response *QueryFailReasonForDomainRealNameVerificationResponse) { + response = &QueryFailReasonForDomainRealNameVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_fail_reason_for_registrant_profile_real_name_verification.go b/services/domain/query_fail_reason_for_registrant_profile_real_name_verification.go new file mode 100644 index 0000000000..7b10c68f15 --- /dev/null +++ b/services/domain/query_fail_reason_for_registrant_profile_real_name_verification.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryFailReasonForRegistrantProfileRealNameVerification invokes the domain.QueryFailReasonForRegistrantProfileRealNameVerification API synchronously +func (client *Client) QueryFailReasonForRegistrantProfileRealNameVerification(request *QueryFailReasonForRegistrantProfileRealNameVerificationRequest) (response *QueryFailReasonForRegistrantProfileRealNameVerificationResponse, err error) { + response = CreateQueryFailReasonForRegistrantProfileRealNameVerificationResponse() + err = client.DoAction(request, response) + return +} + +// QueryFailReasonForRegistrantProfileRealNameVerificationWithChan invokes the domain.QueryFailReasonForRegistrantProfileRealNameVerification API asynchronously +func (client *Client) QueryFailReasonForRegistrantProfileRealNameVerificationWithChan(request *QueryFailReasonForRegistrantProfileRealNameVerificationRequest) (<-chan *QueryFailReasonForRegistrantProfileRealNameVerificationResponse, <-chan error) { + responseChan := make(chan *QueryFailReasonForRegistrantProfileRealNameVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryFailReasonForRegistrantProfileRealNameVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryFailReasonForRegistrantProfileRealNameVerificationWithCallback invokes the domain.QueryFailReasonForRegistrantProfileRealNameVerification API asynchronously +func (client *Client) QueryFailReasonForRegistrantProfileRealNameVerificationWithCallback(request *QueryFailReasonForRegistrantProfileRealNameVerificationRequest, callback func(response *QueryFailReasonForRegistrantProfileRealNameVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryFailReasonForRegistrantProfileRealNameVerificationResponse + var err error + defer close(result) + response, err = client.QueryFailReasonForRegistrantProfileRealNameVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryFailReasonForRegistrantProfileRealNameVerificationRequest is the request struct for api QueryFailReasonForRegistrantProfileRealNameVerification +type QueryFailReasonForRegistrantProfileRealNameVerificationRequest struct { + *requests.RpcRequest + RegistrantProfileID requests.Integer `position:"Query" name:"RegistrantProfileID"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryFailReasonForRegistrantProfileRealNameVerificationResponse is the response struct for api QueryFailReasonForRegistrantProfileRealNameVerification +type QueryFailReasonForRegistrantProfileRealNameVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data []FailRecord `json:"Data" xml:"Data"` +} + +// CreateQueryFailReasonForRegistrantProfileRealNameVerificationRequest creates a request to invoke QueryFailReasonForRegistrantProfileRealNameVerification API +func CreateQueryFailReasonForRegistrantProfileRealNameVerificationRequest() (request *QueryFailReasonForRegistrantProfileRealNameVerificationRequest) { + request = &QueryFailReasonForRegistrantProfileRealNameVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryFailReasonForRegistrantProfileRealNameVerification", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryFailReasonForRegistrantProfileRealNameVerificationResponse creates a response to parse from QueryFailReasonForRegistrantProfileRealNameVerification response +func CreateQueryFailReasonForRegistrantProfileRealNameVerificationResponse() (response *QueryFailReasonForRegistrantProfileRealNameVerificationResponse) { + response = &QueryFailReasonForRegistrantProfileRealNameVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_failing_reason_list_for_qualification.go b/services/domain/query_failing_reason_list_for_qualification.go new file mode 100644 index 0000000000..a67cc4e7aa --- /dev/null +++ b/services/domain/query_failing_reason_list_for_qualification.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryFailingReasonListForQualification invokes the domain.QueryFailingReasonListForQualification API synchronously +func (client *Client) QueryFailingReasonListForQualification(request *QueryFailingReasonListForQualificationRequest) (response *QueryFailingReasonListForQualificationResponse, err error) { + response = CreateQueryFailingReasonListForQualificationResponse() + err = client.DoAction(request, response) + return +} + +// QueryFailingReasonListForQualificationWithChan invokes the domain.QueryFailingReasonListForQualification API asynchronously +func (client *Client) QueryFailingReasonListForQualificationWithChan(request *QueryFailingReasonListForQualificationRequest) (<-chan *QueryFailingReasonListForQualificationResponse, <-chan error) { + responseChan := make(chan *QueryFailingReasonListForQualificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryFailingReasonListForQualification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryFailingReasonListForQualificationWithCallback invokes the domain.QueryFailingReasonListForQualification API asynchronously +func (client *Client) QueryFailingReasonListForQualificationWithCallback(request *QueryFailingReasonListForQualificationRequest, callback func(response *QueryFailingReasonListForQualificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryFailingReasonListForQualificationResponse + var err error + defer close(result) + response, err = client.QueryFailingReasonListForQualification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryFailingReasonListForQualificationRequest is the request struct for api QueryFailingReasonListForQualification +type QueryFailingReasonListForQualificationRequest struct { + *requests.RpcRequest + QualificationType string `position:"Query" name:"QualificationType"` + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Limit requests.Integer `position:"Query" name:"Limit"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryFailingReasonListForQualificationResponse is the response struct for api QueryFailingReasonListForQualification +type QueryFailingReasonListForQualificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data []FailRecord `json:"Data" xml:"Data"` +} + +// CreateQueryFailingReasonListForQualificationRequest creates a request to invoke QueryFailingReasonListForQualification API +func CreateQueryFailingReasonListForQualificationRequest() (request *QueryFailingReasonListForQualificationRequest) { + request = &QueryFailingReasonListForQualificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryFailingReasonListForQualification", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryFailingReasonListForQualificationResponse creates a response to parse from QueryFailingReasonListForQualification response +func CreateQueryFailingReasonListForQualificationResponse() (response *QueryFailingReasonListForQualificationResponse) { + response = &QueryFailingReasonListForQualificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_intl_fixed_price_order_list.go b/services/domain/query_intl_fixed_price_order_list.go new file mode 100644 index 0000000000..cd1da7578f --- /dev/null +++ b/services/domain/query_intl_fixed_price_order_list.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryIntlFixedPriceOrderList invokes the domain.QueryIntlFixedPriceOrderList API synchronously +func (client *Client) QueryIntlFixedPriceOrderList(request *QueryIntlFixedPriceOrderListRequest) (response *QueryIntlFixedPriceOrderListResponse, err error) { + response = CreateQueryIntlFixedPriceOrderListResponse() + err = client.DoAction(request, response) + return +} + +// QueryIntlFixedPriceOrderListWithChan invokes the domain.QueryIntlFixedPriceOrderList API asynchronously +func (client *Client) QueryIntlFixedPriceOrderListWithChan(request *QueryIntlFixedPriceOrderListRequest) (<-chan *QueryIntlFixedPriceOrderListResponse, <-chan error) { + responseChan := make(chan *QueryIntlFixedPriceOrderListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryIntlFixedPriceOrderList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryIntlFixedPriceOrderListWithCallback invokes the domain.QueryIntlFixedPriceOrderList API asynchronously +func (client *Client) QueryIntlFixedPriceOrderListWithCallback(request *QueryIntlFixedPriceOrderListRequest, callback func(response *QueryIntlFixedPriceOrderListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryIntlFixedPriceOrderListResponse + var err error + defer close(result) + response, err = client.QueryIntlFixedPriceOrderList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryIntlFixedPriceOrderListRequest is the request struct for api QueryIntlFixedPriceOrderList +type QueryIntlFixedPriceOrderListRequest struct { + *requests.RpcRequest + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + BizId string `position:"Query" name:"BizId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Status requests.Integer `position:"Query" name:"Status"` +} + +// QueryIntlFixedPriceOrderListResponse is the response struct for api QueryIntlFixedPriceOrderList +type QueryIntlFixedPriceOrderListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Module ModuleInQueryIntlFixedPriceOrderList `json:"Module" xml:"Module"` +} + +// CreateQueryIntlFixedPriceOrderListRequest creates a request to invoke QueryIntlFixedPriceOrderList API +func CreateQueryIntlFixedPriceOrderListRequest() (request *QueryIntlFixedPriceOrderListRequest) { + request = &QueryIntlFixedPriceOrderListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryIntlFixedPriceOrderList", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryIntlFixedPriceOrderListResponse creates a response to parse from QueryIntlFixedPriceOrderList response +func CreateQueryIntlFixedPriceOrderListResponse() (response *QueryIntlFixedPriceOrderListResponse) { + response = &QueryIntlFixedPriceOrderListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_local_ens_association.go b/services/domain/query_local_ens_association.go new file mode 100644 index 0000000000..dd362d22fb --- /dev/null +++ b/services/domain/query_local_ens_association.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryLocalEnsAssociation invokes the domain.QueryLocalEnsAssociation API synchronously +func (client *Client) QueryLocalEnsAssociation(request *QueryLocalEnsAssociationRequest) (response *QueryLocalEnsAssociationResponse, err error) { + response = CreateQueryLocalEnsAssociationResponse() + err = client.DoAction(request, response) + return +} + +// QueryLocalEnsAssociationWithChan invokes the domain.QueryLocalEnsAssociation API asynchronously +func (client *Client) QueryLocalEnsAssociationWithChan(request *QueryLocalEnsAssociationRequest) (<-chan *QueryLocalEnsAssociationResponse, <-chan error) { + responseChan := make(chan *QueryLocalEnsAssociationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryLocalEnsAssociation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryLocalEnsAssociationWithCallback invokes the domain.QueryLocalEnsAssociation API asynchronously +func (client *Client) QueryLocalEnsAssociationWithCallback(request *QueryLocalEnsAssociationRequest, callback func(response *QueryLocalEnsAssociationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryLocalEnsAssociationResponse + var err error + defer close(result) + response, err = client.QueryLocalEnsAssociation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryLocalEnsAssociationRequest is the request struct for api QueryLocalEnsAssociation +type QueryLocalEnsAssociationRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryLocalEnsAssociationResponse is the response struct for api QueryLocalEnsAssociation +type QueryLocalEnsAssociationResponse struct { + *responses.BaseResponse + Address string `json:"Address" xml:"Address"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateQueryLocalEnsAssociationRequest creates a request to invoke QueryLocalEnsAssociation API +func CreateQueryLocalEnsAssociationRequest() (request *QueryLocalEnsAssociationRequest) { + request = &QueryLocalEnsAssociationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryLocalEnsAssociation", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryLocalEnsAssociationResponse creates a response to parse from QueryLocalEnsAssociation response +func CreateQueryLocalEnsAssociationResponse() (response *QueryLocalEnsAssociationResponse) { + response = &QueryLocalEnsAssociationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_operation_audit_info_detail.go b/services/domain/query_operation_audit_info_detail.go new file mode 100644 index 0000000000..4c441ccd44 --- /dev/null +++ b/services/domain/query_operation_audit_info_detail.go @@ -0,0 +1,109 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryOperationAuditInfoDetail invokes the domain.QueryOperationAuditInfoDetail API synchronously +func (client *Client) QueryOperationAuditInfoDetail(request *QueryOperationAuditInfoDetailRequest) (response *QueryOperationAuditInfoDetailResponse, err error) { + response = CreateQueryOperationAuditInfoDetailResponse() + err = client.DoAction(request, response) + return +} + +// QueryOperationAuditInfoDetailWithChan invokes the domain.QueryOperationAuditInfoDetail API asynchronously +func (client *Client) QueryOperationAuditInfoDetailWithChan(request *QueryOperationAuditInfoDetailRequest) (<-chan *QueryOperationAuditInfoDetailResponse, <-chan error) { + responseChan := make(chan *QueryOperationAuditInfoDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryOperationAuditInfoDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryOperationAuditInfoDetailWithCallback invokes the domain.QueryOperationAuditInfoDetail API asynchronously +func (client *Client) QueryOperationAuditInfoDetailWithCallback(request *QueryOperationAuditInfoDetailRequest, callback func(response *QueryOperationAuditInfoDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryOperationAuditInfoDetailResponse + var err error + defer close(result) + response, err = client.QueryOperationAuditInfoDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryOperationAuditInfoDetailRequest is the request struct for api QueryOperationAuditInfoDetail +type QueryOperationAuditInfoDetailRequest struct { + *requests.RpcRequest + AuditRecordId requests.Integer `position:"Query" name:"AuditRecordId"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryOperationAuditInfoDetailResponse is the response struct for api QueryOperationAuditInfoDetail +type QueryOperationAuditInfoDetailResponse struct { + *responses.BaseResponse + AuditInfo string `json:"AuditInfo" xml:"AuditInfo"` + AuditStatus int `json:"AuditStatus" xml:"AuditStatus"` + RequestId string `json:"RequestId" xml:"RequestId"` + BusinessName string `json:"BusinessName" xml:"BusinessName"` + AuditType int `json:"AuditType" xml:"AuditType"` + DomainName string `json:"DomainName" xml:"DomainName"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + UpdateTime int64 `json:"UpdateTime" xml:"UpdateTime"` + Id string `json:"Id" xml:"Id"` + Remark string `json:"Remark" xml:"Remark"` +} + +// CreateQueryOperationAuditInfoDetailRequest creates a request to invoke QueryOperationAuditInfoDetail API +func CreateQueryOperationAuditInfoDetailRequest() (request *QueryOperationAuditInfoDetailRequest) { + request = &QueryOperationAuditInfoDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryOperationAuditInfoDetail", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryOperationAuditInfoDetailResponse creates a response to parse from QueryOperationAuditInfoDetail response +func CreateQueryOperationAuditInfoDetailResponse() (response *QueryOperationAuditInfoDetailResponse) { + response = &QueryOperationAuditInfoDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_operation_audit_info_list.go b/services/domain/query_operation_audit_info_list.go new file mode 100644 index 0000000000..c3bd4256ee --- /dev/null +++ b/services/domain/query_operation_audit_info_list.go @@ -0,0 +1,111 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryOperationAuditInfoList invokes the domain.QueryOperationAuditInfoList API synchronously +func (client *Client) QueryOperationAuditInfoList(request *QueryOperationAuditInfoListRequest) (response *QueryOperationAuditInfoListResponse, err error) { + response = CreateQueryOperationAuditInfoListResponse() + err = client.DoAction(request, response) + return +} + +// QueryOperationAuditInfoListWithChan invokes the domain.QueryOperationAuditInfoList API asynchronously +func (client *Client) QueryOperationAuditInfoListWithChan(request *QueryOperationAuditInfoListRequest) (<-chan *QueryOperationAuditInfoListResponse, <-chan error) { + responseChan := make(chan *QueryOperationAuditInfoListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryOperationAuditInfoList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryOperationAuditInfoListWithCallback invokes the domain.QueryOperationAuditInfoList API asynchronously +func (client *Client) QueryOperationAuditInfoListWithCallback(request *QueryOperationAuditInfoListRequest, callback func(response *QueryOperationAuditInfoListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryOperationAuditInfoListResponse + var err error + defer close(result) + response, err = client.QueryOperationAuditInfoList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryOperationAuditInfoListRequest is the request struct for api QueryOperationAuditInfoList +type QueryOperationAuditInfoListRequest struct { + *requests.RpcRequest + AuditStatus requests.Integer `position:"Query" name:"AuditStatus"` + DomainName string `position:"Query" name:"DomainName"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + AuditType requests.Integer `position:"Query" name:"AuditType"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryOperationAuditInfoListResponse is the response struct for api QueryOperationAuditInfoList +type QueryOperationAuditInfoListResponse struct { + *responses.BaseResponse + PrePage bool `json:"PrePage" xml:"PrePage"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data []OperationAuditRecord `json:"Data" xml:"Data"` +} + +// CreateQueryOperationAuditInfoListRequest creates a request to invoke QueryOperationAuditInfoList API +func CreateQueryOperationAuditInfoListRequest() (request *QueryOperationAuditInfoListRequest) { + request = &QueryOperationAuditInfoListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryOperationAuditInfoList", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryOperationAuditInfoListResponse creates a response to parse from QueryOperationAuditInfoList response +func CreateQueryOperationAuditInfoListResponse() (response *QueryOperationAuditInfoListResponse) { + response = &QueryOperationAuditInfoListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_purchased_domains.go b/services/domain/query_purchased_domains.go deleted file mode 100644 index 89bc0997fb..0000000000 --- a/services/domain/query_purchased_domains.go +++ /dev/null @@ -1,112 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// QueryPurchasedDomains invokes the domain.QueryPurchasedDomains API synchronously -func (client *Client) QueryPurchasedDomains(request *QueryPurchasedDomainsRequest) (response *QueryPurchasedDomainsResponse, err error) { - response = CreateQueryPurchasedDomainsResponse() - err = client.DoAction(request, response) - return -} - -// QueryPurchasedDomainsWithChan invokes the domain.QueryPurchasedDomains API asynchronously -func (client *Client) QueryPurchasedDomainsWithChan(request *QueryPurchasedDomainsRequest) (<-chan *QueryPurchasedDomainsResponse, <-chan error) { - responseChan := make(chan *QueryPurchasedDomainsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.QueryPurchasedDomains(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// QueryPurchasedDomainsWithCallback invokes the domain.QueryPurchasedDomains API asynchronously -func (client *Client) QueryPurchasedDomainsWithCallback(request *QueryPurchasedDomainsRequest, callback func(response *QueryPurchasedDomainsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *QueryPurchasedDomainsResponse - var err error - defer close(result) - response, err = client.QueryPurchasedDomains(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// QueryPurchasedDomainsRequest is the request struct for api QueryPurchasedDomains -type QueryPurchasedDomainsRequest struct { - *requests.RpcRequest - UpdateTimeOrder requests.Boolean `position:"Body" name:"UpdateTimeOrder"` - DomainName string `position:"Body" name:"DomainName"` - CurrentPage requests.Integer `position:"Body" name:"CurrentPage"` - ProductType requests.Integer `position:"Body" name:"ProductType"` - OperationStatus requests.Integer `position:"Body" name:"OperationStatus"` - StartOperationTime string `position:"Body" name:"StartOperationTime"` - PageSize requests.Integer `position:"Body" name:"PageSize"` - EndOperationTime string `position:"Body" name:"EndOperationTime"` - OpTimeOrder requests.Boolean `position:"Body" name:"OpTimeOrder"` -} - -// QueryPurchasedDomainsResponse is the response struct for api QueryPurchasedDomains -type QueryPurchasedDomainsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` - CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` - PageSize int `json:"PageSize" xml:"PageSize"` - TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` - Data []PurchasedDomains `json:"Data" xml:"Data"` -} - -// CreateQueryPurchasedDomainsRequest creates a request to invoke QueryPurchasedDomains API -func CreateQueryPurchasedDomainsRequest() (request *QueryPurchasedDomainsRequest) { - request = &QueryPurchasedDomainsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "QueryPurchasedDomains", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateQueryPurchasedDomainsResponse creates a response to parse from QueryPurchasedDomains response -func CreateQueryPurchasedDomainsResponse() (response *QueryPurchasedDomainsResponse) { - response = &QueryPurchasedDomainsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/query_qualification_detail.go b/services/domain/query_qualification_detail.go new file mode 100644 index 0000000000..e179d8855c --- /dev/null +++ b/services/domain/query_qualification_detail.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryQualificationDetail invokes the domain.QueryQualificationDetail API synchronously +func (client *Client) QueryQualificationDetail(request *QueryQualificationDetailRequest) (response *QueryQualificationDetailResponse, err error) { + response = CreateQueryQualificationDetailResponse() + err = client.DoAction(request, response) + return +} + +// QueryQualificationDetailWithChan invokes the domain.QueryQualificationDetail API asynchronously +func (client *Client) QueryQualificationDetailWithChan(request *QueryQualificationDetailRequest) (<-chan *QueryQualificationDetailResponse, <-chan error) { + responseChan := make(chan *QueryQualificationDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryQualificationDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryQualificationDetailWithCallback invokes the domain.QueryQualificationDetail API asynchronously +func (client *Client) QueryQualificationDetailWithCallback(request *QueryQualificationDetailRequest, callback func(response *QueryQualificationDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryQualificationDetailResponse + var err error + defer close(result) + response, err = client.QueryQualificationDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryQualificationDetailRequest is the request struct for api QueryQualificationDetail +type QueryQualificationDetailRequest struct { + *requests.RpcRequest + QualificationType string `position:"Query" name:"QualificationType"` + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryQualificationDetailResponse is the response struct for api QueryQualificationDetail +type QueryQualificationDetailResponse struct { + *responses.BaseResponse + AuditStatus int `json:"AuditStatus" xml:"AuditStatus"` + RequestId string `json:"RequestId" xml:"RequestId"` + TrackId string `json:"TrackId" xml:"TrackId"` + Credentials Credentials `json:"Credentials" xml:"Credentials"` +} + +// CreateQueryQualificationDetailRequest creates a request to invoke QueryQualificationDetail API +func CreateQueryQualificationDetailRequest() (request *QueryQualificationDetailRequest) { + request = &QueryQualificationDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryQualificationDetail", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryQualificationDetailResponse creates a response to parse from QueryQualificationDetail response +func CreateQueryQualificationDetailResponse() (response *QueryQualificationDetailResponse) { + response = &QueryQualificationDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_registrant_profile_real_name_verification_info.go b/services/domain/query_registrant_profile_real_name_verification_info.go new file mode 100644 index 0000000000..da06330abf --- /dev/null +++ b/services/domain/query_registrant_profile_real_name_verification_info.go @@ -0,0 +1,109 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryRegistrantProfileRealNameVerificationInfo invokes the domain.QueryRegistrantProfileRealNameVerificationInfo API synchronously +func (client *Client) QueryRegistrantProfileRealNameVerificationInfo(request *QueryRegistrantProfileRealNameVerificationInfoRequest) (response *QueryRegistrantProfileRealNameVerificationInfoResponse, err error) { + response = CreateQueryRegistrantProfileRealNameVerificationInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryRegistrantProfileRealNameVerificationInfoWithChan invokes the domain.QueryRegistrantProfileRealNameVerificationInfo API asynchronously +func (client *Client) QueryRegistrantProfileRealNameVerificationInfoWithChan(request *QueryRegistrantProfileRealNameVerificationInfoRequest) (<-chan *QueryRegistrantProfileRealNameVerificationInfoResponse, <-chan error) { + responseChan := make(chan *QueryRegistrantProfileRealNameVerificationInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryRegistrantProfileRealNameVerificationInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryRegistrantProfileRealNameVerificationInfoWithCallback invokes the domain.QueryRegistrantProfileRealNameVerificationInfo API asynchronously +func (client *Client) QueryRegistrantProfileRealNameVerificationInfoWithCallback(request *QueryRegistrantProfileRealNameVerificationInfoRequest, callback func(response *QueryRegistrantProfileRealNameVerificationInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryRegistrantProfileRealNameVerificationInfoResponse + var err error + defer close(result) + response, err = client.QueryRegistrantProfileRealNameVerificationInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryRegistrantProfileRealNameVerificationInfoRequest is the request struct for api QueryRegistrantProfileRealNameVerificationInfo +type QueryRegistrantProfileRealNameVerificationInfoRequest struct { + *requests.RpcRequest + FetchImage requests.Boolean `position:"Query" name:"FetchImage"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryRegistrantProfileRealNameVerificationInfoResponse is the response struct for api QueryRegistrantProfileRealNameVerificationInfo +type QueryRegistrantProfileRealNameVerificationInfoResponse struct { + *responses.BaseResponse + IdentityCredentialType string `json:"IdentityCredentialType" xml:"IdentityCredentialType"` + RequestId string `json:"RequestId" xml:"RequestId"` + ModificationDate string `json:"ModificationDate" xml:"ModificationDate"` + IdentityCredential string `json:"IdentityCredential" xml:"IdentityCredential"` + SubmissionDate string `json:"SubmissionDate" xml:"SubmissionDate"` + IdentityCredentialNo string `json:"IdentityCredentialNo" xml:"IdentityCredentialNo"` + RegistrantProfileId int64 `json:"RegistrantProfileId" xml:"RegistrantProfileId"` + IdentityCredentialUrl string `json:"IdentityCredentialUrl" xml:"IdentityCredentialUrl"` +} + +// CreateQueryRegistrantProfileRealNameVerificationInfoRequest creates a request to invoke QueryRegistrantProfileRealNameVerificationInfo API +func CreateQueryRegistrantProfileRealNameVerificationInfoRequest() (request *QueryRegistrantProfileRealNameVerificationInfoRequest) { + request = &QueryRegistrantProfileRealNameVerificationInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryRegistrantProfileRealNameVerificationInfo", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryRegistrantProfileRealNameVerificationInfoResponse creates a response to parse from QueryRegistrantProfileRealNameVerificationInfo response +func CreateQueryRegistrantProfileRealNameVerificationInfoResponse() (response *QueryRegistrantProfileRealNameVerificationInfoResponse) { + response = &QueryRegistrantProfileRealNameVerificationInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_registrant_profiles.go b/services/domain/query_registrant_profiles.go new file mode 100644 index 0000000000..bdeb70791f --- /dev/null +++ b/services/domain/query_registrant_profiles.go @@ -0,0 +1,118 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryRegistrantProfiles invokes the domain.QueryRegistrantProfiles API synchronously +func (client *Client) QueryRegistrantProfiles(request *QueryRegistrantProfilesRequest) (response *QueryRegistrantProfilesResponse, err error) { + response = CreateQueryRegistrantProfilesResponse() + err = client.DoAction(request, response) + return +} + +// QueryRegistrantProfilesWithChan invokes the domain.QueryRegistrantProfiles API asynchronously +func (client *Client) QueryRegistrantProfilesWithChan(request *QueryRegistrantProfilesRequest) (<-chan *QueryRegistrantProfilesResponse, <-chan error) { + responseChan := make(chan *QueryRegistrantProfilesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryRegistrantProfiles(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryRegistrantProfilesWithCallback invokes the domain.QueryRegistrantProfiles API asynchronously +func (client *Client) QueryRegistrantProfilesWithCallback(request *QueryRegistrantProfilesRequest, callback func(response *QueryRegistrantProfilesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryRegistrantProfilesResponse + var err error + defer close(result) + response, err = client.QueryRegistrantProfiles(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryRegistrantProfilesRequest is the request struct for api QueryRegistrantProfiles +type QueryRegistrantProfilesRequest struct { + *requests.RpcRequest + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + Remark string `position:"Query" name:"Remark"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + RealNameStatus string `position:"Query" name:"RealNameStatus"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + ZhRegistrantOrganization string `position:"Query" name:"ZhRegistrantOrganization"` + RegistrantType string `position:"Query" name:"RegistrantType"` + RegistrantProfileType string `position:"Query" name:"RegistrantProfileType"` + DefaultRegistrantProfile requests.Boolean `position:"Query" name:"DefaultRegistrantProfile"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// QueryRegistrantProfilesResponse is the response struct for api QueryRegistrantProfiles +type QueryRegistrantProfilesResponse struct { + *responses.BaseResponse + NextPage bool `json:"NextPage" xml:"NextPage"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + PrePage bool `json:"PrePage" xml:"PrePage"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + PageSize int `json:"PageSize" xml:"PageSize"` + RegistrantProfiles RegistrantProfiles `json:"RegistrantProfiles" xml:"RegistrantProfiles"` +} + +// CreateQueryRegistrantProfilesRequest creates a request to invoke QueryRegistrantProfiles API +func CreateQueryRegistrantProfilesRequest() (request *QueryRegistrantProfilesRequest) { + request = &QueryRegistrantProfilesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryRegistrantProfiles", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryRegistrantProfilesResponse creates a response to parse from QueryRegistrantProfiles response +func CreateQueryRegistrantProfilesResponse() (response *QueryRegistrantProfilesResponse) { + response = &QueryRegistrantProfilesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_server_lock.go b/services/domain/query_server_lock.go new file mode 100644 index 0000000000..9e23b17768 --- /dev/null +++ b/services/domain/query_server_lock.go @@ -0,0 +1,111 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryServerLock invokes the domain.QueryServerLock API synchronously +func (client *Client) QueryServerLock(request *QueryServerLockRequest) (response *QueryServerLockResponse, err error) { + response = CreateQueryServerLockResponse() + err = client.DoAction(request, response) + return +} + +// QueryServerLockWithChan invokes the domain.QueryServerLock API asynchronously +func (client *Client) QueryServerLockWithChan(request *QueryServerLockRequest) (<-chan *QueryServerLockResponse, <-chan error) { + responseChan := make(chan *QueryServerLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryServerLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryServerLockWithCallback invokes the domain.QueryServerLock API asynchronously +func (client *Client) QueryServerLockWithCallback(request *QueryServerLockRequest, callback func(response *QueryServerLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryServerLockResponse + var err error + defer close(result) + response, err = client.QueryServerLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryServerLockRequest is the request struct for api QueryServerLock +type QueryServerLockRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryServerLockResponse is the response struct for api QueryServerLock +type QueryServerLockResponse struct { + *responses.BaseResponse + StartDate string `json:"StartDate" xml:"StartDate"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + RequestId string `json:"RequestId" xml:"RequestId"` + ExpireDate string `json:"ExpireDate" xml:"ExpireDate"` + DomainName string `json:"DomainName" xml:"DomainName"` + UserId string `json:"UserId" xml:"UserId"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + DomainInstanceId string `json:"DomainInstanceId" xml:"DomainInstanceId"` + LockInstanceId string `json:"LockInstanceId" xml:"LockInstanceId"` + ServerLockStatus int `json:"ServerLockStatus" xml:"ServerLockStatus"` + LockProductId string `json:"LockProductId" xml:"LockProductId"` +} + +// CreateQueryServerLockRequest creates a request to invoke QueryServerLock API +func CreateQueryServerLockRequest() (request *QueryServerLockRequest) { + request = &QueryServerLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryServerLock", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryServerLockResponse creates a response to parse from QueryServerLock response +func CreateQueryServerLockResponse() (response *QueryServerLockResponse) { + response = &QueryServerLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_task_detail_history.go b/services/domain/query_task_detail_history.go new file mode 100644 index 0000000000..8045be4edd --- /dev/null +++ b/services/domain/query_task_detail_history.go @@ -0,0 +1,111 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskDetailHistory invokes the domain.QueryTaskDetailHistory API synchronously +func (client *Client) QueryTaskDetailHistory(request *QueryTaskDetailHistoryRequest) (response *QueryTaskDetailHistoryResponse, err error) { + response = CreateQueryTaskDetailHistoryResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskDetailHistoryWithChan invokes the domain.QueryTaskDetailHistory API asynchronously +func (client *Client) QueryTaskDetailHistoryWithChan(request *QueryTaskDetailHistoryRequest) (<-chan *QueryTaskDetailHistoryResponse, <-chan error) { + responseChan := make(chan *QueryTaskDetailHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskDetailHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskDetailHistoryWithCallback invokes the domain.QueryTaskDetailHistory API asynchronously +func (client *Client) QueryTaskDetailHistoryWithCallback(request *QueryTaskDetailHistoryRequest, callback func(response *QueryTaskDetailHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskDetailHistoryResponse + var err error + defer close(result) + response, err = client.QueryTaskDetailHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskDetailHistoryRequest is the request struct for api QueryTaskDetailHistory +type QueryTaskDetailHistoryRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + TaskStatus requests.Integer `position:"Query" name:"TaskStatus"` + UserClientIp string `position:"Query" name:"UserClientIp"` + TaskNo string `position:"Query" name:"TaskNo"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + TaskDetailNoCursor string `position:"Query" name:"TaskDetailNoCursor"` + Lang string `position:"Query" name:"Lang"` + DomainNameCursor string `position:"Query" name:"DomainNameCursor"` +} + +// QueryTaskDetailHistoryResponse is the response struct for api QueryTaskDetailHistory +type QueryTaskDetailHistoryResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + CurrentPageCursor CurrentPageCursor `json:"CurrentPageCursor" xml:"CurrentPageCursor"` + PrePageCursor PrePageCursor `json:"PrePageCursor" xml:"PrePageCursor"` + NextPageCursor NextPageCursor `json:"NextPageCursor" xml:"NextPageCursor"` + Objects []TaskDetailHistory `json:"Objects" xml:"Objects"` +} + +// CreateQueryTaskDetailHistoryRequest creates a request to invoke QueryTaskDetailHistory API +func CreateQueryTaskDetailHistoryRequest() (request *QueryTaskDetailHistoryRequest) { + request = &QueryTaskDetailHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTaskDetailHistory", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryTaskDetailHistoryResponse creates a response to parse from QueryTaskDetailHistory response +func CreateQueryTaskDetailHistoryResponse() (response *QueryTaskDetailHistoryResponse) { + response = &QueryTaskDetailHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_task_detail_list.go b/services/domain/query_task_detail_list.go new file mode 100644 index 0000000000..6c3a27d62c --- /dev/null +++ b/services/domain/query_task_detail_list.go @@ -0,0 +1,113 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskDetailList invokes the domain.QueryTaskDetailList API synchronously +func (client *Client) QueryTaskDetailList(request *QueryTaskDetailListRequest) (response *QueryTaskDetailListResponse, err error) { + response = CreateQueryTaskDetailListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskDetailListWithChan invokes the domain.QueryTaskDetailList API asynchronously +func (client *Client) QueryTaskDetailListWithChan(request *QueryTaskDetailListRequest) (<-chan *QueryTaskDetailListResponse, <-chan error) { + responseChan := make(chan *QueryTaskDetailListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskDetailList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskDetailListWithCallback invokes the domain.QueryTaskDetailList API asynchronously +func (client *Client) QueryTaskDetailListWithCallback(request *QueryTaskDetailListRequest, callback func(response *QueryTaskDetailListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskDetailListResponse + var err error + defer close(result) + response, err = client.QueryTaskDetailList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskDetailListRequest is the request struct for api QueryTaskDetailList +type QueryTaskDetailListRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + TaskStatus requests.Integer `position:"Query" name:"TaskStatus"` + InstanceId string `position:"Query" name:"InstanceId"` + TaskNo string `position:"Query" name:"TaskNo"` + UserClientIp string `position:"Query" name:"UserClientIp"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryTaskDetailListResponse is the response struct for api QueryTaskDetailList +type QueryTaskDetailListResponse struct { + *responses.BaseResponse + PrePage bool `json:"PrePage" xml:"PrePage"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryTaskDetailList `json:"Data" xml:"Data"` +} + +// CreateQueryTaskDetailListRequest creates a request to invoke QueryTaskDetailList API +func CreateQueryTaskDetailListRequest() (request *QueryTaskDetailListRequest) { + request = &QueryTaskDetailListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTaskDetailList", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryTaskDetailListResponse creates a response to parse from QueryTaskDetailList response +func CreateQueryTaskDetailListResponse() (response *QueryTaskDetailListResponse) { + response = &QueryTaskDetailListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_task_info_history.go b/services/domain/query_task_info_history.go new file mode 100644 index 0000000000..e376a0bbbf --- /dev/null +++ b/services/domain/query_task_info_history.go @@ -0,0 +1,110 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskInfoHistory invokes the domain.QueryTaskInfoHistory API synchronously +func (client *Client) QueryTaskInfoHistory(request *QueryTaskInfoHistoryRequest) (response *QueryTaskInfoHistoryResponse, err error) { + response = CreateQueryTaskInfoHistoryResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskInfoHistoryWithChan invokes the domain.QueryTaskInfoHistory API asynchronously +func (client *Client) QueryTaskInfoHistoryWithChan(request *QueryTaskInfoHistoryRequest) (<-chan *QueryTaskInfoHistoryResponse, <-chan error) { + responseChan := make(chan *QueryTaskInfoHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskInfoHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskInfoHistoryWithCallback invokes the domain.QueryTaskInfoHistory API asynchronously +func (client *Client) QueryTaskInfoHistoryWithCallback(request *QueryTaskInfoHistoryRequest, callback func(response *QueryTaskInfoHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskInfoHistoryResponse + var err error + defer close(result) + response, err = client.QueryTaskInfoHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskInfoHistoryRequest is the request struct for api QueryTaskInfoHistory +type QueryTaskInfoHistoryRequest struct { + *requests.RpcRequest + EndCreateTime requests.Integer `position:"Query" name:"EndCreateTime"` + BeginCreateTime requests.Integer `position:"Query" name:"BeginCreateTime"` + TaskNoCursor string `position:"Query" name:"TaskNoCursor"` + UserClientIp string `position:"Query" name:"UserClientIp"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` + CreateTimeCursor requests.Integer `position:"Query" name:"CreateTimeCursor"` +} + +// QueryTaskInfoHistoryResponse is the response struct for api QueryTaskInfoHistory +type QueryTaskInfoHistoryResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + CurrentPageCursor CurrentPageCursor `json:"CurrentPageCursor" xml:"CurrentPageCursor"` + PrePageCursor PrePageCursor `json:"PrePageCursor" xml:"PrePageCursor"` + NextPageCursor NextPageCursor `json:"NextPageCursor" xml:"NextPageCursor"` + Objects []TaskInfoHistory `json:"Objects" xml:"Objects"` +} + +// CreateQueryTaskInfoHistoryRequest creates a request to invoke QueryTaskInfoHistory API +func CreateQueryTaskInfoHistoryRequest() (request *QueryTaskInfoHistoryRequest) { + request = &QueryTaskInfoHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTaskInfoHistory", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryTaskInfoHistoryResponse creates a response to parse from QueryTaskInfoHistory response +func CreateQueryTaskInfoHistoryResponse() (response *QueryTaskInfoHistoryResponse) { + response = &QueryTaskInfoHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_task_list.go b/services/domain/query_task_list.go new file mode 100644 index 0000000000..6a9a6d3a40 --- /dev/null +++ b/services/domain/query_task_list.go @@ -0,0 +1,111 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTaskList invokes the domain.QueryTaskList API synchronously +func (client *Client) QueryTaskList(request *QueryTaskListRequest) (response *QueryTaskListResponse, err error) { + response = CreateQueryTaskListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTaskListWithChan invokes the domain.QueryTaskList API asynchronously +func (client *Client) QueryTaskListWithChan(request *QueryTaskListRequest) (<-chan *QueryTaskListResponse, <-chan error) { + responseChan := make(chan *QueryTaskListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTaskList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTaskListWithCallback invokes the domain.QueryTaskList API asynchronously +func (client *Client) QueryTaskListWithCallback(request *QueryTaskListRequest, callback func(response *QueryTaskListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTaskListResponse + var err error + defer close(result) + response, err = client.QueryTaskList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTaskListRequest is the request struct for api QueryTaskList +type QueryTaskListRequest struct { + *requests.RpcRequest + EndCreateTime requests.Integer `position:"Query" name:"EndCreateTime"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + BeginCreateTime requests.Integer `position:"Query" name:"BeginCreateTime"` + UserClientIp string `position:"Query" name:"UserClientIp"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryTaskListResponse is the response struct for api QueryTaskList +type QueryTaskListResponse struct { + *responses.BaseResponse + PrePage bool `json:"PrePage" xml:"PrePage"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryTaskList `json:"Data" xml:"Data"` +} + +// CreateQueryTaskListRequest creates a request to invoke QueryTaskList API +func CreateQueryTaskListRequest() (request *QueryTaskListRequest) { + request = &QueryTaskListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTaskList", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryTaskListResponse creates a response to parse from QueryTaskList response +func CreateQueryTaskListResponse() (response *QueryTaskListResponse) { + response = &QueryTaskListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_transfer_in_by_instance_id.go b/services/domain/query_transfer_in_by_instance_id.go new file mode 100644 index 0000000000..34df23185f --- /dev/null +++ b/services/domain/query_transfer_in_by_instance_id.go @@ -0,0 +1,122 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTransferInByInstanceId invokes the domain.QueryTransferInByInstanceId API synchronously +func (client *Client) QueryTransferInByInstanceId(request *QueryTransferInByInstanceIdRequest) (response *QueryTransferInByInstanceIdResponse, err error) { + response = CreateQueryTransferInByInstanceIdResponse() + err = client.DoAction(request, response) + return +} + +// QueryTransferInByInstanceIdWithChan invokes the domain.QueryTransferInByInstanceId API asynchronously +func (client *Client) QueryTransferInByInstanceIdWithChan(request *QueryTransferInByInstanceIdRequest) (<-chan *QueryTransferInByInstanceIdResponse, <-chan error) { + responseChan := make(chan *QueryTransferInByInstanceIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTransferInByInstanceId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTransferInByInstanceIdWithCallback invokes the domain.QueryTransferInByInstanceId API asynchronously +func (client *Client) QueryTransferInByInstanceIdWithCallback(request *QueryTransferInByInstanceIdRequest, callback func(response *QueryTransferInByInstanceIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTransferInByInstanceIdResponse + var err error + defer close(result) + response, err = client.QueryTransferInByInstanceId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTransferInByInstanceIdRequest is the request struct for api QueryTransferInByInstanceId +type QueryTransferInByInstanceIdRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryTransferInByInstanceIdResponse is the response struct for api QueryTransferInByInstanceId +type QueryTransferInByInstanceIdResponse struct { + *responses.BaseResponse + Status int `json:"Status" xml:"Status"` + TransferAuthorizationCodeSubmissionDate string `json:"TransferAuthorizationCodeSubmissionDate" xml:"TransferAuthorizationCodeSubmissionDate"` + Email string `json:"Email" xml:"Email"` + ProgressBarType int `json:"ProgressBarType" xml:"ProgressBarType"` + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DomainName string `json:"DomainName" xml:"DomainName"` + SubmissionDateLong int64 `json:"SubmissionDateLong" xml:"SubmissionDateLong"` + SubmissionDate string `json:"SubmissionDate" xml:"SubmissionDate"` + SimpleTransferInStatus string `json:"SimpleTransferInStatus" xml:"SimpleTransferInStatus"` + TransferAuthorizationCodeSubmissionDateLong int64 `json:"TransferAuthorizationCodeSubmissionDateLong" xml:"TransferAuthorizationCodeSubmissionDateLong"` + ExpirationDateLong int64 `json:"ExpirationDateLong" xml:"ExpirationDateLong"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + NeedMailCheck bool `json:"NeedMailCheck" xml:"NeedMailCheck"` + UserId string `json:"UserId" xml:"UserId"` + ModificationDate string `json:"ModificationDate" xml:"ModificationDate"` + ResultDateLong int64 `json:"ResultDateLong" xml:"ResultDateLong"` + ResultMsg string `json:"ResultMsg" xml:"ResultMsg"` + WhoisMailStatus bool `json:"WhoisMailStatus" xml:"WhoisMailStatus"` + ModificationDateLong int64 `json:"ModificationDateLong" xml:"ModificationDateLong"` + ResultCode string `json:"ResultCode" xml:"ResultCode"` + ResultDate string `json:"ResultDate" xml:"ResultDate"` +} + +// CreateQueryTransferInByInstanceIdRequest creates a request to invoke QueryTransferInByInstanceId API +func CreateQueryTransferInByInstanceIdRequest() (request *QueryTransferInByInstanceIdRequest) { + request = &QueryTransferInByInstanceIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTransferInByInstanceId", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryTransferInByInstanceIdResponse creates a response to parse from QueryTransferInByInstanceId response +func CreateQueryTransferInByInstanceIdResponse() (response *QueryTransferInByInstanceIdResponse) { + response = &QueryTransferInByInstanceIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_transfer_in_list.go b/services/domain/query_transfer_in_list.go new file mode 100644 index 0000000000..a84e420188 --- /dev/null +++ b/services/domain/query_transfer_in_list.go @@ -0,0 +1,113 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTransferInList invokes the domain.QueryTransferInList API synchronously +func (client *Client) QueryTransferInList(request *QueryTransferInListRequest) (response *QueryTransferInListResponse, err error) { + response = CreateQueryTransferInListResponse() + err = client.DoAction(request, response) + return +} + +// QueryTransferInListWithChan invokes the domain.QueryTransferInList API asynchronously +func (client *Client) QueryTransferInListWithChan(request *QueryTransferInListRequest) (<-chan *QueryTransferInListResponse, <-chan error) { + responseChan := make(chan *QueryTransferInListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTransferInList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTransferInListWithCallback invokes the domain.QueryTransferInList API asynchronously +func (client *Client) QueryTransferInListWithCallback(request *QueryTransferInListRequest, callback func(response *QueryTransferInListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTransferInListResponse + var err error + defer close(result) + response, err = client.QueryTransferInList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTransferInListRequest is the request struct for api QueryTransferInList +type QueryTransferInListRequest struct { + *requests.RpcRequest + SubmissionStartDate requests.Integer `position:"Query" name:"SubmissionStartDate"` + SubmissionEndDate requests.Integer `position:"Query" name:"SubmissionEndDate"` + DomainName string `position:"Query" name:"DomainName"` + PageNum requests.Integer `position:"Query" name:"PageNum"` + UserClientIp string `position:"Query" name:"UserClientIp"` + SimpleTransferInStatus string `position:"Query" name:"SimpleTransferInStatus"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryTransferInListResponse is the response struct for api QueryTransferInList +type QueryTransferInListResponse struct { + *responses.BaseResponse + PrePage bool `json:"PrePage" xml:"PrePage"` + CurrentPageNum int `json:"CurrentPageNum" xml:"CurrentPageNum"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalPageNum int `json:"TotalPageNum" xml:"TotalPageNum"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + NextPage bool `json:"NextPage" xml:"NextPage"` + Data DataInQueryTransferInList `json:"Data" xml:"Data"` +} + +// CreateQueryTransferInListRequest creates a request to invoke QueryTransferInList API +func CreateQueryTransferInListRequest() (request *QueryTransferInListRequest) { + request = &QueryTransferInListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTransferInList", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryTransferInListResponse creates a response to parse from QueryTransferInList response +func CreateQueryTransferInListResponse() (response *QueryTransferInListResponse) { + response = &QueryTransferInListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/query_transfer_out_info.go b/services/domain/query_transfer_out_info.go new file mode 100644 index 0000000000..81f2609af6 --- /dev/null +++ b/services/domain/query_transfer_out_info.go @@ -0,0 +1,108 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// QueryTransferOutInfo invokes the domain.QueryTransferOutInfo API synchronously +func (client *Client) QueryTransferOutInfo(request *QueryTransferOutInfoRequest) (response *QueryTransferOutInfoResponse, err error) { + response = CreateQueryTransferOutInfoResponse() + err = client.DoAction(request, response) + return +} + +// QueryTransferOutInfoWithChan invokes the domain.QueryTransferOutInfo API asynchronously +func (client *Client) QueryTransferOutInfoWithChan(request *QueryTransferOutInfoRequest) (<-chan *QueryTransferOutInfoResponse, <-chan error) { + responseChan := make(chan *QueryTransferOutInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryTransferOutInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryTransferOutInfoWithCallback invokes the domain.QueryTransferOutInfo API asynchronously +func (client *Client) QueryTransferOutInfoWithCallback(request *QueryTransferOutInfoRequest, callback func(response *QueryTransferOutInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryTransferOutInfoResponse + var err error + defer close(result) + response, err = client.QueryTransferOutInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryTransferOutInfoRequest is the request struct for api QueryTransferOutInfo +type QueryTransferOutInfoRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// QueryTransferOutInfoResponse is the response struct for api QueryTransferOutInfo +type QueryTransferOutInfoResponse struct { + *responses.BaseResponse + Status int `json:"Status" xml:"Status"` + Email string `json:"Email" xml:"Email"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + RequestId string `json:"RequestId" xml:"RequestId"` + ResultMsg string `json:"ResultMsg" xml:"ResultMsg"` + PendingRequestDate string `json:"PendingRequestDate" xml:"PendingRequestDate"` + ResultCode string `json:"ResultCode" xml:"ResultCode"` + TransferAuthorizationCodeSendDate string `json:"TransferAuthorizationCodeSendDate" xml:"TransferAuthorizationCodeSendDate"` +} + +// CreateQueryTransferOutInfoRequest creates a request to invoke QueryTransferOutInfo API +func CreateQueryTransferOutInfoRequest() (request *QueryTransferOutInfoRequest) { + request = &QueryTransferOutInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "QueryTransferOutInfo", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateQueryTransferOutInfoResponse creates a response to parse from QueryTransferOutInfo response +func CreateQueryTransferOutInfoResponse() (response *QueryTransferOutInfoResponse) { + response = &QueryTransferOutInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/record_demand.go b/services/domain/record_demand.go deleted file mode 100644 index f9fae35347..0000000000 --- a/services/domain/record_demand.go +++ /dev/null @@ -1,100 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RecordDemand invokes the domain.RecordDemand API synchronously -func (client *Client) RecordDemand(request *RecordDemandRequest) (response *RecordDemandResponse, err error) { - response = CreateRecordDemandResponse() - err = client.DoAction(request, response) - return -} - -// RecordDemandWithChan invokes the domain.RecordDemand API asynchronously -func (client *Client) RecordDemandWithChan(request *RecordDemandRequest) (<-chan *RecordDemandResponse, <-chan error) { - responseChan := make(chan *RecordDemandResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RecordDemand(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RecordDemandWithCallback invokes the domain.RecordDemand API asynchronously -func (client *Client) RecordDemandWithCallback(request *RecordDemandRequest, callback func(response *RecordDemandResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RecordDemandResponse - var err error - defer close(result) - response, err = client.RecordDemand(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RecordDemandRequest is the request struct for api RecordDemand -type RecordDemandRequest struct { - *requests.RpcRequest - Message string `position:"Query" name:"Message"` - BizId string `position:"Query" name:"BizId"` -} - -// RecordDemandResponse is the response struct for api RecordDemand -type RecordDemandResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRecordDemandRequest creates a request to invoke RecordDemand API -func CreateRecordDemandRequest() (request *RecordDemandRequest) { - request = &RecordDemandRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "RecordDemand", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateRecordDemandResponse creates a response to parse from RecordDemand response -func CreateRecordDemandResponse() (response *RecordDemandResponse) { - response = &RecordDemandResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/refuse_demand.go b/services/domain/refuse_demand.go deleted file mode 100644 index a6595040cc..0000000000 --- a/services/domain/refuse_demand.go +++ /dev/null @@ -1,100 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RefuseDemand invokes the domain.RefuseDemand API synchronously -func (client *Client) RefuseDemand(request *RefuseDemandRequest) (response *RefuseDemandResponse, err error) { - response = CreateRefuseDemandResponse() - err = client.DoAction(request, response) - return -} - -// RefuseDemandWithChan invokes the domain.RefuseDemand API asynchronously -func (client *Client) RefuseDemandWithChan(request *RefuseDemandRequest) (<-chan *RefuseDemandResponse, <-chan error) { - responseChan := make(chan *RefuseDemandResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RefuseDemand(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RefuseDemandWithCallback invokes the domain.RefuseDemand API asynchronously -func (client *Client) RefuseDemandWithCallback(request *RefuseDemandRequest, callback func(response *RefuseDemandResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RefuseDemandResponse - var err error - defer close(result) - response, err = client.RefuseDemand(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RefuseDemandRequest is the request struct for api RefuseDemand -type RefuseDemandRequest struct { - *requests.RpcRequest - Message string `position:"Query" name:"Message"` - BizId string `position:"Query" name:"BizId"` -} - -// RefuseDemandResponse is the response struct for api RefuseDemand -type RefuseDemandResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRefuseDemandRequest creates a request to invoke RefuseDemand API -func CreateRefuseDemandRequest() (request *RefuseDemandRequest) { - request = &RefuseDemandRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "RefuseDemand", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateRefuseDemandResponse creates a response to parse from RefuseDemand response -func CreateRefuseDemandResponse() (response *RefuseDemandResponse) { - response = &RefuseDemandResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/registrant_profile_real_name_verification.go b/services/domain/registrant_profile_real_name_verification.go new file mode 100644 index 0000000000..f5c2b89332 --- /dev/null +++ b/services/domain/registrant_profile_real_name_verification.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RegistrantProfileRealNameVerification invokes the domain.RegistrantProfileRealNameVerification API synchronously +func (client *Client) RegistrantProfileRealNameVerification(request *RegistrantProfileRealNameVerificationRequest) (response *RegistrantProfileRealNameVerificationResponse, err error) { + response = CreateRegistrantProfileRealNameVerificationResponse() + err = client.DoAction(request, response) + return +} + +// RegistrantProfileRealNameVerificationWithChan invokes the domain.RegistrantProfileRealNameVerification API asynchronously +func (client *Client) RegistrantProfileRealNameVerificationWithChan(request *RegistrantProfileRealNameVerificationRequest) (<-chan *RegistrantProfileRealNameVerificationResponse, <-chan error) { + responseChan := make(chan *RegistrantProfileRealNameVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RegistrantProfileRealNameVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RegistrantProfileRealNameVerificationWithCallback invokes the domain.RegistrantProfileRealNameVerification API asynchronously +func (client *Client) RegistrantProfileRealNameVerificationWithCallback(request *RegistrantProfileRealNameVerificationRequest, callback func(response *RegistrantProfileRealNameVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RegistrantProfileRealNameVerificationResponse + var err error + defer close(result) + response, err = client.RegistrantProfileRealNameVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RegistrantProfileRealNameVerificationRequest is the request struct for api RegistrantProfileRealNameVerification +type RegistrantProfileRealNameVerificationRequest struct { + *requests.RpcRequest + IdentityCredentialType string `position:"Query" name:"IdentityCredentialType"` + RegistrantProfileID requests.Integer `position:"Query" name:"RegistrantProfileID"` + IdentityCredential string `position:"Body" name:"IdentityCredential"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + IdentityCredentialNo string `position:"Query" name:"IdentityCredentialNo"` +} + +// RegistrantProfileRealNameVerificationResponse is the response struct for api RegistrantProfileRealNameVerification +type RegistrantProfileRealNameVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRegistrantProfileRealNameVerificationRequest creates a request to invoke RegistrantProfileRealNameVerification API +func CreateRegistrantProfileRealNameVerificationRequest() (request *RegistrantProfileRealNameVerificationRequest) { + request = &RegistrantProfileRealNameVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "RegistrantProfileRealNameVerification", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateRegistrantProfileRealNameVerificationResponse creates a response to parse from RegistrantProfileRealNameVerification response +func CreateRegistrantProfileRealNameVerificationResponse() (response *RegistrantProfileRealNameVerificationResponse) { + response = &RegistrantProfileRealNameVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/request_pay_demand.go b/services/domain/request_pay_demand.go deleted file mode 100644 index 8ee5c02c39..0000000000 --- a/services/domain/request_pay_demand.go +++ /dev/null @@ -1,103 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RequestPayDemand invokes the domain.RequestPayDemand API synchronously -func (client *Client) RequestPayDemand(request *RequestPayDemandRequest) (response *RequestPayDemandResponse, err error) { - response = CreateRequestPayDemandResponse() - err = client.DoAction(request, response) - return -} - -// RequestPayDemandWithChan invokes the domain.RequestPayDemand API asynchronously -func (client *Client) RequestPayDemandWithChan(request *RequestPayDemandRequest) (<-chan *RequestPayDemandResponse, <-chan error) { - responseChan := make(chan *RequestPayDemandResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RequestPayDemand(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RequestPayDemandWithCallback invokes the domain.RequestPayDemand API asynchronously -func (client *Client) RequestPayDemandWithCallback(request *RequestPayDemandRequest, callback func(response *RequestPayDemandResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RequestPayDemandResponse - var err error - defer close(result) - response, err = client.RequestPayDemand(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RequestPayDemandRequest is the request struct for api RequestPayDemand -type RequestPayDemandRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - ProduceType requests.Integer `position:"Query" name:"ProduceType"` - Message string `position:"Query" name:"Message"` - Price requests.Float `position:"Query" name:"Price"` - BizId string `position:"Query" name:"BizId"` -} - -// RequestPayDemandResponse is the response struct for api RequestPayDemand -type RequestPayDemandResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRequestPayDemandRequest creates a request to invoke RequestPayDemand API -func CreateRequestPayDemandRequest() (request *RequestPayDemandRequest) { - request = &RequestPayDemandRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "RequestPayDemand", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateRequestPayDemandResponse creates a response to parse from RequestPayDemand response -func CreateRequestPayDemandResponse() (response *RequestPayDemandResponse) { - response = &RequestPayDemandResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/resend_email_verification.go b/services/domain/resend_email_verification.go new file mode 100644 index 0000000000..8c6bcfb2ab --- /dev/null +++ b/services/domain/resend_email_verification.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResendEmailVerification invokes the domain.ResendEmailVerification API synchronously +func (client *Client) ResendEmailVerification(request *ResendEmailVerificationRequest) (response *ResendEmailVerificationResponse, err error) { + response = CreateResendEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// ResendEmailVerificationWithChan invokes the domain.ResendEmailVerification API asynchronously +func (client *Client) ResendEmailVerificationWithChan(request *ResendEmailVerificationRequest) (<-chan *ResendEmailVerificationResponse, <-chan error) { + responseChan := make(chan *ResendEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResendEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResendEmailVerificationWithCallback invokes the domain.ResendEmailVerification API asynchronously +func (client *Client) ResendEmailVerificationWithCallback(request *ResendEmailVerificationRequest, callback func(response *ResendEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResendEmailVerificationResponse + var err error + defer close(result) + response, err = client.ResendEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResendEmailVerificationRequest is the request struct for api ResendEmailVerification +type ResendEmailVerificationRequest struct { + *requests.RpcRequest + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` +} + +// ResendEmailVerificationResponse is the response struct for api ResendEmailVerification +type ResendEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList []SendResult `json:"SuccessList" xml:"SuccessList"` + FailList []SendResult `json:"FailList" xml:"FailList"` +} + +// CreateResendEmailVerificationRequest creates a request to invoke ResendEmailVerification API +func CreateResendEmailVerificationRequest() (request *ResendEmailVerificationRequest) { + request = &ResendEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "ResendEmailVerification", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateResendEmailVerificationResponse creates a response to parse from ResendEmailVerification response +func CreateResendEmailVerificationResponse() (response *ResendEmailVerificationResponse) { + response = &ResendEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/reserve_intl_domain.go b/services/domain/reserve_intl_domain.go deleted file mode 100644 index e75e5d6935..0000000000 --- a/services/domain/reserve_intl_domain.go +++ /dev/null @@ -1,109 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ReserveIntlDomain invokes the domain.ReserveIntlDomain API synchronously -func (client *Client) ReserveIntlDomain(request *ReserveIntlDomainRequest) (response *ReserveIntlDomainResponse, err error) { - response = CreateReserveIntlDomainResponse() - err = client.DoAction(request, response) - return -} - -// ReserveIntlDomainWithChan invokes the domain.ReserveIntlDomain API asynchronously -func (client *Client) ReserveIntlDomainWithChan(request *ReserveIntlDomainRequest) (<-chan *ReserveIntlDomainResponse, <-chan error) { - responseChan := make(chan *ReserveIntlDomainResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ReserveIntlDomain(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ReserveIntlDomainWithCallback invokes the domain.ReserveIntlDomain API asynchronously -func (client *Client) ReserveIntlDomainWithCallback(request *ReserveIntlDomainRequest, callback func(response *ReserveIntlDomainResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ReserveIntlDomainResponse - var err error - defer close(result) - response, err = client.ReserveIntlDomain(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ReserveIntlDomainRequest is the request struct for api ReserveIntlDomain -type ReserveIntlDomainRequest struct { - *requests.RpcRequest - DomainName string `position:"Body" name:"DomainName"` -} - -// ReserveIntlDomainResponse is the response struct for api ReserveIntlDomain -type ReserveIntlDomainResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` - DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` - ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - Success bool `json:"Success" xml:"Success"` - AllowRetry bool `json:"AllowRetry" xml:"AllowRetry"` - AppName string `json:"AppName" xml:"AppName"` - AuctionId string `json:"AuctionId" xml:"AuctionId"` - ErrorArgs []string `json:"ErrorArgs" xml:"ErrorArgs"` -} - -// CreateReserveIntlDomainRequest creates a request to invoke ReserveIntlDomain API -func CreateReserveIntlDomainRequest() (request *ReserveIntlDomainRequest) { - request = &ReserveIntlDomainRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "ReserveIntlDomain", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateReserveIntlDomainResponse creates a response to parse from ReserveIntlDomain response -func CreateReserveIntlDomainResponse() (response *ReserveIntlDomainResponse) { - response = &ReserveIntlDomainResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/reset_qualification_verification.go b/services/domain/reset_qualification_verification.go new file mode 100644 index 0000000000..a53af10e48 --- /dev/null +++ b/services/domain/reset_qualification_verification.go @@ -0,0 +1,101 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResetQualificationVerification invokes the domain.ResetQualificationVerification API synchronously +func (client *Client) ResetQualificationVerification(request *ResetQualificationVerificationRequest) (response *ResetQualificationVerificationResponse, err error) { + response = CreateResetQualificationVerificationResponse() + err = client.DoAction(request, response) + return +} + +// ResetQualificationVerificationWithChan invokes the domain.ResetQualificationVerification API asynchronously +func (client *Client) ResetQualificationVerificationWithChan(request *ResetQualificationVerificationRequest) (<-chan *ResetQualificationVerificationResponse, <-chan error) { + responseChan := make(chan *ResetQualificationVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResetQualificationVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResetQualificationVerificationWithCallback invokes the domain.ResetQualificationVerification API asynchronously +func (client *Client) ResetQualificationVerificationWithCallback(request *ResetQualificationVerificationRequest, callback func(response *ResetQualificationVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResetQualificationVerificationResponse + var err error + defer close(result) + response, err = client.ResetQualificationVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResetQualificationVerificationRequest is the request struct for api ResetQualificationVerification +type ResetQualificationVerificationRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// ResetQualificationVerificationResponse is the response struct for api ResetQualificationVerification +type ResetQualificationVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateResetQualificationVerificationRequest creates a request to invoke ResetQualificationVerification API +func CreateResetQualificationVerificationRequest() (request *ResetQualificationVerificationRequest) { + request = &ResetQualificationVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "ResetQualificationVerification", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateResetQualificationVerificationResponse creates a response to parse from ResetQualificationVerification response +func CreateResetQualificationVerificationResponse() (response *ResetQualificationVerificationResponse) { + response = &ResetQualificationVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_domain_remark.go b/services/domain/save_batch_domain_remark.go new file mode 100644 index 0000000000..a355fd01df --- /dev/null +++ b/services/domain/save_batch_domain_remark.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchDomainRemark invokes the domain.SaveBatchDomainRemark API synchronously +func (client *Client) SaveBatchDomainRemark(request *SaveBatchDomainRemarkRequest) (response *SaveBatchDomainRemarkResponse, err error) { + response = CreateSaveBatchDomainRemarkResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchDomainRemarkWithChan invokes the domain.SaveBatchDomainRemark API asynchronously +func (client *Client) SaveBatchDomainRemarkWithChan(request *SaveBatchDomainRemarkRequest) (<-chan *SaveBatchDomainRemarkResponse, <-chan error) { + responseChan := make(chan *SaveBatchDomainRemarkResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchDomainRemark(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchDomainRemarkWithCallback invokes the domain.SaveBatchDomainRemark API asynchronously +func (client *Client) SaveBatchDomainRemarkWithCallback(request *SaveBatchDomainRemarkRequest, callback func(response *SaveBatchDomainRemarkResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchDomainRemarkResponse + var err error + defer close(result) + response, err = client.SaveBatchDomainRemark(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchDomainRemarkRequest is the request struct for api SaveBatchDomainRemark +type SaveBatchDomainRemarkRequest struct { + *requests.RpcRequest + Remark string `position:"Query" name:"Remark"` + InstanceIds string `position:"Query" name:"InstanceIds"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveBatchDomainRemarkResponse is the response struct for api SaveBatchDomainRemark +type SaveBatchDomainRemarkResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSaveBatchDomainRemarkRequest creates a request to invoke SaveBatchDomainRemark API +func CreateSaveBatchDomainRemarkRequest() (request *SaveBatchDomainRemarkRequest) { + request = &SaveBatchDomainRemarkRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchDomainRemark", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchDomainRemarkResponse creates a response to parse from SaveBatchDomainRemark response +func CreateSaveBatchDomainRemarkResponse() (response *SaveBatchDomainRemarkResponse) { + response = &SaveBatchDomainRemarkResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_task_for_apply_quick_transfer_out_openly.go b/services/domain/save_batch_task_for_apply_quick_transfer_out_openly.go new file mode 100644 index 0000000000..c1a4b33abb --- /dev/null +++ b/services/domain/save_batch_task_for_apply_quick_transfer_out_openly.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForApplyQuickTransferOutOpenly invokes the domain.SaveBatchTaskForApplyQuickTransferOutOpenly API synchronously +func (client *Client) SaveBatchTaskForApplyQuickTransferOutOpenly(request *SaveBatchTaskForApplyQuickTransferOutOpenlyRequest) (response *SaveBatchTaskForApplyQuickTransferOutOpenlyResponse, err error) { + response = CreateSaveBatchTaskForApplyQuickTransferOutOpenlyResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForApplyQuickTransferOutOpenlyWithChan invokes the domain.SaveBatchTaskForApplyQuickTransferOutOpenly API asynchronously +func (client *Client) SaveBatchTaskForApplyQuickTransferOutOpenlyWithChan(request *SaveBatchTaskForApplyQuickTransferOutOpenlyRequest) (<-chan *SaveBatchTaskForApplyQuickTransferOutOpenlyResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForApplyQuickTransferOutOpenlyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForApplyQuickTransferOutOpenly(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForApplyQuickTransferOutOpenlyWithCallback invokes the domain.SaveBatchTaskForApplyQuickTransferOutOpenly API asynchronously +func (client *Client) SaveBatchTaskForApplyQuickTransferOutOpenlyWithCallback(request *SaveBatchTaskForApplyQuickTransferOutOpenlyRequest, callback func(response *SaveBatchTaskForApplyQuickTransferOutOpenlyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForApplyQuickTransferOutOpenlyResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForApplyQuickTransferOutOpenly(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForApplyQuickTransferOutOpenlyRequest is the request struct for api SaveBatchTaskForApplyQuickTransferOutOpenly +type SaveBatchTaskForApplyQuickTransferOutOpenlyRequest struct { + *requests.RpcRequest + DomainNames *[]string `position:"Query" name:"DomainNames" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveBatchTaskForApplyQuickTransferOutOpenlyResponse is the response struct for api SaveBatchTaskForApplyQuickTransferOutOpenly +type SaveBatchTaskForApplyQuickTransferOutOpenlyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForApplyQuickTransferOutOpenlyRequest creates a request to invoke SaveBatchTaskForApplyQuickTransferOutOpenly API +func CreateSaveBatchTaskForApplyQuickTransferOutOpenlyRequest() (request *SaveBatchTaskForApplyQuickTransferOutOpenlyRequest) { + request = &SaveBatchTaskForApplyQuickTransferOutOpenlyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForApplyQuickTransferOutOpenly", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForApplyQuickTransferOutOpenlyResponse creates a response to parse from SaveBatchTaskForApplyQuickTransferOutOpenly response +func CreateSaveBatchTaskForApplyQuickTransferOutOpenlyResponse() (response *SaveBatchTaskForApplyQuickTransferOutOpenlyResponse) { + response = &SaveBatchTaskForApplyQuickTransferOutOpenlyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_task_for_creating_order_activate.go b/services/domain/save_batch_task_for_creating_order_activate.go new file mode 100644 index 0000000000..ecd569d0cb --- /dev/null +++ b/services/domain/save_batch_task_for_creating_order_activate.go @@ -0,0 +1,137 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderActivate invokes the domain.SaveBatchTaskForCreatingOrderActivate API synchronously +func (client *Client) SaveBatchTaskForCreatingOrderActivate(request *SaveBatchTaskForCreatingOrderActivateRequest) (response *SaveBatchTaskForCreatingOrderActivateResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderActivateResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderActivateWithChan invokes the domain.SaveBatchTaskForCreatingOrderActivate API asynchronously +func (client *Client) SaveBatchTaskForCreatingOrderActivateWithChan(request *SaveBatchTaskForCreatingOrderActivateRequest) (<-chan *SaveBatchTaskForCreatingOrderActivateResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderActivateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderActivate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderActivateWithCallback invokes the domain.SaveBatchTaskForCreatingOrderActivate API asynchronously +func (client *Client) SaveBatchTaskForCreatingOrderActivateWithCallback(request *SaveBatchTaskForCreatingOrderActivateRequest, callback func(response *SaveBatchTaskForCreatingOrderActivateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderActivateResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderActivate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderActivateRequest is the request struct for api SaveBatchTaskForCreatingOrderActivate +type SaveBatchTaskForCreatingOrderActivateRequest struct { + *requests.RpcRequest + OrderActivateParam *[]SaveBatchTaskForCreatingOrderActivateOrderActivateParam `position:"Query" name:"OrderActivateParam" type:"Repeated"` + CouponNo string `position:"Query" name:"CouponNo"` + UseCoupon requests.Boolean `position:"Query" name:"UseCoupon"` + PromotionNo string `position:"Query" name:"PromotionNo"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + UsePromotion requests.Boolean `position:"Query" name:"UsePromotion"` +} + +// SaveBatchTaskForCreatingOrderActivateOrderActivateParam is a repeated param struct in SaveBatchTaskForCreatingOrderActivateRequest +type SaveBatchTaskForCreatingOrderActivateOrderActivateParam struct { + Country string `name:"Country"` + SubscriptionDuration string `name:"SubscriptionDuration"` + PermitPremiumActivation string `name:"PermitPremiumActivation"` + City string `name:"City"` + Dns2 string `name:"Dns2"` + Dns1 string `name:"Dns1"` + RegistrantProfileId string `name:"RegistrantProfileId"` + AliyunDns string `name:"AliyunDns"` + ZhCity string `name:"ZhCity"` + ResourceGroupId string `name:"ResourceGroupId"` + TelExt string `name:"TelExt"` + ZhRegistrantName string `name:"ZhRegistrantName"` + Province string `name:"Province"` + PostalCode string `name:"PostalCode"` + Email string `name:"Email"` + ZhRegistrantOrganization string `name:"ZhRegistrantOrganization"` + Address string `name:"Address"` + TelArea string `name:"TelArea"` + DomainName string `name:"DomainName"` + RegistrantType string `name:"RegistrantType"` + ZhAddress string `name:"ZhAddress"` + Telephone string `name:"Telephone"` + TrademarkDomainActivation string `name:"TrademarkDomainActivation"` + ZhProvince string `name:"ZhProvince"` + RegistrantOrganization string `name:"RegistrantOrganization"` + EnableDomainProxy string `name:"EnableDomainProxy"` + RegistrantName string `name:"RegistrantName"` +} + +// SaveBatchTaskForCreatingOrderActivateResponse is the response struct for api SaveBatchTaskForCreatingOrderActivate +type SaveBatchTaskForCreatingOrderActivateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderActivateRequest creates a request to invoke SaveBatchTaskForCreatingOrderActivate API +func CreateSaveBatchTaskForCreatingOrderActivateRequest() (request *SaveBatchTaskForCreatingOrderActivateRequest) { + request = &SaveBatchTaskForCreatingOrderActivateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForCreatingOrderActivate", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForCreatingOrderActivateResponse creates a response to parse from SaveBatchTaskForCreatingOrderActivate response +func CreateSaveBatchTaskForCreatingOrderActivateResponse() (response *SaveBatchTaskForCreatingOrderActivateResponse) { + response = &SaveBatchTaskForCreatingOrderActivateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_task_for_creating_order_redeem.go b/services/domain/save_batch_task_for_creating_order_redeem.go new file mode 100644 index 0000000000..1c702232b0 --- /dev/null +++ b/services/domain/save_batch_task_for_creating_order_redeem.go @@ -0,0 +1,112 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderRedeem invokes the domain.SaveBatchTaskForCreatingOrderRedeem API synchronously +func (client *Client) SaveBatchTaskForCreatingOrderRedeem(request *SaveBatchTaskForCreatingOrderRedeemRequest) (response *SaveBatchTaskForCreatingOrderRedeemResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderRedeemResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderRedeemWithChan invokes the domain.SaveBatchTaskForCreatingOrderRedeem API asynchronously +func (client *Client) SaveBatchTaskForCreatingOrderRedeemWithChan(request *SaveBatchTaskForCreatingOrderRedeemRequest) (<-chan *SaveBatchTaskForCreatingOrderRedeemResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderRedeemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderRedeem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderRedeemWithCallback invokes the domain.SaveBatchTaskForCreatingOrderRedeem API asynchronously +func (client *Client) SaveBatchTaskForCreatingOrderRedeemWithCallback(request *SaveBatchTaskForCreatingOrderRedeemRequest, callback func(response *SaveBatchTaskForCreatingOrderRedeemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderRedeemResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderRedeem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderRedeemRequest is the request struct for api SaveBatchTaskForCreatingOrderRedeem +type SaveBatchTaskForCreatingOrderRedeemRequest struct { + *requests.RpcRequest + CouponNo string `position:"Query" name:"CouponNo"` + UseCoupon requests.Boolean `position:"Query" name:"UseCoupon"` + PromotionNo string `position:"Query" name:"PromotionNo"` + OrderRedeemParam *[]SaveBatchTaskForCreatingOrderRedeemOrderRedeemParam `position:"Query" name:"OrderRedeemParam" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + UsePromotion requests.Boolean `position:"Query" name:"UsePromotion"` +} + +// SaveBatchTaskForCreatingOrderRedeemOrderRedeemParam is a repeated param struct in SaveBatchTaskForCreatingOrderRedeemRequest +type SaveBatchTaskForCreatingOrderRedeemOrderRedeemParam struct { + CurrentExpirationDate string `name:"CurrentExpirationDate"` + DomainName string `name:"DomainName"` +} + +// SaveBatchTaskForCreatingOrderRedeemResponse is the response struct for api SaveBatchTaskForCreatingOrderRedeem +type SaveBatchTaskForCreatingOrderRedeemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderRedeemRequest creates a request to invoke SaveBatchTaskForCreatingOrderRedeem API +func CreateSaveBatchTaskForCreatingOrderRedeemRequest() (request *SaveBatchTaskForCreatingOrderRedeemRequest) { + request = &SaveBatchTaskForCreatingOrderRedeemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForCreatingOrderRedeem", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForCreatingOrderRedeemResponse creates a response to parse from SaveBatchTaskForCreatingOrderRedeem response +func CreateSaveBatchTaskForCreatingOrderRedeemResponse() (response *SaveBatchTaskForCreatingOrderRedeemResponse) { + response = &SaveBatchTaskForCreatingOrderRedeemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_task_for_creating_order_renew.go b/services/domain/save_batch_task_for_creating_order_renew.go new file mode 100644 index 0000000000..562fdef13e --- /dev/null +++ b/services/domain/save_batch_task_for_creating_order_renew.go @@ -0,0 +1,113 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderRenew invokes the domain.SaveBatchTaskForCreatingOrderRenew API synchronously +func (client *Client) SaveBatchTaskForCreatingOrderRenew(request *SaveBatchTaskForCreatingOrderRenewRequest) (response *SaveBatchTaskForCreatingOrderRenewResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderRenewResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderRenewWithChan invokes the domain.SaveBatchTaskForCreatingOrderRenew API asynchronously +func (client *Client) SaveBatchTaskForCreatingOrderRenewWithChan(request *SaveBatchTaskForCreatingOrderRenewRequest) (<-chan *SaveBatchTaskForCreatingOrderRenewResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderRenewResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderRenew(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderRenewWithCallback invokes the domain.SaveBatchTaskForCreatingOrderRenew API asynchronously +func (client *Client) SaveBatchTaskForCreatingOrderRenewWithCallback(request *SaveBatchTaskForCreatingOrderRenewRequest, callback func(response *SaveBatchTaskForCreatingOrderRenewResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderRenewResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderRenew(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderRenewRequest is the request struct for api SaveBatchTaskForCreatingOrderRenew +type SaveBatchTaskForCreatingOrderRenewRequest struct { + *requests.RpcRequest + CouponNo string `position:"Query" name:"CouponNo"` + UseCoupon requests.Boolean `position:"Query" name:"UseCoupon"` + PromotionNo string `position:"Query" name:"PromotionNo"` + UserClientIp string `position:"Query" name:"UserClientIp"` + OrderRenewParam *[]SaveBatchTaskForCreatingOrderRenewOrderRenewParam `position:"Query" name:"OrderRenewParam" type:"Repeated"` + Lang string `position:"Query" name:"Lang"` + UsePromotion requests.Boolean `position:"Query" name:"UsePromotion"` +} + +// SaveBatchTaskForCreatingOrderRenewOrderRenewParam is a repeated param struct in SaveBatchTaskForCreatingOrderRenewRequest +type SaveBatchTaskForCreatingOrderRenewOrderRenewParam struct { + SubscriptionDuration string `name:"SubscriptionDuration"` + CurrentExpirationDate string `name:"CurrentExpirationDate"` + DomainName string `name:"DomainName"` +} + +// SaveBatchTaskForCreatingOrderRenewResponse is the response struct for api SaveBatchTaskForCreatingOrderRenew +type SaveBatchTaskForCreatingOrderRenewResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderRenewRequest creates a request to invoke SaveBatchTaskForCreatingOrderRenew API +func CreateSaveBatchTaskForCreatingOrderRenewRequest() (request *SaveBatchTaskForCreatingOrderRenewRequest) { + request = &SaveBatchTaskForCreatingOrderRenewRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForCreatingOrderRenew", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForCreatingOrderRenewResponse creates a response to parse from SaveBatchTaskForCreatingOrderRenew response +func CreateSaveBatchTaskForCreatingOrderRenewResponse() (response *SaveBatchTaskForCreatingOrderRenewResponse) { + response = &SaveBatchTaskForCreatingOrderRenewResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_task_for_creating_order_transfer.go b/services/domain/save_batch_task_for_creating_order_transfer.go new file mode 100644 index 0000000000..39c6484bda --- /dev/null +++ b/services/domain/save_batch_task_for_creating_order_transfer.go @@ -0,0 +1,114 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForCreatingOrderTransfer invokes the domain.SaveBatchTaskForCreatingOrderTransfer API synchronously +func (client *Client) SaveBatchTaskForCreatingOrderTransfer(request *SaveBatchTaskForCreatingOrderTransferRequest) (response *SaveBatchTaskForCreatingOrderTransferResponse, err error) { + response = CreateSaveBatchTaskForCreatingOrderTransferResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForCreatingOrderTransferWithChan invokes the domain.SaveBatchTaskForCreatingOrderTransfer API asynchronously +func (client *Client) SaveBatchTaskForCreatingOrderTransferWithChan(request *SaveBatchTaskForCreatingOrderTransferRequest) (<-chan *SaveBatchTaskForCreatingOrderTransferResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForCreatingOrderTransferResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForCreatingOrderTransfer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForCreatingOrderTransferWithCallback invokes the domain.SaveBatchTaskForCreatingOrderTransfer API asynchronously +func (client *Client) SaveBatchTaskForCreatingOrderTransferWithCallback(request *SaveBatchTaskForCreatingOrderTransferRequest, callback func(response *SaveBatchTaskForCreatingOrderTransferResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForCreatingOrderTransferResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForCreatingOrderTransfer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForCreatingOrderTransferRequest is the request struct for api SaveBatchTaskForCreatingOrderTransfer +type SaveBatchTaskForCreatingOrderTransferRequest struct { + *requests.RpcRequest + OrderTransferParam *[]SaveBatchTaskForCreatingOrderTransferOrderTransferParam `position:"Query" name:"OrderTransferParam" type:"Repeated"` + CouponNo string `position:"Query" name:"CouponNo"` + UseCoupon requests.Boolean `position:"Query" name:"UseCoupon"` + PromotionNo string `position:"Query" name:"PromotionNo"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + UsePromotion requests.Boolean `position:"Query" name:"UsePromotion"` +} + +// SaveBatchTaskForCreatingOrderTransferOrderTransferParam is a repeated param struct in SaveBatchTaskForCreatingOrderTransferRequest +type SaveBatchTaskForCreatingOrderTransferOrderTransferParam struct { + PermitPremiumTransfer string `name:"PermitPremiumTransfer"` + AuthorizationCode string `name:"AuthorizationCode"` + RegistrantProfileId string `name:"RegistrantProfileId"` + DomainName string `name:"DomainName"` +} + +// SaveBatchTaskForCreatingOrderTransferResponse is the response struct for api SaveBatchTaskForCreatingOrderTransfer +type SaveBatchTaskForCreatingOrderTransferResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForCreatingOrderTransferRequest creates a request to invoke SaveBatchTaskForCreatingOrderTransfer API +func CreateSaveBatchTaskForCreatingOrderTransferRequest() (request *SaveBatchTaskForCreatingOrderTransferRequest) { + request = &SaveBatchTaskForCreatingOrderTransferRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForCreatingOrderTransfer", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForCreatingOrderTransferResponse creates a response to parse from SaveBatchTaskForCreatingOrderTransfer response +func CreateSaveBatchTaskForCreatingOrderTransferResponse() (response *SaveBatchTaskForCreatingOrderTransferResponse) { + response = &SaveBatchTaskForCreatingOrderTransferResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_task_for_domain_name_proxy_service.go b/services/domain/save_batch_task_for_domain_name_proxy_service.go new file mode 100644 index 0000000000..cbe51b6824 --- /dev/null +++ b/services/domain/save_batch_task_for_domain_name_proxy_service.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForDomainNameProxyService invokes the domain.SaveBatchTaskForDomainNameProxyService API synchronously +func (client *Client) SaveBatchTaskForDomainNameProxyService(request *SaveBatchTaskForDomainNameProxyServiceRequest) (response *SaveBatchTaskForDomainNameProxyServiceResponse, err error) { + response = CreateSaveBatchTaskForDomainNameProxyServiceResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForDomainNameProxyServiceWithChan invokes the domain.SaveBatchTaskForDomainNameProxyService API asynchronously +func (client *Client) SaveBatchTaskForDomainNameProxyServiceWithChan(request *SaveBatchTaskForDomainNameProxyServiceRequest) (<-chan *SaveBatchTaskForDomainNameProxyServiceResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForDomainNameProxyServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForDomainNameProxyService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForDomainNameProxyServiceWithCallback invokes the domain.SaveBatchTaskForDomainNameProxyService API asynchronously +func (client *Client) SaveBatchTaskForDomainNameProxyServiceWithCallback(request *SaveBatchTaskForDomainNameProxyServiceRequest, callback func(response *SaveBatchTaskForDomainNameProxyServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForDomainNameProxyServiceResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForDomainNameProxyService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForDomainNameProxyServiceRequest is the request struct for api SaveBatchTaskForDomainNameProxyService +type SaveBatchTaskForDomainNameProxyServiceRequest struct { + *requests.RpcRequest + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveBatchTaskForDomainNameProxyServiceResponse is the response struct for api SaveBatchTaskForDomainNameProxyService +type SaveBatchTaskForDomainNameProxyServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForDomainNameProxyServiceRequest creates a request to invoke SaveBatchTaskForDomainNameProxyService API +func CreateSaveBatchTaskForDomainNameProxyServiceRequest() (request *SaveBatchTaskForDomainNameProxyServiceRequest) { + request = &SaveBatchTaskForDomainNameProxyServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForDomainNameProxyService", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForDomainNameProxyServiceResponse creates a response to parse from SaveBatchTaskForDomainNameProxyService response +func CreateSaveBatchTaskForDomainNameProxyServiceResponse() (response *SaveBatchTaskForDomainNameProxyServiceResponse) { + response = &SaveBatchTaskForDomainNameProxyServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_task_for_generate_domain_certificate.go b/services/domain/save_batch_task_for_generate_domain_certificate.go new file mode 100644 index 0000000000..b229b38b73 --- /dev/null +++ b/services/domain/save_batch_task_for_generate_domain_certificate.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForGenerateDomainCertificate invokes the domain.SaveBatchTaskForGenerateDomainCertificate API synchronously +func (client *Client) SaveBatchTaskForGenerateDomainCertificate(request *SaveBatchTaskForGenerateDomainCertificateRequest) (response *SaveBatchTaskForGenerateDomainCertificateResponse, err error) { + response = CreateSaveBatchTaskForGenerateDomainCertificateResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForGenerateDomainCertificateWithChan invokes the domain.SaveBatchTaskForGenerateDomainCertificate API asynchronously +func (client *Client) SaveBatchTaskForGenerateDomainCertificateWithChan(request *SaveBatchTaskForGenerateDomainCertificateRequest) (<-chan *SaveBatchTaskForGenerateDomainCertificateResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForGenerateDomainCertificateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForGenerateDomainCertificate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForGenerateDomainCertificateWithCallback invokes the domain.SaveBatchTaskForGenerateDomainCertificate API asynchronously +func (client *Client) SaveBatchTaskForGenerateDomainCertificateWithCallback(request *SaveBatchTaskForGenerateDomainCertificateRequest, callback func(response *SaveBatchTaskForGenerateDomainCertificateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForGenerateDomainCertificateResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForGenerateDomainCertificate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForGenerateDomainCertificateRequest is the request struct for api SaveBatchTaskForGenerateDomainCertificate +type SaveBatchTaskForGenerateDomainCertificateRequest struct { + *requests.RpcRequest + DomainNames *[]string `position:"Query" name:"DomainNames" type:"Json"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveBatchTaskForGenerateDomainCertificateResponse is the response struct for api SaveBatchTaskForGenerateDomainCertificate +type SaveBatchTaskForGenerateDomainCertificateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForGenerateDomainCertificateRequest creates a request to invoke SaveBatchTaskForGenerateDomainCertificate API +func CreateSaveBatchTaskForGenerateDomainCertificateRequest() (request *SaveBatchTaskForGenerateDomainCertificateRequest) { + request = &SaveBatchTaskForGenerateDomainCertificateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForGenerateDomainCertificate", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForGenerateDomainCertificateResponse creates a response to parse from SaveBatchTaskForGenerateDomainCertificate response +func CreateSaveBatchTaskForGenerateDomainCertificateResponse() (response *SaveBatchTaskForGenerateDomainCertificateResponse) { + response = &SaveBatchTaskForGenerateDomainCertificateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_task_for_modifying_domain_dns.go b/services/domain/save_batch_task_for_modifying_domain_dns.go new file mode 100644 index 0000000000..12143195c8 --- /dev/null +++ b/services/domain/save_batch_task_for_modifying_domain_dns.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForModifyingDomainDns invokes the domain.SaveBatchTaskForModifyingDomainDns API synchronously +func (client *Client) SaveBatchTaskForModifyingDomainDns(request *SaveBatchTaskForModifyingDomainDnsRequest) (response *SaveBatchTaskForModifyingDomainDnsResponse, err error) { + response = CreateSaveBatchTaskForModifyingDomainDnsResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForModifyingDomainDnsWithChan invokes the domain.SaveBatchTaskForModifyingDomainDns API asynchronously +func (client *Client) SaveBatchTaskForModifyingDomainDnsWithChan(request *SaveBatchTaskForModifyingDomainDnsRequest) (<-chan *SaveBatchTaskForModifyingDomainDnsResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForModifyingDomainDnsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForModifyingDomainDns(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForModifyingDomainDnsWithCallback invokes the domain.SaveBatchTaskForModifyingDomainDns API asynchronously +func (client *Client) SaveBatchTaskForModifyingDomainDnsWithCallback(request *SaveBatchTaskForModifyingDomainDnsRequest, callback func(response *SaveBatchTaskForModifyingDomainDnsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForModifyingDomainDnsResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForModifyingDomainDns(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForModifyingDomainDnsRequest is the request struct for api SaveBatchTaskForModifyingDomainDns +type SaveBatchTaskForModifyingDomainDnsRequest struct { + *requests.RpcRequest + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + AliyunDns requests.Boolean `position:"Query" name:"AliyunDns"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainNameServer *[]string `position:"Query" name:"DomainNameServer" type:"Repeated"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveBatchTaskForModifyingDomainDnsResponse is the response struct for api SaveBatchTaskForModifyingDomainDns +type SaveBatchTaskForModifyingDomainDnsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForModifyingDomainDnsRequest creates a request to invoke SaveBatchTaskForModifyingDomainDns API +func CreateSaveBatchTaskForModifyingDomainDnsRequest() (request *SaveBatchTaskForModifyingDomainDnsRequest) { + request = &SaveBatchTaskForModifyingDomainDnsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForModifyingDomainDns", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForModifyingDomainDnsResponse creates a response to parse from SaveBatchTaskForModifyingDomainDns response +func CreateSaveBatchTaskForModifyingDomainDnsResponse() (response *SaveBatchTaskForModifyingDomainDnsResponse) { + response = &SaveBatchTaskForModifyingDomainDnsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_task_for_reserve_drop_list_domain.go b/services/domain/save_batch_task_for_reserve_drop_list_domain.go new file mode 100644 index 0000000000..555f9ba39b --- /dev/null +++ b/services/domain/save_batch_task_for_reserve_drop_list_domain.go @@ -0,0 +1,108 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForReserveDropListDomain invokes the domain.SaveBatchTaskForReserveDropListDomain API synchronously +func (client *Client) SaveBatchTaskForReserveDropListDomain(request *SaveBatchTaskForReserveDropListDomainRequest) (response *SaveBatchTaskForReserveDropListDomainResponse, err error) { + response = CreateSaveBatchTaskForReserveDropListDomainResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForReserveDropListDomainWithChan invokes the domain.SaveBatchTaskForReserveDropListDomain API asynchronously +func (client *Client) SaveBatchTaskForReserveDropListDomainWithChan(request *SaveBatchTaskForReserveDropListDomainRequest) (<-chan *SaveBatchTaskForReserveDropListDomainResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForReserveDropListDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForReserveDropListDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForReserveDropListDomainWithCallback invokes the domain.SaveBatchTaskForReserveDropListDomain API asynchronously +func (client *Client) SaveBatchTaskForReserveDropListDomainWithCallback(request *SaveBatchTaskForReserveDropListDomainRequest, callback func(response *SaveBatchTaskForReserveDropListDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForReserveDropListDomainResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForReserveDropListDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForReserveDropListDomainRequest is the request struct for api SaveBatchTaskForReserveDropListDomain +type SaveBatchTaskForReserveDropListDomainRequest struct { + *requests.RpcRequest + Domains *[]SaveBatchTaskForReserveDropListDomainDomains `position:"Query" name:"Domains" type:"Repeated"` + ContactTemplateId string `position:"Query" name:"ContactTemplateId"` +} + +// SaveBatchTaskForReserveDropListDomainDomains is a repeated param struct in SaveBatchTaskForReserveDropListDomainRequest +type SaveBatchTaskForReserveDropListDomainDomains struct { + Dns2 string `name:"Dns2"` + Dns1 string `name:"Dns1"` + DomainName string `name:"DomainName"` +} + +// SaveBatchTaskForReserveDropListDomainResponse is the response struct for api SaveBatchTaskForReserveDropListDomain +type SaveBatchTaskForReserveDropListDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForReserveDropListDomainRequest creates a request to invoke SaveBatchTaskForReserveDropListDomain API +func CreateSaveBatchTaskForReserveDropListDomainRequest() (request *SaveBatchTaskForReserveDropListDomainRequest) { + request = &SaveBatchTaskForReserveDropListDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForReserveDropListDomain", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForReserveDropListDomainResponse creates a response to parse from SaveBatchTaskForReserveDropListDomain response +func CreateSaveBatchTaskForReserveDropListDomainResponse() (response *SaveBatchTaskForReserveDropListDomainResponse) { + response = &SaveBatchTaskForReserveDropListDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_task_for_transfer_prohibition_lock.go b/services/domain/save_batch_task_for_transfer_prohibition_lock.go new file mode 100644 index 0000000000..abc6c22857 --- /dev/null +++ b/services/domain/save_batch_task_for_transfer_prohibition_lock.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForTransferProhibitionLock invokes the domain.SaveBatchTaskForTransferProhibitionLock API synchronously +func (client *Client) SaveBatchTaskForTransferProhibitionLock(request *SaveBatchTaskForTransferProhibitionLockRequest) (response *SaveBatchTaskForTransferProhibitionLockResponse, err error) { + response = CreateSaveBatchTaskForTransferProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForTransferProhibitionLockWithChan invokes the domain.SaveBatchTaskForTransferProhibitionLock API asynchronously +func (client *Client) SaveBatchTaskForTransferProhibitionLockWithChan(request *SaveBatchTaskForTransferProhibitionLockRequest) (<-chan *SaveBatchTaskForTransferProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForTransferProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForTransferProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForTransferProhibitionLockWithCallback invokes the domain.SaveBatchTaskForTransferProhibitionLock API asynchronously +func (client *Client) SaveBatchTaskForTransferProhibitionLockWithCallback(request *SaveBatchTaskForTransferProhibitionLockRequest, callback func(response *SaveBatchTaskForTransferProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForTransferProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForTransferProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForTransferProhibitionLockRequest is the request struct for api SaveBatchTaskForTransferProhibitionLock +type SaveBatchTaskForTransferProhibitionLockRequest struct { + *requests.RpcRequest + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveBatchTaskForTransferProhibitionLockResponse is the response struct for api SaveBatchTaskForTransferProhibitionLock +type SaveBatchTaskForTransferProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForTransferProhibitionLockRequest creates a request to invoke SaveBatchTaskForTransferProhibitionLock API +func CreateSaveBatchTaskForTransferProhibitionLockRequest() (request *SaveBatchTaskForTransferProhibitionLockRequest) { + request = &SaveBatchTaskForTransferProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForTransferProhibitionLock", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForTransferProhibitionLockResponse creates a response to parse from SaveBatchTaskForTransferProhibitionLock response +func CreateSaveBatchTaskForTransferProhibitionLockResponse() (response *SaveBatchTaskForTransferProhibitionLockResponse) { + response = &SaveBatchTaskForTransferProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_task_for_update_prohibition_lock.go b/services/domain/save_batch_task_for_update_prohibition_lock.go new file mode 100644 index 0000000000..bf194e72b2 --- /dev/null +++ b/services/domain/save_batch_task_for_update_prohibition_lock.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForUpdateProhibitionLock invokes the domain.SaveBatchTaskForUpdateProhibitionLock API synchronously +func (client *Client) SaveBatchTaskForUpdateProhibitionLock(request *SaveBatchTaskForUpdateProhibitionLockRequest) (response *SaveBatchTaskForUpdateProhibitionLockResponse, err error) { + response = CreateSaveBatchTaskForUpdateProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForUpdateProhibitionLockWithChan invokes the domain.SaveBatchTaskForUpdateProhibitionLock API asynchronously +func (client *Client) SaveBatchTaskForUpdateProhibitionLockWithChan(request *SaveBatchTaskForUpdateProhibitionLockRequest) (<-chan *SaveBatchTaskForUpdateProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForUpdateProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForUpdateProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForUpdateProhibitionLockWithCallback invokes the domain.SaveBatchTaskForUpdateProhibitionLock API asynchronously +func (client *Client) SaveBatchTaskForUpdateProhibitionLockWithCallback(request *SaveBatchTaskForUpdateProhibitionLockRequest, callback func(response *SaveBatchTaskForUpdateProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForUpdateProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForUpdateProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForUpdateProhibitionLockRequest is the request struct for api SaveBatchTaskForUpdateProhibitionLock +type SaveBatchTaskForUpdateProhibitionLockRequest struct { + *requests.RpcRequest + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveBatchTaskForUpdateProhibitionLockResponse is the response struct for api SaveBatchTaskForUpdateProhibitionLock +type SaveBatchTaskForUpdateProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForUpdateProhibitionLockRequest creates a request to invoke SaveBatchTaskForUpdateProhibitionLock API +func CreateSaveBatchTaskForUpdateProhibitionLockRequest() (request *SaveBatchTaskForUpdateProhibitionLockRequest) { + request = &SaveBatchTaskForUpdateProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForUpdateProhibitionLock", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForUpdateProhibitionLockResponse creates a response to parse from SaveBatchTaskForUpdateProhibitionLock response +func CreateSaveBatchTaskForUpdateProhibitionLockResponse() (response *SaveBatchTaskForUpdateProhibitionLockResponse) { + response = &SaveBatchTaskForUpdateProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_task_for_updating_contact_info_by_new_contact.go b/services/domain/save_batch_task_for_updating_contact_info_by_new_contact.go new file mode 100644 index 0000000000..e2daacdb1b --- /dev/null +++ b/services/domain/save_batch_task_for_updating_contact_info_by_new_contact.go @@ -0,0 +1,121 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForUpdatingContactInfoByNewContact invokes the domain.SaveBatchTaskForUpdatingContactInfoByNewContact API synchronously +func (client *Client) SaveBatchTaskForUpdatingContactInfoByNewContact(request *SaveBatchTaskForUpdatingContactInfoByNewContactRequest) (response *SaveBatchTaskForUpdatingContactInfoByNewContactResponse, err error) { + response = CreateSaveBatchTaskForUpdatingContactInfoByNewContactResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForUpdatingContactInfoByNewContactWithChan invokes the domain.SaveBatchTaskForUpdatingContactInfoByNewContact API asynchronously +func (client *Client) SaveBatchTaskForUpdatingContactInfoByNewContactWithChan(request *SaveBatchTaskForUpdatingContactInfoByNewContactRequest) (<-chan *SaveBatchTaskForUpdatingContactInfoByNewContactResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForUpdatingContactInfoByNewContactResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForUpdatingContactInfoByNewContact(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForUpdatingContactInfoByNewContactWithCallback invokes the domain.SaveBatchTaskForUpdatingContactInfoByNewContact API asynchronously +func (client *Client) SaveBatchTaskForUpdatingContactInfoByNewContactWithCallback(request *SaveBatchTaskForUpdatingContactInfoByNewContactRequest, callback func(response *SaveBatchTaskForUpdatingContactInfoByNewContactResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForUpdatingContactInfoByNewContactResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForUpdatingContactInfoByNewContact(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForUpdatingContactInfoByNewContactRequest is the request struct for api SaveBatchTaskForUpdatingContactInfoByNewContact +type SaveBatchTaskForUpdatingContactInfoByNewContactRequest struct { + *requests.RpcRequest + Country string `position:"Query" name:"Country"` + City string `position:"Query" name:"City"` + TransferOutProhibited requests.Boolean `position:"Query" name:"TransferOutProhibited"` + ZhCity string `position:"Query" name:"ZhCity"` + TelExt string `position:"Query" name:"TelExt"` + Province string `position:"Query" name:"Province"` + ZhRegistrantName string `position:"Query" name:"ZhRegistrantName"` + PostalCode string `position:"Query" name:"PostalCode"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + ZhRegistrantOrganization string `position:"Query" name:"ZhRegistrantOrganization"` + Address string `position:"Query" name:"Address"` + TelArea string `position:"Query" name:"TelArea"` + ContactType string `position:"Query" name:"ContactType"` + ZhAddress string `position:"Query" name:"ZhAddress"` + RegistrantType string `position:"Query" name:"RegistrantType"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Telephone string `position:"Query" name:"Telephone"` + ZhProvince string `position:"Query" name:"ZhProvince"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrantName string `position:"Query" name:"RegistrantName"` +} + +// SaveBatchTaskForUpdatingContactInfoByNewContactResponse is the response struct for api SaveBatchTaskForUpdatingContactInfoByNewContact +type SaveBatchTaskForUpdatingContactInfoByNewContactResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForUpdatingContactInfoByNewContactRequest creates a request to invoke SaveBatchTaskForUpdatingContactInfoByNewContact API +func CreateSaveBatchTaskForUpdatingContactInfoByNewContactRequest() (request *SaveBatchTaskForUpdatingContactInfoByNewContactRequest) { + request = &SaveBatchTaskForUpdatingContactInfoByNewContactRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForUpdatingContactInfoByNewContact", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForUpdatingContactInfoByNewContactResponse creates a response to parse from SaveBatchTaskForUpdatingContactInfoByNewContact response +func CreateSaveBatchTaskForUpdatingContactInfoByNewContactResponse() (response *SaveBatchTaskForUpdatingContactInfoByNewContactResponse) { + response = &SaveBatchTaskForUpdatingContactInfoByNewContactResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_batch_task_for_updating_contact_info_by_registrant_profile_id.go b/services/domain/save_batch_task_for_updating_contact_info_by_registrant_profile_id.go new file mode 100644 index 0000000000..733df9b1af --- /dev/null +++ b/services/domain/save_batch_task_for_updating_contact_info_by_registrant_profile_id.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId invokes the domain.SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId API synchronously +func (client *Client) SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId(request *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest) (response *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse, err error) { + response = CreateSaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse() + err = client.DoAction(request, response) + return +} + +// SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdWithChan invokes the domain.SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId API asynchronously +func (client *Client) SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdWithChan(request *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest) (<-chan *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse, <-chan error) { + responseChan := make(chan *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdWithCallback invokes the domain.SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId API asynchronously +func (client *Client) SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdWithCallback(request *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest, callback func(response *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse + var err error + defer close(result) + response, err = client.SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest is the request struct for api SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId +type SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest struct { + *requests.RpcRequest + ContactType string `position:"Query" name:"ContactType"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + TransferOutProhibited requests.Boolean `position:"Query" name:"TransferOutProhibited"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse is the response struct for api SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId +type SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest creates a request to invoke SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId API +func CreateSaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest() (request *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest) { + request = &SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse creates a response to parse from SaveBatchTaskForUpdatingContactInfoByRegistrantProfileId response +func CreateSaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse() (response *SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse) { + response = &SaveBatchTaskForUpdatingContactInfoByRegistrantProfileIdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_domain_group.go b/services/domain/save_domain_group.go new file mode 100644 index 0000000000..c65910c9b5 --- /dev/null +++ b/services/domain/save_domain_group.go @@ -0,0 +1,109 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveDomainGroup invokes the domain.SaveDomainGroup API synchronously +func (client *Client) SaveDomainGroup(request *SaveDomainGroupRequest) (response *SaveDomainGroupResponse, err error) { + response = CreateSaveDomainGroupResponse() + err = client.DoAction(request, response) + return +} + +// SaveDomainGroupWithChan invokes the domain.SaveDomainGroup API asynchronously +func (client *Client) SaveDomainGroupWithChan(request *SaveDomainGroupRequest) (<-chan *SaveDomainGroupResponse, <-chan error) { + responseChan := make(chan *SaveDomainGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveDomainGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveDomainGroupWithCallback invokes the domain.SaveDomainGroup API asynchronously +func (client *Client) SaveDomainGroupWithCallback(request *SaveDomainGroupRequest, callback func(response *SaveDomainGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveDomainGroupResponse + var err error + defer close(result) + response, err = client.SaveDomainGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveDomainGroupRequest is the request struct for api SaveDomainGroup +type SaveDomainGroupRequest struct { + *requests.RpcRequest + DomainGroupId requests.Integer `position:"Query" name:"DomainGroupId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DomainGroupName string `position:"Query" name:"DomainGroupName"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveDomainGroupResponse is the response struct for api SaveDomainGroup +type SaveDomainGroupResponse struct { + *responses.BaseResponse + BeingDeleted bool `json:"BeingDeleted" xml:"BeingDeleted"` + CreationDate string `json:"CreationDate" xml:"CreationDate"` + RequestId string `json:"RequestId" xml:"RequestId"` + DomainGroupName string `json:"DomainGroupName" xml:"DomainGroupName"` + ModificationDate string `json:"ModificationDate" xml:"ModificationDate"` + DomainGroupStatus string `json:"DomainGroupStatus" xml:"DomainGroupStatus"` + DomainGroupId int64 `json:"DomainGroupId" xml:"DomainGroupId"` + TotalNumber int `json:"TotalNumber" xml:"TotalNumber"` +} + +// CreateSaveDomainGroupRequest creates a request to invoke SaveDomainGroup API +func CreateSaveDomainGroupRequest() (request *SaveDomainGroupRequest) { + request = &SaveDomainGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveDomainGroup", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveDomainGroupResponse creates a response to parse from SaveDomainGroup response +func CreateSaveDomainGroupResponse() (response *SaveDomainGroupResponse) { + response = &SaveDomainGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_registrant_profile.go b/services/domain/save_registrant_profile.go new file mode 100644 index 0000000000..f4dd5431e0 --- /dev/null +++ b/services/domain/save_registrant_profile.go @@ -0,0 +1,121 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveRegistrantProfile invokes the domain.SaveRegistrantProfile API synchronously +func (client *Client) SaveRegistrantProfile(request *SaveRegistrantProfileRequest) (response *SaveRegistrantProfileResponse, err error) { + response = CreateSaveRegistrantProfileResponse() + err = client.DoAction(request, response) + return +} + +// SaveRegistrantProfileWithChan invokes the domain.SaveRegistrantProfile API asynchronously +func (client *Client) SaveRegistrantProfileWithChan(request *SaveRegistrantProfileRequest) (<-chan *SaveRegistrantProfileResponse, <-chan error) { + responseChan := make(chan *SaveRegistrantProfileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveRegistrantProfile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveRegistrantProfileWithCallback invokes the domain.SaveRegistrantProfile API asynchronously +func (client *Client) SaveRegistrantProfileWithCallback(request *SaveRegistrantProfileRequest, callback func(response *SaveRegistrantProfileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveRegistrantProfileResponse + var err error + defer close(result) + response, err = client.SaveRegistrantProfile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveRegistrantProfileRequest is the request struct for api SaveRegistrantProfile +type SaveRegistrantProfileRequest struct { + *requests.RpcRequest + Country string `position:"Query" name:"Country"` + City string `position:"Query" name:"City"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + ZhCity string `position:"Query" name:"ZhCity"` + TelExt string `position:"Query" name:"TelExt"` + Province string `position:"Query" name:"Province"` + ZhRegistrantName string `position:"Query" name:"ZhRegistrantName"` + PostalCode string `position:"Query" name:"PostalCode"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + ZhRegistrantOrganization string `position:"Query" name:"ZhRegistrantOrganization"` + Address string `position:"Query" name:"Address"` + TelArea string `position:"Query" name:"TelArea"` + ZhAddress string `position:"Query" name:"ZhAddress"` + RegistrantType string `position:"Query" name:"RegistrantType"` + RegistrantProfileType string `position:"Query" name:"RegistrantProfileType"` + Telephone string `position:"Query" name:"Telephone"` + DefaultRegistrantProfile requests.Boolean `position:"Query" name:"DefaultRegistrantProfile"` + ZhProvince string `position:"Query" name:"ZhProvince"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrantName string `position:"Query" name:"RegistrantName"` +} + +// SaveRegistrantProfileResponse is the response struct for api SaveRegistrantProfile +type SaveRegistrantProfileResponse struct { + *responses.BaseResponse + RegistrantProfileId int64 `json:"RegistrantProfileId" xml:"RegistrantProfileId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSaveRegistrantProfileRequest creates a request to invoke SaveRegistrantProfile API +func CreateSaveRegistrantProfileRequest() (request *SaveRegistrantProfileRequest) { + request = &SaveRegistrantProfileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveRegistrantProfile", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveRegistrantProfileResponse creates a response to parse from SaveRegistrantProfile response +func CreateSaveRegistrantProfileResponse() (response *SaveRegistrantProfileResponse) { + response = &SaveRegistrantProfileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_registrant_profile_real_name_verification.go b/services/domain/save_registrant_profile_real_name_verification.go new file mode 100644 index 0000000000..7f637b703a --- /dev/null +++ b/services/domain/save_registrant_profile_real_name_verification.go @@ -0,0 +1,123 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveRegistrantProfileRealNameVerification invokes the domain.SaveRegistrantProfileRealNameVerification API synchronously +func (client *Client) SaveRegistrantProfileRealNameVerification(request *SaveRegistrantProfileRealNameVerificationRequest) (response *SaveRegistrantProfileRealNameVerificationResponse, err error) { + response = CreateSaveRegistrantProfileRealNameVerificationResponse() + err = client.DoAction(request, response) + return +} + +// SaveRegistrantProfileRealNameVerificationWithChan invokes the domain.SaveRegistrantProfileRealNameVerification API asynchronously +func (client *Client) SaveRegistrantProfileRealNameVerificationWithChan(request *SaveRegistrantProfileRealNameVerificationRequest) (<-chan *SaveRegistrantProfileRealNameVerificationResponse, <-chan error) { + responseChan := make(chan *SaveRegistrantProfileRealNameVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveRegistrantProfileRealNameVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveRegistrantProfileRealNameVerificationWithCallback invokes the domain.SaveRegistrantProfileRealNameVerification API asynchronously +func (client *Client) SaveRegistrantProfileRealNameVerificationWithCallback(request *SaveRegistrantProfileRealNameVerificationRequest, callback func(response *SaveRegistrantProfileRealNameVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveRegistrantProfileRealNameVerificationResponse + var err error + defer close(result) + response, err = client.SaveRegistrantProfileRealNameVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveRegistrantProfileRealNameVerificationRequest is the request struct for api SaveRegistrantProfileRealNameVerification +type SaveRegistrantProfileRealNameVerificationRequest struct { + *requests.RpcRequest + Country string `position:"Query" name:"Country"` + IdentityCredentialType string `position:"Query" name:"IdentityCredentialType"` + City string `position:"Query" name:"City"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + IdentityCredential string `position:"Query" name:"IdentityCredential"` + ZhCity string `position:"Query" name:"ZhCity"` + TelExt string `position:"Query" name:"TelExt"` + Province string `position:"Query" name:"Province"` + ZhRegistrantName string `position:"Query" name:"ZhRegistrantName"` + PostalCode string `position:"Query" name:"PostalCode"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + ZhRegistrantOrganization string `position:"Query" name:"ZhRegistrantOrganization"` + Address string `position:"Query" name:"Address"` + TelArea string `position:"Query" name:"TelArea"` + ZhAddress string `position:"Query" name:"ZhAddress"` + RegistrantType string `position:"Query" name:"RegistrantType"` + RegistrantProfileType string `position:"Query" name:"RegistrantProfileType"` + Telephone string `position:"Query" name:"Telephone"` + ZhProvince string `position:"Query" name:"ZhProvince"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + UserClientIp string `position:"Query" name:"UserClientIp"` + IdentityCredentialNo string `position:"Query" name:"IdentityCredentialNo"` + RegistrantName string `position:"Query" name:"RegistrantName"` +} + +// SaveRegistrantProfileRealNameVerificationResponse is the response struct for api SaveRegistrantProfileRealNameVerification +type SaveRegistrantProfileRealNameVerificationResponse struct { + *responses.BaseResponse + RegistrantProfileId int64 `json:"RegistrantProfileId" xml:"RegistrantProfileId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSaveRegistrantProfileRealNameVerificationRequest creates a request to invoke SaveRegistrantProfileRealNameVerification API +func CreateSaveRegistrantProfileRealNameVerificationRequest() (request *SaveRegistrantProfileRealNameVerificationRequest) { + request = &SaveRegistrantProfileRealNameVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveRegistrantProfileRealNameVerification", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveRegistrantProfileRealNameVerificationResponse creates a response to parse from SaveRegistrantProfileRealNameVerification response +func CreateSaveRegistrantProfileRealNameVerificationResponse() (response *SaveRegistrantProfileRealNameVerificationResponse) { + response = &SaveRegistrantProfileRealNameVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_adding_ds_record.go b/services/domain/save_single_task_for_adding_ds_record.go new file mode 100644 index 0000000000..e56472198c --- /dev/null +++ b/services/domain/save_single_task_for_adding_ds_record.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForAddingDSRecord invokes the domain.SaveSingleTaskForAddingDSRecord API synchronously +func (client *Client) SaveSingleTaskForAddingDSRecord(request *SaveSingleTaskForAddingDSRecordRequest) (response *SaveSingleTaskForAddingDSRecordResponse, err error) { + response = CreateSaveSingleTaskForAddingDSRecordResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForAddingDSRecordWithChan invokes the domain.SaveSingleTaskForAddingDSRecord API asynchronously +func (client *Client) SaveSingleTaskForAddingDSRecordWithChan(request *SaveSingleTaskForAddingDSRecordRequest) (<-chan *SaveSingleTaskForAddingDSRecordResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForAddingDSRecordResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForAddingDSRecord(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForAddingDSRecordWithCallback invokes the domain.SaveSingleTaskForAddingDSRecord API asynchronously +func (client *Client) SaveSingleTaskForAddingDSRecordWithCallback(request *SaveSingleTaskForAddingDSRecordRequest, callback func(response *SaveSingleTaskForAddingDSRecordResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForAddingDSRecordResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForAddingDSRecord(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForAddingDSRecordRequest is the request struct for api SaveSingleTaskForAddingDSRecord +type SaveSingleTaskForAddingDSRecordRequest struct { + *requests.RpcRequest + KeyTag requests.Integer `position:"Query" name:"KeyTag"` + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DigestType requests.Integer `position:"Query" name:"DigestType"` + Digest string `position:"Query" name:"Digest"` + Lang string `position:"Query" name:"Lang"` + Algorithm requests.Integer `position:"Query" name:"Algorithm"` +} + +// SaveSingleTaskForAddingDSRecordResponse is the response struct for api SaveSingleTaskForAddingDSRecord +type SaveSingleTaskForAddingDSRecordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForAddingDSRecordRequest creates a request to invoke SaveSingleTaskForAddingDSRecord API +func CreateSaveSingleTaskForAddingDSRecordRequest() (request *SaveSingleTaskForAddingDSRecordRequest) { + request = &SaveSingleTaskForAddingDSRecordRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForAddingDSRecord", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForAddingDSRecordResponse creates a response to parse from SaveSingleTaskForAddingDSRecord response +func CreateSaveSingleTaskForAddingDSRecordResponse() (response *SaveSingleTaskForAddingDSRecordResponse) { + response = &SaveSingleTaskForAddingDSRecordResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_apply_quick_transfer_out_openly.go b/services/domain/save_single_task_for_apply_quick_transfer_out_openly.go new file mode 100644 index 0000000000..ae3467b6c1 --- /dev/null +++ b/services/domain/save_single_task_for_apply_quick_transfer_out_openly.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForApplyQuickTransferOutOpenly invokes the domain.SaveSingleTaskForApplyQuickTransferOutOpenly API synchronously +func (client *Client) SaveSingleTaskForApplyQuickTransferOutOpenly(request *SaveSingleTaskForApplyQuickTransferOutOpenlyRequest) (response *SaveSingleTaskForApplyQuickTransferOutOpenlyResponse, err error) { + response = CreateSaveSingleTaskForApplyQuickTransferOutOpenlyResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForApplyQuickTransferOutOpenlyWithChan invokes the domain.SaveSingleTaskForApplyQuickTransferOutOpenly API asynchronously +func (client *Client) SaveSingleTaskForApplyQuickTransferOutOpenlyWithChan(request *SaveSingleTaskForApplyQuickTransferOutOpenlyRequest) (<-chan *SaveSingleTaskForApplyQuickTransferOutOpenlyResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForApplyQuickTransferOutOpenlyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForApplyQuickTransferOutOpenly(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForApplyQuickTransferOutOpenlyWithCallback invokes the domain.SaveSingleTaskForApplyQuickTransferOutOpenly API asynchronously +func (client *Client) SaveSingleTaskForApplyQuickTransferOutOpenlyWithCallback(request *SaveSingleTaskForApplyQuickTransferOutOpenlyRequest, callback func(response *SaveSingleTaskForApplyQuickTransferOutOpenlyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForApplyQuickTransferOutOpenlyResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForApplyQuickTransferOutOpenly(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForApplyQuickTransferOutOpenlyRequest is the request struct for api SaveSingleTaskForApplyQuickTransferOutOpenly +type SaveSingleTaskForApplyQuickTransferOutOpenlyRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForApplyQuickTransferOutOpenlyResponse is the response struct for api SaveSingleTaskForApplyQuickTransferOutOpenly +type SaveSingleTaskForApplyQuickTransferOutOpenlyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForApplyQuickTransferOutOpenlyRequest creates a request to invoke SaveSingleTaskForApplyQuickTransferOutOpenly API +func CreateSaveSingleTaskForApplyQuickTransferOutOpenlyRequest() (request *SaveSingleTaskForApplyQuickTransferOutOpenlyRequest) { + request = &SaveSingleTaskForApplyQuickTransferOutOpenlyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForApplyQuickTransferOutOpenly", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForApplyQuickTransferOutOpenlyResponse creates a response to parse from SaveSingleTaskForApplyQuickTransferOutOpenly response +func CreateSaveSingleTaskForApplyQuickTransferOutOpenlyResponse() (response *SaveSingleTaskForApplyQuickTransferOutOpenlyResponse) { + response = &SaveSingleTaskForApplyQuickTransferOutOpenlyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_approving_transfer_out.go b/services/domain/save_single_task_for_approving_transfer_out.go new file mode 100644 index 0000000000..14313f19b5 --- /dev/null +++ b/services/domain/save_single_task_for_approving_transfer_out.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForApprovingTransferOut invokes the domain.SaveSingleTaskForApprovingTransferOut API synchronously +func (client *Client) SaveSingleTaskForApprovingTransferOut(request *SaveSingleTaskForApprovingTransferOutRequest) (response *SaveSingleTaskForApprovingTransferOutResponse, err error) { + response = CreateSaveSingleTaskForApprovingTransferOutResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForApprovingTransferOutWithChan invokes the domain.SaveSingleTaskForApprovingTransferOut API asynchronously +func (client *Client) SaveSingleTaskForApprovingTransferOutWithChan(request *SaveSingleTaskForApprovingTransferOutRequest) (<-chan *SaveSingleTaskForApprovingTransferOutResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForApprovingTransferOutResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForApprovingTransferOut(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForApprovingTransferOutWithCallback invokes the domain.SaveSingleTaskForApprovingTransferOut API asynchronously +func (client *Client) SaveSingleTaskForApprovingTransferOutWithCallback(request *SaveSingleTaskForApprovingTransferOutRequest, callback func(response *SaveSingleTaskForApprovingTransferOutResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForApprovingTransferOutResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForApprovingTransferOut(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForApprovingTransferOutRequest is the request struct for api SaveSingleTaskForApprovingTransferOut +type SaveSingleTaskForApprovingTransferOutRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForApprovingTransferOutResponse is the response struct for api SaveSingleTaskForApprovingTransferOut +type SaveSingleTaskForApprovingTransferOutResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForApprovingTransferOutRequest creates a request to invoke SaveSingleTaskForApprovingTransferOut API +func CreateSaveSingleTaskForApprovingTransferOutRequest() (request *SaveSingleTaskForApprovingTransferOutRequest) { + request = &SaveSingleTaskForApprovingTransferOutRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForApprovingTransferOut", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForApprovingTransferOutResponse creates a response to parse from SaveSingleTaskForApprovingTransferOut response +func CreateSaveSingleTaskForApprovingTransferOutResponse() (response *SaveSingleTaskForApprovingTransferOutResponse) { + response = &SaveSingleTaskForApprovingTransferOutResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_associating_ens.go b/services/domain/save_single_task_for_associating_ens.go new file mode 100644 index 0000000000..5bb49ae9fb --- /dev/null +++ b/services/domain/save_single_task_for_associating_ens.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForAssociatingEns invokes the domain.SaveSingleTaskForAssociatingEns API synchronously +func (client *Client) SaveSingleTaskForAssociatingEns(request *SaveSingleTaskForAssociatingEnsRequest) (response *SaveSingleTaskForAssociatingEnsResponse, err error) { + response = CreateSaveSingleTaskForAssociatingEnsResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForAssociatingEnsWithChan invokes the domain.SaveSingleTaskForAssociatingEns API asynchronously +func (client *Client) SaveSingleTaskForAssociatingEnsWithChan(request *SaveSingleTaskForAssociatingEnsRequest) (<-chan *SaveSingleTaskForAssociatingEnsResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForAssociatingEnsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForAssociatingEns(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForAssociatingEnsWithCallback invokes the domain.SaveSingleTaskForAssociatingEns API asynchronously +func (client *Client) SaveSingleTaskForAssociatingEnsWithCallback(request *SaveSingleTaskForAssociatingEnsRequest, callback func(response *SaveSingleTaskForAssociatingEnsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForAssociatingEnsResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForAssociatingEns(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForAssociatingEnsRequest is the request struct for api SaveSingleTaskForAssociatingEns +type SaveSingleTaskForAssociatingEnsRequest struct { + *requests.RpcRequest + Address string `position:"Query" name:"Address"` + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForAssociatingEnsResponse is the response struct for api SaveSingleTaskForAssociatingEns +type SaveSingleTaskForAssociatingEnsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForAssociatingEnsRequest creates a request to invoke SaveSingleTaskForAssociatingEns API +func CreateSaveSingleTaskForAssociatingEnsRequest() (request *SaveSingleTaskForAssociatingEnsRequest) { + request = &SaveSingleTaskForAssociatingEnsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForAssociatingEns", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForAssociatingEnsResponse creates a response to parse from SaveSingleTaskForAssociatingEns response +func CreateSaveSingleTaskForAssociatingEnsResponse() (response *SaveSingleTaskForAssociatingEnsResponse) { + response = &SaveSingleTaskForAssociatingEnsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_canceling_transfer_in.go b/services/domain/save_single_task_for_canceling_transfer_in.go new file mode 100644 index 0000000000..0d18a5484c --- /dev/null +++ b/services/domain/save_single_task_for_canceling_transfer_in.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCancelingTransferIn invokes the domain.SaveSingleTaskForCancelingTransferIn API synchronously +func (client *Client) SaveSingleTaskForCancelingTransferIn(request *SaveSingleTaskForCancelingTransferInRequest) (response *SaveSingleTaskForCancelingTransferInResponse, err error) { + response = CreateSaveSingleTaskForCancelingTransferInResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCancelingTransferInWithChan invokes the domain.SaveSingleTaskForCancelingTransferIn API asynchronously +func (client *Client) SaveSingleTaskForCancelingTransferInWithChan(request *SaveSingleTaskForCancelingTransferInRequest) (<-chan *SaveSingleTaskForCancelingTransferInResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCancelingTransferInResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCancelingTransferIn(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCancelingTransferInWithCallback invokes the domain.SaveSingleTaskForCancelingTransferIn API asynchronously +func (client *Client) SaveSingleTaskForCancelingTransferInWithCallback(request *SaveSingleTaskForCancelingTransferInRequest, callback func(response *SaveSingleTaskForCancelingTransferInResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCancelingTransferInResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCancelingTransferIn(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCancelingTransferInRequest is the request struct for api SaveSingleTaskForCancelingTransferIn +type SaveSingleTaskForCancelingTransferInRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForCancelingTransferInResponse is the response struct for api SaveSingleTaskForCancelingTransferIn +type SaveSingleTaskForCancelingTransferInResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCancelingTransferInRequest creates a request to invoke SaveSingleTaskForCancelingTransferIn API +func CreateSaveSingleTaskForCancelingTransferInRequest() (request *SaveSingleTaskForCancelingTransferInRequest) { + request = &SaveSingleTaskForCancelingTransferInRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCancelingTransferIn", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForCancelingTransferInResponse creates a response to parse from SaveSingleTaskForCancelingTransferIn response +func CreateSaveSingleTaskForCancelingTransferInResponse() (response *SaveSingleTaskForCancelingTransferInResponse) { + response = &SaveSingleTaskForCancelingTransferInResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_canceling_transfer_out.go b/services/domain/save_single_task_for_canceling_transfer_out.go new file mode 100644 index 0000000000..d845e09943 --- /dev/null +++ b/services/domain/save_single_task_for_canceling_transfer_out.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCancelingTransferOut invokes the domain.SaveSingleTaskForCancelingTransferOut API synchronously +func (client *Client) SaveSingleTaskForCancelingTransferOut(request *SaveSingleTaskForCancelingTransferOutRequest) (response *SaveSingleTaskForCancelingTransferOutResponse, err error) { + response = CreateSaveSingleTaskForCancelingTransferOutResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCancelingTransferOutWithChan invokes the domain.SaveSingleTaskForCancelingTransferOut API asynchronously +func (client *Client) SaveSingleTaskForCancelingTransferOutWithChan(request *SaveSingleTaskForCancelingTransferOutRequest) (<-chan *SaveSingleTaskForCancelingTransferOutResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCancelingTransferOutResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCancelingTransferOut(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCancelingTransferOutWithCallback invokes the domain.SaveSingleTaskForCancelingTransferOut API asynchronously +func (client *Client) SaveSingleTaskForCancelingTransferOutWithCallback(request *SaveSingleTaskForCancelingTransferOutRequest, callback func(response *SaveSingleTaskForCancelingTransferOutResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCancelingTransferOutResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCancelingTransferOut(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCancelingTransferOutRequest is the request struct for api SaveSingleTaskForCancelingTransferOut +type SaveSingleTaskForCancelingTransferOutRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForCancelingTransferOutResponse is the response struct for api SaveSingleTaskForCancelingTransferOut +type SaveSingleTaskForCancelingTransferOutResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCancelingTransferOutRequest creates a request to invoke SaveSingleTaskForCancelingTransferOut API +func CreateSaveSingleTaskForCancelingTransferOutRequest() (request *SaveSingleTaskForCancelingTransferOutRequest) { + request = &SaveSingleTaskForCancelingTransferOutRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCancelingTransferOut", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForCancelingTransferOutResponse creates a response to parse from SaveSingleTaskForCancelingTransferOut response +func CreateSaveSingleTaskForCancelingTransferOutResponse() (response *SaveSingleTaskForCancelingTransferOutResponse) { + response = &SaveSingleTaskForCancelingTransferOutResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_creating_dns_host.go b/services/domain/save_single_task_for_creating_dns_host.go new file mode 100644 index 0000000000..7b95ae0254 --- /dev/null +++ b/services/domain/save_single_task_for_creating_dns_host.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingDnsHost invokes the domain.SaveSingleTaskForCreatingDnsHost API synchronously +func (client *Client) SaveSingleTaskForCreatingDnsHost(request *SaveSingleTaskForCreatingDnsHostRequest) (response *SaveSingleTaskForCreatingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForCreatingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingDnsHostWithChan invokes the domain.SaveSingleTaskForCreatingDnsHost API asynchronously +func (client *Client) SaveSingleTaskForCreatingDnsHostWithChan(request *SaveSingleTaskForCreatingDnsHostRequest) (<-chan *SaveSingleTaskForCreatingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingDnsHostWithCallback invokes the domain.SaveSingleTaskForCreatingDnsHost API asynchronously +func (client *Client) SaveSingleTaskForCreatingDnsHostWithCallback(request *SaveSingleTaskForCreatingDnsHostRequest, callback func(response *SaveSingleTaskForCreatingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingDnsHostRequest is the request struct for api SaveSingleTaskForCreatingDnsHost +type SaveSingleTaskForCreatingDnsHostRequest struct { + *requests.RpcRequest + Ip *[]string `position:"Query" name:"Ip" type:"Repeated"` + InstanceId string `position:"Query" name:"InstanceId"` + DnsName string `position:"Query" name:"DnsName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForCreatingDnsHostResponse is the response struct for api SaveSingleTaskForCreatingDnsHost +type SaveSingleTaskForCreatingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingDnsHostRequest creates a request to invoke SaveSingleTaskForCreatingDnsHost API +func CreateSaveSingleTaskForCreatingDnsHostRequest() (request *SaveSingleTaskForCreatingDnsHostRequest) { + request = &SaveSingleTaskForCreatingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCreatingDnsHost", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForCreatingDnsHostResponse creates a response to parse from SaveSingleTaskForCreatingDnsHost response +func CreateSaveSingleTaskForCreatingDnsHostResponse() (response *SaveSingleTaskForCreatingDnsHostResponse) { + response = &SaveSingleTaskForCreatingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_creating_order_activate.go b/services/domain/save_single_task_for_creating_order_activate.go new file mode 100644 index 0000000000..d1d4da5235 --- /dev/null +++ b/services/domain/save_single_task_for_creating_order_activate.go @@ -0,0 +1,132 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderActivate invokes the domain.SaveSingleTaskForCreatingOrderActivate API synchronously +func (client *Client) SaveSingleTaskForCreatingOrderActivate(request *SaveSingleTaskForCreatingOrderActivateRequest) (response *SaveSingleTaskForCreatingOrderActivateResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderActivateResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderActivateWithChan invokes the domain.SaveSingleTaskForCreatingOrderActivate API asynchronously +func (client *Client) SaveSingleTaskForCreatingOrderActivateWithChan(request *SaveSingleTaskForCreatingOrderActivateRequest) (<-chan *SaveSingleTaskForCreatingOrderActivateResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderActivateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderActivate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderActivateWithCallback invokes the domain.SaveSingleTaskForCreatingOrderActivate API asynchronously +func (client *Client) SaveSingleTaskForCreatingOrderActivateWithCallback(request *SaveSingleTaskForCreatingOrderActivateRequest, callback func(response *SaveSingleTaskForCreatingOrderActivateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderActivateResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderActivate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderActivateRequest is the request struct for api SaveSingleTaskForCreatingOrderActivate +type SaveSingleTaskForCreatingOrderActivateRequest struct { + *requests.RpcRequest + Country string `position:"Query" name:"Country"` + Dns2 string `position:"Query" name:"Dns2"` + Dns1 string `position:"Query" name:"Dns1"` + CouponNo string `position:"Query" name:"CouponNo"` + ZhCity string `position:"Query" name:"ZhCity"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + TelExt string `position:"Query" name:"TelExt"` + Province string `position:"Query" name:"Province"` + DomainName string `position:"Query" name:"DomainName"` + ZhAddress string `position:"Query" name:"ZhAddress"` + Telephone string `position:"Query" name:"Telephone"` + ZhProvince string `position:"Query" name:"ZhProvince"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + PromotionNo string `position:"Query" name:"PromotionNo"` + RegistrantName string `position:"Query" name:"RegistrantName"` + UsePromotion requests.Boolean `position:"Query" name:"UsePromotion"` + SubscriptionDuration requests.Integer `position:"Query" name:"SubscriptionDuration"` + PermitPremiumActivation requests.Boolean `position:"Query" name:"PermitPremiumActivation"` + City string `position:"Query" name:"City"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + AliyunDns requests.Boolean `position:"Query" name:"AliyunDns"` + ZhRegistrantName string `position:"Query" name:"ZhRegistrantName"` + PostalCode string `position:"Query" name:"PostalCode"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + ZhRegistrantOrganization string `position:"Query" name:"ZhRegistrantOrganization"` + Address string `position:"Query" name:"Address"` + TelArea string `position:"Query" name:"TelArea"` + RegistrantType string `position:"Query" name:"RegistrantType"` + TrademarkDomainActivation requests.Boolean `position:"Query" name:"TrademarkDomainActivation"` + UseCoupon requests.Boolean `position:"Query" name:"UseCoupon"` + EnableDomainProxy requests.Boolean `position:"Query" name:"EnableDomainProxy"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// SaveSingleTaskForCreatingOrderActivateResponse is the response struct for api SaveSingleTaskForCreatingOrderActivate +type SaveSingleTaskForCreatingOrderActivateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderActivateRequest creates a request to invoke SaveSingleTaskForCreatingOrderActivate API +func CreateSaveSingleTaskForCreatingOrderActivateRequest() (request *SaveSingleTaskForCreatingOrderActivateRequest) { + request = &SaveSingleTaskForCreatingOrderActivateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCreatingOrderActivate", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForCreatingOrderActivateResponse creates a response to parse from SaveSingleTaskForCreatingOrderActivate response +func CreateSaveSingleTaskForCreatingOrderActivateResponse() (response *SaveSingleTaskForCreatingOrderActivateResponse) { + response = &SaveSingleTaskForCreatingOrderActivateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_creating_order_redeem.go b/services/domain/save_single_task_for_creating_order_redeem.go new file mode 100644 index 0000000000..b001cba84b --- /dev/null +++ b/services/domain/save_single_task_for_creating_order_redeem.go @@ -0,0 +1,107 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderRedeem invokes the domain.SaveSingleTaskForCreatingOrderRedeem API synchronously +func (client *Client) SaveSingleTaskForCreatingOrderRedeem(request *SaveSingleTaskForCreatingOrderRedeemRequest) (response *SaveSingleTaskForCreatingOrderRedeemResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderRedeemResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderRedeemWithChan invokes the domain.SaveSingleTaskForCreatingOrderRedeem API asynchronously +func (client *Client) SaveSingleTaskForCreatingOrderRedeemWithChan(request *SaveSingleTaskForCreatingOrderRedeemRequest) (<-chan *SaveSingleTaskForCreatingOrderRedeemResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderRedeemResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderRedeem(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderRedeemWithCallback invokes the domain.SaveSingleTaskForCreatingOrderRedeem API asynchronously +func (client *Client) SaveSingleTaskForCreatingOrderRedeemWithCallback(request *SaveSingleTaskForCreatingOrderRedeemRequest, callback func(response *SaveSingleTaskForCreatingOrderRedeemResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderRedeemResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderRedeem(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderRedeemRequest is the request struct for api SaveSingleTaskForCreatingOrderRedeem +type SaveSingleTaskForCreatingOrderRedeemRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + CouponNo string `position:"Query" name:"CouponNo"` + UseCoupon requests.Boolean `position:"Query" name:"UseCoupon"` + PromotionNo string `position:"Query" name:"PromotionNo"` + CurrentExpirationDate requests.Integer `position:"Query" name:"CurrentExpirationDate"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + UsePromotion requests.Boolean `position:"Query" name:"UsePromotion"` +} + +// SaveSingleTaskForCreatingOrderRedeemResponse is the response struct for api SaveSingleTaskForCreatingOrderRedeem +type SaveSingleTaskForCreatingOrderRedeemResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderRedeemRequest creates a request to invoke SaveSingleTaskForCreatingOrderRedeem API +func CreateSaveSingleTaskForCreatingOrderRedeemRequest() (request *SaveSingleTaskForCreatingOrderRedeemRequest) { + request = &SaveSingleTaskForCreatingOrderRedeemRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCreatingOrderRedeem", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForCreatingOrderRedeemResponse creates a response to parse from SaveSingleTaskForCreatingOrderRedeem response +func CreateSaveSingleTaskForCreatingOrderRedeemResponse() (response *SaveSingleTaskForCreatingOrderRedeemResponse) { + response = &SaveSingleTaskForCreatingOrderRedeemResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_creating_order_renew.go b/services/domain/save_single_task_for_creating_order_renew.go new file mode 100644 index 0000000000..6398e56083 --- /dev/null +++ b/services/domain/save_single_task_for_creating_order_renew.go @@ -0,0 +1,108 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderRenew invokes the domain.SaveSingleTaskForCreatingOrderRenew API synchronously +func (client *Client) SaveSingleTaskForCreatingOrderRenew(request *SaveSingleTaskForCreatingOrderRenewRequest) (response *SaveSingleTaskForCreatingOrderRenewResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderRenewResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderRenewWithChan invokes the domain.SaveSingleTaskForCreatingOrderRenew API asynchronously +func (client *Client) SaveSingleTaskForCreatingOrderRenewWithChan(request *SaveSingleTaskForCreatingOrderRenewRequest) (<-chan *SaveSingleTaskForCreatingOrderRenewResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderRenewResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderRenew(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderRenewWithCallback invokes the domain.SaveSingleTaskForCreatingOrderRenew API asynchronously +func (client *Client) SaveSingleTaskForCreatingOrderRenewWithCallback(request *SaveSingleTaskForCreatingOrderRenewRequest, callback func(response *SaveSingleTaskForCreatingOrderRenewResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderRenewResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderRenew(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderRenewRequest is the request struct for api SaveSingleTaskForCreatingOrderRenew +type SaveSingleTaskForCreatingOrderRenewRequest struct { + *requests.RpcRequest + SubscriptionDuration requests.Integer `position:"Query" name:"SubscriptionDuration"` + CouponNo string `position:"Query" name:"CouponNo"` + CurrentExpirationDate requests.Integer `position:"Query" name:"CurrentExpirationDate"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + UseCoupon requests.Boolean `position:"Query" name:"UseCoupon"` + PromotionNo string `position:"Query" name:"PromotionNo"` + UserClientIp string `position:"Query" name:"UserClientIp"` + UsePromotion requests.Boolean `position:"Query" name:"UsePromotion"` +} + +// SaveSingleTaskForCreatingOrderRenewResponse is the response struct for api SaveSingleTaskForCreatingOrderRenew +type SaveSingleTaskForCreatingOrderRenewResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderRenewRequest creates a request to invoke SaveSingleTaskForCreatingOrderRenew API +func CreateSaveSingleTaskForCreatingOrderRenewRequest() (request *SaveSingleTaskForCreatingOrderRenewRequest) { + request = &SaveSingleTaskForCreatingOrderRenewRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCreatingOrderRenew", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForCreatingOrderRenewResponse creates a response to parse from SaveSingleTaskForCreatingOrderRenew response +func CreateSaveSingleTaskForCreatingOrderRenewResponse() (response *SaveSingleTaskForCreatingOrderRenewResponse) { + response = &SaveSingleTaskForCreatingOrderRenewResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_creating_order_transfer.go b/services/domain/save_single_task_for_creating_order_transfer.go new file mode 100644 index 0000000000..cf7fafab82 --- /dev/null +++ b/services/domain/save_single_task_for_creating_order_transfer.go @@ -0,0 +1,109 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForCreatingOrderTransfer invokes the domain.SaveSingleTaskForCreatingOrderTransfer API synchronously +func (client *Client) SaveSingleTaskForCreatingOrderTransfer(request *SaveSingleTaskForCreatingOrderTransferRequest) (response *SaveSingleTaskForCreatingOrderTransferResponse, err error) { + response = CreateSaveSingleTaskForCreatingOrderTransferResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForCreatingOrderTransferWithChan invokes the domain.SaveSingleTaskForCreatingOrderTransfer API asynchronously +func (client *Client) SaveSingleTaskForCreatingOrderTransferWithChan(request *SaveSingleTaskForCreatingOrderTransferRequest) (<-chan *SaveSingleTaskForCreatingOrderTransferResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForCreatingOrderTransferResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForCreatingOrderTransfer(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForCreatingOrderTransferWithCallback invokes the domain.SaveSingleTaskForCreatingOrderTransfer API asynchronously +func (client *Client) SaveSingleTaskForCreatingOrderTransferWithCallback(request *SaveSingleTaskForCreatingOrderTransferRequest, callback func(response *SaveSingleTaskForCreatingOrderTransferResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForCreatingOrderTransferResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForCreatingOrderTransfer(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForCreatingOrderTransferRequest is the request struct for api SaveSingleTaskForCreatingOrderTransfer +type SaveSingleTaskForCreatingOrderTransferRequest struct { + *requests.RpcRequest + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + CouponNo string `position:"Query" name:"CouponNo"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + UseCoupon requests.Boolean `position:"Query" name:"UseCoupon"` + PermitPremiumTransfer requests.Boolean `position:"Query" name:"PermitPremiumTransfer"` + PromotionNo string `position:"Query" name:"PromotionNo"` + AuthorizationCode string `position:"Query" name:"AuthorizationCode"` + UserClientIp string `position:"Query" name:"UserClientIp"` + UsePromotion requests.Boolean `position:"Query" name:"UsePromotion"` +} + +// SaveSingleTaskForCreatingOrderTransferResponse is the response struct for api SaveSingleTaskForCreatingOrderTransfer +type SaveSingleTaskForCreatingOrderTransferResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForCreatingOrderTransferRequest creates a request to invoke SaveSingleTaskForCreatingOrderTransfer API +func CreateSaveSingleTaskForCreatingOrderTransferRequest() (request *SaveSingleTaskForCreatingOrderTransferRequest) { + request = &SaveSingleTaskForCreatingOrderTransferRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForCreatingOrderTransfer", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForCreatingOrderTransferResponse creates a response to parse from SaveSingleTaskForCreatingOrderTransfer response +func CreateSaveSingleTaskForCreatingOrderTransferResponse() (response *SaveSingleTaskForCreatingOrderTransferResponse) { + response = &SaveSingleTaskForCreatingOrderTransferResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_deleting_dns_host.go b/services/domain/save_single_task_for_deleting_dns_host.go new file mode 100644 index 0000000000..aac545684a --- /dev/null +++ b/services/domain/save_single_task_for_deleting_dns_host.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForDeletingDnsHost invokes the domain.SaveSingleTaskForDeletingDnsHost API synchronously +func (client *Client) SaveSingleTaskForDeletingDnsHost(request *SaveSingleTaskForDeletingDnsHostRequest) (response *SaveSingleTaskForDeletingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForDeletingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForDeletingDnsHostWithChan invokes the domain.SaveSingleTaskForDeletingDnsHost API asynchronously +func (client *Client) SaveSingleTaskForDeletingDnsHostWithChan(request *SaveSingleTaskForDeletingDnsHostRequest) (<-chan *SaveSingleTaskForDeletingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForDeletingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForDeletingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForDeletingDnsHostWithCallback invokes the domain.SaveSingleTaskForDeletingDnsHost API asynchronously +func (client *Client) SaveSingleTaskForDeletingDnsHostWithCallback(request *SaveSingleTaskForDeletingDnsHostRequest, callback func(response *SaveSingleTaskForDeletingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForDeletingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForDeletingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForDeletingDnsHostRequest is the request struct for api SaveSingleTaskForDeletingDnsHost +type SaveSingleTaskForDeletingDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + DnsName string `position:"Query" name:"DnsName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForDeletingDnsHostResponse is the response struct for api SaveSingleTaskForDeletingDnsHost +type SaveSingleTaskForDeletingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForDeletingDnsHostRequest creates a request to invoke SaveSingleTaskForDeletingDnsHost API +func CreateSaveSingleTaskForDeletingDnsHostRequest() (request *SaveSingleTaskForDeletingDnsHostRequest) { + request = &SaveSingleTaskForDeletingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForDeletingDnsHost", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForDeletingDnsHostResponse creates a response to parse from SaveSingleTaskForDeletingDnsHost response +func CreateSaveSingleTaskForDeletingDnsHostResponse() (response *SaveSingleTaskForDeletingDnsHostResponse) { + response = &SaveSingleTaskForDeletingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_deleting_ds_record.go b/services/domain/save_single_task_for_deleting_ds_record.go new file mode 100644 index 0000000000..931ee58877 --- /dev/null +++ b/services/domain/save_single_task_for_deleting_ds_record.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForDeletingDSRecord invokes the domain.SaveSingleTaskForDeletingDSRecord API synchronously +func (client *Client) SaveSingleTaskForDeletingDSRecord(request *SaveSingleTaskForDeletingDSRecordRequest) (response *SaveSingleTaskForDeletingDSRecordResponse, err error) { + response = CreateSaveSingleTaskForDeletingDSRecordResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForDeletingDSRecordWithChan invokes the domain.SaveSingleTaskForDeletingDSRecord API asynchronously +func (client *Client) SaveSingleTaskForDeletingDSRecordWithChan(request *SaveSingleTaskForDeletingDSRecordRequest) (<-chan *SaveSingleTaskForDeletingDSRecordResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForDeletingDSRecordResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForDeletingDSRecord(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForDeletingDSRecordWithCallback invokes the domain.SaveSingleTaskForDeletingDSRecord API asynchronously +func (client *Client) SaveSingleTaskForDeletingDSRecordWithCallback(request *SaveSingleTaskForDeletingDSRecordRequest, callback func(response *SaveSingleTaskForDeletingDSRecordResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForDeletingDSRecordResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForDeletingDSRecord(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForDeletingDSRecordRequest is the request struct for api SaveSingleTaskForDeletingDSRecord +type SaveSingleTaskForDeletingDSRecordRequest struct { + *requests.RpcRequest + KeyTag requests.Integer `position:"Query" name:"KeyTag"` + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForDeletingDSRecordResponse is the response struct for api SaveSingleTaskForDeletingDSRecord +type SaveSingleTaskForDeletingDSRecordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForDeletingDSRecordRequest creates a request to invoke SaveSingleTaskForDeletingDSRecord API +func CreateSaveSingleTaskForDeletingDSRecordRequest() (request *SaveSingleTaskForDeletingDSRecordRequest) { + request = &SaveSingleTaskForDeletingDSRecordRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForDeletingDSRecord", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForDeletingDSRecordResponse creates a response to parse from SaveSingleTaskForDeletingDSRecord response +func CreateSaveSingleTaskForDeletingDSRecordResponse() (response *SaveSingleTaskForDeletingDSRecordResponse) { + response = &SaveSingleTaskForDeletingDSRecordResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_disassociating_ens.go b/services/domain/save_single_task_for_disassociating_ens.go new file mode 100644 index 0000000000..47c9cc7891 --- /dev/null +++ b/services/domain/save_single_task_for_disassociating_ens.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForDisassociatingEns invokes the domain.SaveSingleTaskForDisassociatingEns API synchronously +func (client *Client) SaveSingleTaskForDisassociatingEns(request *SaveSingleTaskForDisassociatingEnsRequest) (response *SaveSingleTaskForDisassociatingEnsResponse, err error) { + response = CreateSaveSingleTaskForDisassociatingEnsResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForDisassociatingEnsWithChan invokes the domain.SaveSingleTaskForDisassociatingEns API asynchronously +func (client *Client) SaveSingleTaskForDisassociatingEnsWithChan(request *SaveSingleTaskForDisassociatingEnsRequest) (<-chan *SaveSingleTaskForDisassociatingEnsResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForDisassociatingEnsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForDisassociatingEns(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForDisassociatingEnsWithCallback invokes the domain.SaveSingleTaskForDisassociatingEns API asynchronously +func (client *Client) SaveSingleTaskForDisassociatingEnsWithCallback(request *SaveSingleTaskForDisassociatingEnsRequest, callback func(response *SaveSingleTaskForDisassociatingEnsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForDisassociatingEnsResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForDisassociatingEns(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForDisassociatingEnsRequest is the request struct for api SaveSingleTaskForDisassociatingEns +type SaveSingleTaskForDisassociatingEnsRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForDisassociatingEnsResponse is the response struct for api SaveSingleTaskForDisassociatingEns +type SaveSingleTaskForDisassociatingEnsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForDisassociatingEnsRequest creates a request to invoke SaveSingleTaskForDisassociatingEns API +func CreateSaveSingleTaskForDisassociatingEnsRequest() (request *SaveSingleTaskForDisassociatingEnsRequest) { + request = &SaveSingleTaskForDisassociatingEnsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForDisassociatingEns", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForDisassociatingEnsResponse creates a response to parse from SaveSingleTaskForDisassociatingEns response +func CreateSaveSingleTaskForDisassociatingEnsResponse() (response *SaveSingleTaskForDisassociatingEnsResponse) { + response = &SaveSingleTaskForDisassociatingEnsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_domain_name_proxy_service.go b/services/domain/save_single_task_for_domain_name_proxy_service.go new file mode 100644 index 0000000000..60089d59bd --- /dev/null +++ b/services/domain/save_single_task_for_domain_name_proxy_service.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForDomainNameProxyService invokes the domain.SaveSingleTaskForDomainNameProxyService API synchronously +func (client *Client) SaveSingleTaskForDomainNameProxyService(request *SaveSingleTaskForDomainNameProxyServiceRequest) (response *SaveSingleTaskForDomainNameProxyServiceResponse, err error) { + response = CreateSaveSingleTaskForDomainNameProxyServiceResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForDomainNameProxyServiceWithChan invokes the domain.SaveSingleTaskForDomainNameProxyService API asynchronously +func (client *Client) SaveSingleTaskForDomainNameProxyServiceWithChan(request *SaveSingleTaskForDomainNameProxyServiceRequest) (<-chan *SaveSingleTaskForDomainNameProxyServiceResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForDomainNameProxyServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForDomainNameProxyService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForDomainNameProxyServiceWithCallback invokes the domain.SaveSingleTaskForDomainNameProxyService API asynchronously +func (client *Client) SaveSingleTaskForDomainNameProxyServiceWithCallback(request *SaveSingleTaskForDomainNameProxyServiceRequest, callback func(response *SaveSingleTaskForDomainNameProxyServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForDomainNameProxyServiceResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForDomainNameProxyService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForDomainNameProxyServiceRequest is the request struct for api SaveSingleTaskForDomainNameProxyService +type SaveSingleTaskForDomainNameProxyServiceRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveSingleTaskForDomainNameProxyServiceResponse is the response struct for api SaveSingleTaskForDomainNameProxyService +type SaveSingleTaskForDomainNameProxyServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForDomainNameProxyServiceRequest creates a request to invoke SaveSingleTaskForDomainNameProxyService API +func CreateSaveSingleTaskForDomainNameProxyServiceRequest() (request *SaveSingleTaskForDomainNameProxyServiceRequest) { + request = &SaveSingleTaskForDomainNameProxyServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForDomainNameProxyService", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForDomainNameProxyServiceResponse creates a response to parse from SaveSingleTaskForDomainNameProxyService response +func CreateSaveSingleTaskForDomainNameProxyServiceResponse() (response *SaveSingleTaskForDomainNameProxyServiceResponse) { + response = &SaveSingleTaskForDomainNameProxyServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_generate_domain_certificate.go b/services/domain/save_single_task_for_generate_domain_certificate.go new file mode 100644 index 0000000000..65ef19c392 --- /dev/null +++ b/services/domain/save_single_task_for_generate_domain_certificate.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForGenerateDomainCertificate invokes the domain.SaveSingleTaskForGenerateDomainCertificate API synchronously +func (client *Client) SaveSingleTaskForGenerateDomainCertificate(request *SaveSingleTaskForGenerateDomainCertificateRequest) (response *SaveSingleTaskForGenerateDomainCertificateResponse, err error) { + response = CreateSaveSingleTaskForGenerateDomainCertificateResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForGenerateDomainCertificateWithChan invokes the domain.SaveSingleTaskForGenerateDomainCertificate API asynchronously +func (client *Client) SaveSingleTaskForGenerateDomainCertificateWithChan(request *SaveSingleTaskForGenerateDomainCertificateRequest) (<-chan *SaveSingleTaskForGenerateDomainCertificateResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForGenerateDomainCertificateResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForGenerateDomainCertificate(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForGenerateDomainCertificateWithCallback invokes the domain.SaveSingleTaskForGenerateDomainCertificate API asynchronously +func (client *Client) SaveSingleTaskForGenerateDomainCertificateWithCallback(request *SaveSingleTaskForGenerateDomainCertificateRequest, callback func(response *SaveSingleTaskForGenerateDomainCertificateResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForGenerateDomainCertificateResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForGenerateDomainCertificate(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForGenerateDomainCertificateRequest is the request struct for api SaveSingleTaskForGenerateDomainCertificate +type SaveSingleTaskForGenerateDomainCertificateRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForGenerateDomainCertificateResponse is the response struct for api SaveSingleTaskForGenerateDomainCertificate +type SaveSingleTaskForGenerateDomainCertificateResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForGenerateDomainCertificateRequest creates a request to invoke SaveSingleTaskForGenerateDomainCertificate API +func CreateSaveSingleTaskForGenerateDomainCertificateRequest() (request *SaveSingleTaskForGenerateDomainCertificateRequest) { + request = &SaveSingleTaskForGenerateDomainCertificateRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForGenerateDomainCertificate", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForGenerateDomainCertificateResponse creates a response to parse from SaveSingleTaskForGenerateDomainCertificate response +func CreateSaveSingleTaskForGenerateDomainCertificateResponse() (response *SaveSingleTaskForGenerateDomainCertificateResponse) { + response = &SaveSingleTaskForGenerateDomainCertificateResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_modifying_dns_host.go b/services/domain/save_single_task_for_modifying_dns_host.go new file mode 100644 index 0000000000..f1243470ad --- /dev/null +++ b/services/domain/save_single_task_for_modifying_dns_host.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForModifyingDnsHost invokes the domain.SaveSingleTaskForModifyingDnsHost API synchronously +func (client *Client) SaveSingleTaskForModifyingDnsHost(request *SaveSingleTaskForModifyingDnsHostRequest) (response *SaveSingleTaskForModifyingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForModifyingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForModifyingDnsHostWithChan invokes the domain.SaveSingleTaskForModifyingDnsHost API asynchronously +func (client *Client) SaveSingleTaskForModifyingDnsHostWithChan(request *SaveSingleTaskForModifyingDnsHostRequest) (<-chan *SaveSingleTaskForModifyingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForModifyingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForModifyingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForModifyingDnsHostWithCallback invokes the domain.SaveSingleTaskForModifyingDnsHost API asynchronously +func (client *Client) SaveSingleTaskForModifyingDnsHostWithCallback(request *SaveSingleTaskForModifyingDnsHostRequest, callback func(response *SaveSingleTaskForModifyingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForModifyingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForModifyingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForModifyingDnsHostRequest is the request struct for api SaveSingleTaskForModifyingDnsHost +type SaveSingleTaskForModifyingDnsHostRequest struct { + *requests.RpcRequest + Ip *[]string `position:"Query" name:"Ip" type:"Repeated"` + InstanceId string `position:"Query" name:"InstanceId"` + DnsName string `position:"Query" name:"DnsName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForModifyingDnsHostResponse is the response struct for api SaveSingleTaskForModifyingDnsHost +type SaveSingleTaskForModifyingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForModifyingDnsHostRequest creates a request to invoke SaveSingleTaskForModifyingDnsHost API +func CreateSaveSingleTaskForModifyingDnsHostRequest() (request *SaveSingleTaskForModifyingDnsHostRequest) { + request = &SaveSingleTaskForModifyingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForModifyingDnsHost", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForModifyingDnsHostResponse creates a response to parse from SaveSingleTaskForModifyingDnsHost response +func CreateSaveSingleTaskForModifyingDnsHostResponse() (response *SaveSingleTaskForModifyingDnsHostResponse) { + response = &SaveSingleTaskForModifyingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_modifying_ds_record.go b/services/domain/save_single_task_for_modifying_ds_record.go new file mode 100644 index 0000000000..300cb95acc --- /dev/null +++ b/services/domain/save_single_task_for_modifying_ds_record.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForModifyingDSRecord invokes the domain.SaveSingleTaskForModifyingDSRecord API synchronously +func (client *Client) SaveSingleTaskForModifyingDSRecord(request *SaveSingleTaskForModifyingDSRecordRequest) (response *SaveSingleTaskForModifyingDSRecordResponse, err error) { + response = CreateSaveSingleTaskForModifyingDSRecordResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForModifyingDSRecordWithChan invokes the domain.SaveSingleTaskForModifyingDSRecord API asynchronously +func (client *Client) SaveSingleTaskForModifyingDSRecordWithChan(request *SaveSingleTaskForModifyingDSRecordRequest) (<-chan *SaveSingleTaskForModifyingDSRecordResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForModifyingDSRecordResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForModifyingDSRecord(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForModifyingDSRecordWithCallback invokes the domain.SaveSingleTaskForModifyingDSRecord API asynchronously +func (client *Client) SaveSingleTaskForModifyingDSRecordWithCallback(request *SaveSingleTaskForModifyingDSRecordRequest, callback func(response *SaveSingleTaskForModifyingDSRecordResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForModifyingDSRecordResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForModifyingDSRecord(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForModifyingDSRecordRequest is the request struct for api SaveSingleTaskForModifyingDSRecord +type SaveSingleTaskForModifyingDSRecordRequest struct { + *requests.RpcRequest + KeyTag requests.Integer `position:"Query" name:"KeyTag"` + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + DigestType requests.Integer `position:"Query" name:"DigestType"` + Digest string `position:"Query" name:"Digest"` + Lang string `position:"Query" name:"Lang"` + Algorithm requests.Integer `position:"Query" name:"Algorithm"` +} + +// SaveSingleTaskForModifyingDSRecordResponse is the response struct for api SaveSingleTaskForModifyingDSRecord +type SaveSingleTaskForModifyingDSRecordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForModifyingDSRecordRequest creates a request to invoke SaveSingleTaskForModifyingDSRecord API +func CreateSaveSingleTaskForModifyingDSRecordRequest() (request *SaveSingleTaskForModifyingDSRecordRequest) { + request = &SaveSingleTaskForModifyingDSRecordRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForModifyingDSRecord", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForModifyingDSRecordResponse creates a response to parse from SaveSingleTaskForModifyingDSRecord response +func CreateSaveSingleTaskForModifyingDSRecordResponse() (response *SaveSingleTaskForModifyingDSRecordResponse) { + response = &SaveSingleTaskForModifyingDSRecordResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_querying_transfer_authorization_code.go b/services/domain/save_single_task_for_querying_transfer_authorization_code.go new file mode 100644 index 0000000000..258b2e9545 --- /dev/null +++ b/services/domain/save_single_task_for_querying_transfer_authorization_code.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForQueryingTransferAuthorizationCode invokes the domain.SaveSingleTaskForQueryingTransferAuthorizationCode API synchronously +func (client *Client) SaveSingleTaskForQueryingTransferAuthorizationCode(request *SaveSingleTaskForQueryingTransferAuthorizationCodeRequest) (response *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse, err error) { + response = CreateSaveSingleTaskForQueryingTransferAuthorizationCodeResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForQueryingTransferAuthorizationCodeWithChan invokes the domain.SaveSingleTaskForQueryingTransferAuthorizationCode API asynchronously +func (client *Client) SaveSingleTaskForQueryingTransferAuthorizationCodeWithChan(request *SaveSingleTaskForQueryingTransferAuthorizationCodeRequest) (<-chan *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForQueryingTransferAuthorizationCode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForQueryingTransferAuthorizationCodeWithCallback invokes the domain.SaveSingleTaskForQueryingTransferAuthorizationCode API asynchronously +func (client *Client) SaveSingleTaskForQueryingTransferAuthorizationCodeWithCallback(request *SaveSingleTaskForQueryingTransferAuthorizationCodeRequest, callback func(response *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForQueryingTransferAuthorizationCode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForQueryingTransferAuthorizationCodeRequest is the request struct for api SaveSingleTaskForQueryingTransferAuthorizationCode +type SaveSingleTaskForQueryingTransferAuthorizationCodeRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForQueryingTransferAuthorizationCodeResponse is the response struct for api SaveSingleTaskForQueryingTransferAuthorizationCode +type SaveSingleTaskForQueryingTransferAuthorizationCodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForQueryingTransferAuthorizationCodeRequest creates a request to invoke SaveSingleTaskForQueryingTransferAuthorizationCode API +func CreateSaveSingleTaskForQueryingTransferAuthorizationCodeRequest() (request *SaveSingleTaskForQueryingTransferAuthorizationCodeRequest) { + request = &SaveSingleTaskForQueryingTransferAuthorizationCodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForQueryingTransferAuthorizationCode", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForQueryingTransferAuthorizationCodeResponse creates a response to parse from SaveSingleTaskForQueryingTransferAuthorizationCode response +func CreateSaveSingleTaskForQueryingTransferAuthorizationCodeResponse() (response *SaveSingleTaskForQueryingTransferAuthorizationCodeResponse) { + response = &SaveSingleTaskForQueryingTransferAuthorizationCodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_reserve_drop_list_domain.go b/services/domain/save_single_task_for_reserve_drop_list_domain.go new file mode 100644 index 0000000000..c89f55c91b --- /dev/null +++ b/services/domain/save_single_task_for_reserve_drop_list_domain.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForReserveDropListDomain invokes the domain.SaveSingleTaskForReserveDropListDomain API synchronously +func (client *Client) SaveSingleTaskForReserveDropListDomain(request *SaveSingleTaskForReserveDropListDomainRequest) (response *SaveSingleTaskForReserveDropListDomainResponse, err error) { + response = CreateSaveSingleTaskForReserveDropListDomainResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForReserveDropListDomainWithChan invokes the domain.SaveSingleTaskForReserveDropListDomain API asynchronously +func (client *Client) SaveSingleTaskForReserveDropListDomainWithChan(request *SaveSingleTaskForReserveDropListDomainRequest) (<-chan *SaveSingleTaskForReserveDropListDomainResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForReserveDropListDomainResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForReserveDropListDomain(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForReserveDropListDomainWithCallback invokes the domain.SaveSingleTaskForReserveDropListDomain API asynchronously +func (client *Client) SaveSingleTaskForReserveDropListDomainWithCallback(request *SaveSingleTaskForReserveDropListDomainRequest, callback func(response *SaveSingleTaskForReserveDropListDomainResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForReserveDropListDomainResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForReserveDropListDomain(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForReserveDropListDomainRequest is the request struct for api SaveSingleTaskForReserveDropListDomain +type SaveSingleTaskForReserveDropListDomainRequest struct { + *requests.RpcRequest + Dns2 string `position:"Query" name:"Dns2"` + Dns1 string `position:"Query" name:"Dns1"` + DomainName string `position:"Query" name:"DomainName"` + ContactTemplateId string `position:"Query" name:"ContactTemplateId"` +} + +// SaveSingleTaskForReserveDropListDomainResponse is the response struct for api SaveSingleTaskForReserveDropListDomain +type SaveSingleTaskForReserveDropListDomainResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForReserveDropListDomainRequest creates a request to invoke SaveSingleTaskForReserveDropListDomain API +func CreateSaveSingleTaskForReserveDropListDomainRequest() (request *SaveSingleTaskForReserveDropListDomainRequest) { + request = &SaveSingleTaskForReserveDropListDomainRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForReserveDropListDomain", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForReserveDropListDomainResponse creates a response to parse from SaveSingleTaskForReserveDropListDomain response +func CreateSaveSingleTaskForReserveDropListDomainResponse() (response *SaveSingleTaskForReserveDropListDomainResponse) { + response = &SaveSingleTaskForReserveDropListDomainResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_save_art_extension.go b/services/domain/save_single_task_for_save_art_extension.go new file mode 100644 index 0000000000..0bd9e546cd --- /dev/null +++ b/services/domain/save_single_task_for_save_art_extension.go @@ -0,0 +1,111 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForSaveArtExtension invokes the domain.SaveSingleTaskForSaveArtExtension API synchronously +func (client *Client) SaveSingleTaskForSaveArtExtension(request *SaveSingleTaskForSaveArtExtensionRequest) (response *SaveSingleTaskForSaveArtExtensionResponse, err error) { + response = CreateSaveSingleTaskForSaveArtExtensionResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForSaveArtExtensionWithChan invokes the domain.SaveSingleTaskForSaveArtExtension API asynchronously +func (client *Client) SaveSingleTaskForSaveArtExtensionWithChan(request *SaveSingleTaskForSaveArtExtensionRequest) (<-chan *SaveSingleTaskForSaveArtExtensionResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForSaveArtExtensionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForSaveArtExtension(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForSaveArtExtensionWithCallback invokes the domain.SaveSingleTaskForSaveArtExtension API asynchronously +func (client *Client) SaveSingleTaskForSaveArtExtensionWithCallback(request *SaveSingleTaskForSaveArtExtensionRequest, callback func(response *SaveSingleTaskForSaveArtExtensionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForSaveArtExtensionResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForSaveArtExtension(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForSaveArtExtensionRequest is the request struct for api SaveSingleTaskForSaveArtExtension +type SaveSingleTaskForSaveArtExtensionRequest struct { + *requests.RpcRequest + Subject string `position:"Query" name:"Subject"` + Title string `position:"Query" name:"Title"` + DateOrPeriod string `position:"Query" name:"DateOrPeriod"` + Reference string `position:"Query" name:"Reference"` + Features string `position:"Query" name:"Features"` + InscriptionsAndMarkings string `position:"Query" name:"InscriptionsAndMarkings"` + ObjectType string `position:"Query" name:"ObjectType"` + Lang string `position:"Query" name:"Lang"` + DomainName string `position:"Query" name:"DomainName"` + Maker string `position:"Query" name:"Maker"` + MaterialsAndTechniques string `position:"Query" name:"MaterialsAndTechniques"` + Dimensions string `position:"Query" name:"Dimensions"` +} + +// SaveSingleTaskForSaveArtExtensionResponse is the response struct for api SaveSingleTaskForSaveArtExtension +type SaveSingleTaskForSaveArtExtensionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForSaveArtExtensionRequest creates a request to invoke SaveSingleTaskForSaveArtExtension API +func CreateSaveSingleTaskForSaveArtExtensionRequest() (request *SaveSingleTaskForSaveArtExtensionRequest) { + request = &SaveSingleTaskForSaveArtExtensionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForSaveArtExtension", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForSaveArtExtensionResponse creates a response to parse from SaveSingleTaskForSaveArtExtension response +func CreateSaveSingleTaskForSaveArtExtensionResponse() (response *SaveSingleTaskForSaveArtExtensionResponse) { + response = &SaveSingleTaskForSaveArtExtensionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_synchronizing_dns_host.go b/services/domain/save_single_task_for_synchronizing_dns_host.go new file mode 100644 index 0000000000..54350ae833 --- /dev/null +++ b/services/domain/save_single_task_for_synchronizing_dns_host.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForSynchronizingDnsHost invokes the domain.SaveSingleTaskForSynchronizingDnsHost API synchronously +func (client *Client) SaveSingleTaskForSynchronizingDnsHost(request *SaveSingleTaskForSynchronizingDnsHostRequest) (response *SaveSingleTaskForSynchronizingDnsHostResponse, err error) { + response = CreateSaveSingleTaskForSynchronizingDnsHostResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForSynchronizingDnsHostWithChan invokes the domain.SaveSingleTaskForSynchronizingDnsHost API asynchronously +func (client *Client) SaveSingleTaskForSynchronizingDnsHostWithChan(request *SaveSingleTaskForSynchronizingDnsHostRequest) (<-chan *SaveSingleTaskForSynchronizingDnsHostResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForSynchronizingDnsHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForSynchronizingDnsHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForSynchronizingDnsHostWithCallback invokes the domain.SaveSingleTaskForSynchronizingDnsHost API asynchronously +func (client *Client) SaveSingleTaskForSynchronizingDnsHostWithCallback(request *SaveSingleTaskForSynchronizingDnsHostRequest, callback func(response *SaveSingleTaskForSynchronizingDnsHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForSynchronizingDnsHostResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForSynchronizingDnsHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForSynchronizingDnsHostRequest is the request struct for api SaveSingleTaskForSynchronizingDnsHost +type SaveSingleTaskForSynchronizingDnsHostRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForSynchronizingDnsHostResponse is the response struct for api SaveSingleTaskForSynchronizingDnsHost +type SaveSingleTaskForSynchronizingDnsHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForSynchronizingDnsHostRequest creates a request to invoke SaveSingleTaskForSynchronizingDnsHost API +func CreateSaveSingleTaskForSynchronizingDnsHostRequest() (request *SaveSingleTaskForSynchronizingDnsHostRequest) { + request = &SaveSingleTaskForSynchronizingDnsHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForSynchronizingDnsHost", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForSynchronizingDnsHostResponse creates a response to parse from SaveSingleTaskForSynchronizingDnsHost response +func CreateSaveSingleTaskForSynchronizingDnsHostResponse() (response *SaveSingleTaskForSynchronizingDnsHostResponse) { + response = &SaveSingleTaskForSynchronizingDnsHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_synchronizing_ds_record.go b/services/domain/save_single_task_for_synchronizing_ds_record.go new file mode 100644 index 0000000000..aa1a5eb98f --- /dev/null +++ b/services/domain/save_single_task_for_synchronizing_ds_record.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForSynchronizingDSRecord invokes the domain.SaveSingleTaskForSynchronizingDSRecord API synchronously +func (client *Client) SaveSingleTaskForSynchronizingDSRecord(request *SaveSingleTaskForSynchronizingDSRecordRequest) (response *SaveSingleTaskForSynchronizingDSRecordResponse, err error) { + response = CreateSaveSingleTaskForSynchronizingDSRecordResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForSynchronizingDSRecordWithChan invokes the domain.SaveSingleTaskForSynchronizingDSRecord API asynchronously +func (client *Client) SaveSingleTaskForSynchronizingDSRecordWithChan(request *SaveSingleTaskForSynchronizingDSRecordRequest) (<-chan *SaveSingleTaskForSynchronizingDSRecordResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForSynchronizingDSRecordResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForSynchronizingDSRecord(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForSynchronizingDSRecordWithCallback invokes the domain.SaveSingleTaskForSynchronizingDSRecord API asynchronously +func (client *Client) SaveSingleTaskForSynchronizingDSRecordWithCallback(request *SaveSingleTaskForSynchronizingDSRecordRequest, callback func(response *SaveSingleTaskForSynchronizingDSRecordResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForSynchronizingDSRecordResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForSynchronizingDSRecord(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForSynchronizingDSRecordRequest is the request struct for api SaveSingleTaskForSynchronizingDSRecord +type SaveSingleTaskForSynchronizingDSRecordRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForSynchronizingDSRecordResponse is the response struct for api SaveSingleTaskForSynchronizingDSRecord +type SaveSingleTaskForSynchronizingDSRecordResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForSynchronizingDSRecordRequest creates a request to invoke SaveSingleTaskForSynchronizingDSRecord API +func CreateSaveSingleTaskForSynchronizingDSRecordRequest() (request *SaveSingleTaskForSynchronizingDSRecordRequest) { + request = &SaveSingleTaskForSynchronizingDSRecordRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForSynchronizingDSRecord", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForSynchronizingDSRecordResponse creates a response to parse from SaveSingleTaskForSynchronizingDSRecord response +func CreateSaveSingleTaskForSynchronizingDSRecordResponse() (response *SaveSingleTaskForSynchronizingDSRecordResponse) { + response = &SaveSingleTaskForSynchronizingDSRecordResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_transfer_prohibition_lock.go b/services/domain/save_single_task_for_transfer_prohibition_lock.go new file mode 100644 index 0000000000..6320437c49 --- /dev/null +++ b/services/domain/save_single_task_for_transfer_prohibition_lock.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForTransferProhibitionLock invokes the domain.SaveSingleTaskForTransferProhibitionLock API synchronously +func (client *Client) SaveSingleTaskForTransferProhibitionLock(request *SaveSingleTaskForTransferProhibitionLockRequest) (response *SaveSingleTaskForTransferProhibitionLockResponse, err error) { + response = CreateSaveSingleTaskForTransferProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForTransferProhibitionLockWithChan invokes the domain.SaveSingleTaskForTransferProhibitionLock API asynchronously +func (client *Client) SaveSingleTaskForTransferProhibitionLockWithChan(request *SaveSingleTaskForTransferProhibitionLockRequest) (<-chan *SaveSingleTaskForTransferProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForTransferProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForTransferProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForTransferProhibitionLockWithCallback invokes the domain.SaveSingleTaskForTransferProhibitionLock API asynchronously +func (client *Client) SaveSingleTaskForTransferProhibitionLockWithCallback(request *SaveSingleTaskForTransferProhibitionLockRequest, callback func(response *SaveSingleTaskForTransferProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForTransferProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForTransferProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForTransferProhibitionLockRequest is the request struct for api SaveSingleTaskForTransferProhibitionLock +type SaveSingleTaskForTransferProhibitionLockRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveSingleTaskForTransferProhibitionLockResponse is the response struct for api SaveSingleTaskForTransferProhibitionLock +type SaveSingleTaskForTransferProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForTransferProhibitionLockRequest creates a request to invoke SaveSingleTaskForTransferProhibitionLock API +func CreateSaveSingleTaskForTransferProhibitionLockRequest() (request *SaveSingleTaskForTransferProhibitionLockRequest) { + request = &SaveSingleTaskForTransferProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForTransferProhibitionLock", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForTransferProhibitionLockResponse creates a response to parse from SaveSingleTaskForTransferProhibitionLock response +func CreateSaveSingleTaskForTransferProhibitionLockResponse() (response *SaveSingleTaskForTransferProhibitionLockResponse) { + response = &SaveSingleTaskForTransferProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_update_prohibition_lock.go b/services/domain/save_single_task_for_update_prohibition_lock.go new file mode 100644 index 0000000000..44a852aacd --- /dev/null +++ b/services/domain/save_single_task_for_update_prohibition_lock.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForUpdateProhibitionLock invokes the domain.SaveSingleTaskForUpdateProhibitionLock API synchronously +func (client *Client) SaveSingleTaskForUpdateProhibitionLock(request *SaveSingleTaskForUpdateProhibitionLockRequest) (response *SaveSingleTaskForUpdateProhibitionLockResponse, err error) { + response = CreateSaveSingleTaskForUpdateProhibitionLockResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForUpdateProhibitionLockWithChan invokes the domain.SaveSingleTaskForUpdateProhibitionLock API asynchronously +func (client *Client) SaveSingleTaskForUpdateProhibitionLockWithChan(request *SaveSingleTaskForUpdateProhibitionLockRequest) (<-chan *SaveSingleTaskForUpdateProhibitionLockResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForUpdateProhibitionLockResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForUpdateProhibitionLock(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForUpdateProhibitionLockWithCallback invokes the domain.SaveSingleTaskForUpdateProhibitionLock API asynchronously +func (client *Client) SaveSingleTaskForUpdateProhibitionLockWithCallback(request *SaveSingleTaskForUpdateProhibitionLockRequest, callback func(response *SaveSingleTaskForUpdateProhibitionLockResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForUpdateProhibitionLockResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForUpdateProhibitionLock(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForUpdateProhibitionLockRequest is the request struct for api SaveSingleTaskForUpdateProhibitionLock +type SaveSingleTaskForUpdateProhibitionLockRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Status requests.Boolean `position:"Query" name:"Status"` +} + +// SaveSingleTaskForUpdateProhibitionLockResponse is the response struct for api SaveSingleTaskForUpdateProhibitionLock +type SaveSingleTaskForUpdateProhibitionLockResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForUpdateProhibitionLockRequest creates a request to invoke SaveSingleTaskForUpdateProhibitionLock API +func CreateSaveSingleTaskForUpdateProhibitionLockRequest() (request *SaveSingleTaskForUpdateProhibitionLockRequest) { + request = &SaveSingleTaskForUpdateProhibitionLockRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForUpdateProhibitionLock", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForUpdateProhibitionLockResponse creates a response to parse from SaveSingleTaskForUpdateProhibitionLock response +func CreateSaveSingleTaskForUpdateProhibitionLockResponse() (response *SaveSingleTaskForUpdateProhibitionLockResponse) { + response = &SaveSingleTaskForUpdateProhibitionLockResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_single_task_for_updating_contact_info.go b/services/domain/save_single_task_for_updating_contact_info.go new file mode 100644 index 0000000000..d4e3db5bef --- /dev/null +++ b/services/domain/save_single_task_for_updating_contact_info.go @@ -0,0 +1,106 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveSingleTaskForUpdatingContactInfo invokes the domain.SaveSingleTaskForUpdatingContactInfo API synchronously +func (client *Client) SaveSingleTaskForUpdatingContactInfo(request *SaveSingleTaskForUpdatingContactInfoRequest) (response *SaveSingleTaskForUpdatingContactInfoResponse, err error) { + response = CreateSaveSingleTaskForUpdatingContactInfoResponse() + err = client.DoAction(request, response) + return +} + +// SaveSingleTaskForUpdatingContactInfoWithChan invokes the domain.SaveSingleTaskForUpdatingContactInfo API asynchronously +func (client *Client) SaveSingleTaskForUpdatingContactInfoWithChan(request *SaveSingleTaskForUpdatingContactInfoRequest) (<-chan *SaveSingleTaskForUpdatingContactInfoResponse, <-chan error) { + responseChan := make(chan *SaveSingleTaskForUpdatingContactInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveSingleTaskForUpdatingContactInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveSingleTaskForUpdatingContactInfoWithCallback invokes the domain.SaveSingleTaskForUpdatingContactInfo API asynchronously +func (client *Client) SaveSingleTaskForUpdatingContactInfoWithCallback(request *SaveSingleTaskForUpdatingContactInfoRequest, callback func(response *SaveSingleTaskForUpdatingContactInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveSingleTaskForUpdatingContactInfoResponse + var err error + defer close(result) + response, err = client.SaveSingleTaskForUpdatingContactInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveSingleTaskForUpdatingContactInfoRequest is the request struct for api SaveSingleTaskForUpdatingContactInfo +type SaveSingleTaskForUpdatingContactInfoRequest struct { + *requests.RpcRequest + ContactType string `position:"Query" name:"ContactType"` + DomainName string `position:"Query" name:"DomainName"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + AddTransferLock requests.Boolean `position:"Query" name:"AddTransferLock"` + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveSingleTaskForUpdatingContactInfoResponse is the response struct for api SaveSingleTaskForUpdatingContactInfo +type SaveSingleTaskForUpdatingContactInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveSingleTaskForUpdatingContactInfoRequest creates a request to invoke SaveSingleTaskForUpdatingContactInfo API +func CreateSaveSingleTaskForUpdatingContactInfoRequest() (request *SaveSingleTaskForUpdatingContactInfoRequest) { + request = &SaveSingleTaskForUpdatingContactInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveSingleTaskForUpdatingContactInfo", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveSingleTaskForUpdatingContactInfoResponse creates a response to parse from SaveSingleTaskForUpdatingContactInfo response +func CreateSaveSingleTaskForUpdatingContactInfoResponse() (response *SaveSingleTaskForUpdatingContactInfoResponse) { + response = &SaveSingleTaskForUpdatingContactInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_task_for_submitting_domain_delete.go b/services/domain/save_task_for_submitting_domain_delete.go new file mode 100644 index 0000000000..ffbd5025c6 --- /dev/null +++ b/services/domain/save_task_for_submitting_domain_delete.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveTaskForSubmittingDomainDelete invokes the domain.SaveTaskForSubmittingDomainDelete API synchronously +func (client *Client) SaveTaskForSubmittingDomainDelete(request *SaveTaskForSubmittingDomainDeleteRequest) (response *SaveTaskForSubmittingDomainDeleteResponse, err error) { + response = CreateSaveTaskForSubmittingDomainDeleteResponse() + err = client.DoAction(request, response) + return +} + +// SaveTaskForSubmittingDomainDeleteWithChan invokes the domain.SaveTaskForSubmittingDomainDelete API asynchronously +func (client *Client) SaveTaskForSubmittingDomainDeleteWithChan(request *SaveTaskForSubmittingDomainDeleteRequest) (<-chan *SaveTaskForSubmittingDomainDeleteResponse, <-chan error) { + responseChan := make(chan *SaveTaskForSubmittingDomainDeleteResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveTaskForSubmittingDomainDelete(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveTaskForSubmittingDomainDeleteWithCallback invokes the domain.SaveTaskForSubmittingDomainDelete API asynchronously +func (client *Client) SaveTaskForSubmittingDomainDeleteWithCallback(request *SaveTaskForSubmittingDomainDeleteRequest, callback func(response *SaveTaskForSubmittingDomainDeleteResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveTaskForSubmittingDomainDeleteResponse + var err error + defer close(result) + response, err = client.SaveTaskForSubmittingDomainDelete(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveTaskForSubmittingDomainDeleteRequest is the request struct for api SaveTaskForSubmittingDomainDelete +type SaveTaskForSubmittingDomainDeleteRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveTaskForSubmittingDomainDeleteResponse is the response struct for api SaveTaskForSubmittingDomainDelete +type SaveTaskForSubmittingDomainDeleteResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveTaskForSubmittingDomainDeleteRequest creates a request to invoke SaveTaskForSubmittingDomainDelete API +func CreateSaveTaskForSubmittingDomainDeleteRequest() (request *SaveTaskForSubmittingDomainDeleteRequest) { + request = &SaveTaskForSubmittingDomainDeleteRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveTaskForSubmittingDomainDelete", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveTaskForSubmittingDomainDeleteResponse creates a response to parse from SaveTaskForSubmittingDomainDelete response +func CreateSaveTaskForSubmittingDomainDeleteResponse() (response *SaveTaskForSubmittingDomainDeleteResponse) { + response = &SaveTaskForSubmittingDomainDeleteResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_task_for_submitting_domain_real_name_verification_by_identity_credential.go b/services/domain/save_task_for_submitting_domain_real_name_verification_by_identity_credential.go new file mode 100644 index 0000000000..d91b813919 --- /dev/null +++ b/services/domain/save_task_for_submitting_domain_real_name_verification_by_identity_credential.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential invokes the domain.SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential API synchronously +func (client *Client) SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential(request *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest) (response *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse, err error) { + response = CreateSaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse() + err = client.DoAction(request, response) + return +} + +// SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialWithChan invokes the domain.SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential API asynchronously +func (client *Client) SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialWithChan(request *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest) (<-chan *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse, <-chan error) { + responseChan := make(chan *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialWithCallback invokes the domain.SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential API asynchronously +func (client *Client) SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialWithCallback(request *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest, callback func(response *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse + var err error + defer close(result) + response, err = client.SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest is the request struct for api SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential +type SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest struct { + *requests.RpcRequest + IdentityCredentialType string `position:"Query" name:"IdentityCredentialType"` + IdentityCredential string `position:"Body" name:"IdentityCredential"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + IdentityCredentialNo string `position:"Query" name:"IdentityCredentialNo"` +} + +// SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse is the response struct for api SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential +type SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest creates a request to invoke SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential API +func CreateSaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest() (request *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest) { + request = &SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse creates a response to parse from SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential response +func CreateSaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse() (response *SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse) { + response = &SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_task_for_submitting_domain_real_name_verification_by_registrant_profile_id.go b/services/domain/save_task_for_submitting_domain_real_name_verification_by_registrant_profile_id.go new file mode 100644 index 0000000000..5002157ef5 --- /dev/null +++ b/services/domain/save_task_for_submitting_domain_real_name_verification_by_registrant_profile_id.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID invokes the domain.SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID API synchronously +func (client *Client) SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID(request *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest) (response *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse, err error) { + response = CreateSaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse() + err = client.DoAction(request, response) + return +} + +// SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDWithChan invokes the domain.SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID API asynchronously +func (client *Client) SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDWithChan(request *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest) (<-chan *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse, <-chan error) { + responseChan := make(chan *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDWithCallback invokes the domain.SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID API asynchronously +func (client *Client) SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDWithCallback(request *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest, callback func(response *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse + var err error + defer close(result) + response, err = client.SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest is the request struct for api SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID +type SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + InstanceId string `position:"Query" name:"InstanceId"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse is the response struct for api SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID +type SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest creates a request to invoke SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID API +func CreateSaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest() (request *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest) { + request = &SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse creates a response to parse from SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileID response +func CreateSaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse() (response *SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse) { + response = &SaveTaskForSubmittingDomainRealNameVerificationByRegistrantProfileIDResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_task_for_updating_registrant_info_by_identity_credential.go b/services/domain/save_task_for_updating_registrant_info_by_identity_credential.go new file mode 100644 index 0000000000..708bccd85b --- /dev/null +++ b/services/domain/save_task_for_updating_registrant_info_by_identity_credential.go @@ -0,0 +1,123 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveTaskForUpdatingRegistrantInfoByIdentityCredential invokes the domain.SaveTaskForUpdatingRegistrantInfoByIdentityCredential API synchronously +func (client *Client) SaveTaskForUpdatingRegistrantInfoByIdentityCredential(request *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest) (response *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse, err error) { + response = CreateSaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse() + err = client.DoAction(request, response) + return +} + +// SaveTaskForUpdatingRegistrantInfoByIdentityCredentialWithChan invokes the domain.SaveTaskForUpdatingRegistrantInfoByIdentityCredential API asynchronously +func (client *Client) SaveTaskForUpdatingRegistrantInfoByIdentityCredentialWithChan(request *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest) (<-chan *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse, <-chan error) { + responseChan := make(chan *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveTaskForUpdatingRegistrantInfoByIdentityCredential(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveTaskForUpdatingRegistrantInfoByIdentityCredentialWithCallback invokes the domain.SaveTaskForUpdatingRegistrantInfoByIdentityCredential API asynchronously +func (client *Client) SaveTaskForUpdatingRegistrantInfoByIdentityCredentialWithCallback(request *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest, callback func(response *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse + var err error + defer close(result) + response, err = client.SaveTaskForUpdatingRegistrantInfoByIdentityCredential(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest is the request struct for api SaveTaskForUpdatingRegistrantInfoByIdentityCredential +type SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest struct { + *requests.RpcRequest + Country string `position:"Query" name:"Country"` + IdentityCredentialType string `position:"Query" name:"IdentityCredentialType"` + City string `position:"Query" name:"City"` + IdentityCredential string `position:"Body" name:"IdentityCredential"` + TransferOutProhibited requests.Boolean `position:"Query" name:"TransferOutProhibited"` + ZhCity string `position:"Query" name:"ZhCity"` + TelExt string `position:"Query" name:"TelExt"` + Province string `position:"Query" name:"Province"` + ZhRegistrantName string `position:"Query" name:"ZhRegistrantName"` + PostalCode string `position:"Query" name:"PostalCode"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + ZhRegistrantOrganization string `position:"Query" name:"ZhRegistrantOrganization"` + Address string `position:"Query" name:"Address"` + TelArea string `position:"Query" name:"TelArea"` + ZhAddress string `position:"Query" name:"ZhAddress"` + RegistrantType string `position:"Query" name:"RegistrantType"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + Telephone string `position:"Query" name:"Telephone"` + ZhProvince string `position:"Query" name:"ZhProvince"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + UserClientIp string `position:"Query" name:"UserClientIp"` + IdentityCredentialNo string `position:"Query" name:"IdentityCredentialNo"` + RegistrantName string `position:"Query" name:"RegistrantName"` +} + +// SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse is the response struct for api SaveTaskForUpdatingRegistrantInfoByIdentityCredential +type SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest creates a request to invoke SaveTaskForUpdatingRegistrantInfoByIdentityCredential API +func CreateSaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest() (request *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest) { + request = &SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveTaskForUpdatingRegistrantInfoByIdentityCredential", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse creates a response to parse from SaveTaskForUpdatingRegistrantInfoByIdentityCredential response +func CreateSaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse() (response *SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse) { + response = &SaveTaskForUpdatingRegistrantInfoByIdentityCredentialResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/save_task_for_updating_registrant_info_by_registrant_profile_id.go b/services/domain/save_task_for_updating_registrant_info_by_registrant_profile_id.go new file mode 100644 index 0000000000..26af76bd37 --- /dev/null +++ b/services/domain/save_task_for_updating_registrant_info_by_registrant_profile_id.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID invokes the domain.SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID API synchronously +func (client *Client) SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID(request *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest) (response *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse, err error) { + response = CreateSaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse() + err = client.DoAction(request, response) + return +} + +// SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDWithChan invokes the domain.SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID API asynchronously +func (client *Client) SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDWithChan(request *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest) (<-chan *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse, <-chan error) { + responseChan := make(chan *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDWithCallback invokes the domain.SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID API asynchronously +func (client *Client) SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDWithCallback(request *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest, callback func(response *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse + var err error + defer close(result) + response, err = client.SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest is the request struct for api SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID +type SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest struct { + *requests.RpcRequest + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + TransferOutProhibited requests.Boolean `position:"Query" name:"TransferOutProhibited"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse is the response struct for api SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID +type SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` +} + +// CreateSaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest creates a request to invoke SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID API +func CreateSaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest() (request *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest) { + request = &SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse creates a response to parse from SaveTaskForUpdatingRegistrantInfoByRegistrantProfileID response +func CreateSaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse() (response *SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse) { + response = &SaveTaskForUpdatingRegistrantInfoByRegistrantProfileIDResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/scroll_domain_list.go b/services/domain/scroll_domain_list.go new file mode 100644 index 0000000000..1ae0435b35 --- /dev/null +++ b/services/domain/scroll_domain_list.go @@ -0,0 +1,125 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ScrollDomainList invokes the domain.ScrollDomainList API synchronously +func (client *Client) ScrollDomainList(request *ScrollDomainListRequest) (response *ScrollDomainListResponse, err error) { + response = CreateScrollDomainListResponse() + err = client.DoAction(request, response) + return +} + +// ScrollDomainListWithChan invokes the domain.ScrollDomainList API asynchronously +func (client *Client) ScrollDomainListWithChan(request *ScrollDomainListRequest) (<-chan *ScrollDomainListResponse, <-chan error) { + responseChan := make(chan *ScrollDomainListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ScrollDomainList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ScrollDomainListWithCallback invokes the domain.ScrollDomainList API asynchronously +func (client *Client) ScrollDomainListWithCallback(request *ScrollDomainListRequest, callback func(response *ScrollDomainListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ScrollDomainListResponse + var err error + defer close(result) + response, err = client.ScrollDomainList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ScrollDomainListRequest is the request struct for api ScrollDomainList +type ScrollDomainListRequest struct { + *requests.RpcRequest + ProductDomainType string `position:"Query" name:"ProductDomainType"` + Excluded string `position:"Query" name:"Excluded"` + StartLength requests.Integer `position:"Query" name:"StartLength"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + ExcludedSuffix requests.Boolean `position:"Query" name:"ExcludedSuffix"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Lang string `position:"Query" name:"Lang"` + ExcludedPrefix requests.Boolean `position:"Query" name:"ExcludedPrefix"` + KeyWord string `position:"Query" name:"KeyWord"` + EndExpirationDate requests.Integer `position:"Query" name:"EndExpirationDate"` + Suffixs string `position:"Query" name:"Suffixs"` + StartExpirationDate requests.Integer `position:"Query" name:"StartExpirationDate"` + DomainStatus requests.Integer `position:"Query" name:"DomainStatus"` + DomainGroupId requests.Integer `position:"Query" name:"DomainGroupId"` + KeyWordSuffix requests.Boolean `position:"Query" name:"KeyWordSuffix"` + ScrollId string `position:"Query" name:"ScrollId"` + KeyWordPrefix requests.Boolean `position:"Query" name:"KeyWordPrefix"` + TradeType requests.Integer `position:"Query" name:"TradeType"` + EndRegistrationDate requests.Integer `position:"Query" name:"EndRegistrationDate"` + Form requests.Integer `position:"Query" name:"Form"` + UserClientIp string `position:"Query" name:"UserClientIp"` + StartRegistrationDate requests.Integer `position:"Query" name:"StartRegistrationDate"` + EndLength requests.Integer `position:"Query" name:"EndLength"` +} + +// ScrollDomainListResponse is the response struct for api ScrollDomainList +type ScrollDomainListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + ScrollId string `json:"ScrollId" xml:"ScrollId"` + TotalItemNum int `json:"TotalItemNum" xml:"TotalItemNum"` + Data DataInScrollDomainList `json:"Data" xml:"Data"` +} + +// CreateScrollDomainListRequest creates a request to invoke ScrollDomainList API +func CreateScrollDomainListRequest() (request *ScrollDomainListRequest) { + request = &ScrollDomainListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "ScrollDomainList", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateScrollDomainListResponse creates a response to parse from ScrollDomainList response +func CreateScrollDomainListResponse() (response *ScrollDomainListResponse) { + response = &ScrollDomainListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/selected_domain_list.go b/services/domain/selected_domain_list.go deleted file mode 100644 index 22b8ad03fa..0000000000 --- a/services/domain/selected_domain_list.go +++ /dev/null @@ -1,102 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// SelectedDomainList invokes the domain.SelectedDomainList API synchronously -func (client *Client) SelectedDomainList(request *SelectedDomainListRequest) (response *SelectedDomainListResponse, err error) { - response = CreateSelectedDomainListResponse() - err = client.DoAction(request, response) - return -} - -// SelectedDomainListWithChan invokes the domain.SelectedDomainList API asynchronously -func (client *Client) SelectedDomainListWithChan(request *SelectedDomainListRequest) (<-chan *SelectedDomainListResponse, <-chan error) { - responseChan := make(chan *SelectedDomainListResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SelectedDomainList(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SelectedDomainListWithCallback invokes the domain.SelectedDomainList API asynchronously -func (client *Client) SelectedDomainListWithCallback(request *SelectedDomainListRequest, callback func(response *SelectedDomainListResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SelectedDomainListResponse - var err error - defer close(result) - response, err = client.SelectedDomainList(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SelectedDomainListRequest is the request struct for api SelectedDomainList -type SelectedDomainListRequest struct { - *requests.RpcRequest - ListDate string `position:"Query" name:"ListDate"` -} - -// SelectedDomainListResponse is the response struct for api SelectedDomainList -type SelectedDomainListResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Success bool `json:"Success" xml:"Success"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - Module Module `json:"Module" xml:"Module"` -} - -// CreateSelectedDomainListRequest creates a request to invoke SelectedDomainList API -func CreateSelectedDomainListRequest() (request *SelectedDomainListRequest) { - request = &SelectedDomainListRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "SelectedDomainList", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateSelectedDomainListResponse creates a response to parse from SelectedDomainList response -func CreateSelectedDomainListResponse() (response *SelectedDomainListResponse) { - response = &SelectedDomainListResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/set_default_registrant_profile.go b/services/domain/set_default_registrant_profile.go new file mode 100644 index 0000000000..9ca8ae3ea7 --- /dev/null +++ b/services/domain/set_default_registrant_profile.go @@ -0,0 +1,100 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetDefaultRegistrantProfile invokes the domain.SetDefaultRegistrantProfile API synchronously +func (client *Client) SetDefaultRegistrantProfile(request *SetDefaultRegistrantProfileRequest) (response *SetDefaultRegistrantProfileResponse, err error) { + response = CreateSetDefaultRegistrantProfileResponse() + err = client.DoAction(request, response) + return +} + +// SetDefaultRegistrantProfileWithChan invokes the domain.SetDefaultRegistrantProfile API asynchronously +func (client *Client) SetDefaultRegistrantProfileWithChan(request *SetDefaultRegistrantProfileRequest) (<-chan *SetDefaultRegistrantProfileResponse, <-chan error) { + responseChan := make(chan *SetDefaultRegistrantProfileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetDefaultRegistrantProfile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetDefaultRegistrantProfileWithCallback invokes the domain.SetDefaultRegistrantProfile API asynchronously +func (client *Client) SetDefaultRegistrantProfileWithCallback(request *SetDefaultRegistrantProfileRequest, callback func(response *SetDefaultRegistrantProfileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetDefaultRegistrantProfileResponse + var err error + defer close(result) + response, err = client.SetDefaultRegistrantProfile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetDefaultRegistrantProfileRequest is the request struct for api SetDefaultRegistrantProfile +type SetDefaultRegistrantProfileRequest struct { + *requests.RpcRequest + RegistrantProfileId requests.Integer `position:"Query" name:"RegistrantProfileId"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// SetDefaultRegistrantProfileResponse is the response struct for api SetDefaultRegistrantProfile +type SetDefaultRegistrantProfileResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetDefaultRegistrantProfileRequest creates a request to invoke SetDefaultRegistrantProfile API +func CreateSetDefaultRegistrantProfileRequest() (request *SetDefaultRegistrantProfileRequest) { + request = &SetDefaultRegistrantProfileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SetDefaultRegistrantProfile", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSetDefaultRegistrantProfileResponse creates a response to parse from SetDefaultRegistrantProfile response +func CreateSetDefaultRegistrantProfileResponse() (response *SetDefaultRegistrantProfileResponse) { + response = &SetDefaultRegistrantProfileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/setup_domain_auto_renew.go b/services/domain/setup_domain_auto_renew.go new file mode 100644 index 0000000000..92ca68c84a --- /dev/null +++ b/services/domain/setup_domain_auto_renew.go @@ -0,0 +1,101 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetupDomainAutoRenew invokes the domain.SetupDomainAutoRenew API synchronously +func (client *Client) SetupDomainAutoRenew(request *SetupDomainAutoRenewRequest) (response *SetupDomainAutoRenewResponse, err error) { + response = CreateSetupDomainAutoRenewResponse() + err = client.DoAction(request, response) + return +} + +// SetupDomainAutoRenewWithChan invokes the domain.SetupDomainAutoRenew API asynchronously +func (client *Client) SetupDomainAutoRenewWithChan(request *SetupDomainAutoRenewRequest) (<-chan *SetupDomainAutoRenewResponse, <-chan error) { + responseChan := make(chan *SetupDomainAutoRenewResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetupDomainAutoRenew(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetupDomainAutoRenewWithCallback invokes the domain.SetupDomainAutoRenew API asynchronously +func (client *Client) SetupDomainAutoRenewWithCallback(request *SetupDomainAutoRenewRequest, callback func(response *SetupDomainAutoRenewResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetupDomainAutoRenewResponse + var err error + defer close(result) + response, err = client.SetupDomainAutoRenew(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetupDomainAutoRenewRequest is the request struct for api SetupDomainAutoRenew +type SetupDomainAutoRenewRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Operation string `position:"Query" name:"Operation"` +} + +// SetupDomainAutoRenewResponse is the response struct for api SetupDomainAutoRenew +type SetupDomainAutoRenewResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Result bool `json:"Result" xml:"Result"` +} + +// CreateSetupDomainAutoRenewRequest creates a request to invoke SetupDomainAutoRenew API +func CreateSetupDomainAutoRenewRequest() (request *SetupDomainAutoRenewRequest) { + request = &SetupDomainAutoRenewRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SetupDomainAutoRenew", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSetupDomainAutoRenewResponse creates a response to parse from SetupDomainAutoRenew response +func CreateSetupDomainAutoRenewResponse() (response *SetupDomainAutoRenewResponse) { + response = &SetupDomainAutoRenewResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/struct_addr.go b/services/domain/struct_addr.go new file mode 100644 index 0000000000..7dfd763899 --- /dev/null +++ b/services/domain/struct_addr.go @@ -0,0 +1,25 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Addr is a nested struct in domain response +type Addr struct { + Cc string `json:"Cc" xml:"Cc"` + Pc string `json:"Pc" xml:"Pc"` + Sp string `json:"Sp" xml:"Sp"` + City string `json:"City" xml:"City"` + Street StreetInLookupTmchNotice `json:"Street" xml:"Street"` +} diff --git a/services/domain/struct_admin_division.go b/services/domain/struct_admin_division.go new file mode 100644 index 0000000000..c513a78353 --- /dev/null +++ b/services/domain/struct_admin_division.go @@ -0,0 +1,22 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AdminDivision is a nested struct in domain response +type AdminDivision struct { + DivisionName string `json:"DivisionName" xml:"DivisionName"` + Children Children `json:"Children" xml:"Children"` +} diff --git a/services/domain/struct_admin_divisions.go b/services/domain/struct_admin_divisions.go new file mode 100644 index 0000000000..3448d11dc3 --- /dev/null +++ b/services/domain/struct_admin_divisions.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AdminDivisions is a nested struct in domain response +type AdminDivisions struct { + AdminDivision []AdminDivision `json:"AdminDivision" xml:"AdminDivision"` +} diff --git a/services/domain/struct_auction_detail.go b/services/domain/struct_auction_detail.go deleted file mode 100644 index 1979bf8e7b..0000000000 --- a/services/domain/struct_auction_detail.go +++ /dev/null @@ -1,45 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AuctionDetail is a nested struct in domain response -type AuctionDetail struct { - Status string `json:"Status" xml:"Status"` - ReserveMet bool `json:"ReserveMet" xml:"ReserveMet"` - HighBid float64 `json:"HighBid" xml:"HighBid"` - DeliveryTime int64 `json:"DeliveryTime" xml:"DeliveryTime"` - TransferInPrice float64 `json:"TransferInPrice" xml:"TransferInPrice"` - NextValidBid float64 `json:"NextValidBid" xml:"NextValidBid"` - ProduceStatus string `json:"ProduceStatus" xml:"ProduceStatus"` - HighBidder string `json:"HighBidder" xml:"HighBidder"` - BookedPartner string `json:"BookedPartner" xml:"BookedPartner"` - Currency string `json:"Currency" xml:"Currency"` - DomainName string `json:"DomainName" xml:"DomainName"` - YourCurrentBid float64 `json:"YourCurrentBid" xml:"YourCurrentBid"` - FailCode string `json:"FailCode" xml:"FailCode"` - AuctionEndTime int64 `json:"AuctionEndTime" xml:"AuctionEndTime"` - BookEndTime int64 `json:"BookEndTime" xml:"BookEndTime"` - PayEndTime int64 `json:"PayEndTime" xml:"PayEndTime"` - PayStatus string `json:"PayStatus" xml:"PayStatus"` - YourMaxBid float64 `json:"YourMaxBid" xml:"YourMaxBid"` - PayPrice float64 `json:"PayPrice" xml:"PayPrice"` - AuctionId string `json:"AuctionId" xml:"AuctionId"` - PartnerType string `json:"PartnerType" xml:"PartnerType"` - DomainType string `json:"DomainType" xml:"DomainType"` - ReserveMin int64 `json:"ReserveMin" xml:"ReserveMin"` - ReserveMax int64 `json:"ReserveMax" xml:"ReserveMax"` - ReservePrice int64 `json:"ReservePrice" xml:"ReservePrice"` -} diff --git a/services/domain/struct_change_log.go b/services/domain/struct_change_log.go new file mode 100644 index 0000000000..682440ed4f --- /dev/null +++ b/services/domain/struct_change_log.go @@ -0,0 +1,26 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ChangeLog is a nested struct in domain response +type ChangeLog struct { + Operation string `json:"Operation" xml:"Operation"` + Time string `json:"Time" xml:"Time"` + Result string `json:"Result" xml:"Result"` + DomainName string `json:"DomainName" xml:"DomainName"` + OperationIPAddress string `json:"OperationIPAddress" xml:"OperationIPAddress"` + Details string `json:"Details" xml:"Details"` +} diff --git a/services/domain/struct_data_in_query_bid_records.go b/services/domain/struct_children.go similarity index 81% rename from services/domain/struct_data_in_query_bid_records.go rename to services/domain/struct_children.go index 0d83c0b836..1c6925cbd9 100644 --- a/services/domain/struct_data_in_query_bid_records.go +++ b/services/domain/struct_children.go @@ -15,7 +15,7 @@ package domain // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DataInQueryBidRecords is a nested struct in domain response -type DataInQueryBidRecords struct { - BidRecord []BidRecord `json:"BidRecord" xml:"BidRecord"` +// Children is a nested struct in domain response +type Children struct { + ChildrenItem []ChildrenItem `json:"Children" xml:"Children"` } diff --git a/services/domain/struct_children_item.go b/services/domain/struct_children_item.go new file mode 100644 index 0000000000..7e27fe32ad --- /dev/null +++ b/services/domain/struct_children_item.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ChildrenItem is a nested struct in domain response +type ChildrenItem struct { + ChildDivisionName string `json:"ChildDivisionName" xml:"ChildDivisionName"` +} diff --git a/services/domain/struct_claim.go b/services/domain/struct_claim.go new file mode 100644 index 0000000000..204d5b3b1e --- /dev/null +++ b/services/domain/struct_claim.go @@ -0,0 +1,26 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Claim is a nested struct in domain response +type Claim struct { + GoodsAndServices string `json:"GoodsAndServices" xml:"GoodsAndServices"` + MarkName string `json:"MarkName" xml:"MarkName"` + JurDesc JurDesc `json:"JurDesc" xml:"JurDesc"` + Contacts Contacts `json:"Contacts" xml:"Contacts"` + ClassDescs ClassDescs `json:"ClassDescs" xml:"ClassDescs"` + Holders Holders `json:"Holders" xml:"Holders"` +} diff --git a/services/domain/struct_claims.go b/services/domain/struct_claims.go new file mode 100644 index 0000000000..8110d591a5 --- /dev/null +++ b/services/domain/struct_claims.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Claims is a nested struct in domain response +type Claims struct { + Claim []Claim `json:"Claim" xml:"Claim"` +} diff --git a/services/domain/struct_class_desc.go b/services/domain/struct_class_desc.go new file mode 100644 index 0000000000..48ddae5708 --- /dev/null +++ b/services/domain/struct_class_desc.go @@ -0,0 +1,22 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClassDesc is a nested struct in domain response +type ClassDesc struct { + ClassNum int `json:"ClassNum" xml:"ClassNum"` + Desc string `json:"Desc" xml:"Desc"` +} diff --git a/services/domain/struct_class_descs.go b/services/domain/struct_class_descs.go new file mode 100644 index 0000000000..b814b67292 --- /dev/null +++ b/services/domain/struct_class_descs.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ClassDescs is a nested struct in domain response +type ClassDescs struct { + ClassDesc []ClassDesc `json:"ClassDesc" xml:"ClassDesc"` +} diff --git a/services/domain/struct_bid_record.go b/services/domain/struct_contact.go similarity index 67% rename from services/domain/struct_bid_record.go rename to services/domain/struct_contact.go index 212625788c..28c4af0751 100644 --- a/services/domain/struct_bid_record.go +++ b/services/domain/struct_contact.go @@ -15,11 +15,13 @@ package domain // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// BidRecord is a nested struct in domain response -type BidRecord struct { - Bidder string `json:"Bidder" xml:"Bidder"` - BidTime int64 `json:"BidTime" xml:"BidTime"` - Bid float64 `json:"Bid" xml:"Bid"` - Currency string `json:"Currency" xml:"Currency"` - DomainName string `json:"DomainName" xml:"DomainName"` +// Contact is a nested struct in domain response +type Contact struct { + Type string `json:"Type" xml:"Type"` + Voice string `json:"Voice" xml:"Voice"` + Email string `json:"Email" xml:"Email"` + Fax string `json:"Fax" xml:"Fax"` + Org string `json:"Org" xml:"Org"` + Name string `json:"Name" xml:"Name"` + Addr Addr `json:"Addr" xml:"Addr"` } diff --git a/services/domain/struct_contacts.go b/services/domain/struct_contacts.go new file mode 100644 index 0000000000..7a3f189ca7 --- /dev/null +++ b/services/domain/struct_contacts.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Contacts is a nested struct in domain response +type Contacts struct { + Contact []Contact `json:"Contact" xml:"Contact"` +} diff --git a/services/domain/struct_credentials.go b/services/domain/struct_credentials.go new file mode 100644 index 0000000000..e3b5117a1e --- /dev/null +++ b/services/domain/struct_credentials.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Credentials is a nested struct in domain response +type Credentials struct { + QualificationCredential []QualificationCredential `json:"QualificationCredential" xml:"QualificationCredential"` +} diff --git a/services/domain/struct_current_page_cursor.go b/services/domain/struct_current_page_cursor.go new file mode 100644 index 0000000000..fa08a06650 --- /dev/null +++ b/services/domain/struct_current_page_cursor.go @@ -0,0 +1,35 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CurrentPageCursor is a nested struct in domain response +type CurrentPageCursor struct { + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + CreateTimeLong int64 `json:"CreateTimeLong" xml:"CreateTimeLong"` + DomainName string `json:"DomainName" xml:"DomainName"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Clientip string `json:"Clientip" xml:"Clientip"` + TryCount int `json:"TryCount" xml:"TryCount"` + TaskType string `json:"TaskType" xml:"TaskType"` +} diff --git a/services/domain/struct_data_in_query_purchased_domains.go b/services/domain/struct_data_in_list_email_verification.go similarity index 78% rename from services/domain/struct_data_in_query_purchased_domains.go rename to services/domain/struct_data_in_list_email_verification.go index 69876875f4..e0610b6083 100644 --- a/services/domain/struct_data_in_query_purchased_domains.go +++ b/services/domain/struct_data_in_list_email_verification.go @@ -15,7 +15,7 @@ package domain // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DataInQueryPurchasedDomains is a nested struct in domain response -type DataInQueryPurchasedDomains struct { - PurchasedDomains []PurchasedDomains `json:"PurchasedDomains" xml:"PurchasedDomains"` +// DataInListEmailVerification is a nested struct in domain response +type DataInListEmailVerification struct { + EmailVerification []EmailVerification `json:"EmailVerification" xml:"EmailVerification"` } diff --git a/services/domain/struct_data_in_list_server_lock.go b/services/domain/struct_data_in_list_server_lock.go new file mode 100644 index 0000000000..51a8976edd --- /dev/null +++ b/services/domain/struct_data_in_list_server_lock.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInListServerLock is a nested struct in domain response +type DataInListServerLock struct { + QueryTransferInResponse []QueryTransferInResponse `json:"QueryTransferInResponse" xml:"QueryTransferInResponse"` +} diff --git a/services/domain/struct_data_in_poll_task_result.go b/services/domain/struct_data_in_poll_task_result.go new file mode 100644 index 0000000000..993b5326e7 --- /dev/null +++ b/services/domain/struct_data_in_poll_task_result.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInPollTaskResult is a nested struct in domain response +type DataInPollTaskResult struct { + TaskDetail []TaskDetail `json:"TaskDetail" xml:"TaskDetail"` +} diff --git a/services/domain/struct_data_in_query_advanced_domain_list.go b/services/domain/struct_data_in_query_advanced_domain_list.go new file mode 100644 index 0000000000..a57c73bbe5 --- /dev/null +++ b/services/domain/struct_data_in_query_advanced_domain_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryAdvancedDomainList is a nested struct in domain response +type DataInQueryAdvancedDomainList struct { + Domain []Domain `json:"Domain" xml:"Domain"` +} diff --git a/services/domain/struct_data_in_query_change_log_list.go b/services/domain/struct_data_in_query_change_log_list.go new file mode 100644 index 0000000000..e2f7d919ae --- /dev/null +++ b/services/domain/struct_data_in_query_change_log_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryChangeLogList is a nested struct in domain response +type DataInQueryChangeLogList struct { + ChangeLog []ChangeLog `json:"ChangeLog" xml:"ChangeLog"` +} diff --git a/services/domain/struct_data_in_query_domain_group_list.go b/services/domain/struct_data_in_query_domain_group_list.go new file mode 100644 index 0000000000..3b5afe39e4 --- /dev/null +++ b/services/domain/struct_data_in_query_domain_group_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryDomainGroupList is a nested struct in domain response +type DataInQueryDomainGroupList struct { + DomainGroup []DomainGroup `json:"DomainGroup" xml:"DomainGroup"` +} diff --git a/services/domain/struct_data_in_query_domain_list.go b/services/domain/struct_data_in_query_domain_list.go new file mode 100644 index 0000000000..245c749b92 --- /dev/null +++ b/services/domain/struct_data_in_query_domain_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryDomainList is a nested struct in domain response +type DataInQueryDomainList struct { + Domain []Domain `json:"Domain" xml:"Domain"` +} diff --git a/services/domain/struct_data_in_query_fail_reason_for_domain_real_name_verification.go b/services/domain/struct_data_in_query_fail_reason_for_domain_real_name_verification.go new file mode 100644 index 0000000000..87be5e6bc7 --- /dev/null +++ b/services/domain/struct_data_in_query_fail_reason_for_domain_real_name_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryFailReasonForDomainRealNameVerification is a nested struct in domain response +type DataInQueryFailReasonForDomainRealNameVerification struct { + FailRecord []FailRecord `json:"FailRecord" xml:"FailRecord"` +} diff --git a/services/domain/struct_data_in_query_fail_reason_for_registrant_profile_real_name_verification.go b/services/domain/struct_data_in_query_fail_reason_for_registrant_profile_real_name_verification.go new file mode 100644 index 0000000000..f9e3279822 --- /dev/null +++ b/services/domain/struct_data_in_query_fail_reason_for_registrant_profile_real_name_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryFailReasonForRegistrantProfileRealNameVerification is a nested struct in domain response +type DataInQueryFailReasonForRegistrantProfileRealNameVerification struct { + FailRecord []FailRecord `json:"FailRecord" xml:"FailRecord"` +} diff --git a/services/domain/struct_data_in_query_failing_reason_list_for_qualification.go b/services/domain/struct_data_in_query_failing_reason_list_for_qualification.go new file mode 100644 index 0000000000..31ad44370a --- /dev/null +++ b/services/domain/struct_data_in_query_failing_reason_list_for_qualification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryFailingReasonListForQualification is a nested struct in domain response +type DataInQueryFailingReasonListForQualification struct { + FailRecord []FailRecord `json:"FailRecord" xml:"FailRecord"` +} diff --git a/services/domain/struct_data_in_query_operation_audit_info_list.go b/services/domain/struct_data_in_query_operation_audit_info_list.go new file mode 100644 index 0000000000..c35b917f0f --- /dev/null +++ b/services/domain/struct_data_in_query_operation_audit_info_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryOperationAuditInfoList is a nested struct in domain response +type DataInQueryOperationAuditInfoList struct { + OperationAuditRecord []OperationAuditRecord `json:"OperationAuditRecord" xml:"OperationAuditRecord"` +} diff --git a/services/domain/struct_data_in_query_auctions.go b/services/domain/struct_data_in_query_task_detail_list.go similarity index 80% rename from services/domain/struct_data_in_query_auctions.go rename to services/domain/struct_data_in_query_task_detail_list.go index a43b276dcd..ed5fd3623a 100644 --- a/services/domain/struct_data_in_query_auctions.go +++ b/services/domain/struct_data_in_query_task_detail_list.go @@ -15,7 +15,7 @@ package domain // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DataInQueryAuctions is a nested struct in domain response -type DataInQueryAuctions struct { - AuctionDetail []AuctionDetail `json:"AuctionDetail" xml:"AuctionDetail"` +// DataInQueryTaskDetailList is a nested struct in domain response +type DataInQueryTaskDetailList struct { + TaskDetail []TaskDetail `json:"TaskDetail" xml:"TaskDetail"` } diff --git a/services/domain/struct_data_in_query_task_list.go b/services/domain/struct_data_in_query_task_list.go new file mode 100644 index 0000000000..e2d549a2fa --- /dev/null +++ b/services/domain/struct_data_in_query_task_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryTaskList is a nested struct in domain response +type DataInQueryTaskList struct { + TaskInfo []TaskInfo `json:"TaskInfo" xml:"TaskInfo"` +} diff --git a/services/domain/struct_data_in_query_transfer_in_list.go b/services/domain/struct_data_in_query_transfer_in_list.go new file mode 100644 index 0000000000..4414cb30b3 --- /dev/null +++ b/services/domain/struct_data_in_query_transfer_in_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInQueryTransferInList is a nested struct in domain response +type DataInQueryTransferInList struct { + TransferInInfo []TransferInInfo `json:"TransferInInfo" xml:"TransferInInfo"` +} diff --git a/services/domain/struct_data_in_scroll_domain_list.go b/services/domain/struct_data_in_scroll_domain_list.go new file mode 100644 index 0000000000..31c6317f94 --- /dev/null +++ b/services/domain/struct_data_in_scroll_domain_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInScrollDomainList is a nested struct in domain response +type DataInScrollDomainList struct { + Domain []Domain `json:"Domain" xml:"Domain"` +} diff --git a/services/domain/struct_demand.go b/services/domain/struct_demand.go deleted file mode 100644 index b95d3d0244..0000000000 --- a/services/domain/struct_demand.go +++ /dev/null @@ -1,40 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Demand is a nested struct in domain response -type Demand struct { - Status string `json:"Status" xml:"Status"` - DemandPrice float64 `json:"DemandPrice" xml:"DemandPrice"` - BizId string `json:"BizId" xml:"BizId"` - BargainSellerMobile string `json:"BargainSellerMobile" xml:"BargainSellerMobile"` - PublishTime int64 `json:"PublishTime" xml:"PublishTime"` - ProduceType int `json:"ProduceType" xml:"ProduceType"` - DemandDomain string `json:"DemandDomain" xml:"DemandDomain"` - Description string `json:"Description" xml:"Description"` - Mobile string `json:"Mobile" xml:"Mobile"` - ServicePayPrice float64 `json:"ServicePayPrice" xml:"ServicePayPrice"` - PayPrice float64 `json:"PayPrice" xml:"PayPrice"` - PayTime int64 `json:"PayTime" xml:"PayTime"` - BargainSellerPrice float64 `json:"BargainSellerPrice" xml:"BargainSellerPrice"` - OrderType int `json:"OrderType" xml:"OrderType"` - PayDomain string `json:"PayDomain" xml:"PayDomain"` - AuditStatus int `json:"AuditStatus" xml:"AuditStatus"` - PartnerDomain string `json:"PartnerDomain" xml:"PartnerDomain"` - PurchaseStatus int `json:"PurchaseStatus" xml:"PurchaseStatus"` - Email string `json:"Email" xml:"Email"` - SettleBasePrice float64 `json:"SettleBasePrice" xml:"SettleBasePrice"` -} diff --git a/services/domain/struct_dns_host.go b/services/domain/struct_dns_host.go new file mode 100644 index 0000000000..7bc80fab10 --- /dev/null +++ b/services/domain/struct_dns_host.go @@ -0,0 +1,22 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsHost is a nested struct in domain response +type DnsHost struct { + DnsName string `json:"DnsName" xml:"DnsName"` + IpList []string `json:"IpList" xml:"IpList"` +} diff --git a/services/domain/struct_dns_host_list.go b/services/domain/struct_dns_host_list.go new file mode 100644 index 0000000000..ad71f94ace --- /dev/null +++ b/services/domain/struct_dns_host_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsHostList is a nested struct in domain response +type DnsHostList struct { + DnsHost []DnsHost `json:"DnsHost" xml:"DnsHost"` +} diff --git a/services/domain/struct_dns_list_in_query_advanced_domain_list.go b/services/domain/struct_dns_list_in_query_advanced_domain_list.go new file mode 100644 index 0000000000..97abf74e35 --- /dev/null +++ b/services/domain/struct_dns_list_in_query_advanced_domain_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsListInQueryAdvancedDomainList is a nested struct in domain response +type DnsListInQueryAdvancedDomainList struct { + Dns []string `json:"Dns" xml:"Dns"` +} diff --git a/services/domain/struct_dns_list_in_query_domain_by_domain_name.go b/services/domain/struct_dns_list_in_query_domain_by_domain_name.go new file mode 100644 index 0000000000..aef741824b --- /dev/null +++ b/services/domain/struct_dns_list_in_query_domain_by_domain_name.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsListInQueryDomainByDomainName is a nested struct in domain response +type DnsListInQueryDomainByDomainName struct { + Dns []string `json:"Dns" xml:"Dns"` +} diff --git a/services/domain/struct_dns_list_in_query_domain_by_instance_id.go b/services/domain/struct_dns_list_in_query_domain_by_instance_id.go new file mode 100644 index 0000000000..e5a2e56281 --- /dev/null +++ b/services/domain/struct_dns_list_in_query_domain_by_instance_id.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsListInQueryDomainByInstanceId is a nested struct in domain response +type DnsListInQueryDomainByInstanceId struct { + Dns []string `json:"Dns" xml:"Dns"` +} diff --git a/services/domain/struct_dns_list_in_scroll_domain_list.go b/services/domain/struct_dns_list_in_scroll_domain_list.go new file mode 100644 index 0000000000..ea02517c90 --- /dev/null +++ b/services/domain/struct_dns_list_in_scroll_domain_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DnsListInScrollDomainList is a nested struct in domain response +type DnsListInScrollDomainList struct { + Dns []string `json:"Dns" xml:"Dns"` +} diff --git a/services/domain/struct_domain.go b/services/domain/struct_domain.go new file mode 100644 index 0000000000..1fe52749cc --- /dev/null +++ b/services/domain/struct_domain.go @@ -0,0 +1,45 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Domain is a nested struct in domain response +type Domain struct { + RegistrationDateLong int64 `json:"RegistrationDateLong" xml:"RegistrationDateLong"` + ZhRegistrantOrganization string `json:"ZhRegistrantOrganization" xml:"ZhRegistrantOrganization"` + DomainStatus string `json:"DomainStatus" xml:"DomainStatus"` + DomainType string `json:"DomainType" xml:"DomainType"` + ExpirationDateStatus string `json:"ExpirationDateStatus" xml:"ExpirationDateStatus"` + ProductId string `json:"ProductId" xml:"ProductId"` + RegistrantType string `json:"RegistrantType" xml:"RegistrantType"` + ExpirationDateLong int64 `json:"ExpirationDateLong" xml:"ExpirationDateLong"` + Premium bool `json:"Premium" xml:"Premium"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + DomainAuditStatus string `json:"DomainAuditStatus" xml:"DomainAuditStatus"` + DomainGroupName string `json:"DomainGroupName" xml:"DomainGroupName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + ExpirationCurrDateDiff int `json:"ExpirationCurrDateDiff" xml:"ExpirationCurrDateDiff"` + DomainGroupId string `json:"DomainGroupId" xml:"DomainGroupId"` + RegistrationDate string `json:"RegistrationDate" xml:"RegistrationDate"` + ChgholderStatus string `json:"ChgholderStatus" xml:"ChgholderStatus"` + Email string `json:"Email" xml:"Email"` + Remark string `json:"Remark" xml:"Remark"` + DomainName string `json:"DomainName" xml:"DomainName"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + Ccompany string `json:"Ccompany" xml:"Ccompany"` + DnsList DnsListInQueryAdvancedDomainList `json:"DnsList" xml:"DnsList"` + Tag TagInQueryAdvancedDomainList `json:"Tag" xml:"Tag"` +} diff --git a/services/domain/struct_purchased_domains.go b/services/domain/struct_domain_group.go similarity index 55% rename from services/domain/struct_purchased_domains.go rename to services/domain/struct_domain_group.go index e0b359699a..1f7a8e3cdb 100644 --- a/services/domain/struct_purchased_domains.go +++ b/services/domain/struct_domain_group.go @@ -15,12 +15,13 @@ package domain // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// PurchasedDomains is a nested struct in domain response -type PurchasedDomains struct { - DomainName string `json:"DomainName" xml:"DomainName"` - OperationTime string `json:"OperationTime" xml:"OperationTime"` - DeliveryTime string `json:"DeliveryTime" xml:"DeliveryTime"` - TradeMoney string `json:"TradeMoney" xml:"TradeMoney"` - ProductType string `json:"ProductType" xml:"ProductType"` - OperationStatus string `json:"OperationStatus" xml:"OperationStatus"` +// DomainGroup is a nested struct in domain response +type DomainGroup struct { + BeingDeleted bool `json:"BeingDeleted" xml:"BeingDeleted"` + DomainGroupStatus string `json:"DomainGroupStatus" xml:"DomainGroupStatus"` + DomainGroupId string `json:"DomainGroupId" xml:"DomainGroupId"` + DomainGroupName string `json:"DomainGroupName" xml:"DomainGroupName"` + ModificationDate string `json:"ModificationDate" xml:"ModificationDate"` + TotalNumber int `json:"TotalNumber" xml:"TotalNumber"` + CreationDate string `json:"CreationDate" xml:"CreationDate"` } diff --git a/services/domain/struct_domain_special_biz_contact.go b/services/domain/struct_domain_special_biz_contact.go new file mode 100644 index 0000000000..3f8b74857f --- /dev/null +++ b/services/domain/struct_domain_special_biz_contact.go @@ -0,0 +1,45 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainSpecialBizContact is a nested struct in domain response +type DomainSpecialBizContact struct { + Extend string `json:"Extend" xml:"Extend"` + CName string `json:"CName" xml:"CName"` + VspContactId string `json:"VspContactId" xml:"VspContactId"` + RegType int `json:"RegType" xml:"RegType"` + ECity string `json:"ECity" xml:"ECity"` + CCountry string `json:"CCountry" xml:"CCountry"` + BizId int64 `json:"BizId" xml:"BizId"` + Postalcode string `json:"Postalcode" xml:"Postalcode"` + EName string `json:"EName" xml:"EName"` + FaxMain string `json:"FaxMain" xml:"FaxMain"` + TelExt string `json:"TelExt" xml:"TelExt"` + ECompany string `json:"ECompany" xml:"ECompany"` + EProvince string `json:"EProvince" xml:"EProvince"` + EVenu string `json:"EVenu" xml:"EVenu"` + Email string `json:"Email" xml:"Email"` + CCompany string `json:"CCompany" xml:"CCompany"` + TelArea string `json:"TelArea" xml:"TelArea"` + CProvince string `json:"CProvince" xml:"CProvince"` + CCity string `json:"CCity" xml:"CCity"` + TelMain string `json:"TelMain" xml:"TelMain"` + Mobile string `json:"Mobile" xml:"Mobile"` + FaxExt string `json:"FaxExt" xml:"FaxExt"` + RegistrantId string `json:"RegistrantId" xml:"RegistrantId"` + CVenu string `json:"CVenu" xml:"CVenu"` + FaxArea string `json:"FaxArea" xml:"FaxArea"` +} diff --git a/services/domain/struct_domain_special_biz_credential.go b/services/domain/struct_domain_special_biz_credential.go new file mode 100644 index 0000000000..61815a44df --- /dev/null +++ b/services/domain/struct_domain_special_biz_credential.go @@ -0,0 +1,27 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainSpecialBizCredential is a nested struct in domain response +type DomainSpecialBizCredential struct { + BizId int64 `json:"BizId" xml:"BizId"` + HolderCert int `json:"HolderCert" xml:"HolderCert"` + CredentialType string `json:"CredentialType" xml:"CredentialType"` + CredentialUrl string `json:"CredentialUrl" xml:"CredentialUrl"` + DomainName string `json:"DomainName" xml:"DomainName"` + SaleId string `json:"SaleId" xml:"SaleId"` + CredentialNo string `json:"CredentialNo" xml:"CredentialNo"` +} diff --git a/services/domain/struct_domain_special_biz_credentials_in_query_domain_special_biz_detail.go b/services/domain/struct_domain_special_biz_credentials_in_query_domain_special_biz_detail.go new file mode 100644 index 0000000000..e25fea49c8 --- /dev/null +++ b/services/domain/struct_domain_special_biz_credentials_in_query_domain_special_biz_detail.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainSpecialBizCredentialsInQueryDomainSpecialBizDetail is a nested struct in domain response +type DomainSpecialBizCredentialsInQueryDomainSpecialBizDetail struct { + DomainSpecialBizCredential []DomainSpecialBizCredential `json:"DomainSpecialBizCredential" xml:"DomainSpecialBizCredential"` +} diff --git a/services/domain/struct_domain_special_biz_credentials_in_query_domain_special_biz_info_by_domain.go b/services/domain/struct_domain_special_biz_credentials_in_query_domain_special_biz_info_by_domain.go new file mode 100644 index 0000000000..61ff5bd436 --- /dev/null +++ b/services/domain/struct_domain_special_biz_credentials_in_query_domain_special_biz_info_by_domain.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainSpecialBizCredentialsInQueryDomainSpecialBizInfoByDomain is a nested struct in domain response +type DomainSpecialBizCredentialsInQueryDomainSpecialBizInfoByDomain struct { + DomainSpecialBizCredential []DomainSpecialBizCredential `json:"DomainSpecialBizCredential" xml:"DomainSpecialBizCredential"` +} diff --git a/services/domain/struct_domain_special_order_result.go b/services/domain/struct_domain_special_order_result.go new file mode 100644 index 0000000000..d97825b50e --- /dev/null +++ b/services/domain/struct_domain_special_order_result.go @@ -0,0 +1,29 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DomainSpecialOrderResult is a nested struct in domain response +type DomainSpecialOrderResult struct { + SaleId string `json:"SaleId" xml:"SaleId"` + OrderId string `json:"OrderId" xml:"OrderId"` + SubOrderId string `json:"SubOrderId" xml:"SubOrderId"` + ActionType string `json:"ActionType" xml:"ActionType"` + OrderAmount string `json:"OrderAmount" xml:"OrderAmount"` + OrderCurrency string `json:"OrderCurrency" xml:"OrderCurrency"` + OrderTime string `json:"OrderTime" xml:"OrderTime"` + OrderYear int `json:"OrderYear" xml:"OrderYear"` + OrderStatus string `json:"OrderStatus" xml:"OrderStatus"` +} diff --git a/services/domain/struct_domain_transfer_status.go b/services/domain/struct_domain_transfer_status.go deleted file mode 100644 index 1f9844b40f..0000000000 --- a/services/domain/struct_domain_transfer_status.go +++ /dev/null @@ -1,21 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// DomainTransferStatus is a nested struct in domain response -type DomainTransferStatus struct { - DomainTransferStatusItem []DomainTransferStatusItem `json:"DomainTransferStatus" xml:"DomainTransferStatus"` -} diff --git a/services/domain/struct_ds_record.go b/services/domain/struct_ds_record.go new file mode 100644 index 0000000000..12a28991cb --- /dev/null +++ b/services/domain/struct_ds_record.go @@ -0,0 +1,24 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DSRecord is a nested struct in domain response +type DSRecord struct { + DigestType int `json:"DigestType" xml:"DigestType"` + Digest string `json:"Digest" xml:"Digest"` + Algorithm int `json:"Algorithm" xml:"Algorithm"` + KeyTag int `json:"KeyTag" xml:"KeyTag"` +} diff --git a/services/domain/struct_ds_record_list.go b/services/domain/struct_ds_record_list.go new file mode 100644 index 0000000000..02e53bccbe --- /dev/null +++ b/services/domain/struct_ds_record_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DSRecordList is a nested struct in domain response +type DSRecordList struct { + DSRecord []DSRecord `json:"DSRecord" xml:"DSRecord"` +} diff --git a/services/domain/struct_email_verification.go b/services/domain/struct_email_verification.go new file mode 100644 index 0000000000..b6925e1414 --- /dev/null +++ b/services/domain/struct_email_verification.go @@ -0,0 +1,30 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EmailVerification is a nested struct in domain response +type EmailVerification struct { + VerificationTime string `json:"VerificationTime" xml:"VerificationTime"` + Email string `json:"Email" xml:"Email"` + EmailVerificationNo string `json:"EmailVerificationNo" xml:"EmailVerificationNo"` + UserId string `json:"UserId" xml:"UserId"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + VerificationStatus int `json:"VerificationStatus" xml:"VerificationStatus"` + TokenSendTime string `json:"TokenSendTime" xml:"TokenSendTime"` + SendIp string `json:"SendIp" xml:"SendIp"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + ConfirmIp string `json:"ConfirmIp" xml:"ConfirmIp"` +} diff --git a/services/domain/struct_error_args_in_purchase_intl_domain.go b/services/domain/struct_error_args_in_query_domain_special_biz_detail.go similarity index 85% rename from services/domain/struct_error_args_in_purchase_intl_domain.go rename to services/domain/struct_error_args_in_query_domain_special_biz_detail.go index a98a632ea6..741125b75d 100644 --- a/services/domain/struct_error_args_in_purchase_intl_domain.go +++ b/services/domain/struct_error_args_in_query_domain_special_biz_detail.go @@ -15,7 +15,7 @@ package domain // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ErrorArgsInPurchaseIntlDomain is a nested struct in domain response -type ErrorArgsInPurchaseIntlDomain struct { +// ErrorArgsInQueryDomainSpecialBizDetail is a nested struct in domain response +type ErrorArgsInQueryDomainSpecialBizDetail struct { ErrorArg []string `json:"ErrorArg" xml:"ErrorArg"` } diff --git a/services/domain/struct_error_args_in_get_intl_domain_download_url.go b/services/domain/struct_error_args_in_query_domain_special_biz_info_by_domain.go similarity index 83% rename from services/domain/struct_error_args_in_get_intl_domain_download_url.go rename to services/domain/struct_error_args_in_query_domain_special_biz_info_by_domain.go index 448002f093..7f8825f31b 100644 --- a/services/domain/struct_error_args_in_get_intl_domain_download_url.go +++ b/services/domain/struct_error_args_in_query_domain_special_biz_info_by_domain.go @@ -15,7 +15,7 @@ package domain // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ErrorArgsInGetIntlDomainDownloadUrl is a nested struct in domain response -type ErrorArgsInGetIntlDomainDownloadUrl struct { +// ErrorArgsInQueryDomainSpecialBizInfoByDomain is a nested struct in domain response +type ErrorArgsInQueryDomainSpecialBizInfoByDomain struct { ErrorArg []string `json:"ErrorArg" xml:"ErrorArg"` } diff --git a/services/domain/struct_exist_list.go b/services/domain/struct_exist_list.go new file mode 100644 index 0000000000..b98e7475d3 --- /dev/null +++ b/services/domain/struct_exist_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ExistList is a nested struct in domain response +type ExistList struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/services/domain/struct_fail_list_in_confirm_transfer_in_email.go b/services/domain/struct_fail_list_in_confirm_transfer_in_email.go new file mode 100644 index 0000000000..836a7d4bf8 --- /dev/null +++ b/services/domain/struct_fail_list_in_confirm_transfer_in_email.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInConfirmTransferInEmail is a nested struct in domain response +type FailListInConfirmTransferInEmail struct { + FailDomain []string `json:"FailDomain" xml:"FailDomain"` +} diff --git a/services/domain/struct_fail_list_in_delete_email_verification.go b/services/domain/struct_fail_list_in_delete_email_verification.go new file mode 100644 index 0000000000..44970cfaa1 --- /dev/null +++ b/services/domain/struct_fail_list_in_delete_email_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInDeleteEmailVerification is a nested struct in domain response +type FailListInDeleteEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/services/domain/struct_fail_list_in_resend_email_verification.go b/services/domain/struct_fail_list_in_resend_email_verification.go new file mode 100644 index 0000000000..0272a6a650 --- /dev/null +++ b/services/domain/struct_fail_list_in_resend_email_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInResendEmailVerification is a nested struct in domain response +type FailListInResendEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/services/domain/struct_fail_list_in_submit_email_verification.go b/services/domain/struct_fail_list_in_submit_email_verification.go new file mode 100644 index 0000000000..0d1a23402c --- /dev/null +++ b/services/domain/struct_fail_list_in_submit_email_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInSubmitEmailVerification is a nested struct in domain response +type FailListInSubmitEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/services/domain/struct_fail_list_in_transfer_in_check_mail_token.go b/services/domain/struct_fail_list_in_transfer_in_check_mail_token.go new file mode 100644 index 0000000000..8d3f76d106 --- /dev/null +++ b/services/domain/struct_fail_list_in_transfer_in_check_mail_token.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailListInTransferInCheckMailToken is a nested struct in domain response +type FailListInTransferInCheckMailToken struct { + FailDomain []string `json:"FailDomain" xml:"FailDomain"` +} diff --git a/services/domain/struct_fail_record.go b/services/domain/struct_fail_record.go new file mode 100644 index 0000000000..808bb1bd28 --- /dev/null +++ b/services/domain/struct_fail_record.go @@ -0,0 +1,23 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FailRecord is a nested struct in domain response +type FailRecord struct { + Date string `json:"Date" xml:"Date"` + FailReason string `json:"FailReason" xml:"FailReason"` + DomainNameVerificationStatus string `json:"DomainNameVerificationStatus" xml:"DomainNameVerificationStatus"` +} diff --git a/services/domain/struct_holder.go b/services/domain/struct_holder.go new file mode 100644 index 0000000000..bfb0ccc766 --- /dev/null +++ b/services/domain/struct_holder.go @@ -0,0 +1,23 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Holder is a nested struct in domain response +type Holder struct { + Entitlement string `json:"Entitlement" xml:"Entitlement"` + Org string `json:"Org" xml:"Org"` + Addr Addr `json:"Addr" xml:"Addr"` +} diff --git a/services/domain/struct_holders.go b/services/domain/struct_holders.go new file mode 100644 index 0000000000..5fc20e9c6b --- /dev/null +++ b/services/domain/struct_holders.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Holders is a nested struct in domain response +type Holders struct { + Holder []Holder `json:"Holder" xml:"Holder"` +} diff --git a/services/domain/struct_ip_list.go b/services/domain/struct_ip_list.go new file mode 100644 index 0000000000..91903ab951 --- /dev/null +++ b/services/domain/struct_ip_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IpList is a nested struct in domain response +type IpList struct { + Ip []string `json:"ip" xml:"ip"` +} diff --git a/services/domain/struct_jur_desc.go b/services/domain/struct_jur_desc.go new file mode 100644 index 0000000000..746c6e6e73 --- /dev/null +++ b/services/domain/struct_jur_desc.go @@ -0,0 +1,22 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// JurDesc is a nested struct in domain response +type JurDesc struct { + JurCC string `json:"JurCC" xml:"JurCC"` + Desc string `json:"Desc" xml:"Desc"` +} diff --git a/services/domain/struct_matched_sensitive_word.go b/services/domain/struct_matched_sensitive_word.go new file mode 100644 index 0000000000..9fe1a54f74 --- /dev/null +++ b/services/domain/struct_matched_sensitive_word.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MatchedSensitiveWord is a nested struct in domain response +type MatchedSensitiveWord struct { + Word string `json:"Word" xml:"Word"` +} diff --git a/services/domain/struct_matched_sentive_words_in_batch_fuzzy_match_domain_sensitive_word.go b/services/domain/struct_matched_sentive_words_in_batch_fuzzy_match_domain_sensitive_word.go new file mode 100644 index 0000000000..9825f261d6 --- /dev/null +++ b/services/domain/struct_matched_sentive_words_in_batch_fuzzy_match_domain_sensitive_word.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MatchedSentiveWordsInBatchFuzzyMatchDomainSensitiveWord is a nested struct in domain response +type MatchedSentiveWordsInBatchFuzzyMatchDomainSensitiveWord struct { + MatchedSensitiveWord []MatchedSensitiveWord `json:"MatchedSensitiveWord" xml:"MatchedSensitiveWord"` +} diff --git a/services/domain/struct_broker_demand_record.go b/services/domain/struct_matched_sentive_words_in_fuzzy_match_domain_sensitive_word.go similarity index 73% rename from services/domain/struct_broker_demand_record.go rename to services/domain/struct_matched_sentive_words_in_fuzzy_match_domain_sensitive_word.go index 67a63c41a8..fd806db302 100644 --- a/services/domain/struct_broker_demand_record.go +++ b/services/domain/struct_matched_sentive_words_in_fuzzy_match_domain_sensitive_word.go @@ -15,9 +15,7 @@ package domain // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// BrokerDemandRecord is a nested struct in domain response -type BrokerDemandRecord struct { - Description string `json:"Description" xml:"Description"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` - BizId string `json:"BizId" xml:"BizId"` +// MatchedSentiveWordsInFuzzyMatchDomainSensitiveWord is a nested struct in domain response +type MatchedSentiveWordsInFuzzyMatchDomainSensitiveWord struct { + MatchedSensitiveWord []MatchedSensitiveWord `json:"MatchedSensitiveWord" xml:"MatchedSensitiveWord"` } diff --git a/services/domain/struct_module.go b/services/domain/struct_module.go index 5bdb0260e6..f1ed32c709 100644 --- a/services/domain/struct_module.go +++ b/services/domain/struct_module.go @@ -17,10 +17,35 @@ package domain // Module is a nested struct in domain response type Module struct { - Domain string `json:"Domain" xml:"Domain"` - Price float64 `json:"Price" xml:"Price"` - DownloadUrl string `json:"DownloadUrl" xml:"DownloadUrl"` - RegDate int64 `json:"RegDate" xml:"RegDate"` - DeadDate int64 `json:"DeadDate" xml:"DeadDate"` - EndTime int64 `json:"EndTime" xml:"EndTime"` + Domain string `json:"Domain" xml:"Domain"` + ProductId string `json:"ProductId" xml:"ProductId"` + BizName string `json:"BizName" xml:"BizName"` + SaleId string `json:"SaleId" xml:"SaleId"` + DownloadUrl string `json:"DownloadUrl" xml:"DownloadUrl"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + EndTime int64 `json:"EndTime" xml:"EndTime"` + OrderNo string `json:"OrderNo" xml:"OrderNo"` + OrderId string `json:"OrderId" xml:"OrderId"` + Premium bool `json:"Premium" xml:"Premium"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + BizType string `json:"BizType" xml:"BizType"` + UserId string `json:"UserId" xml:"UserId"` + PayPrice int64 `json:"PayPrice" xml:"PayPrice"` + DeadDate int64 `json:"DeadDate" xml:"DeadDate"` + BizStatus string `json:"BizStatus" xml:"BizStatus"` + Status int `json:"Status" xml:"Status"` + UpdateTime int64 `json:"UpdateTime" xml:"UpdateTime"` + DomainName string `json:"DomainName" xml:"DomainName"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + Id int64 `json:"Id" xml:"Id"` + Currency string `json:"Currency" xml:"Currency"` + PayUrl string `json:"PayUrl" xml:"PayUrl"` + RegDate int64 `json:"RegDate" xml:"RegDate"` + AuditMsg string `json:"AuditMsg" xml:"AuditMsg"` + BizNo string `json:"BizNo" xml:"BizNo"` + StatusDesc string `json:"StatusDesc" xml:"StatusDesc"` + Price int64 `json:"Price" xml:"Price"` + DomainSpecialBizContact DomainSpecialBizContact `json:"DomainSpecialBizContact" xml:"DomainSpecialBizContact"` + DomainSpecialOrderResult DomainSpecialOrderResult `json:"DomainSpecialOrderResult" xml:"DomainSpecialOrderResult"` + DomainSpecialBizCredentials []DomainSpecialBizCredential `json:"DomainSpecialBizCredentials" xml:"DomainSpecialBizCredentials"` } diff --git a/services/domain/struct_module_in_check_selected_domain_status.go b/services/domain/struct_module_in_check_selected_domain_status.go deleted file mode 100644 index 01423eb9a0..0000000000 --- a/services/domain/struct_module_in_check_selected_domain_status.go +++ /dev/null @@ -1,26 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ModuleInCheckSelectedDomainStatus is a nested struct in domain response -type ModuleInCheckSelectedDomainStatus struct { - Domain string `json:"Domain" xml:"Domain"` - Price string `json:"Price" xml:"Price"` - RegDate int64 `json:"RegDate" xml:"RegDate"` - DeadDate int64 `json:"DeadDate" xml:"DeadDate"` - EndTime int64 `json:"EndTime" xml:"EndTime"` - Premium bool `json:"Premium" xml:"Premium"` -} diff --git a/services/domain/struct_module_in_create_fixed_price_demand_order.go b/services/domain/struct_module_in_create_fixed_price_demand_order.go deleted file mode 100644 index 44abd36572..0000000000 --- a/services/domain/struct_module_in_create_fixed_price_demand_order.go +++ /dev/null @@ -1,23 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ModuleInCreateFixedPriceDemandOrder is a nested struct in domain response -type ModuleInCreateFixedPriceDemandOrder struct { - OrderNo string `json:"OrderNo" xml:"OrderNo"` - Price int64 `json:"Price" xml:"Price"` - Domain string `json:"Domain" xml:"Domain"` -} diff --git a/services/domain/struct_module_in_create_fixed_price_selected_order.go b/services/domain/struct_module_in_create_fixed_price_selected_order.go deleted file mode 100644 index 40cef5ea51..0000000000 --- a/services/domain/struct_module_in_create_fixed_price_selected_order.go +++ /dev/null @@ -1,23 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ModuleInCreateFixedPriceSelectedOrder is a nested struct in domain response -type ModuleInCreateFixedPriceSelectedOrder struct { - OrderNo string `json:"OrderNo" xml:"OrderNo"` - Domain string `json:"Domain" xml:"Domain"` - Price int64 `json:"Price" xml:"Price"` -} diff --git a/services/domain/struct_module_in_query_intl_fixed_price_order_list.go b/services/domain/struct_module_in_query_intl_fixed_price_order_list.go new file mode 100644 index 0000000000..4aa36938f4 --- /dev/null +++ b/services/domain/struct_module_in_query_intl_fixed_price_order_list.go @@ -0,0 +1,28 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ModuleInQueryIntlFixedPriceOrderList is a nested struct in domain response +type ModuleInQueryIntlFixedPriceOrderList struct { + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + UpdateTime int64 `json:"UpdateTime" xml:"UpdateTime"` + UserId string `json:"UserId" xml:"UserId"` + BizId string `json:"BizId" xml:"BizId"` + Domain string `json:"Domain" xml:"Domain"` + Price int64 `json:"Price" xml:"Price"` + Status int64 `json:"Status" xml:"Status"` + OrderType int64 `json:"OrderType" xml:"OrderType"` +} diff --git a/services/domain/struct_next_page_cursor.go b/services/domain/struct_next_page_cursor.go new file mode 100644 index 0000000000..be30a09de7 --- /dev/null +++ b/services/domain/struct_next_page_cursor.go @@ -0,0 +1,35 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NextPageCursor is a nested struct in domain response +type NextPageCursor struct { + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + CreateTimeLong int64 `json:"CreateTimeLong" xml:"CreateTimeLong"` + DomainName string `json:"DomainName" xml:"DomainName"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Clientip string `json:"Clientip" xml:"Clientip"` + TryCount int `json:"TryCount" xml:"TryCount"` + TaskType string `json:"TaskType" xml:"TaskType"` +} diff --git a/services/domain/struct_data_in_query_broker_demand_record.go b/services/domain/struct_objects_in_query_task_detail_history.go similarity index 77% rename from services/domain/struct_data_in_query_broker_demand_record.go rename to services/domain/struct_objects_in_query_task_detail_history.go index 767514b4f9..807e20b3cc 100644 --- a/services/domain/struct_data_in_query_broker_demand_record.go +++ b/services/domain/struct_objects_in_query_task_detail_history.go @@ -15,7 +15,7 @@ package domain // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DataInQueryBrokerDemandRecord is a nested struct in domain response -type DataInQueryBrokerDemandRecord struct { - BrokerDemandRecord []BrokerDemandRecord `json:"BrokerDemandRecord" xml:"BrokerDemandRecord"` +// ObjectsInQueryTaskDetailHistory is a nested struct in domain response +type ObjectsInQueryTaskDetailHistory struct { + TaskDetailHistory []TaskDetailHistory `json:"TaskDetailHistory" xml:"TaskDetailHistory"` } diff --git a/services/domain/struct_objects_in_query_task_info_history.go b/services/domain/struct_objects_in_query_task_info_history.go new file mode 100644 index 0000000000..f47ca3958a --- /dev/null +++ b/services/domain/struct_objects_in_query_task_info_history.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ObjectsInQueryTaskInfoHistory is a nested struct in domain response +type ObjectsInQueryTaskInfoHistory struct { + TaskInfoHistory []TaskInfoHistory `json:"TaskInfoHistory" xml:"TaskInfoHistory"` +} diff --git a/services/domain/struct_operation_audit_record.go b/services/domain/struct_operation_audit_record.go new file mode 100644 index 0000000000..98f488914f --- /dev/null +++ b/services/domain/struct_operation_audit_record.go @@ -0,0 +1,29 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationAuditRecord is a nested struct in domain response +type OperationAuditRecord struct { + UpdateTime int64 `json:"UpdateTime" xml:"UpdateTime"` + Remark string `json:"Remark" xml:"Remark"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + AuditType int `json:"AuditType" xml:"AuditType"` + BusinessName string `json:"BusinessName" xml:"BusinessName"` + AuditInfo string `json:"AuditInfo" xml:"AuditInfo"` + DomainName string `json:"DomainName" xml:"DomainName"` + AuditStatus int `json:"AuditStatus" xml:"AuditStatus"` + Id int64 `json:"Id" xml:"Id"` +} diff --git a/services/domain/struct_pre_page_cursor.go b/services/domain/struct_pre_page_cursor.go new file mode 100644 index 0000000000..b3ecba99f7 --- /dev/null +++ b/services/domain/struct_pre_page_cursor.go @@ -0,0 +1,35 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrePageCursor is a nested struct in domain response +type PrePageCursor struct { + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + CreateTimeLong int64 `json:"CreateTimeLong" xml:"CreateTimeLong"` + DomainName string `json:"DomainName" xml:"DomainName"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Clientip string `json:"Clientip" xml:"Clientip"` + TryCount int `json:"TryCount" xml:"TryCount"` + TaskType string `json:"TaskType" xml:"TaskType"` +} diff --git a/services/domain/struct_price_info.go b/services/domain/struct_price_info.go new file mode 100644 index 0000000000..5cf47cf6a2 --- /dev/null +++ b/services/domain/struct_price_info.go @@ -0,0 +1,23 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PriceInfo is a nested struct in domain response +type PriceInfo struct { + Action string `json:"action" xml:"action"` + Money string `json:"money" xml:"money"` + Period int64 `json:"period" xml:"period"` +} diff --git a/services/domain/struct_qualification_credential.go b/services/domain/struct_qualification_credential.go new file mode 100644 index 0000000000..45a1d2a1f8 --- /dev/null +++ b/services/domain/struct_qualification_credential.go @@ -0,0 +1,23 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// QualificationCredential is a nested struct in domain response +type QualificationCredential struct { + CredentialType string `json:"CredentialType" xml:"CredentialType"` + CredentialNo string `json:"CredentialNo" xml:"CredentialNo"` + CredentialUrl string `json:"CredentialUrl" xml:"CredentialUrl"` +} diff --git a/services/domain/struct_query_transfer_in_response.go b/services/domain/struct_query_transfer_in_response.go new file mode 100644 index 0000000000..188c61430a --- /dev/null +++ b/services/domain/struct_query_transfer_in_response.go @@ -0,0 +1,30 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// QueryTransferInResponse is a nested struct in domain response +type QueryTransferInResponse struct { + ServerLockStatus string `json:"ServerLockStatus" xml:"ServerLockStatus"` + LockInstanceId string `json:"LockInstanceId" xml:"LockInstanceId"` + UserId string `json:"UserId" xml:"UserId"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + ExpireDate string `json:"ExpireDate" xml:"ExpireDate"` + StartDate string `json:"StartDate" xml:"StartDate"` + LockProductId string `json:"LockProductId" xml:"LockProductId"` + DomainInstanceId string `json:"DomainInstanceId" xml:"DomainInstanceId"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + DomainName string `json:"DomainName" xml:"DomainName"` +} diff --git a/services/domain/struct_registrant_profile.go b/services/domain/struct_registrant_profile.go new file mode 100644 index 0000000000..08cb86649d --- /dev/null +++ b/services/domain/struct_registrant_profile.go @@ -0,0 +1,47 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegistrantProfile is a nested struct in domain response +type RegistrantProfile struct { + TelExt string `json:"TelExt" xml:"TelExt"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + ZhProvince string `json:"ZhProvince" xml:"ZhProvince"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Telephone string `json:"Telephone" xml:"Telephone"` + RegistrantOrganization string `json:"RegistrantOrganization" xml:"RegistrantOrganization"` + City string `json:"City" xml:"City"` + ZhCity string `json:"ZhCity" xml:"ZhCity"` + TelArea string `json:"TelArea" xml:"TelArea"` + Address string `json:"Address" xml:"Address"` + RealNameStatus string `json:"RealNameStatus" xml:"RealNameStatus"` + PostalCode string `json:"PostalCode" xml:"PostalCode"` + RegistrantProfileType string `json:"RegistrantProfileType" xml:"RegistrantProfileType"` + RegistrantProfileId int64 `json:"RegistrantProfileId" xml:"RegistrantProfileId"` + ZhRegistrantOrganization string `json:"ZhRegistrantOrganization" xml:"ZhRegistrantOrganization"` + DefaultRegistrantProfile bool `json:"DefaultRegistrantProfile" xml:"DefaultRegistrantProfile"` + Email string `json:"Email" xml:"Email"` + ZhRegistrantName string `json:"ZhRegistrantName" xml:"ZhRegistrantName"` + RegistrantType string `json:"RegistrantType" xml:"RegistrantType"` + Country string `json:"Country" xml:"Country"` + RegistrantName string `json:"RegistrantName" xml:"RegistrantName"` + EmailVerificationStatus int `json:"EmailVerificationStatus" xml:"EmailVerificationStatus"` + ZhAddress string `json:"ZhAddress" xml:"ZhAddress"` + Province string `json:"Province" xml:"Province"` + CredentialNo string `json:"CredentialNo" xml:"CredentialNo"` + CredentialType string `json:"CredentialType" xml:"CredentialType"` + Remark string `json:"Remark" xml:"Remark"` +} diff --git a/services/domain/struct_registrant_profiles.go b/services/domain/struct_registrant_profiles.go new file mode 100644 index 0000000000..f030252c2a --- /dev/null +++ b/services/domain/struct_registrant_profiles.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RegistrantProfiles is a nested struct in domain response +type RegistrantProfiles struct { + RegistrantProfile []RegistrantProfile `json:"RegistrantProfile" xml:"RegistrantProfile"` +} diff --git a/services/domain/struct_send_result.go b/services/domain/struct_send_result.go new file mode 100644 index 0000000000..3cf6826917 --- /dev/null +++ b/services/domain/struct_send_result.go @@ -0,0 +1,23 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SendResult is a nested struct in domain response +type SendResult struct { + Message string `json:"Message" xml:"Message"` + Email string `json:"Email" xml:"Email"` + Code string `json:"Code" xml:"Code"` +} diff --git a/services/domain/struct_domain_transfer_status_item.go b/services/domain/struct_sensitive_word_match_result.go similarity index 61% rename from services/domain/struct_domain_transfer_status_item.go rename to services/domain/struct_sensitive_word_match_result.go index 4e849e0722..a3b0f35a9c 100644 --- a/services/domain/struct_domain_transfer_status_item.go +++ b/services/domain/struct_sensitive_word_match_result.go @@ -15,8 +15,9 @@ package domain // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DomainTransferStatusItem is a nested struct in domain response -type DomainTransferStatusItem struct { - DomainName string `json:"DomainName" xml:"DomainName"` - DomainStatusDescription string `json:"DomainStatusDescription" xml:"DomainStatusDescription"` +// SensitiveWordMatchResult is a nested struct in domain response +type SensitiveWordMatchResult struct { + Keyword string `json:"Keyword" xml:"Keyword"` + Exist bool `json:"Exist" xml:"Exist"` + MatchedSentiveWords MatchedSentiveWordsInBatchFuzzyMatchDomainSensitiveWord `json:"MatchedSentiveWords" xml:"MatchedSentiveWords"` } diff --git a/services/domain/struct_sensitive_word_match_result_list.go b/services/domain/struct_sensitive_word_match_result_list.go new file mode 100644 index 0000000000..81535bcf5f --- /dev/null +++ b/services/domain/struct_sensitive_word_match_result_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SensitiveWordMatchResultList is a nested struct in domain response +type SensitiveWordMatchResultList struct { + SensitiveWordMatchResult []SensitiveWordMatchResult `json:"SensitiveWordMatchResult" xml:"SensitiveWordMatchResult"` +} diff --git a/services/domain/struct_static_price_info.go b/services/domain/struct_static_price_info.go new file mode 100644 index 0000000000..db08faa2cc --- /dev/null +++ b/services/domain/struct_static_price_info.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StaticPriceInfo is a nested struct in domain response +type StaticPriceInfo struct { + PriceInfo []PriceInfo `json:"PriceInfo" xml:"PriceInfo"` +} diff --git a/services/domain/struct_street_in_lookup_tmch_notice.go b/services/domain/struct_street_in_lookup_tmch_notice.go new file mode 100644 index 0000000000..b95e699c8e --- /dev/null +++ b/services/domain/struct_street_in_lookup_tmch_notice.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StreetInLookupTmchNotice is a nested struct in domain response +type StreetInLookupTmchNotice struct { + Street []string `json:"Street" xml:"Street"` +} diff --git a/services/domain/struct_success_list_in_confirm_transfer_in_email.go b/services/domain/struct_success_list_in_confirm_transfer_in_email.go new file mode 100644 index 0000000000..3ecd85d1ba --- /dev/null +++ b/services/domain/struct_success_list_in_confirm_transfer_in_email.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInConfirmTransferInEmail is a nested struct in domain response +type SuccessListInConfirmTransferInEmail struct { + SuccessDomain []string `json:"SuccessDomain" xml:"SuccessDomain"` +} diff --git a/services/domain/struct_success_list_in_delete_email_verification.go b/services/domain/struct_success_list_in_delete_email_verification.go new file mode 100644 index 0000000000..e8a03200be --- /dev/null +++ b/services/domain/struct_success_list_in_delete_email_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInDeleteEmailVerification is a nested struct in domain response +type SuccessListInDeleteEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/services/domain/struct_success_list_in_resend_email_verification.go b/services/domain/struct_success_list_in_resend_email_verification.go new file mode 100644 index 0000000000..231dec18bf --- /dev/null +++ b/services/domain/struct_success_list_in_resend_email_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInResendEmailVerification is a nested struct in domain response +type SuccessListInResendEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/services/domain/struct_success_list_in_submit_email_verification.go b/services/domain/struct_success_list_in_submit_email_verification.go new file mode 100644 index 0000000000..2be4b6b96d --- /dev/null +++ b/services/domain/struct_success_list_in_submit_email_verification.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInSubmitEmailVerification is a nested struct in domain response +type SuccessListInSubmitEmailVerification struct { + SendResult []SendResult `json:"SendResult" xml:"SendResult"` +} diff --git a/services/domain/struct_success_list_in_transfer_in_check_mail_token.go b/services/domain/struct_success_list_in_transfer_in_check_mail_token.go new file mode 100644 index 0000000000..b81ca5afce --- /dev/null +++ b/services/domain/struct_success_list_in_transfer_in_check_mail_token.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuccessListInTransferInCheckMailToken is a nested struct in domain response +type SuccessListInTransferInCheckMailToken struct { + SuccessDomain []string `json:"SuccessDomain" xml:"SuccessDomain"` +} diff --git a/services/domain/struct_suffix_list.go b/services/domain/struct_suffix_list.go new file mode 100644 index 0000000000..9232c5d7ab --- /dev/null +++ b/services/domain/struct_suffix_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SuffixList is a nested struct in domain response +type SuffixList struct { + Suffix []string `json:"Suffix" xml:"Suffix"` +} diff --git a/services/domain/struct_error_args_in_reserve_intl_domain.go b/services/domain/struct_tag_in_query_advanced_domain_list.go similarity index 81% rename from services/domain/struct_error_args_in_reserve_intl_domain.go rename to services/domain/struct_tag_in_query_advanced_domain_list.go index cabc4fe143..2492631843 100644 --- a/services/domain/struct_error_args_in_reserve_intl_domain.go +++ b/services/domain/struct_tag_in_query_advanced_domain_list.go @@ -15,7 +15,7 @@ package domain // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ErrorArgsInReserveIntlDomain is a nested struct in domain response -type ErrorArgsInReserveIntlDomain struct { - ErrorArg []string `json:"ErrorArg" xml:"ErrorArg"` +// TagInQueryAdvancedDomainList is a nested struct in domain response +type TagInQueryAdvancedDomainList struct { + TagItem []TagItem `json:"Tag" xml:"Tag"` } diff --git a/services/domain/struct_tag_in_query_domain_by_domain_name.go b/services/domain/struct_tag_in_query_domain_by_domain_name.go new file mode 100644 index 0000000000..4755b8518a --- /dev/null +++ b/services/domain/struct_tag_in_query_domain_by_domain_name.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagInQueryDomainByDomainName is a nested struct in domain response +type TagInQueryDomainByDomainName struct { + TagItem []TagItem `json:"Tag" xml:"Tag"` +} diff --git a/services/domain/struct_tag_in_query_domain_by_instance_id.go b/services/domain/struct_tag_in_query_domain_by_instance_id.go new file mode 100644 index 0000000000..f0f0555774 --- /dev/null +++ b/services/domain/struct_tag_in_query_domain_by_instance_id.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagInQueryDomainByInstanceId is a nested struct in domain response +type TagInQueryDomainByInstanceId struct { + TagItem []TagItem `json:"Tag" xml:"Tag"` +} diff --git a/services/domain/struct_tag_in_query_domain_list.go b/services/domain/struct_tag_in_query_domain_list.go new file mode 100644 index 0000000000..4ed1da37f0 --- /dev/null +++ b/services/domain/struct_tag_in_query_domain_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagInQueryDomainList is a nested struct in domain response +type TagInQueryDomainList struct { + TagItem []TagItem `json:"Tag" xml:"Tag"` +} diff --git a/services/domain/struct_tag_in_scroll_domain_list.go b/services/domain/struct_tag_in_scroll_domain_list.go new file mode 100644 index 0000000000..bcb1b69bcb --- /dev/null +++ b/services/domain/struct_tag_in_scroll_domain_list.go @@ -0,0 +1,21 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagInScrollDomainList is a nested struct in domain response +type TagInScrollDomainList struct { + TagItem []TagItem `json:"Tag" xml:"Tag"` +} diff --git a/services/domain/struct_data_in_query_broker_demand.go b/services/domain/struct_tag_item.go similarity index 83% rename from services/domain/struct_data_in_query_broker_demand.go rename to services/domain/struct_tag_item.go index 3e5a3904c7..9775844ef6 100644 --- a/services/domain/struct_data_in_query_broker_demand.go +++ b/services/domain/struct_tag_item.go @@ -15,7 +15,9 @@ package domain // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DataInQueryBrokerDemand is a nested struct in domain response -type DataInQueryBrokerDemand struct { - Demand []Demand `json:"Demand" xml:"Demand"` +// TagItem is a nested struct in domain response +type TagItem struct { + Key string `json:"Key" xml:"Key"` + Value string `json:"Value" xml:"Value"` + Vaue string `json:"Vaue" xml:"Vaue"` } diff --git a/services/domain/struct_task_detail.go b/services/domain/struct_task_detail.go new file mode 100644 index 0000000000..76dc77e6eb --- /dev/null +++ b/services/domain/struct_task_detail.go @@ -0,0 +1,34 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskDetail is a nested struct in domain response +type TaskDetail struct { + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + DomainName string `json:"DomainName" xml:"DomainName"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + FailReason string `json:"FailReason" xml:"FailReason"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + TryCount int `json:"TryCount" xml:"TryCount"` + TaskType string `json:"TaskType" xml:"TaskType"` + TaskResult string `json:"TaskResult" xml:"TaskResult"` +} diff --git a/services/domain/struct_task_detail_history.go b/services/domain/struct_task_detail_history.go new file mode 100644 index 0000000000..e4bebceda1 --- /dev/null +++ b/services/domain/struct_task_detail_history.go @@ -0,0 +1,32 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskDetailHistory is a nested struct in domain response +type TaskDetailHistory struct { + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + TaskDetailNo string `json:"TaskDetailNo" xml:"TaskDetailNo"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DomainName string `json:"DomainName" xml:"DomainName"` + TaskType string `json:"TaskType" xml:"TaskType"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TryCount int `json:"TryCount" xml:"TryCount"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` +} diff --git a/services/domain/struct_task_info.go b/services/domain/struct_task_info.go new file mode 100644 index 0000000000..17c2ccc783 --- /dev/null +++ b/services/domain/struct_task_info.go @@ -0,0 +1,30 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskInfo is a nested struct in domain response +type TaskInfo struct { + TaskType string `json:"TaskType" xml:"TaskType"` + TaskCancelStatus string `json:"TaskCancelStatus" xml:"TaskCancelStatus"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + TaskCancelStatusCode int `json:"TaskCancelStatusCode" xml:"TaskCancelStatusCode"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Clientip string `json:"Clientip" xml:"Clientip"` +} diff --git a/services/domain/struct_task_info_history.go b/services/domain/struct_task_info_history.go new file mode 100644 index 0000000000..2cbc1edd2f --- /dev/null +++ b/services/domain/struct_task_info_history.go @@ -0,0 +1,29 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TaskInfoHistory is a nested struct in domain response +type TaskInfoHistory struct { + TaskType string `json:"TaskType" xml:"TaskType"` + TaskNo string `json:"TaskNo" xml:"TaskNo"` + TaskStatusCode int `json:"TaskStatusCode" xml:"TaskStatusCode"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskTypeDescription string `json:"TaskTypeDescription" xml:"TaskTypeDescription"` + TaskNum int `json:"TaskNum" xml:"TaskNum"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + CreateTimeLong int64 `json:"CreateTimeLong" xml:"CreateTimeLong"` + Clientip string `json:"Clientip" xml:"Clientip"` +} diff --git a/services/domain/struct_transfer_in_info.go b/services/domain/struct_transfer_in_info.go new file mode 100644 index 0000000000..776d0ed195 --- /dev/null +++ b/services/domain/struct_transfer_in_info.go @@ -0,0 +1,41 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TransferInInfo is a nested struct in domain response +type TransferInInfo struct { + Status int `json:"Status" xml:"Status"` + UserId string `json:"UserId" xml:"UserId"` + ModificationDate string `json:"ModificationDate" xml:"ModificationDate"` + TransferAuthorizationCodeSubmissionDateLong int64 `json:"TransferAuthorizationCodeSubmissionDateLong" xml:"TransferAuthorizationCodeSubmissionDateLong"` + SubmissionDateLong int64 `json:"SubmissionDateLong" xml:"SubmissionDateLong"` + ResultCode string `json:"ResultCode" xml:"ResultCode"` + NeedMailCheck bool `json:"NeedMailCheck" xml:"NeedMailCheck"` + ModificationDateLong int64 `json:"ModificationDateLong" xml:"ModificationDateLong"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DomainName string `json:"DomainName" xml:"DomainName"` + ProgressBarType int `json:"ProgressBarType" xml:"ProgressBarType"` + ResultMsg string `json:"ResultMsg" xml:"ResultMsg"` + ResultDateLong int64 `json:"ResultDateLong" xml:"ResultDateLong"` + ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` + Email string `json:"Email" xml:"Email"` + WhoisMailStatus bool `json:"WhoisMailStatus" xml:"WhoisMailStatus"` + TransferAuthorizationCodeSubmissionDate string `json:"TransferAuthorizationCodeSubmissionDate" xml:"TransferAuthorizationCodeSubmissionDate"` + SubmissionDate string `json:"SubmissionDate" xml:"SubmissionDate"` + ExpirationDateLong int64 `json:"ExpirationDateLong" xml:"ExpirationDateLong"` + SimpleTransferInStatus string `json:"SimpleTransferInStatus" xml:"SimpleTransferInStatus"` + ResultDate string `json:"ResultDate" xml:"ResultDate"` +} diff --git a/services/domain/submit_domain_special_biz_credentials.go b/services/domain/submit_domain_special_biz_credentials.go new file mode 100644 index 0000000000..b8f48ba56b --- /dev/null +++ b/services/domain/submit_domain_special_biz_credentials.go @@ -0,0 +1,101 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitDomainSpecialBizCredentials invokes the domain.SubmitDomainSpecialBizCredentials API synchronously +func (client *Client) SubmitDomainSpecialBizCredentials(request *SubmitDomainSpecialBizCredentialsRequest) (response *SubmitDomainSpecialBizCredentialsResponse, err error) { + response = CreateSubmitDomainSpecialBizCredentialsResponse() + err = client.DoAction(request, response) + return +} + +// SubmitDomainSpecialBizCredentialsWithChan invokes the domain.SubmitDomainSpecialBizCredentials API asynchronously +func (client *Client) SubmitDomainSpecialBizCredentialsWithChan(request *SubmitDomainSpecialBizCredentialsRequest) (<-chan *SubmitDomainSpecialBizCredentialsResponse, <-chan error) { + responseChan := make(chan *SubmitDomainSpecialBizCredentialsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitDomainSpecialBizCredentials(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitDomainSpecialBizCredentialsWithCallback invokes the domain.SubmitDomainSpecialBizCredentials API asynchronously +func (client *Client) SubmitDomainSpecialBizCredentialsWithCallback(request *SubmitDomainSpecialBizCredentialsRequest, callback func(response *SubmitDomainSpecialBizCredentialsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitDomainSpecialBizCredentialsResponse + var err error + defer close(result) + response, err = client.SubmitDomainSpecialBizCredentials(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitDomainSpecialBizCredentialsRequest is the request struct for api SubmitDomainSpecialBizCredentials +type SubmitDomainSpecialBizCredentialsRequest struct { + *requests.RpcRequest + Credentials string `position:"Body" name:"Credentials"` + Extend string `position:"Body" name:"Extend"` + BizId requests.Integer `position:"Body" name:"BizId"` + UserClientIp string `position:"Query" name:"UserClientIp"` +} + +// SubmitDomainSpecialBizCredentialsResponse is the response struct for api SubmitDomainSpecialBizCredentials +type SubmitDomainSpecialBizCredentialsResponse struct { + *responses.BaseResponse +} + +// CreateSubmitDomainSpecialBizCredentialsRequest creates a request to invoke SubmitDomainSpecialBizCredentials API +func CreateSubmitDomainSpecialBizCredentialsRequest() (request *SubmitDomainSpecialBizCredentialsRequest) { + request = &SubmitDomainSpecialBizCredentialsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SubmitDomainSpecialBizCredentials", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSubmitDomainSpecialBizCredentialsResponse creates a response to parse from SubmitDomainSpecialBizCredentials response +func CreateSubmitDomainSpecialBizCredentialsResponse() (response *SubmitDomainSpecialBizCredentialsResponse) { + response = &SubmitDomainSpecialBizCredentialsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/submit_email_verification.go b/services/domain/submit_email_verification.go new file mode 100644 index 0000000000..8333173146 --- /dev/null +++ b/services/domain/submit_email_verification.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitEmailVerification invokes the domain.SubmitEmailVerification API synchronously +func (client *Client) SubmitEmailVerification(request *SubmitEmailVerificationRequest) (response *SubmitEmailVerificationResponse, err error) { + response = CreateSubmitEmailVerificationResponse() + err = client.DoAction(request, response) + return +} + +// SubmitEmailVerificationWithChan invokes the domain.SubmitEmailVerification API asynchronously +func (client *Client) SubmitEmailVerificationWithChan(request *SubmitEmailVerificationRequest) (<-chan *SubmitEmailVerificationResponse, <-chan error) { + responseChan := make(chan *SubmitEmailVerificationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitEmailVerification(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitEmailVerificationWithCallback invokes the domain.SubmitEmailVerification API asynchronously +func (client *Client) SubmitEmailVerificationWithCallback(request *SubmitEmailVerificationRequest, callback func(response *SubmitEmailVerificationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitEmailVerificationResponse + var err error + defer close(result) + response, err = client.SubmitEmailVerification(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitEmailVerificationRequest is the request struct for api SubmitEmailVerification +type SubmitEmailVerificationRequest struct { + *requests.RpcRequest + SendIfExist requests.Boolean `position:"Query" name:"SendIfExist"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` +} + +// SubmitEmailVerificationResponse is the response struct for api SubmitEmailVerification +type SubmitEmailVerificationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ExistList []SendResult `json:"ExistList" xml:"ExistList"` + SuccessList []SendResult `json:"SuccessList" xml:"SuccessList"` + FailList []SendResult `json:"FailList" xml:"FailList"` +} + +// CreateSubmitEmailVerificationRequest creates a request to invoke SubmitEmailVerification API +func CreateSubmitEmailVerificationRequest() (request *SubmitEmailVerificationRequest) { + request = &SubmitEmailVerificationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SubmitEmailVerification", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSubmitEmailVerificationResponse creates a response to parse from SubmitEmailVerification response +func CreateSubmitEmailVerificationResponse() (response *SubmitEmailVerificationResponse) { + response = &SubmitEmailVerificationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/submit_operation_audit_info.go b/services/domain/submit_operation_audit_info.go new file mode 100644 index 0000000000..4b442b7784 --- /dev/null +++ b/services/domain/submit_operation_audit_info.go @@ -0,0 +1,104 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitOperationAuditInfo invokes the domain.SubmitOperationAuditInfo API synchronously +func (client *Client) SubmitOperationAuditInfo(request *SubmitOperationAuditInfoRequest) (response *SubmitOperationAuditInfoResponse, err error) { + response = CreateSubmitOperationAuditInfoResponse() + err = client.DoAction(request, response) + return +} + +// SubmitOperationAuditInfoWithChan invokes the domain.SubmitOperationAuditInfo API asynchronously +func (client *Client) SubmitOperationAuditInfoWithChan(request *SubmitOperationAuditInfoRequest) (<-chan *SubmitOperationAuditInfoResponse, <-chan error) { + responseChan := make(chan *SubmitOperationAuditInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitOperationAuditInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitOperationAuditInfoWithCallback invokes the domain.SubmitOperationAuditInfo API asynchronously +func (client *Client) SubmitOperationAuditInfoWithCallback(request *SubmitOperationAuditInfoRequest, callback func(response *SubmitOperationAuditInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitOperationAuditInfoResponse + var err error + defer close(result) + response, err = client.SubmitOperationAuditInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitOperationAuditInfoRequest is the request struct for api SubmitOperationAuditInfo +type SubmitOperationAuditInfoRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + AuditInfo string `position:"Query" name:"AuditInfo"` + AuditType requests.Integer `position:"Query" name:"AuditType"` + Id requests.Integer `position:"Query" name:"Id"` + Lang string `position:"Query" name:"Lang"` +} + +// SubmitOperationAuditInfoResponse is the response struct for api SubmitOperationAuditInfo +type SubmitOperationAuditInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Id int64 `json:"Id" xml:"Id"` +} + +// CreateSubmitOperationAuditInfoRequest creates a request to invoke SubmitOperationAuditInfo API +func CreateSubmitOperationAuditInfoRequest() (request *SubmitOperationAuditInfoRequest) { + request = &SubmitOperationAuditInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SubmitOperationAuditInfo", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSubmitOperationAuditInfoResponse creates a response to parse from SubmitOperationAuditInfo response +func CreateSubmitOperationAuditInfoResponse() (response *SubmitOperationAuditInfoResponse) { + response = &SubmitOperationAuditInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/submit_operation_credentials.go b/services/domain/submit_operation_credentials.go new file mode 100644 index 0000000000..94673b61ca --- /dev/null +++ b/services/domain/submit_operation_credentials.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SubmitOperationCredentials invokes the domain.SubmitOperationCredentials API synchronously +func (client *Client) SubmitOperationCredentials(request *SubmitOperationCredentialsRequest) (response *SubmitOperationCredentialsResponse, err error) { + response = CreateSubmitOperationCredentialsResponse() + err = client.DoAction(request, response) + return +} + +// SubmitOperationCredentialsWithChan invokes the domain.SubmitOperationCredentials API asynchronously +func (client *Client) SubmitOperationCredentialsWithChan(request *SubmitOperationCredentialsRequest) (<-chan *SubmitOperationCredentialsResponse, <-chan error) { + responseChan := make(chan *SubmitOperationCredentialsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SubmitOperationCredentials(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SubmitOperationCredentialsWithCallback invokes the domain.SubmitOperationCredentials API asynchronously +func (client *Client) SubmitOperationCredentialsWithCallback(request *SubmitOperationCredentialsRequest, callback func(response *SubmitOperationCredentialsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SubmitOperationCredentialsResponse + var err error + defer close(result) + response, err = client.SubmitOperationCredentials(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SubmitOperationCredentialsRequest is the request struct for api SubmitOperationCredentials +type SubmitOperationCredentialsRequest struct { + *requests.RpcRequest + Credentials string `position:"Query" name:"Credentials"` + AuditRecordId requests.Integer `position:"Query" name:"AuditRecordId"` + RegType requests.Integer `position:"Query" name:"RegType"` + AuditType requests.Integer `position:"Query" name:"AuditType"` + Lang string `position:"Query" name:"Lang"` +} + +// SubmitOperationCredentialsResponse is the response struct for api SubmitOperationCredentials +type SubmitOperationCredentialsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSubmitOperationCredentialsRequest creates a request to invoke SubmitOperationCredentials API +func CreateSubmitOperationCredentialsRequest() (request *SubmitOperationCredentialsRequest) { + request = &SubmitOperationCredentialsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "SubmitOperationCredentials", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateSubmitOperationCredentialsResponse creates a response to parse from SubmitOperationCredentials response +func CreateSubmitOperationCredentialsResponse() (response *SubmitOperationCredentialsResponse) { + response = &SubmitOperationCredentialsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/submit_purchase_info.go b/services/domain/submit_purchase_info.go deleted file mode 100644 index f4844a98e2..0000000000 --- a/services/domain/submit_purchase_info.go +++ /dev/null @@ -1,101 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// SubmitPurchaseInfo invokes the domain.SubmitPurchaseInfo API synchronously -func (client *Client) SubmitPurchaseInfo(request *SubmitPurchaseInfoRequest) (response *SubmitPurchaseInfoResponse, err error) { - response = CreateSubmitPurchaseInfoResponse() - err = client.DoAction(request, response) - return -} - -// SubmitPurchaseInfoWithChan invokes the domain.SubmitPurchaseInfo API asynchronously -func (client *Client) SubmitPurchaseInfoWithChan(request *SubmitPurchaseInfoRequest) (<-chan *SubmitPurchaseInfoResponse, <-chan error) { - responseChan := make(chan *SubmitPurchaseInfoResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SubmitPurchaseInfo(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SubmitPurchaseInfoWithCallback invokes the domain.SubmitPurchaseInfo API asynchronously -func (client *Client) SubmitPurchaseInfoWithCallback(request *SubmitPurchaseInfoRequest, callback func(response *SubmitPurchaseInfoResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SubmitPurchaseInfoResponse - var err error - defer close(result) - response, err = client.SubmitPurchaseInfo(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SubmitPurchaseInfoRequest is the request struct for api SubmitPurchaseInfo -type SubmitPurchaseInfoRequest struct { - *requests.RpcRequest - PurchaseProofs *[]string `position:"Body" name:"PurchaseProofs" type:"Repeated"` - PurchasePrice string `position:"Body" name:"PurchasePrice"` - PurchaseCurrency string `position:"Body" name:"PurchaseCurrency"` - BizId string `position:"Body" name:"BizId"` -} - -// SubmitPurchaseInfoResponse is the response struct for api SubmitPurchaseInfo -type SubmitPurchaseInfoResponse struct { - *responses.BaseResponse -} - -// CreateSubmitPurchaseInfoRequest creates a request to invoke SubmitPurchaseInfo API -func CreateSubmitPurchaseInfoRequest() (request *SubmitPurchaseInfoRequest) { - request = &SubmitPurchaseInfoRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "SubmitPurchaseInfo", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateSubmitPurchaseInfoResponse creates a response to parse from SubmitPurchaseInfo response -func CreateSubmitPurchaseInfoResponse() (response *SubmitPurchaseInfoResponse) { - response = &SubmitPurchaseInfoResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/transfer_in_check_mail_token.go b/services/domain/transfer_in_check_mail_token.go new file mode 100644 index 0000000000..b9ccfb0170 --- /dev/null +++ b/services/domain/transfer_in_check_mail_token.go @@ -0,0 +1,103 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TransferInCheckMailToken invokes the domain.TransferInCheckMailToken API synchronously +func (client *Client) TransferInCheckMailToken(request *TransferInCheckMailTokenRequest) (response *TransferInCheckMailTokenResponse, err error) { + response = CreateTransferInCheckMailTokenResponse() + err = client.DoAction(request, response) + return +} + +// TransferInCheckMailTokenWithChan invokes the domain.TransferInCheckMailToken API asynchronously +func (client *Client) TransferInCheckMailTokenWithChan(request *TransferInCheckMailTokenRequest) (<-chan *TransferInCheckMailTokenResponse, <-chan error) { + responseChan := make(chan *TransferInCheckMailTokenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TransferInCheckMailToken(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TransferInCheckMailTokenWithCallback invokes the domain.TransferInCheckMailToken API asynchronously +func (client *Client) TransferInCheckMailTokenWithCallback(request *TransferInCheckMailTokenRequest, callback func(response *TransferInCheckMailTokenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TransferInCheckMailTokenResponse + var err error + defer close(result) + response, err = client.TransferInCheckMailToken(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TransferInCheckMailTokenRequest is the request struct for api TransferInCheckMailToken +type TransferInCheckMailTokenRequest struct { + *requests.RpcRequest + Token string `position:"Query" name:"Token"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// TransferInCheckMailTokenResponse is the response struct for api TransferInCheckMailToken +type TransferInCheckMailTokenResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SuccessList SuccessListInTransferInCheckMailToken `json:"SuccessList" xml:"SuccessList"` + FailList FailListInTransferInCheckMailToken `json:"FailList" xml:"FailList"` +} + +// CreateTransferInCheckMailTokenRequest creates a request to invoke TransferInCheckMailToken API +func CreateTransferInCheckMailTokenRequest() (request *TransferInCheckMailTokenRequest) { + request = &TransferInCheckMailTokenRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "TransferInCheckMailToken", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateTransferInCheckMailTokenResponse creates a response to parse from TransferInCheckMailToken response +func CreateTransferInCheckMailTokenResponse() (response *TransferInCheckMailTokenResponse) { + response = &TransferInCheckMailTokenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/transfer_in_reenter_transfer_authorization_code.go b/services/domain/transfer_in_reenter_transfer_authorization_code.go new file mode 100644 index 0000000000..552c445706 --- /dev/null +++ b/services/domain/transfer_in_reenter_transfer_authorization_code.go @@ -0,0 +1,102 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TransferInReenterTransferAuthorizationCode invokes the domain.TransferInReenterTransferAuthorizationCode API synchronously +func (client *Client) TransferInReenterTransferAuthorizationCode(request *TransferInReenterTransferAuthorizationCodeRequest) (response *TransferInReenterTransferAuthorizationCodeResponse, err error) { + response = CreateTransferInReenterTransferAuthorizationCodeResponse() + err = client.DoAction(request, response) + return +} + +// TransferInReenterTransferAuthorizationCodeWithChan invokes the domain.TransferInReenterTransferAuthorizationCode API asynchronously +func (client *Client) TransferInReenterTransferAuthorizationCodeWithChan(request *TransferInReenterTransferAuthorizationCodeRequest) (<-chan *TransferInReenterTransferAuthorizationCodeResponse, <-chan error) { + responseChan := make(chan *TransferInReenterTransferAuthorizationCodeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TransferInReenterTransferAuthorizationCode(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TransferInReenterTransferAuthorizationCodeWithCallback invokes the domain.TransferInReenterTransferAuthorizationCode API asynchronously +func (client *Client) TransferInReenterTransferAuthorizationCodeWithCallback(request *TransferInReenterTransferAuthorizationCodeRequest, callback func(response *TransferInReenterTransferAuthorizationCodeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TransferInReenterTransferAuthorizationCodeResponse + var err error + defer close(result) + response, err = client.TransferInReenterTransferAuthorizationCode(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TransferInReenterTransferAuthorizationCodeRequest is the request struct for api TransferInReenterTransferAuthorizationCode +type TransferInReenterTransferAuthorizationCodeRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + TransferAuthorizationCode string `position:"Query" name:"TransferAuthorizationCode"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// TransferInReenterTransferAuthorizationCodeResponse is the response struct for api TransferInReenterTransferAuthorizationCode +type TransferInReenterTransferAuthorizationCodeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTransferInReenterTransferAuthorizationCodeRequest creates a request to invoke TransferInReenterTransferAuthorizationCode API +func CreateTransferInReenterTransferAuthorizationCodeRequest() (request *TransferInReenterTransferAuthorizationCodeRequest) { + request = &TransferInReenterTransferAuthorizationCodeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "TransferInReenterTransferAuthorizationCode", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateTransferInReenterTransferAuthorizationCodeResponse creates a response to parse from TransferInReenterTransferAuthorizationCode response +func CreateTransferInReenterTransferAuthorizationCodeResponse() (response *TransferInReenterTransferAuthorizationCodeResponse) { + response = &TransferInReenterTransferAuthorizationCodeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/transfer_in_refetch_whois_email.go b/services/domain/transfer_in_refetch_whois_email.go new file mode 100644 index 0000000000..e43303d723 --- /dev/null +++ b/services/domain/transfer_in_refetch_whois_email.go @@ -0,0 +1,101 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TransferInRefetchWhoisEmail invokes the domain.TransferInRefetchWhoisEmail API synchronously +func (client *Client) TransferInRefetchWhoisEmail(request *TransferInRefetchWhoisEmailRequest) (response *TransferInRefetchWhoisEmailResponse, err error) { + response = CreateTransferInRefetchWhoisEmailResponse() + err = client.DoAction(request, response) + return +} + +// TransferInRefetchWhoisEmailWithChan invokes the domain.TransferInRefetchWhoisEmail API asynchronously +func (client *Client) TransferInRefetchWhoisEmailWithChan(request *TransferInRefetchWhoisEmailRequest) (<-chan *TransferInRefetchWhoisEmailResponse, <-chan error) { + responseChan := make(chan *TransferInRefetchWhoisEmailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TransferInRefetchWhoisEmail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TransferInRefetchWhoisEmailWithCallback invokes the domain.TransferInRefetchWhoisEmail API asynchronously +func (client *Client) TransferInRefetchWhoisEmailWithCallback(request *TransferInRefetchWhoisEmailRequest, callback func(response *TransferInRefetchWhoisEmailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TransferInRefetchWhoisEmailResponse + var err error + defer close(result) + response, err = client.TransferInRefetchWhoisEmail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TransferInRefetchWhoisEmailRequest is the request struct for api TransferInRefetchWhoisEmail +type TransferInRefetchWhoisEmailRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// TransferInRefetchWhoisEmailResponse is the response struct for api TransferInRefetchWhoisEmail +type TransferInRefetchWhoisEmailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTransferInRefetchWhoisEmailRequest creates a request to invoke TransferInRefetchWhoisEmail API +func CreateTransferInRefetchWhoisEmailRequest() (request *TransferInRefetchWhoisEmailRequest) { + request = &TransferInRefetchWhoisEmailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "TransferInRefetchWhoisEmail", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateTransferInRefetchWhoisEmailResponse creates a response to parse from TransferInRefetchWhoisEmail response +func CreateTransferInRefetchWhoisEmailResponse() (response *TransferInRefetchWhoisEmailResponse) { + response = &TransferInRefetchWhoisEmailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/transfer_in_resend_mail_token.go b/services/domain/transfer_in_resend_mail_token.go new file mode 100644 index 0000000000..df8fb2ec2d --- /dev/null +++ b/services/domain/transfer_in_resend_mail_token.go @@ -0,0 +1,101 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TransferInResendMailToken invokes the domain.TransferInResendMailToken API synchronously +func (client *Client) TransferInResendMailToken(request *TransferInResendMailTokenRequest) (response *TransferInResendMailTokenResponse, err error) { + response = CreateTransferInResendMailTokenResponse() + err = client.DoAction(request, response) + return +} + +// TransferInResendMailTokenWithChan invokes the domain.TransferInResendMailToken API asynchronously +func (client *Client) TransferInResendMailTokenWithChan(request *TransferInResendMailTokenRequest) (<-chan *TransferInResendMailTokenResponse, <-chan error) { + responseChan := make(chan *TransferInResendMailTokenResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TransferInResendMailToken(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TransferInResendMailTokenWithCallback invokes the domain.TransferInResendMailToken API asynchronously +func (client *Client) TransferInResendMailTokenWithCallback(request *TransferInResendMailTokenRequest, callback func(response *TransferInResendMailTokenResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TransferInResendMailTokenResponse + var err error + defer close(result) + response, err = client.TransferInResendMailToken(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TransferInResendMailTokenRequest is the request struct for api TransferInResendMailToken +type TransferInResendMailTokenRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// TransferInResendMailTokenResponse is the response struct for api TransferInResendMailToken +type TransferInResendMailTokenResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTransferInResendMailTokenRequest creates a request to invoke TransferInResendMailToken API +func CreateTransferInResendMailTokenRequest() (request *TransferInResendMailTokenRequest) { + request = &TransferInResendMailTokenRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "TransferInResendMailToken", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateTransferInResendMailTokenResponse creates a response to parse from TransferInResendMailToken response +func CreateTransferInResendMailTokenResponse() (response *TransferInResendMailTokenResponse) { + response = &TransferInResendMailTokenResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/update_domain_to_domain_group.go b/services/domain/update_domain_to_domain_group.go new file mode 100644 index 0000000000..fbe8a3187d --- /dev/null +++ b/services/domain/update_domain_to_domain_group.go @@ -0,0 +1,105 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateDomainToDomainGroup invokes the domain.UpdateDomainToDomainGroup API synchronously +func (client *Client) UpdateDomainToDomainGroup(request *UpdateDomainToDomainGroupRequest) (response *UpdateDomainToDomainGroupResponse, err error) { + response = CreateUpdateDomainToDomainGroupResponse() + err = client.DoAction(request, response) + return +} + +// UpdateDomainToDomainGroupWithChan invokes the domain.UpdateDomainToDomainGroup API asynchronously +func (client *Client) UpdateDomainToDomainGroupWithChan(request *UpdateDomainToDomainGroupRequest) (<-chan *UpdateDomainToDomainGroupResponse, <-chan error) { + responseChan := make(chan *UpdateDomainToDomainGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateDomainToDomainGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateDomainToDomainGroupWithCallback invokes the domain.UpdateDomainToDomainGroup API asynchronously +func (client *Client) UpdateDomainToDomainGroupWithCallback(request *UpdateDomainToDomainGroupRequest, callback func(response *UpdateDomainToDomainGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateDomainToDomainGroupResponse + var err error + defer close(result) + response, err = client.UpdateDomainToDomainGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateDomainToDomainGroupRequest is the request struct for api UpdateDomainToDomainGroup +type UpdateDomainToDomainGroupRequest struct { + *requests.RpcRequest + FileToUpload string `position:"Body" name:"FileToUpload"` + Replace requests.Boolean `position:"Query" name:"Replace"` + DomainName *[]string `position:"Query" name:"DomainName" type:"Repeated"` + DomainGroupId requests.Integer `position:"Query" name:"DomainGroupId"` + DataSource requests.Integer `position:"Query" name:"DataSource"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` +} + +// UpdateDomainToDomainGroupResponse is the response struct for api UpdateDomainToDomainGroup +type UpdateDomainToDomainGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateDomainToDomainGroupRequest creates a request to invoke UpdateDomainToDomainGroup API +func CreateUpdateDomainToDomainGroupRequest() (request *UpdateDomainToDomainGroupRequest) { + request = &UpdateDomainToDomainGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "UpdateDomainToDomainGroup", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateUpdateDomainToDomainGroupResponse creates a response to parse from UpdateDomainToDomainGroup response +func CreateUpdateDomainToDomainGroupResponse() (response *UpdateDomainToDomainGroupResponse) { + response = &UpdateDomainToDomainGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/update_partner_reserve_price.go b/services/domain/update_partner_reserve_price.go deleted file mode 100644 index 903012807d..0000000000 --- a/services/domain/update_partner_reserve_price.go +++ /dev/null @@ -1,102 +0,0 @@ -package domain - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// UpdatePartnerReservePrice invokes the domain.UpdatePartnerReservePrice API synchronously -func (client *Client) UpdatePartnerReservePrice(request *UpdatePartnerReservePriceRequest) (response *UpdatePartnerReservePriceResponse, err error) { - response = CreateUpdatePartnerReservePriceResponse() - err = client.DoAction(request, response) - return -} - -// UpdatePartnerReservePriceWithChan invokes the domain.UpdatePartnerReservePrice API asynchronously -func (client *Client) UpdatePartnerReservePriceWithChan(request *UpdatePartnerReservePriceRequest) (<-chan *UpdatePartnerReservePriceResponse, <-chan error) { - responseChan := make(chan *UpdatePartnerReservePriceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdatePartnerReservePrice(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdatePartnerReservePriceWithCallback invokes the domain.UpdatePartnerReservePrice API asynchronously -func (client *Client) UpdatePartnerReservePriceWithCallback(request *UpdatePartnerReservePriceRequest, callback func(response *UpdatePartnerReservePriceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdatePartnerReservePriceResponse - var err error - defer close(result) - response, err = client.UpdatePartnerReservePrice(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdatePartnerReservePriceRequest is the request struct for api UpdatePartnerReservePrice -type UpdatePartnerReservePriceRequest struct { - *requests.RpcRequest - PartnerType string `position:"Body" name:"PartnerType"` - DomainName string `position:"Body" name:"DomainName"` - BiddingId requests.Integer `position:"Body" name:"BiddingId"` - ReservePrice string `position:"Body" name:"ReservePrice"` -} - -// UpdatePartnerReservePriceResponse is the response struct for api UpdatePartnerReservePrice -type UpdatePartnerReservePriceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdatePartnerReservePriceRequest creates a request to invoke UpdatePartnerReservePrice API -func CreateUpdatePartnerReservePriceRequest() (request *UpdatePartnerReservePriceRequest) { - request = &UpdatePartnerReservePriceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Domain", "2018-02-08", "UpdatePartnerReservePrice", "domain", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdatePartnerReservePriceResponse creates a response to parse from UpdatePartnerReservePrice response -func CreateUpdatePartnerReservePriceResponse() (response *UpdatePartnerReservePriceResponse) { - response = &UpdatePartnerReservePriceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/domain/verify_contact_field.go b/services/domain/verify_contact_field.go new file mode 100644 index 0000000000..b50e44a252 --- /dev/null +++ b/services/domain/verify_contact_field.go @@ -0,0 +1,118 @@ +package domain + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// VerifyContactField invokes the domain.VerifyContactField API synchronously +func (client *Client) VerifyContactField(request *VerifyContactFieldRequest) (response *VerifyContactFieldResponse, err error) { + response = CreateVerifyContactFieldResponse() + err = client.DoAction(request, response) + return +} + +// VerifyContactFieldWithChan invokes the domain.VerifyContactField API asynchronously +func (client *Client) VerifyContactFieldWithChan(request *VerifyContactFieldRequest) (<-chan *VerifyContactFieldResponse, <-chan error) { + responseChan := make(chan *VerifyContactFieldResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.VerifyContactField(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// VerifyContactFieldWithCallback invokes the domain.VerifyContactField API asynchronously +func (client *Client) VerifyContactFieldWithCallback(request *VerifyContactFieldRequest, callback func(response *VerifyContactFieldResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *VerifyContactFieldResponse + var err error + defer close(result) + response, err = client.VerifyContactField(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// VerifyContactFieldRequest is the request struct for api VerifyContactField +type VerifyContactFieldRequest struct { + *requests.RpcRequest + Country string `position:"Query" name:"Country"` + City string `position:"Query" name:"City"` + ZhCity string `position:"Query" name:"ZhCity"` + TelExt string `position:"Query" name:"TelExt"` + Province string `position:"Query" name:"Province"` + ZhRegistrantName string `position:"Query" name:"ZhRegistrantName"` + PostalCode string `position:"Query" name:"PostalCode"` + Lang string `position:"Query" name:"Lang"` + Email string `position:"Query" name:"Email"` + ZhRegistrantOrganization string `position:"Query" name:"ZhRegistrantOrganization"` + Address string `position:"Query" name:"Address"` + TelArea string `position:"Query" name:"TelArea"` + ZhAddress string `position:"Query" name:"ZhAddress"` + RegistrantType string `position:"Query" name:"RegistrantType"` + DomainName string `position:"Query" name:"DomainName"` + Telephone string `position:"Query" name:"Telephone"` + ZhProvince string `position:"Query" name:"ZhProvince"` + RegistrantOrganization string `position:"Query" name:"RegistrantOrganization"` + UserClientIp string `position:"Query" name:"UserClientIp"` + RegistrantName string `position:"Query" name:"RegistrantName"` +} + +// VerifyContactFieldResponse is the response struct for api VerifyContactField +type VerifyContactFieldResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateVerifyContactFieldRequest creates a request to invoke VerifyContactField API +func CreateVerifyContactFieldRequest() (request *VerifyContactFieldRequest) { + request = &VerifyContactFieldRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Domain", "2018-01-29", "VerifyContactField", "domain", "openAPI") + request.Method = requests.POST + return +} + +// CreateVerifyContactFieldResponse creates a response to parse from VerifyContactField response +func CreateVerifyContactFieldResponse() (response *VerifyContactFieldResponse) { + response = &VerifyContactFieldResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/domain/bid_domain.go b/services/domain/verify_email.go similarity index 51% rename from services/domain/bid_domain.go rename to services/domain/verify_email.go index 05b0ca07f9..479c53f797 100644 --- a/services/domain/bid_domain.go +++ b/services/domain/verify_email.go @@ -20,21 +20,21 @@ import ( "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" ) -// BidDomain invokes the domain.BidDomain API synchronously -func (client *Client) BidDomain(request *BidDomainRequest) (response *BidDomainResponse, err error) { - response = CreateBidDomainResponse() +// VerifyEmail invokes the domain.VerifyEmail API synchronously +func (client *Client) VerifyEmail(request *VerifyEmailRequest) (response *VerifyEmailResponse, err error) { + response = CreateVerifyEmailResponse() err = client.DoAction(request, response) return } -// BidDomainWithChan invokes the domain.BidDomain API asynchronously -func (client *Client) BidDomainWithChan(request *BidDomainRequest) (<-chan *BidDomainResponse, <-chan error) { - responseChan := make(chan *BidDomainResponse, 1) +// VerifyEmailWithChan invokes the domain.VerifyEmail API asynchronously +func (client *Client) VerifyEmailWithChan(request *VerifyEmailRequest) (<-chan *VerifyEmailResponse, <-chan error) { + responseChan := make(chan *VerifyEmailResponse, 1) errChan := make(chan error, 1) err := client.AddAsyncTask(func() { defer close(responseChan) defer close(errChan) - response, err := client.BidDomain(request) + response, err := client.VerifyEmail(request) if err != nil { errChan <- err } else { @@ -49,14 +49,14 @@ func (client *Client) BidDomainWithChan(request *BidDomainRequest) (<-chan *BidD return responseChan, errChan } -// BidDomainWithCallback invokes the domain.BidDomain API asynchronously -func (client *Client) BidDomainWithCallback(request *BidDomainRequest, callback func(response *BidDomainResponse, err error)) <-chan int { +// VerifyEmailWithCallback invokes the domain.VerifyEmail API asynchronously +func (client *Client) VerifyEmailWithCallback(request *VerifyEmailRequest, callback func(response *VerifyEmailResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { - var response *BidDomainResponse + var response *VerifyEmailResponse var err error defer close(result) - response, err = client.BidDomain(request) + response, err = client.VerifyEmail(request) callback(response, err) result <- 1 }) @@ -68,34 +68,33 @@ func (client *Client) BidDomainWithCallback(request *BidDomainRequest, callback return result } -// BidDomainRequest is the request struct for api BidDomain -type BidDomainRequest struct { +// VerifyEmailRequest is the request struct for api VerifyEmail +type VerifyEmailRequest struct { *requests.RpcRequest - AuctionId string `position:"Body" name:"AuctionId"` - MaxBid requests.Float `position:"Body" name:"MaxBid"` - Currency string `position:"Body" name:"Currency"` + Token string `position:"Query" name:"Token"` + UserClientIp string `position:"Query" name:"UserClientIp"` + Lang string `position:"Query" name:"Lang"` } -// BidDomainResponse is the response struct for api BidDomain -type BidDomainResponse struct { +// VerifyEmailResponse is the response struct for api VerifyEmail +type VerifyEmailResponse struct { *responses.BaseResponse - AuctionId string `json:"AuctionId" xml:"AuctionId"` RequestId string `json:"RequestId" xml:"RequestId"` } -// CreateBidDomainRequest creates a request to invoke BidDomain API -func CreateBidDomainRequest() (request *BidDomainRequest) { - request = &BidDomainRequest{ +// CreateVerifyEmailRequest creates a request to invoke VerifyEmail API +func CreateVerifyEmailRequest() (request *VerifyEmailRequest) { + request = &VerifyEmailRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Domain", "2018-02-08", "BidDomain", "domain", "openAPI") + request.InitWithApiInfo("Domain", "2018-01-29", "VerifyEmail", "domain", "openAPI") request.Method = requests.POST return } -// CreateBidDomainResponse creates a response to parse from BidDomain response -func CreateBidDomainResponse() (response *BidDomainResponse) { - response = &BidDomainResponse{ +// CreateVerifyEmailResponse creates a response to parse from VerifyEmail response +func CreateVerifyEmailResponse() (response *VerifyEmailResponse) { + response = &VerifyEmailResponse{ BaseResponse: &responses.BaseResponse{}, } return