From a2462df689392f07e54178b67257d6c23a213129 Mon Sep 17 00:00:00 2001 From: Joseph Callen Date: Mon, 29 Jul 2024 14:16:49 -0400 Subject: [PATCH] vendor --- go.mod | 2 - go.sum | 10 - .../aliyun/alibaba-cloud-sdk-go/LICENSE | 201 - .../alibaba-cloud-sdk-go/sdk/api_timeout.go | 249 - .../sdk/auth/credential.go | 18 - .../auth/credentials/access_key_credential.go | 34 - .../credentials/bearer_token_credential.go | 12 - .../sdk/auth/credentials/ecs_ram_role.go | 29 - .../sdk/auth/credentials/provider/env.go | 30 - .../provider/instance_credentials.go | 92 - .../provider/profile_credentials.go | 159 - .../sdk/auth/credentials/provider/provider.go | 19 - .../credentials/provider/provider_chain.go | 34 - .../credentials/rsa_key_pair_credential.go | 15 - .../sdk/auth/credentials/sts_credential.go | 15 - .../credentials/sts_role_arn_credential.go | 62 - .../sdk/auth/roa_signature_composer.go | 140 - .../sdk/auth/rpc_signature_composer.go | 94 - .../alibaba-cloud-sdk-go/sdk/auth/signer.go | 98 - .../sdk/auth/signers/algorithms.go | 57 - .../sdk/auth/signers/credential_updater.go | 54 - .../sdk/auth/signers/session_credential.go | 7 - .../sdk/auth/signers/signer_access_key.go | 54 - .../sdk/auth/signers/signer_bearer_token.go | 35 - .../sdk/auth/signers/signer_ecs_ram_role.go | 167 - .../sdk/auth/signers/signer_key_pair.go | 148 - .../sdk/auth/signers/signer_ram_role_arn.go | 180 - .../sdk/auth/signers/signer_sts_token.go | 54 - .../sdk/auth/signers/signer_v2.go | 54 - .../aliyun/alibaba-cloud-sdk-go/sdk/client.go | 852 ---- .../aliyun/alibaba-cloud-sdk-go/sdk/config.go | 92 - .../sdk/endpoints/endpoints_config.go | 4078 ----------------- .../sdk/endpoints/local_global_resolver.go | 43 - .../sdk/endpoints/local_regional_resolver.go | 48 - .../sdk/endpoints/location_resolver.go | 176 - .../sdk/endpoints/mapping_resolver.go | 49 - .../sdk/endpoints/resolver.go | 96 - .../sdk/errors/client_error.go | 92 - .../alibaba-cloud-sdk-go/sdk/errors/error.go | 23 - .../sdk/errors/server_error.go | 123 - .../signature_does_not_match_wrapper.go | 45 - .../aliyun/alibaba-cloud-sdk-go/sdk/logger.go | 117 - .../sdk/requests/acs_request.go | 525 --- .../sdk/requests/common_request.go | 112 - .../sdk/requests/roa_request.go | 148 - .../sdk/requests/rpc_request.go | 81 - .../sdk/requests/types.go | 53 - .../sdk/responses/json_parser.go | 333 -- .../sdk/responses/response.go | 144 - .../alibaba-cloud-sdk-go/sdk/utils/debug.go | 36 - .../alibaba-cloud-sdk-go/sdk/utils/utils.go | 141 - .../services/alidns/add_custom_line.go | 111 - .../services/alidns/add_dns_cache_domain.go | 114 - .../alidns/add_dns_gtm_access_strategy.go | 129 - .../alidns/add_dns_gtm_address_pool.go | 129 - .../services/alidns/add_dns_gtm_monitor.go | 114 - .../services/alidns/add_domain.go | 109 - .../services/alidns/add_domain_backup.go | 104 - .../services/alidns/add_domain_group.go | 103 - .../services/alidns/add_domain_record.go | 108 - .../alidns/add_gtm_access_strategy.go | 106 - .../services/alidns/add_gtm_address_pool.go | 127 - .../services/alidns/add_gtm_monitor.go | 114 - .../services/alidns/add_gtm_recovery_plan.go | 104 - .../services/alidns/bind_instance_domains.go | 104 - .../services/alidns/change_domain_group.go | 104 - .../alidns/change_domain_of_dns_product.go | 104 - .../services/alidns/client.go | 129 - .../services/alidns/copy_gtm_config.go | 103 - .../services/alidns/create_pdns_app_key.go | 99 - .../alidns/create_pdns_udp_ip_segment.go | 102 - .../services/alidns/delete_custom_lines.go | 101 - .../alidns/delete_dns_cache_domain.go | 101 - .../alidns/delete_dns_gtm_access_strategy.go | 101 - .../alidns/delete_dns_gtm_address_pool.go | 101 - .../services/alidns/delete_domain.go | 102 - .../services/alidns/delete_domain_group.go | 102 - .../services/alidns/delete_domain_record.go | 102 - .../alidns/delete_gtm_access_strategy.go | 101 - .../alidns/delete_gtm_address_pool.go | 101 - .../alidns/delete_gtm_recovery_plan.go | 101 - .../alidns/delete_sub_domain_records.go | 105 - .../alidns/describe_batch_result_count.go | 109 - .../alidns/describe_batch_result_detail.go | 109 - .../services/alidns/describe_custom_line.go | 109 - .../services/alidns/describe_custom_lines.go | 108 - .../alidns/describe_dns_cache_domains.go | 107 - .../describe_dns_gtm_access_strategies.go | 109 - .../describe_dns_gtm_access_strategy.go | 126 - ...ns_gtm_access_strategy_available_config.go | 110 - .../describe_dns_gtm_addr_attribute_info.go | 103 - ...e_dns_gtm_address_pool_available_config.go | 102 - .../describe_dns_gtm_available_alert_group.go | 101 - .../alidns/describe_dns_gtm_instance.go | 113 - .../describe_dns_gtm_instance_address_pool.go | 113 - ...describe_dns_gtm_instance_address_pools.go | 108 - .../describe_dns_gtm_instance_status.go | 106 - .../describe_dns_gtm_instance_system_cname.go | 102 - .../alidns/describe_dns_gtm_instances.go | 109 - .../services/alidns/describe_dns_gtm_logs.go | 111 - ...scribe_dns_gtm_monitor_available_config.go | 104 - .../alidns/describe_dns_gtm_monitor_config.go | 112 - .../alidns/describe_dns_product_instance.go | 135 - .../alidns/describe_dns_product_instances.go | 109 - .../alidns/describe_dnsslb_sub_domains.go | 108 - .../alidns/describe_doh_account_statistics.go | 102 - .../alidns/describe_doh_domain_statistics.go | 103 - .../describe_doh_domain_statistics_summary.go | 111 - .../describe_doh_sub_domain_statistics.go | 103 - ...cribe_doh_sub_domain_statistics_summary.go | 112 - .../services/alidns/describe_doh_user_info.go | 104 - .../alidns/describe_domain_dnssec_info.go | 110 - .../services/alidns/describe_domain_groups.go | 107 - .../services/alidns/describe_domain_info.go | 124 - .../services/alidns/describe_domain_logs.go | 111 - .../services/alidns/describe_domain_ns.go | 106 - .../alidns/describe_domain_record_info.go | 115 - .../alidns/describe_domain_records.go | 118 - .../alidns/describe_domain_statistics.go | 105 - .../describe_domain_statistics_summary.go | 114 - .../services/alidns/describe_domains.go | 122 - .../alidns/describe_gtm_access_strategies.go | 108 - .../alidns/describe_gtm_access_strategy.go | 116 - ...be_gtm_access_strategy_available_config.go | 103 - .../describe_gtm_available_alert_group.go | 101 - .../services/alidns/describe_gtm_instance.go | 118 - .../describe_gtm_instance_address_pool.go | 114 - .../describe_gtm_instance_address_pools.go | 108 - .../alidns/describe_gtm_instance_status.go | 107 - .../describe_gtm_instance_system_cname.go | 102 - .../services/alidns/describe_gtm_instances.go | 110 - .../services/alidns/describe_gtm_logs.go | 111 - .../describe_gtm_monitor_available_config.go | 101 - .../alidns/describe_gtm_monitor_config.go | 112 - .../alidns/describe_gtm_recovery_plan.go | 115 - ...ribe_gtm_recovery_plan_available_config.go | 101 - .../alidns/describe_gtm_recovery_plans.go | 108 - .../alidns/describe_instance_domains.go | 108 - .../alidns/describe_pdns_account_summary.go | 102 - .../services/alidns/describe_pdns_app_key.go | 101 - .../services/alidns/describe_pdns_app_keys.go | 100 - .../alidns/describe_pdns_operate_logs.go | 109 - .../alidns/describe_pdns_request_statistic.go | 105 - .../describe_pdns_request_statistics.go | 111 - .../alidns/describe_pdns_threat_logs.go | 111 - .../alidns/describe_pdns_threat_statistic.go | 104 - .../alidns/describe_pdns_threat_statistics.go | 115 - .../alidns/describe_pdns_udp_ip_segments.go | 105 - .../alidns/describe_pdns_user_info.go | 100 - .../services/alidns/describe_record_logs.go | 110 - .../alidns/describe_record_statistics.go | 106 - .../describe_record_statistics_summary.go | 116 - .../alidns/describe_sub_domain_records.go | 110 - .../services/alidns/describe_support_lines.go | 102 - .../services/alidns/describe_tags.go | 107 - .../alidns/describe_transfer_domains.go | 110 - .../services/alidns/endpoint.go | 20 - .../alidns/execute_gtm_recovery_plan.go | 101 - .../services/alidns/get_main_domain_name.go | 104 - .../alidns/get_txt_record_for_verify.go | 105 - .../services/alidns/list_tag_resources.go | 113 - .../alidns/modify_hichina_domain_dns.go | 103 - .../alidns/move_domain_resource_group.go | 102 - .../alidns/move_gtm_resource_group.go | 102 - .../services/alidns/operate_batch_domain.go | 117 - .../services/alidns/pause_pdns_service.go | 100 - .../alidns/preview_gtm_recovery_plan.go | 108 - .../services/alidns/remove_pdns_app_key.go | 100 - .../alidns/remove_pdns_udp_ip_segment.go | 100 - .../services/alidns/resume_pdns_service.go | 100 - .../services/alidns/retrieve_domain.go | 101 - .../alidns/rollback_gtm_recovery_plan.go | 101 - .../alidns/set_dns_gtm_access_mode.go | 102 - .../alidns/set_dns_gtm_monitor_status.go | 102 - .../services/alidns/set_dnsslb_status.go | 107 - .../alidns/set_domain_dnssec_status.go | 102 - .../alidns/set_domain_record_status.go | 104 - .../services/alidns/set_gtm_access_mode.go | 102 - .../services/alidns/set_gtm_monitor_status.go | 102 - .../services/alidns/struct_addr.go | 33 - ...in_describe_dns_gtm_addr_attribute_info.go | 21 - .../services/alidns/struct_addr_item.go | 22 - .../services/alidns/struct_addr_pool.go | 34 - ...describe_dns_gtm_instance_address_pools.go | 21 - ...be_gtm_access_strategy_available_config.go | 21 - ..._in_describe_gtm_instance_address_pools.go | 21 - ...ribe_gtm_recovery_plan_available_config.go | 21 - ..._describe_dns_gtm_instance_address_pool.go | 21 - ...s_in_describe_gtm_instance_address_pool.go | 21 - ...uct_addrs_in_describe_gtm_recovery_plan.go | 21 - ...ert_config_in_describe_dns_gtm_instance.go | 21 - ...rt_config_in_describe_dns_gtm_instances.go | 21 - .../alidns/struct_alert_config_item.go | 24 - ...nfig_item_in_describe_dns_gtm_instances.go | 24 - .../services/alidns/struct_app_key.go | 24 - .../services/alidns/struct_app_keys.go | 21 - .../services/alidns/struct_attribute_info.go | 25 - .../services/alidns/struct_attribute_infos.go | 21 - .../services/alidns/struct_available_ttls.go | 21 - .../alidns/struct_batch_result_detail.go | 36 - .../alidns/struct_batch_result_details.go | 21 - .../services/alidns/struct_config.go | 31 - ...uct_config_in_describe_dns_gtm_instance.go | 30 - .../services/alidns/struct_custom_line.go | 27 - .../services/alidns/struct_custom_lines.go | 21 - .../services/alidns/struct_data.go | 27 - ...data_in_describe_pdns_request_statistic.go | 21 - ...ata_in_describe_pdns_request_statistics.go | 21 - ..._data_in_describe_pdns_threat_statistic.go | 21 - ...data_in_describe_pdns_threat_statistics.go | 21 - .../alidns/struct_default_addr_pool.go | 24 - .../alidns/struct_default_addr_pools.go | 21 - .../services/alidns/struct_dns_product.go | 52 - .../services/alidns/struct_dns_products.go | 21 - .../struct_dns_servers_in_add_domain.go | 21 - ...ervers_in_describe_dns_product_instance.go | 21 - ...uct_dns_servers_in_describe_domain_info.go | 21 - ...truct_dns_servers_in_describe_domain_ns.go | 21 - .../struct_dns_servers_in_describe_domains.go | 21 - .../services/alidns/struct_domain.go | 49 - .../alidns/struct_domain_addr_pool.go | 23 - .../alidns/struct_domain_addr_pools.go | 21 - .../services/alidns/struct_domain_group.go | 23 - .../services/alidns/struct_domain_groups.go | 21 - .../struct_domain_in_describe_domains.go | 40 - .../struct_domain_ipv4_isp_city_node.go | 28 - .../struct_domain_ipv4_isp_city_nodes.go | 21 - .../struct_domain_ipv6_isp_city_node.go | 28 - .../struct_domain_ipv6_isp_city_nodes.go | 21 - .../services/alidns/struct_domain_log.go | 27 - .../services/alidns/struct_domain_logs.go | 21 - ...main_records_in_describe_domain_records.go | 21 - ..._records_in_describe_sub_domain_records.go | 21 - .../services/alidns/struct_domain_transfer.go | 26 - .../alidns/struct_domain_transfers.go | 21 - ...t_domains_in_describe_dns_cache_domains.go | 21 - .../struct_domains_in_describe_domains.go | 21 - .../alidns/struct_effective_addr_pool.go | 24 - .../alidns/struct_effective_addr_pools.go | 21 - .../alidns/struct_expect_dns_servers.go | 21 - .../alidns/struct_failover_addr_pool.go | 24 - .../alidns/struct_failover_addr_pools.go | 21 - .../services/alidns/struct_fault_addr_pool.go | 24 - .../alidns/struct_fault_addr_pools.go | 21 - .../services/alidns/struct_gtm_instance.go | 41 - ...instances_in_describe_dns_gtm_instances.go | 21 - ...gtm_instances_in_describe_gtm_instances.go | 21 - .../services/alidns/struct_instance.go | 23 - .../services/alidns/struct_instance_domain.go | 23 - .../alidns/struct_instance_domains.go | 21 - .../services/alidns/struct_instances.go | 21 - .../services/alidns/struct_ip_segment.go | 28 - ...ip_segment_list_in_describe_custom_line.go | 21 - ...p_segment_list_in_describe_custom_lines.go | 21 - .../services/alidns/struct_ip_segments.go | 21 - ...scribe_dns_gtm_monitor_available_config.go | 21 - .../services/alidns/struct_ipv4_addr_pool.go | 23 - .../services/alidns/struct_ipv4_addr_pools.go | 21 - .../alidns/struct_ipv4_isp_city_node.go | 28 - .../alidns/struct_ipv4_isp_city_nodes.go | 21 - .../services/alidns/struct_ipv6_addr_pool.go | 23 - .../services/alidns/struct_ipv6_addr_pools.go | 21 - .../alidns/struct_ipv6_isp_city_node.go | 28 - .../alidns/struct_ipv6_isp_city_nodes.go | 21 - .../services/alidns/struct_isp_city_node.go | 30 - ...odes_in_describe_dns_gtm_monitor_config.go | 21 - ...n_describe_gtm_monitor_available_config.go | 21 - ...ty_nodes_in_describe_gtm_monitor_config.go | 21 - .../services/alidns/struct_line.go | 26 - .../services/alidns/struct_line_algorithm.go | 22 - .../services/alidns/struct_line_algorithms.go | 21 - ...s_in_describe_dns_gtm_access_strategies.go | 21 - ...nes_in_describe_dns_gtm_access_strategy.go | 21 - ...ns_gtm_access_strategy_available_config.go | 21 - ...lines_in_describe_gtm_access_strategies.go | 21 - ...t_lines_in_describe_gtm_access_strategy.go | 21 - ...be_gtm_access_strategy_available_config.go | 21 - .../services/alidns/struct_log.go | 37 - .../struct_logs_in_describe_dns_gtm_logs.go | 21 - .../struct_logs_in_describe_gtm_logs.go | 21 - ...ruct_logs_in_describe_pdns_operate_logs.go | 21 - ...truct_logs_in_describe_pdns_threat_logs.go | 21 - .../services/alidns/struct_new_dns_servers.go | 21 - .../alidns/struct_original_dns_servers.go | 21 - .../services/alidns/struct_preview.go | 24 - .../services/alidns/struct_previews.go | 21 - .../services/alidns/struct_record.go | 32 - .../services/alidns/struct_record_line.go | 24 - ...ct_record_lines_in_describe_domain_info.go | 21 - ..._record_lines_in_describe_support_lines.go | 21 - .../services/alidns/struct_record_log.go | 25 - .../services/alidns/struct_record_logs.go | 21 - .../services/alidns/struct_recovery_plan.go | 33 - .../services/alidns/struct_recovery_plans.go | 21 - .../alidns/struct_selected_domain_lines.go | 21 - .../alidns/struct_selected_ipv4_lines.go | 21 - .../alidns/struct_selected_ipv6_lines.go | 21 - .../services/alidns/struct_slb_sub_domain.go | 25 - .../services/alidns/struct_slb_sub_domains.go | 21 - .../alidns/struct_source_dns_server.go | 22 - .../alidns/struct_source_dns_servers.go | 21 - .../services/alidns/struct_statistic.go | 33 - .../services/alidns/struct_statistic_item.go | 43 - ...tics_in_describe_doh_account_statistics.go | 21 - ...stics_in_describe_doh_domain_statistics.go | 21 - ..._describe_doh_domain_statistics_summary.go | 21 - ...s_in_describe_doh_sub_domain_statistics.go | 21 - ...cribe_doh_sub_domain_statistics_summary.go | 21 - ...tatistics_in_describe_domain_statistics.go | 21 - ...s_in_describe_domain_statistics_summary.go | 21 - ...tatistics_in_describe_record_statistics.go | 21 - ...s_in_describe_record_statistics_summary.go | 21 - ...s_in_describe_dns_gtm_access_strategies.go | 21 - ...egies_in_describe_gtm_access_strategies.go | 21 - .../services/alidns/struct_strategy.go | 41 - .../services/alidns/struct_switch_info.go | 22 - .../services/alidns/struct_switch_infos.go | 21 - .../services/alidns/struct_tag.go | 23 - .../services/alidns/struct_tag_resource.go | 24 - .../services/alidns/struct_tag_resources.go | 21 - .../alidns/struct_tags_in_describe_domains.go | 21 - .../alidns/struct_tags_in_describe_tags.go | 21 - .../services/alidns/struct_threat_info.go | 21 - .../services/alidns/struct_threat_item.go | 22 - .../services/alidns/struct_used_quota.go | 24 - .../services/alidns/struct_user_info.go | 25 - .../services/alidns/struct_values.go | 21 - .../switch_dns_gtm_instance_strategy_mode.go | 102 - .../services/alidns/tag_resources.go | 110 - .../services/alidns/transfer_domain.go | 104 - .../alidns/unbind_instance_domains.go | 104 - .../services/alidns/untag_resources.go | 104 - .../services/alidns/update_app_key_state.go | 101 - .../services/alidns/update_custom_line.go | 109 - .../alidns/update_dns_cache_domain.go | 113 - .../alidns/update_dns_cache_domain_remark.go | 102 - .../alidns/update_dns_gtm_access_strategy.go | 129 - .../alidns/update_dns_gtm_address_pool.go | 113 - .../update_dns_gtm_instance_global_config.go | 119 - .../services/alidns/update_dns_gtm_monitor.go | 113 - .../services/alidns/update_dnsslb_weight.go | 104 - .../services/alidns/update_domain_group.go | 104 - .../services/alidns/update_domain_record.go | 108 - .../alidns/update_domain_record_remark.go | 102 - .../services/alidns/update_domain_remark.go | 102 - .../alidns/update_gtm_access_strategy.go | 105 - .../alidns/update_gtm_address_pool.go | 112 - .../update_gtm_instance_global_config.go | 108 - .../services/alidns/update_gtm_monitor.go | 113 - .../alidns/update_gtm_recovery_plan.go | 104 - .../validate_dns_gtm_cname_rr_can_use.go | 105 - .../alidns/validate_pdns_udp_ip_segment.go | 100 - .../services/pvtz/add_zone.go | 108 - .../services/pvtz/add_zone_record.go | 109 - .../services/pvtz/bind_zone_vpc.go | 108 - .../services/pvtz/check_zone_name.go | 103 - .../services/pvtz/client.go | 129 - .../services/pvtz/delete_zone.go | 102 - .../services/pvtz/delete_zone_record.go | 102 - .../services/pvtz/describe_change_logs.go | 112 - .../services/pvtz/describe_regions.go | 103 - .../services/pvtz/describe_request_graph.go | 107 - .../pvtz/describe_statistic_summary.go | 103 - .../services/pvtz/describe_tags.go | 107 - .../services/pvtz/describe_zone_info.go | 116 - .../services/pvtz/describe_zone_records.go | 113 - .../services/pvtz/describe_zone_vpc_tree.go | 101 - .../services/pvtz/describe_zones.go | 123 - .../services/pvtz/endpoint.go | 20 - .../services/pvtz/list_tag_resources.go | 113 - .../services/pvtz/move_resource_group.go | 102 - .../services/pvtz/set_proxy_pattern.go | 103 - .../services/pvtz/set_zone_record_status.go | 104 - .../services/pvtz/struct_bind_vpcs.go | 21 - .../services/pvtz/struct_change_log.go | 29 - .../services/pvtz/struct_change_logs.go | 21 - .../services/pvtz/struct_record.go | 29 - .../services/pvtz/struct_records.go | 21 - .../services/pvtz/struct_region.go | 24 - .../services/pvtz/struct_regions.go | 21 - .../services/pvtz/struct_request_details.go | 21 - .../services/pvtz/struct_resource_tag.go | 22 - .../services/pvtz/struct_resource_tags.go | 21 - .../services/pvtz/struct_tag.go | 22 - .../services/pvtz/struct_tag_resource.go | 24 - .../services/pvtz/struct_tag_resources.go | 21 - .../services/pvtz/struct_tags.go | 21 - .../services/pvtz/struct_values.go | 21 - .../services/pvtz/struct_vpc.go | 25 - .../services/pvtz/struct_vpc_request_top.go | 25 - .../services/pvtz/struct_vpc_request_tops.go | 21 - .../services/pvtz/struct_vpcs.go | 21 - .../services/pvtz/struct_zone.go | 35 - .../services/pvtz/struct_zone_request_top.go | 25 - .../services/pvtz/struct_zone_request_tops.go | 21 - .../struct_zones_in_describe_zone_vpc_tree.go | 21 - .../pvtz/struct_zones_in_describe_zones.go | 21 - .../services/pvtz/tag_resources.go | 110 - .../services/pvtz/untag_resources.go | 104 - .../services/pvtz/update_record_remark.go | 103 - .../services/pvtz/update_zone_record.go | 107 - .../services/pvtz/update_zone_remark.go | 103 - vendor/gopkg.in/ini.v1/.gitignore | 6 - vendor/gopkg.in/ini.v1/LICENSE | 191 - vendor/gopkg.in/ini.v1/Makefile | 15 - vendor/gopkg.in/ini.v1/README.md | 43 - vendor/gopkg.in/ini.v1/codecov.yml | 9 - vendor/gopkg.in/ini.v1/data_source.go | 76 - vendor/gopkg.in/ini.v1/deprecated.go | 25 - vendor/gopkg.in/ini.v1/error.go | 34 - vendor/gopkg.in/ini.v1/file.go | 517 --- vendor/gopkg.in/ini.v1/helper.go | 24 - vendor/gopkg.in/ini.v1/ini.go | 176 - vendor/gopkg.in/ini.v1/key.go | 829 ---- vendor/gopkg.in/ini.v1/parser.go | 535 --- vendor/gopkg.in/ini.v1/section.go | 256 -- vendor/gopkg.in/ini.v1/struct.go | 747 --- vendor/modules.txt | 17 - 418 files changed, 36177 deletions(-) delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/api_timeout.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/access_key_credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/bearer_token_credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/ecs_ram_role.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/env.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/instance_credentials.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/profile_credentials.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider_chain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/rsa_key_pair_credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signer.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/algorithms.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/credential_updater.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/session_credential.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_access_key.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_bearer_token.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ecs_ram_role.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_key_pair.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_sts_token.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_v2.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_global_resolver.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_regional_resolver.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/location_resolver.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/client_error.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/error.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/signature_does_not_match_wrapper.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/logger.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_request.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/debug.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_custom_line.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_cache_domain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_gtm_access_strategy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_gtm_address_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_gtm_monitor.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_backup.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_record.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_access_strategy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_address_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_monitor.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_recovery_plan.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/bind_instance_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/change_domain_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/change_domain_of_dns_product.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/client.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/copy_gtm_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/create_pdns_app_key.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/create_pdns_udp_ip_segment.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_custom_lines.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_dns_cache_domain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_dns_gtm_access_strategy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_dns_gtm_address_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain_record.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_gtm_access_strategy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_gtm_address_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_gtm_recovery_plan.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_sub_domain_records.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_batch_result_count.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_batch_result_detail.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_custom_line.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_custom_lines.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_cache_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_access_strategies.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_access_strategy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_access_strategy_available_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_addr_attribute_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_address_pool_available_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_available_alert_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_address_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_address_pools.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_system_cname.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_monitor_available_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_monitor_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_product_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_product_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dnsslb_sub_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_account_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_domain_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_domain_statistics_summary.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_sub_domain_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_sub_domain_statistics_summary.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_user_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_dnssec_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_ns.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_record_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_records.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_statistics_summary.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_access_strategies.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_access_strategy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_access_strategy_available_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_available_alert_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_address_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_address_pools.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_system_cname.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_monitor_available_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_monitor_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_recovery_plan.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_recovery_plan_available_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_recovery_plans.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_instance_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_account_summary.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_app_key.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_app_keys.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_operate_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_request_statistic.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_request_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_threat_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_threat_statistic.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_threat_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_udp_ip_segments.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_user_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_statistics_summary.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_sub_domain_records.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_support_lines.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_tags.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_transfer_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/endpoint.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/execute_gtm_recovery_plan.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/get_main_domain_name.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/get_txt_record_for_verify.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/list_tag_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/modify_hichina_domain_dns.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/move_domain_resource_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/move_gtm_resource_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/operate_batch_domain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/pause_pdns_service.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/preview_gtm_recovery_plan.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/remove_pdns_app_key.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/remove_pdns_udp_ip_segment.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/resume_pdns_service.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/retrieve_domain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/rollback_gtm_recovery_plan.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dns_gtm_access_mode.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dns_gtm_monitor_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dnsslb_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_domain_dnssec_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_domain_record_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_gtm_access_mode.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_gtm_monitor_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_in_describe_dns_gtm_addr_attribute_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_item.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_dns_gtm_instance_address_pools.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_access_strategy_available_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_instance_address_pools.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_recovery_plan_available_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_dns_gtm_instance_address_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_gtm_instance_address_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_gtm_recovery_plan.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_in_describe_dns_gtm_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_in_describe_dns_gtm_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_item.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_item_in_describe_dns_gtm_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_app_key.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_app_keys.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_attribute_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_attribute_infos.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_available_ttls.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_batch_result_detail.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_batch_result_details.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_config_in_describe_dns_gtm_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_custom_line.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_custom_lines.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_request_statistic.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_request_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_threat_statistic.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_threat_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_default_addr_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_default_addr_pools.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_product.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_products.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_add_domain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_dns_product_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_ns.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_addr_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_addr_pools.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_groups.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_in_describe_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv4_isp_city_node.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv4_isp_city_nodes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv6_isp_city_node.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv6_isp_city_nodes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_log.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_domain_records.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_sub_domain_records.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_transfer.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_transfers.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domains_in_describe_dns_cache_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domains_in_describe_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_effective_addr_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_effective_addr_pools.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_expect_dns_servers.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_failover_addr_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_failover_addr_pools.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fault_addr_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fault_addr_pools.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instances_in_describe_dns_gtm_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instances_in_describe_gtm_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance_domain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instances.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment_list_in_describe_custom_line.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment_list_in_describe_custom_lines.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segments.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ips_in_describe_dns_gtm_monitor_available_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_addr_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_addr_pools.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_isp_city_node.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_isp_city_nodes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_addr_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_addr_pools.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_isp_city_node.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_isp_city_nodes.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_node.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_dns_gtm_monitor_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_gtm_monitor_available_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_gtm_monitor_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_line.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_line_algorithm.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_line_algorithms.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_dns_gtm_access_strategies.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_dns_gtm_access_strategy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_dns_gtm_access_strategy_available_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategies.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategy_available_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_log.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_dns_gtm_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_gtm_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_pdns_operate_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_pdns_threat_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_new_dns_servers.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_original_dns_servers.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_preview.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_previews.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_line.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_domain_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_support_lines.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_log.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_recovery_plan.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_recovery_plans.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_selected_domain_lines.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_selected_ipv4_lines.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_selected_ipv6_lines.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_source_dns_server.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_source_dns_servers.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistic.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistic_item.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_account_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_domain_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_domain_statistics_summary.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_sub_domain_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_sub_domain_statistics_summary.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_domain_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_domain_statistics_summary.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_record_statistics.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_record_statistics_summary.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_strategies_in_describe_dns_gtm_access_strategies.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_strategies_in_describe_gtm_access_strategies.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_strategy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_switch_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_switch_infos.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag_resource.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tags_in_describe_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tags_in_describe_tags.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_threat_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_threat_item.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_used_quota.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_user_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_values.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/switch_dns_gtm_instance_strategy_mode.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/tag_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/transfer_domain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/unbind_instance_domains.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/untag_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_app_key_state.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_custom_line.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_cache_domain.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_cache_domain_remark.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_access_strategy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_address_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_instance_global_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_monitor.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dnsslb_weight.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_record.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_record_remark.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_remark.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_access_strategy.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_address_pool.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_instance_global_config.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_monitor.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_recovery_plan.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/validate_dns_gtm_cname_rr_can_use.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/validate_pdns_udp_ip_segment.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/add_zone.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/add_zone_record.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/bind_zone_vpc.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/check_zone_name.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/client.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/delete_zone.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/delete_zone_record.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_change_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_regions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_request_graph.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_statistic_summary.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_tags.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_info.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_records.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_vpc_tree.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zones.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/endpoint.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/list_tag_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/move_resource_group.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/set_proxy_pattern.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/set_zone_record_status.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_bind_vpcs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_change_log.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_change_logs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_record.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_records.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_region.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_regions.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_request_details.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_resource_tag.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_resource_tags.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tag.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tag_resource.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tag_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tags.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_values.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc_request_top.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc_request_tops.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpcs.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone_request_top.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone_request_tops.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zones_in_describe_zone_vpc_tree.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zones_in_describe_zones.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/tag_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/untag_resources.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_record_remark.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_zone_record.go delete mode 100644 vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_zone_remark.go delete mode 100644 vendor/gopkg.in/ini.v1/.gitignore delete mode 100644 vendor/gopkg.in/ini.v1/LICENSE delete mode 100644 vendor/gopkg.in/ini.v1/Makefile delete mode 100644 vendor/gopkg.in/ini.v1/README.md delete mode 100644 vendor/gopkg.in/ini.v1/codecov.yml delete mode 100644 vendor/gopkg.in/ini.v1/data_source.go delete mode 100644 vendor/gopkg.in/ini.v1/deprecated.go delete mode 100644 vendor/gopkg.in/ini.v1/error.go delete mode 100644 vendor/gopkg.in/ini.v1/file.go delete mode 100644 vendor/gopkg.in/ini.v1/helper.go delete mode 100644 vendor/gopkg.in/ini.v1/ini.go delete mode 100644 vendor/gopkg.in/ini.v1/key.go delete mode 100644 vendor/gopkg.in/ini.v1/parser.go delete mode 100644 vendor/gopkg.in/ini.v1/section.go delete mode 100644 vendor/gopkg.in/ini.v1/struct.go diff --git a/go.mod b/go.mod index 424fd66a9..1778ac056 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,6 @@ require ( github.com/Azure/go-autorest/autorest/to v0.4.0 github.com/IBM/go-sdk-core/v5 v5.8.0 github.com/IBM/networking-go-sdk v0.26.0 - github.com/aliyun/alibaba-cloud-sdk-go v1.61.1286 github.com/aws/aws-sdk-go v1.38.49 github.com/davecgh/go-spew v1.1.1 github.com/florianl/go-nfqueue v1.3.2 @@ -139,7 +138,6 @@ require ( google.golang.org/protobuf v1.31.0 // indirect gopkg.in/go-playground/validator.v9 v9.31.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect - gopkg.in/ini.v1 v1.62.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect k8s.io/component-base v0.29.2 // indirect k8s.io/klog/v2 v2.110.1 // indirect diff --git a/go.sum b/go.sum index 220b7f93d..c51a1441f 100644 --- a/go.sum +++ b/go.sum @@ -703,8 +703,6 @@ github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuy github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/aliyun/alibaba-cloud-sdk-go v1.61.1286 h1:+Ah33S/QRnOFp4dM6VV2gYDbFu3Cj4HrRy1VpOhBzm8= -github.com/aliyun/alibaba-cloud-sdk-go v1.61.1286/go.mod h1:9CMdKNL3ynIGPpfTcdwTvIm8SGuAZYYC4jFVSSvE1YQ= github.com/aliyun/aliyun-oss-go-sdk v2.0.4+incompatible/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= @@ -1122,7 +1120,6 @@ github.com/gogo/protobuf v1.2.2-0.20190730201129-28a6bbf47e48/go.mod h1:SlYgWuQ5 github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d/go.mod h1:nnjvkQ9ptGaCkuDUx6wNykzzlUixGxvkme+H/lnzb+A= github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= @@ -1286,7 +1283,6 @@ github.com/gophercloud/gophercloud v0.2.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEo github.com/gophercloud/gophercloud v0.3.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gophercloud/gophercloud v0.6.0/go.mod h1:GICNByuaEBibcjmjvI7QvYJSZEbGkcYwAR7EZK2WMqM= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gopherjs/gopherjs v0.0.0-20191106031601-ce3c9ade29de h1:F7WD09S8QB4LrkEpka0dFPLSotH11HRpCsLIbIcJ7sU= github.com/gopherjs/gopherjs v0.0.0-20191106031601-ce3c9ade29de/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= github.com/gorilla/handlers v0.0.0-20150720190736-60c7bfde3e33/go.mod h1:Qkdc/uu4tH4g6mTK6auzZ766c4CA0Ng8+o/OAirnOIQ= @@ -1406,7 +1402,6 @@ github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2E github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v0.0.0-20180612202835-f2b4162afba3/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v0.0.0-20180701071628-ab8a2e0c74be/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= @@ -1418,7 +1413,6 @@ github.com/jsonnet-bundler/jsonnet-bundler v0.3.1/go.mod h1:/by7P/OoohkI3q4CgSFq github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jteeuwen/go-bindata v3.0.8-0.20151023091102-a0ff2567cfb7+incompatible/go.mod h1:JVvhzYOiGBnFSYRyV00iY8q7/0PThjIYav1p9h5dmKs= -github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= @@ -1818,10 +1812,8 @@ github.com/sirupsen/logrus v1.5.0/go.mod h1:+F7Ogzej0PZc/94MaYx/nvG9jOFMD2osvC3s github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/assertions v1.0.1 h1:voD4ITNjPL5jjBfgR/r8fPIIBrliWrWHeiJApdr3r4w= github.com/smartystreets/assertions v1.0.1/go.mod h1:kHHU4qYBaI3q23Pp3VPrmWhuIUrLW/7eUrw0BU5VaoM= github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.3/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= @@ -2863,8 +2855,6 @@ gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= gopkg.in/ini.v1 v1.42.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.62.0 h1:duBzk771uxoUuOlyRLkHsygud9+5lrlGjdFBb4mSKDU= -gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ldap.v2 v2.5.1/go.mod h1:oI0cpe/D7HRtBQl8aTg+ZmzFUAvu4lsv3eLXMLGFxWk= gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= gopkg.in/op/go-logging.v1 v1.0.0-20160211212156-b2cb9fa56473/go.mod h1:N1eN2tsCx0Ydtgjl4cqmbRCsY4/+z4cYDeqwZTk6zog= diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE deleted file mode 100644 index 0c44dcefe..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright (c) 2009-present, Alibaba Cloud All rights reserved. - - 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. diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/api_timeout.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/api_timeout.go deleted file mode 100644 index d7968dab7..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/api_timeout.go +++ /dev/null @@ -1,249 +0,0 @@ -package sdk - -import ( - "encoding/json" - "strings" - "time" -) - -var apiTimeouts = `{ - "ecs": { - "ActivateRouterInterface": 10, - "AddTags": 61, - "AllocateDedicatedHosts": 10, - "AllocateEipAddress": 17, - "AllocatePublicIpAddress": 36, - "ApplyAutoSnapshotPolicy": 10, - "AssignIpv6Addresses": 10, - "AssignPrivateIpAddresses": 10, - "AssociateEipAddress": 17, - "AttachClassicLinkVpc": 14, - "AttachDisk": 36, - "AttachInstanceRamRole": 11, - "AttachKeyPair": 16, - "AttachNetworkInterface": 16, - "AuthorizeSecurityGroupEgress": 16, - "AuthorizeSecurityGroup": 16, - "CancelAutoSnapshotPolicy": 10, - "CancelCopyImage": 10, - "CancelPhysicalConnection": 10, - "CancelSimulatedSystemEvents": 10, - "CancelTask": 10, - "ConnectRouterInterface": 10, - "ConvertNatPublicIpToEip": 12, - "CopyImage": 10, - "CreateAutoSnapshotPolicy": 10, - "CreateCommand": 16, - "CreateDeploymentSet": 16, - "CreateDisk": 36, - "CreateHpcCluster": 10, - "CreateImage": 36, - "CreateInstance": 86, - "CreateKeyPair": 10, - "CreateLaunchTemplate": 10, - "CreateLaunchTemplateVersion": 10, - "CreateNatGateway": 36, - "CreateNetworkInterfacePermission": 13, - "CreateNetworkInterface": 16, - "CreatePhysicalConnection": 10, - "CreateRouteEntry": 17, - "CreateRouterInterface": 10, - "CreateSecurityGroup": 86, - "CreateSimulatedSystemEvents": 10, - "CreateSnapshot": 86, - "CreateVirtualBorderRouter": 10, - "CreateVpc": 16, - "CreateVSwitch": 17, - "DeactivateRouterInterface": 10, - "DeleteAutoSnapshotPolicy": 10, - "DeleteBandwidthPackage": 10, - "DeleteCommand": 16, - "DeleteDeploymentSet": 12, - "DeleteDisk": 16, - "DeleteHpcCluster": 10, - "DeleteImage": 36, - "DeleteInstance": 66, - "DeleteKeyPairs": 10, - "DeleteLaunchTemplate": 10, - "DeleteLaunchTemplateVersion": 10, - "DeleteNatGateway": 10, - "DeleteNetworkInterfacePermission": 10, - "DeleteNetworkInterface": 16, - "DeletePhysicalConnection": 10, - "DeleteRouteEntry": 16, - "DeleteRouterInterface": 10, - "DeleteSecurityGroup": 87, - "DeleteSnapshot": 17, - "DeleteVirtualBorderRouter": 10, - "DeleteVpc": 17, - "DeleteVSwitch": 17, - "DescribeAccessPoints": 10, - "DescribeAccountAttributes": 10, - "DescribeAutoSnapshotPolicyEx": 16, - "DescribeAvailableResource": 10, - "DescribeBandwidthLimitation": 16, - "DescribeBandwidthPackages": 10, - "DescribeClassicLinkInstances": 15, - "DescribeCloudAssistantStatus": 16, - "DescribeClusters": 10, - "DescribeCommands": 16, - "DescribeDedicatedHosts": 10, - "DescribeDedicatedHostTypes": 10, - "DescribeDeploymentSets": 26, - "DescribeDiskMonitorData": 16, - "DescribeDisksFullStatus": 14, - "DescribeDisks": 19, - "DescribeEipAddresses": 16, - "DescribeEipMonitorData": 16, - "DescribeEniMonitorData": 10, - "DescribeHaVips": 10, - "DescribeHpcClusters": 16, - "DescribeImageSharePermission": 10, - "DescribeImages": 38, - "DescribeImageSupportInstanceTypes": 16, - "DescribeInstanceAttribute": 36, - "DescribeInstanceAutoRenewAttribute": 17, - "DescribeInstanceHistoryEvents": 19, - "DescribeInstanceMonitorData": 19, - "DescribeInstancePhysicalAttribute": 10, - "DescribeInstanceRamRole": 11, - "DescribeInstancesFullStatus": 14, - "DescribeInstances": 10, - "DescribeInstanceStatus": 26, - "DescribeInstanceTopology": 12, - "DescribeInstanceTypeFamilies": 17, - "DescribeInstanceTypes": 17, - "DescribeInstanceVncPasswd": 10, - "DescribeInstanceVncUrl": 36, - "DescribeInvocationResults": 16, - "DescribeInvocations": 16, - "DescribeKeyPairs": 12, - "DescribeLaunchTemplates": 16, - "DescribeLaunchTemplateVersions": 16, - "DescribeLimitation": 36, - "DescribeNatGateways": 10, - "DescribeNetworkInterfacePermissions": 13, - "DescribeNetworkInterfaces": 16, - "DescribeNewProjectEipMonitorData": 16, - "DescribePhysicalConnections": 10, - "DescribePrice": 16, - "DescribeRecommendInstanceType": 10, - "DescribeRegions": 19, - "DescribeRenewalPrice": 16, - "DescribeResourceByTags": 10, - "DescribeResourcesModification": 17, - "DescribeRouterInterfaces": 10, - "DescribeRouteTables": 17, - "DescribeSecurityGroupAttribute": 133, - "DescribeSecurityGroupReferences": 16, - "DescribeSecurityGroups": 25, - "DescribeSnapshotLinks": 17, - "DescribeSnapshotMonitorData": 12, - "DescribeSnapshotPackage": 10, - "DescribeSnapshots": 26, - "DescribeSnapshotsUsage": 26, - "DescribeSpotPriceHistory": 22, - "DescribeTags": 17, - "DescribeTaskAttribute": 10, - "DescribeTasks": 11, - "DescribeUserBusinessBehavior": 13, - "DescribeUserData": 10, - "DescribeVirtualBorderRoutersForPhysicalConnection": 10, - "DescribeVirtualBorderRouters": 10, - "DescribeVpcs": 41, - "DescribeVRouters": 17, - "DescribeVSwitches": 17, - "DescribeZones": 103, - "DetachClassicLinkVpc": 14, - "DetachDisk": 17, - "DetachInstanceRamRole": 10, - "DetachKeyPair": 10, - "DetachNetworkInterface": 16, - "EipFillParams": 19, - "EipFillProduct": 13, - "EipNotifyPaid": 10, - "EnablePhysicalConnection": 10, - "ExportImage": 10, - "GetInstanceConsoleOutput": 14, - "GetInstanceScreenshot": 14, - "ImportImage": 29, - "ImportKeyPair": 10, - "InstallCloudAssistant": 10, - "InvokeCommand": 16, - "JoinResourceGroup": 10, - "JoinSecurityGroup": 66, - "LeaveSecurityGroup": 66, - "ModifyAutoSnapshotPolicyEx": 10, - "ModifyBandwidthPackageSpec": 11, - "ModifyCommand": 10, - "ModifyDeploymentSetAttribute": 10, - "ModifyDiskAttribute": 16, - "ModifyDiskChargeType": 13, - "ModifyEipAddressAttribute": 14, - "ModifyImageAttribute": 10, - "ModifyImageSharePermission": 16, - "ModifyInstanceAttribute": 22, - "ModifyInstanceAutoReleaseTime": 15, - "ModifyInstanceAutoRenewAttribute": 16, - "ModifyInstanceChargeType": 22, - "ModifyInstanceDeployment": 10, - "ModifyInstanceNetworkSpec": 36, - "ModifyInstanceSpec": 62, - "ModifyInstanceVncPasswd": 35, - "ModifyInstanceVpcAttribute": 15, - "ModifyLaunchTemplateDefaultVersion": 10, - "ModifyNetworkInterfaceAttribute": 10, - "ModifyPhysicalConnectionAttribute": 10, - "ModifyPrepayInstanceSpec": 13, - "ModifyRouterInterfaceAttribute": 10, - "ModifySecurityGroupAttribute": 10, - "ModifySecurityGroupEgressRule": 10, - "ModifySecurityGroupPolicy": 10, - "ModifySecurityGroupRule": 16, - "ModifySnapshotAttribute": 10, - "ModifyUserBusinessBehavior": 10, - "ModifyVirtualBorderRouterAttribute": 10, - "ModifyVpcAttribute": 10, - "ModifyVRouterAttribute": 10, - "ModifyVSwitchAttribute": 10, - "ReActivateInstances": 10, - "RebootInstance": 27, - "RedeployInstance": 14, - "ReInitDisk": 16, - "ReleaseDedicatedHost": 10, - "ReleaseEipAddress": 16, - "ReleasePublicIpAddress": 10, - "RemoveTags": 10, - "RenewInstance": 19, - "ReplaceSystemDisk": 36, - "ResetDisk": 36, - "ResizeDisk": 11, - "RevokeSecurityGroupEgress": 13, - "RevokeSecurityGroup": 16, - "RunInstances": 86, - "StartInstance": 46, - "StopInstance": 27, - "StopInvocation": 10, - "TerminatePhysicalConnection": 10, - "TerminateVirtualBorderRouter": 10, - "UnassignIpv6Addresses": 10, - "UnassignPrivateIpAddresses": 10, - "UnassociateEipAddress": 16 - } -} -` - -func getAPIMaxTimeout(product, actionName string) (time.Duration, bool) { - timeout := make(map[string]map[string]int) - err := json.Unmarshal([]byte(apiTimeouts), &timeout) - if err != nil { - return 0 * time.Millisecond, false - } - - obj := timeout[strings.ToLower(product)] - if obj != nil && obj[actionName] != 0 { - return time.Duration(obj[actionName]) * time.Second, true - } - - return 0 * time.Millisecond, false -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credential.go deleted file mode 100644 index 7f20b7a40..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credential.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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. - */ - -package auth - -type Credential interface { -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/access_key_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/access_key_credential.go deleted file mode 100644 index 68f822633..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/access_key_credential.go +++ /dev/null @@ -1,34 +0,0 @@ -package credentials - -// Deprecated: Use AccessKeyCredential in this package instead. -type BaseCredential struct { - AccessKeyId string - AccessKeySecret string -} - -type AccessKeyCredential struct { - AccessKeyId string - AccessKeySecret string -} - -// Deprecated: Use NewAccessKeyCredential in this package instead. -func NewBaseCredential(accessKeyId, accessKeySecret string) *BaseCredential { - return &BaseCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - } -} - -func (baseCred *BaseCredential) ToAccessKeyCredential() *AccessKeyCredential { - return &AccessKeyCredential{ - AccessKeyId: baseCred.AccessKeyId, - AccessKeySecret: baseCred.AccessKeySecret, - } -} - -func NewAccessKeyCredential(accessKeyId, accessKeySecret string) *AccessKeyCredential { - return &AccessKeyCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/bearer_token_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/bearer_token_credential.go deleted file mode 100644 index 6d4763e66..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/bearer_token_credential.go +++ /dev/null @@ -1,12 +0,0 @@ -package credentials - -type BearerTokenCredential struct { - BearerToken string -} - -// NewBearerTokenCredential return a BearerTokenCredential object -func NewBearerTokenCredential(token string) *BearerTokenCredential { - return &BearerTokenCredential{ - BearerToken: token, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/ecs_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/ecs_ram_role.go deleted file mode 100644 index 55a5c2da0..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/ecs_ram_role.go +++ /dev/null @@ -1,29 +0,0 @@ -package credentials - -func (oldCred *StsRoleNameOnEcsCredential) ToEcsRamRoleCredential() *EcsRamRoleCredential { - return &EcsRamRoleCredential{ - RoleName: oldCred.RoleName, - } -} - -type EcsRamRoleCredential struct { - RoleName string -} - -func NewEcsRamRoleCredential(roleName string) *EcsRamRoleCredential { - return &EcsRamRoleCredential{ - RoleName: roleName, - } -} - -// Deprecated: Use EcsRamRoleCredential in this package instead. -type StsRoleNameOnEcsCredential struct { - RoleName string -} - -// Deprecated: Use NewEcsRamRoleCredential in this package instead. -func NewStsRoleNameOnEcsCredential(roleName string) *StsRoleNameOnEcsCredential { - return &StsRoleNameOnEcsCredential{ - RoleName: roleName, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/env.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/env.go deleted file mode 100644 index 3cd0d020a..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/env.go +++ /dev/null @@ -1,30 +0,0 @@ -package provider - -import ( - "errors" - "os" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" -) - -type EnvProvider struct{} - -var ProviderEnv = new(EnvProvider) - -func NewEnvProvider() Provider { - return &EnvProvider{} -} - -func (p *EnvProvider) Resolve() (auth.Credential, error) { - accessKeyID, ok1 := os.LookupEnv(ENVAccessKeyID) - accessKeySecret, ok2 := os.LookupEnv(ENVAccessKeySecret) - if !ok1 || !ok2 { - return nil, nil - } - if accessKeyID == "" || accessKeySecret == "" { - return nil, errors.New("Environmental variable (ALIBABACLOUD_ACCESS_KEY_ID or ALIBABACLOUD_ACCESS_KEY_SECRET) is empty") - } - return credentials.NewAccessKeyCredential(accessKeyID, accessKeySecret), nil -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/instance_credentials.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/instance_credentials.go deleted file mode 100644 index 074f6350b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/instance_credentials.go +++ /dev/null @@ -1,92 +0,0 @@ -package provider - -import ( - "encoding/json" - "errors" - "fmt" - "io/ioutil" - "net/http" - "os" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" -) - -var securityCredURL = "http://100.100.100.200/latest/meta-data/ram/security-credentials/" - -type InstanceCredentialsProvider struct{} - -var ProviderInstance = new(InstanceCredentialsProvider) - -var HookGet = func(fn func(string) (int, []byte, error)) func(string) (int, []byte, error) { - return fn -} - -func NewInstanceCredentialsProvider() Provider { - return &InstanceCredentialsProvider{} -} - -func (p *InstanceCredentialsProvider) Resolve() (auth.Credential, error) { - roleName, ok := os.LookupEnv(ENVEcsMetadata) - if !ok { - return nil, nil - } - if roleName == "" { - return nil, errors.New("Environmental variable 'ALIBABA_CLOUD_ECS_METADATA' are empty") - } - status, content, err := HookGet(get)(securityCredURL + roleName) - if err != nil { - return nil, err - } - if status != 200 { - if status == 404 { - return nil, fmt.Errorf("The role was not found in the instance") - } - return nil, fmt.Errorf("Received %d when getting security credentials for %s", status, roleName) - } - body := make(map[string]interface{}) - - if err := json.Unmarshal(content, &body); err != nil { - return nil, err - } - - accessKeyID, err := extractString(body, "AccessKeyId") - if err != nil { - return nil, err - } - accessKeySecret, err := extractString(body, "AccessKeySecret") - if err != nil { - return nil, err - } - securityToken, err := extractString(body, "SecurityToken") - if err != nil { - return nil, err - } - - return credentials.NewStsTokenCredential(accessKeyID, accessKeySecret, securityToken), nil -} - -func get(url string) (status int, content []byte, err error) { - httpClient := http.DefaultClient - httpClient.Timeout = 1 * time.Second - resp, err := httpClient.Get(url) - if err != nil { - return - } - defer resp.Body.Close() - content, err = ioutil.ReadAll(resp.Body) - return resp.StatusCode, content, err -} - -func extractString(m map[string]interface{}, key string) (string, error) { - raw, ok := m[key] - if !ok { - return "", fmt.Errorf("%s not in map", key) - } - str, ok := raw.(string) - if !ok { - return "", fmt.Errorf("%s is not a string in map", key) - } - return str, nil -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/profile_credentials.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/profile_credentials.go deleted file mode 100644 index 146b97945..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/profile_credentials.go +++ /dev/null @@ -1,159 +0,0 @@ -package provider - -import ( - "bufio" - "errors" - "os" - "runtime" - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - - ini "gopkg.in/ini.v1" -) - -type ProfileProvider struct { - Profile string -} - -var ProviderProfile = NewProfileProvider() - -// NewProfileProvider receive zero or more parameters, -// when length of name is 0, the value of field Profile will be "default", -// and when there are multiple inputs, the function will take the -// first one and discard the other values. -func NewProfileProvider(name ...string) Provider { - p := new(ProfileProvider) - if len(name) == 0 { - p.Profile = "default" - } else { - p.Profile = name[0] - } - return p -} - -// Resolve implements the Provider interface -// when credential type is rsa_key_pair, the content of private_key file -// must be able to be parsed directly into the required string -// that NewRsaKeyPairCredential function needed -func (p *ProfileProvider) Resolve() (auth.Credential, error) { - path, ok := os.LookupEnv(ENVCredentialFile) - if !ok { - var err error - path, err = checkDefaultPath() - if err != nil { - return nil, err - } - if path == "" { - return nil, nil - } - } else if path == "" { - return nil, errors.New("Environment variable '" + ENVCredentialFile + "' cannot be empty") - } - - ini, err := ini.Load(path) - if err != nil { - return nil, errors.New("ERROR: Can not open file" + err.Error()) - } - - section, err := ini.GetSection(p.Profile) - if err != nil { - return nil, errors.New("ERROR: Can not load section" + err.Error()) - } - - value, err := section.GetKey("type") - if err != nil { - return nil, errors.New("ERROR: Can not find credential type" + err.Error()) - } - - switch value.String() { - case "access_key": - value1, err1 := section.GetKey("access_key_id") - value2, err2 := section.GetKey("access_key_secret") - if err1 != nil || err2 != nil { - return nil, errors.New("ERROR: Failed to get value") - } - if value1.String() == "" || value2.String() == "" { - return nil, errors.New("ERROR: Value can't be empty") - } - return credentials.NewAccessKeyCredential(value1.String(), value2.String()), nil - case "ecs_ram_role": - value1, err1 := section.GetKey("role_name") - if err1 != nil { - return nil, errors.New("ERROR: Failed to get value") - } - if value1.String() == "" { - return nil, errors.New("ERROR: Value can't be empty") - } - return credentials.NewEcsRamRoleCredential(value1.String()), nil - case "ram_role_arn": - value1, err1 := section.GetKey("access_key_id") - value2, err2 := section.GetKey("access_key_secret") - value3, err3 := section.GetKey("role_arn") - value4, err4 := section.GetKey("role_session_name") - if err1 != nil || err2 != nil || err3 != nil || err4 != nil { - return nil, errors.New("ERROR: Failed to get value") - } - if value1.String() == "" || value2.String() == "" || value3.String() == "" || value4.String() == "" { - return nil, errors.New("ERROR: Value can't be empty") - } - return credentials.NewRamRoleArnCredential(value1.String(), value2.String(), value3.String(), value4.String(), 3600), nil - case "rsa_key_pair": - value1, err1 := section.GetKey("public_key_id") - value2, err2 := section.GetKey("private_key_file") - if err1 != nil || err2 != nil { - return nil, errors.New("ERROR: Failed to get value") - } - if value1.String() == "" || value2.String() == "" { - return nil, errors.New("ERROR: Value can't be empty") - } - file, err := os.Open(value2.String()) - if err != nil { - return nil, errors.New("ERROR: Can not get private_key") - } - defer file.Close() - var privateKey string - scan := bufio.NewScanner(file) - var data string - for scan.Scan() { - if strings.HasPrefix(scan.Text(), "----") { - continue - } - data += scan.Text() + "\n" - } - return credentials.NewRsaKeyPairCredential(privateKey, value1.String(), 3600), nil - default: - return nil, errors.New("ERROR: Failed to get credential") - } -} - -// GetHomePath return home directory according to the system. -// if the environmental virables does not exist, will return empty -func GetHomePath() string { - if runtime.GOOS == "windows" { - path, ok := os.LookupEnv("USERPROFILE") - if !ok { - return "" - } - return path - } - path, ok := os.LookupEnv("HOME") - if !ok { - return "" - } - return path -} - -func checkDefaultPath() (path string, err error) { - path = GetHomePath() - if path == "" { - return "", errors.New("The default credential file path is invalid") - } - path = strings.Replace("~/.alibabacloud/credentials", "~", path, 1) - _, err = os.Stat(path) - if err != nil { - return "", nil - } - return path, nil -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider.go deleted file mode 100644 index ae4e168eb..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider.go +++ /dev/null @@ -1,19 +0,0 @@ -package provider - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" -) - -//Environmental virables that may be used by the provider -const ( - ENVAccessKeyID = "ALIBABA_CLOUD_ACCESS_KEY_ID" - ENVAccessKeySecret = "ALIBABA_CLOUD_ACCESS_KEY_SECRET" - ENVCredentialFile = "ALIBABA_CLOUD_CREDENTIALS_FILE" - ENVEcsMetadata = "ALIBABA_CLOUD_ECS_METADATA" - PATHCredentialFile = "~/.alibabacloud/credentials" -) - -// When you want to customize the provider, you only need to implement the method of the interface. -type Provider interface { - Resolve() (auth.Credential, error) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider_chain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider_chain.go deleted file mode 100644 index 3f9315d13..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider_chain.go +++ /dev/null @@ -1,34 +0,0 @@ -package provider - -import ( - "errors" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" -) - -type ProviderChain struct { - Providers []Provider -} - -var defaultproviders = []Provider{ProviderEnv, ProviderProfile, ProviderInstance} -var DefaultChain = NewProviderChain(defaultproviders) - -func NewProviderChain(providers []Provider) Provider { - return &ProviderChain{ - Providers: providers, - } -} - -func (p *ProviderChain) Resolve() (auth.Credential, error) { - for _, provider := range p.Providers { - creds, err := provider.Resolve() - if err != nil { - return nil, err - } else if err == nil && creds == nil { - continue - } - return creds, err - } - return nil, errors.New("No credential found") - -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/rsa_key_pair_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/rsa_key_pair_credential.go deleted file mode 100644 index 00d688eb8..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/rsa_key_pair_credential.go +++ /dev/null @@ -1,15 +0,0 @@ -package credentials - -type RsaKeyPairCredential struct { - PrivateKey string - PublicKeyId string - SessionExpiration int -} - -func NewRsaKeyPairCredential(privateKey, publicKeyId string, sessionExpiration int) *RsaKeyPairCredential { - return &RsaKeyPairCredential{ - PrivateKey: privateKey, - PublicKeyId: publicKeyId, - SessionExpiration: sessionExpiration, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_credential.go deleted file mode 100644 index 554431ff0..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_credential.go +++ /dev/null @@ -1,15 +0,0 @@ -package credentials - -type StsTokenCredential struct { - AccessKeyId string - AccessKeySecret string - AccessKeyStsToken string -} - -func NewStsTokenCredential(accessKeyId, accessKeySecret, accessKeyStsToken string) *StsTokenCredential { - return &StsTokenCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - AccessKeyStsToken: accessKeyStsToken, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go deleted file mode 100644 index 3507bdf9d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go +++ /dev/null @@ -1,62 +0,0 @@ -package credentials - -// Deprecated: Use RamRoleArnCredential in this package instead. -type StsRoleArnCredential struct { - AccessKeyId string - AccessKeySecret string - RoleArn string - RoleSessionName string - RoleSessionExpiration int -} - -type RamRoleArnCredential struct { - AccessKeyId string - AccessKeySecret string - RoleArn string - RoleSessionName string - RoleSessionExpiration int - Policy string - StsRegion string -} - -// Deprecated: Use RamRoleArnCredential in this package instead. -func NewStsRoleArnCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName string, roleSessionExpiration int) *StsRoleArnCredential { - return &StsRoleArnCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - RoleArn: roleArn, - RoleSessionName: roleSessionName, - RoleSessionExpiration: roleSessionExpiration, - } -} - -func (oldCred *StsRoleArnCredential) ToRamRoleArnCredential() *RamRoleArnCredential { - return &RamRoleArnCredential{ - AccessKeyId: oldCred.AccessKeyId, - AccessKeySecret: oldCred.AccessKeySecret, - RoleArn: oldCred.RoleArn, - RoleSessionName: oldCred.RoleSessionName, - RoleSessionExpiration: oldCred.RoleSessionExpiration, - } -} - -func NewRamRoleArnCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName string, roleSessionExpiration int) *RamRoleArnCredential { - return &RamRoleArnCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - RoleArn: roleArn, - RoleSessionName: roleSessionName, - RoleSessionExpiration: roleSessionExpiration, - } -} - -func NewRamRoleArnWithPolicyCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string, roleSessionExpiration int) *RamRoleArnCredential { - return &RamRoleArnCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - RoleArn: roleArn, - RoleSessionName: roleSessionName, - RoleSessionExpiration: roleSessionExpiration, - Policy: policy, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go deleted file mode 100644 index 9c55811d6..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go +++ /dev/null @@ -1,140 +0,0 @@ -/* - * 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. - */ - -package auth - -import ( - "bytes" - "sort" - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -var debug utils.Debug - -var hookGetDate = func(fn func() string) string { - return fn() -} - -func init() { - debug = utils.Init("sdk") -} - -func signRoaRequest(request requests.AcsRequest, signer Signer, regionId string) (err error) { - // 先获取 accesskey,确保刷新 credential - accessKeyId, err := signer.GetAccessKeyId() - if err != nil { - return err - } - - completeROASignParams(request, signer, regionId) - stringToSign := buildRoaStringToSign(request) - request.SetStringToSign(stringToSign) - - signature := signer.Sign(stringToSign, "") - request.GetHeaders()["Authorization"] = "acs " + accessKeyId + ":" + signature - - return -} - -func completeROASignParams(request requests.AcsRequest, signer Signer, regionId string) { - headerParams := request.GetHeaders() - - // complete query params - queryParams := request.GetQueryParams() - //if _, ok := queryParams["RegionId"]; !ok { - // queryParams["RegionId"] = regionId - //} - if extraParam := signer.GetExtraParam(); extraParam != nil { - for key, value := range extraParam { - if key == "SecurityToken" { - headerParams["x-acs-security-token"] = value - continue - } - if key == "BearerToken" { - headerParams["x-acs-bearer-token"] = value - continue - } - queryParams[key] = value - } - } - - // complete header params - headerParams["Date"] = hookGetDate(utils.GetTimeInFormatRFC2616) - headerParams["x-acs-signature-method"] = signer.GetName() - headerParams["x-acs-signature-version"] = signer.GetVersion() - if request.GetFormParams() != nil && len(request.GetFormParams()) > 0 { - formString := utils.GetUrlFormedMap(request.GetFormParams()) - request.SetContent([]byte(formString)) - if headerParams["Content-Type"] == "" { - headerParams["Content-Type"] = requests.Form - } - } - contentMD5 := utils.GetMD5Base64(request.GetContent()) - headerParams["Content-MD5"] = contentMD5 - if _, contains := headerParams["Content-Type"]; !contains { - headerParams["Content-Type"] = requests.Raw - } - switch format := request.GetAcceptFormat(); format { - case "JSON": - headerParams["Accept"] = requests.Json - case "XML": - headerParams["Accept"] = requests.Xml - default: - headerParams["Accept"] = requests.Raw - } -} - -func buildRoaStringToSign(request requests.AcsRequest) (stringToSign string) { - - headers := request.GetHeaders() - - stringToSignBuilder := bytes.Buffer{} - stringToSignBuilder.WriteString(request.GetMethod()) - stringToSignBuilder.WriteString(requests.HeaderSeparator) - - // append header keys for sign - appendIfContain(headers, &stringToSignBuilder, "Accept", requests.HeaderSeparator) - appendIfContain(headers, &stringToSignBuilder, "Content-MD5", requests.HeaderSeparator) - appendIfContain(headers, &stringToSignBuilder, "Content-Type", requests.HeaderSeparator) - appendIfContain(headers, &stringToSignBuilder, "Date", requests.HeaderSeparator) - - // sort and append headers witch starts with 'x-acs-' - var acsHeaders []string - for key := range headers { - if strings.HasPrefix(key, "x-acs-") { - acsHeaders = append(acsHeaders, key) - } - } - sort.Strings(acsHeaders) - for _, key := range acsHeaders { - stringToSignBuilder.WriteString(key + ":" + headers[key]) - stringToSignBuilder.WriteString(requests.HeaderSeparator) - } - - // append query params - stringToSignBuilder.WriteString(request.BuildQueries()) - stringToSign = stringToSignBuilder.String() - debug("stringToSign: %s", stringToSign) - return -} - -func appendIfContain(sourceMap map[string]string, target *bytes.Buffer, key, separator string) { - if value, contain := sourceMap[key]; contain && len(value) > 0 { - target.WriteString(sourceMap[key]) - target.WriteString(separator) - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go deleted file mode 100644 index 33967b9ef..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go +++ /dev/null @@ -1,94 +0,0 @@ -/* - * 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. - */ - -package auth - -import ( - "net/url" - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -var hookGetNonce = func(fn func() string) string { - return fn() -} - -func signRpcRequest(request requests.AcsRequest, signer Signer, regionId string) (err error) { - err = completeRpcSignParams(request, signer, regionId) - if err != nil { - return - } - // remove while retry - if _, containsSign := request.GetQueryParams()["Signature"]; containsSign { - delete(request.GetQueryParams(), "Signature") - } - stringToSign := buildRpcStringToSign(request) - request.SetStringToSign(stringToSign) - signature := signer.Sign(stringToSign, "&") - request.GetQueryParams()["Signature"] = signature - - return -} - -func completeRpcSignParams(request requests.AcsRequest, signer Signer, regionId string) (err error) { - queryParams := request.GetQueryParams() - queryParams["Version"] = request.GetVersion() - queryParams["Action"] = request.GetActionName() - queryParams["Format"] = request.GetAcceptFormat() - queryParams["Timestamp"] = hookGetDate(utils.GetTimeInFormatISO8601) - queryParams["SignatureMethod"] = signer.GetName() - queryParams["SignatureType"] = signer.GetType() - queryParams["SignatureVersion"] = signer.GetVersion() - queryParams["SignatureNonce"] = hookGetNonce(utils.GetUUID) - queryParams["AccessKeyId"], err = signer.GetAccessKeyId() - - if err != nil { - return - } - - if _, contains := queryParams["RegionId"]; !contains { - queryParams["RegionId"] = regionId - } - if extraParam := signer.GetExtraParam(); extraParam != nil { - for key, value := range extraParam { - queryParams[key] = value - } - } - - request.GetHeaders()["Content-Type"] = requests.Form - formString := utils.GetUrlFormedMap(request.GetFormParams()) - request.SetContent([]byte(formString)) - - return -} - -func buildRpcStringToSign(request requests.AcsRequest) (stringToSign string) { - signParams := make(map[string]string) - for key, value := range request.GetQueryParams() { - signParams[key] = value - } - for key, value := range request.GetFormParams() { - signParams[key] = value - } - - stringToSign = utils.GetUrlFormedMap(signParams) - stringToSign = strings.Replace(stringToSign, "+", "%20", -1) - stringToSign = strings.Replace(stringToSign, "*", "%2A", -1) - stringToSign = strings.Replace(stringToSign, "%7E", "~", -1) - stringToSign = url.QueryEscape(stringToSign) - stringToSign = request.GetMethod() + "&%2F&" + stringToSign - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signer.go deleted file mode 100644 index cbbc3cef7..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signer.go +++ /dev/null @@ -1,98 +0,0 @@ -/* - * 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. - */ - -package auth - -import ( - "fmt" - "reflect" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -type Signer interface { - GetName() string - GetType() string - GetVersion() string - GetAccessKeyId() (string, error) - GetExtraParam() map[string]string - Sign(stringToSign, secretSuffix string) string -} - -func NewSignerWithCredential(credential Credential, commonApi func(request *requests.CommonRequest, signer interface{}) (response *responses.CommonResponse, err error)) (signer Signer, err error) { - switch instance := credential.(type) { - case *credentials.AccessKeyCredential: - { - signer = signers.NewAccessKeySigner(instance) - } - case *credentials.StsTokenCredential: - { - signer = signers.NewStsTokenSigner(instance) - } - case *credentials.BearerTokenCredential: - { - signer = signers.NewBearerTokenSigner(instance) - } - case *credentials.RamRoleArnCredential: - { - signer, err = signers.NewRamRoleArnSigner(instance, commonApi) - } - case *credentials.RsaKeyPairCredential: - { - signer, err = signers.NewSignerKeyPair(instance, commonApi) - } - case *credentials.EcsRamRoleCredential: - { - signer = signers.NewEcsRamRoleSigner(instance, commonApi) - } - case *credentials.BaseCredential: // deprecated user interface - { - signer = signers.NewAccessKeySigner(instance.ToAccessKeyCredential()) - } - case *credentials.StsRoleArnCredential: // deprecated user interface - { - signer, err = signers.NewRamRoleArnSigner(instance.ToRamRoleArnCredential(), commonApi) - } - case *credentials.StsRoleNameOnEcsCredential: // deprecated user interface - { - signer = signers.NewEcsRamRoleSigner(instance.ToEcsRamRoleCredential(), commonApi) - } - default: - message := fmt.Sprintf(errors.UnsupportedCredentialErrorMessage, reflect.TypeOf(credential)) - err = errors.NewClientError(errors.UnsupportedCredentialErrorCode, message, nil) - } - return -} - -func Sign(request requests.AcsRequest, signer Signer, regionId string) (err error) { - switch request.GetStyle() { - case requests.ROA: - { - err = signRoaRequest(request, signer, regionId) - } - case requests.RPC: - { - err = signRpcRequest(request, signer, regionId) - } - default: - message := fmt.Sprintf(errors.UnknownRequestTypeErrorMessage, reflect.TypeOf(request)) - err = errors.NewClientError(errors.UnknownRequestTypeErrorCode, message, nil) - } - - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/algorithms.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/algorithms.go deleted file mode 100644 index 887f50209..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/algorithms.go +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -package signers - -import ( - "crypto" - "crypto/hmac" - "crypto/rand" - "crypto/rsa" - "crypto/sha1" - "crypto/x509" - "encoding/base64" -) - -func ShaHmac1(source, secret string) string { - key := []byte(secret) - hmac := hmac.New(sha1.New, key) - hmac.Write([]byte(source)) - signedBytes := hmac.Sum(nil) - signedString := base64.StdEncoding.EncodeToString(signedBytes) - return signedString -} - -func Sha256WithRsa(source, secret string) string { - // block, _ := pem.Decode([]byte(secret)) - decodeString, err := base64.StdEncoding.DecodeString(secret) - if err != nil { - panic(err) - } - private, err := x509.ParsePKCS8PrivateKey(decodeString) - if err != nil { - panic(err) - } - - h := crypto.Hash.New(crypto.SHA256) - h.Write([]byte(source)) - hashed := h.Sum(nil) - signature, err := rsa.SignPKCS1v15(rand.Reader, private.(*rsa.PrivateKey), - crypto.SHA256, hashed) - if err != nil { - panic(err) - } - - return base64.StdEncoding.EncodeToString(signature) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/credential_updater.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/credential_updater.go deleted file mode 100644 index ba291a41e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/credential_updater.go +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -package signers - -import ( - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -const defaultInAdvanceScale = 0.95 - -type credentialUpdater struct { - credentialExpiration int - lastUpdateTimestamp int64 - inAdvanceScale float64 - buildRequestMethod func() (*requests.CommonRequest, error) - responseCallBack func(response *responses.CommonResponse) error - refreshApi func(request *requests.CommonRequest) (response *responses.CommonResponse, err error) -} - -func (updater *credentialUpdater) needUpdateCredential() (result bool) { - if updater.inAdvanceScale == 0 { - updater.inAdvanceScale = defaultInAdvanceScale - } - return time.Now().Unix()-updater.lastUpdateTimestamp >= int64(float64(updater.credentialExpiration)*updater.inAdvanceScale) -} - -func (updater *credentialUpdater) updateCredential() (err error) { - request, err := updater.buildRequestMethod() - if err != nil { - return - } - response, err := updater.refreshApi(request) - if err != nil { - return - } - updater.lastUpdateTimestamp = time.Now().Unix() - err = updater.responseCallBack(response) - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/session_credential.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/session_credential.go deleted file mode 100644 index 99c624c88..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/session_credential.go +++ /dev/null @@ -1,7 +0,0 @@ -package signers - -type SessionCredential struct { - AccessKeyId string - AccessKeySecret string - StsToken string -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_access_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_access_key.go deleted file mode 100644 index bc4f35b85..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_access_key.go +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -package signers - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" -) - -type AccessKeySigner struct { - credential *credentials.AccessKeyCredential -} - -func (signer *AccessKeySigner) GetExtraParam() map[string]string { - return nil -} - -func NewAccessKeySigner(credential *credentials.AccessKeyCredential) *AccessKeySigner { - return &AccessKeySigner{ - credential: credential, - } -} - -func (*AccessKeySigner) GetName() string { - return "HMAC-SHA1" -} - -func (*AccessKeySigner) GetType() string { - return "" -} - -func (*AccessKeySigner) GetVersion() string { - return "1.0" -} - -func (signer *AccessKeySigner) GetAccessKeyId() (accessKeyId string, err error) { - return signer.credential.AccessKeyId, nil -} - -func (signer *AccessKeySigner) Sign(stringToSign, secretSuffix string) string { - secret := signer.credential.AccessKeySecret + secretSuffix - return ShaHmac1(stringToSign, secret) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_bearer_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_bearer_token.go deleted file mode 100644 index 75b78433a..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_bearer_token.go +++ /dev/null @@ -1,35 +0,0 @@ -package signers - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" -) - -type BearerTokenSigner struct { - credential *credentials.BearerTokenCredential -} - -func NewBearerTokenSigner(credential *credentials.BearerTokenCredential) *BearerTokenSigner { - return &BearerTokenSigner{ - credential: credential, - } -} - -func (signer *BearerTokenSigner) GetExtraParam() map[string]string { - return map[string]string{"BearerToken": signer.credential.BearerToken} -} - -func (*BearerTokenSigner) GetName() string { - return "" -} -func (*BearerTokenSigner) GetType() string { - return "BEARERTOKEN" -} -func (*BearerTokenSigner) GetVersion() string { - return "1.0" -} -func (signer *BearerTokenSigner) GetAccessKeyId() (accessKeyId string, err error) { - return "", nil -} -func (signer *BearerTokenSigner) Sign(stringToSign, secretSuffix string) string { - return "" -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ecs_ram_role.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ecs_ram_role.go deleted file mode 100644 index 73788429e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ecs_ram_role.go +++ /dev/null @@ -1,167 +0,0 @@ -/* - * 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. - */ - -package signers - -import ( - "encoding/json" - "fmt" - "net/http" - "strings" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" - jmespath "github.com/jmespath/go-jmespath" -) - -var securityCredURL = "http://100.100.100.200/latest/meta-data/ram/security-credentials/" - -type EcsRamRoleSigner struct { - *credentialUpdater - sessionCredential *SessionCredential - credential *credentials.EcsRamRoleCredential - commonApi func(request *requests.CommonRequest, signer interface{}) (response *responses.CommonResponse, err error) -} - -func NewEcsRamRoleSigner(credential *credentials.EcsRamRoleCredential, commonApi func(*requests.CommonRequest, interface{}) (response *responses.CommonResponse, err error)) (signer *EcsRamRoleSigner) { - signer = &EcsRamRoleSigner{ - credential: credential, - commonApi: commonApi, - } - - signer.credentialUpdater = &credentialUpdater{ - credentialExpiration: defaultDurationSeconds / 60, - buildRequestMethod: signer.buildCommonRequest, - responseCallBack: signer.refreshCredential, - refreshApi: signer.refreshApi, - } - - return signer -} - -func (*EcsRamRoleSigner) GetName() string { - return "HMAC-SHA1" -} - -func (*EcsRamRoleSigner) GetType() string { - return "" -} - -func (*EcsRamRoleSigner) GetVersion() string { - return "1.0" -} - -func (signer *EcsRamRoleSigner) GetAccessKeyId() (accessKeyId string, err error) { - if signer.sessionCredential == nil || signer.needUpdateCredential() { - err = signer.updateCredential() - if err != nil { - return - } - } - if signer.sessionCredential == nil || len(signer.sessionCredential.AccessKeyId) <= 0 { - return "", nil - } - return signer.sessionCredential.AccessKeyId, nil -} - -func (signer *EcsRamRoleSigner) GetExtraParam() map[string]string { - if signer.sessionCredential == nil { - return make(map[string]string) - } - if len(signer.sessionCredential.StsToken) <= 0 { - return make(map[string]string) - } - return map[string]string{"SecurityToken": signer.sessionCredential.StsToken} -} - -func (signer *EcsRamRoleSigner) Sign(stringToSign, secretSuffix string) string { - secret := signer.sessionCredential.AccessKeySecret + secretSuffix - return ShaHmac1(stringToSign, secret) -} - -func (signer *EcsRamRoleSigner) buildCommonRequest() (request *requests.CommonRequest, err error) { - return -} - -func (signer *EcsRamRoleSigner) refreshApi(request *requests.CommonRequest) (response *responses.CommonResponse, err error) { - requestUrl := securityCredURL + signer.credential.RoleName - httpRequest, err := http.NewRequest(requests.GET, requestUrl, strings.NewReader("")) - if err != nil { - err = fmt.Errorf("refresh Ecs sts token err: %s", err.Error()) - return - } - httpClient := &http.Client{} - httpResponse, err := httpClient.Do(httpRequest) - if err != nil { - err = fmt.Errorf("refresh Ecs sts token err: %s", err.Error()) - return - } - - response = responses.NewCommonResponse() - err = responses.Unmarshal(response, httpResponse, "") - return -} - -func (signer *EcsRamRoleSigner) refreshCredential(response *responses.CommonResponse) (err error) { - if response.GetHttpStatus() != http.StatusOK { - return fmt.Errorf("refresh Ecs sts token err, httpStatus: %d, message = %s", response.GetHttpStatus(), response.GetHttpContentString()) - } - var data interface{} - err = json.Unmarshal(response.GetHttpContentBytes(), &data) - if err != nil { - return fmt.Errorf("refresh Ecs sts token err, json.Unmarshal fail: %s", err.Error()) - } - code, err := jmespath.Search("Code", data) - if err != nil { - return fmt.Errorf("refresh Ecs sts token err, fail to get Code: %s", err.Error()) - } - if code.(string) != "Success" { - return fmt.Errorf("refresh Ecs sts token err, Code is not Success") - } - accessKeyId, err := jmespath.Search("AccessKeyId", data) - if err != nil { - return fmt.Errorf("refresh Ecs sts token err, fail to get AccessKeyId: %s", err.Error()) - } - accessKeySecret, err := jmespath.Search("AccessKeySecret", data) - if err != nil { - return fmt.Errorf("refresh Ecs sts token err, fail to get AccessKeySecret: %s", err.Error()) - } - securityToken, err := jmespath.Search("SecurityToken", data) - if err != nil { - return fmt.Errorf("refresh Ecs sts token err, fail to get SecurityToken: %s", err.Error()) - } - expiration, err := jmespath.Search("Expiration", data) - if err != nil { - return fmt.Errorf("refresh Ecs sts token err, fail to get Expiration: %s", err.Error()) - } - if accessKeyId == nil || accessKeySecret == nil || securityToken == nil || expiration == nil { - return - } - - expirationTime, err := time.Parse("2006-01-02T15:04:05Z", expiration.(string)) - signer.credentialExpiration = int(expirationTime.Unix() - time.Now().Unix()) - signer.sessionCredential = &SessionCredential{ - AccessKeyId: accessKeyId.(string), - AccessKeySecret: accessKeySecret.(string), - StsToken: securityToken.(string), - } - - return -} - -func (signer *EcsRamRoleSigner) GetSessionCredential() *SessionCredential { - return signer.sessionCredential -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_key_pair.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_key_pair.go deleted file mode 100644 index 19273d5a6..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_key_pair.go +++ /dev/null @@ -1,148 +0,0 @@ -/* - * 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. - */ - -package signers - -import ( - "encoding/json" - "fmt" - "net/http" - "strconv" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" - jmespath "github.com/jmespath/go-jmespath" -) - -type SignerKeyPair struct { - *credentialUpdater - sessionCredential *SessionCredential - credential *credentials.RsaKeyPairCredential - commonApi func(request *requests.CommonRequest, signer interface{}) (response *responses.CommonResponse, err error) -} - -func NewSignerKeyPair(credential *credentials.RsaKeyPairCredential, commonApi func(*requests.CommonRequest, interface{}) (response *responses.CommonResponse, err error)) (signer *SignerKeyPair, err error) { - signer = &SignerKeyPair{ - credential: credential, - commonApi: commonApi, - } - - signer.credentialUpdater = &credentialUpdater{ - credentialExpiration: credential.SessionExpiration, - buildRequestMethod: signer.buildCommonRequest, - responseCallBack: signer.refreshCredential, - refreshApi: signer.refreshApi, - } - - if credential.SessionExpiration > 0 { - if credential.SessionExpiration >= 900 && credential.SessionExpiration <= 3600 { - signer.credentialExpiration = credential.SessionExpiration - } else { - err = errors.NewClientError(errors.InvalidParamErrorCode, "Key Pair session duration should be in the range of 15min - 1Hr", nil) - } - } else { - signer.credentialExpiration = defaultDurationSeconds - } - return -} - -func (*SignerKeyPair) GetName() string { - return "HMAC-SHA1" -} - -func (*SignerKeyPair) GetType() string { - return "" -} - -func (*SignerKeyPair) GetVersion() string { - return "1.0" -} - -func (signer *SignerKeyPair) ensureCredential() error { - if signer.sessionCredential == nil || signer.needUpdateCredential() { - return signer.updateCredential() - } - return nil -} - -func (signer *SignerKeyPair) GetAccessKeyId() (accessKeyId string, err error) { - err = signer.ensureCredential() - if err != nil { - return - } - if signer.sessionCredential == nil || len(signer.sessionCredential.AccessKeyId) <= 0 { - accessKeyId = "" - return - } - - accessKeyId = signer.sessionCredential.AccessKeyId - return -} - -func (signer *SignerKeyPair) GetExtraParam() map[string]string { - return make(map[string]string) -} - -func (signer *SignerKeyPair) Sign(stringToSign, secretSuffix string) string { - secret := signer.sessionCredential.AccessKeySecret + secretSuffix - return ShaHmac1(stringToSign, secret) -} - -func (signer *SignerKeyPair) buildCommonRequest() (request *requests.CommonRequest, err error) { - request = requests.NewCommonRequest() - request.Product = "Sts" - request.Version = "2015-04-01" - request.ApiName = "GenerateSessionAccessKey" - request.Scheme = requests.HTTPS - request.SetDomain("sts.ap-northeast-1.aliyuncs.com") - request.QueryParams["PublicKeyId"] = signer.credential.PublicKeyId - request.QueryParams["DurationSeconds"] = strconv.Itoa(signer.credentialExpiration) - return -} - -func (signer *SignerKeyPair) refreshApi(request *requests.CommonRequest) (response *responses.CommonResponse, err error) { - signerV2 := NewSignerV2(signer.credential) - return signer.commonApi(request, signerV2) -} - -func (signer *SignerKeyPair) refreshCredential(response *responses.CommonResponse) (err error) { - if response.GetHttpStatus() != http.StatusOK { - message := "refresh session AccessKey failed" - err = errors.NewServerError(response.GetHttpStatus(), response.GetHttpContentString(), message) - return - } - var data interface{} - err = json.Unmarshal(response.GetHttpContentBytes(), &data) - if err != nil { - return fmt.Errorf("refresh KeyPair err, json.Unmarshal fail: %s", err.Error()) - } - accessKeyId, err := jmespath.Search("SessionAccessKey.SessionAccessKeyId", data) - if err != nil { - return fmt.Errorf("refresh KeyPair err, fail to get SessionAccessKeyId: %s", err.Error()) - } - accessKeySecret, err := jmespath.Search("SessionAccessKey.SessionAccessKeySecret", data) - if err != nil { - return fmt.Errorf("refresh KeyPair err, fail to get SessionAccessKeySecret: %s", err.Error()) - } - if accessKeyId == nil || accessKeySecret == nil { - return - } - signer.sessionCredential = &SessionCredential{ - AccessKeyId: accessKeyId.(string), - AccessKeySecret: accessKeySecret.(string), - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go deleted file mode 100644 index a01001bc1..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go +++ /dev/null @@ -1,180 +0,0 @@ -/* - * 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. - */ - -package signers - -import ( - "encoding/json" - "fmt" - "net/http" - "strconv" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" - jmespath "github.com/jmespath/go-jmespath" -) - -const ( - defaultDurationSeconds = 3600 -) - -type RamRoleArnSigner struct { - *credentialUpdater - roleSessionName string - sessionCredential *SessionCredential - credential *credentials.RamRoleArnCredential - commonApi func(request *requests.CommonRequest, signer interface{}) (response *responses.CommonResponse, err error) -} - -func NewRamRoleArnSigner(credential *credentials.RamRoleArnCredential, commonApi func(request *requests.CommonRequest, signer interface{}) (response *responses.CommonResponse, err error)) (signer *RamRoleArnSigner, err error) { - signer = &RamRoleArnSigner{ - credential: credential, - commonApi: commonApi, - } - - signer.credentialUpdater = &credentialUpdater{ - credentialExpiration: credential.RoleSessionExpiration, - buildRequestMethod: signer.buildCommonRequest, - responseCallBack: signer.refreshCredential, - refreshApi: signer.refreshApi, - } - - if len(credential.RoleSessionName) > 0 { - signer.roleSessionName = credential.RoleSessionName - } else { - signer.roleSessionName = "aliyun-go-sdk-" + strconv.FormatInt(time.Now().UnixNano()/1000, 10) - } - if credential.RoleSessionExpiration > 0 { - if credential.RoleSessionExpiration >= 900 && credential.RoleSessionExpiration <= 3600 { - signer.credentialExpiration = credential.RoleSessionExpiration - } else { - err = errors.NewClientError(errors.InvalidParamErrorCode, "Assume Role session duration should be in the range of 15min - 1Hr", nil) - } - } else { - signer.credentialExpiration = defaultDurationSeconds - } - return -} - -func (*RamRoleArnSigner) GetName() string { - return "HMAC-SHA1" -} - -func (*RamRoleArnSigner) GetType() string { - return "" -} - -func (*RamRoleArnSigner) GetVersion() string { - return "1.0" -} - -func (signer *RamRoleArnSigner) GetAccessKeyId() (accessKeyId string, err error) { - if signer.sessionCredential == nil || signer.needUpdateCredential() { - err = signer.updateCredential() - if err != nil { - return - } - } - - if signer.sessionCredential == nil || len(signer.sessionCredential.AccessKeyId) <= 0 { - return "", err - } - - return signer.sessionCredential.AccessKeyId, nil -} - -func (signer *RamRoleArnSigner) GetExtraParam() map[string]string { - if signer.sessionCredential == nil || signer.needUpdateCredential() { - signer.updateCredential() - } - if signer.sessionCredential == nil || len(signer.sessionCredential.StsToken) <= 0 { - return make(map[string]string) - } - return map[string]string{"SecurityToken": signer.sessionCredential.StsToken} -} - -func (signer *RamRoleArnSigner) Sign(stringToSign, secretSuffix string) string { - secret := signer.sessionCredential.AccessKeySecret + secretSuffix - return ShaHmac1(stringToSign, secret) -} - -func (signer *RamRoleArnSigner) buildCommonRequest() (request *requests.CommonRequest, err error) { - request = requests.NewCommonRequest() - if signer.credential.StsRegion != "" { - request.Domain = fmt.Sprintf("sts.%s.aliyuncs.com", signer.credential.StsRegion) - } else { - request.Domain = "sts.aliyuncs.com" - } - request.Product = "Sts" - request.Version = "2015-04-01" - request.ApiName = "AssumeRole" - request.Scheme = requests.HTTPS - request.QueryParams["RoleArn"] = signer.credential.RoleArn - if signer.credential.Policy != "" { - request.QueryParams["Policy"] = signer.credential.Policy - } - request.QueryParams["RoleSessionName"] = signer.credential.RoleSessionName - request.QueryParams["DurationSeconds"] = strconv.Itoa(signer.credentialExpiration) - return -} - -func (signer *RamRoleArnSigner) refreshApi(request *requests.CommonRequest) (response *responses.CommonResponse, err error) { - credential := &credentials.AccessKeyCredential{ - AccessKeyId: signer.credential.AccessKeyId, - AccessKeySecret: signer.credential.AccessKeySecret, - } - signerV1 := NewAccessKeySigner(credential) - return signer.commonApi(request, signerV1) -} - -func (signer *RamRoleArnSigner) refreshCredential(response *responses.CommonResponse) (err error) { - if response.GetHttpStatus() != http.StatusOK { - message := "refresh session token failed" - err = errors.NewServerError(response.GetHttpStatus(), response.GetHttpContentString(), message) - return - } - var data interface{} - err = json.Unmarshal(response.GetHttpContentBytes(), &data) - if err != nil { - return fmt.Errorf("refresh RoleArn sts token err, json.Unmarshal fail: %s", err.Error()) - } - accessKeyId, err := jmespath.Search("Credentials.AccessKeyId", data) - if err != nil { - return fmt.Errorf("refresh RoleArn sts token err, fail to get AccessKeyId: %s", err.Error()) - } - accessKeySecret, err := jmespath.Search("Credentials.AccessKeySecret", data) - if err != nil { - return fmt.Errorf("refresh RoleArn sts token err, fail to get AccessKeySecret: %s", err.Error()) - } - securityToken, err := jmespath.Search("Credentials.SecurityToken", data) - if err != nil { - return fmt.Errorf("refresh RoleArn sts token err, fail to get SecurityToken: %s", err.Error()) - } - if accessKeyId == nil || accessKeySecret == nil || securityToken == nil { - return - } - signer.sessionCredential = &SessionCredential{ - AccessKeyId: accessKeyId.(string), - AccessKeySecret: accessKeySecret.(string), - StsToken: securityToken.(string), - } - return -} - -func (signer *RamRoleArnSigner) GetSessionCredential() *SessionCredential { - return signer.sessionCredential -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_sts_token.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_sts_token.go deleted file mode 100644 index d0ce36c38..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_sts_token.go +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -package signers - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" -) - -type StsTokenSigner struct { - credential *credentials.StsTokenCredential -} - -func NewStsTokenSigner(credential *credentials.StsTokenCredential) *StsTokenSigner { - return &StsTokenSigner{ - credential: credential, - } -} - -func (*StsTokenSigner) GetName() string { - return "HMAC-SHA1" -} - -func (*StsTokenSigner) GetType() string { - return "" -} - -func (*StsTokenSigner) GetVersion() string { - return "1.0" -} - -func (signer *StsTokenSigner) GetAccessKeyId() (accessKeyId string, err error) { - return signer.credential.AccessKeyId, nil -} - -func (signer *StsTokenSigner) GetExtraParam() map[string]string { - return map[string]string{"SecurityToken": signer.credential.AccessKeyStsToken} -} - -func (signer *StsTokenSigner) Sign(stringToSign, secretSuffix string) string { - secret := signer.credential.AccessKeySecret + secretSuffix - return ShaHmac1(stringToSign, secret) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_v2.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_v2.go deleted file mode 100644 index 973485298..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_v2.go +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -package signers - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" -) - -type SignerV2 struct { - credential *credentials.RsaKeyPairCredential -} - -func (signer *SignerV2) GetExtraParam() map[string]string { - return nil -} - -func NewSignerV2(credential *credentials.RsaKeyPairCredential) *SignerV2 { - return &SignerV2{ - credential: credential, - } -} - -func (*SignerV2) GetName() string { - return "SHA256withRSA" -} - -func (*SignerV2) GetType() string { - return "PRIVATEKEY" -} - -func (*SignerV2) GetVersion() string { - return "1.0" -} - -func (signer *SignerV2) GetAccessKeyId() (accessKeyId string, err error) { - return signer.credential.PublicKeyId, err -} - -func (signer *SignerV2) Sign(stringToSign, secretSuffix string) string { - secret := signer.credential.PrivateKey - return Sha256WithRsa(stringToSign, secret) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go deleted file mode 100644 index 56376b584..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go +++ /dev/null @@ -1,852 +0,0 @@ -/* - * 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. - */ - -package sdk - -import ( - "context" - "crypto/tls" - "fmt" - "net" - "net/http" - "net/url" - "os" - "reflect" - "regexp" - "runtime" - "strconv" - "strings" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -var debug utils.Debug - -func init() { - debug = utils.Init("sdk") -} - -// Version this value will be replaced while build: -ldflags="-X sdk.version=x.x.x" -var Version = "0.0.1" -var defaultConnectTimeout = 5 * time.Second -var defaultReadTimeout = 10 * time.Second - -var DefaultUserAgent = fmt.Sprintf("AlibabaCloud (%s; %s) Golang/%s Core/%s", runtime.GOOS, runtime.GOARCH, strings.Trim(runtime.Version(), "go"), Version) - -var hookDo = func(fn func(req *http.Request) (*http.Response, error)) func(req *http.Request) (*http.Response, error) { - return fn -} - -// Client the type Client -type Client struct { - SourceIp string - SecureTransport string - isInsecure bool - regionId string - config *Config - httpProxy string - httpsProxy string - noProxy string - logger *Logger - userAgent map[string]string - signer auth.Signer - httpClient *http.Client - asyncTaskQueue chan func() - readTimeout time.Duration - connectTimeout time.Duration - EndpointMap map[string]string - EndpointType string - Network string - Domain string - isOpenAsync bool -} - -func (client *Client) Init() (err error) { - panic("not support yet") -} - -func (client *Client) SetEndpointRules(endpointMap map[string]string, endpointType string, netWork string) { - client.EndpointMap = endpointMap - client.Network = netWork - client.EndpointType = endpointType -} - -func (client *Client) SetHTTPSInsecure(isInsecure bool) { - client.isInsecure = isInsecure -} - -func (client *Client) GetHTTPSInsecure() bool { - return client.isInsecure -} - -func (client *Client) SetHttpsProxy(httpsProxy string) { - client.httpsProxy = httpsProxy -} - -func (client *Client) GetHttpsProxy() string { - return client.httpsProxy -} - -func (client *Client) SetHttpProxy(httpProxy string) { - client.httpProxy = httpProxy -} - -func (client *Client) GetHttpProxy() string { - return client.httpProxy -} - -func (client *Client) SetNoProxy(noProxy string) { - client.noProxy = noProxy -} - -func (client *Client) GetNoProxy() string { - return client.noProxy -} - -func (client *Client) SetTransport(transport http.RoundTripper) { - if client.httpClient == nil { - client.httpClient = &http.Client{} - } - client.httpClient.Transport = transport -} - -// InitWithProviderChain will get credential from the providerChain, -// the RsaKeyPairCredential Only applicable to regionID `ap-northeast-1`, -// if your providerChain may return a credential type with RsaKeyPairCredential, -// please ensure your regionID is `ap-northeast-1`. -func (client *Client) InitWithProviderChain(regionId string, provider provider.Provider) (err error) { - config := client.InitClientConfig() - credential, err := provider.Resolve() - if err != nil { - return - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithOptions(regionId string, config *Config, credential auth.Credential) (err error) { - if regionId != "" { - match, _ := regexp.MatchString("^[a-zA-Z0-9_-]+$", regionId) - if !match { - return fmt.Errorf("regionId contains invalid characters") - } - } - - client.regionId = regionId - client.config = config - client.httpClient = &http.Client{} - - if config.Transport != nil { - client.httpClient.Transport = config.Transport - } else if config.HttpTransport != nil { - client.httpClient.Transport = config.HttpTransport - } - - if config.Timeout > 0 { - client.httpClient.Timeout = config.Timeout - } - - if config.EnableAsync { - client.EnableAsync(config.GoRoutinePoolSize, config.MaxTaskQueueSize) - } - - client.signer, err = auth.NewSignerWithCredential(credential, client.ProcessCommonRequestWithSigner) - - return -} - -func (client *Client) SetReadTimeout(readTimeout time.Duration) { - client.readTimeout = readTimeout -} - -func (client *Client) SetConnectTimeout(connectTimeout time.Duration) { - client.connectTimeout = connectTimeout -} - -func (client *Client) GetReadTimeout() time.Duration { - return client.readTimeout -} - -func (client *Client) GetConnectTimeout() time.Duration { - return client.connectTimeout -} - -func (client *Client) getHttpProxy(scheme string) (proxy *url.URL, err error) { - if scheme == "https" { - if client.GetHttpsProxy() != "" { - proxy, err = url.Parse(client.httpsProxy) - } else if rawurl := os.Getenv("HTTPS_PROXY"); rawurl != "" { - proxy, err = url.Parse(rawurl) - } else if rawurl := os.Getenv("https_proxy"); rawurl != "" { - proxy, err = url.Parse(rawurl) - } - } else { - if client.GetHttpProxy() != "" { - proxy, err = url.Parse(client.httpProxy) - } else if rawurl := os.Getenv("HTTP_PROXY"); rawurl != "" { - proxy, err = url.Parse(rawurl) - } else if rawurl := os.Getenv("http_proxy"); rawurl != "" { - proxy, err = url.Parse(rawurl) - } - } - - return proxy, err -} - -func (client *Client) getNoProxy(scheme string) []string { - var urls []string - if client.GetNoProxy() != "" { - urls = strings.Split(client.noProxy, ",") - } else if rawurl := os.Getenv("NO_PROXY"); rawurl != "" { - urls = strings.Split(rawurl, ",") - } else if rawurl := os.Getenv("no_proxy"); rawurl != "" { - urls = strings.Split(rawurl, ",") - } - - return urls -} - -// EnableAsync enable the async task queue -func (client *Client) EnableAsync(routinePoolSize, maxTaskQueueSize int) { - if client.isOpenAsync { - fmt.Println("warning: Please not call EnableAsync repeatedly") - return - } - client.isOpenAsync = true - client.asyncTaskQueue = make(chan func(), maxTaskQueueSize) - for i := 0; i < routinePoolSize; i++ { - go func() { - for { - task, notClosed := <-client.asyncTaskQueue - if !notClosed { - return - } else { - task() - } - } - }() - } -} - -func (client *Client) InitWithAccessKey(regionId, accessKeyId, accessKeySecret string) (err error) { - config := client.InitClientConfig() - credential := &credentials.AccessKeyCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithStsToken(regionId, accessKeyId, accessKeySecret, securityToken string) (err error) { - config := client.InitClientConfig() - credential := &credentials.StsTokenCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - AccessKeyStsToken: securityToken, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (err error) { - config := client.InitClientConfig() - credential := &credentials.RamRoleArnCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - RoleArn: roleArn, - RoleSessionName: roleSessionName, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (err error) { - config := client.InitClientConfig() - credential := &credentials.RamRoleArnCredential{ - AccessKeyId: accessKeyId, - AccessKeySecret: accessKeySecret, - RoleArn: roleArn, - RoleSessionName: roleSessionName, - Policy: policy, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithRsaKeyPair(regionId, publicKeyId, privateKey string, sessionExpiration int) (err error) { - config := client.InitClientConfig() - credential := &credentials.RsaKeyPairCredential{ - PrivateKey: privateKey, - PublicKeyId: publicKeyId, - SessionExpiration: sessionExpiration, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithEcsRamRole(regionId, roleName string) (err error) { - config := client.InitClientConfig() - credential := &credentials.EcsRamRoleCredential{ - RoleName: roleName, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitWithBearerToken(regionId, bearerToken string) (err error) { - config := client.InitClientConfig() - credential := &credentials.BearerTokenCredential{ - BearerToken: bearerToken, - } - return client.InitWithOptions(regionId, config, credential) -} - -func (client *Client) InitClientConfig() (config *Config) { - if client.config != nil { - return client.config - } else { - return NewConfig() - } -} - -func (client *Client) DoAction(request requests.AcsRequest, response responses.AcsResponse) (err error) { - if (client.SecureTransport == "false" || client.SecureTransport == "true") && client.SourceIp != "" { - t := reflect.TypeOf(request).Elem() - v := reflect.ValueOf(request).Elem() - for i := 0; i < t.NumField(); i++ { - value := v.FieldByName(t.Field(i).Name) - if t.Field(i).Name == "requests.RoaRequest" { - request.GetHeaders()["x-acs-proxy-source-ip"] = client.SourceIp - request.GetHeaders()["x-acs-proxy-secure-transport"] = client.SecureTransport - return client.DoActionWithSigner(request, response, nil) - } else if t.Field(i).Name == "PathPattern" && !value.IsZero() { - request.GetHeaders()["x-acs-proxy-source-ip"] = client.SourceIp - request.GetHeaders()["x-acs-proxy-secure-transport"] = client.SecureTransport - return client.DoActionWithSigner(request, response, nil) - } else if i == t.NumField()-1 { - request.GetQueryParams()["SourceIp"] = client.SourceIp - request.GetQueryParams()["SecureTransport"] = client.SecureTransport - return client.DoActionWithSigner(request, response, nil) - } - } - } - return client.DoActionWithSigner(request, response, nil) -} -func (client *Client) GetEndpointRules(regionId string, product string) (endpointRaw string, err error) { - if client.EndpointType == "regional" { - if regionId == "" { - err = fmt.Errorf("RegionId is empty, please set a valid RegionId.") - return "", err - } - endpointRaw = strings.Replace("..aliyuncs.com", "", regionId, 1) - } else { - endpointRaw = ".aliyuncs.com" - } - endpointRaw = strings.Replace(endpointRaw, "", strings.ToLower(product), 1) - if client.Network == "" || client.Network == "public" { - endpointRaw = strings.Replace(endpointRaw, "", "", 1) - } else { - endpointRaw = strings.Replace(endpointRaw, "", "-"+client.Network, 1) - } - return endpointRaw, nil -} - -func (client *Client) buildRequestWithSigner(request requests.AcsRequest, signer auth.Signer) (httpRequest *http.Request, err error) { - // add clientVersion - request.GetHeaders()["x-sdk-core-version"] = Version - - regionId := client.regionId - if len(request.GetRegionId()) > 0 { - regionId = request.GetRegionId() - } - - // resolve endpoint - endpoint := request.GetDomain() - - if endpoint == "" && client.Domain != "" { - endpoint = client.Domain - } - - if endpoint == "" { - endpoint = endpoints.GetEndpointFromMap(regionId, request.GetProduct()) - } - - if endpoint == "" && client.EndpointType != "" && - (request.GetProduct() != "Sts" || len(request.GetQueryParams()) == 0) { - if client.EndpointMap != nil && client.Network == "" || client.Network == "public" { - endpoint = client.EndpointMap[regionId] - } - - if endpoint == "" { - endpoint, err = client.GetEndpointRules(regionId, request.GetProduct()) - if err != nil { - return - } - } - } - - if endpoint == "" { - resolveParam := &endpoints.ResolveParam{ - Domain: request.GetDomain(), - Product: request.GetProduct(), - RegionId: regionId, - LocationProduct: request.GetLocationServiceCode(), - LocationEndpointType: request.GetLocationEndpointType(), - CommonApi: client.ProcessCommonRequest, - } - endpoint, err = endpoints.Resolve(resolveParam) - if err != nil { - return - } - } - - request.SetDomain(endpoint) - if request.GetScheme() == "" { - request.SetScheme(client.config.Scheme) - } - // init request params - err = requests.InitParams(request) - if err != nil { - return - } - - // signature - var finalSigner auth.Signer - if signer != nil { - finalSigner = signer - } else { - finalSigner = client.signer - } - httpRequest, err = buildHttpRequest(request, finalSigner, regionId) - if err == nil { - userAgent := DefaultUserAgent + getSendUserAgent(client.config.UserAgent, client.userAgent, request.GetUserAgent()) - httpRequest.Header.Set("User-Agent", userAgent) - } - - return -} - -func getSendUserAgent(configUserAgent string, clientUserAgent, requestUserAgent map[string]string) string { - realUserAgent := "" - for key1, value1 := range clientUserAgent { - for key2 := range requestUserAgent { - if key1 == key2 { - key1 = "" - } - } - if key1 != "" { - realUserAgent += fmt.Sprintf(" %s/%s", key1, value1) - - } - } - for key, value := range requestUserAgent { - realUserAgent += fmt.Sprintf(" %s/%s", key, value) - } - if configUserAgent != "" { - return realUserAgent + fmt.Sprintf(" Extra/%s", configUserAgent) - } - return realUserAgent -} - -func (client *Client) AppendUserAgent(key, value string) { - newkey := true - - if client.userAgent == nil { - client.userAgent = make(map[string]string) - } - if strings.ToLower(key) != "core" && strings.ToLower(key) != "go" { - for tag := range client.userAgent { - if tag == key { - client.userAgent[tag] = value - newkey = false - } - } - if newkey { - client.userAgent[key] = value - } - } -} - -func (client *Client) BuildRequestWithSigner(request requests.AcsRequest, signer auth.Signer) (err error) { - _, err = client.buildRequestWithSigner(request, signer) - return -} - -func (client *Client) getTimeout(request requests.AcsRequest) (time.Duration, time.Duration) { - readTimeout := defaultReadTimeout - connectTimeout := defaultConnectTimeout - - reqReadTimeout := request.GetReadTimeout() - reqConnectTimeout := request.GetConnectTimeout() - if reqReadTimeout != 0*time.Millisecond { - readTimeout = reqReadTimeout - } else if client.readTimeout != 0*time.Millisecond { - readTimeout = client.readTimeout - } else if client.httpClient.Timeout != 0 { - readTimeout = client.httpClient.Timeout - } else if timeout, ok := getAPIMaxTimeout(request.GetProduct(), request.GetActionName()); ok { - readTimeout = timeout - } - - if reqConnectTimeout != 0*time.Millisecond { - connectTimeout = reqConnectTimeout - } else if client.connectTimeout != 0*time.Millisecond { - connectTimeout = client.connectTimeout - } - return readTimeout, connectTimeout -} - -func Timeout(connectTimeout time.Duration) func(cxt context.Context, net, addr string) (c net.Conn, err error) { - return func(ctx context.Context, network, address string) (net.Conn, error) { - return (&net.Dialer{ - Timeout: connectTimeout, - DualStack: true, - }).DialContext(ctx, network, address) - } -} - -func (client *Client) setTimeout(request requests.AcsRequest) { - readTimeout, connectTimeout := client.getTimeout(request) - client.httpClient.Timeout = readTimeout - if trans, ok := client.httpClient.Transport.(*http.Transport); ok && trans != nil { - trans.DialContext = Timeout(connectTimeout) - client.httpClient.Transport = trans - } else if client.httpClient.Transport == nil { - client.httpClient.Transport = &http.Transport{ - DialContext: Timeout(connectTimeout), - } - } -} - -func (client *Client) getHTTPSInsecure(request requests.AcsRequest) (insecure bool) { - if request.GetHTTPSInsecure() != nil { - insecure = *request.GetHTTPSInsecure() - } else { - insecure = client.GetHTTPSInsecure() - } - return insecure -} - -func (client *Client) DoActionWithSigner(request requests.AcsRequest, response responses.AcsResponse, signer auth.Signer) (err error) { - if client.Network != "" { - match, _ := regexp.MatchString("^[a-zA-Z0-9_-]+$", client.Network) - if !match { - return fmt.Errorf("netWork contains invalid characters") - } - } - fieldMap := make(map[string]string) - initLogMsg(fieldMap) - defer func() { - client.printLog(fieldMap, err) - }() - httpRequest, err := client.buildRequestWithSigner(request, signer) - if err != nil { - return - } - - client.setTimeout(request) - proxy, err := client.getHttpProxy(httpRequest.URL.Scheme) - if err != nil { - return err - } - - noProxy := client.getNoProxy(httpRequest.URL.Scheme) - - var flag bool - for _, value := range noProxy { - if strings.HasPrefix(value, "*") { - value = fmt.Sprintf(".%s", value) - } - noProxyReg, err := regexp.Compile(value) - if err != nil { - return err - } - if noProxyReg.MatchString(httpRequest.Host) { - flag = true - break - } - } - - // Set whether to ignore certificate validation. - // Default InsecureSkipVerify is false. - if trans, ok := client.httpClient.Transport.(*http.Transport); ok && trans != nil { - if trans.TLSClientConfig != nil { - trans.TLSClientConfig.InsecureSkipVerify = client.getHTTPSInsecure(request) - } else { - trans.TLSClientConfig = &tls.Config{ - InsecureSkipVerify: client.getHTTPSInsecure(request), - } - } - if proxy != nil && !flag { - trans.Proxy = http.ProxyURL(proxy) - } - client.httpClient.Transport = trans - } - - var httpResponse *http.Response - for retryTimes := 0; retryTimes <= client.config.MaxRetryTime; retryTimes++ { - if proxy != nil && proxy.User != nil { - if password, passwordSet := proxy.User.Password(); passwordSet { - httpRequest.SetBasicAuth(proxy.User.Username(), password) - } - } - if retryTimes > 0 { - client.printLog(fieldMap, err) - initLogMsg(fieldMap) - } - putMsgToMap(fieldMap, httpRequest) - debug("> %s %s %s", httpRequest.Method, httpRequest.URL.RequestURI(), httpRequest.Proto) - debug("> Host: %s", httpRequest.Host) - for key, value := range httpRequest.Header { - debug("> %s: %v", key, strings.Join(value, "")) - } - debug(">") - debug(" Retry Times: %d.", retryTimes) - - startTime := time.Now() - fieldMap["{start_time}"] = startTime.Format("2006-01-02 15:04:05") - httpResponse, err = hookDo(client.httpClient.Do)(httpRequest) - fieldMap["{cost}"] = time.Since(startTime).String() - if err == nil { - fieldMap["{code}"] = strconv.Itoa(httpResponse.StatusCode) - fieldMap["{res_headers}"] = TransToString(httpResponse.Header) - debug("< %s %s", httpResponse.Proto, httpResponse.Status) - for key, value := range httpResponse.Header { - debug("< %s: %v", key, strings.Join(value, "")) - } - } - debug("<") - // receive error - if err != nil { - debug(" Error: %s.", err.Error()) - if !client.config.AutoRetry { - return - } else if retryTimes >= client.config.MaxRetryTime { - // timeout but reached the max retry times, return - times := strconv.Itoa(retryTimes + 1) - timeoutErrorMsg := fmt.Sprintf(errors.TimeoutErrorMessage, times, times) - if strings.Contains(err.Error(), "Client.Timeout") { - timeoutErrorMsg += " Read timeout. Please set a valid ReadTimeout." - } else { - timeoutErrorMsg += " Connect timeout. Please set a valid ConnectTimeout." - } - err = errors.NewClientError(errors.TimeoutErrorCode, timeoutErrorMsg, err) - return - } - } - if isCertificateError(err) { - return - } - - // if status code >= 500 or timeout, will trigger retry - if client.config.AutoRetry && (err != nil || isServerError(httpResponse)) { - client.setTimeout(request) - // rewrite signatureNonce and signature - httpRequest, err = client.buildRequestWithSigner(request, signer) - // buildHttpRequest(request, finalSigner, regionId) - if err != nil { - return - } - continue - } - break - } - - err = responses.Unmarshal(response, httpResponse, request.GetAcceptFormat()) - fieldMap["{res_body}"] = response.GetHttpContentString() - debug("%s", response.GetHttpContentString()) - // wrap server errors - if serverErr, ok := err.(*errors.ServerError); ok { - var wrapInfo = map[string]string{} - wrapInfo["StringToSign"] = request.GetStringToSign() - err = errors.WrapServerError(serverErr, wrapInfo) - } - return -} - -func isCertificateError(err error) bool { - if err != nil && strings.Contains(err.Error(), "x509: certificate signed by unknown authority") { - return true - } - return false -} - -func putMsgToMap(fieldMap map[string]string, request *http.Request) { - fieldMap["{host}"] = request.Host - fieldMap["{method}"] = request.Method - fieldMap["{uri}"] = request.URL.RequestURI() - fieldMap["{pid}"] = strconv.Itoa(os.Getpid()) - fieldMap["{version}"] = strings.Split(request.Proto, "/")[1] - hostname, _ := os.Hostname() - fieldMap["{hostname}"] = hostname - fieldMap["{req_headers}"] = TransToString(request.Header) - fieldMap["{target}"] = request.URL.Path + request.URL.RawQuery -} - -func buildHttpRequest(request requests.AcsRequest, singer auth.Signer, regionId string) (httpRequest *http.Request, err error) { - err = auth.Sign(request, singer, regionId) - if err != nil { - return - } - requestMethod := request.GetMethod() - requestUrl := request.BuildUrl() - body := request.GetBodyReader() - httpRequest, err = http.NewRequest(requestMethod, requestUrl, body) - if err != nil { - return - } - for key, value := range request.GetHeaders() { - httpRequest.Header[key] = []string{value} - } - // host is a special case - if host, containsHost := request.GetHeaders()["Host"]; containsHost { - httpRequest.Host = host - } - return -} - -func isServerError(httpResponse *http.Response) bool { - return httpResponse.StatusCode >= http.StatusInternalServerError -} - -/** -only block when any one of the following occurs: -1. the asyncTaskQueue is full, increase the queue size to avoid this -2. Shutdown() in progressing, the client is being closed -**/ -func (client *Client) AddAsyncTask(task func()) (err error) { - if client.asyncTaskQueue != nil { - if client.isOpenAsync { - client.asyncTaskQueue <- task - } - } else { - err = errors.NewClientError(errors.AsyncFunctionNotEnabledCode, errors.AsyncFunctionNotEnabledMessage, nil) - } - return -} - -func (client *Client) GetConfig() *Config { - return client.config -} - -func (client *Client) GetSigner() auth.Signer { - return client.signer -} - -func (client *Client) SetSigner(signer auth.Signer) { - client.signer = signer -} - -func NewClient() (client *Client, err error) { - client = &Client{} - err = client.Init() - return -} - -func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) { - client = &Client{} - var pc provider.Provider - if len(providers) == 0 { - pc = provider.DefaultChain - } else { - pc = provider.NewProviderChain(providers) - } - err = client.InitWithProviderChain(regionId, pc) - return -} - -func NewClientWithOptions(regionId string, config *Config, credential auth.Credential) (client *Client, err error) { - client = &Client{} - err = client.InitWithOptions(regionId, config, credential) - return -} - -func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { - client = &Client{} - err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) - return -} - -func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { - client = &Client{} - err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) - return -} - -func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { - client = &Client{} - err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) - return -} - -func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) { - client = &Client{} - err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy) - return -} - -func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { - client = &Client{} - err = client.InitWithEcsRamRole(regionId, roleName) - return -} - -func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { - client = &Client{} - err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) - return -} - -func NewClientWithBearerToken(regionId, bearerToken string) (client *Client, err error) { - client = &Client{} - err = client.InitWithBearerToken(regionId, bearerToken) - return -} - -func (client *Client) ProcessCommonRequest(request *requests.CommonRequest) (response *responses.CommonResponse, err error) { - request.TransToAcsRequest() - response = responses.NewCommonResponse() - err = client.DoAction(request, response) - return -} - -func (client *Client) ProcessCommonRequestWithSigner(request *requests.CommonRequest, signerInterface interface{}) (response *responses.CommonResponse, err error) { - if signer, isSigner := signerInterface.(auth.Signer); isSigner { - request.TransToAcsRequest() - response = responses.NewCommonResponse() - err = client.DoActionWithSigner(request, response, signer) - return - } - panic("should not be here") -} - -func (client *Client) Shutdown() { - if client.asyncTaskQueue != nil { - close(client.asyncTaskQueue) - } - - client.isOpenAsync = false -} - -// Deprecated: Use NewClientWithRamRoleArn in this package instead. -func NewClientWithStsRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { - return NewClientWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) -} - -// Deprecated: Use NewClientWithEcsRamRole in this package instead. -func NewClientWithStsRoleNameOnEcs(regionId string, roleName string) (client *Client, err error) { - return NewClientWithEcsRamRole(regionId, roleName) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go deleted file mode 100644 index 29b7cc35b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go +++ /dev/null @@ -1,92 +0,0 @@ -/* - * 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. - */ - -package sdk - -import ( - "net/http" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -type Config struct { - AutoRetry bool `default:"false"` - MaxRetryTime int `default:"3"` - UserAgent string `default:""` - Debug bool `default:"false"` - HttpTransport *http.Transport `default:""` - Transport http.RoundTripper `default:""` - EnableAsync bool `default:"false"` - MaxTaskQueueSize int `default:"1000"` - GoRoutinePoolSize int `default:"5"` - Scheme string `default:"HTTP"` - Timeout time.Duration -} - -func NewConfig() (config *Config) { - config = &Config{} - utils.InitStructWithDefaultTag(config) - return -} - -func (c *Config) WithAutoRetry(isAutoRetry bool) *Config { - c.AutoRetry = isAutoRetry - return c -} - -func (c *Config) WithMaxRetryTime(maxRetryTime int) *Config { - c.MaxRetryTime = maxRetryTime - return c -} - -func (c *Config) WithUserAgent(userAgent string) *Config { - c.UserAgent = userAgent - return c -} - -func (c *Config) WithDebug(isDebug bool) *Config { - c.Debug = isDebug - return c -} - -func (c *Config) WithTimeout(timeout time.Duration) *Config { - c.Timeout = timeout - return c -} - -func (c *Config) WithHttpTransport(httpTransport *http.Transport) *Config { - c.HttpTransport = httpTransport - return c -} - -func (c *Config) WithEnableAsync(isEnableAsync bool) *Config { - c.EnableAsync = isEnableAsync - return c -} - -func (c *Config) WithMaxTaskQueueSize(maxTaskQueueSize int) *Config { - c.MaxTaskQueueSize = maxTaskQueueSize - return c -} - -func (c *Config) WithGoRoutinePoolSize(goRoutinePoolSize int) *Config { - c.GoRoutinePoolSize = goRoutinePoolSize - return c -} - -func (c *Config) WithScheme(scheme string) *Config { - c.Scheme = scheme - return c -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go deleted file mode 100644 index 8ee0ec53f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go +++ /dev/null @@ -1,4078 +0,0 @@ -package endpoints - -import ( - "encoding/json" - "fmt" - "sync" -) - -const endpointsJson = `{ - "products": [ - { - "code": "emr", - "document_id": "28140", - "location_service_code": "emr", - "regional_endpoints": [ - { - "region": "cn-qingdao", - "endpoint": "emr.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "emr.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "emr.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "emr.eu-west-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "emr.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "emr.me-east-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "emr.ap-northeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "emr.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "emr.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "emr.ap-south-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "emr.us-east-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "emr.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "emr.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "emr.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "emr.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "emr.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "emr.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "emr.ap-southeast-5.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "emr.aliyuncs.com" - } - ], - "global_endpoint": "emr.aliyuncs.com", - "regional_endpoint_pattern": "emr.[RegionId].aliyuncs.com" - }, - { - "code": "petadata", - "document_id": "", - "location_service_code": "petadata", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "petadata.me-east-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "petadata.ap-southeast-2.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "petadata.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "petadata.ap-southeast-5.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "petadata.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "petadata.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "petadata.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "petadata.aliyuncs.com" - } - ], - "global_endpoint": "petadata.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "dbs", - "document_id": "", - "location_service_code": "dbs", - "regional_endpoints": [ - { - "region": "cn-shenzhen", - "endpoint": "dbs-api.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "dbs-api.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "dbs-api.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "dbs-api.ap-northeast-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "dbs-api.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "dbs-api.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "dbs-api.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "dbs-api.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "alidnsgtm", - "document_id": "", - "location_service_code": "alidnsgtm", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "alidns.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "alidns.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "elasticsearch", - "document_id": "", - "location_service_code": "elasticsearch", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "elasticsearch.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "elasticsearch.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "elasticsearch.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "elasticsearch.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "elasticsearch.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "elasticsearch.ap-southeast-3.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "elasticsearch.us-west-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "elasticsearch.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "elasticsearch.ap-southeast-5.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "elasticsearch.eu-central-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "elasticsearch.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "elasticsearch.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "elasticsearch.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "elasticsearch.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "elasticsearch.ap-northeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "baas", - "document_id": "", - "location_service_code": "baas", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "baas.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "baas.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "baas.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "baas.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "baas.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "baas.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cr", - "document_id": "60716", - "location_service_code": "cr", - "regional_endpoints": null, - "global_endpoint": "cr.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "cloudap", - "document_id": "", - "location_service_code": "cloudap", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "cloudwf.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "imagesearch", - "document_id": "", - "location_service_code": "imagesearch", - "regional_endpoints": [ - { - "region": "ap-southeast-2", - "endpoint": "imagesearch.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "imagesearch.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "imagesearch.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "imagesearch.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "pts", - "document_id": "", - "location_service_code": "pts", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "pts.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ehs", - "document_id": "", - "location_service_code": "ehs", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "ehpc.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "ehpc.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "ehpc.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "ehpc.cn-qingdao.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "ehpc.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "ehpc.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "ehpc.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ehpc.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ehpc.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "ehpc.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "ehpc.ap-southeast-2.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "polardb", - "document_id": "58764", - "location_service_code": "polardb", - "regional_endpoints": [ - { - "region": "ap-south-1", - "endpoint": "polardb.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "polardb.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "polardb.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "polardb.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "polardb.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "polardb.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "polardb.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "polardb.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "polardb.ap-southeast-5.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "polardb.aliyuncs.com" - }, - { - "code": "r-kvstore", - "document_id": "60831", - "location_service_code": "redisa", - "regional_endpoints": [ - { - "region": "cn-shenzhen", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "r-kvstore.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "r-kvstore.ap-southeast-3.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "r-kvstore.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "r-kvstore.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "r-kvstore.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "r-kvstore.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "r-kvstore.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "r-kvstore.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "r-kvstore.eu-west-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "r-kvstore.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "r-kvstore.me-east-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "r-kvstore.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "r-kvstore.ap-southeast-5.aliyuncs.com" - } - ], - "global_endpoint": "r-kvstore.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "xianzhi", - "document_id": "", - "location_service_code": "xianzhi", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "xianzhi.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "pcdn", - "document_id": "", - "location_service_code": "pcdn", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "pcdn.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cdn", - "document_id": "27148", - "location_service_code": "cdn", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "cdn.aliyuncs.com" - } - ], - "global_endpoint": "cdn.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "cloudauth", - "document_id": "60687", - "location_service_code": "cloudauth", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "cloudauth.aliyuncs.com" - } - ], - "global_endpoint": "cloudauth.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "nas", - "document_id": "62598", - "location_service_code": "nas", - "regional_endpoints": [ - { - "region": "ap-southeast-2", - "endpoint": "nas.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "nas.ap-south-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "nas.eu-central-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "nas.us-west-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "nas.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "nas.cn-qingdao.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "nas.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "nas.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "nas.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "nas.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "nas.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "nas.ap-northeast-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "nas.us-east-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "nas.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "nas.ap-southeast-5.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "nas.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "nas.ap-southeast-3.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "alidns", - "document_id": "29739", - "location_service_code": "alidns", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "alidns.aliyuncs.com" - } - ], - "global_endpoint": "alidns.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "dts", - "document_id": "", - "location_service_code": "dts", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "dts.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "dts.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "emas", - "document_id": "", - "location_service_code": "emas", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "mhub.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "mhub.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "dysmsapi", - "document_id": "", - "location_service_code": "dysmsapi", - "regional_endpoints": [ - { - "region": "ap-southeast-3", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "cn-chengdu", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "dysmsapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "dysmsapi.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "dysmsapi.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cloudwf", - "document_id": "58111", - "location_service_code": "cloudwf", - "regional_endpoints": null, - "global_endpoint": "cloudwf.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "fc", - "document_id": "", - "location_service_code": "fc", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "cn-beijing.fc.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "ap-southeast-2.fc.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "cn-huhehaote.fc.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "cn-shanghai.fc.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "cn-hangzhou.fc.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "cn-shenzhen.fc.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "saf", - "document_id": "", - "location_service_code": "saf", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "saf.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "saf.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "saf.cn-shenzhen.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "rds", - "document_id": "26223", - "location_service_code": "rds", - "regional_endpoints": [ - { - "region": "ap-northeast-1", - "endpoint": "rds.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "rds.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "rds.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "rds.eu-west-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "rds.ap-southeast-3.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "rds.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "rds.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "rds.ap-southeast-5.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "rds.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "rds.me-east-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "rds.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "rds.aliyuncs.com" - } - ], - "global_endpoint": "rds.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "vpc", - "document_id": "34962", - "location_service_code": "vpc", - "regional_endpoints": [ - { - "region": "ap-south-1", - "endpoint": "vpc.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "vpc.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "vpc.ap-northeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "vpc.cn-huhehaote.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "vpc.me-east-1.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "vpc.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "vpc.ap-southeast-3.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "vpc.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "vpc.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "vpc.eu-west-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "vpc.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "vpc.aliyuncs.com" - } - ], - "global_endpoint": "vpc.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "gpdb", - "document_id": "", - "location_service_code": "gpdb", - "regional_endpoints": [ - { - "region": "ap-southeast-3", - "endpoint": "gpdb.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "gpdb.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "gpdb.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "gpdb.ap-southeast-2.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "gpdb.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "gpdb.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "gpdb.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "gpdb.ap-northeast-1.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "gpdb.eu-west-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "gpdb.ap-south-1.aliyuncs.com" - } - ], - "global_endpoint": "gpdb.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "yunmarket", - "document_id": "", - "location_service_code": "yunmarket", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "market.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "pvtz", - "document_id": "", - "location_service_code": "pvtz", - "regional_endpoints": [ - { - "region": "ap-southeast-1", - "endpoint": "pvtz.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "pvtz.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "oss", - "document_id": "", - "location_service_code": "oss", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "oss-cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "oss-cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "oss-cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "oss-cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "oss-cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "oss-ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "oss-us-west-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "oss-cn-qingdao.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "foas", - "document_id": "", - "location_service_code": "foas", - "regional_endpoints": [ - { - "region": "cn-qingdao", - "endpoint": "foas.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "foas.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "foas.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "foas.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "foas.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "foas.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "foas.ap-northeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ddos", - "document_id": "", - "location_service_code": "ddos", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ddospro.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "ddospro.cn-hongkong.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cbn", - "document_id": "", - "location_service_code": "cbn", - "regional_endpoints": [ - { - "region": "ap-southeast-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "cbn.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "cbn.aliyuncs.com" - } - ], - "global_endpoint": "cbn.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "nlp", - "document_id": "", - "location_service_code": "nlp", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "nlp.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "hsm", - "document_id": "", - "location_service_code": "hsm", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "hsm.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "hsm.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "hsm.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "hsm.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "hsm.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "hsm.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ons", - "document_id": "44416", - "location_service_code": "ons", - "regional_endpoints": [ - { - "region": "ap-southeast-1", - "endpoint": "ons.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "ons.cn-huhehaote.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "ons.us-east-1.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "ons.cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "ons.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "ons.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ons.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "ons.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "ons.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "ons.me-east-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "ons.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "ons.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "ons.cn-hangzhou.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "ons.eu-central-1.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "ons.eu-west-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "ons.us-west-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "ons.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ons.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "kms", - "document_id": "", - "location_service_code": "kms", - "regional_endpoints": [ - { - "region": "cn-hongkong", - "endpoint": "kms.cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "kms.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "kms.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "kms.cn-qingdao.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "kms.eu-west-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "kms.us-east-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "kms.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "kms.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "kms.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "kms.ap-southeast-5.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "kms.cn-huhehaote.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "kms.me-east-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "kms.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "kms.ap-southeast-3.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "kms.us-west-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "kms.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "kms.ap-southeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "kms.eu-central-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "kms.ap-northeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cps", - "document_id": "", - "location_service_code": "cps", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "cloudpush.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ensdisk", - "document_id": "", - "location_service_code": "ensdisk", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ens.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cloudapi", - "document_id": "43590", - "location_service_code": "apigateway", - "regional_endpoints": [ - { - "region": "ap-southeast-2", - "endpoint": "apigateway.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "apigateway.ap-south-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "apigateway.us-east-1.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "apigateway.me-east-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "apigateway.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "apigateway.cn-beijing.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "apigateway.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "apigateway.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "apigateway.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "apigateway.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "apigateway.ap-southeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "apigateway.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "apigateway.cn-hangzhou.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "apigateway.us-west-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "apigateway.cn-shenzhen.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "apigateway.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "apigateway.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "apigateway.ap-northeast-1.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "apigateway.cn-hongkong.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "apigateway.[RegionId].aliyuncs.com" - }, - { - "code": "eci", - "document_id": "", - "location_service_code": "eci", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "eci.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "eci.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "eci.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "eci.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "eci.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "eci.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "onsvip", - "document_id": "", - "location_service_code": "onsvip", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "ons.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ons.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ons.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "ons.cn-shenzhen.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "ons.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "ons.cn-qingdao.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "linkwan", - "document_id": "", - "location_service_code": "linkwan", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "linkwan.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "linkwan.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ddosdip", - "document_id": "", - "location_service_code": "ddosdip", - "regional_endpoints": [ - { - "region": "ap-southeast-1", - "endpoint": "ddosdip.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "batchcompute", - "document_id": "44717", - "location_service_code": "batchcompute", - "regional_endpoints": [ - { - "region": "us-west-1", - "endpoint": "batchcompute.us-west-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "batchcompute.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "batchcompute.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "batchcompute.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "batchcompute.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "batchcompute.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "batchcompute.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "batchcompute.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "batchcompute.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "batchcompute.[RegionId].aliyuncs.com" - }, - { - "code": "aegis", - "document_id": "28449", - "location_service_code": "vipaegis", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "aegis.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "aegis.ap-southeast-3.aliyuncs.com" - } - ], - "global_endpoint": "aegis.cn-hangzhou.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "arms", - "document_id": "42924", - "location_service_code": "arms", - "regional_endpoints": [ - { - "region": "cn-hongkong", - "endpoint": "arms.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "arms.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "arms.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "arms.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "arms.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "arms.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "arms.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "arms.[RegionId].aliyuncs.com" - }, - { - "code": "live", - "document_id": "48207", - "location_service_code": "live", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "live.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "live.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "live.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "live.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "live.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "live.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "live.aliyuncs.com" - } - ], - "global_endpoint": "live.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "alimt", - "document_id": "", - "location_service_code": "alimt", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "mt.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "actiontrail", - "document_id": "", - "location_service_code": "actiontrail", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "actiontrail.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "actiontrail.cn-qingdao.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "actiontrail.us-east-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "actiontrail.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "actiontrail.ap-southeast-3.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "actiontrail.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "actiontrail.ap-south-1.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "actiontrail.me-east-1.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "actiontrail.cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "actiontrail.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "actiontrail.cn-hangzhou.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "actiontrail.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "actiontrail.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "actiontrail.ap-northeast-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "actiontrail.us-west-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "actiontrail.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "actiontrail.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "actiontrail.cn-beijing.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "actiontrail.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "smartag", - "document_id": "", - "location_service_code": "smartag", - "regional_endpoints": [ - { - "region": "ap-southeast-3", - "endpoint": "smartag.ap-southeast-3.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "smartag.ap-southeast-5.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "smartag.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "smartag.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "smartag.cn-hongkong.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "smartag.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "smartag.ap-southeast-2.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "vod", - "document_id": "60574", - "location_service_code": "vod", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "vod.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "vod.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "vod.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "vod.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "vod.ap-southeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "vod.eu-central-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "domain", - "document_id": "42875", - "location_service_code": "domain", - "regional_endpoints": [ - { - "region": "ap-southeast-1", - "endpoint": "domain-intl.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "domain.aliyuncs.com" - } - ], - "global_endpoint": "domain.aliyuncs.com", - "regional_endpoint_pattern": "domain.aliyuncs.com" - }, - { - "code": "ros", - "document_id": "28899", - "location_service_code": "ros", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ros.aliyuncs.com" - } - ], - "global_endpoint": "ros.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "cloudphoto", - "document_id": "59902", - "location_service_code": "cloudphoto", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "cloudphoto.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "cloudphoto.[RegionId].aliyuncs.com" - }, - { - "code": "rtc", - "document_id": "", - "location_service_code": "rtc", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "rtc.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "odpsmayi", - "document_id": "", - "location_service_code": "odpsmayi", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "bsb.cloud.alipay.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "bsb.cloud.alipay.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ims", - "document_id": "", - "location_service_code": "ims", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ims.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "csb", - "document_id": "64837", - "location_service_code": "csb", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "csb.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "csb.cn-beijing.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "csb.[RegionId].aliyuncs.com" - }, - { - "code": "cds", - "document_id": "62887", - "location_service_code": "codepipeline", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "cds.cn-beijing.aliyuncs.com" - } - ], - "global_endpoint": "cds.cn-beijing.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "ddosbgp", - "document_id": "", - "location_service_code": "ddosbgp", - "regional_endpoints": [ - { - "region": "cn-huhehaote", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "ddosbgp.cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "ddosbgp.us-west-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ddosbgp.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "dybaseapi", - "document_id": "", - "location_service_code": "dybaseapi", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "cn-chengdu", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "dybaseapi.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "dybaseapi.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ecs", - "document_id": "25484", - "location_service_code": "ecs", - "regional_endpoints": [ - { - "region": "cn-huhehaote", - "endpoint": "ecs.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "ecs.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "ecs.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "ecs.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "ecs.ap-southeast-3.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "ecs.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "ecs.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "ecs.eu-west-1.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "ecs.me-east-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "ecs.ap-southeast-5.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "ecs-cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "ecs-cn-hangzhou.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "ccc", - "document_id": "63027", - "location_service_code": "ccc", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ccc.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ccc.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "ccc.[RegionId].aliyuncs.com" - }, - { - "code": "cs", - "document_id": "26043", - "location_service_code": "cs", - "regional_endpoints": null, - "global_endpoint": "cs.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "drdspre", - "document_id": "", - "location_service_code": "drdspre", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "drds.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "drds.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "drds.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "drds.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "drds.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "drds.cn-qingdao.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "drds.cn-beijing.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "dcdn", - "document_id": "", - "location_service_code": "dcdn", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "dcdn.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "dcdn.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "linkedmall", - "document_id": "", - "location_service_code": "linkedmall", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "linkedmall.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "linkedmall.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "trademark", - "document_id": "", - "location_service_code": "trademark", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "trademark.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "openanalytics", - "document_id": "", - "location_service_code": "openanalytics", - "regional_endpoints": [ - { - "region": "cn-shenzhen", - "endpoint": "openanalytics.cn-shenzhen.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "openanalytics.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "openanalytics.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "openanalytics.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "openanalytics.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "openanalytics.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "openanalytics.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "openanalytics.cn-zhangjiakou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "sts", - "document_id": "28756", - "location_service_code": "sts", - "regional_endpoints": null, - "global_endpoint": "sts.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "waf", - "document_id": "62847", - "location_service_code": "waf", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "wafopenapi.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ots", - "document_id": "", - "location_service_code": "ots", - "regional_endpoints": [ - { - "region": "me-east-1", - "endpoint": "ots.me-east-1.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "ots.ap-southeast-5.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "ots.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "ots.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "ots.cn-beijing.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "ots.ap-southeast-2.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "ots.us-west-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "ots.us-east-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "ots.ap-south-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "ots.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "ots.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ots.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "ots.ap-northeast-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ots.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "ots.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "ots.ap-southeast-3.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cloudfirewall", - "document_id": "", - "location_service_code": "cloudfirewall", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "cloudfw.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "dm", - "document_id": "29434", - "location_service_code": "dm", - "regional_endpoints": [ - { - "region": "ap-southeast-2", - "endpoint": "dm.ap-southeast-2.aliyuncs.com" - } - ], - "global_endpoint": "dm.aliyuncs.com", - "regional_endpoint_pattern": "dm.[RegionId].aliyuncs.com" - }, - { - "code": "oas", - "document_id": "", - "location_service_code": "oas", - "regional_endpoints": [ - { - "region": "cn-shenzhen", - "endpoint": "cn-shenzhen.oas.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "cn-beijing.oas.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "cn-hangzhou.oas.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ddoscoo", - "document_id": "", - "location_service_code": "ddoscoo", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ddoscoo.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "jaq", - "document_id": "35037", - "location_service_code": "jaq", - "regional_endpoints": null, - "global_endpoint": "jaq.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "iovcc", - "document_id": "", - "location_service_code": "iovcc", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "iovcc.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "sas-api", - "document_id": "28498", - "location_service_code": "sas", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "sas.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "chatbot", - "document_id": "60760", - "location_service_code": "beebot", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "chatbot.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "chatbot.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "chatbot.[RegionId].aliyuncs.com" - }, - { - "code": "airec", - "document_id": "", - "location_service_code": "airec", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "airec.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "airec.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "airec.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "dmsenterprise", - "document_id": "", - "location_service_code": "dmsenterprise", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "dms-enterprise.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "dms-enterprise.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "dms-enterprise.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "dms-enterprise.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "dms-enterprise.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "dms-enterprise.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ivision", - "document_id": "", - "location_service_code": "ivision", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ivision.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "ivision.cn-beijing.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "odpsplusmayi", - "document_id": "", - "location_service_code": "odpsplusmayi", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "bsb.cloud.alipay.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "bsb.cloud.alipay.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "bsb.cloud.alipay.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "gameshield", - "document_id": "", - "location_service_code": "gameshield", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "gameshield.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "gameshield.cn-zhangjiakou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "scdn", - "document_id": "", - "location_service_code": "scdn", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "scdn.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "hitsdb", - "document_id": "", - "location_service_code": "hitsdb", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "hitsdb.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "hdm", - "document_id": "", - "location_service_code": "hdm", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "hdm-api.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "slb", - "document_id": "27565", - "location_service_code": "slb", - "regional_endpoints": [ - { - "region": "cn-shenzhen", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "slb.eu-west-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "slb.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "slb.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "slb.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "slb.ap-south-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "slb.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "slb.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "slb.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "slb.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "slb.me-east-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "slb.cn-zhangjiakou.aliyuncs.com" - } - ], - "global_endpoint": "slb.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "green", - "document_id": "28427", - "location_service_code": "green", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "green.cn-beijing.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "green.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "green.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "green.cn-hangzhou.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "green.us-west-1.aliyuncs.com" - } - ], - "global_endpoint": "green.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "cccvn", - "document_id": "", - "location_service_code": "cccvn", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "voicenavigator.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ddosrewards", - "document_id": "", - "location_service_code": "ddosrewards", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ddosright.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "iot", - "document_id": "30557", - "location_service_code": "iot", - "regional_endpoints": [ - { - "region": "us-east-1", - "endpoint": "iot.us-east-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "iot.ap-northeast-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "iot.us-west-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "iot.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "iot.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "iot.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "iot.[RegionId].aliyuncs.com" - }, - { - "code": "bssopenapi", - "document_id": "", - "location_service_code": "bssopenapi", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "business.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "business.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "sca", - "document_id": "", - "location_service_code": "sca", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "qualitycheck.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "luban", - "document_id": "", - "location_service_code": "luban", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "luban.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "luban.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "drdspost", - "document_id": "", - "location_service_code": "drdspost", - "regional_endpoints": [ - { - "region": "cn-shanghai", - "endpoint": "drds.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "drds.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "drds.ap-southeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "drds", - "document_id": "51111", - "location_service_code": "drds", - "regional_endpoints": [ - { - "region": "ap-southeast-1", - "endpoint": "drds.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "drds.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "drds.aliyuncs.com", - "regional_endpoint_pattern": "drds.aliyuncs.com" - }, - { - "code": "httpdns", - "document_id": "52679", - "location_service_code": "httpdns", - "regional_endpoints": null, - "global_endpoint": "httpdns-api.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "cas", - "document_id": "", - "location_service_code": "cas", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "cas.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "cas.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "cas.ap-northeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "cas.eu-central-1.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "cas.me-east-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "hpc", - "document_id": "35201", - "location_service_code": "hpc", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "hpc.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "hpc.aliyuncs.com" - } - ], - "global_endpoint": "hpc.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "ddosbasic", - "document_id": "", - "location_service_code": "ddosbasic", - "regional_endpoints": [ - { - "region": "ap-south-1", - "endpoint": "antiddos-openapi.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "antiddos-openapi.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "antiddos-openapi.ap-southeast-3.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "antiddos-openapi.me-east-1.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "antiddos-openapi.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "antiddos-openapi.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "antiddos-openapi.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "antiddos-openapi.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "antiddos-openapi.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "antiddos.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "antiddos-openapi.ap-northeast-1.aliyuncs.com" - } - ], - "global_endpoint": "antiddos.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "clouddesktop", - "document_id": "", - "location_service_code": "clouddesktop", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "clouddesktop.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "clouddesktop.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "clouddesktop.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "clouddesktop.cn-shenzhen.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "uis", - "document_id": "", - "location_service_code": "uis", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "uis.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "imm", - "document_id": "", - "location_service_code": "imm", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "imm.cn-beijing.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "imm.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "imm.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "imm.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "imm.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "imm.cn-shenzhen.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ens", - "document_id": "", - "location_service_code": "ens", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ens.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ram", - "document_id": "28672", - "location_service_code": "ram", - "regional_endpoints": null, - "global_endpoint": "ram.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "hcs_mgw", - "document_id": "", - "location_service_code": "hcs_mgw", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "mgw.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "mgw.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "mgw.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "itaas", - "document_id": "55759", - "location_service_code": "itaas", - "regional_endpoints": null, - "global_endpoint": "itaas.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "qualitycheck", - "document_id": "50807", - "location_service_code": "qualitycheck", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "qualitycheck.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "alikafka", - "document_id": "", - "location_service_code": "alikafka", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "alikafka.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "alikafka.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "alikafka.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "alikafka.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "alikafka.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "alikafka.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "alikafka.cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "alikafka.cn-qingdao.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "faas", - "document_id": "", - "location_service_code": "faas", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "faas.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "faas.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "faas.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "faas.cn-beijing.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "alidfs", - "document_id": "", - "location_service_code": "alidfs", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "dfs.cn-beijing.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "dfs.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "cms", - "document_id": "28615", - "location_service_code": "cms", - "regional_endpoints": [ - { - "region": "ap-southeast-3", - "endpoint": "metrics.ap-southeast-3.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "metrics.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "metrics.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "metrics.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "metrics.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "metrics.ap-northeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "domain-intl", - "document_id": "", - "location_service_code": "domain-intl", - "regional_endpoints": null, - "global_endpoint": "domain-intl.aliyuncs.com", - "regional_endpoint_pattern": "domain-intl.aliyuncs.com" - }, - { - "code": "kvstore", - "document_id": "", - "location_service_code": "kvstore", - "regional_endpoints": [ - { - "region": "ap-northeast-1", - "endpoint": "r-kvstore.ap-northeast-1.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ccs", - "document_id": "", - "location_service_code": "ccs", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "ccs.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "ess", - "document_id": "25925", - "location_service_code": "ess", - "regional_endpoints": [ - { - "region": "cn-huhehaote", - "endpoint": "ess.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "ess.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "ess.eu-west-1.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "ess.ap-southeast-5.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "ess.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "ess.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "ess.me-east-1.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "ess.ap-northeast-1.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "ess.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "ess.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "ess.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "ess.aliyuncs.com" - } - ], - "global_endpoint": "ess.aliyuncs.com", - "regional_endpoint_pattern": "ess.[RegionId].aliyuncs.com" - }, - { - "code": "dds", - "document_id": "61715", - "location_service_code": "dds", - "regional_endpoints": [ - { - "region": "me-east-1", - "endpoint": "mongodb.me-east-1.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "mongodb.ap-southeast-3.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "mongodb.ap-southeast-5.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "mongodb.ap-northeast-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "mongodb.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "mongodb.eu-west-1.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "cn-huhehaote", - "endpoint": "mongodb.cn-huhehaote.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "mongodb.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "mongodb.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "mongodb.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "mongodb.ap-south-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "mongodb.aliyuncs.com" - } - ], - "global_endpoint": "mongodb.aliyuncs.com", - "regional_endpoint_pattern": "mongodb.[RegionId].aliyuncs.com" - }, - { - "code": "mts", - "document_id": "29212", - "location_service_code": "mts", - "regional_endpoints": [ - { - "region": "cn-beijing", - "endpoint": "mts.cn-beijing.aliyuncs.com" - }, - { - "region": "ap-northeast-1", - "endpoint": "mts.ap-northeast-1.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "mts.cn-hongkong.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "mts.cn-shenzhen.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "mts.cn-zhangjiakou.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "mts.ap-south-1.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "mts.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "mts.ap-southeast-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "mts.us-west-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "mts.eu-central-1.aliyuncs.com" - }, - { - "region": "eu-west-1", - "endpoint": "mts.eu-west-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "mts.cn-hangzhou.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "push", - "document_id": "30074", - "location_service_code": "push", - "regional_endpoints": null, - "global_endpoint": "cloudpush.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "hcs_sgw", - "document_id": "", - "location_service_code": "hcs_sgw", - "regional_endpoints": [ - { - "region": "eu-central-1", - "endpoint": "sgw.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "sgw.ap-southeast-1.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-hongkong", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "sgw.ap-southeast-2.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "sgw.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "hbase", - "document_id": "", - "location_service_code": "hbase", - "regional_endpoints": [ - { - "region": "cn-huhehaote", - "endpoint": "hbase.cn-huhehaote.aliyuncs.com" - }, - { - "region": "ap-south-1", - "endpoint": "hbase.ap-south-1.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "hbase.me-east-1.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "hbase.eu-central-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "hbase.ap-southeast-2.aliyuncs.com" - }, - { - "region": "ap-southeast-3", - "endpoint": "hbase.ap-southeast-3.aliyuncs.com" - }, - { - "region": "cn-hangzhou", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "ap-southeast-5", - "endpoint": "hbase.ap-southeast-5.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "hbase.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "hbase.aliyuncs.com" - } - ], - "global_endpoint": "hbase.aliyuncs.com", - "regional_endpoint_pattern": "" - }, - { - "code": "bastionhost", - "document_id": "", - "location_service_code": "bastionhost", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "yundun-bastionhost.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - }, - { - "code": "vs", - "document_id": "", - "location_service_code": "vs", - "regional_endpoints": [ - { - "region": "cn-hangzhou", - "endpoint": "vs.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shanghai", - "endpoint": "vs.cn-shanghai.aliyuncs.com" - } - ], - "global_endpoint": "", - "regional_endpoint_pattern": "" - } - ] -}` - -var initOnce sync.Once -var data interface{} - -func getEndpointConfigData() interface{} { - initOnce.Do(func() { - err := json.Unmarshal([]byte(endpointsJson), &data) - if err != nil { - panic(fmt.Sprintf("init endpoint config data failed. %s", err)) - } - }) - return data -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_global_resolver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_global_resolver.go deleted file mode 100644 index 160e62cb6..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_global_resolver.go +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - */ - -package endpoints - -import ( - "fmt" - "strings" - - "github.com/jmespath/go-jmespath" -) - -type LocalGlobalResolver struct { -} - -func (resolver *LocalGlobalResolver) GetName() (name string) { - name = "local global resolver" - return -} - -func (resolver *LocalGlobalResolver) TryResolve(param *ResolveParam) (endpoint string, support bool, err error) { - // get the global endpoints configs - endpointExpression := fmt.Sprintf("products[?code=='%s'].global_endpoint", strings.ToLower(param.Product)) - endpointData, err := jmespath.Search(endpointExpression, getEndpointConfigData()) - if err == nil && endpointData != nil && len(endpointData.([]interface{})) > 0 { - endpoint = endpointData.([]interface{})[0].(string) - support = len(endpoint) > 0 - return - } - support = false - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_regional_resolver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_regional_resolver.go deleted file mode 100644 index 7fee64d42..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_regional_resolver.go +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -package endpoints - -import ( - "fmt" - "strings" - - "github.com/jmespath/go-jmespath" -) - -type LocalRegionalResolver struct { -} - -func (resolver *LocalRegionalResolver) GetName() (name string) { - name = "local regional resolver" - return -} - -func (resolver *LocalRegionalResolver) TryResolve(param *ResolveParam) (endpoint string, support bool, err error) { - // get the regional endpoints configs - regionalExpression := fmt.Sprintf("products[?code=='%s'].regional_endpoints", strings.ToLower(param.Product)) - regionalData, err := jmespath.Search(regionalExpression, getEndpointConfigData()) - if err == nil && regionalData != nil && len(regionalData.([]interface{})) > 0 { - endpointExpression := fmt.Sprintf("[0][?region=='%s'].endpoint", strings.ToLower(param.RegionId)) - var endpointData interface{} - endpointData, err = jmespath.Search(endpointExpression, regionalData) - if err == nil && endpointData != nil && len(endpointData.([]interface{})) > 0 { - endpoint = endpointData.([]interface{})[0].(string) - support = len(endpoint) > 0 - return - } - } - support = false - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/location_resolver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/location_resolver.go deleted file mode 100644 index cc354cc4d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/location_resolver.go +++ /dev/null @@ -1,176 +0,0 @@ -/* - * 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. - */ -package endpoints - -import ( - "encoding/json" - "sync" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" -) - -const ( - // EndpointCacheExpireTime ... - EndpointCacheExpireTime = 3600 //Seconds -) - -// Cache caches endpoint for specific product and region -type Cache struct { - sync.RWMutex - cache map[string]interface{} -} - -// Get ... -func (c *Cache) Get(k string) (v interface{}) { - c.RLock() - v = c.cache[k] - c.RUnlock() - return -} - -// Set ... -func (c *Cache) Set(k string, v interface{}) { - c.Lock() - c.cache[k] = v - c.Unlock() -} - -var lastClearTimePerProduct = &Cache{cache: make(map[string]interface{})} -var endpointCache = &Cache{cache: make(map[string]interface{})} - -// LocationResolver ... -type LocationResolver struct { -} - -func (resolver *LocationResolver) GetName() (name string) { - name = "location resolver" - return -} - -// TryResolve resolves endpoint giving product and region -func (resolver *LocationResolver) TryResolve(param *ResolveParam) (endpoint string, support bool, err error) { - if len(param.LocationProduct) <= 0 { - support = false - return - } - - //get from cache - cacheKey := param.Product + "#" + param.RegionId - var ok bool - endpoint, ok = endpointCache.Get(cacheKey).(string) - - if ok && len(endpoint) > 0 && !CheckCacheIsExpire(cacheKey) { - support = true - return - } - - //get from remote - getEndpointRequest := requests.NewCommonRequest() - - getEndpointRequest.Product = "Location" - getEndpointRequest.Version = "2015-06-12" - getEndpointRequest.ApiName = "DescribeEndpoints" - getEndpointRequest.Domain = "location-readonly.aliyuncs.com" - getEndpointRequest.Method = "GET" - getEndpointRequest.Scheme = requests.HTTPS - - getEndpointRequest.QueryParams["Id"] = param.RegionId - getEndpointRequest.QueryParams["ServiceCode"] = param.LocationProduct - if len(param.LocationEndpointType) > 0 { - getEndpointRequest.QueryParams["Type"] = param.LocationEndpointType - } else { - getEndpointRequest.QueryParams["Type"] = "openAPI" - } - - response, err := param.CommonApi(getEndpointRequest) - if err != nil { - support = false - return - } - - if !response.IsSuccess() { - support = false - return - } - - var getEndpointResponse GetEndpointResponse - err = json.Unmarshal([]byte(response.GetHttpContentString()), &getEndpointResponse) - if err != nil { - support = false - return - } - - if !getEndpointResponse.Success || getEndpointResponse.Endpoints == nil { - support = false - return - } - if len(getEndpointResponse.Endpoints.Endpoint) <= 0 { - support = false - return - } - if len(getEndpointResponse.Endpoints.Endpoint[0].Endpoint) > 0 { - endpoint = getEndpointResponse.Endpoints.Endpoint[0].Endpoint - endpointCache.Set(cacheKey, endpoint) - lastClearTimePerProduct.Set(cacheKey, time.Now().Unix()) - support = true - return - } - - support = false - return -} - -// CheckCacheIsExpire ... -func CheckCacheIsExpire(cacheKey string) bool { - lastClearTime, ok := lastClearTimePerProduct.Get(cacheKey).(int64) - if !ok { - return true - } - - if lastClearTime <= 0 { - lastClearTime = time.Now().Unix() - lastClearTimePerProduct.Set(cacheKey, lastClearTime) - } - - now := time.Now().Unix() - elapsedTime := now - lastClearTime - if elapsedTime > EndpointCacheExpireTime { - return true - } - - return false -} - -// GetEndpointResponse ... -type GetEndpointResponse struct { - Endpoints *EndpointsObj - RequestId string - Success bool -} - -// EndpointsObj ... -type EndpointsObj struct { - Endpoint []EndpointObj -} - -// EndpointObj ... -type EndpointObj struct { - // Protocols map[string]string - Type string - Namespace string - Id string - SerivceCode string - Endpoint string -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go deleted file mode 100644 index a415a169a..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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. - */ - -package endpoints - -import ( - "fmt" - "strings" - "sync" -) - -const keyFormatter = "%s::%s" - -type EndpointMapping struct { - sync.RWMutex - endpoint map[string]string -} - -var endpointMapping = EndpointMapping{endpoint: make(map[string]string)} - -// AddEndpointMapping use productId and regionId as key to store the endpoint into inner map -// when using the same productId and regionId as key, the endpoint will be covered. -func AddEndpointMapping(regionId, productId, endpoint string) (err error) { - key := fmt.Sprintf(keyFormatter, strings.ToLower(regionId), strings.ToLower(productId)) - endpointMapping.Lock() - endpointMapping.endpoint[key] = endpoint - endpointMapping.Unlock() - return nil -} - -// GetEndpointFromMap use Product and RegionId as key to find endpoint from inner map -func GetEndpointFromMap(regionId, productId string) string { - key := fmt.Sprintf(keyFormatter, strings.ToLower(regionId), strings.ToLower(productId)) - endpointMapping.RLock() - endpoint := endpointMapping.endpoint[key] - endpointMapping.RUnlock() - return endpoint -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go deleted file mode 100644 index a73b8b137..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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. - */ - -package endpoints - -import ( - "encoding/json" - "fmt" - "sync" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -var debug utils.Debug - -func init() { - debug = utils.Init("sdk") -} - -const ( - ResolveEndpointUserGuideLink = "" -) - -var once sync.Once -var resolvers []Resolver - -type Resolver interface { - TryResolve(param *ResolveParam) (endpoint string, support bool, err error) - GetName() (name string) -} - -// Resolve resolve endpoint with params -// It will resolve with each supported resolver until anyone resolved -func Resolve(param *ResolveParam) (endpoint string, err error) { - supportedResolvers := getAllResolvers() - var lastErr error - for _, resolver := range supportedResolvers { - endpoint, supported, resolveErr := resolver.TryResolve(param) - if resolveErr != nil { - lastErr = resolveErr - } - - if supported { - debug("resolve endpoint with %s\n", param) - debug("\t%s by resolver(%s)\n", endpoint, resolver.GetName()) - return endpoint, nil - } - } - - // not support - errorMsg := fmt.Sprintf(errors.CanNotResolveEndpointErrorMessage, param, ResolveEndpointUserGuideLink) - err = errors.NewClientError(errors.CanNotResolveEndpointErrorCode, errorMsg, lastErr) - return -} - -func getAllResolvers() []Resolver { - once.Do(func() { - resolvers = []Resolver{ - &LocationResolver{}, - &LocalRegionalResolver{}, - &LocalGlobalResolver{}, - } - }) - return resolvers -} - -type ResolveParam struct { - Domain string - Product string - RegionId string - LocationProduct string - LocationEndpointType string - CommonApi func(request *requests.CommonRequest) (response *responses.CommonResponse, err error) `json:"-"` -} - -func (param *ResolveParam) String() string { - jsonBytes, err := json.Marshal(param) - if err != nil { - return fmt.Sprint("ResolveParam.String() process error:", err) - } - return string(jsonBytes) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/client_error.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/client_error.go deleted file mode 100644 index 1e2d9c004..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/client_error.go +++ /dev/null @@ -1,92 +0,0 @@ -/* - * 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. - */ - -package errors - -import "fmt" - -const ( - DefaultClientErrorStatus = 400 - DefaultClientErrorCode = "SDK.ClientError" - - UnsupportedCredentialErrorCode = "SDK.UnsupportedCredential" - UnsupportedCredentialErrorMessage = "Specified credential (type = %s) is not supported, please check" - - CanNotResolveEndpointErrorCode = "SDK.CanNotResolveEndpoint" - CanNotResolveEndpointErrorMessage = "Can not resolve endpoint(param = %s), please check your accessKey with secret, and read the user guide\n %s" - - UnsupportedParamPositionErrorCode = "SDK.UnsupportedParamPosition" - UnsupportedParamPositionErrorMessage = "Specified param position (%s) is not supported, please upgrade sdk and retry" - - AsyncFunctionNotEnabledCode = "SDK.AsyncFunctionNotEnabled" - AsyncFunctionNotEnabledMessage = "Async function is not enabled in client, please invoke 'client.EnableAsync' function" - - UnknownRequestTypeErrorCode = "SDK.UnknownRequestType" - UnknownRequestTypeErrorMessage = "Unknown Request Type: %s" - - MissingParamErrorCode = "SDK.MissingParam" - InvalidParamErrorCode = "SDK.InvalidParam" - - JsonUnmarshalErrorCode = "SDK.JsonUnmarshalError" - JsonUnmarshalErrorMessage = "Failed to unmarshal response, but you can get the data via response.GetHttpStatusCode() and response.GetHttpContentString()" - - TimeoutErrorCode = "SDK.TimeoutError" - TimeoutErrorMessage = "The request timed out %s times(%s for retry), perhaps we should have the threshold raised a little?" -) - -type ClientError struct { - errorCode string - message string - originError error -} - -func NewClientError(errorCode, message string, originErr error) Error { - return &ClientError{ - errorCode: errorCode, - message: message, - originError: originErr, - } -} - -func (err *ClientError) Error() string { - clientErrMsg := fmt.Sprintf("[%s] %s", err.ErrorCode(), err.message) - if err.originError != nil { - return clientErrMsg + "\ncaused by:\n" + err.originError.Error() - } - return clientErrMsg -} - -func (err *ClientError) OriginError() error { - return err.originError -} - -func (*ClientError) HttpStatus() int { - return DefaultClientErrorStatus -} - -func (err *ClientError) ErrorCode() string { - if err.errorCode == "" { - return DefaultClientErrorCode - } else { - return err.errorCode - } -} - -func (err *ClientError) Message() string { - return err.message -} - -func (err *ClientError) String() string { - return err.Error() -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/error.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/error.go deleted file mode 100644 index 49962f3b5..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/error.go +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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. - */ - -package errors - -type Error interface { - error - HttpStatus() int - ErrorCode() string - Message() string - OriginError() error -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go deleted file mode 100644 index 1b7810414..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go +++ /dev/null @@ -1,123 +0,0 @@ -/* - * 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. - */ - -package errors - -import ( - "encoding/json" - "fmt" - - "github.com/jmespath/go-jmespath" -) - -var wrapperList = []ServerErrorWrapper{ - &SignatureDostNotMatchWrapper{}, -} - -type ServerError struct { - httpStatus int - requestId string - hostId string - errorCode string - recommend string - message string - comment string -} - -type ServerErrorWrapper interface { - tryWrap(error *ServerError, wrapInfo map[string]string) bool -} - -func (err *ServerError) Error() string { - return fmt.Sprintf("SDK.ServerError\nErrorCode: %s\nRecommend: %s\nRequestId: %s\nMessage: %s", - err.errorCode, err.comment+err.recommend, err.requestId, err.message) -} - -func NewServerError(httpStatus int, responseContent, comment string) Error { - result := &ServerError{ - httpStatus: httpStatus, - message: responseContent, - comment: comment, - } - - var data interface{} - err := json.Unmarshal([]byte(responseContent), &data) - if err == nil { - requestId, _ := jmespath.Search("RequestId", data) - hostId, _ := jmespath.Search("HostId", data) - errorCode, _ := jmespath.Search("Code", data) - recommend, _ := jmespath.Search("Recommend", data) - message, _ := jmespath.Search("Message", data) - - if requestId != nil { - result.requestId = requestId.(string) - } - if hostId != nil { - result.hostId = hostId.(string) - } - if errorCode != nil { - result.errorCode = errorCode.(string) - } - if recommend != nil { - result.recommend = recommend.(string) - } - if message != nil { - result.message = message.(string) - } - } - - return result -} - -func WrapServerError(originError *ServerError, wrapInfo map[string]string) *ServerError { - for _, wrapper := range wrapperList { - ok := wrapper.tryWrap(originError, wrapInfo) - if ok { - return originError - } - } - return originError -} - -func (err *ServerError) HttpStatus() int { - return err.httpStatus -} - -func (err *ServerError) ErrorCode() string { - return err.errorCode -} - -func (err *ServerError) Message() string { - return err.message -} - -func (err *ServerError) OriginError() error { - return nil -} - -func (err *ServerError) HostId() string { - return err.hostId -} - -func (err *ServerError) RequestId() string { - return err.requestId -} - -func (err *ServerError) Recommend() string { - return err.recommend -} - -func (err *ServerError) Comment() string { - return err.comment -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/signature_does_not_match_wrapper.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/signature_does_not_match_wrapper.go deleted file mode 100644 index 4b09d7d71..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/signature_does_not_match_wrapper.go +++ /dev/null @@ -1,45 +0,0 @@ -package errors - -import ( - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -const SignatureDostNotMatchErrorCode = "SignatureDoesNotMatch" -const IncompleteSignatureErrorCode = "IncompleteSignature" -const MessageContain = "server string to sign is:" - -var debug utils.Debug - -func init() { - debug = utils.Init("sdk") -} - -type SignatureDostNotMatchWrapper struct { -} - -func (*SignatureDostNotMatchWrapper) tryWrap(error *ServerError, wrapInfo map[string]string) (ok bool) { - clientStringToSign := wrapInfo["StringToSign"] - if (error.errorCode == SignatureDostNotMatchErrorCode || error.errorCode == IncompleteSignatureErrorCode) && clientStringToSign != "" { - message := error.message - if strings.Contains(message, MessageContain) { - str := strings.Split(message, MessageContain) - serverStringToSign := str[1] - - if clientStringToSign == serverStringToSign { - // user secret is error - error.recommend = "InvalidAccessKeySecret: Please check you AccessKeySecret" - } else { - debug("Client StringToSign: %s", clientStringToSign) - debug("Server StringToSign: %s", serverStringToSign) - error.recommend = "This may be a bug with the SDK and we hope you can submit this question in the " + - "github issue(https://github.com/aliyun/alibaba-cloud-sdk-go/issues), thanks very much" - } - } - ok = true - return - } - ok = false - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/logger.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/logger.go deleted file mode 100644 index 49e49833d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/logger.go +++ /dev/null @@ -1,117 +0,0 @@ -package sdk - -import ( - "encoding/json" - "io" - "log" - "os" - "strings" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -var logChannel string -var defaultChannel = "AlibabaCloud" - -type Logger struct { - *log.Logger - formatTemplate string - isOpen bool - lastLogMsg string -} - -var defaultLoggerTemplate = `{time} {channel}: "{method} {uri} HTTP/{version}" {code} {cost} {hostname}` -var loggerParam = []string{"{time}", "{start_time}", "{ts}", "{channel}", "{pid}", "{host}", "{method}", "{uri}", "{version}", "{target}", "{hostname}", "{code}", "{error}", "{req_headers}", "{res_body}", "{res_headers}", "{cost}"} - -func initLogMsg(fieldMap map[string]string) { - for _, value := range loggerParam { - fieldMap[value] = "" - } -} - -func (client *Client) GetLogger() *Logger { - return client.logger -} - -func (client *Client) GetLoggerMsg() string { - if client.logger == nil { - client.SetLogger("", "", os.Stdout, "") - } - return client.logger.lastLogMsg -} - -func (client *Client) SetLogger(level string, channel string, out io.Writer, template string) { - if level == "" { - level = "info" - } - - logChannel = "AlibabaCloud" - if channel != "" { - logChannel = channel - } - log := log.New(out, "["+strings.ToUpper(level)+"]", log.Lshortfile) - if template == "" { - template = defaultLoggerTemplate - } - - client.logger = &Logger{ - Logger: log, - formatTemplate: template, - isOpen: true, - } -} - -func (client *Client) OpenLogger() { - if client.logger == nil { - client.SetLogger("", "", os.Stdout, "") - } - client.logger.isOpen = true -} - -func (client *Client) CloseLogger() { - if client.logger != nil { - client.logger.isOpen = false - } -} - -func (client *Client) SetTemplate(template string) { - if client.logger == nil { - client.SetLogger("", "", os.Stdout, "") - } - client.logger.formatTemplate = template -} - -func (client *Client) GetTemplate() string { - if client.logger == nil { - client.SetLogger("", "", os.Stdout, "") - } - return client.logger.formatTemplate -} - -func TransToString(object interface{}) string { - byt, err := json.Marshal(object) - if err != nil { - return "" - } - return string(byt) -} - -func (client *Client) printLog(fieldMap map[string]string, err error) { - if err != nil { - fieldMap["{error}"] = err.Error() - } - fieldMap["{time}"] = time.Now().Format("2006-01-02 15:04:05") - fieldMap["{ts}"] = utils.GetTimeInFormatISO8601() - fieldMap["{channel}"] = logChannel - if client.logger != nil { - logMsg := client.logger.formatTemplate - for key, value := range fieldMap { - logMsg = strings.Replace(logMsg, key, value, -1) - } - client.logger.lastLogMsg = logMsg - if client.logger.isOpen == true { - client.logger.Output(2, logMsg) - } - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_request.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_request.go deleted file mode 100644 index d055c7542..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_request.go +++ /dev/null @@ -1,525 +0,0 @@ -/* - * 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. - */ - -package requests - -import ( - "encoding/json" - "fmt" - "io" - "reflect" - "strconv" - "strings" - "time" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" -) - -const ( - RPC = "RPC" - ROA = "ROA" - - HTTP = "HTTP" - HTTPS = "HTTPS" - - DefaultHttpPort = "80" - - GET = "GET" - PUT = "PUT" - POST = "POST" - DELETE = "DELETE" - PATCH = "PATCH" - HEAD = "HEAD" - OPTIONS = "OPTIONS" - - Json = "application/json" - Xml = "application/xml" - Raw = "application/octet-stream" - Form = "application/x-www-form-urlencoded" - - Header = "Header" - Query = "Query" - Body = "Body" - Path = "Path" - - HeaderSeparator = "\n" -) - -// interface -type AcsRequest interface { - GetScheme() string - GetMethod() string - GetDomain() string - GetPort() string - GetRegionId() string - GetHeaders() map[string]string - GetQueryParams() map[string]string - GetFormParams() map[string]string - GetContent() []byte - GetBodyReader() io.Reader - GetStyle() string - GetProduct() string - GetVersion() string - SetVersion(version string) - GetActionName() string - GetAcceptFormat() string - GetLocationServiceCode() string - GetLocationEndpointType() string - GetReadTimeout() time.Duration - GetConnectTimeout() time.Duration - SetReadTimeout(readTimeout time.Duration) - SetConnectTimeout(connectTimeout time.Duration) - SetHTTPSInsecure(isInsecure bool) - GetHTTPSInsecure() *bool - - GetUserAgent() map[string]string - - SetStringToSign(stringToSign string) - GetStringToSign() string - - SetDomain(domain string) - SetContent(content []byte) - SetScheme(scheme string) - BuildUrl() string - BuildQueries() string - - addHeaderParam(key, value string) - addQueryParam(key, value string) - addFormParam(key, value string) - addPathParam(key, value string) -} - -// base class -type baseRequest struct { - Scheme string - Method string - Domain string - Port string - RegionId string - ReadTimeout time.Duration - ConnectTimeout time.Duration - isInsecure *bool - - userAgent map[string]string - product string - version string - - actionName string - - AcceptFormat string - - QueryParams map[string]string - Headers map[string]string - FormParams map[string]string - Content []byte - - locationServiceCode string - locationEndpointType string - - queries string - - stringToSign string -} - -func (request *baseRequest) GetQueryParams() map[string]string { - return request.QueryParams -} - -func (request *baseRequest) GetFormParams() map[string]string { - return request.FormParams -} - -func (request *baseRequest) GetReadTimeout() time.Duration { - return request.ReadTimeout -} - -func (request *baseRequest) GetConnectTimeout() time.Duration { - return request.ConnectTimeout -} - -func (request *baseRequest) SetReadTimeout(readTimeout time.Duration) { - request.ReadTimeout = readTimeout -} - -func (request *baseRequest) SetConnectTimeout(connectTimeout time.Duration) { - request.ConnectTimeout = connectTimeout -} - -func (request *baseRequest) GetHTTPSInsecure() *bool { - return request.isInsecure -} - -func (request *baseRequest) SetHTTPSInsecure(isInsecure bool) { - request.isInsecure = &isInsecure -} - -func (request *baseRequest) GetContent() []byte { - return request.Content -} - -func (request *baseRequest) SetVersion(version string) { - request.version = version -} - -func (request *baseRequest) GetVersion() string { - return request.version -} - -func (request *baseRequest) GetActionName() string { - return request.actionName -} - -func (request *baseRequest) SetContent(content []byte) { - request.Content = content -} - -func (request *baseRequest) GetUserAgent() map[string]string { - return request.userAgent -} - -func (request *baseRequest) AppendUserAgent(key, value string) { - newkey := true - if request.userAgent == nil { - request.userAgent = make(map[string]string) - } - if strings.ToLower(key) != "core" && strings.ToLower(key) != "go" { - for tag, _ := range request.userAgent { - if tag == key { - request.userAgent[tag] = value - newkey = false - } - } - if newkey { - request.userAgent[key] = value - } - } -} - -func (request *baseRequest) addHeaderParam(key, value string) { - request.Headers[key] = value -} - -func (request *baseRequest) addQueryParam(key, value string) { - request.QueryParams[key] = value -} - -func (request *baseRequest) addFormParam(key, value string) { - request.FormParams[key] = value -} - -func (request *baseRequest) GetAcceptFormat() string { - return request.AcceptFormat -} - -func (request *baseRequest) GetLocationServiceCode() string { - return request.locationServiceCode -} - -func (request *baseRequest) GetLocationEndpointType() string { - return request.locationEndpointType -} - -func (request *baseRequest) GetProduct() string { - return request.product -} - -func (request *baseRequest) GetScheme() string { - return request.Scheme -} - -func (request *baseRequest) SetScheme(scheme string) { - request.Scheme = scheme -} - -func (request *baseRequest) GetMethod() string { - return request.Method -} - -func (request *baseRequest) GetDomain() string { - return request.Domain -} - -func (request *baseRequest) SetDomain(host string) { - request.Domain = host -} - -func (request *baseRequest) GetPort() string { - return request.Port -} - -func (request *baseRequest) GetRegionId() string { - return request.RegionId -} - -func (request *baseRequest) GetHeaders() map[string]string { - return request.Headers -} - -func (request *baseRequest) SetContentType(contentType string) { - request.addHeaderParam("Content-Type", contentType) -} - -func (request *baseRequest) GetContentType() (contentType string, contains bool) { - contentType, contains = request.Headers["Content-Type"] - return -} - -func (request *baseRequest) SetStringToSign(stringToSign string) { - request.stringToSign = stringToSign -} - -func (request *baseRequest) GetStringToSign() string { - return request.stringToSign -} - -func defaultBaseRequest() (request *baseRequest) { - request = &baseRequest{ - Scheme: "", - AcceptFormat: "JSON", - Method: GET, - QueryParams: make(map[string]string), - Headers: map[string]string{ - "x-sdk-client": "golang/1.0.0", - "x-sdk-invoke-type": "normal", - "Accept-Encoding": "identity", - }, - FormParams: make(map[string]string), - } - return -} - -func InitParams(request AcsRequest) (err error) { - requestValue := reflect.ValueOf(request).Elem() - err = flatRepeatedList(requestValue, request, "", "") - return -} - -func flatRepeatedList(dataValue reflect.Value, request AcsRequest, position, prefix string) (err error) { - dataType := dataValue.Type() - for i := 0; i < dataType.NumField(); i++ { - field := dataType.Field(i) - name, containsNameTag := field.Tag.Lookup("name") - fieldPosition := position - if fieldPosition == "" { - fieldPosition, _ = field.Tag.Lookup("position") - } - typeTag, containsTypeTag := field.Tag.Lookup("type") - if containsNameTag { - if !containsTypeTag { - // simple param - key := prefix + name - value := dataValue.Field(i).String() - if dataValue.Field(i).Kind().String() == "map" { - byt, _ := json.Marshal(dataValue.Field(i).Interface()) - value = string(byt) - if value == "null" { - value = "" - } - } - err = addParam(request, fieldPosition, key, value) - if err != nil { - return - } - } else if typeTag == "Repeated" { - // repeated param - err = handleRepeatedParams(request, dataValue, prefix, name, fieldPosition, i) - if err != nil { - return - } - } else if typeTag == "Struct" { - err = handleStruct(request, dataValue, prefix, name, fieldPosition, i) - if err != nil { - return - } - } else if typeTag == "Map" { - err = handleMap(request, dataValue, prefix, name, fieldPosition, i) - if err != nil { - return err - } - } else if typeTag == "Json" { - byt, err := json.Marshal(dataValue.Field(i).Interface()) - if err != nil { - return err - } - key := prefix + name - err = addParam(request, fieldPosition, key, string(byt)) - if err != nil { - return err - } - } - } - } - return -} - -func handleRepeatedParams(request AcsRequest, dataValue reflect.Value, prefix, name, fieldPosition string, index int) (err error) { - repeatedFieldValue := dataValue.Field(index) - if repeatedFieldValue.Kind() != reflect.Slice { - // possible value: {"[]string", "*[]struct"}, we must call Elem() in the last condition - repeatedFieldValue = repeatedFieldValue.Elem() - } - if repeatedFieldValue.IsValid() && !repeatedFieldValue.IsNil() { - for m := 0; m < repeatedFieldValue.Len(); m++ { - elementValue := repeatedFieldValue.Index(m) - key := prefix + name + "." + strconv.Itoa(m+1) - if elementValue.Type().Kind().String() == "string" { - value := elementValue.String() - err = addParam(request, fieldPosition, key, value) - if err != nil { - return - } - } else { - err = flatRepeatedList(elementValue, request, fieldPosition, key+".") - if err != nil { - return - } - } - } - } - return nil -} - -func handleParam(request AcsRequest, dataValue reflect.Value, prefix, key, fieldPosition string) (err error) { - if dataValue.Type().String() == "[]string" { - if dataValue.IsNil() { - return - } - for j := 0; j < dataValue.Len(); j++ { - err = addParam(request, fieldPosition, key+"."+strconv.Itoa(j+1), dataValue.Index(j).String()) - if err != nil { - return - } - } - } else { - if dataValue.Type().Kind().String() == "string" { - value := dataValue.String() - err = addParam(request, fieldPosition, key, value) - if err != nil { - return - } - } else if dataValue.Type().Kind().String() == "struct" { - err = flatRepeatedList(dataValue, request, fieldPosition, key+".") - if err != nil { - return - } - } else if dataValue.Type().Kind().String() == "int" { - value := dataValue.Int() - err = addParam(request, fieldPosition, key, strconv.Itoa(int(value))) - if err != nil { - return err - } - } - } - return nil -} - -func handleMap(request AcsRequest, dataValue reflect.Value, prefix, name, fieldPosition string, index int) (err error) { - valueField := dataValue.Field(index) - if valueField.IsValid() && !valueField.IsNil() { - iter := valueField.MapRange() - for iter.Next() { - k := iter.Key() - v := iter.Value() - key := prefix + name + ".#" + strconv.Itoa(k.Len()) + "#" + k.String() - if v.Kind() == reflect.Ptr || v.Kind() == reflect.Interface { - elementValue := v.Elem() - err = handleParam(request, elementValue, prefix, key, fieldPosition) - if err != nil { - return err - } - } else if v.IsValid() && v.IsNil() { - err = handleParam(request, v, prefix, key, fieldPosition) - if err != nil { - return err - } - } - } - } - return nil -} - -func handleStruct(request AcsRequest, dataValue reflect.Value, prefix, name, fieldPosition string, index int) (err error) { - valueField := dataValue.Field(index) - if valueField.IsValid() && valueField.String() != "" { - valueFieldType := valueField.Type() - for m := 0; m < valueFieldType.NumField(); m++ { - fieldName := valueFieldType.Field(m).Name - elementValue := valueField.FieldByName(fieldName) - key := prefix + name + "." + fieldName - if elementValue.Type().String() == "[]string" { - if elementValue.IsNil() { - continue - } - for j := 0; j < elementValue.Len(); j++ { - err = addParam(request, fieldPosition, key+"."+strconv.Itoa(j+1), elementValue.Index(j).String()) - if err != nil { - return - } - } - } else { - if elementValue.Type().Kind().String() == "string" { - value := elementValue.String() - err = addParam(request, fieldPosition, key, value) - if err != nil { - return - } - } else if elementValue.Type().Kind().String() == "struct" { - err = flatRepeatedList(elementValue, request, fieldPosition, key+".") - if err != nil { - return - } - } else if !elementValue.IsNil() { - repeatedFieldValue := elementValue.Elem() - if repeatedFieldValue.IsValid() && !repeatedFieldValue.IsNil() { - for m := 0; m < repeatedFieldValue.Len(); m++ { - elementValue := repeatedFieldValue.Index(m) - if elementValue.Type().Kind().String() == "string" { - value := elementValue.String() - err := addParam(request, fieldPosition, key+"."+strconv.Itoa(m+1), value) - if err != nil { - return err - } - } else { - err = flatRepeatedList(elementValue, request, fieldPosition, key+"."+strconv.Itoa(m+1)+".") - if err != nil { - return - } - } - } - } - } - } - } - } - return nil -} - -func addParam(request AcsRequest, position, name, value string) (err error) { - if len(value) > 0 { - switch position { - case Header: - request.addHeaderParam(name, value) - case Query: - request.addQueryParam(name, value) - case Path: - request.addPathParam(name, value) - case Body: - request.addFormParam(name, value) - default: - errMsg := fmt.Sprintf(errors.UnsupportedParamPositionErrorMessage, position) - err = errors.NewClientError(errors.UnsupportedParamPositionErrorCode, errMsg, nil) - } - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go deleted file mode 100644 index a27f82c00..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go +++ /dev/null @@ -1,112 +0,0 @@ -package requests - -import ( - "bytes" - "fmt" - "io" - "sort" - "strings" -) - -type CommonRequest struct { - *baseRequest - - Version string - ApiName string - Product string - ServiceCode string - EndpointType string - - // roa params - PathPattern string - PathParams map[string]string - - Ontology AcsRequest -} - -func NewCommonRequest() (request *CommonRequest) { - request = &CommonRequest{ - baseRequest: defaultBaseRequest(), - } - request.Headers["x-sdk-invoke-type"] = "common" - request.PathParams = make(map[string]string) - return -} - -func (request *CommonRequest) String() string { - request.TransToAcsRequest() - - resultBuilder := bytes.Buffer{} - - mapOutput := func(m map[string]string) { - if len(m) > 0 { - sortedKeys := make([]string, 0) - for k := range m { - sortedKeys = append(sortedKeys, k) - } - - // sort 'string' key in increasing order - sort.Strings(sortedKeys) - - for _, key := range sortedKeys { - resultBuilder.WriteString(key + ": " + m[key] + "\n") - } - } - } - - // Request Line - resultBuilder.WriteString(fmt.Sprintf("%s %s %s/1.1\n", request.Method, request.BuildQueries(), strings.ToUpper(request.Scheme))) - - // Headers - resultBuilder.WriteString("Host" + ": " + request.Domain + "\n") - mapOutput(request.Headers) - - resultBuilder.WriteString("\n") - // Body - if len(request.Content) > 0 { - resultBuilder.WriteString(string(request.Content) + "\n") - } else { - mapOutput(request.FormParams) - } - - return resultBuilder.String() -} - -func (request *CommonRequest) TransToAcsRequest() { - if len(request.PathPattern) > 0 { - roaRequest := &RoaRequest{} - roaRequest.initWithCommonRequest(request) - request.Ontology = roaRequest - } else { - rpcRequest := &RpcRequest{} - rpcRequest.baseRequest = request.baseRequest - rpcRequest.product = request.Product - rpcRequest.version = request.Version - rpcRequest.locationServiceCode = request.ServiceCode - rpcRequest.locationEndpointType = request.EndpointType - rpcRequest.actionName = request.ApiName - rpcRequest.Headers["x-acs-version"] = request.Version - rpcRequest.Headers["x-acs-action"] = request.ApiName - request.Ontology = rpcRequest - } -} - -func (request *CommonRequest) BuildUrl() string { - return request.Ontology.BuildUrl() -} - -func (request *CommonRequest) BuildQueries() string { - return request.Ontology.BuildQueries() -} - -func (request *CommonRequest) GetBodyReader() io.Reader { - return request.Ontology.GetBodyReader() -} - -func (request *CommonRequest) GetStyle() string { - return request.Ontology.GetStyle() -} - -func (request *CommonRequest) addPathParam(key, value string) { - request.PathParams[key] = value -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go deleted file mode 100644 index 4f52345b5..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go +++ /dev/null @@ -1,148 +0,0 @@ -/* - * 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. - */ - -package requests - -import ( - "bytes" - "fmt" - "io" - "net/url" - "sort" - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -type RoaRequest struct { - *baseRequest - pathPattern string - PathParams map[string]string -} - -func (*RoaRequest) GetStyle() string { - return ROA -} - -func (request *RoaRequest) GetBodyReader() io.Reader { - if request.FormParams != nil && len(request.FormParams) > 0 { - formString := utils.GetUrlFormedMap(request.FormParams) - return strings.NewReader(formString) - } else if len(request.Content) > 0 { - return bytes.NewReader(request.Content) - } else { - return nil - } -} - -// for sign method, need not url encoded -func (request *RoaRequest) BuildQueries() string { - return request.buildQueries() -} - -func (request *RoaRequest) buildPath() string { - path := request.pathPattern - for key, value := range request.PathParams { - path = strings.Replace(path, "["+key+"]", value, 1) - } - return path -} - -func (request *RoaRequest) buildQueries() string { - // replace path params with value - path := request.buildPath() - queryParams := request.QueryParams - // sort QueryParams by key - var queryKeys []string - for key := range queryParams { - queryKeys = append(queryKeys, key) - } - sort.Strings(queryKeys) - - // append urlBuilder - urlBuilder := bytes.Buffer{} - urlBuilder.WriteString(path) - if len(queryKeys) > 0 { - urlBuilder.WriteString("?") - } - for i := 0; i < len(queryKeys); i++ { - queryKey := queryKeys[i] - urlBuilder.WriteString(queryKey) - if value := queryParams[queryKey]; len(value) > 0 { - urlBuilder.WriteString("=") - urlBuilder.WriteString(value) - } - if i < len(queryKeys)-1 { - urlBuilder.WriteString("&") - } - } - result := urlBuilder.String() - return result -} - -func (request *RoaRequest) buildQueryString() string { - queryParams := request.QueryParams - // sort QueryParams by key - q := url.Values{} - for key, value := range queryParams { - q.Add(key, value) - } - return q.Encode() -} - -func (request *RoaRequest) BuildUrl() string { - // for network trans, need url encoded - scheme := strings.ToLower(request.Scheme) - domain := request.Domain - port := request.Port - path := request.buildPath() - url := fmt.Sprintf("%s://%s:%s%s", scheme, domain, port, path) - querystring := request.buildQueryString() - if len(querystring) > 0 { - url = fmt.Sprintf("%s?%s", url, querystring) - } - return url -} - -func (request *RoaRequest) addPathParam(key, value string) { - request.PathParams[key] = value -} - -func (request *RoaRequest) InitWithApiInfo(product, version, action, uriPattern, serviceCode, endpointType string) { - request.baseRequest = defaultBaseRequest() - request.PathParams = make(map[string]string) - request.Headers["x-acs-version"] = version - request.Headers["x-acs-action"] = action - request.pathPattern = uriPattern - request.locationServiceCode = serviceCode - request.locationEndpointType = endpointType - request.product = product - //request.version = version - request.actionName = action -} - -func (request *RoaRequest) initWithCommonRequest(commonRequest *CommonRequest) { - request.baseRequest = commonRequest.baseRequest - request.PathParams = commonRequest.PathParams - request.product = commonRequest.Product - //request.version = commonRequest.Version - request.Headers["x-acs-version"] = commonRequest.Version - if commonRequest.ApiName != "" { - request.Headers["x-acs-action"] = commonRequest.ApiName - } - request.actionName = commonRequest.ApiName - request.pathPattern = commonRequest.PathPattern - request.locationServiceCode = commonRequest.ServiceCode - request.locationEndpointType = "" -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go deleted file mode 100644 index a04765e94..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go +++ /dev/null @@ -1,81 +0,0 @@ -/* - * 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. - */ - -package requests - -import ( - "fmt" - "io" - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" -) - -type RpcRequest struct { - *baseRequest -} - -func (request *RpcRequest) init() { - request.baseRequest = defaultBaseRequest() - request.Method = POST -} - -func (*RpcRequest) GetStyle() string { - return RPC -} - -func (request *RpcRequest) GetBodyReader() io.Reader { - if request.FormParams != nil && len(request.FormParams) > 0 { - formString := utils.GetUrlFormedMap(request.FormParams) - return strings.NewReader(formString) - } else { - return strings.NewReader("") - } -} - -func (request *RpcRequest) BuildQueries() string { - request.queries = "/?" + utils.GetUrlFormedMap(request.QueryParams) - return request.queries -} - -func (request *RpcRequest) BuildUrl() string { - url := fmt.Sprintf("%s://%s", strings.ToLower(request.Scheme), request.Domain) - if len(request.Port) > 0 { - url = fmt.Sprintf("%s:%s", url, request.Port) - } - return url + request.BuildQueries() -} - -func (request *RpcRequest) GetVersion() string { - return request.version -} - -func (request *RpcRequest) GetActionName() string { - return request.actionName -} - -func (request *RpcRequest) addPathParam(key, value string) { - panic("not support") -} - -func (request *RpcRequest) InitWithApiInfo(product, version, action, serviceCode, endpointType string) { - request.init() - request.product = product - request.version = version - request.actionName = action - request.locationServiceCode = serviceCode - request.locationEndpointType = endpointType - request.Headers["x-acs-version"] = version - request.Headers["x-acs-action"] = action -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types.go deleted file mode 100644 index 28af63ea1..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types.go +++ /dev/null @@ -1,53 +0,0 @@ -package requests - -import "strconv" - -type Integer string - -func NewInteger(integer int) Integer { - return Integer(strconv.Itoa(integer)) -} - -func (integer Integer) HasValue() bool { - return integer != "" -} - -func (integer Integer) GetValue() (int, error) { - return strconv.Atoi(string(integer)) -} - -func NewInteger64(integer int64) Integer { - return Integer(strconv.FormatInt(integer, 10)) -} - -func (integer Integer) GetValue64() (int64, error) { - return strconv.ParseInt(string(integer), 10, 0) -} - -type Boolean string - -func NewBoolean(bool bool) Boolean { - return Boolean(strconv.FormatBool(bool)) -} - -func (boolean Boolean) HasValue() bool { - return boolean != "" -} - -func (boolean Boolean) GetValue() (bool, error) { - return strconv.ParseBool(string(boolean)) -} - -type Float string - -func NewFloat(f float64) Float { - return Float(strconv.FormatFloat(f, 'f', 6, 64)) -} - -func (float Float) HasValue() bool { - return float != "" -} - -func (float Float) GetValue() (float64, error) { - return strconv.ParseFloat(string(float), 64) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go deleted file mode 100644 index cd66316d7..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go +++ /dev/null @@ -1,333 +0,0 @@ -package responses - -import ( - "encoding/json" - "io" - "math" - "reflect" - "strconv" - "strings" - "unsafe" - - jsoniter "github.com/json-iterator/go" - "github.com/modern-go/reflect2" -) - -const maxUint = ^uint(0) -const maxInt = int(maxUint >> 1) -const minInt = -maxInt - 1 - -var jsonParser jsoniter.API - -func init() { - jsonParser = jsoniter.Config{ - EscapeHTML: true, - SortMapKeys: true, - ValidateJsonRawMessage: true, - CaseSensitive: true, - }.Froze() - - jsonParser.RegisterExtension(newBetterFuzzyExtension()) -} - -func newBetterFuzzyExtension() jsoniter.DecoderExtension { - return jsoniter.DecoderExtension{ - reflect2.DefaultTypeOfKind(reflect.String): &nullableFuzzyStringDecoder{}, - reflect2.DefaultTypeOfKind(reflect.Bool): &fuzzyBoolDecoder{}, - reflect2.DefaultTypeOfKind(reflect.Float32): &nullableFuzzyFloat32Decoder{}, - reflect2.DefaultTypeOfKind(reflect.Float64): &nullableFuzzyFloat64Decoder{}, - reflect2.DefaultTypeOfKind(reflect.Int): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(maxInt) || val < float64(minInt) { - iter.ReportError("fuzzy decode int", "exceed range") - return - } - *((*int)(ptr)) = int(val) - } else { - *((*int)(ptr)) = iter.ReadInt() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Uint): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(maxUint) || val < 0 { - iter.ReportError("fuzzy decode uint", "exceed range") - return - } - *((*uint)(ptr)) = uint(val) - } else { - *((*uint)(ptr)) = iter.ReadUint() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Int8): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxInt8) || val < float64(math.MinInt8) { - iter.ReportError("fuzzy decode int8", "exceed range") - return - } - *((*int8)(ptr)) = int8(val) - } else { - *((*int8)(ptr)) = iter.ReadInt8() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Uint8): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxUint8) || val < 0 { - iter.ReportError("fuzzy decode uint8", "exceed range") - return - } - *((*uint8)(ptr)) = uint8(val) - } else { - *((*uint8)(ptr)) = iter.ReadUint8() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Int16): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxInt16) || val < float64(math.MinInt16) { - iter.ReportError("fuzzy decode int16", "exceed range") - return - } - *((*int16)(ptr)) = int16(val) - } else { - *((*int16)(ptr)) = iter.ReadInt16() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Uint16): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxUint16) || val < 0 { - iter.ReportError("fuzzy decode uint16", "exceed range") - return - } - *((*uint16)(ptr)) = uint16(val) - } else { - *((*uint16)(ptr)) = iter.ReadUint16() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Int32): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxInt32) || val < float64(math.MinInt32) { - iter.ReportError("fuzzy decode int32", "exceed range") - return - } - *((*int32)(ptr)) = int32(val) - } else { - *((*int32)(ptr)) = iter.ReadInt32() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Uint32): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxUint32) || val < 0 { - iter.ReportError("fuzzy decode uint32", "exceed range") - return - } - *((*uint32)(ptr)) = uint32(val) - } else { - *((*uint32)(ptr)) = iter.ReadUint32() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Int64): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxInt64) || val < float64(math.MinInt64) { - iter.ReportError("fuzzy decode int64", "exceed range") - return - } - *((*int64)(ptr)) = int64(val) - } else { - *((*int64)(ptr)) = iter.ReadInt64() - } - }}, - reflect2.DefaultTypeOfKind(reflect.Uint64): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxUint64) || val < 0 { - iter.ReportError("fuzzy decode uint64", "exceed range") - return - } - *((*uint64)(ptr)) = uint64(val) - } else { - *((*uint64)(ptr)) = iter.ReadUint64() - } - }}, - } -} - -type nullableFuzzyStringDecoder struct { -} - -func (decoder *nullableFuzzyStringDecoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator) { - valueType := iter.WhatIsNext() - switch valueType { - case jsoniter.NumberValue: - var number json.Number - iter.ReadVal(&number) - *((*string)(ptr)) = string(number) - case jsoniter.StringValue: - *((*string)(ptr)) = iter.ReadString() - case jsoniter.BoolValue: - *((*string)(ptr)) = strconv.FormatBool(iter.ReadBool()) - case jsoniter.NilValue: - iter.ReadNil() - *((*string)(ptr)) = "" - default: - iter.ReportError("fuzzyStringDecoder", "not number or string or bool") - } -} - -type fuzzyBoolDecoder struct { -} - -func (decoder *fuzzyBoolDecoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator) { - valueType := iter.WhatIsNext() - switch valueType { - case jsoniter.BoolValue: - *((*bool)(ptr)) = iter.ReadBool() - case jsoniter.NumberValue: - var number json.Number - iter.ReadVal(&number) - num, err := number.Int64() - if err != nil { - iter.ReportError("fuzzyBoolDecoder", "get value from json.number failed") - } - if num == 0 { - *((*bool)(ptr)) = false - } else { - *((*bool)(ptr)) = true - } - case jsoniter.StringValue: - strValue := strings.ToLower(iter.ReadString()) - if strValue == "true" { - *((*bool)(ptr)) = true - } else if strValue == "false" || strValue == "" { - *((*bool)(ptr)) = false - } else { - iter.ReportError("fuzzyBoolDecoder", "unsupported bool value: "+strValue) - } - case jsoniter.NilValue: - iter.ReadNil() - *((*bool)(ptr)) = false - default: - iter.ReportError("fuzzyBoolDecoder", "not number or string or nil") - } -} - -type nullableFuzzyIntegerDecoder struct { - fun func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) -} - -func (decoder *nullableFuzzyIntegerDecoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator) { - valueType := iter.WhatIsNext() - var str string - switch valueType { - case jsoniter.NumberValue: - var number json.Number - iter.ReadVal(&number) - str = string(number) - case jsoniter.StringValue: - str = iter.ReadString() - // support empty string - if str == "" { - str = "0" - } - case jsoniter.BoolValue: - if iter.ReadBool() { - str = "1" - } else { - str = "0" - } - case jsoniter.NilValue: - iter.ReadNil() - str = "0" - default: - iter.ReportError("fuzzyIntegerDecoder", "not number or string") - } - newIter := iter.Pool().BorrowIterator([]byte(str)) - defer iter.Pool().ReturnIterator(newIter) - isFloat := strings.IndexByte(str, '.') != -1 - decoder.fun(isFloat, ptr, newIter) - if newIter.Error != nil && newIter.Error != io.EOF { - iter.Error = newIter.Error - } -} - -type nullableFuzzyFloat32Decoder struct { -} - -func (decoder *nullableFuzzyFloat32Decoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator) { - valueType := iter.WhatIsNext() - var str string - switch valueType { - case jsoniter.NumberValue: - *((*float32)(ptr)) = iter.ReadFloat32() - case jsoniter.StringValue: - str = iter.ReadString() - // support empty string - if str == "" { - *((*float32)(ptr)) = 0 - return - } - newIter := iter.Pool().BorrowIterator([]byte(str)) - defer iter.Pool().ReturnIterator(newIter) - *((*float32)(ptr)) = newIter.ReadFloat32() - if newIter.Error != nil && newIter.Error != io.EOF { - iter.Error = newIter.Error - } - case jsoniter.BoolValue: - // support bool to float32 - if iter.ReadBool() { - *((*float32)(ptr)) = 1 - } else { - *((*float32)(ptr)) = 0 - } - case jsoniter.NilValue: - iter.ReadNil() - *((*float32)(ptr)) = 0 - default: - iter.ReportError("nullableFuzzyFloat32Decoder", "not number or string") - } -} - -type nullableFuzzyFloat64Decoder struct { -} - -func (decoder *nullableFuzzyFloat64Decoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator) { - valueType := iter.WhatIsNext() - var str string - switch valueType { - case jsoniter.NumberValue: - *((*float64)(ptr)) = iter.ReadFloat64() - case jsoniter.StringValue: - str = iter.ReadString() - // support empty string - if str == "" { - *((*float64)(ptr)) = 0 - return - } - newIter := iter.Pool().BorrowIterator([]byte(str)) - defer iter.Pool().ReturnIterator(newIter) - *((*float64)(ptr)) = newIter.ReadFloat64() - if newIter.Error != nil && newIter.Error != io.EOF { - iter.Error = newIter.Error - } - case jsoniter.BoolValue: - // support bool to float64 - if iter.ReadBool() { - *((*float64)(ptr)) = 1 - } else { - *((*float64)(ptr)) = 0 - } - case jsoniter.NilValue: - // support empty string - iter.ReadNil() - *((*float64)(ptr)) = 0 - default: - iter.ReportError("nullableFuzzyFloat64Decoder", "not number or string") - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go deleted file mode 100644 index 53a156b71..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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. - */ - -package responses - -import ( - "bytes" - "encoding/xml" - "fmt" - "io/ioutil" - "net/http" - "strings" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" -) - -type AcsResponse interface { - IsSuccess() bool - GetHttpStatus() int - GetHttpHeaders() map[string][]string - GetHttpContentString() string - GetHttpContentBytes() []byte - GetOriginHttpResponse() *http.Response - parseFromHttpResponse(httpResponse *http.Response) error -} - -// Unmarshal object from http response body to target Response -func Unmarshal(response AcsResponse, httpResponse *http.Response, format string) (err error) { - err = response.parseFromHttpResponse(httpResponse) - if err != nil { - return - } - if !response.IsSuccess() { - err = errors.NewServerError(response.GetHttpStatus(), response.GetHttpContentString(), "") - return - } - - if _, isCommonResponse := response.(*CommonResponse); isCommonResponse { - // common response need not unmarshal - return - } - - if len(response.GetHttpContentBytes()) == 0 { - return - } - - if strings.ToUpper(format) == "JSON" { - err = jsonParser.Unmarshal(response.GetHttpContentBytes(), response) - if err != nil { - err = errors.NewClientError(errors.JsonUnmarshalErrorCode, errors.JsonUnmarshalErrorMessage, err) - } - } else if strings.ToUpper(format) == "XML" { - err = xml.Unmarshal(response.GetHttpContentBytes(), response) - } - return -} - -type BaseResponse struct { - httpStatus int - httpHeaders map[string][]string - httpContentString string - httpContentBytes []byte - originHttpResponse *http.Response -} - -func (baseResponse *BaseResponse) GetHttpStatus() int { - return baseResponse.httpStatus -} - -func (baseResponse *BaseResponse) GetHttpHeaders() map[string][]string { - return baseResponse.httpHeaders -} - -func (baseResponse *BaseResponse) GetHttpContentString() string { - return baseResponse.httpContentString -} - -func (baseResponse *BaseResponse) GetHttpContentBytes() []byte { - return baseResponse.httpContentBytes -} - -func (baseResponse *BaseResponse) GetOriginHttpResponse() *http.Response { - return baseResponse.originHttpResponse -} - -func (baseResponse *BaseResponse) IsSuccess() bool { - if baseResponse.GetHttpStatus() >= 200 && baseResponse.GetHttpStatus() < 300 { - return true - } - - return false -} - -func (baseResponse *BaseResponse) parseFromHttpResponse(httpResponse *http.Response) (err error) { - defer httpResponse.Body.Close() - body, err := ioutil.ReadAll(httpResponse.Body) - if err != nil { - return - } - baseResponse.httpStatus = httpResponse.StatusCode - baseResponse.httpHeaders = httpResponse.Header - baseResponse.httpContentBytes = body - baseResponse.httpContentString = string(body) - baseResponse.originHttpResponse = httpResponse - return -} - -func (baseResponse *BaseResponse) String() string { - resultBuilder := bytes.Buffer{} - // statusCode - // resultBuilder.WriteString("\n") - resultBuilder.WriteString(fmt.Sprintf("%s %s\n", baseResponse.originHttpResponse.Proto, baseResponse.originHttpResponse.Status)) - // httpHeaders - //resultBuilder.WriteString("Headers:\n") - for key, value := range baseResponse.httpHeaders { - resultBuilder.WriteString(key + ": " + strings.Join(value, ";") + "\n") - } - resultBuilder.WriteString("\n") - // content - //resultBuilder.WriteString("Content:\n") - resultBuilder.WriteString(baseResponse.httpContentString + "\n") - return resultBuilder.String() -} - -type CommonResponse struct { - *BaseResponse -} - -func NewCommonResponse() (response *CommonResponse) { - return &CommonResponse{ - BaseResponse: &BaseResponse{}, - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/debug.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/debug.go deleted file mode 100644 index 09440d27b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/debug.go +++ /dev/null @@ -1,36 +0,0 @@ -package utils - -import ( - "fmt" - "os" - "strings" -) - -type Debug func(format string, v ...interface{}) - -var hookGetEnv = func() string { - return os.Getenv("DEBUG") -} - -var hookPrint = func(input string) { - fmt.Println(input) -} - -func Init(flag string) Debug { - enable := false - - env := hookGetEnv() - parts := strings.Split(env, ",") - for _, part := range parts { - if part == flag { - enable = true - break - } - } - - return func(format string, v ...interface{}) { - if enable { - hookPrint(fmt.Sprintf(format, v...)) - } - } -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go deleted file mode 100644 index f8a3ad384..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go +++ /dev/null @@ -1,141 +0,0 @@ -/* - * 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. - */ - -package utils - -import ( - "crypto/md5" - "crypto/rand" - "encoding/base64" - "encoding/hex" - "hash" - rand2 "math/rand" - "net/url" - "reflect" - "strconv" - "time" -) - -type UUID [16]byte - -const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" - -func GetUUID() (uuidHex string) { - uuid := NewUUID() - uuidHex = hex.EncodeToString(uuid[:]) - return -} - -func RandStringBytes(n int) string { - b := make([]byte, n) - for i := range b { - b[i] = letterBytes[rand2.Intn(len(letterBytes))] - } - return string(b) -} - -func GetMD5Base64(bytes []byte) (base64Value string) { - md5Ctx := md5.New() - md5Ctx.Write(bytes) - md5Value := md5Ctx.Sum(nil) - base64Value = base64.StdEncoding.EncodeToString(md5Value) - return -} - -func GetTimeInFormatISO8601() (timeStr string) { - gmt := time.FixedZone("GMT", 0) - - return time.Now().In(gmt).Format("2006-01-02T15:04:05Z") -} - -func GetTimeInFormatRFC2616() (timeStr string) { - gmt := time.FixedZone("GMT", 0) - - return time.Now().In(gmt).Format("Mon, 02 Jan 2006 15:04:05 GMT") -} - -func GetUrlFormedMap(source map[string]string) (urlEncoded string) { - urlEncoder := url.Values{} - for key, value := range source { - urlEncoder.Add(key, value) - } - urlEncoded = urlEncoder.Encode() - return -} - -func InitStructWithDefaultTag(bean interface{}) { - configType := reflect.TypeOf(bean) - for i := 0; i < configType.Elem().NumField(); i++ { - field := configType.Elem().Field(i) - defaultValue := field.Tag.Get("default") - if defaultValue == "" { - continue - } - setter := reflect.ValueOf(bean).Elem().Field(i) - switch field.Type.String() { - case "int": - intValue, _ := strconv.ParseInt(defaultValue, 10, 64) - setter.SetInt(intValue) - case "time.Duration": - intValue, _ := strconv.ParseInt(defaultValue, 10, 64) - setter.SetInt(intValue) - case "string": - setter.SetString(defaultValue) - case "bool": - boolValue, _ := strconv.ParseBool(defaultValue) - setter.SetBool(boolValue) - } - } -} - -func NewUUID() UUID { - ns := UUID{} - safeRandom(ns[:]) - u := newFromHash(md5.New(), ns, RandStringBytes(16)) - u[6] = (u[6] & 0x0f) | (byte(2) << 4) - u[8] = (u[8]&(0xff>>2) | (0x02 << 6)) - - return u -} - -func newFromHash(h hash.Hash, ns UUID, name string) UUID { - u := UUID{} - h.Write(ns[:]) - h.Write([]byte(name)) - copy(u[:], h.Sum(nil)) - - return u -} - -func safeRandom(dest []byte) { - if _, err := rand.Read(dest); err != nil { - panic(err) - } -} - -func (u UUID) String() string { - buf := make([]byte, 36) - - hex.Encode(buf[0:8], u[0:4]) - buf[8] = '-' - hex.Encode(buf[9:13], u[4:6]) - buf[13] = '-' - hex.Encode(buf[14:18], u[6:8]) - buf[18] = '-' - hex.Encode(buf[19:23], u[8:10]) - buf[23] = '-' - hex.Encode(buf[24:], u[10:]) - - return string(buf) -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_custom_line.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_custom_line.go deleted file mode 100644 index 917d9fbab..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_custom_line.go +++ /dev/null @@ -1,111 +0,0 @@ -package alidns - -//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" -) - -// AddCustomLine invokes the alidns.AddCustomLine API synchronously -func (client *Client) AddCustomLine(request *AddCustomLineRequest) (response *AddCustomLineResponse, err error) { - response = CreateAddCustomLineResponse() - err = client.DoAction(request, response) - return -} - -// AddCustomLineWithChan invokes the alidns.AddCustomLine API asynchronously -func (client *Client) AddCustomLineWithChan(request *AddCustomLineRequest) (<-chan *AddCustomLineResponse, <-chan error) { - responseChan := make(chan *AddCustomLineResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddCustomLine(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddCustomLineWithCallback invokes the alidns.AddCustomLine API asynchronously -func (client *Client) AddCustomLineWithCallback(request *AddCustomLineRequest, callback func(response *AddCustomLineResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddCustomLineResponse - var err error - defer close(result) - response, err = client.AddCustomLine(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddCustomLineRequest is the request struct for api AddCustomLine -type AddCustomLineRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - IpSegment *[]AddCustomLineIpSegment `position:"Query" name:"IpSegment" type:"Repeated"` - UserClientIp string `position:"Query" name:"UserClientIp"` - LineName string `position:"Query" name:"LineName"` - Lang string `position:"Query" name:"Lang"` -} - -// AddCustomLineIpSegment is a repeated param struct in AddCustomLineRequest -type AddCustomLineIpSegment struct { - EndIp string `name:"EndIp"` - StartIp string `name:"StartIp"` -} - -// AddCustomLineResponse is the response struct for api AddCustomLine -type AddCustomLineResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - LineId int64 `json:"LineId" xml:"LineId"` - LineCode string `json:"LineCode" xml:"LineCode"` -} - -// CreateAddCustomLineRequest creates a request to invoke AddCustomLine API -func CreateAddCustomLineRequest() (request *AddCustomLineRequest) { - request = &AddCustomLineRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "AddCustomLine", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddCustomLineResponse creates a response to parse from AddCustomLine response -func CreateAddCustomLineResponse() (response *AddCustomLineResponse) { - response = &AddCustomLineResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_cache_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_cache_domain.go deleted file mode 100644 index bf9ba94c5..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_cache_domain.go +++ /dev/null @@ -1,114 +0,0 @@ -package alidns - -//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" -) - -// AddDnsCacheDomain invokes the alidns.AddDnsCacheDomain API synchronously -func (client *Client) AddDnsCacheDomain(request *AddDnsCacheDomainRequest) (response *AddDnsCacheDomainResponse, err error) { - response = CreateAddDnsCacheDomainResponse() - err = client.DoAction(request, response) - return -} - -// AddDnsCacheDomainWithChan invokes the alidns.AddDnsCacheDomain API asynchronously -func (client *Client) AddDnsCacheDomainWithChan(request *AddDnsCacheDomainRequest) (<-chan *AddDnsCacheDomainResponse, <-chan error) { - responseChan := make(chan *AddDnsCacheDomainResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddDnsCacheDomain(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddDnsCacheDomainWithCallback invokes the alidns.AddDnsCacheDomain API asynchronously -func (client *Client) AddDnsCacheDomainWithCallback(request *AddDnsCacheDomainRequest, callback func(response *AddDnsCacheDomainResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddDnsCacheDomainResponse - var err error - defer close(result) - response, err = client.AddDnsCacheDomain(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddDnsCacheDomainRequest is the request struct for api AddDnsCacheDomain -type AddDnsCacheDomainRequest struct { - *requests.RpcRequest - Remark string `position:"Query" name:"Remark"` - SourceProtocol string `position:"Query" name:"SourceProtocol"` - Lang string `position:"Query" name:"Lang"` - DomainName string `position:"Query" name:"DomainName"` - CacheTtlMax requests.Integer `position:"Query" name:"CacheTtlMax"` - InstanceId string `position:"Query" name:"InstanceId"` - SourceEdns string `position:"Query" name:"SourceEdns"` - UserClientIp string `position:"Query" name:"UserClientIp"` - CacheTtlMin requests.Integer `position:"Query" name:"CacheTtlMin"` - SourceDnsServer *[]AddDnsCacheDomainSourceDnsServer `position:"Query" name:"SourceDnsServer" type:"Repeated"` -} - -// AddDnsCacheDomainSourceDnsServer is a repeated param struct in AddDnsCacheDomainRequest -type AddDnsCacheDomainSourceDnsServer struct { - Port string `name:"Port"` - Host string `name:"Host"` -} - -// AddDnsCacheDomainResponse is the response struct for api AddDnsCacheDomain -type AddDnsCacheDomainResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAddDnsCacheDomainRequest creates a request to invoke AddDnsCacheDomain API -func CreateAddDnsCacheDomainRequest() (request *AddDnsCacheDomainRequest) { - request = &AddDnsCacheDomainRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "AddDnsCacheDomain", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddDnsCacheDomainResponse creates a response to parse from AddDnsCacheDomain response -func CreateAddDnsCacheDomainResponse() (response *AddDnsCacheDomainResponse) { - response = &AddDnsCacheDomainResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_gtm_access_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_gtm_access_strategy.go deleted file mode 100644 index b2d6a2d21..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_gtm_access_strategy.go +++ /dev/null @@ -1,129 +0,0 @@ -package alidns - -//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" -) - -// AddDnsGtmAccessStrategy invokes the alidns.AddDnsGtmAccessStrategy API synchronously -func (client *Client) AddDnsGtmAccessStrategy(request *AddDnsGtmAccessStrategyRequest) (response *AddDnsGtmAccessStrategyResponse, err error) { - response = CreateAddDnsGtmAccessStrategyResponse() - err = client.DoAction(request, response) - return -} - -// AddDnsGtmAccessStrategyWithChan invokes the alidns.AddDnsGtmAccessStrategy API asynchronously -func (client *Client) AddDnsGtmAccessStrategyWithChan(request *AddDnsGtmAccessStrategyRequest) (<-chan *AddDnsGtmAccessStrategyResponse, <-chan error) { - responseChan := make(chan *AddDnsGtmAccessStrategyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddDnsGtmAccessStrategy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddDnsGtmAccessStrategyWithCallback invokes the alidns.AddDnsGtmAccessStrategy API asynchronously -func (client *Client) AddDnsGtmAccessStrategyWithCallback(request *AddDnsGtmAccessStrategyRequest, callback func(response *AddDnsGtmAccessStrategyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddDnsGtmAccessStrategyResponse - var err error - defer close(result) - response, err = client.AddDnsGtmAccessStrategy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddDnsGtmAccessStrategyRequest is the request struct for api AddDnsGtmAccessStrategy -type AddDnsGtmAccessStrategyRequest struct { - *requests.RpcRequest - DefaultLbaStrategy string `position:"Query" name:"DefaultLbaStrategy"` - FailoverAddrPoolType string `position:"Query" name:"FailoverAddrPoolType"` - DefaultAddrPoolType string `position:"Query" name:"DefaultAddrPoolType"` - FailoverMaxReturnAddrNum requests.Integer `position:"Query" name:"FailoverMaxReturnAddrNum"` - FailoverLbaStrategy string `position:"Query" name:"FailoverLbaStrategy"` - DefaultAddrPool *[]AddDnsGtmAccessStrategyDefaultAddrPool `position:"Query" name:"DefaultAddrPool" type:"Repeated"` - FailoverMinAvailableAddrNum requests.Integer `position:"Query" name:"FailoverMinAvailableAddrNum"` - DefaultMaxReturnAddrNum requests.Integer `position:"Query" name:"DefaultMaxReturnAddrNum"` - DefaultMinAvailableAddrNum requests.Integer `position:"Query" name:"DefaultMinAvailableAddrNum"` - StrategyMode string `position:"Query" name:"StrategyMode"` - Lang string `position:"Query" name:"Lang"` - Lines string `position:"Query" name:"Lines"` - StrategyName string `position:"Query" name:"StrategyName"` - DefaultLatencyOptimization string `position:"Query" name:"DefaultLatencyOptimization"` - InstanceId string `position:"Query" name:"InstanceId"` - FailoverLatencyOptimization string `position:"Query" name:"FailoverLatencyOptimization"` - UserClientIp string `position:"Query" name:"UserClientIp"` - FailoverAddrPool *[]AddDnsGtmAccessStrategyFailoverAddrPool `position:"Query" name:"FailoverAddrPool" type:"Repeated"` -} - -// AddDnsGtmAccessStrategyDefaultAddrPool is a repeated param struct in AddDnsGtmAccessStrategyRequest -type AddDnsGtmAccessStrategyDefaultAddrPool struct { - Id string `name:"Id"` - LbaWeight string `name:"LbaWeight"` -} - -// AddDnsGtmAccessStrategyFailoverAddrPool is a repeated param struct in AddDnsGtmAccessStrategyRequest -type AddDnsGtmAccessStrategyFailoverAddrPool struct { - Id string `name:"Id"` - LbaWeight string `name:"LbaWeight"` -} - -// AddDnsGtmAccessStrategyResponse is the response struct for api AddDnsGtmAccessStrategy -type AddDnsGtmAccessStrategyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - StrategyId string `json:"StrategyId" xml:"StrategyId"` -} - -// CreateAddDnsGtmAccessStrategyRequest creates a request to invoke AddDnsGtmAccessStrategy API -func CreateAddDnsGtmAccessStrategyRequest() (request *AddDnsGtmAccessStrategyRequest) { - request = &AddDnsGtmAccessStrategyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "AddDnsGtmAccessStrategy", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddDnsGtmAccessStrategyResponse creates a response to parse from AddDnsGtmAccessStrategy response -func CreateAddDnsGtmAccessStrategyResponse() (response *AddDnsGtmAccessStrategyResponse) { - response = &AddDnsGtmAccessStrategyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_gtm_address_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_gtm_address_pool.go deleted file mode 100644 index 71f1e9487..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_gtm_address_pool.go +++ /dev/null @@ -1,129 +0,0 @@ -package alidns - -//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" -) - -// AddDnsGtmAddressPool invokes the alidns.AddDnsGtmAddressPool API synchronously -func (client *Client) AddDnsGtmAddressPool(request *AddDnsGtmAddressPoolRequest) (response *AddDnsGtmAddressPoolResponse, err error) { - response = CreateAddDnsGtmAddressPoolResponse() - err = client.DoAction(request, response) - return -} - -// AddDnsGtmAddressPoolWithChan invokes the alidns.AddDnsGtmAddressPool API asynchronously -func (client *Client) AddDnsGtmAddressPoolWithChan(request *AddDnsGtmAddressPoolRequest) (<-chan *AddDnsGtmAddressPoolResponse, <-chan error) { - responseChan := make(chan *AddDnsGtmAddressPoolResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddDnsGtmAddressPool(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddDnsGtmAddressPoolWithCallback invokes the alidns.AddDnsGtmAddressPool API asynchronously -func (client *Client) AddDnsGtmAddressPoolWithCallback(request *AddDnsGtmAddressPoolRequest, callback func(response *AddDnsGtmAddressPoolResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddDnsGtmAddressPoolResponse - var err error - defer close(result) - response, err = client.AddDnsGtmAddressPool(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddDnsGtmAddressPoolRequest is the request struct for api AddDnsGtmAddressPool -type AddDnsGtmAddressPoolRequest struct { - *requests.RpcRequest - MonitorExtendInfo string `position:"Query" name:"MonitorExtendInfo"` - LbaStrategy string `position:"Query" name:"LbaStrategy"` - Type string `position:"Query" name:"Type"` - Timeout requests.Integer `position:"Query" name:"Timeout"` - EvaluationCount requests.Integer `position:"Query" name:"EvaluationCount"` - Lang string `position:"Query" name:"Lang"` - Addr *[]AddDnsGtmAddressPoolAddr `position:"Query" name:"Addr" type:"Repeated"` - MonitorStatus string `position:"Query" name:"MonitorStatus"` - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Name string `position:"Query" name:"Name"` - ProtocolType string `position:"Query" name:"ProtocolType"` - Interval requests.Integer `position:"Query" name:"Interval"` - IspCityNode *[]AddDnsGtmAddressPoolIspCityNode `position:"Query" name:"IspCityNode" type:"Repeated"` -} - -// AddDnsGtmAddressPoolAddr is a repeated param struct in AddDnsGtmAddressPoolRequest -type AddDnsGtmAddressPoolAddr struct { - Mode string `name:"Mode"` - AttributeInfo string `name:"AttributeInfo"` - Remark string `name:"Remark"` - Addr string `name:"Addr"` - LbaWeight string `name:"LbaWeight"` -} - -// AddDnsGtmAddressPoolIspCityNode is a repeated param struct in AddDnsGtmAddressPoolRequest -type AddDnsGtmAddressPoolIspCityNode struct { - CityCode string `name:"CityCode"` - IspCode string `name:"IspCode"` -} - -// AddDnsGtmAddressPoolResponse is the response struct for api AddDnsGtmAddressPool -type AddDnsGtmAddressPoolResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AddrPoolId string `json:"AddrPoolId" xml:"AddrPoolId"` - MonitorConfigId string `json:"MonitorConfigId" xml:"MonitorConfigId"` -} - -// CreateAddDnsGtmAddressPoolRequest creates a request to invoke AddDnsGtmAddressPool API -func CreateAddDnsGtmAddressPoolRequest() (request *AddDnsGtmAddressPoolRequest) { - request = &AddDnsGtmAddressPoolRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "AddDnsGtmAddressPool", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddDnsGtmAddressPoolResponse creates a response to parse from AddDnsGtmAddressPool response -func CreateAddDnsGtmAddressPoolResponse() (response *AddDnsGtmAddressPoolResponse) { - response = &AddDnsGtmAddressPoolResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_gtm_monitor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_gtm_monitor.go deleted file mode 100644 index bcf04edfc..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_dns_gtm_monitor.go +++ /dev/null @@ -1,114 +0,0 @@ -package alidns - -//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" -) - -// AddDnsGtmMonitor invokes the alidns.AddDnsGtmMonitor API synchronously -func (client *Client) AddDnsGtmMonitor(request *AddDnsGtmMonitorRequest) (response *AddDnsGtmMonitorResponse, err error) { - response = CreateAddDnsGtmMonitorResponse() - err = client.DoAction(request, response) - return -} - -// AddDnsGtmMonitorWithChan invokes the alidns.AddDnsGtmMonitor API asynchronously -func (client *Client) AddDnsGtmMonitorWithChan(request *AddDnsGtmMonitorRequest) (<-chan *AddDnsGtmMonitorResponse, <-chan error) { - responseChan := make(chan *AddDnsGtmMonitorResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddDnsGtmMonitor(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddDnsGtmMonitorWithCallback invokes the alidns.AddDnsGtmMonitor API asynchronously -func (client *Client) AddDnsGtmMonitorWithCallback(request *AddDnsGtmMonitorRequest, callback func(response *AddDnsGtmMonitorResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddDnsGtmMonitorResponse - var err error - defer close(result) - response, err = client.AddDnsGtmMonitor(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddDnsGtmMonitorRequest is the request struct for api AddDnsGtmMonitor -type AddDnsGtmMonitorRequest struct { - *requests.RpcRequest - MonitorExtendInfo string `position:"Query" name:"MonitorExtendInfo"` - Timeout requests.Integer `position:"Query" name:"Timeout"` - AddrPoolId string `position:"Query" name:"AddrPoolId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - EvaluationCount requests.Integer `position:"Query" name:"EvaluationCount"` - ProtocolType string `position:"Query" name:"ProtocolType"` - Interval requests.Integer `position:"Query" name:"Interval"` - Lang string `position:"Query" name:"Lang"` - IspCityNode *[]AddDnsGtmMonitorIspCityNode `position:"Query" name:"IspCityNode" type:"Repeated"` -} - -// AddDnsGtmMonitorIspCityNode is a repeated param struct in AddDnsGtmMonitorRequest -type AddDnsGtmMonitorIspCityNode struct { - CityCode string `name:"CityCode"` - IspCode string `name:"IspCode"` -} - -// AddDnsGtmMonitorResponse is the response struct for api AddDnsGtmMonitor -type AddDnsGtmMonitorResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - MonitorConfigId string `json:"MonitorConfigId" xml:"MonitorConfigId"` -} - -// CreateAddDnsGtmMonitorRequest creates a request to invoke AddDnsGtmMonitor API -func CreateAddDnsGtmMonitorRequest() (request *AddDnsGtmMonitorRequest) { - request = &AddDnsGtmMonitorRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "AddDnsGtmMonitor", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddDnsGtmMonitorResponse creates a response to parse from AddDnsGtmMonitor response -func CreateAddDnsGtmMonitorResponse() (response *AddDnsGtmMonitorResponse) { - response = &AddDnsGtmMonitorResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain.go deleted file mode 100644 index 67f2e6950..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain.go +++ /dev/null @@ -1,109 +0,0 @@ -package alidns - -//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" -) - -// AddDomain invokes the alidns.AddDomain API synchronously -func (client *Client) AddDomain(request *AddDomainRequest) (response *AddDomainResponse, err error) { - response = CreateAddDomainResponse() - err = client.DoAction(request, response) - return -} - -// AddDomainWithChan invokes the alidns.AddDomain API asynchronously -func (client *Client) AddDomainWithChan(request *AddDomainRequest) (<-chan *AddDomainResponse, <-chan error) { - responseChan := make(chan *AddDomainResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddDomain(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddDomainWithCallback invokes the alidns.AddDomain API asynchronously -func (client *Client) AddDomainWithCallback(request *AddDomainRequest, callback func(response *AddDomainResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddDomainResponse - var err error - defer close(result) - response, err = client.AddDomain(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddDomainRequest is the request struct for api AddDomain -type AddDomainRequest struct { - *requests.RpcRequest - GroupId string `position:"Query" name:"GroupId"` - DomainName string `position:"Query" name:"DomainName"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// AddDomainResponse is the response struct for api AddDomain -type AddDomainResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - DomainId string `json:"DomainId" xml:"DomainId"` - DomainName string `json:"DomainName" xml:"DomainName"` - PunyCode string `json:"PunyCode" xml:"PunyCode"` - GroupId string `json:"GroupId" xml:"GroupId"` - GroupName string `json:"GroupName" xml:"GroupName"` - DnsServers DnsServersInAddDomain `json:"DnsServers" xml:"DnsServers"` -} - -// CreateAddDomainRequest creates a request to invoke AddDomain API -func CreateAddDomainRequest() (request *AddDomainRequest) { - request = &AddDomainRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "AddDomain", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddDomainResponse creates a response to parse from AddDomain response -func CreateAddDomainResponse() (response *AddDomainResponse) { - response = &AddDomainResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_backup.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_backup.go deleted file mode 100644 index 296cf39bc..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_backup.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// AddDomainBackup invokes the alidns.AddDomainBackup API synchronously -func (client *Client) AddDomainBackup(request *AddDomainBackupRequest) (response *AddDomainBackupResponse, err error) { - response = CreateAddDomainBackupResponse() - err = client.DoAction(request, response) - return -} - -// AddDomainBackupWithChan invokes the alidns.AddDomainBackup API asynchronously -func (client *Client) AddDomainBackupWithChan(request *AddDomainBackupRequest) (<-chan *AddDomainBackupResponse, <-chan error) { - responseChan := make(chan *AddDomainBackupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddDomainBackup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddDomainBackupWithCallback invokes the alidns.AddDomainBackup API asynchronously -func (client *Client) AddDomainBackupWithCallback(request *AddDomainBackupRequest, callback func(response *AddDomainBackupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddDomainBackupResponse - var err error - defer close(result) - response, err = client.AddDomainBackup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddDomainBackupRequest is the request struct for api AddDomainBackup -type AddDomainBackupRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - PeriodType string `position:"Query" name:"PeriodType"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// AddDomainBackupResponse is the response struct for api AddDomainBackup -type AddDomainBackupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - DomainName string `json:"DomainName" xml:"DomainName"` - PeriodType string `json:"PeriodType" xml:"PeriodType"` -} - -// CreateAddDomainBackupRequest creates a request to invoke AddDomainBackup API -func CreateAddDomainBackupRequest() (request *AddDomainBackupRequest) { - request = &AddDomainBackupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "AddDomainBackup", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddDomainBackupResponse creates a response to parse from AddDomainBackup response -func CreateAddDomainBackupResponse() (response *AddDomainBackupResponse) { - response = &AddDomainBackupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_group.go deleted file mode 100644 index 1a27e65d8..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_group.go +++ /dev/null @@ -1,103 +0,0 @@ -package alidns - -//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" -) - -// AddDomainGroup invokes the alidns.AddDomainGroup API synchronously -func (client *Client) AddDomainGroup(request *AddDomainGroupRequest) (response *AddDomainGroupResponse, err error) { - response = CreateAddDomainGroupResponse() - err = client.DoAction(request, response) - return -} - -// AddDomainGroupWithChan invokes the alidns.AddDomainGroup API asynchronously -func (client *Client) AddDomainGroupWithChan(request *AddDomainGroupRequest) (<-chan *AddDomainGroupResponse, <-chan error) { - responseChan := make(chan *AddDomainGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddDomainGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddDomainGroupWithCallback invokes the alidns.AddDomainGroup API asynchronously -func (client *Client) AddDomainGroupWithCallback(request *AddDomainGroupRequest, callback func(response *AddDomainGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddDomainGroupResponse - var err error - defer close(result) - response, err = client.AddDomainGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddDomainGroupRequest is the request struct for api AddDomainGroup -type AddDomainGroupRequest struct { - *requests.RpcRequest - GroupName string `position:"Query" name:"GroupName"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// AddDomainGroupResponse is the response struct for api AddDomainGroup -type AddDomainGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - GroupId string `json:"GroupId" xml:"GroupId"` - GroupName string `json:"GroupName" xml:"GroupName"` -} - -// CreateAddDomainGroupRequest creates a request to invoke AddDomainGroup API -func CreateAddDomainGroupRequest() (request *AddDomainGroupRequest) { - request = &AddDomainGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "AddDomainGroup", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddDomainGroupResponse creates a response to parse from AddDomainGroup response -func CreateAddDomainGroupResponse() (response *AddDomainGroupResponse) { - response = &AddDomainGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_record.go deleted file mode 100644 index d13ceac3f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_domain_record.go +++ /dev/null @@ -1,108 +0,0 @@ -package alidns - -//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" -) - -// AddDomainRecord invokes the alidns.AddDomainRecord API synchronously -func (client *Client) AddDomainRecord(request *AddDomainRecordRequest) (response *AddDomainRecordResponse, err error) { - response = CreateAddDomainRecordResponse() - err = client.DoAction(request, response) - return -} - -// AddDomainRecordWithChan invokes the alidns.AddDomainRecord API asynchronously -func (client *Client) AddDomainRecordWithChan(request *AddDomainRecordRequest) (<-chan *AddDomainRecordResponse, <-chan error) { - responseChan := make(chan *AddDomainRecordResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddDomainRecord(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddDomainRecordWithCallback invokes the alidns.AddDomainRecord API asynchronously -func (client *Client) AddDomainRecordWithCallback(request *AddDomainRecordRequest, callback func(response *AddDomainRecordResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddDomainRecordResponse - var err error - defer close(result) - response, err = client.AddDomainRecord(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddDomainRecordRequest is the request struct for api AddDomainRecord -type AddDomainRecordRequest struct { - *requests.RpcRequest - RR string `position:"Query" name:"RR"` - Line string `position:"Query" name:"Line"` - Type string `position:"Query" name:"Type"` - Lang string `position:"Query" name:"Lang"` - Value string `position:"Query" name:"Value"` - DomainName string `position:"Query" name:"DomainName"` - Priority requests.Integer `position:"Query" name:"Priority"` - TTL requests.Integer `position:"Query" name:"TTL"` - UserClientIp string `position:"Query" name:"UserClientIp"` -} - -// AddDomainRecordResponse is the response struct for api AddDomainRecord -type AddDomainRecordResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecordId string `json:"RecordId" xml:"RecordId"` -} - -// CreateAddDomainRecordRequest creates a request to invoke AddDomainRecord API -func CreateAddDomainRecordRequest() (request *AddDomainRecordRequest) { - request = &AddDomainRecordRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "AddDomainRecord", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddDomainRecordResponse creates a response to parse from AddDomainRecord response -func CreateAddDomainRecordResponse() (response *AddDomainRecordResponse) { - response = &AddDomainRecordResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_access_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_access_strategy.go deleted file mode 100644 index 0a3bee05f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_access_strategy.go +++ /dev/null @@ -1,106 +0,0 @@ -package alidns - -//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" -) - -// AddGtmAccessStrategy invokes the alidns.AddGtmAccessStrategy API synchronously -func (client *Client) AddGtmAccessStrategy(request *AddGtmAccessStrategyRequest) (response *AddGtmAccessStrategyResponse, err error) { - response = CreateAddGtmAccessStrategyResponse() - err = client.DoAction(request, response) - return -} - -// AddGtmAccessStrategyWithChan invokes the alidns.AddGtmAccessStrategy API asynchronously -func (client *Client) AddGtmAccessStrategyWithChan(request *AddGtmAccessStrategyRequest) (<-chan *AddGtmAccessStrategyResponse, <-chan error) { - responseChan := make(chan *AddGtmAccessStrategyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddGtmAccessStrategy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddGtmAccessStrategyWithCallback invokes the alidns.AddGtmAccessStrategy API asynchronously -func (client *Client) AddGtmAccessStrategyWithCallback(request *AddGtmAccessStrategyRequest, callback func(response *AddGtmAccessStrategyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddGtmAccessStrategyResponse - var err error - defer close(result) - response, err = client.AddGtmAccessStrategy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddGtmAccessStrategyRequest is the request struct for api AddGtmAccessStrategy -type AddGtmAccessStrategyRequest struct { - *requests.RpcRequest - DefaultAddrPoolId string `position:"Query" name:"DefaultAddrPoolId"` - FailoverAddrPoolId string `position:"Query" name:"FailoverAddrPoolId"` - StrategyName string `position:"Query" name:"StrategyName"` - AccessLines string `position:"Query" name:"AccessLines"` - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// AddGtmAccessStrategyResponse is the response struct for api AddGtmAccessStrategy -type AddGtmAccessStrategyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - StrategyId string `json:"StrategyId" xml:"StrategyId"` -} - -// CreateAddGtmAccessStrategyRequest creates a request to invoke AddGtmAccessStrategy API -func CreateAddGtmAccessStrategyRequest() (request *AddGtmAccessStrategyRequest) { - request = &AddGtmAccessStrategyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "AddGtmAccessStrategy", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddGtmAccessStrategyResponse creates a response to parse from AddGtmAccessStrategy response -func CreateAddGtmAccessStrategyResponse() (response *AddGtmAccessStrategyResponse) { - response = &AddGtmAccessStrategyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_address_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_address_pool.go deleted file mode 100644 index 9e601600e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_address_pool.go +++ /dev/null @@ -1,127 +0,0 @@ -package alidns - -//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" -) - -// AddGtmAddressPool invokes the alidns.AddGtmAddressPool API synchronously -func (client *Client) AddGtmAddressPool(request *AddGtmAddressPoolRequest) (response *AddGtmAddressPoolResponse, err error) { - response = CreateAddGtmAddressPoolResponse() - err = client.DoAction(request, response) - return -} - -// AddGtmAddressPoolWithChan invokes the alidns.AddGtmAddressPool API asynchronously -func (client *Client) AddGtmAddressPoolWithChan(request *AddGtmAddressPoolRequest) (<-chan *AddGtmAddressPoolResponse, <-chan error) { - responseChan := make(chan *AddGtmAddressPoolResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddGtmAddressPool(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddGtmAddressPoolWithCallback invokes the alidns.AddGtmAddressPool API asynchronously -func (client *Client) AddGtmAddressPoolWithCallback(request *AddGtmAddressPoolRequest, callback func(response *AddGtmAddressPoolResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddGtmAddressPoolResponse - var err error - defer close(result) - response, err = client.AddGtmAddressPool(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddGtmAddressPoolRequest is the request struct for api AddGtmAddressPool -type AddGtmAddressPoolRequest struct { - *requests.RpcRequest - MonitorExtendInfo string `position:"Query" name:"MonitorExtendInfo"` - Type string `position:"Query" name:"Type"` - Timeout requests.Integer `position:"Query" name:"Timeout"` - MinAvailableAddrNum requests.Integer `position:"Query" name:"MinAvailableAddrNum"` - EvaluationCount requests.Integer `position:"Query" name:"EvaluationCount"` - Lang string `position:"Query" name:"Lang"` - Addr *[]AddGtmAddressPoolAddr `position:"Query" name:"Addr" type:"Repeated"` - MonitorStatus string `position:"Query" name:"MonitorStatus"` - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Name string `position:"Query" name:"Name"` - ProtocolType string `position:"Query" name:"ProtocolType"` - Interval requests.Integer `position:"Query" name:"Interval"` - IspCityNode *[]AddGtmAddressPoolIspCityNode `position:"Query" name:"IspCityNode" type:"Repeated"` -} - -// AddGtmAddressPoolAddr is a repeated param struct in AddGtmAddressPoolRequest -type AddGtmAddressPoolAddr struct { - Mode string `name:"Mode"` - LbaWeight string `name:"LbaWeight"` - Value string `name:"Value"` -} - -// AddGtmAddressPoolIspCityNode is a repeated param struct in AddGtmAddressPoolRequest -type AddGtmAddressPoolIspCityNode struct { - CityCode string `name:"CityCode"` - IspCode string `name:"IspCode"` -} - -// AddGtmAddressPoolResponse is the response struct for api AddGtmAddressPool -type AddGtmAddressPoolResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AddrPoolId string `json:"AddrPoolId" xml:"AddrPoolId"` - MonitorConfigId string `json:"MonitorConfigId" xml:"MonitorConfigId"` -} - -// CreateAddGtmAddressPoolRequest creates a request to invoke AddGtmAddressPool API -func CreateAddGtmAddressPoolRequest() (request *AddGtmAddressPoolRequest) { - request = &AddGtmAddressPoolRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "AddGtmAddressPool", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddGtmAddressPoolResponse creates a response to parse from AddGtmAddressPool response -func CreateAddGtmAddressPoolResponse() (response *AddGtmAddressPoolResponse) { - response = &AddGtmAddressPoolResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_monitor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_monitor.go deleted file mode 100644 index 0983ecc0d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_monitor.go +++ /dev/null @@ -1,114 +0,0 @@ -package alidns - -//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" -) - -// AddGtmMonitor invokes the alidns.AddGtmMonitor API synchronously -func (client *Client) AddGtmMonitor(request *AddGtmMonitorRequest) (response *AddGtmMonitorResponse, err error) { - response = CreateAddGtmMonitorResponse() - err = client.DoAction(request, response) - return -} - -// AddGtmMonitorWithChan invokes the alidns.AddGtmMonitor API asynchronously -func (client *Client) AddGtmMonitorWithChan(request *AddGtmMonitorRequest) (<-chan *AddGtmMonitorResponse, <-chan error) { - responseChan := make(chan *AddGtmMonitorResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddGtmMonitor(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddGtmMonitorWithCallback invokes the alidns.AddGtmMonitor API asynchronously -func (client *Client) AddGtmMonitorWithCallback(request *AddGtmMonitorRequest, callback func(response *AddGtmMonitorResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddGtmMonitorResponse - var err error - defer close(result) - response, err = client.AddGtmMonitor(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddGtmMonitorRequest is the request struct for api AddGtmMonitor -type AddGtmMonitorRequest struct { - *requests.RpcRequest - MonitorExtendInfo string `position:"Query" name:"MonitorExtendInfo"` - Timeout requests.Integer `position:"Query" name:"Timeout"` - AddrPoolId string `position:"Query" name:"AddrPoolId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - EvaluationCount requests.Integer `position:"Query" name:"EvaluationCount"` - ProtocolType string `position:"Query" name:"ProtocolType"` - Interval requests.Integer `position:"Query" name:"Interval"` - Lang string `position:"Query" name:"Lang"` - IspCityNode *[]AddGtmMonitorIspCityNode `position:"Query" name:"IspCityNode" type:"Repeated"` -} - -// AddGtmMonitorIspCityNode is a repeated param struct in AddGtmMonitorRequest -type AddGtmMonitorIspCityNode struct { - CityCode string `name:"CityCode"` - IspCode string `name:"IspCode"` -} - -// AddGtmMonitorResponse is the response struct for api AddGtmMonitor -type AddGtmMonitorResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - MonitorConfigId string `json:"MonitorConfigId" xml:"MonitorConfigId"` -} - -// CreateAddGtmMonitorRequest creates a request to invoke AddGtmMonitor API -func CreateAddGtmMonitorRequest() (request *AddGtmMonitorRequest) { - request = &AddGtmMonitorRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "AddGtmMonitor", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddGtmMonitorResponse creates a response to parse from AddGtmMonitor response -func CreateAddGtmMonitorResponse() (response *AddGtmMonitorResponse) { - response = &AddGtmMonitorResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_recovery_plan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_recovery_plan.go deleted file mode 100644 index 6b1a91002..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/add_gtm_recovery_plan.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// AddGtmRecoveryPlan invokes the alidns.AddGtmRecoveryPlan API synchronously -func (client *Client) AddGtmRecoveryPlan(request *AddGtmRecoveryPlanRequest) (response *AddGtmRecoveryPlanResponse, err error) { - response = CreateAddGtmRecoveryPlanResponse() - err = client.DoAction(request, response) - return -} - -// AddGtmRecoveryPlanWithChan invokes the alidns.AddGtmRecoveryPlan API asynchronously -func (client *Client) AddGtmRecoveryPlanWithChan(request *AddGtmRecoveryPlanRequest) (<-chan *AddGtmRecoveryPlanResponse, <-chan error) { - responseChan := make(chan *AddGtmRecoveryPlanResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddGtmRecoveryPlan(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddGtmRecoveryPlanWithCallback invokes the alidns.AddGtmRecoveryPlan API asynchronously -func (client *Client) AddGtmRecoveryPlanWithCallback(request *AddGtmRecoveryPlanRequest, callback func(response *AddGtmRecoveryPlanResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddGtmRecoveryPlanResponse - var err error - defer close(result) - response, err = client.AddGtmRecoveryPlan(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddGtmRecoveryPlanRequest is the request struct for api AddGtmRecoveryPlan -type AddGtmRecoveryPlanRequest struct { - *requests.RpcRequest - FaultAddrPool string `position:"Query" name:"FaultAddrPool"` - Remark string `position:"Query" name:"Remark"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Name string `position:"Query" name:"Name"` - Lang string `position:"Query" name:"Lang"` -} - -// AddGtmRecoveryPlanResponse is the response struct for api AddGtmRecoveryPlan -type AddGtmRecoveryPlanResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecoveryPlanId string `json:"RecoveryPlanId" xml:"RecoveryPlanId"` -} - -// CreateAddGtmRecoveryPlanRequest creates a request to invoke AddGtmRecoveryPlan API -func CreateAddGtmRecoveryPlanRequest() (request *AddGtmRecoveryPlanRequest) { - request = &AddGtmRecoveryPlanRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "AddGtmRecoveryPlan", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddGtmRecoveryPlanResponse creates a response to parse from AddGtmRecoveryPlan response -func CreateAddGtmRecoveryPlanResponse() (response *AddGtmRecoveryPlanResponse) { - response = &AddGtmRecoveryPlanResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/bind_instance_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/bind_instance_domains.go deleted file mode 100644 index c05bccb6d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/bind_instance_domains.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// BindInstanceDomains invokes the alidns.BindInstanceDomains API synchronously -func (client *Client) BindInstanceDomains(request *BindInstanceDomainsRequest) (response *BindInstanceDomainsResponse, err error) { - response = CreateBindInstanceDomainsResponse() - err = client.DoAction(request, response) - return -} - -// BindInstanceDomainsWithChan invokes the alidns.BindInstanceDomains API asynchronously -func (client *Client) BindInstanceDomainsWithChan(request *BindInstanceDomainsRequest) (<-chan *BindInstanceDomainsResponse, <-chan error) { - responseChan := make(chan *BindInstanceDomainsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.BindInstanceDomains(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// BindInstanceDomainsWithCallback invokes the alidns.BindInstanceDomains API asynchronously -func (client *Client) BindInstanceDomainsWithCallback(request *BindInstanceDomainsRequest, callback func(response *BindInstanceDomainsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *BindInstanceDomainsResponse - var err error - defer close(result) - response, err = client.BindInstanceDomains(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// BindInstanceDomainsRequest is the request struct for api BindInstanceDomains -type BindInstanceDomainsRequest struct { - *requests.RpcRequest - DomainNames string `position:"Query" name:"DomainNames"` - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// BindInstanceDomainsResponse is the response struct for api BindInstanceDomains -type BindInstanceDomainsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - SuccessCount int `json:"SuccessCount" xml:"SuccessCount"` - FailedCount int `json:"FailedCount" xml:"FailedCount"` -} - -// CreateBindInstanceDomainsRequest creates a request to invoke BindInstanceDomains API -func CreateBindInstanceDomainsRequest() (request *BindInstanceDomainsRequest) { - request = &BindInstanceDomainsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "BindInstanceDomains", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateBindInstanceDomainsResponse creates a response to parse from BindInstanceDomains response -func CreateBindInstanceDomainsResponse() (response *BindInstanceDomainsResponse) { - response = &BindInstanceDomainsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/change_domain_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/change_domain_group.go deleted file mode 100644 index d74c3d4ba..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/change_domain_group.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// ChangeDomainGroup invokes the alidns.ChangeDomainGroup API synchronously -func (client *Client) ChangeDomainGroup(request *ChangeDomainGroupRequest) (response *ChangeDomainGroupResponse, err error) { - response = CreateChangeDomainGroupResponse() - err = client.DoAction(request, response) - return -} - -// ChangeDomainGroupWithChan invokes the alidns.ChangeDomainGroup API asynchronously -func (client *Client) ChangeDomainGroupWithChan(request *ChangeDomainGroupRequest) (<-chan *ChangeDomainGroupResponse, <-chan error) { - responseChan := make(chan *ChangeDomainGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ChangeDomainGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ChangeDomainGroupWithCallback invokes the alidns.ChangeDomainGroup API asynchronously -func (client *Client) ChangeDomainGroupWithCallback(request *ChangeDomainGroupRequest, callback func(response *ChangeDomainGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ChangeDomainGroupResponse - var err error - defer close(result) - response, err = client.ChangeDomainGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ChangeDomainGroupRequest is the request struct for api ChangeDomainGroup -type ChangeDomainGroupRequest struct { - *requests.RpcRequest - GroupId string `position:"Query" name:"GroupId"` - DomainName string `position:"Query" name:"DomainName"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// ChangeDomainGroupResponse is the response struct for api ChangeDomainGroup -type ChangeDomainGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - GroupId string `json:"GroupId" xml:"GroupId"` - GroupName string `json:"GroupName" xml:"GroupName"` -} - -// CreateChangeDomainGroupRequest creates a request to invoke ChangeDomainGroup API -func CreateChangeDomainGroupRequest() (request *ChangeDomainGroupRequest) { - request = &ChangeDomainGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "ChangeDomainGroup", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateChangeDomainGroupResponse creates a response to parse from ChangeDomainGroup response -func CreateChangeDomainGroupResponse() (response *ChangeDomainGroupResponse) { - response = &ChangeDomainGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/change_domain_of_dns_product.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/change_domain_of_dns_product.go deleted file mode 100644 index a455448fa..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/change_domain_of_dns_product.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// ChangeDomainOfDnsProduct invokes the alidns.ChangeDomainOfDnsProduct API synchronously -func (client *Client) ChangeDomainOfDnsProduct(request *ChangeDomainOfDnsProductRequest) (response *ChangeDomainOfDnsProductResponse, err error) { - response = CreateChangeDomainOfDnsProductResponse() - err = client.DoAction(request, response) - return -} - -// ChangeDomainOfDnsProductWithChan invokes the alidns.ChangeDomainOfDnsProduct API asynchronously -func (client *Client) ChangeDomainOfDnsProductWithChan(request *ChangeDomainOfDnsProductRequest) (<-chan *ChangeDomainOfDnsProductResponse, <-chan error) { - responseChan := make(chan *ChangeDomainOfDnsProductResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ChangeDomainOfDnsProduct(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ChangeDomainOfDnsProductWithCallback invokes the alidns.ChangeDomainOfDnsProduct API asynchronously -func (client *Client) ChangeDomainOfDnsProductWithCallback(request *ChangeDomainOfDnsProductRequest, callback func(response *ChangeDomainOfDnsProductResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ChangeDomainOfDnsProductResponse - var err error - defer close(result) - response, err = client.ChangeDomainOfDnsProduct(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ChangeDomainOfDnsProductRequest is the request struct for api ChangeDomainOfDnsProduct -type ChangeDomainOfDnsProductRequest struct { - *requests.RpcRequest - InstanceId string `position:"Query" name:"InstanceId"` - NewDomain string `position:"Query" name:"NewDomain"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Force requests.Boolean `position:"Query" name:"Force"` - Lang string `position:"Query" name:"Lang"` -} - -// ChangeDomainOfDnsProductResponse is the response struct for api ChangeDomainOfDnsProduct -type ChangeDomainOfDnsProductResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - OriginalDomain string `json:"OriginalDomain" xml:"OriginalDomain"` -} - -// CreateChangeDomainOfDnsProductRequest creates a request to invoke ChangeDomainOfDnsProduct API -func CreateChangeDomainOfDnsProductRequest() (request *ChangeDomainOfDnsProductRequest) { - request = &ChangeDomainOfDnsProductRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "ChangeDomainOfDnsProduct", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateChangeDomainOfDnsProductResponse creates a response to parse from ChangeDomainOfDnsProduct response -func CreateChangeDomainOfDnsProductResponse() (response *ChangeDomainOfDnsProductResponse) { - response = &ChangeDomainOfDnsProductResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/client.go deleted file mode 100644 index 0574066bb..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/client.go +++ /dev/null @@ -1,129 +0,0 @@ -package alidns - -//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 ( - "reflect" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider" -) - -// Client is the sdk client struct, each func corresponds to an OpenAPI -type Client struct { - sdk.Client -} - -// SetClientProperty Set Property by Reflect -func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) { - v := reflect.ValueOf(client).Elem() - if v.FieldByName(propertyName).IsValid() && v.FieldByName(propertyName).CanSet() { - v.FieldByName(propertyName).Set(reflect.ValueOf(propertyValue)) - } -} - -// SetEndpointDataToClient Set EndpointMap and ENdpointType -func SetEndpointDataToClient(client *Client) { - SetClientProperty(client, "EndpointMap", GetEndpointMap()) - SetClientProperty(client, "EndpointType", GetEndpointType()) -} - -// NewClient creates a sdk client with environment variables -func NewClient() (client *Client, err error) { - client = &Client{} - err = client.Init() - SetEndpointDataToClient(client) - return -} - -// NewClientWithProvider creates a sdk client with providers -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) { - client = &Client{} - var pc provider.Provider - if len(providers) == 0 { - pc = provider.DefaultChain - } else { - pc = provider.NewProviderChain(providers) - } - err = client.InitWithProviderChain(regionId, pc) - SetEndpointDataToClient(client) - return -} - -// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential -// this is the common api to create a sdk client -func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) { - client = &Client{} - err = client.InitWithOptions(regionId, config, credential) - SetEndpointDataToClient(client) - return -} - -// NewClientWithAccessKey is a shortcut to create sdk client with accesskey -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { - client = &Client{} - err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) - SetEndpointDataToClient(client) - return -} - -// NewClientWithStsToken is a shortcut to create sdk client with sts token -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { - client = &Client{} - err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) - SetEndpointDataToClient(client) - return -} - -// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { - client = &Client{} - err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) - SetEndpointDataToClient(client) - return -} - -// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) { - client = &Client{} - err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy) - SetEndpointDataToClient(client) - return -} - -// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { - client = &Client{} - err = client.InitWithEcsRamRole(regionId, roleName) - SetEndpointDataToClient(client) - return -} - -// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { - client = &Client{} - err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) - SetEndpointDataToClient(client) - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/copy_gtm_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/copy_gtm_config.go deleted file mode 100644 index a5d6be952..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/copy_gtm_config.go +++ /dev/null @@ -1,103 +0,0 @@ -package alidns - -//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" -) - -// CopyGtmConfig invokes the alidns.CopyGtmConfig API synchronously -func (client *Client) CopyGtmConfig(request *CopyGtmConfigRequest) (response *CopyGtmConfigResponse, err error) { - response = CreateCopyGtmConfigResponse() - err = client.DoAction(request, response) - return -} - -// CopyGtmConfigWithChan invokes the alidns.CopyGtmConfig API asynchronously -func (client *Client) CopyGtmConfigWithChan(request *CopyGtmConfigRequest) (<-chan *CopyGtmConfigResponse, <-chan error) { - responseChan := make(chan *CopyGtmConfigResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CopyGtmConfig(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CopyGtmConfigWithCallback invokes the alidns.CopyGtmConfig API asynchronously -func (client *Client) CopyGtmConfigWithCallback(request *CopyGtmConfigRequest, callback func(response *CopyGtmConfigResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CopyGtmConfigResponse - var err error - defer close(result) - response, err = client.CopyGtmConfig(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CopyGtmConfigRequest is the request struct for api CopyGtmConfig -type CopyGtmConfigRequest struct { - *requests.RpcRequest - SourceId string `position:"Query" name:"SourceId"` - TargetId string `position:"Query" name:"TargetId"` - CopyType string `position:"Query" name:"CopyType"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// CopyGtmConfigResponse is the response struct for api CopyGtmConfig -type CopyGtmConfigResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCopyGtmConfigRequest creates a request to invoke CopyGtmConfig API -func CreateCopyGtmConfigRequest() (request *CopyGtmConfigRequest) { - request = &CopyGtmConfigRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "CopyGtmConfig", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateCopyGtmConfigResponse creates a response to parse from CopyGtmConfig response -func CreateCopyGtmConfigResponse() (response *CopyGtmConfigResponse) { - response = &CopyGtmConfigResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/create_pdns_app_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/create_pdns_app_key.go deleted file mode 100644 index 0dabe9a87..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/create_pdns_app_key.go +++ /dev/null @@ -1,99 +0,0 @@ -package alidns - -//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" -) - -// CreatePdnsAppKey invokes the alidns.CreatePdnsAppKey API synchronously -func (client *Client) CreatePdnsAppKey(request *CreatePdnsAppKeyRequest) (response *CreatePdnsAppKeyResponse, err error) { - response = CreateCreatePdnsAppKeyResponse() - err = client.DoAction(request, response) - return -} - -// CreatePdnsAppKeyWithChan invokes the alidns.CreatePdnsAppKey API asynchronously -func (client *Client) CreatePdnsAppKeyWithChan(request *CreatePdnsAppKeyRequest) (<-chan *CreatePdnsAppKeyResponse, <-chan error) { - responseChan := make(chan *CreatePdnsAppKeyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreatePdnsAppKey(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreatePdnsAppKeyWithCallback invokes the alidns.CreatePdnsAppKey API asynchronously -func (client *Client) CreatePdnsAppKeyWithCallback(request *CreatePdnsAppKeyRequest, callback func(response *CreatePdnsAppKeyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreatePdnsAppKeyResponse - var err error - defer close(result) - response, err = client.CreatePdnsAppKey(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreatePdnsAppKeyRequest is the request struct for api CreatePdnsAppKey -type CreatePdnsAppKeyRequest struct { - *requests.RpcRequest - Lang string `position:"Query" name:"Lang"` -} - -// CreatePdnsAppKeyResponse is the response struct for api CreatePdnsAppKey -type CreatePdnsAppKeyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreatePdnsAppKeyRequest creates a request to invoke CreatePdnsAppKey API -func CreateCreatePdnsAppKeyRequest() (request *CreatePdnsAppKeyRequest) { - request = &CreatePdnsAppKeyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "CreatePdnsAppKey", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreatePdnsAppKeyResponse creates a response to parse from CreatePdnsAppKey response -func CreateCreatePdnsAppKeyResponse() (response *CreatePdnsAppKeyResponse) { - response = &CreatePdnsAppKeyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/create_pdns_udp_ip_segment.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/create_pdns_udp_ip_segment.go deleted file mode 100644 index 5b36ffb0b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/create_pdns_udp_ip_segment.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// CreatePdnsUdpIpSegment invokes the alidns.CreatePdnsUdpIpSegment API synchronously -func (client *Client) CreatePdnsUdpIpSegment(request *CreatePdnsUdpIpSegmentRequest) (response *CreatePdnsUdpIpSegmentResponse, err error) { - response = CreateCreatePdnsUdpIpSegmentResponse() - err = client.DoAction(request, response) - return -} - -// CreatePdnsUdpIpSegmentWithChan invokes the alidns.CreatePdnsUdpIpSegment API asynchronously -func (client *Client) CreatePdnsUdpIpSegmentWithChan(request *CreatePdnsUdpIpSegmentRequest) (<-chan *CreatePdnsUdpIpSegmentResponse, <-chan error) { - responseChan := make(chan *CreatePdnsUdpIpSegmentResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreatePdnsUdpIpSegment(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreatePdnsUdpIpSegmentWithCallback invokes the alidns.CreatePdnsUdpIpSegment API asynchronously -func (client *Client) CreatePdnsUdpIpSegmentWithCallback(request *CreatePdnsUdpIpSegmentRequest, callback func(response *CreatePdnsUdpIpSegmentResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreatePdnsUdpIpSegmentResponse - var err error - defer close(result) - response, err = client.CreatePdnsUdpIpSegment(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreatePdnsUdpIpSegmentRequest is the request struct for api CreatePdnsUdpIpSegment -type CreatePdnsUdpIpSegmentRequest struct { - *requests.RpcRequest - Ip string `position:"Query" name:"Ip"` - Name string `position:"Query" name:"Name"` - Lang string `position:"Query" name:"Lang"` -} - -// CreatePdnsUdpIpSegmentResponse is the response struct for api CreatePdnsUdpIpSegment -type CreatePdnsUdpIpSegmentResponse struct { - *responses.BaseResponse - ValidMessage string `json:"ValidMessage" xml:"ValidMessage"` - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateCreatePdnsUdpIpSegmentRequest creates a request to invoke CreatePdnsUdpIpSegment API -func CreateCreatePdnsUdpIpSegmentRequest() (request *CreatePdnsUdpIpSegmentRequest) { - request = &CreatePdnsUdpIpSegmentRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "CreatePdnsUdpIpSegment", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateCreatePdnsUdpIpSegmentResponse creates a response to parse from CreatePdnsUdpIpSegment response -func CreateCreatePdnsUdpIpSegmentResponse() (response *CreatePdnsUdpIpSegmentResponse) { - response = &CreatePdnsUdpIpSegmentResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_custom_lines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_custom_lines.go deleted file mode 100644 index e558c2859..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_custom_lines.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// DeleteCustomLines invokes the alidns.DeleteCustomLines API synchronously -func (client *Client) DeleteCustomLines(request *DeleteCustomLinesRequest) (response *DeleteCustomLinesResponse, err error) { - response = CreateDeleteCustomLinesResponse() - err = client.DoAction(request, response) - return -} - -// DeleteCustomLinesWithChan invokes the alidns.DeleteCustomLines API asynchronously -func (client *Client) DeleteCustomLinesWithChan(request *DeleteCustomLinesRequest) (<-chan *DeleteCustomLinesResponse, <-chan error) { - responseChan := make(chan *DeleteCustomLinesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteCustomLines(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteCustomLinesWithCallback invokes the alidns.DeleteCustomLines API asynchronously -func (client *Client) DeleteCustomLinesWithCallback(request *DeleteCustomLinesRequest, callback func(response *DeleteCustomLinesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteCustomLinesResponse - var err error - defer close(result) - response, err = client.DeleteCustomLines(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteCustomLinesRequest is the request struct for api DeleteCustomLines -type DeleteCustomLinesRequest struct { - *requests.RpcRequest - LineIds string `position:"Query" name:"LineIds"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DeleteCustomLinesResponse is the response struct for api DeleteCustomLines -type DeleteCustomLinesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteCustomLinesRequest creates a request to invoke DeleteCustomLines API -func CreateDeleteCustomLinesRequest() (request *DeleteCustomLinesRequest) { - request = &DeleteCustomLinesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DeleteCustomLines", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteCustomLinesResponse creates a response to parse from DeleteCustomLines response -func CreateDeleteCustomLinesResponse() (response *DeleteCustomLinesResponse) { - response = &DeleteCustomLinesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_dns_cache_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_dns_cache_domain.go deleted file mode 100644 index 36934609c..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_dns_cache_domain.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// DeleteDnsCacheDomain invokes the alidns.DeleteDnsCacheDomain API synchronously -func (client *Client) DeleteDnsCacheDomain(request *DeleteDnsCacheDomainRequest) (response *DeleteDnsCacheDomainResponse, err error) { - response = CreateDeleteDnsCacheDomainResponse() - err = client.DoAction(request, response) - return -} - -// DeleteDnsCacheDomainWithChan invokes the alidns.DeleteDnsCacheDomain API asynchronously -func (client *Client) DeleteDnsCacheDomainWithChan(request *DeleteDnsCacheDomainRequest) (<-chan *DeleteDnsCacheDomainResponse, <-chan error) { - responseChan := make(chan *DeleteDnsCacheDomainResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteDnsCacheDomain(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteDnsCacheDomainWithCallback invokes the alidns.DeleteDnsCacheDomain API asynchronously -func (client *Client) DeleteDnsCacheDomainWithCallback(request *DeleteDnsCacheDomainRequest, callback func(response *DeleteDnsCacheDomainResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteDnsCacheDomainResponse - var err error - defer close(result) - response, err = client.DeleteDnsCacheDomain(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteDnsCacheDomainRequest is the request struct for api DeleteDnsCacheDomain -type DeleteDnsCacheDomainRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DeleteDnsCacheDomainResponse is the response struct for api DeleteDnsCacheDomain -type DeleteDnsCacheDomainResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteDnsCacheDomainRequest creates a request to invoke DeleteDnsCacheDomain API -func CreateDeleteDnsCacheDomainRequest() (request *DeleteDnsCacheDomainRequest) { - request = &DeleteDnsCacheDomainRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DeleteDnsCacheDomain", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteDnsCacheDomainResponse creates a response to parse from DeleteDnsCacheDomain response -func CreateDeleteDnsCacheDomainResponse() (response *DeleteDnsCacheDomainResponse) { - response = &DeleteDnsCacheDomainResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_dns_gtm_access_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_dns_gtm_access_strategy.go deleted file mode 100644 index 7b37f3c1d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_dns_gtm_access_strategy.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// DeleteDnsGtmAccessStrategy invokes the alidns.DeleteDnsGtmAccessStrategy API synchronously -func (client *Client) DeleteDnsGtmAccessStrategy(request *DeleteDnsGtmAccessStrategyRequest) (response *DeleteDnsGtmAccessStrategyResponse, err error) { - response = CreateDeleteDnsGtmAccessStrategyResponse() - err = client.DoAction(request, response) - return -} - -// DeleteDnsGtmAccessStrategyWithChan invokes the alidns.DeleteDnsGtmAccessStrategy API asynchronously -func (client *Client) DeleteDnsGtmAccessStrategyWithChan(request *DeleteDnsGtmAccessStrategyRequest) (<-chan *DeleteDnsGtmAccessStrategyResponse, <-chan error) { - responseChan := make(chan *DeleteDnsGtmAccessStrategyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteDnsGtmAccessStrategy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteDnsGtmAccessStrategyWithCallback invokes the alidns.DeleteDnsGtmAccessStrategy API asynchronously -func (client *Client) DeleteDnsGtmAccessStrategyWithCallback(request *DeleteDnsGtmAccessStrategyRequest, callback func(response *DeleteDnsGtmAccessStrategyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteDnsGtmAccessStrategyResponse - var err error - defer close(result) - response, err = client.DeleteDnsGtmAccessStrategy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteDnsGtmAccessStrategyRequest is the request struct for api DeleteDnsGtmAccessStrategy -type DeleteDnsGtmAccessStrategyRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - StrategyId string `position:"Query" name:"StrategyId"` - Lang string `position:"Query" name:"Lang"` -} - -// DeleteDnsGtmAccessStrategyResponse is the response struct for api DeleteDnsGtmAccessStrategy -type DeleteDnsGtmAccessStrategyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteDnsGtmAccessStrategyRequest creates a request to invoke DeleteDnsGtmAccessStrategy API -func CreateDeleteDnsGtmAccessStrategyRequest() (request *DeleteDnsGtmAccessStrategyRequest) { - request = &DeleteDnsGtmAccessStrategyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DeleteDnsGtmAccessStrategy", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteDnsGtmAccessStrategyResponse creates a response to parse from DeleteDnsGtmAccessStrategy response -func CreateDeleteDnsGtmAccessStrategyResponse() (response *DeleteDnsGtmAccessStrategyResponse) { - response = &DeleteDnsGtmAccessStrategyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_dns_gtm_address_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_dns_gtm_address_pool.go deleted file mode 100644 index 396c26dd3..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_dns_gtm_address_pool.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// DeleteDnsGtmAddressPool invokes the alidns.DeleteDnsGtmAddressPool API synchronously -func (client *Client) DeleteDnsGtmAddressPool(request *DeleteDnsGtmAddressPoolRequest) (response *DeleteDnsGtmAddressPoolResponse, err error) { - response = CreateDeleteDnsGtmAddressPoolResponse() - err = client.DoAction(request, response) - return -} - -// DeleteDnsGtmAddressPoolWithChan invokes the alidns.DeleteDnsGtmAddressPool API asynchronously -func (client *Client) DeleteDnsGtmAddressPoolWithChan(request *DeleteDnsGtmAddressPoolRequest) (<-chan *DeleteDnsGtmAddressPoolResponse, <-chan error) { - responseChan := make(chan *DeleteDnsGtmAddressPoolResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteDnsGtmAddressPool(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteDnsGtmAddressPoolWithCallback invokes the alidns.DeleteDnsGtmAddressPool API asynchronously -func (client *Client) DeleteDnsGtmAddressPoolWithCallback(request *DeleteDnsGtmAddressPoolRequest, callback func(response *DeleteDnsGtmAddressPoolResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteDnsGtmAddressPoolResponse - var err error - defer close(result) - response, err = client.DeleteDnsGtmAddressPool(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteDnsGtmAddressPoolRequest is the request struct for api DeleteDnsGtmAddressPool -type DeleteDnsGtmAddressPoolRequest struct { - *requests.RpcRequest - AddrPoolId string `position:"Query" name:"AddrPoolId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DeleteDnsGtmAddressPoolResponse is the response struct for api DeleteDnsGtmAddressPool -type DeleteDnsGtmAddressPoolResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteDnsGtmAddressPoolRequest creates a request to invoke DeleteDnsGtmAddressPool API -func CreateDeleteDnsGtmAddressPoolRequest() (request *DeleteDnsGtmAddressPoolRequest) { - request = &DeleteDnsGtmAddressPoolRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DeleteDnsGtmAddressPool", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteDnsGtmAddressPoolResponse creates a response to parse from DeleteDnsGtmAddressPool response -func CreateDeleteDnsGtmAddressPoolResponse() (response *DeleteDnsGtmAddressPoolResponse) { - response = &DeleteDnsGtmAddressPoolResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain.go deleted file mode 100644 index 9794eadf8..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// DeleteDomain invokes the alidns.DeleteDomain API synchronously -func (client *Client) DeleteDomain(request *DeleteDomainRequest) (response *DeleteDomainResponse, err error) { - response = CreateDeleteDomainResponse() - err = client.DoAction(request, response) - return -} - -// DeleteDomainWithChan invokes the alidns.DeleteDomain API asynchronously -func (client *Client) DeleteDomainWithChan(request *DeleteDomainRequest) (<-chan *DeleteDomainResponse, <-chan error) { - responseChan := make(chan *DeleteDomainResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteDomain(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteDomainWithCallback invokes the alidns.DeleteDomain API asynchronously -func (client *Client) DeleteDomainWithCallback(request *DeleteDomainRequest, callback func(response *DeleteDomainResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteDomainResponse - var err error - defer close(result) - response, err = client.DeleteDomain(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteDomainRequest is the request struct for api DeleteDomain -type DeleteDomainRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DeleteDomainResponse is the response struct for api DeleteDomain -type DeleteDomainResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - DomainName string `json:"DomainName" xml:"DomainName"` -} - -// CreateDeleteDomainRequest creates a request to invoke DeleteDomain API -func CreateDeleteDomainRequest() (request *DeleteDomainRequest) { - request = &DeleteDomainRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DeleteDomain", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteDomainResponse creates a response to parse from DeleteDomain response -func CreateDeleteDomainResponse() (response *DeleteDomainResponse) { - response = &DeleteDomainResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain_group.go deleted file mode 100644 index 6c991ab3a..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain_group.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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 alidns.DeleteDomainGroup API synchronously -func (client *Client) DeleteDomainGroup(request *DeleteDomainGroupRequest) (response *DeleteDomainGroupResponse, err error) { - response = CreateDeleteDomainGroupResponse() - err = client.DoAction(request, response) - return -} - -// DeleteDomainGroupWithChan invokes the alidns.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 alidns.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 - GroupId string `position:"Query" name:"GroupId"` - 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"` - GroupName string `json:"GroupName" xml:"GroupName"` -} - -// CreateDeleteDomainGroupRequest creates a request to invoke DeleteDomainGroup API -func CreateDeleteDomainGroupRequest() (request *DeleteDomainGroupRequest) { - request = &DeleteDomainGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DeleteDomainGroup", "alidns", "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/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain_record.go deleted file mode 100644 index 8280809bb..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_domain_record.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// DeleteDomainRecord invokes the alidns.DeleteDomainRecord API synchronously -func (client *Client) DeleteDomainRecord(request *DeleteDomainRecordRequest) (response *DeleteDomainRecordResponse, err error) { - response = CreateDeleteDomainRecordResponse() - err = client.DoAction(request, response) - return -} - -// DeleteDomainRecordWithChan invokes the alidns.DeleteDomainRecord API asynchronously -func (client *Client) DeleteDomainRecordWithChan(request *DeleteDomainRecordRequest) (<-chan *DeleteDomainRecordResponse, <-chan error) { - responseChan := make(chan *DeleteDomainRecordResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteDomainRecord(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteDomainRecordWithCallback invokes the alidns.DeleteDomainRecord API asynchronously -func (client *Client) DeleteDomainRecordWithCallback(request *DeleteDomainRecordRequest, callback func(response *DeleteDomainRecordResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteDomainRecordResponse - var err error - defer close(result) - response, err = client.DeleteDomainRecord(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteDomainRecordRequest is the request struct for api DeleteDomainRecord -type DeleteDomainRecordRequest struct { - *requests.RpcRequest - RecordId string `position:"Query" name:"RecordId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DeleteDomainRecordResponse is the response struct for api DeleteDomainRecord -type DeleteDomainRecordResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecordId string `json:"RecordId" xml:"RecordId"` -} - -// CreateDeleteDomainRecordRequest creates a request to invoke DeleteDomainRecord API -func CreateDeleteDomainRecordRequest() (request *DeleteDomainRecordRequest) { - request = &DeleteDomainRecordRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DeleteDomainRecord", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteDomainRecordResponse creates a response to parse from DeleteDomainRecord response -func CreateDeleteDomainRecordResponse() (response *DeleteDomainRecordResponse) { - response = &DeleteDomainRecordResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_gtm_access_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_gtm_access_strategy.go deleted file mode 100644 index 56e90fa63..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_gtm_access_strategy.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// DeleteGtmAccessStrategy invokes the alidns.DeleteGtmAccessStrategy API synchronously -func (client *Client) DeleteGtmAccessStrategy(request *DeleteGtmAccessStrategyRequest) (response *DeleteGtmAccessStrategyResponse, err error) { - response = CreateDeleteGtmAccessStrategyResponse() - err = client.DoAction(request, response) - return -} - -// DeleteGtmAccessStrategyWithChan invokes the alidns.DeleteGtmAccessStrategy API asynchronously -func (client *Client) DeleteGtmAccessStrategyWithChan(request *DeleteGtmAccessStrategyRequest) (<-chan *DeleteGtmAccessStrategyResponse, <-chan error) { - responseChan := make(chan *DeleteGtmAccessStrategyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteGtmAccessStrategy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteGtmAccessStrategyWithCallback invokes the alidns.DeleteGtmAccessStrategy API asynchronously -func (client *Client) DeleteGtmAccessStrategyWithCallback(request *DeleteGtmAccessStrategyRequest, callback func(response *DeleteGtmAccessStrategyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteGtmAccessStrategyResponse - var err error - defer close(result) - response, err = client.DeleteGtmAccessStrategy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteGtmAccessStrategyRequest is the request struct for api DeleteGtmAccessStrategy -type DeleteGtmAccessStrategyRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - StrategyId string `position:"Query" name:"StrategyId"` - Lang string `position:"Query" name:"Lang"` -} - -// DeleteGtmAccessStrategyResponse is the response struct for api DeleteGtmAccessStrategy -type DeleteGtmAccessStrategyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteGtmAccessStrategyRequest creates a request to invoke DeleteGtmAccessStrategy API -func CreateDeleteGtmAccessStrategyRequest() (request *DeleteGtmAccessStrategyRequest) { - request = &DeleteGtmAccessStrategyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DeleteGtmAccessStrategy", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteGtmAccessStrategyResponse creates a response to parse from DeleteGtmAccessStrategy response -func CreateDeleteGtmAccessStrategyResponse() (response *DeleteGtmAccessStrategyResponse) { - response = &DeleteGtmAccessStrategyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_gtm_address_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_gtm_address_pool.go deleted file mode 100644 index 165037e71..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_gtm_address_pool.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// DeleteGtmAddressPool invokes the alidns.DeleteGtmAddressPool API synchronously -func (client *Client) DeleteGtmAddressPool(request *DeleteGtmAddressPoolRequest) (response *DeleteGtmAddressPoolResponse, err error) { - response = CreateDeleteGtmAddressPoolResponse() - err = client.DoAction(request, response) - return -} - -// DeleteGtmAddressPoolWithChan invokes the alidns.DeleteGtmAddressPool API asynchronously -func (client *Client) DeleteGtmAddressPoolWithChan(request *DeleteGtmAddressPoolRequest) (<-chan *DeleteGtmAddressPoolResponse, <-chan error) { - responseChan := make(chan *DeleteGtmAddressPoolResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteGtmAddressPool(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteGtmAddressPoolWithCallback invokes the alidns.DeleteGtmAddressPool API asynchronously -func (client *Client) DeleteGtmAddressPoolWithCallback(request *DeleteGtmAddressPoolRequest, callback func(response *DeleteGtmAddressPoolResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteGtmAddressPoolResponse - var err error - defer close(result) - response, err = client.DeleteGtmAddressPool(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteGtmAddressPoolRequest is the request struct for api DeleteGtmAddressPool -type DeleteGtmAddressPoolRequest struct { - *requests.RpcRequest - AddrPoolId string `position:"Query" name:"AddrPoolId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DeleteGtmAddressPoolResponse is the response struct for api DeleteGtmAddressPool -type DeleteGtmAddressPoolResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteGtmAddressPoolRequest creates a request to invoke DeleteGtmAddressPool API -func CreateDeleteGtmAddressPoolRequest() (request *DeleteGtmAddressPoolRequest) { - request = &DeleteGtmAddressPoolRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DeleteGtmAddressPool", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteGtmAddressPoolResponse creates a response to parse from DeleteGtmAddressPool response -func CreateDeleteGtmAddressPoolResponse() (response *DeleteGtmAddressPoolResponse) { - response = &DeleteGtmAddressPoolResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_gtm_recovery_plan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_gtm_recovery_plan.go deleted file mode 100644 index e60b2e2cf..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_gtm_recovery_plan.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// DeleteGtmRecoveryPlan invokes the alidns.DeleteGtmRecoveryPlan API synchronously -func (client *Client) DeleteGtmRecoveryPlan(request *DeleteGtmRecoveryPlanRequest) (response *DeleteGtmRecoveryPlanResponse, err error) { - response = CreateDeleteGtmRecoveryPlanResponse() - err = client.DoAction(request, response) - return -} - -// DeleteGtmRecoveryPlanWithChan invokes the alidns.DeleteGtmRecoveryPlan API asynchronously -func (client *Client) DeleteGtmRecoveryPlanWithChan(request *DeleteGtmRecoveryPlanRequest) (<-chan *DeleteGtmRecoveryPlanResponse, <-chan error) { - responseChan := make(chan *DeleteGtmRecoveryPlanResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteGtmRecoveryPlan(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteGtmRecoveryPlanWithCallback invokes the alidns.DeleteGtmRecoveryPlan API asynchronously -func (client *Client) DeleteGtmRecoveryPlanWithCallback(request *DeleteGtmRecoveryPlanRequest, callback func(response *DeleteGtmRecoveryPlanResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteGtmRecoveryPlanResponse - var err error - defer close(result) - response, err = client.DeleteGtmRecoveryPlan(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteGtmRecoveryPlanRequest is the request struct for api DeleteGtmRecoveryPlan -type DeleteGtmRecoveryPlanRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - RecoveryPlanId requests.Integer `position:"Query" name:"RecoveryPlanId"` - Lang string `position:"Query" name:"Lang"` -} - -// DeleteGtmRecoveryPlanResponse is the response struct for api DeleteGtmRecoveryPlan -type DeleteGtmRecoveryPlanResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteGtmRecoveryPlanRequest creates a request to invoke DeleteGtmRecoveryPlan API -func CreateDeleteGtmRecoveryPlanRequest() (request *DeleteGtmRecoveryPlanRequest) { - request = &DeleteGtmRecoveryPlanRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DeleteGtmRecoveryPlan", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteGtmRecoveryPlanResponse creates a response to parse from DeleteGtmRecoveryPlan response -func CreateDeleteGtmRecoveryPlanResponse() (response *DeleteGtmRecoveryPlanResponse) { - response = &DeleteGtmRecoveryPlanResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_sub_domain_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_sub_domain_records.go deleted file mode 100644 index bd3aa7104..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/delete_sub_domain_records.go +++ /dev/null @@ -1,105 +0,0 @@ -package alidns - -//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" -) - -// DeleteSubDomainRecords invokes the alidns.DeleteSubDomainRecords API synchronously -func (client *Client) DeleteSubDomainRecords(request *DeleteSubDomainRecordsRequest) (response *DeleteSubDomainRecordsResponse, err error) { - response = CreateDeleteSubDomainRecordsResponse() - err = client.DoAction(request, response) - return -} - -// DeleteSubDomainRecordsWithChan invokes the alidns.DeleteSubDomainRecords API asynchronously -func (client *Client) DeleteSubDomainRecordsWithChan(request *DeleteSubDomainRecordsRequest) (<-chan *DeleteSubDomainRecordsResponse, <-chan error) { - responseChan := make(chan *DeleteSubDomainRecordsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteSubDomainRecords(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteSubDomainRecordsWithCallback invokes the alidns.DeleteSubDomainRecords API asynchronously -func (client *Client) DeleteSubDomainRecordsWithCallback(request *DeleteSubDomainRecordsRequest, callback func(response *DeleteSubDomainRecordsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteSubDomainRecordsResponse - var err error - defer close(result) - response, err = client.DeleteSubDomainRecords(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteSubDomainRecordsRequest is the request struct for api DeleteSubDomainRecords -type DeleteSubDomainRecordsRequest struct { - *requests.RpcRequest - RR string `position:"Query" name:"RR"` - DomainName string `position:"Query" name:"DomainName"` - Type string `position:"Query" name:"Type"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DeleteSubDomainRecordsResponse is the response struct for api DeleteSubDomainRecords -type DeleteSubDomainRecordsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RR string `json:"RR" xml:"RR"` - TotalCount string `json:"TotalCount" xml:"TotalCount"` -} - -// CreateDeleteSubDomainRecordsRequest creates a request to invoke DeleteSubDomainRecords API -func CreateDeleteSubDomainRecordsRequest() (request *DeleteSubDomainRecordsRequest) { - request = &DeleteSubDomainRecordsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DeleteSubDomainRecords", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteSubDomainRecordsResponse creates a response to parse from DeleteSubDomainRecords response -func CreateDeleteSubDomainRecordsResponse() (response *DeleteSubDomainRecordsResponse) { - response = &DeleteSubDomainRecordsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_batch_result_count.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_batch_result_count.go deleted file mode 100644 index 6c0bf2c6c..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_batch_result_count.go +++ /dev/null @@ -1,109 +0,0 @@ -package alidns - -//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" -) - -// DescribeBatchResultCount invokes the alidns.DescribeBatchResultCount API synchronously -func (client *Client) DescribeBatchResultCount(request *DescribeBatchResultCountRequest) (response *DescribeBatchResultCountResponse, err error) { - response = CreateDescribeBatchResultCountResponse() - err = client.DoAction(request, response) - return -} - -// DescribeBatchResultCountWithChan invokes the alidns.DescribeBatchResultCount API asynchronously -func (client *Client) DescribeBatchResultCountWithChan(request *DescribeBatchResultCountRequest) (<-chan *DescribeBatchResultCountResponse, <-chan error) { - responseChan := make(chan *DescribeBatchResultCountResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeBatchResultCount(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeBatchResultCountWithCallback invokes the alidns.DescribeBatchResultCount API asynchronously -func (client *Client) DescribeBatchResultCountWithCallback(request *DescribeBatchResultCountRequest, callback func(response *DescribeBatchResultCountResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeBatchResultCountResponse - var err error - defer close(result) - response, err = client.DescribeBatchResultCount(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeBatchResultCountRequest is the request struct for api DescribeBatchResultCount -type DescribeBatchResultCountRequest struct { - *requests.RpcRequest - BatchType string `position:"Query" name:"BatchType"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` - TaskId requests.Integer `position:"Query" name:"TaskId"` -} - -// DescribeBatchResultCountResponse is the response struct for api DescribeBatchResultCount -type DescribeBatchResultCountResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Status int `json:"Status" xml:"Status"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - SuccessCount int `json:"SuccessCount" xml:"SuccessCount"` - FailedCount int `json:"FailedCount" xml:"FailedCount"` - Reason string `json:"Reason" xml:"Reason"` - BatchType string `json:"BatchType" xml:"BatchType"` - TaskId int64 `json:"TaskId" xml:"TaskId"` -} - -// CreateDescribeBatchResultCountRequest creates a request to invoke DescribeBatchResultCount API -func CreateDescribeBatchResultCountRequest() (request *DescribeBatchResultCountRequest) { - request = &DescribeBatchResultCountRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeBatchResultCount", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeBatchResultCountResponse creates a response to parse from DescribeBatchResultCount response -func CreateDescribeBatchResultCountResponse() (response *DescribeBatchResultCountResponse) { - response = &DescribeBatchResultCountResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_batch_result_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_batch_result_detail.go deleted file mode 100644 index 7207438ef..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_batch_result_detail.go +++ /dev/null @@ -1,109 +0,0 @@ -package alidns - -//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" -) - -// DescribeBatchResultDetail invokes the alidns.DescribeBatchResultDetail API synchronously -func (client *Client) DescribeBatchResultDetail(request *DescribeBatchResultDetailRequest) (response *DescribeBatchResultDetailResponse, err error) { - response = CreateDescribeBatchResultDetailResponse() - err = client.DoAction(request, response) - return -} - -// DescribeBatchResultDetailWithChan invokes the alidns.DescribeBatchResultDetail API asynchronously -func (client *Client) DescribeBatchResultDetailWithChan(request *DescribeBatchResultDetailRequest) (<-chan *DescribeBatchResultDetailResponse, <-chan error) { - responseChan := make(chan *DescribeBatchResultDetailResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeBatchResultDetail(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeBatchResultDetailWithCallback invokes the alidns.DescribeBatchResultDetail API asynchronously -func (client *Client) DescribeBatchResultDetailWithCallback(request *DescribeBatchResultDetailRequest, callback func(response *DescribeBatchResultDetailResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeBatchResultDetailResponse - var err error - defer close(result) - response, err = client.DescribeBatchResultDetail(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeBatchResultDetailRequest is the request struct for api DescribeBatchResultDetail -type DescribeBatchResultDetailRequest struct { - *requests.RpcRequest - BatchType string `position:"Query" name:"BatchType"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - TaskId requests.Integer `position:"Query" name:"TaskId"` - Status string `position:"Query" name:"Status"` -} - -// DescribeBatchResultDetailResponse is the response struct for api DescribeBatchResultDetail -type DescribeBatchResultDetailResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - BatchResultDetails BatchResultDetails `json:"BatchResultDetails" xml:"BatchResultDetails"` -} - -// CreateDescribeBatchResultDetailRequest creates a request to invoke DescribeBatchResultDetail API -func CreateDescribeBatchResultDetailRequest() (request *DescribeBatchResultDetailRequest) { - request = &DescribeBatchResultDetailRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeBatchResultDetail", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeBatchResultDetailResponse creates a response to parse from DescribeBatchResultDetail response -func CreateDescribeBatchResultDetailResponse() (response *DescribeBatchResultDetailResponse) { - response = &DescribeBatchResultDetailResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_custom_line.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_custom_line.go deleted file mode 100644 index 2151f9238..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_custom_line.go +++ /dev/null @@ -1,109 +0,0 @@ -package alidns - -//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" -) - -// DescribeCustomLine invokes the alidns.DescribeCustomLine API synchronously -func (client *Client) DescribeCustomLine(request *DescribeCustomLineRequest) (response *DescribeCustomLineResponse, err error) { - response = CreateDescribeCustomLineResponse() - err = client.DoAction(request, response) - return -} - -// DescribeCustomLineWithChan invokes the alidns.DescribeCustomLine API asynchronously -func (client *Client) DescribeCustomLineWithChan(request *DescribeCustomLineRequest) (<-chan *DescribeCustomLineResponse, <-chan error) { - responseChan := make(chan *DescribeCustomLineResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeCustomLine(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeCustomLineWithCallback invokes the alidns.DescribeCustomLine API asynchronously -func (client *Client) DescribeCustomLineWithCallback(request *DescribeCustomLineRequest, callback func(response *DescribeCustomLineResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeCustomLineResponse - var err error - defer close(result) - response, err = client.DescribeCustomLine(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeCustomLineRequest is the request struct for api DescribeCustomLine -type DescribeCustomLineRequest struct { - *requests.RpcRequest - LineId requests.Integer `position:"Query" name:"LineId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeCustomLineResponse is the response struct for api DescribeCustomLine -type DescribeCustomLineResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Id int64 `json:"Id" xml:"Id"` - Name string `json:"Name" xml:"Name"` - DomainName string `json:"DomainName" xml:"DomainName"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - IpSegments string `json:"IpSegments" xml:"IpSegments"` - Code string `json:"Code" xml:"Code"` - IpSegmentList []IpSegment `json:"IpSegmentList" xml:"IpSegmentList"` -} - -// CreateDescribeCustomLineRequest creates a request to invoke DescribeCustomLine API -func CreateDescribeCustomLineRequest() (request *DescribeCustomLineRequest) { - request = &DescribeCustomLineRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeCustomLine", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeCustomLineResponse creates a response to parse from DescribeCustomLine response -func CreateDescribeCustomLineResponse() (response *DescribeCustomLineResponse) { - response = &DescribeCustomLineResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_custom_lines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_custom_lines.go deleted file mode 100644 index 07b0e642a..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_custom_lines.go +++ /dev/null @@ -1,108 +0,0 @@ -package alidns - -//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" -) - -// DescribeCustomLines invokes the alidns.DescribeCustomLines API synchronously -func (client *Client) DescribeCustomLines(request *DescribeCustomLinesRequest) (response *DescribeCustomLinesResponse, err error) { - response = CreateDescribeCustomLinesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeCustomLinesWithChan invokes the alidns.DescribeCustomLines API asynchronously -func (client *Client) DescribeCustomLinesWithChan(request *DescribeCustomLinesRequest) (<-chan *DescribeCustomLinesResponse, <-chan error) { - responseChan := make(chan *DescribeCustomLinesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeCustomLines(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeCustomLinesWithCallback invokes the alidns.DescribeCustomLines API asynchronously -func (client *Client) DescribeCustomLinesWithCallback(request *DescribeCustomLinesRequest, callback func(response *DescribeCustomLinesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeCustomLinesResponse - var err error - defer close(result) - response, err = client.DescribeCustomLines(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeCustomLinesRequest is the request struct for api DescribeCustomLines -type DescribeCustomLinesRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeCustomLinesResponse is the response struct for api DescribeCustomLines -type DescribeCustomLinesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - CustomLines []CustomLine `json:"CustomLines" xml:"CustomLines"` -} - -// CreateDescribeCustomLinesRequest creates a request to invoke DescribeCustomLines API -func CreateDescribeCustomLinesRequest() (request *DescribeCustomLinesRequest) { - request = &DescribeCustomLinesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeCustomLines", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeCustomLinesResponse creates a response to parse from DescribeCustomLines response -func CreateDescribeCustomLinesResponse() (response *DescribeCustomLinesResponse) { - response = &DescribeCustomLinesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_cache_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_cache_domains.go deleted file mode 100644 index 2b908100e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_cache_domains.go +++ /dev/null @@ -1,107 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsCacheDomains invokes the alidns.DescribeDnsCacheDomains API synchronously -func (client *Client) DescribeDnsCacheDomains(request *DescribeDnsCacheDomainsRequest) (response *DescribeDnsCacheDomainsResponse, err error) { - response = CreateDescribeDnsCacheDomainsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsCacheDomainsWithChan invokes the alidns.DescribeDnsCacheDomains API asynchronously -func (client *Client) DescribeDnsCacheDomainsWithChan(request *DescribeDnsCacheDomainsRequest) (<-chan *DescribeDnsCacheDomainsResponse, <-chan error) { - responseChan := make(chan *DescribeDnsCacheDomainsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsCacheDomains(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsCacheDomainsWithCallback invokes the alidns.DescribeDnsCacheDomains API asynchronously -func (client *Client) DescribeDnsCacheDomainsWithCallback(request *DescribeDnsCacheDomainsRequest, callback func(response *DescribeDnsCacheDomainsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsCacheDomainsResponse - var err error - defer close(result) - response, err = client.DescribeDnsCacheDomains(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsCacheDomainsRequest is the request struct for api DescribeDnsCacheDomains -type DescribeDnsCacheDomainsRequest struct { - *requests.RpcRequest - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - Keyword string `position:"Query" name:"Keyword"` -} - -// DescribeDnsCacheDomainsResponse is the response struct for api DescribeDnsCacheDomains -type DescribeDnsCacheDomainsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - Domains []Domain `json:"Domains" xml:"Domains"` -} - -// CreateDescribeDnsCacheDomainsRequest creates a request to invoke DescribeDnsCacheDomains API -func CreateDescribeDnsCacheDomainsRequest() (request *DescribeDnsCacheDomainsRequest) { - request = &DescribeDnsCacheDomainsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsCacheDomains", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsCacheDomainsResponse creates a response to parse from DescribeDnsCacheDomains response -func CreateDescribeDnsCacheDomainsResponse() (response *DescribeDnsCacheDomainsResponse) { - response = &DescribeDnsCacheDomainsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_access_strategies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_access_strategies.go deleted file mode 100644 index 0df57e23e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_access_strategies.go +++ /dev/null @@ -1,109 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmAccessStrategies invokes the alidns.DescribeDnsGtmAccessStrategies API synchronously -func (client *Client) DescribeDnsGtmAccessStrategies(request *DescribeDnsGtmAccessStrategiesRequest) (response *DescribeDnsGtmAccessStrategiesResponse, err error) { - response = CreateDescribeDnsGtmAccessStrategiesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmAccessStrategiesWithChan invokes the alidns.DescribeDnsGtmAccessStrategies API asynchronously -func (client *Client) DescribeDnsGtmAccessStrategiesWithChan(request *DescribeDnsGtmAccessStrategiesRequest) (<-chan *DescribeDnsGtmAccessStrategiesResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmAccessStrategiesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmAccessStrategies(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmAccessStrategiesWithCallback invokes the alidns.DescribeDnsGtmAccessStrategies API asynchronously -func (client *Client) DescribeDnsGtmAccessStrategiesWithCallback(request *DescribeDnsGtmAccessStrategiesRequest, callback func(response *DescribeDnsGtmAccessStrategiesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmAccessStrategiesResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmAccessStrategies(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmAccessStrategiesRequest is the request struct for api DescribeDnsGtmAccessStrategies -type DescribeDnsGtmAccessStrategiesRequest struct { - *requests.RpcRequest - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - StrategyMode string `position:"Query" name:"StrategyMode"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsGtmAccessStrategiesResponse is the response struct for api DescribeDnsGtmAccessStrategies -type DescribeDnsGtmAccessStrategiesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - Strategies StrategiesInDescribeDnsGtmAccessStrategies `json:"Strategies" xml:"Strategies"` -} - -// CreateDescribeDnsGtmAccessStrategiesRequest creates a request to invoke DescribeDnsGtmAccessStrategies API -func CreateDescribeDnsGtmAccessStrategiesRequest() (request *DescribeDnsGtmAccessStrategiesRequest) { - request = &DescribeDnsGtmAccessStrategiesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmAccessStrategies", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmAccessStrategiesResponse creates a response to parse from DescribeDnsGtmAccessStrategies response -func CreateDescribeDnsGtmAccessStrategiesResponse() (response *DescribeDnsGtmAccessStrategiesResponse) { - response = &DescribeDnsGtmAccessStrategiesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_access_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_access_strategy.go deleted file mode 100644 index 266c89c13..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_access_strategy.go +++ /dev/null @@ -1,126 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmAccessStrategy invokes the alidns.DescribeDnsGtmAccessStrategy API synchronously -func (client *Client) DescribeDnsGtmAccessStrategy(request *DescribeDnsGtmAccessStrategyRequest) (response *DescribeDnsGtmAccessStrategyResponse, err error) { - response = CreateDescribeDnsGtmAccessStrategyResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmAccessStrategyWithChan invokes the alidns.DescribeDnsGtmAccessStrategy API asynchronously -func (client *Client) DescribeDnsGtmAccessStrategyWithChan(request *DescribeDnsGtmAccessStrategyRequest) (<-chan *DescribeDnsGtmAccessStrategyResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmAccessStrategyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmAccessStrategy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmAccessStrategyWithCallback invokes the alidns.DescribeDnsGtmAccessStrategy API asynchronously -func (client *Client) DescribeDnsGtmAccessStrategyWithCallback(request *DescribeDnsGtmAccessStrategyRequest, callback func(response *DescribeDnsGtmAccessStrategyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmAccessStrategyResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmAccessStrategy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmAccessStrategyRequest is the request struct for api DescribeDnsGtmAccessStrategy -type DescribeDnsGtmAccessStrategyRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - StrategyId string `position:"Query" name:"StrategyId"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsGtmAccessStrategyResponse is the response struct for api DescribeDnsGtmAccessStrategy -type DescribeDnsGtmAccessStrategyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - StrategyId string `json:"StrategyId" xml:"StrategyId"` - StrategyName string `json:"StrategyName" xml:"StrategyName"` - StrategyMode string `json:"StrategyMode" xml:"StrategyMode"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - DefaultAddrPoolType string `json:"DefaultAddrPoolType" xml:"DefaultAddrPoolType"` - DefaultLbaStrategy string `json:"DefaultLbaStrategy" xml:"DefaultLbaStrategy"` - DefaultMinAvailableAddrNum int `json:"DefaultMinAvailableAddrNum" xml:"DefaultMinAvailableAddrNum"` - DefaultMaxReturnAddrNum int `json:"DefaultMaxReturnAddrNum" xml:"DefaultMaxReturnAddrNum"` - DefaultLatencyOptimization string `json:"DefaultLatencyOptimization" xml:"DefaultLatencyOptimization"` - DefaultAddrPoolGroupStatus string `json:"DefaultAddrPoolGroupStatus" xml:"DefaultAddrPoolGroupStatus"` - FailoverAddrPoolType string `json:"FailoverAddrPoolType" xml:"FailoverAddrPoolType"` - FailoverLbaStrategy string `json:"FailoverLbaStrategy" xml:"FailoverLbaStrategy"` - FailoverMinAvailableAddrNum int `json:"FailoverMinAvailableAddrNum" xml:"FailoverMinAvailableAddrNum"` - FailoverMaxReturnAddrNum int `json:"FailoverMaxReturnAddrNum" xml:"FailoverMaxReturnAddrNum"` - FailoverLatencyOptimization string `json:"FailoverLatencyOptimization" xml:"FailoverLatencyOptimization"` - FailoverAddrPoolGroupStatus string `json:"FailoverAddrPoolGroupStatus" xml:"FailoverAddrPoolGroupStatus"` - AccessMode string `json:"AccessMode" xml:"AccessMode"` - EffectiveAddrPoolGroupType string `json:"EffectiveAddrPoolGroupType" xml:"EffectiveAddrPoolGroupType"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - DefaultAvailableAddrNum int `json:"DefaultAvailableAddrNum" xml:"DefaultAvailableAddrNum"` - FailoverAvailableAddrNum int `json:"FailoverAvailableAddrNum" xml:"FailoverAvailableAddrNum"` - Lines LinesInDescribeDnsGtmAccessStrategy `json:"Lines" xml:"Lines"` - DefaultAddrPools DefaultAddrPools `json:"DefaultAddrPools" xml:"DefaultAddrPools"` - FailoverAddrPools FailoverAddrPools `json:"FailoverAddrPools" xml:"FailoverAddrPools"` -} - -// CreateDescribeDnsGtmAccessStrategyRequest creates a request to invoke DescribeDnsGtmAccessStrategy API -func CreateDescribeDnsGtmAccessStrategyRequest() (request *DescribeDnsGtmAccessStrategyRequest) { - request = &DescribeDnsGtmAccessStrategyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmAccessStrategy", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmAccessStrategyResponse creates a response to parse from DescribeDnsGtmAccessStrategy response -func CreateDescribeDnsGtmAccessStrategyResponse() (response *DescribeDnsGtmAccessStrategyResponse) { - response = &DescribeDnsGtmAccessStrategyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_access_strategy_available_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_access_strategy_available_config.go deleted file mode 100644 index 17bd6fe6d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_access_strategy_available_config.go +++ /dev/null @@ -1,110 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmAccessStrategyAvailableConfig invokes the alidns.DescribeDnsGtmAccessStrategyAvailableConfig API synchronously -func (client *Client) DescribeDnsGtmAccessStrategyAvailableConfig(request *DescribeDnsGtmAccessStrategyAvailableConfigRequest) (response *DescribeDnsGtmAccessStrategyAvailableConfigResponse, err error) { - response = CreateDescribeDnsGtmAccessStrategyAvailableConfigResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmAccessStrategyAvailableConfigWithChan invokes the alidns.DescribeDnsGtmAccessStrategyAvailableConfig API asynchronously -func (client *Client) DescribeDnsGtmAccessStrategyAvailableConfigWithChan(request *DescribeDnsGtmAccessStrategyAvailableConfigRequest) (<-chan *DescribeDnsGtmAccessStrategyAvailableConfigResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmAccessStrategyAvailableConfigResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmAccessStrategyAvailableConfig(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmAccessStrategyAvailableConfigWithCallback invokes the alidns.DescribeDnsGtmAccessStrategyAvailableConfig API asynchronously -func (client *Client) DescribeDnsGtmAccessStrategyAvailableConfigWithCallback(request *DescribeDnsGtmAccessStrategyAvailableConfigRequest, callback func(response *DescribeDnsGtmAccessStrategyAvailableConfigResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmAccessStrategyAvailableConfigResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmAccessStrategyAvailableConfig(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmAccessStrategyAvailableConfigRequest is the request struct for api DescribeDnsGtmAccessStrategyAvailableConfig -type DescribeDnsGtmAccessStrategyAvailableConfigRequest struct { - *requests.RpcRequest - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - StrategyMode string `position:"Query" name:"StrategyMode"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsGtmAccessStrategyAvailableConfigResponse is the response struct for api DescribeDnsGtmAccessStrategyAvailableConfig -type DescribeDnsGtmAccessStrategyAvailableConfigResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - SuggestSetDefaultLine bool `json:"SuggestSetDefaultLine" xml:"SuggestSetDefaultLine"` - SelectedIpv4Lines SelectedIpv4Lines `json:"SelectedIpv4Lines" xml:"SelectedIpv4Lines"` - SelectedIpv6Lines SelectedIpv6Lines `json:"SelectedIpv6Lines" xml:"SelectedIpv6Lines"` - SelectedDomainLines SelectedDomainLines `json:"SelectedDomainLines" xml:"SelectedDomainLines"` - Ipv4AddrPools Ipv4AddrPools `json:"Ipv4AddrPools" xml:"Ipv4AddrPools"` - Lines LinesInDescribeDnsGtmAccessStrategyAvailableConfig `json:"Lines" xml:"Lines"` - Ipv6AddrPools Ipv6AddrPools `json:"Ipv6AddrPools" xml:"Ipv6AddrPools"` - DomainAddrPools DomainAddrPools `json:"DomainAddrPools" xml:"DomainAddrPools"` -} - -// CreateDescribeDnsGtmAccessStrategyAvailableConfigRequest creates a request to invoke DescribeDnsGtmAccessStrategyAvailableConfig API -func CreateDescribeDnsGtmAccessStrategyAvailableConfigRequest() (request *DescribeDnsGtmAccessStrategyAvailableConfigRequest) { - request = &DescribeDnsGtmAccessStrategyAvailableConfigRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmAccessStrategyAvailableConfig", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmAccessStrategyAvailableConfigResponse creates a response to parse from DescribeDnsGtmAccessStrategyAvailableConfig response -func CreateDescribeDnsGtmAccessStrategyAvailableConfigResponse() (response *DescribeDnsGtmAccessStrategyAvailableConfigResponse) { - response = &DescribeDnsGtmAccessStrategyAvailableConfigResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_addr_attribute_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_addr_attribute_info.go deleted file mode 100644 index 58a104a3d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_addr_attribute_info.go +++ /dev/null @@ -1,103 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmAddrAttributeInfo invokes the alidns.DescribeDnsGtmAddrAttributeInfo API synchronously -func (client *Client) DescribeDnsGtmAddrAttributeInfo(request *DescribeDnsGtmAddrAttributeInfoRequest) (response *DescribeDnsGtmAddrAttributeInfoResponse, err error) { - response = CreateDescribeDnsGtmAddrAttributeInfoResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmAddrAttributeInfoWithChan invokes the alidns.DescribeDnsGtmAddrAttributeInfo API asynchronously -func (client *Client) DescribeDnsGtmAddrAttributeInfoWithChan(request *DescribeDnsGtmAddrAttributeInfoRequest) (<-chan *DescribeDnsGtmAddrAttributeInfoResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmAddrAttributeInfoResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmAddrAttributeInfo(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmAddrAttributeInfoWithCallback invokes the alidns.DescribeDnsGtmAddrAttributeInfo API asynchronously -func (client *Client) DescribeDnsGtmAddrAttributeInfoWithCallback(request *DescribeDnsGtmAddrAttributeInfoRequest, callback func(response *DescribeDnsGtmAddrAttributeInfoResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmAddrAttributeInfoResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmAddrAttributeInfo(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmAddrAttributeInfoRequest is the request struct for api DescribeDnsGtmAddrAttributeInfo -type DescribeDnsGtmAddrAttributeInfoRequest struct { - *requests.RpcRequest - Addrs string `position:"Query" name:"Addrs"` - Type string `position:"Query" name:"Type"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsGtmAddrAttributeInfoResponse is the response struct for api DescribeDnsGtmAddrAttributeInfo -type DescribeDnsGtmAddrAttributeInfoResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Addr AddrInDescribeDnsGtmAddrAttributeInfo `json:"Addr" xml:"Addr"` -} - -// CreateDescribeDnsGtmAddrAttributeInfoRequest creates a request to invoke DescribeDnsGtmAddrAttributeInfo API -func CreateDescribeDnsGtmAddrAttributeInfoRequest() (request *DescribeDnsGtmAddrAttributeInfoRequest) { - request = &DescribeDnsGtmAddrAttributeInfoRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmAddrAttributeInfo", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmAddrAttributeInfoResponse creates a response to parse from DescribeDnsGtmAddrAttributeInfo response -func CreateDescribeDnsGtmAddrAttributeInfoResponse() (response *DescribeDnsGtmAddrAttributeInfoResponse) { - response = &DescribeDnsGtmAddrAttributeInfoResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_address_pool_available_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_address_pool_available_config.go deleted file mode 100644 index 3afe568c9..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_address_pool_available_config.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmAddressPoolAvailableConfig invokes the alidns.DescribeDnsGtmAddressPoolAvailableConfig API synchronously -func (client *Client) DescribeDnsGtmAddressPoolAvailableConfig(request *DescribeDnsGtmAddressPoolAvailableConfigRequest) (response *DescribeDnsGtmAddressPoolAvailableConfigResponse, err error) { - response = CreateDescribeDnsGtmAddressPoolAvailableConfigResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmAddressPoolAvailableConfigWithChan invokes the alidns.DescribeDnsGtmAddressPoolAvailableConfig API asynchronously -func (client *Client) DescribeDnsGtmAddressPoolAvailableConfigWithChan(request *DescribeDnsGtmAddressPoolAvailableConfigRequest) (<-chan *DescribeDnsGtmAddressPoolAvailableConfigResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmAddressPoolAvailableConfigResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmAddressPoolAvailableConfig(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmAddressPoolAvailableConfigWithCallback invokes the alidns.DescribeDnsGtmAddressPoolAvailableConfig API asynchronously -func (client *Client) DescribeDnsGtmAddressPoolAvailableConfigWithCallback(request *DescribeDnsGtmAddressPoolAvailableConfigRequest, callback func(response *DescribeDnsGtmAddressPoolAvailableConfigResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmAddressPoolAvailableConfigResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmAddressPoolAvailableConfig(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmAddressPoolAvailableConfigRequest is the request struct for api DescribeDnsGtmAddressPoolAvailableConfig -type DescribeDnsGtmAddressPoolAvailableConfigRequest struct { - *requests.RpcRequest - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsGtmAddressPoolAvailableConfigResponse is the response struct for api DescribeDnsGtmAddressPoolAvailableConfig -type DescribeDnsGtmAddressPoolAvailableConfigResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AttributeInfos AttributeInfos `json:"AttributeInfos" xml:"AttributeInfos"` -} - -// CreateDescribeDnsGtmAddressPoolAvailableConfigRequest creates a request to invoke DescribeDnsGtmAddressPoolAvailableConfig API -func CreateDescribeDnsGtmAddressPoolAvailableConfigRequest() (request *DescribeDnsGtmAddressPoolAvailableConfigRequest) { - request = &DescribeDnsGtmAddressPoolAvailableConfigRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmAddressPoolAvailableConfig", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmAddressPoolAvailableConfigResponse creates a response to parse from DescribeDnsGtmAddressPoolAvailableConfig response -func CreateDescribeDnsGtmAddressPoolAvailableConfigResponse() (response *DescribeDnsGtmAddressPoolAvailableConfigResponse) { - response = &DescribeDnsGtmAddressPoolAvailableConfigResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_available_alert_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_available_alert_group.go deleted file mode 100644 index c5e50253c..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_available_alert_group.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmAvailableAlertGroup invokes the alidns.DescribeDnsGtmAvailableAlertGroup API synchronously -func (client *Client) DescribeDnsGtmAvailableAlertGroup(request *DescribeDnsGtmAvailableAlertGroupRequest) (response *DescribeDnsGtmAvailableAlertGroupResponse, err error) { - response = CreateDescribeDnsGtmAvailableAlertGroupResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmAvailableAlertGroupWithChan invokes the alidns.DescribeDnsGtmAvailableAlertGroup API asynchronously -func (client *Client) DescribeDnsGtmAvailableAlertGroupWithChan(request *DescribeDnsGtmAvailableAlertGroupRequest) (<-chan *DescribeDnsGtmAvailableAlertGroupResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmAvailableAlertGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmAvailableAlertGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmAvailableAlertGroupWithCallback invokes the alidns.DescribeDnsGtmAvailableAlertGroup API asynchronously -func (client *Client) DescribeDnsGtmAvailableAlertGroupWithCallback(request *DescribeDnsGtmAvailableAlertGroupRequest, callback func(response *DescribeDnsGtmAvailableAlertGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmAvailableAlertGroupResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmAvailableAlertGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmAvailableAlertGroupRequest is the request struct for api DescribeDnsGtmAvailableAlertGroup -type DescribeDnsGtmAvailableAlertGroupRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsGtmAvailableAlertGroupResponse is the response struct for api DescribeDnsGtmAvailableAlertGroup -type DescribeDnsGtmAvailableAlertGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AvailableAlertGroup string `json:"AvailableAlertGroup" xml:"AvailableAlertGroup"` -} - -// CreateDescribeDnsGtmAvailableAlertGroupRequest creates a request to invoke DescribeDnsGtmAvailableAlertGroup API -func CreateDescribeDnsGtmAvailableAlertGroupRequest() (request *DescribeDnsGtmAvailableAlertGroupRequest) { - request = &DescribeDnsGtmAvailableAlertGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmAvailableAlertGroup", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmAvailableAlertGroupResponse creates a response to parse from DescribeDnsGtmAvailableAlertGroup response -func CreateDescribeDnsGtmAvailableAlertGroupResponse() (response *DescribeDnsGtmAvailableAlertGroupResponse) { - response = &DescribeDnsGtmAvailableAlertGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance.go deleted file mode 100644 index e6800747e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance.go +++ /dev/null @@ -1,113 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmInstance invokes the alidns.DescribeDnsGtmInstance API synchronously -func (client *Client) DescribeDnsGtmInstance(request *DescribeDnsGtmInstanceRequest) (response *DescribeDnsGtmInstanceResponse, err error) { - response = CreateDescribeDnsGtmInstanceResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmInstanceWithChan invokes the alidns.DescribeDnsGtmInstance API asynchronously -func (client *Client) DescribeDnsGtmInstanceWithChan(request *DescribeDnsGtmInstanceRequest) (<-chan *DescribeDnsGtmInstanceResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmInstanceWithCallback invokes the alidns.DescribeDnsGtmInstance API asynchronously -func (client *Client) DescribeDnsGtmInstanceWithCallback(request *DescribeDnsGtmInstanceRequest, callback func(response *DescribeDnsGtmInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmInstanceResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmInstanceRequest is the request struct for api DescribeDnsGtmInstance -type DescribeDnsGtmInstanceRequest struct { - *requests.RpcRequest - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsGtmInstanceResponse is the response struct for api DescribeDnsGtmInstance -type DescribeDnsGtmInstanceResponse struct { - *responses.BaseResponse - ExpireTimestamp int64 `json:"ExpireTimestamp" xml:"ExpireTimestamp"` - RequestId string `json:"RequestId" xml:"RequestId"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - TaskQuota int `json:"TaskQuota" xml:"TaskQuota"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - SmsQuota int `json:"SmsQuota" xml:"SmsQuota"` - VersionCode string `json:"VersionCode" xml:"VersionCode"` - PaymentType string `json:"PaymentType" xml:"PaymentType"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - Config ConfigInDescribeDnsGtmInstance `json:"Config" xml:"Config"` - UsedQuota UsedQuota `json:"UsedQuota" xml:"UsedQuota"` -} - -// CreateDescribeDnsGtmInstanceRequest creates a request to invoke DescribeDnsGtmInstance API -func CreateDescribeDnsGtmInstanceRequest() (request *DescribeDnsGtmInstanceRequest) { - request = &DescribeDnsGtmInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmInstance", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmInstanceResponse creates a response to parse from DescribeDnsGtmInstance response -func CreateDescribeDnsGtmInstanceResponse() (response *DescribeDnsGtmInstanceResponse) { - response = &DescribeDnsGtmInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_address_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_address_pool.go deleted file mode 100644 index 15f447f4b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_address_pool.go +++ /dev/null @@ -1,113 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmInstanceAddressPool invokes the alidns.DescribeDnsGtmInstanceAddressPool API synchronously -func (client *Client) DescribeDnsGtmInstanceAddressPool(request *DescribeDnsGtmInstanceAddressPoolRequest) (response *DescribeDnsGtmInstanceAddressPoolResponse, err error) { - response = CreateDescribeDnsGtmInstanceAddressPoolResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmInstanceAddressPoolWithChan invokes the alidns.DescribeDnsGtmInstanceAddressPool API asynchronously -func (client *Client) DescribeDnsGtmInstanceAddressPoolWithChan(request *DescribeDnsGtmInstanceAddressPoolRequest) (<-chan *DescribeDnsGtmInstanceAddressPoolResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmInstanceAddressPoolResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmInstanceAddressPool(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmInstanceAddressPoolWithCallback invokes the alidns.DescribeDnsGtmInstanceAddressPool API asynchronously -func (client *Client) DescribeDnsGtmInstanceAddressPoolWithCallback(request *DescribeDnsGtmInstanceAddressPoolRequest, callback func(response *DescribeDnsGtmInstanceAddressPoolResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmInstanceAddressPoolResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmInstanceAddressPool(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmInstanceAddressPoolRequest is the request struct for api DescribeDnsGtmInstanceAddressPool -type DescribeDnsGtmInstanceAddressPoolRequest struct { - *requests.RpcRequest - AddrPoolId string `position:"Query" name:"AddrPoolId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsGtmInstanceAddressPoolResponse is the response struct for api DescribeDnsGtmInstanceAddressPool -type DescribeDnsGtmInstanceAddressPoolResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AddrPoolId string `json:"AddrPoolId" xml:"AddrPoolId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` - UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` - AddrCount int `json:"AddrCount" xml:"AddrCount"` - MonitorConfigId string `json:"MonitorConfigId" xml:"MonitorConfigId"` - MonitorStatus string `json:"MonitorStatus" xml:"MonitorStatus"` - Name string `json:"Name" xml:"Name"` - Type string `json:"Type" xml:"Type"` - LbaStrategy string `json:"LbaStrategy" xml:"LbaStrategy"` - Addrs AddrsInDescribeDnsGtmInstanceAddressPool `json:"Addrs" xml:"Addrs"` -} - -// CreateDescribeDnsGtmInstanceAddressPoolRequest creates a request to invoke DescribeDnsGtmInstanceAddressPool API -func CreateDescribeDnsGtmInstanceAddressPoolRequest() (request *DescribeDnsGtmInstanceAddressPoolRequest) { - request = &DescribeDnsGtmInstanceAddressPoolRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmInstanceAddressPool", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmInstanceAddressPoolResponse creates a response to parse from DescribeDnsGtmInstanceAddressPool response -func CreateDescribeDnsGtmInstanceAddressPoolResponse() (response *DescribeDnsGtmInstanceAddressPoolResponse) { - response = &DescribeDnsGtmInstanceAddressPoolResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_address_pools.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_address_pools.go deleted file mode 100644 index 5a9035142..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_address_pools.go +++ /dev/null @@ -1,108 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmInstanceAddressPools invokes the alidns.DescribeDnsGtmInstanceAddressPools API synchronously -func (client *Client) DescribeDnsGtmInstanceAddressPools(request *DescribeDnsGtmInstanceAddressPoolsRequest) (response *DescribeDnsGtmInstanceAddressPoolsResponse, err error) { - response = CreateDescribeDnsGtmInstanceAddressPoolsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmInstanceAddressPoolsWithChan invokes the alidns.DescribeDnsGtmInstanceAddressPools API asynchronously -func (client *Client) DescribeDnsGtmInstanceAddressPoolsWithChan(request *DescribeDnsGtmInstanceAddressPoolsRequest) (<-chan *DescribeDnsGtmInstanceAddressPoolsResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmInstanceAddressPoolsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmInstanceAddressPools(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmInstanceAddressPoolsWithCallback invokes the alidns.DescribeDnsGtmInstanceAddressPools API asynchronously -func (client *Client) DescribeDnsGtmInstanceAddressPoolsWithCallback(request *DescribeDnsGtmInstanceAddressPoolsRequest, callback func(response *DescribeDnsGtmInstanceAddressPoolsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmInstanceAddressPoolsResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmInstanceAddressPools(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmInstanceAddressPoolsRequest is the request struct for api DescribeDnsGtmInstanceAddressPools -type DescribeDnsGtmInstanceAddressPoolsRequest struct { - *requests.RpcRequest - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsGtmInstanceAddressPoolsResponse is the response struct for api DescribeDnsGtmInstanceAddressPools -type DescribeDnsGtmInstanceAddressPoolsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - AddrPools AddrPoolsInDescribeDnsGtmInstanceAddressPools `json:"AddrPools" xml:"AddrPools"` -} - -// CreateDescribeDnsGtmInstanceAddressPoolsRequest creates a request to invoke DescribeDnsGtmInstanceAddressPools API -func CreateDescribeDnsGtmInstanceAddressPoolsRequest() (request *DescribeDnsGtmInstanceAddressPoolsRequest) { - request = &DescribeDnsGtmInstanceAddressPoolsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmInstanceAddressPools", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmInstanceAddressPoolsResponse creates a response to parse from DescribeDnsGtmInstanceAddressPools response -func CreateDescribeDnsGtmInstanceAddressPoolsResponse() (response *DescribeDnsGtmInstanceAddressPoolsResponse) { - response = &DescribeDnsGtmInstanceAddressPoolsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_status.go deleted file mode 100644 index b19a7a140..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_status.go +++ /dev/null @@ -1,106 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmInstanceStatus invokes the alidns.DescribeDnsGtmInstanceStatus API synchronously -func (client *Client) DescribeDnsGtmInstanceStatus(request *DescribeDnsGtmInstanceStatusRequest) (response *DescribeDnsGtmInstanceStatusResponse, err error) { - response = CreateDescribeDnsGtmInstanceStatusResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmInstanceStatusWithChan invokes the alidns.DescribeDnsGtmInstanceStatus API asynchronously -func (client *Client) DescribeDnsGtmInstanceStatusWithChan(request *DescribeDnsGtmInstanceStatusRequest) (<-chan *DescribeDnsGtmInstanceStatusResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmInstanceStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmInstanceStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmInstanceStatusWithCallback invokes the alidns.DescribeDnsGtmInstanceStatus API asynchronously -func (client *Client) DescribeDnsGtmInstanceStatusWithCallback(request *DescribeDnsGtmInstanceStatusRequest, callback func(response *DescribeDnsGtmInstanceStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmInstanceStatusResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmInstanceStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmInstanceStatusRequest is the request struct for api DescribeDnsGtmInstanceStatus -type DescribeDnsGtmInstanceStatusRequest struct { - *requests.RpcRequest - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsGtmInstanceStatusResponse is the response struct for api DescribeDnsGtmInstanceStatus -type DescribeDnsGtmInstanceStatusResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AddrNotAvailableNum int `json:"AddrNotAvailableNum" xml:"AddrNotAvailableNum"` - AddrPoolGroupNotAvailableNum int `json:"AddrPoolGroupNotAvailableNum" xml:"AddrPoolGroupNotAvailableNum"` - SwitchToFailoverStrategyNum int `json:"SwitchToFailoverStrategyNum" xml:"SwitchToFailoverStrategyNum"` - StrategyNotAvailableNum int `json:"StrategyNotAvailableNum" xml:"StrategyNotAvailableNum"` - AddrAvailableNum int `json:"AddrAvailableNum" xml:"AddrAvailableNum"` -} - -// CreateDescribeDnsGtmInstanceStatusRequest creates a request to invoke DescribeDnsGtmInstanceStatus API -func CreateDescribeDnsGtmInstanceStatusRequest() (request *DescribeDnsGtmInstanceStatusRequest) { - request = &DescribeDnsGtmInstanceStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmInstanceStatus", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmInstanceStatusResponse creates a response to parse from DescribeDnsGtmInstanceStatus response -func CreateDescribeDnsGtmInstanceStatusResponse() (response *DescribeDnsGtmInstanceStatusResponse) { - response = &DescribeDnsGtmInstanceStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_system_cname.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_system_cname.go deleted file mode 100644 index 64f893ce8..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instance_system_cname.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmInstanceSystemCname invokes the alidns.DescribeDnsGtmInstanceSystemCname API synchronously -func (client *Client) DescribeDnsGtmInstanceSystemCname(request *DescribeDnsGtmInstanceSystemCnameRequest) (response *DescribeDnsGtmInstanceSystemCnameResponse, err error) { - response = CreateDescribeDnsGtmInstanceSystemCnameResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmInstanceSystemCnameWithChan invokes the alidns.DescribeDnsGtmInstanceSystemCname API asynchronously -func (client *Client) DescribeDnsGtmInstanceSystemCnameWithChan(request *DescribeDnsGtmInstanceSystemCnameRequest) (<-chan *DescribeDnsGtmInstanceSystemCnameResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmInstanceSystemCnameResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmInstanceSystemCname(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmInstanceSystemCnameWithCallback invokes the alidns.DescribeDnsGtmInstanceSystemCname API asynchronously -func (client *Client) DescribeDnsGtmInstanceSystemCnameWithCallback(request *DescribeDnsGtmInstanceSystemCnameRequest, callback func(response *DescribeDnsGtmInstanceSystemCnameResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmInstanceSystemCnameResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmInstanceSystemCname(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmInstanceSystemCnameRequest is the request struct for api DescribeDnsGtmInstanceSystemCname -type DescribeDnsGtmInstanceSystemCnameRequest struct { - *requests.RpcRequest - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsGtmInstanceSystemCnameResponse is the response struct for api DescribeDnsGtmInstanceSystemCname -type DescribeDnsGtmInstanceSystemCnameResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - SystemCname string `json:"SystemCname" xml:"SystemCname"` -} - -// CreateDescribeDnsGtmInstanceSystemCnameRequest creates a request to invoke DescribeDnsGtmInstanceSystemCname API -func CreateDescribeDnsGtmInstanceSystemCnameRequest() (request *DescribeDnsGtmInstanceSystemCnameRequest) { - request = &DescribeDnsGtmInstanceSystemCnameRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmInstanceSystemCname", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmInstanceSystemCnameResponse creates a response to parse from DescribeDnsGtmInstanceSystemCname response -func CreateDescribeDnsGtmInstanceSystemCnameResponse() (response *DescribeDnsGtmInstanceSystemCnameResponse) { - response = &DescribeDnsGtmInstanceSystemCnameResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instances.go deleted file mode 100644 index 8ed0b5bab..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_instances.go +++ /dev/null @@ -1,109 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmInstances invokes the alidns.DescribeDnsGtmInstances API synchronously -func (client *Client) DescribeDnsGtmInstances(request *DescribeDnsGtmInstancesRequest) (response *DescribeDnsGtmInstancesResponse, err error) { - response = CreateDescribeDnsGtmInstancesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmInstancesWithChan invokes the alidns.DescribeDnsGtmInstances API asynchronously -func (client *Client) DescribeDnsGtmInstancesWithChan(request *DescribeDnsGtmInstancesRequest) (<-chan *DescribeDnsGtmInstancesResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmInstancesWithCallback invokes the alidns.DescribeDnsGtmInstances API asynchronously -func (client *Client) DescribeDnsGtmInstancesWithCallback(request *DescribeDnsGtmInstancesRequest, callback func(response *DescribeDnsGtmInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmInstancesResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmInstancesRequest is the request struct for api DescribeDnsGtmInstances -type DescribeDnsGtmInstancesRequest struct { - *requests.RpcRequest - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - Keyword string `position:"Query" name:"Keyword"` -} - -// DescribeDnsGtmInstancesResponse is the response struct for api DescribeDnsGtmInstances -type DescribeDnsGtmInstancesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - GtmInstances []GtmInstance `json:"GtmInstances" xml:"GtmInstances"` -} - -// CreateDescribeDnsGtmInstancesRequest creates a request to invoke DescribeDnsGtmInstances API -func CreateDescribeDnsGtmInstancesRequest() (request *DescribeDnsGtmInstancesRequest) { - request = &DescribeDnsGtmInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmInstances", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmInstancesResponse creates a response to parse from DescribeDnsGtmInstances response -func CreateDescribeDnsGtmInstancesResponse() (response *DescribeDnsGtmInstancesResponse) { - response = &DescribeDnsGtmInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_logs.go deleted file mode 100644 index 82cb269e2..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_logs.go +++ /dev/null @@ -1,111 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmLogs invokes the alidns.DescribeDnsGtmLogs API synchronously -func (client *Client) DescribeDnsGtmLogs(request *DescribeDnsGtmLogsRequest) (response *DescribeDnsGtmLogsResponse, err error) { - response = CreateDescribeDnsGtmLogsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmLogsWithChan invokes the alidns.DescribeDnsGtmLogs API asynchronously -func (client *Client) DescribeDnsGtmLogsWithChan(request *DescribeDnsGtmLogsRequest) (<-chan *DescribeDnsGtmLogsResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmLogsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmLogs(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmLogsWithCallback invokes the alidns.DescribeDnsGtmLogs API asynchronously -func (client *Client) DescribeDnsGtmLogsWithCallback(request *DescribeDnsGtmLogsRequest, callback func(response *DescribeDnsGtmLogsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmLogsResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmLogs(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmLogsRequest is the request struct for api DescribeDnsGtmLogs -type DescribeDnsGtmLogsRequest struct { - *requests.RpcRequest - StartTimestamp requests.Integer `position:"Query" name:"StartTimestamp"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - EndTimestamp requests.Integer `position:"Query" name:"EndTimestamp"` - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - Keyword string `position:"Query" name:"Keyword"` -} - -// DescribeDnsGtmLogsResponse is the response struct for api DescribeDnsGtmLogs -type DescribeDnsGtmLogsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - Logs LogsInDescribeDnsGtmLogs `json:"Logs" xml:"Logs"` -} - -// CreateDescribeDnsGtmLogsRequest creates a request to invoke DescribeDnsGtmLogs API -func CreateDescribeDnsGtmLogsRequest() (request *DescribeDnsGtmLogsRequest) { - request = &DescribeDnsGtmLogsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmLogs", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmLogsResponse creates a response to parse from DescribeDnsGtmLogs response -func CreateDescribeDnsGtmLogsResponse() (response *DescribeDnsGtmLogsResponse) { - response = &DescribeDnsGtmLogsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_monitor_available_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_monitor_available_config.go deleted file mode 100644 index 2ca015530..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_monitor_available_config.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmMonitorAvailableConfig invokes the alidns.DescribeDnsGtmMonitorAvailableConfig API synchronously -func (client *Client) DescribeDnsGtmMonitorAvailableConfig(request *DescribeDnsGtmMonitorAvailableConfigRequest) (response *DescribeDnsGtmMonitorAvailableConfigResponse, err error) { - response = CreateDescribeDnsGtmMonitorAvailableConfigResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmMonitorAvailableConfigWithChan invokes the alidns.DescribeDnsGtmMonitorAvailableConfig API asynchronously -func (client *Client) DescribeDnsGtmMonitorAvailableConfigWithChan(request *DescribeDnsGtmMonitorAvailableConfigRequest) (<-chan *DescribeDnsGtmMonitorAvailableConfigResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmMonitorAvailableConfigResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmMonitorAvailableConfig(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmMonitorAvailableConfigWithCallback invokes the alidns.DescribeDnsGtmMonitorAvailableConfig API asynchronously -func (client *Client) DescribeDnsGtmMonitorAvailableConfigWithCallback(request *DescribeDnsGtmMonitorAvailableConfigRequest, callback func(response *DescribeDnsGtmMonitorAvailableConfigResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmMonitorAvailableConfigResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmMonitorAvailableConfig(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmMonitorAvailableConfigRequest is the request struct for api DescribeDnsGtmMonitorAvailableConfig -type DescribeDnsGtmMonitorAvailableConfigRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsGtmMonitorAvailableConfigResponse is the response struct for api DescribeDnsGtmMonitorAvailableConfig -type DescribeDnsGtmMonitorAvailableConfigResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Ipv4IspCityNodes Ipv4IspCityNodes `json:"Ipv4IspCityNodes" xml:"Ipv4IspCityNodes"` - DomainIpv4IspCityNodes DomainIpv4IspCityNodes `json:"DomainIpv4IspCityNodes" xml:"DomainIpv4IspCityNodes"` - DomainIpv6IspCityNodes DomainIpv6IspCityNodes `json:"DomainIpv6IspCityNodes" xml:"DomainIpv6IspCityNodes"` - Ipv6IspCityNodes Ipv6IspCityNodes `json:"Ipv6IspCityNodes" xml:"Ipv6IspCityNodes"` -} - -// CreateDescribeDnsGtmMonitorAvailableConfigRequest creates a request to invoke DescribeDnsGtmMonitorAvailableConfig API -func CreateDescribeDnsGtmMonitorAvailableConfigRequest() (request *DescribeDnsGtmMonitorAvailableConfigRequest) { - request = &DescribeDnsGtmMonitorAvailableConfigRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmMonitorAvailableConfig", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmMonitorAvailableConfigResponse creates a response to parse from DescribeDnsGtmMonitorAvailableConfig response -func CreateDescribeDnsGtmMonitorAvailableConfigResponse() (response *DescribeDnsGtmMonitorAvailableConfigResponse) { - response = &DescribeDnsGtmMonitorAvailableConfigResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_monitor_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_monitor_config.go deleted file mode 100644 index 11037cc36..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_gtm_monitor_config.go +++ /dev/null @@ -1,112 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsGtmMonitorConfig invokes the alidns.DescribeDnsGtmMonitorConfig API synchronously -func (client *Client) DescribeDnsGtmMonitorConfig(request *DescribeDnsGtmMonitorConfigRequest) (response *DescribeDnsGtmMonitorConfigResponse, err error) { - response = CreateDescribeDnsGtmMonitorConfigResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsGtmMonitorConfigWithChan invokes the alidns.DescribeDnsGtmMonitorConfig API asynchronously -func (client *Client) DescribeDnsGtmMonitorConfigWithChan(request *DescribeDnsGtmMonitorConfigRequest) (<-chan *DescribeDnsGtmMonitorConfigResponse, <-chan error) { - responseChan := make(chan *DescribeDnsGtmMonitorConfigResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsGtmMonitorConfig(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsGtmMonitorConfigWithCallback invokes the alidns.DescribeDnsGtmMonitorConfig API asynchronously -func (client *Client) DescribeDnsGtmMonitorConfigWithCallback(request *DescribeDnsGtmMonitorConfigRequest, callback func(response *DescribeDnsGtmMonitorConfigResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsGtmMonitorConfigResponse - var err error - defer close(result) - response, err = client.DescribeDnsGtmMonitorConfig(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsGtmMonitorConfigRequest is the request struct for api DescribeDnsGtmMonitorConfig -type DescribeDnsGtmMonitorConfigRequest struct { - *requests.RpcRequest - MonitorConfigId string `position:"Query" name:"MonitorConfigId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsGtmMonitorConfigResponse is the response struct for api DescribeDnsGtmMonitorConfig -type DescribeDnsGtmMonitorConfigResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - MonitorConfigId string `json:"MonitorConfigId" xml:"MonitorConfigId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` - UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` - ProtocolType string `json:"ProtocolType" xml:"ProtocolType"` - Interval int `json:"Interval" xml:"Interval"` - EvaluationCount int `json:"EvaluationCount" xml:"EvaluationCount"` - Timeout int `json:"Timeout" xml:"Timeout"` - MonitorExtendInfo string `json:"MonitorExtendInfo" xml:"MonitorExtendInfo"` - IspCityNodes IspCityNodesInDescribeDnsGtmMonitorConfig `json:"IspCityNodes" xml:"IspCityNodes"` -} - -// CreateDescribeDnsGtmMonitorConfigRequest creates a request to invoke DescribeDnsGtmMonitorConfig API -func CreateDescribeDnsGtmMonitorConfigRequest() (request *DescribeDnsGtmMonitorConfigRequest) { - request = &DescribeDnsGtmMonitorConfigRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsGtmMonitorConfig", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsGtmMonitorConfigResponse creates a response to parse from DescribeDnsGtmMonitorConfig response -func CreateDescribeDnsGtmMonitorConfigResponse() (response *DescribeDnsGtmMonitorConfigResponse) { - response = &DescribeDnsGtmMonitorConfigResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_product_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_product_instance.go deleted file mode 100644 index ee4d2e2a0..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_product_instance.go +++ /dev/null @@ -1,135 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsProductInstance invokes the alidns.DescribeDnsProductInstance API synchronously -func (client *Client) DescribeDnsProductInstance(request *DescribeDnsProductInstanceRequest) (response *DescribeDnsProductInstanceResponse, err error) { - response = CreateDescribeDnsProductInstanceResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsProductInstanceWithChan invokes the alidns.DescribeDnsProductInstance API asynchronously -func (client *Client) DescribeDnsProductInstanceWithChan(request *DescribeDnsProductInstanceRequest) (<-chan *DescribeDnsProductInstanceResponse, <-chan error) { - responseChan := make(chan *DescribeDnsProductInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsProductInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsProductInstanceWithCallback invokes the alidns.DescribeDnsProductInstance API asynchronously -func (client *Client) DescribeDnsProductInstanceWithCallback(request *DescribeDnsProductInstanceRequest, callback func(response *DescribeDnsProductInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsProductInstanceResponse - var err error - defer close(result) - response, err = client.DescribeDnsProductInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsProductInstanceRequest is the request struct for api DescribeDnsProductInstance -type DescribeDnsProductInstanceRequest struct { - *requests.RpcRequest - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDnsProductInstanceResponse is the response struct for api DescribeDnsProductInstance -type DescribeDnsProductInstanceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - VersionCode string `json:"VersionCode" xml:"VersionCode"` - VersionName string `json:"VersionName" xml:"VersionName"` - StartTime string `json:"StartTime" xml:"StartTime"` - StartTimestamp int64 `json:"StartTimestamp" xml:"StartTimestamp"` - EndTime string `json:"EndTime" xml:"EndTime"` - EndTimestamp int64 `json:"EndTimestamp" xml:"EndTimestamp"` - Domain string `json:"Domain" xml:"Domain"` - BindCount int64 `json:"BindCount" xml:"BindCount"` - BindUsedCount int64 `json:"BindUsedCount" xml:"BindUsedCount"` - TTLMinValue int64 `json:"TTLMinValue" xml:"TTLMinValue"` - SubDomainLevel int64 `json:"SubDomainLevel" xml:"SubDomainLevel"` - DnsSLBCount int64 `json:"DnsSLBCount" xml:"DnsSLBCount"` - URLForwardCount int64 `json:"URLForwardCount" xml:"URLForwardCount"` - DDosDefendFlow int64 `json:"DDosDefendFlow" xml:"DDosDefendFlow"` - DDosDefendQuery int64 `json:"DDosDefendQuery" xml:"DDosDefendQuery"` - OverseaDDosDefendFlow int64 `json:"OverseaDDosDefendFlow" xml:"OverseaDDosDefendFlow"` - SearchEngineLines string `json:"SearchEngineLines" xml:"SearchEngineLines"` - ISPLines string `json:"ISPLines" xml:"ISPLines"` - ISPRegionLines string `json:"ISPRegionLines" xml:"ISPRegionLines"` - OverseaLine string `json:"OverseaLine" xml:"OverseaLine"` - MonitorNodeCount int64 `json:"MonitorNodeCount" xml:"MonitorNodeCount"` - MonitorFrequency int64 `json:"MonitorFrequency" xml:"MonitorFrequency"` - MonitorTaskCount int64 `json:"MonitorTaskCount" xml:"MonitorTaskCount"` - RegionLines bool `json:"RegionLines" xml:"RegionLines"` - Gslb bool `json:"Gslb" xml:"Gslb"` - InClean bool `json:"InClean" xml:"InClean"` - InBlackHole bool `json:"InBlackHole" xml:"InBlackHole"` - BindDomainCount int64 `json:"BindDomainCount" xml:"BindDomainCount"` - BindDomainUsedCount int64 `json:"BindDomainUsedCount" xml:"BindDomainUsedCount"` - DnsSecurity string `json:"DnsSecurity" xml:"DnsSecurity"` - PaymentType string `json:"PaymentType" xml:"PaymentType"` - DomainType string `json:"DomainType" xml:"DomainType"` - DnsServers DnsServersInDescribeDnsProductInstance `json:"DnsServers" xml:"DnsServers"` -} - -// CreateDescribeDnsProductInstanceRequest creates a request to invoke DescribeDnsProductInstance API -func CreateDescribeDnsProductInstanceRequest() (request *DescribeDnsProductInstanceRequest) { - request = &DescribeDnsProductInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsProductInstance", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsProductInstanceResponse creates a response to parse from DescribeDnsProductInstance response -func CreateDescribeDnsProductInstanceResponse() (response *DescribeDnsProductInstanceResponse) { - response = &DescribeDnsProductInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_product_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_product_instances.go deleted file mode 100644 index 5b67356c8..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dns_product_instances.go +++ /dev/null @@ -1,109 +0,0 @@ -package alidns - -//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" -) - -// DescribeDnsProductInstances invokes the alidns.DescribeDnsProductInstances API synchronously -func (client *Client) DescribeDnsProductInstances(request *DescribeDnsProductInstancesRequest) (response *DescribeDnsProductInstancesResponse, err error) { - response = CreateDescribeDnsProductInstancesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDnsProductInstancesWithChan invokes the alidns.DescribeDnsProductInstances API asynchronously -func (client *Client) DescribeDnsProductInstancesWithChan(request *DescribeDnsProductInstancesRequest) (<-chan *DescribeDnsProductInstancesResponse, <-chan error) { - responseChan := make(chan *DescribeDnsProductInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDnsProductInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDnsProductInstancesWithCallback invokes the alidns.DescribeDnsProductInstances API asynchronously -func (client *Client) DescribeDnsProductInstancesWithCallback(request *DescribeDnsProductInstancesRequest, callback func(response *DescribeDnsProductInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDnsProductInstancesResponse - var err error - defer close(result) - response, err = client.DescribeDnsProductInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDnsProductInstancesRequest is the request struct for api DescribeDnsProductInstances -type DescribeDnsProductInstancesRequest struct { - *requests.RpcRequest - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - DomainType string `position:"Query" name:"DomainType"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - VersionCode string `position:"Query" name:"VersionCode"` -} - -// DescribeDnsProductInstancesResponse is the response struct for api DescribeDnsProductInstances -type DescribeDnsProductInstancesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - DomainType string `json:"DomainType" xml:"DomainType"` - DnsProducts DnsProducts `json:"DnsProducts" xml:"DnsProducts"` -} - -// CreateDescribeDnsProductInstancesRequest creates a request to invoke DescribeDnsProductInstances API -func CreateDescribeDnsProductInstancesRequest() (request *DescribeDnsProductInstancesRequest) { - request = &DescribeDnsProductInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDnsProductInstances", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDnsProductInstancesResponse creates a response to parse from DescribeDnsProductInstances response -func CreateDescribeDnsProductInstancesResponse() (response *DescribeDnsProductInstancesResponse) { - response = &DescribeDnsProductInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dnsslb_sub_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dnsslb_sub_domains.go deleted file mode 100644 index 60e2b2173..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_dnsslb_sub_domains.go +++ /dev/null @@ -1,108 +0,0 @@ -package alidns - -//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" -) - -// DescribeDNSSLBSubDomains invokes the alidns.DescribeDNSSLBSubDomains API synchronously -func (client *Client) DescribeDNSSLBSubDomains(request *DescribeDNSSLBSubDomainsRequest) (response *DescribeDNSSLBSubDomainsResponse, err error) { - response = CreateDescribeDNSSLBSubDomainsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDNSSLBSubDomainsWithChan invokes the alidns.DescribeDNSSLBSubDomains API asynchronously -func (client *Client) DescribeDNSSLBSubDomainsWithChan(request *DescribeDNSSLBSubDomainsRequest) (<-chan *DescribeDNSSLBSubDomainsResponse, <-chan error) { - responseChan := make(chan *DescribeDNSSLBSubDomainsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDNSSLBSubDomains(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDNSSLBSubDomainsWithCallback invokes the alidns.DescribeDNSSLBSubDomains API asynchronously -func (client *Client) DescribeDNSSLBSubDomainsWithCallback(request *DescribeDNSSLBSubDomainsRequest, callback func(response *DescribeDNSSLBSubDomainsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDNSSLBSubDomainsResponse - var err error - defer close(result) - response, err = client.DescribeDNSSLBSubDomains(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDNSSLBSubDomainsRequest is the request struct for api DescribeDNSSLBSubDomains -type DescribeDNSSLBSubDomainsRequest struct { - *requests.RpcRequest - Rr string `position:"Query" name:"Rr"` - DomainName string `position:"Query" name:"DomainName"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDNSSLBSubDomainsResponse is the response struct for api DescribeDNSSLBSubDomains -type DescribeDNSSLBSubDomainsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - SlbSubDomains SlbSubDomains `json:"SlbSubDomains" xml:"SlbSubDomains"` -} - -// CreateDescribeDNSSLBSubDomainsRequest creates a request to invoke DescribeDNSSLBSubDomains API -func CreateDescribeDNSSLBSubDomainsRequest() (request *DescribeDNSSLBSubDomainsRequest) { - request = &DescribeDNSSLBSubDomainsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDNSSLBSubDomains", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDNSSLBSubDomainsResponse creates a response to parse from DescribeDNSSLBSubDomains response -func CreateDescribeDNSSLBSubDomainsResponse() (response *DescribeDNSSLBSubDomainsResponse) { - response = &DescribeDNSSLBSubDomainsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_account_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_account_statistics.go deleted file mode 100644 index 155f1db71..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_account_statistics.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// DescribeDohAccountStatistics invokes the alidns.DescribeDohAccountStatistics API synchronously -func (client *Client) DescribeDohAccountStatistics(request *DescribeDohAccountStatisticsRequest) (response *DescribeDohAccountStatisticsResponse, err error) { - response = CreateDescribeDohAccountStatisticsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDohAccountStatisticsWithChan invokes the alidns.DescribeDohAccountStatistics API asynchronously -func (client *Client) DescribeDohAccountStatisticsWithChan(request *DescribeDohAccountStatisticsRequest) (<-chan *DescribeDohAccountStatisticsResponse, <-chan error) { - responseChan := make(chan *DescribeDohAccountStatisticsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDohAccountStatistics(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDohAccountStatisticsWithCallback invokes the alidns.DescribeDohAccountStatistics API asynchronously -func (client *Client) DescribeDohAccountStatisticsWithCallback(request *DescribeDohAccountStatisticsRequest, callback func(response *DescribeDohAccountStatisticsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDohAccountStatisticsResponse - var err error - defer close(result) - response, err = client.DescribeDohAccountStatistics(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDohAccountStatisticsRequest is the request struct for api DescribeDohAccountStatistics -type DescribeDohAccountStatisticsRequest struct { - *requests.RpcRequest - StartDate string `position:"Query" name:"StartDate"` - EndDate string `position:"Query" name:"EndDate"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDohAccountStatisticsResponse is the response struct for api DescribeDohAccountStatistics -type DescribeDohAccountStatisticsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Statistics []Statistic `json:"Statistics" xml:"Statistics"` -} - -// CreateDescribeDohAccountStatisticsRequest creates a request to invoke DescribeDohAccountStatistics API -func CreateDescribeDohAccountStatisticsRequest() (request *DescribeDohAccountStatisticsRequest) { - request = &DescribeDohAccountStatisticsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDohAccountStatistics", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDohAccountStatisticsResponse creates a response to parse from DescribeDohAccountStatistics response -func CreateDescribeDohAccountStatisticsResponse() (response *DescribeDohAccountStatisticsResponse) { - response = &DescribeDohAccountStatisticsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_domain_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_domain_statistics.go deleted file mode 100644 index f4974a232..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_domain_statistics.go +++ /dev/null @@ -1,103 +0,0 @@ -package alidns - -//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" -) - -// DescribeDohDomainStatistics invokes the alidns.DescribeDohDomainStatistics API synchronously -func (client *Client) DescribeDohDomainStatistics(request *DescribeDohDomainStatisticsRequest) (response *DescribeDohDomainStatisticsResponse, err error) { - response = CreateDescribeDohDomainStatisticsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDohDomainStatisticsWithChan invokes the alidns.DescribeDohDomainStatistics API asynchronously -func (client *Client) DescribeDohDomainStatisticsWithChan(request *DescribeDohDomainStatisticsRequest) (<-chan *DescribeDohDomainStatisticsResponse, <-chan error) { - responseChan := make(chan *DescribeDohDomainStatisticsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDohDomainStatistics(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDohDomainStatisticsWithCallback invokes the alidns.DescribeDohDomainStatistics API asynchronously -func (client *Client) DescribeDohDomainStatisticsWithCallback(request *DescribeDohDomainStatisticsRequest, callback func(response *DescribeDohDomainStatisticsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDohDomainStatisticsResponse - var err error - defer close(result) - response, err = client.DescribeDohDomainStatistics(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDohDomainStatisticsRequest is the request struct for api DescribeDohDomainStatistics -type DescribeDohDomainStatisticsRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - StartDate string `position:"Query" name:"StartDate"` - EndDate string `position:"Query" name:"EndDate"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDohDomainStatisticsResponse is the response struct for api DescribeDohDomainStatistics -type DescribeDohDomainStatisticsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Statistics []Statistic `json:"Statistics" xml:"Statistics"` -} - -// CreateDescribeDohDomainStatisticsRequest creates a request to invoke DescribeDohDomainStatistics API -func CreateDescribeDohDomainStatisticsRequest() (request *DescribeDohDomainStatisticsRequest) { - request = &DescribeDohDomainStatisticsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDohDomainStatistics", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDohDomainStatisticsResponse creates a response to parse from DescribeDohDomainStatistics response -func CreateDescribeDohDomainStatisticsResponse() (response *DescribeDohDomainStatisticsResponse) { - response = &DescribeDohDomainStatisticsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_domain_statistics_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_domain_statistics_summary.go deleted file mode 100644 index 20e69f8ef..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_domain_statistics_summary.go +++ /dev/null @@ -1,111 +0,0 @@ -package alidns - -//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" -) - -// DescribeDohDomainStatisticsSummary invokes the alidns.DescribeDohDomainStatisticsSummary API synchronously -func (client *Client) DescribeDohDomainStatisticsSummary(request *DescribeDohDomainStatisticsSummaryRequest) (response *DescribeDohDomainStatisticsSummaryResponse, err error) { - response = CreateDescribeDohDomainStatisticsSummaryResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDohDomainStatisticsSummaryWithChan invokes the alidns.DescribeDohDomainStatisticsSummary API asynchronously -func (client *Client) DescribeDohDomainStatisticsSummaryWithChan(request *DescribeDohDomainStatisticsSummaryRequest) (<-chan *DescribeDohDomainStatisticsSummaryResponse, <-chan error) { - responseChan := make(chan *DescribeDohDomainStatisticsSummaryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDohDomainStatisticsSummary(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDohDomainStatisticsSummaryWithCallback invokes the alidns.DescribeDohDomainStatisticsSummary API asynchronously -func (client *Client) DescribeDohDomainStatisticsSummaryWithCallback(request *DescribeDohDomainStatisticsSummaryRequest, callback func(response *DescribeDohDomainStatisticsSummaryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDohDomainStatisticsSummaryResponse - var err error - defer close(result) - response, err = client.DescribeDohDomainStatisticsSummary(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDohDomainStatisticsSummaryRequest is the request struct for api DescribeDohDomainStatisticsSummary -type DescribeDohDomainStatisticsSummaryRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - OrderBy string `position:"Query" name:"OrderBy"` - StartDate string `position:"Query" name:"StartDate"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - EndDate string `position:"Query" name:"EndDate"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - Direction string `position:"Query" name:"Direction"` -} - -// DescribeDohDomainStatisticsSummaryResponse is the response struct for api DescribeDohDomainStatisticsSummary -type DescribeDohDomainStatisticsSummaryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - Statistics []Statistic `json:"Statistics" xml:"Statistics"` -} - -// CreateDescribeDohDomainStatisticsSummaryRequest creates a request to invoke DescribeDohDomainStatisticsSummary API -func CreateDescribeDohDomainStatisticsSummaryRequest() (request *DescribeDohDomainStatisticsSummaryRequest) { - request = &DescribeDohDomainStatisticsSummaryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDohDomainStatisticsSummary", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDohDomainStatisticsSummaryResponse creates a response to parse from DescribeDohDomainStatisticsSummary response -func CreateDescribeDohDomainStatisticsSummaryResponse() (response *DescribeDohDomainStatisticsSummaryResponse) { - response = &DescribeDohDomainStatisticsSummaryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_sub_domain_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_sub_domain_statistics.go deleted file mode 100644 index 40a61b4fe..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_sub_domain_statistics.go +++ /dev/null @@ -1,103 +0,0 @@ -package alidns - -//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" -) - -// DescribeDohSubDomainStatistics invokes the alidns.DescribeDohSubDomainStatistics API synchronously -func (client *Client) DescribeDohSubDomainStatistics(request *DescribeDohSubDomainStatisticsRequest) (response *DescribeDohSubDomainStatisticsResponse, err error) { - response = CreateDescribeDohSubDomainStatisticsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDohSubDomainStatisticsWithChan invokes the alidns.DescribeDohSubDomainStatistics API asynchronously -func (client *Client) DescribeDohSubDomainStatisticsWithChan(request *DescribeDohSubDomainStatisticsRequest) (<-chan *DescribeDohSubDomainStatisticsResponse, <-chan error) { - responseChan := make(chan *DescribeDohSubDomainStatisticsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDohSubDomainStatistics(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDohSubDomainStatisticsWithCallback invokes the alidns.DescribeDohSubDomainStatistics API asynchronously -func (client *Client) DescribeDohSubDomainStatisticsWithCallback(request *DescribeDohSubDomainStatisticsRequest, callback func(response *DescribeDohSubDomainStatisticsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDohSubDomainStatisticsResponse - var err error - defer close(result) - response, err = client.DescribeDohSubDomainStatistics(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDohSubDomainStatisticsRequest is the request struct for api DescribeDohSubDomainStatistics -type DescribeDohSubDomainStatisticsRequest struct { - *requests.RpcRequest - StartDate string `position:"Query" name:"StartDate"` - EndDate string `position:"Query" name:"EndDate"` - SubDomain string `position:"Query" name:"SubDomain"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDohSubDomainStatisticsResponse is the response struct for api DescribeDohSubDomainStatistics -type DescribeDohSubDomainStatisticsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Statistics []Statistic `json:"Statistics" xml:"Statistics"` -} - -// CreateDescribeDohSubDomainStatisticsRequest creates a request to invoke DescribeDohSubDomainStatistics API -func CreateDescribeDohSubDomainStatisticsRequest() (request *DescribeDohSubDomainStatisticsRequest) { - request = &DescribeDohSubDomainStatisticsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDohSubDomainStatistics", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDohSubDomainStatisticsResponse creates a response to parse from DescribeDohSubDomainStatistics response -func CreateDescribeDohSubDomainStatisticsResponse() (response *DescribeDohSubDomainStatisticsResponse) { - response = &DescribeDohSubDomainStatisticsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_sub_domain_statistics_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_sub_domain_statistics_summary.go deleted file mode 100644 index dd8ecdba5..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_sub_domain_statistics_summary.go +++ /dev/null @@ -1,112 +0,0 @@ -package alidns - -//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" -) - -// DescribeDohSubDomainStatisticsSummary invokes the alidns.DescribeDohSubDomainStatisticsSummary API synchronously -func (client *Client) DescribeDohSubDomainStatisticsSummary(request *DescribeDohSubDomainStatisticsSummaryRequest) (response *DescribeDohSubDomainStatisticsSummaryResponse, err error) { - response = CreateDescribeDohSubDomainStatisticsSummaryResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDohSubDomainStatisticsSummaryWithChan invokes the alidns.DescribeDohSubDomainStatisticsSummary API asynchronously -func (client *Client) DescribeDohSubDomainStatisticsSummaryWithChan(request *DescribeDohSubDomainStatisticsSummaryRequest) (<-chan *DescribeDohSubDomainStatisticsSummaryResponse, <-chan error) { - responseChan := make(chan *DescribeDohSubDomainStatisticsSummaryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDohSubDomainStatisticsSummary(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDohSubDomainStatisticsSummaryWithCallback invokes the alidns.DescribeDohSubDomainStatisticsSummary API asynchronously -func (client *Client) DescribeDohSubDomainStatisticsSummaryWithCallback(request *DescribeDohSubDomainStatisticsSummaryRequest, callback func(response *DescribeDohSubDomainStatisticsSummaryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDohSubDomainStatisticsSummaryResponse - var err error - defer close(result) - response, err = client.DescribeDohSubDomainStatisticsSummary(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDohSubDomainStatisticsSummaryRequest is the request struct for api DescribeDohSubDomainStatisticsSummary -type DescribeDohSubDomainStatisticsSummaryRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - OrderBy string `position:"Query" name:"OrderBy"` - StartDate string `position:"Query" name:"StartDate"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - EndDate string `position:"Query" name:"EndDate"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - SubDomain string `position:"Query" name:"SubDomain"` - Lang string `position:"Query" name:"Lang"` - Direction string `position:"Query" name:"Direction"` -} - -// DescribeDohSubDomainStatisticsSummaryResponse is the response struct for api DescribeDohSubDomainStatisticsSummary -type DescribeDohSubDomainStatisticsSummaryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - Statistics []Statistic `json:"Statistics" xml:"Statistics"` -} - -// CreateDescribeDohSubDomainStatisticsSummaryRequest creates a request to invoke DescribeDohSubDomainStatisticsSummary API -func CreateDescribeDohSubDomainStatisticsSummaryRequest() (request *DescribeDohSubDomainStatisticsSummaryRequest) { - request = &DescribeDohSubDomainStatisticsSummaryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDohSubDomainStatisticsSummary", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDohSubDomainStatisticsSummaryResponse creates a response to parse from DescribeDohSubDomainStatisticsSummary response -func CreateDescribeDohSubDomainStatisticsSummaryResponse() (response *DescribeDohSubDomainStatisticsSummaryResponse) { - response = &DescribeDohSubDomainStatisticsSummaryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_user_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_user_info.go deleted file mode 100644 index e9a021a0d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_doh_user_info.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// DescribeDohUserInfo invokes the alidns.DescribeDohUserInfo API synchronously -func (client *Client) DescribeDohUserInfo(request *DescribeDohUserInfoRequest) (response *DescribeDohUserInfoResponse, err error) { - response = CreateDescribeDohUserInfoResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDohUserInfoWithChan invokes the alidns.DescribeDohUserInfo API asynchronously -func (client *Client) DescribeDohUserInfoWithChan(request *DescribeDohUserInfoRequest) (<-chan *DescribeDohUserInfoResponse, <-chan error) { - responseChan := make(chan *DescribeDohUserInfoResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDohUserInfo(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDohUserInfoWithCallback invokes the alidns.DescribeDohUserInfo API asynchronously -func (client *Client) DescribeDohUserInfoWithCallback(request *DescribeDohUserInfoRequest, callback func(response *DescribeDohUserInfoResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDohUserInfoResponse - var err error - defer close(result) - response, err = client.DescribeDohUserInfo(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDohUserInfoRequest is the request struct for api DescribeDohUserInfo -type DescribeDohUserInfoRequest struct { - *requests.RpcRequest - StartDate string `position:"Query" name:"StartDate"` - EndDate string `position:"Query" name:"EndDate"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDohUserInfoResponse is the response struct for api DescribeDohUserInfo -type DescribeDohUserInfoResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PdnsId int64 `json:"PdnsId" xml:"PdnsId"` - DomainCount int `json:"DomainCount" xml:"DomainCount"` - SubDomainCount int `json:"SubDomainCount" xml:"SubDomainCount"` -} - -// CreateDescribeDohUserInfoRequest creates a request to invoke DescribeDohUserInfo API -func CreateDescribeDohUserInfoRequest() (request *DescribeDohUserInfoRequest) { - request = &DescribeDohUserInfoRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDohUserInfo", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDohUserInfoResponse creates a response to parse from DescribeDohUserInfo response -func CreateDescribeDohUserInfoResponse() (response *DescribeDohUserInfoResponse) { - response = &DescribeDohUserInfoResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_dnssec_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_dnssec_info.go deleted file mode 100644 index cb1920903..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_dnssec_info.go +++ /dev/null @@ -1,110 +0,0 @@ -package alidns - -//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" -) - -// DescribeDomainDnssecInfo invokes the alidns.DescribeDomainDnssecInfo API synchronously -func (client *Client) DescribeDomainDnssecInfo(request *DescribeDomainDnssecInfoRequest) (response *DescribeDomainDnssecInfoResponse, err error) { - response = CreateDescribeDomainDnssecInfoResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDomainDnssecInfoWithChan invokes the alidns.DescribeDomainDnssecInfo API asynchronously -func (client *Client) DescribeDomainDnssecInfoWithChan(request *DescribeDomainDnssecInfoRequest) (<-chan *DescribeDomainDnssecInfoResponse, <-chan error) { - responseChan := make(chan *DescribeDomainDnssecInfoResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDomainDnssecInfo(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDomainDnssecInfoWithCallback invokes the alidns.DescribeDomainDnssecInfo API asynchronously -func (client *Client) DescribeDomainDnssecInfoWithCallback(request *DescribeDomainDnssecInfoRequest, callback func(response *DescribeDomainDnssecInfoResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDomainDnssecInfoResponse - var err error - defer close(result) - response, err = client.DescribeDomainDnssecInfo(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDomainDnssecInfoRequest is the request struct for api DescribeDomainDnssecInfo -type DescribeDomainDnssecInfoRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDomainDnssecInfoResponse is the response struct for api DescribeDomainDnssecInfo -type DescribeDomainDnssecInfoResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - DomainName string `json:"DomainName" xml:"DomainName"` - Status string `json:"Status" xml:"Status"` - DsRecord string `json:"DsRecord" xml:"DsRecord"` - Digest string `json:"Digest" xml:"Digest"` - DigestType string `json:"DigestType" xml:"DigestType"` - Algorithm string `json:"Algorithm" xml:"Algorithm"` - PublicKey string `json:"PublicKey" xml:"PublicKey"` - KeyTag string `json:"KeyTag" xml:"KeyTag"` - Flags string `json:"Flags" xml:"Flags"` -} - -// CreateDescribeDomainDnssecInfoRequest creates a request to invoke DescribeDomainDnssecInfo API -func CreateDescribeDomainDnssecInfoRequest() (request *DescribeDomainDnssecInfoRequest) { - request = &DescribeDomainDnssecInfoRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDomainDnssecInfo", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDomainDnssecInfoResponse creates a response to parse from DescribeDomainDnssecInfo response -func CreateDescribeDomainDnssecInfoResponse() (response *DescribeDomainDnssecInfoResponse) { - response = &DescribeDomainDnssecInfoResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_groups.go deleted file mode 100644 index 996f0800b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_groups.go +++ /dev/null @@ -1,107 +0,0 @@ -package alidns - -//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" -) - -// DescribeDomainGroups invokes the alidns.DescribeDomainGroups API synchronously -func (client *Client) DescribeDomainGroups(request *DescribeDomainGroupsRequest) (response *DescribeDomainGroupsResponse, err error) { - response = CreateDescribeDomainGroupsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDomainGroupsWithChan invokes the alidns.DescribeDomainGroups API asynchronously -func (client *Client) DescribeDomainGroupsWithChan(request *DescribeDomainGroupsRequest) (<-chan *DescribeDomainGroupsResponse, <-chan error) { - responseChan := make(chan *DescribeDomainGroupsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDomainGroups(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDomainGroupsWithCallback invokes the alidns.DescribeDomainGroups API asynchronously -func (client *Client) DescribeDomainGroupsWithCallback(request *DescribeDomainGroupsRequest, callback func(response *DescribeDomainGroupsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDomainGroupsResponse - var err error - defer close(result) - response, err = client.DescribeDomainGroups(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDomainGroupsRequest is the request struct for api DescribeDomainGroups -type DescribeDomainGroupsRequest struct { - *requests.RpcRequest - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - KeyWord string `position:"Query" name:"KeyWord"` -} - -// DescribeDomainGroupsResponse is the response struct for api DescribeDomainGroups -type DescribeDomainGroupsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - DomainGroups DomainGroups `json:"DomainGroups" xml:"DomainGroups"` -} - -// CreateDescribeDomainGroupsRequest creates a request to invoke DescribeDomainGroups API -func CreateDescribeDomainGroupsRequest() (request *DescribeDomainGroupsRequest) { - request = &DescribeDomainGroupsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDomainGroups", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDomainGroupsResponse creates a response to parse from DescribeDomainGroups response -func CreateDescribeDomainGroupsResponse() (response *DescribeDomainGroupsResponse) { - response = &DescribeDomainGroupsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_info.go deleted file mode 100644 index ece3109f3..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_info.go +++ /dev/null @@ -1,124 +0,0 @@ -package alidns - -//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" -) - -// DescribeDomainInfo invokes the alidns.DescribeDomainInfo API synchronously -func (client *Client) DescribeDomainInfo(request *DescribeDomainInfoRequest) (response *DescribeDomainInfoResponse, err error) { - response = CreateDescribeDomainInfoResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDomainInfoWithChan invokes the alidns.DescribeDomainInfo API asynchronously -func (client *Client) DescribeDomainInfoWithChan(request *DescribeDomainInfoRequest) (<-chan *DescribeDomainInfoResponse, <-chan error) { - responseChan := make(chan *DescribeDomainInfoResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDomainInfo(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDomainInfoWithCallback invokes the alidns.DescribeDomainInfo API asynchronously -func (client *Client) DescribeDomainInfoWithCallback(request *DescribeDomainInfoRequest, callback func(response *DescribeDomainInfoResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDomainInfoResponse - var err error - defer close(result) - response, err = client.DescribeDomainInfo(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDomainInfoRequest is the request struct for api DescribeDomainInfo -type DescribeDomainInfoRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` - NeedDetailAttributes requests.Boolean `position:"Query" name:"NeedDetailAttributes"` -} - -// DescribeDomainInfoResponse is the response struct for api DescribeDomainInfo -type DescribeDomainInfoResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - DomainId string `json:"DomainId" xml:"DomainId"` - DomainName string `json:"DomainName" xml:"DomainName"` - PunyCode string `json:"PunyCode" xml:"PunyCode"` - AliDomain bool `json:"AliDomain" xml:"AliDomain"` - Remark string `json:"Remark" xml:"Remark"` - GroupId string `json:"GroupId" xml:"GroupId"` - GroupName string `json:"GroupName" xml:"GroupName"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - VersionCode string `json:"VersionCode" xml:"VersionCode"` - VersionName string `json:"VersionName" xml:"VersionName"` - MinTtl int64 `json:"MinTtl" xml:"MinTtl"` - RecordLineTreeJson string `json:"RecordLineTreeJson" xml:"RecordLineTreeJson"` - LineType string `json:"LineType" xml:"LineType"` - RegionLines bool `json:"RegionLines" xml:"RegionLines"` - InBlackHole bool `json:"InBlackHole" xml:"InBlackHole"` - InClean bool `json:"InClean" xml:"InClean"` - SlaveDns bool `json:"SlaveDns" xml:"SlaveDns"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - DnsServers DnsServersInDescribeDomainInfo `json:"DnsServers" xml:"DnsServers"` - AvailableTtls AvailableTtls `json:"AvailableTtls" xml:"AvailableTtls"` - RecordLines RecordLinesInDescribeDomainInfo `json:"RecordLines" xml:"RecordLines"` -} - -// CreateDescribeDomainInfoRequest creates a request to invoke DescribeDomainInfo API -func CreateDescribeDomainInfoRequest() (request *DescribeDomainInfoRequest) { - request = &DescribeDomainInfoRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDomainInfo", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDomainInfoResponse creates a response to parse from DescribeDomainInfo response -func CreateDescribeDomainInfoResponse() (response *DescribeDomainInfoResponse) { - response = &DescribeDomainInfoResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_logs.go deleted file mode 100644 index 048e9b857..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_logs.go +++ /dev/null @@ -1,111 +0,0 @@ -package alidns - -//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" -) - -// DescribeDomainLogs invokes the alidns.DescribeDomainLogs API synchronously -func (client *Client) DescribeDomainLogs(request *DescribeDomainLogsRequest) (response *DescribeDomainLogsResponse, err error) { - response = CreateDescribeDomainLogsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDomainLogsWithChan invokes the alidns.DescribeDomainLogs API asynchronously -func (client *Client) DescribeDomainLogsWithChan(request *DescribeDomainLogsRequest) (<-chan *DescribeDomainLogsResponse, <-chan error) { - responseChan := make(chan *DescribeDomainLogsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDomainLogs(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDomainLogsWithCallback invokes the alidns.DescribeDomainLogs API asynchronously -func (client *Client) DescribeDomainLogsWithCallback(request *DescribeDomainLogsRequest, callback func(response *DescribeDomainLogsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDomainLogsResponse - var err error - defer close(result) - response, err = client.DescribeDomainLogs(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDomainLogsRequest is the request struct for api DescribeDomainLogs -type DescribeDomainLogsRequest struct { - *requests.RpcRequest - GroupId string `position:"Query" name:"GroupId"` - StartDate string `position:"Query" name:"StartDate"` - Type string `position:"Query" name:"Type"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - EndDate string `position:"Query" name:"endDate"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - KeyWord string `position:"Query" name:"KeyWord"` -} - -// DescribeDomainLogsResponse is the response struct for api DescribeDomainLogs -type DescribeDomainLogsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - DomainLogs DomainLogs `json:"DomainLogs" xml:"DomainLogs"` -} - -// CreateDescribeDomainLogsRequest creates a request to invoke DescribeDomainLogs API -func CreateDescribeDomainLogsRequest() (request *DescribeDomainLogsRequest) { - request = &DescribeDomainLogsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDomainLogs", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDomainLogsResponse creates a response to parse from DescribeDomainLogs response -func CreateDescribeDomainLogsResponse() (response *DescribeDomainLogsResponse) { - response = &DescribeDomainLogsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_ns.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_ns.go deleted file mode 100644 index fb8c1f7c7..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_ns.go +++ /dev/null @@ -1,106 +0,0 @@ -package alidns - -//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" -) - -// DescribeDomainNs invokes the alidns.DescribeDomainNs API synchronously -func (client *Client) DescribeDomainNs(request *DescribeDomainNsRequest) (response *DescribeDomainNsResponse, err error) { - response = CreateDescribeDomainNsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDomainNsWithChan invokes the alidns.DescribeDomainNs API asynchronously -func (client *Client) DescribeDomainNsWithChan(request *DescribeDomainNsRequest) (<-chan *DescribeDomainNsResponse, <-chan error) { - responseChan := make(chan *DescribeDomainNsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDomainNs(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDomainNsWithCallback invokes the alidns.DescribeDomainNs API asynchronously -func (client *Client) DescribeDomainNsWithCallback(request *DescribeDomainNsRequest, callback func(response *DescribeDomainNsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDomainNsResponse - var err error - defer close(result) - response, err = client.DescribeDomainNs(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDomainNsRequest is the request struct for api DescribeDomainNs -type DescribeDomainNsRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - DomainType string `position:"Query" name:"DomainType"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDomainNsResponse is the response struct for api DescribeDomainNs -type DescribeDomainNsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AllAliDns bool `json:"AllAliDns" xml:"AllAliDns"` - IncludeAliDns bool `json:"IncludeAliDns" xml:"IncludeAliDns"` - DnsServers DnsServersInDescribeDomainNs `json:"DnsServers" xml:"DnsServers"` - ExpectDnsServers ExpectDnsServers `json:"ExpectDnsServers" xml:"ExpectDnsServers"` -} - -// CreateDescribeDomainNsRequest creates a request to invoke DescribeDomainNs API -func CreateDescribeDomainNsRequest() (request *DescribeDomainNsRequest) { - request = &DescribeDomainNsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDomainNs", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDomainNsResponse creates a response to parse from DescribeDomainNs response -func CreateDescribeDomainNsResponse() (response *DescribeDomainNsResponse) { - response = &DescribeDomainNsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_record_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_record_info.go deleted file mode 100644 index 00a67ba2f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_record_info.go +++ /dev/null @@ -1,115 +0,0 @@ -package alidns - -//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" -) - -// DescribeDomainRecordInfo invokes the alidns.DescribeDomainRecordInfo API synchronously -func (client *Client) DescribeDomainRecordInfo(request *DescribeDomainRecordInfoRequest) (response *DescribeDomainRecordInfoResponse, err error) { - response = CreateDescribeDomainRecordInfoResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDomainRecordInfoWithChan invokes the alidns.DescribeDomainRecordInfo API asynchronously -func (client *Client) DescribeDomainRecordInfoWithChan(request *DescribeDomainRecordInfoRequest) (<-chan *DescribeDomainRecordInfoResponse, <-chan error) { - responseChan := make(chan *DescribeDomainRecordInfoResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDomainRecordInfo(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDomainRecordInfoWithCallback invokes the alidns.DescribeDomainRecordInfo API asynchronously -func (client *Client) DescribeDomainRecordInfoWithCallback(request *DescribeDomainRecordInfoRequest, callback func(response *DescribeDomainRecordInfoResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDomainRecordInfoResponse - var err error - defer close(result) - response, err = client.DescribeDomainRecordInfo(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDomainRecordInfoRequest is the request struct for api DescribeDomainRecordInfo -type DescribeDomainRecordInfoRequest struct { - *requests.RpcRequest - RecordId string `position:"Query" name:"RecordId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDomainRecordInfoResponse is the response struct for api DescribeDomainRecordInfo -type DescribeDomainRecordInfoResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - DomainId string `json:"DomainId" xml:"DomainId"` - DomainName string `json:"DomainName" xml:"DomainName"` - PunyCode string `json:"PunyCode" xml:"PunyCode"` - GroupId string `json:"GroupId" xml:"GroupId"` - GroupName string `json:"GroupName" xml:"GroupName"` - RecordId string `json:"RecordId" xml:"RecordId"` - RR string `json:"RR" xml:"RR"` - Type string `json:"Type" xml:"Type"` - Value string `json:"Value" xml:"Value"` - TTL int64 `json:"TTL" xml:"TTL"` - Priority int64 `json:"Priority" xml:"Priority"` - Line string `json:"Line" xml:"Line"` - Status string `json:"Status" xml:"Status"` - Locked bool `json:"Locked" xml:"Locked"` -} - -// CreateDescribeDomainRecordInfoRequest creates a request to invoke DescribeDomainRecordInfo API -func CreateDescribeDomainRecordInfoRequest() (request *DescribeDomainRecordInfoRequest) { - request = &DescribeDomainRecordInfoRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDomainRecordInfo", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDomainRecordInfoResponse creates a response to parse from DescribeDomainRecordInfo response -func CreateDescribeDomainRecordInfoResponse() (response *DescribeDomainRecordInfoResponse) { - response = &DescribeDomainRecordInfoResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_records.go deleted file mode 100644 index 10e4708c6..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_records.go +++ /dev/null @@ -1,118 +0,0 @@ -package alidns - -//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" -) - -// DescribeDomainRecords invokes the alidns.DescribeDomainRecords API synchronously -func (client *Client) DescribeDomainRecords(request *DescribeDomainRecordsRequest) (response *DescribeDomainRecordsResponse, err error) { - response = CreateDescribeDomainRecordsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDomainRecordsWithChan invokes the alidns.DescribeDomainRecords API asynchronously -func (client *Client) DescribeDomainRecordsWithChan(request *DescribeDomainRecordsRequest) (<-chan *DescribeDomainRecordsResponse, <-chan error) { - responseChan := make(chan *DescribeDomainRecordsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDomainRecords(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDomainRecordsWithCallback invokes the alidns.DescribeDomainRecords API asynchronously -func (client *Client) DescribeDomainRecordsWithCallback(request *DescribeDomainRecordsRequest, callback func(response *DescribeDomainRecordsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDomainRecordsResponse - var err error - defer close(result) - response, err = client.DescribeDomainRecords(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDomainRecordsRequest is the request struct for api DescribeDomainRecords -type DescribeDomainRecordsRequest struct { - *requests.RpcRequest - ValueKeyWord string `position:"Query" name:"ValueKeyWord"` - Line string `position:"Query" name:"Line"` - Type string `position:"Query" name:"Type"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - KeyWord string `position:"Query" name:"KeyWord"` - RRKeyWord string `position:"Query" name:"RRKeyWord"` - Direction string `position:"Query" name:"Direction"` - GroupId requests.Integer `position:"Query" name:"GroupId"` - DomainName string `position:"Query" name:"DomainName"` - OrderBy string `position:"Query" name:"OrderBy"` - UserClientIp string `position:"Query" name:"UserClientIp"` - SearchMode string `position:"Query" name:"SearchMode"` - TypeKeyWord string `position:"Query" name:"TypeKeyWord"` - Status string `position:"Query" name:"Status"` -} - -// DescribeDomainRecordsResponse is the response struct for api DescribeDomainRecords -type DescribeDomainRecordsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - DomainRecords DomainRecordsInDescribeDomainRecords `json:"DomainRecords" xml:"DomainRecords"` -} - -// CreateDescribeDomainRecordsRequest creates a request to invoke DescribeDomainRecords API -func CreateDescribeDomainRecordsRequest() (request *DescribeDomainRecordsRequest) { - request = &DescribeDomainRecordsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDomainRecords", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDomainRecordsResponse creates a response to parse from DescribeDomainRecords response -func CreateDescribeDomainRecordsResponse() (response *DescribeDomainRecordsResponse) { - response = &DescribeDomainRecordsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_statistics.go deleted file mode 100644 index e455912fc..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_statistics.go +++ /dev/null @@ -1,105 +0,0 @@ -package alidns - -//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" -) - -// DescribeDomainStatistics invokes the alidns.DescribeDomainStatistics API synchronously -func (client *Client) DescribeDomainStatistics(request *DescribeDomainStatisticsRequest) (response *DescribeDomainStatisticsResponse, err error) { - response = CreateDescribeDomainStatisticsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDomainStatisticsWithChan invokes the alidns.DescribeDomainStatistics API asynchronously -func (client *Client) DescribeDomainStatisticsWithChan(request *DescribeDomainStatisticsRequest) (<-chan *DescribeDomainStatisticsResponse, <-chan error) { - responseChan := make(chan *DescribeDomainStatisticsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDomainStatistics(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDomainStatisticsWithCallback invokes the alidns.DescribeDomainStatistics API asynchronously -func (client *Client) DescribeDomainStatisticsWithCallback(request *DescribeDomainStatisticsRequest, callback func(response *DescribeDomainStatisticsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDomainStatisticsResponse - var err error - defer close(result) - response, err = client.DescribeDomainStatistics(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDomainStatisticsRequest is the request struct for api DescribeDomainStatistics -type DescribeDomainStatisticsRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - StartDate string `position:"Query" name:"StartDate"` - EndDate string `position:"Query" name:"EndDate"` - DomainType string `position:"Query" name:"DomainType"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeDomainStatisticsResponse is the response struct for api DescribeDomainStatistics -type DescribeDomainStatisticsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Statistics StatisticsInDescribeDomainStatistics `json:"Statistics" xml:"Statistics"` -} - -// CreateDescribeDomainStatisticsRequest creates a request to invoke DescribeDomainStatistics API -func CreateDescribeDomainStatisticsRequest() (request *DescribeDomainStatisticsRequest) { - request = &DescribeDomainStatisticsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDomainStatistics", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDomainStatisticsResponse creates a response to parse from DescribeDomainStatistics response -func CreateDescribeDomainStatisticsResponse() (response *DescribeDomainStatisticsResponse) { - response = &DescribeDomainStatisticsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_statistics_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_statistics_summary.go deleted file mode 100644 index f874c51fc..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domain_statistics_summary.go +++ /dev/null @@ -1,114 +0,0 @@ -package alidns - -//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" -) - -// DescribeDomainStatisticsSummary invokes the alidns.DescribeDomainStatisticsSummary API synchronously -func (client *Client) DescribeDomainStatisticsSummary(request *DescribeDomainStatisticsSummaryRequest) (response *DescribeDomainStatisticsSummaryResponse, err error) { - response = CreateDescribeDomainStatisticsSummaryResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDomainStatisticsSummaryWithChan invokes the alidns.DescribeDomainStatisticsSummary API asynchronously -func (client *Client) DescribeDomainStatisticsSummaryWithChan(request *DescribeDomainStatisticsSummaryRequest) (<-chan *DescribeDomainStatisticsSummaryResponse, <-chan error) { - responseChan := make(chan *DescribeDomainStatisticsSummaryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDomainStatisticsSummary(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDomainStatisticsSummaryWithCallback invokes the alidns.DescribeDomainStatisticsSummary API asynchronously -func (client *Client) DescribeDomainStatisticsSummaryWithCallback(request *DescribeDomainStatisticsSummaryRequest, callback func(response *DescribeDomainStatisticsSummaryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDomainStatisticsSummaryResponse - var err error - defer close(result) - response, err = client.DescribeDomainStatisticsSummary(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDomainStatisticsSummaryRequest is the request struct for api DescribeDomainStatisticsSummary -type DescribeDomainStatisticsSummaryRequest struct { - *requests.RpcRequest - Threshold requests.Integer `position:"Query" name:"Threshold"` - StartDate string `position:"Query" name:"StartDate"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - Keyword string `position:"Query" name:"Keyword"` - Direction string `position:"Query" name:"Direction"` - OrderBy string `position:"Query" name:"OrderBy"` - EndDate string `position:"Query" name:"EndDate"` - UserClientIp string `position:"Query" name:"UserClientIp"` - SearchMode string `position:"Query" name:"SearchMode"` -} - -// DescribeDomainStatisticsSummaryResponse is the response struct for api DescribeDomainStatisticsSummary -type DescribeDomainStatisticsSummaryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - Statistics StatisticsInDescribeDomainStatisticsSummary `json:"Statistics" xml:"Statistics"` -} - -// CreateDescribeDomainStatisticsSummaryRequest creates a request to invoke DescribeDomainStatisticsSummary API -func CreateDescribeDomainStatisticsSummaryRequest() (request *DescribeDomainStatisticsSummaryRequest) { - request = &DescribeDomainStatisticsSummaryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDomainStatisticsSummary", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDomainStatisticsSummaryResponse creates a response to parse from DescribeDomainStatisticsSummary response -func CreateDescribeDomainStatisticsSummaryResponse() (response *DescribeDomainStatisticsSummaryResponse) { - response = &DescribeDomainStatisticsSummaryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domains.go deleted file mode 100644 index fa79663a3..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_domains.go +++ /dev/null @@ -1,122 +0,0 @@ -package alidns - -//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" -) - -// DescribeDomains invokes the alidns.DescribeDomains API synchronously -func (client *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error) { - response = CreateDescribeDomainsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeDomainsWithChan invokes the alidns.DescribeDomains API asynchronously -func (client *Client) DescribeDomainsWithChan(request *DescribeDomainsRequest) (<-chan *DescribeDomainsResponse, <-chan error) { - responseChan := make(chan *DescribeDomainsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeDomains(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeDomainsWithCallback invokes the alidns.DescribeDomains API asynchronously -func (client *Client) DescribeDomainsWithCallback(request *DescribeDomainsRequest, callback func(response *DescribeDomainsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeDomainsResponse - var err error - defer close(result) - response, err = client.DescribeDomains(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeDomainsRequest is the request struct for api DescribeDomains -type DescribeDomainsRequest struct { - *requests.RpcRequest - StartDate string `position:"Query" name:"StartDate"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeDomainsTag `position:"Query" name:"Tag" type:"Repeated"` - Lang string `position:"Query" name:"Lang"` - KeyWord string `position:"Query" name:"KeyWord"` - Direction string `position:"Query" name:"Direction"` - Starmark requests.Boolean `position:"Query" name:"Starmark"` - GroupId string `position:"Query" name:"GroupId"` - OrderBy string `position:"Query" name:"OrderBy"` - EndDate string `position:"Query" name:"EndDate"` - UserClientIp string `position:"Query" name:"UserClientIp"` - SearchMode string `position:"Query" name:"SearchMode"` -} - -// DescribeDomainsTag is a repeated param struct in DescribeDomainsRequest -type DescribeDomainsTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeDomainsResponse is the response struct for api DescribeDomains -type DescribeDomainsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - Domains DomainsInDescribeDomains `json:"Domains" xml:"Domains"` -} - -// CreateDescribeDomainsRequest creates a request to invoke DescribeDomains API -func CreateDescribeDomainsRequest() (request *DescribeDomainsRequest) { - request = &DescribeDomainsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeDomains", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeDomainsResponse creates a response to parse from DescribeDomains response -func CreateDescribeDomainsResponse() (response *DescribeDomainsResponse) { - response = &DescribeDomainsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_access_strategies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_access_strategies.go deleted file mode 100644 index 9dc798015..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_access_strategies.go +++ /dev/null @@ -1,108 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmAccessStrategies invokes the alidns.DescribeGtmAccessStrategies API synchronously -func (client *Client) DescribeGtmAccessStrategies(request *DescribeGtmAccessStrategiesRequest) (response *DescribeGtmAccessStrategiesResponse, err error) { - response = CreateDescribeGtmAccessStrategiesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmAccessStrategiesWithChan invokes the alidns.DescribeGtmAccessStrategies API asynchronously -func (client *Client) DescribeGtmAccessStrategiesWithChan(request *DescribeGtmAccessStrategiesRequest) (<-chan *DescribeGtmAccessStrategiesResponse, <-chan error) { - responseChan := make(chan *DescribeGtmAccessStrategiesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmAccessStrategies(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmAccessStrategiesWithCallback invokes the alidns.DescribeGtmAccessStrategies API asynchronously -func (client *Client) DescribeGtmAccessStrategiesWithCallback(request *DescribeGtmAccessStrategiesRequest, callback func(response *DescribeGtmAccessStrategiesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmAccessStrategiesResponse - var err error - defer close(result) - response, err = client.DescribeGtmAccessStrategies(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmAccessStrategiesRequest is the request struct for api DescribeGtmAccessStrategies -type DescribeGtmAccessStrategiesRequest struct { - *requests.RpcRequest - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeGtmAccessStrategiesResponse is the response struct for api DescribeGtmAccessStrategies -type DescribeGtmAccessStrategiesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - Strategies StrategiesInDescribeGtmAccessStrategies `json:"Strategies" xml:"Strategies"` -} - -// CreateDescribeGtmAccessStrategiesRequest creates a request to invoke DescribeGtmAccessStrategies API -func CreateDescribeGtmAccessStrategiesRequest() (request *DescribeGtmAccessStrategiesRequest) { - request = &DescribeGtmAccessStrategiesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmAccessStrategies", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmAccessStrategiesResponse creates a response to parse from DescribeGtmAccessStrategies response -func CreateDescribeGtmAccessStrategiesResponse() (response *DescribeGtmAccessStrategiesResponse) { - response = &DescribeGtmAccessStrategiesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_access_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_access_strategy.go deleted file mode 100644 index e164b0b1a..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_access_strategy.go +++ /dev/null @@ -1,116 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmAccessStrategy invokes the alidns.DescribeGtmAccessStrategy API synchronously -func (client *Client) DescribeGtmAccessStrategy(request *DescribeGtmAccessStrategyRequest) (response *DescribeGtmAccessStrategyResponse, err error) { - response = CreateDescribeGtmAccessStrategyResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmAccessStrategyWithChan invokes the alidns.DescribeGtmAccessStrategy API asynchronously -func (client *Client) DescribeGtmAccessStrategyWithChan(request *DescribeGtmAccessStrategyRequest) (<-chan *DescribeGtmAccessStrategyResponse, <-chan error) { - responseChan := make(chan *DescribeGtmAccessStrategyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmAccessStrategy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmAccessStrategyWithCallback invokes the alidns.DescribeGtmAccessStrategy API asynchronously -func (client *Client) DescribeGtmAccessStrategyWithCallback(request *DescribeGtmAccessStrategyRequest, callback func(response *DescribeGtmAccessStrategyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmAccessStrategyResponse - var err error - defer close(result) - response, err = client.DescribeGtmAccessStrategy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmAccessStrategyRequest is the request struct for api DescribeGtmAccessStrategy -type DescribeGtmAccessStrategyRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - StrategyId string `position:"Query" name:"StrategyId"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeGtmAccessStrategyResponse is the response struct for api DescribeGtmAccessStrategy -type DescribeGtmAccessStrategyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - StrategyId string `json:"StrategyId" xml:"StrategyId"` - StrategyName string `json:"StrategyName" xml:"StrategyName"` - DefultAddrPoolId string `json:"DefultAddrPoolId" xml:"DefultAddrPoolId"` - DefaultAddrPoolName string `json:"DefaultAddrPoolName" xml:"DefaultAddrPoolName"` - FailoverAddrPoolId string `json:"FailoverAddrPoolId" xml:"FailoverAddrPoolId"` - FailoverAddrPoolName string `json:"FailoverAddrPoolName" xml:"FailoverAddrPoolName"` - StrategyMode string `json:"StrategyMode" xml:"StrategyMode"` - AccessMode string `json:"AccessMode" xml:"AccessMode"` - AccessStatus string `json:"AccessStatus" xml:"AccessStatus"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - DefaultAddrPoolStatus string `json:"DefaultAddrPoolStatus" xml:"DefaultAddrPoolStatus"` - FailoverAddrPoolStatus string `json:"FailoverAddrPoolStatus" xml:"FailoverAddrPoolStatus"` - DefaultAddrPoolMonitorStatus string `json:"DefaultAddrPoolMonitorStatus" xml:"DefaultAddrPoolMonitorStatus"` - FailoverAddrPoolMonitorStatus string `json:"FailoverAddrPoolMonitorStatus" xml:"FailoverAddrPoolMonitorStatus"` - Lines LinesInDescribeGtmAccessStrategy `json:"Lines" xml:"Lines"` -} - -// CreateDescribeGtmAccessStrategyRequest creates a request to invoke DescribeGtmAccessStrategy API -func CreateDescribeGtmAccessStrategyRequest() (request *DescribeGtmAccessStrategyRequest) { - request = &DescribeGtmAccessStrategyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmAccessStrategy", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmAccessStrategyResponse creates a response to parse from DescribeGtmAccessStrategy response -func CreateDescribeGtmAccessStrategyResponse() (response *DescribeGtmAccessStrategyResponse) { - response = &DescribeGtmAccessStrategyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_access_strategy_available_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_access_strategy_available_config.go deleted file mode 100644 index 9cbff80ea..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_access_strategy_available_config.go +++ /dev/null @@ -1,103 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmAccessStrategyAvailableConfig invokes the alidns.DescribeGtmAccessStrategyAvailableConfig API synchronously -func (client *Client) DescribeGtmAccessStrategyAvailableConfig(request *DescribeGtmAccessStrategyAvailableConfigRequest) (response *DescribeGtmAccessStrategyAvailableConfigResponse, err error) { - response = CreateDescribeGtmAccessStrategyAvailableConfigResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmAccessStrategyAvailableConfigWithChan invokes the alidns.DescribeGtmAccessStrategyAvailableConfig API asynchronously -func (client *Client) DescribeGtmAccessStrategyAvailableConfigWithChan(request *DescribeGtmAccessStrategyAvailableConfigRequest) (<-chan *DescribeGtmAccessStrategyAvailableConfigResponse, <-chan error) { - responseChan := make(chan *DescribeGtmAccessStrategyAvailableConfigResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmAccessStrategyAvailableConfig(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmAccessStrategyAvailableConfigWithCallback invokes the alidns.DescribeGtmAccessStrategyAvailableConfig API asynchronously -func (client *Client) DescribeGtmAccessStrategyAvailableConfigWithCallback(request *DescribeGtmAccessStrategyAvailableConfigRequest, callback func(response *DescribeGtmAccessStrategyAvailableConfigResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmAccessStrategyAvailableConfigResponse - var err error - defer close(result) - response, err = client.DescribeGtmAccessStrategyAvailableConfig(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmAccessStrategyAvailableConfigRequest is the request struct for api DescribeGtmAccessStrategyAvailableConfig -type DescribeGtmAccessStrategyAvailableConfigRequest struct { - *requests.RpcRequest - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeGtmAccessStrategyAvailableConfigResponse is the response struct for api DescribeGtmAccessStrategyAvailableConfig -type DescribeGtmAccessStrategyAvailableConfigResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AddrPools AddrPoolsInDescribeGtmAccessStrategyAvailableConfig `json:"AddrPools" xml:"AddrPools"` - Lines LinesInDescribeGtmAccessStrategyAvailableConfig `json:"Lines" xml:"Lines"` -} - -// CreateDescribeGtmAccessStrategyAvailableConfigRequest creates a request to invoke DescribeGtmAccessStrategyAvailableConfig API -func CreateDescribeGtmAccessStrategyAvailableConfigRequest() (request *DescribeGtmAccessStrategyAvailableConfigRequest) { - request = &DescribeGtmAccessStrategyAvailableConfigRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmAccessStrategyAvailableConfig", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmAccessStrategyAvailableConfigResponse creates a response to parse from DescribeGtmAccessStrategyAvailableConfig response -func CreateDescribeGtmAccessStrategyAvailableConfigResponse() (response *DescribeGtmAccessStrategyAvailableConfigResponse) { - response = &DescribeGtmAccessStrategyAvailableConfigResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_available_alert_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_available_alert_group.go deleted file mode 100644 index f9588c029..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_available_alert_group.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmAvailableAlertGroup invokes the alidns.DescribeGtmAvailableAlertGroup API synchronously -func (client *Client) DescribeGtmAvailableAlertGroup(request *DescribeGtmAvailableAlertGroupRequest) (response *DescribeGtmAvailableAlertGroupResponse, err error) { - response = CreateDescribeGtmAvailableAlertGroupResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmAvailableAlertGroupWithChan invokes the alidns.DescribeGtmAvailableAlertGroup API asynchronously -func (client *Client) DescribeGtmAvailableAlertGroupWithChan(request *DescribeGtmAvailableAlertGroupRequest) (<-chan *DescribeGtmAvailableAlertGroupResponse, <-chan error) { - responseChan := make(chan *DescribeGtmAvailableAlertGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmAvailableAlertGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmAvailableAlertGroupWithCallback invokes the alidns.DescribeGtmAvailableAlertGroup API asynchronously -func (client *Client) DescribeGtmAvailableAlertGroupWithCallback(request *DescribeGtmAvailableAlertGroupRequest, callback func(response *DescribeGtmAvailableAlertGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmAvailableAlertGroupResponse - var err error - defer close(result) - response, err = client.DescribeGtmAvailableAlertGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmAvailableAlertGroupRequest is the request struct for api DescribeGtmAvailableAlertGroup -type DescribeGtmAvailableAlertGroupRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeGtmAvailableAlertGroupResponse is the response struct for api DescribeGtmAvailableAlertGroup -type DescribeGtmAvailableAlertGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AvailableAlertGroup string `json:"AvailableAlertGroup" xml:"AvailableAlertGroup"` -} - -// CreateDescribeGtmAvailableAlertGroupRequest creates a request to invoke DescribeGtmAvailableAlertGroup API -func CreateDescribeGtmAvailableAlertGroupRequest() (request *DescribeGtmAvailableAlertGroupRequest) { - request = &DescribeGtmAvailableAlertGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmAvailableAlertGroup", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmAvailableAlertGroupResponse creates a response to parse from DescribeGtmAvailableAlertGroup response -func CreateDescribeGtmAvailableAlertGroupResponse() (response *DescribeGtmAvailableAlertGroupResponse) { - response = &DescribeGtmAvailableAlertGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance.go deleted file mode 100644 index f2963783b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance.go +++ /dev/null @@ -1,118 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmInstance invokes the alidns.DescribeGtmInstance API synchronously -func (client *Client) DescribeGtmInstance(request *DescribeGtmInstanceRequest) (response *DescribeGtmInstanceResponse, err error) { - response = CreateDescribeGtmInstanceResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmInstanceWithChan invokes the alidns.DescribeGtmInstance API asynchronously -func (client *Client) DescribeGtmInstanceWithChan(request *DescribeGtmInstanceRequest) (<-chan *DescribeGtmInstanceResponse, <-chan error) { - responseChan := make(chan *DescribeGtmInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmInstanceWithCallback invokes the alidns.DescribeGtmInstance API asynchronously -func (client *Client) DescribeGtmInstanceWithCallback(request *DescribeGtmInstanceRequest, callback func(response *DescribeGtmInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmInstanceResponse - var err error - defer close(result) - response, err = client.DescribeGtmInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmInstanceRequest is the request struct for api DescribeGtmInstance -type DescribeGtmInstanceRequest struct { - *requests.RpcRequest - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` - NeedDetailAttributes requests.Boolean `position:"Query" name:"NeedDetailAttributes"` -} - -// DescribeGtmInstanceResponse is the response struct for api DescribeGtmInstance -type DescribeGtmInstanceResponse struct { - *responses.BaseResponse - ExpireTimestamp int64 `json:"ExpireTimestamp" xml:"ExpireTimestamp"` - UserDomainName string `json:"UserDomainName" xml:"UserDomainName"` - RequestId string `json:"RequestId" xml:"RequestId"` - LbaStrategy string `json:"LbaStrategy" xml:"LbaStrategy"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CnameMode string `json:"CnameMode" xml:"CnameMode"` - Ttl int `json:"Ttl" xml:"Ttl"` - Cname string `json:"Cname" xml:"Cname"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - VersionCode string `json:"VersionCode" xml:"VersionCode"` - AlertGroup string `json:"AlertGroup" xml:"AlertGroup"` - AddressPoolNum int `json:"AddressPoolNum" xml:"AddressPoolNum"` - AccessStrategyNum int `json:"AccessStrategyNum" xml:"AccessStrategyNum"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` -} - -// CreateDescribeGtmInstanceRequest creates a request to invoke DescribeGtmInstance API -func CreateDescribeGtmInstanceRequest() (request *DescribeGtmInstanceRequest) { - request = &DescribeGtmInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmInstance", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmInstanceResponse creates a response to parse from DescribeGtmInstance response -func CreateDescribeGtmInstanceResponse() (response *DescribeGtmInstanceResponse) { - response = &DescribeGtmInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_address_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_address_pool.go deleted file mode 100644 index 004fb7ac3..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_address_pool.go +++ /dev/null @@ -1,114 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmInstanceAddressPool invokes the alidns.DescribeGtmInstanceAddressPool API synchronously -func (client *Client) DescribeGtmInstanceAddressPool(request *DescribeGtmInstanceAddressPoolRequest) (response *DescribeGtmInstanceAddressPoolResponse, err error) { - response = CreateDescribeGtmInstanceAddressPoolResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmInstanceAddressPoolWithChan invokes the alidns.DescribeGtmInstanceAddressPool API asynchronously -func (client *Client) DescribeGtmInstanceAddressPoolWithChan(request *DescribeGtmInstanceAddressPoolRequest) (<-chan *DescribeGtmInstanceAddressPoolResponse, <-chan error) { - responseChan := make(chan *DescribeGtmInstanceAddressPoolResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmInstanceAddressPool(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmInstanceAddressPoolWithCallback invokes the alidns.DescribeGtmInstanceAddressPool API asynchronously -func (client *Client) DescribeGtmInstanceAddressPoolWithCallback(request *DescribeGtmInstanceAddressPoolRequest, callback func(response *DescribeGtmInstanceAddressPoolResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmInstanceAddressPoolResponse - var err error - defer close(result) - response, err = client.DescribeGtmInstanceAddressPool(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmInstanceAddressPoolRequest is the request struct for api DescribeGtmInstanceAddressPool -type DescribeGtmInstanceAddressPoolRequest struct { - *requests.RpcRequest - AddrPoolId string `position:"Query" name:"AddrPoolId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeGtmInstanceAddressPoolResponse is the response struct for api DescribeGtmInstanceAddressPool -type DescribeGtmInstanceAddressPoolResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AddrPoolId string `json:"AddrPoolId" xml:"AddrPoolId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` - UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` - AddrCount int `json:"AddrCount" xml:"AddrCount"` - MinAvailableAddrNum int `json:"MinAvailableAddrNum" xml:"MinAvailableAddrNum"` - MonitorConfigId string `json:"MonitorConfigId" xml:"MonitorConfigId"` - MonitorStatus string `json:"MonitorStatus" xml:"MonitorStatus"` - Name string `json:"Name" xml:"Name"` - Status string `json:"Status" xml:"Status"` - Type string `json:"Type" xml:"Type"` - Addrs AddrsInDescribeGtmInstanceAddressPool `json:"Addrs" xml:"Addrs"` -} - -// CreateDescribeGtmInstanceAddressPoolRequest creates a request to invoke DescribeGtmInstanceAddressPool API -func CreateDescribeGtmInstanceAddressPoolRequest() (request *DescribeGtmInstanceAddressPoolRequest) { - request = &DescribeGtmInstanceAddressPoolRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmInstanceAddressPool", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmInstanceAddressPoolResponse creates a response to parse from DescribeGtmInstanceAddressPool response -func CreateDescribeGtmInstanceAddressPoolResponse() (response *DescribeGtmInstanceAddressPoolResponse) { - response = &DescribeGtmInstanceAddressPoolResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_address_pools.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_address_pools.go deleted file mode 100644 index 603675427..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_address_pools.go +++ /dev/null @@ -1,108 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmInstanceAddressPools invokes the alidns.DescribeGtmInstanceAddressPools API synchronously -func (client *Client) DescribeGtmInstanceAddressPools(request *DescribeGtmInstanceAddressPoolsRequest) (response *DescribeGtmInstanceAddressPoolsResponse, err error) { - response = CreateDescribeGtmInstanceAddressPoolsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmInstanceAddressPoolsWithChan invokes the alidns.DescribeGtmInstanceAddressPools API asynchronously -func (client *Client) DescribeGtmInstanceAddressPoolsWithChan(request *DescribeGtmInstanceAddressPoolsRequest) (<-chan *DescribeGtmInstanceAddressPoolsResponse, <-chan error) { - responseChan := make(chan *DescribeGtmInstanceAddressPoolsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmInstanceAddressPools(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmInstanceAddressPoolsWithCallback invokes the alidns.DescribeGtmInstanceAddressPools API asynchronously -func (client *Client) DescribeGtmInstanceAddressPoolsWithCallback(request *DescribeGtmInstanceAddressPoolsRequest, callback func(response *DescribeGtmInstanceAddressPoolsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmInstanceAddressPoolsResponse - var err error - defer close(result) - response, err = client.DescribeGtmInstanceAddressPools(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmInstanceAddressPoolsRequest is the request struct for api DescribeGtmInstanceAddressPools -type DescribeGtmInstanceAddressPoolsRequest struct { - *requests.RpcRequest - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeGtmInstanceAddressPoolsResponse is the response struct for api DescribeGtmInstanceAddressPools -type DescribeGtmInstanceAddressPoolsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - AddrPools AddrPoolsInDescribeGtmInstanceAddressPools `json:"AddrPools" xml:"AddrPools"` -} - -// CreateDescribeGtmInstanceAddressPoolsRequest creates a request to invoke DescribeGtmInstanceAddressPools API -func CreateDescribeGtmInstanceAddressPoolsRequest() (request *DescribeGtmInstanceAddressPoolsRequest) { - request = &DescribeGtmInstanceAddressPoolsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmInstanceAddressPools", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmInstanceAddressPoolsResponse creates a response to parse from DescribeGtmInstanceAddressPools response -func CreateDescribeGtmInstanceAddressPoolsResponse() (response *DescribeGtmInstanceAddressPoolsResponse) { - response = &DescribeGtmInstanceAddressPoolsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_status.go deleted file mode 100644 index 6fbd2eecb..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_status.go +++ /dev/null @@ -1,107 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmInstanceStatus invokes the alidns.DescribeGtmInstanceStatus API synchronously -func (client *Client) DescribeGtmInstanceStatus(request *DescribeGtmInstanceStatusRequest) (response *DescribeGtmInstanceStatusResponse, err error) { - response = CreateDescribeGtmInstanceStatusResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmInstanceStatusWithChan invokes the alidns.DescribeGtmInstanceStatus API asynchronously -func (client *Client) DescribeGtmInstanceStatusWithChan(request *DescribeGtmInstanceStatusRequest) (<-chan *DescribeGtmInstanceStatusResponse, <-chan error) { - responseChan := make(chan *DescribeGtmInstanceStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmInstanceStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmInstanceStatusWithCallback invokes the alidns.DescribeGtmInstanceStatus API asynchronously -func (client *Client) DescribeGtmInstanceStatusWithCallback(request *DescribeGtmInstanceStatusRequest, callback func(response *DescribeGtmInstanceStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmInstanceStatusResponse - var err error - defer close(result) - response, err = client.DescribeGtmInstanceStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmInstanceStatusRequest is the request struct for api DescribeGtmInstanceStatus -type DescribeGtmInstanceStatusRequest struct { - *requests.RpcRequest - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeGtmInstanceStatusResponse is the response struct for api DescribeGtmInstanceStatus -type DescribeGtmInstanceStatusResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AddrNotAvailableNum int `json:"AddrNotAvailableNum" xml:"AddrNotAvailableNum"` - AddrPoolNotAvailableNum int `json:"AddrPoolNotAvailableNum" xml:"AddrPoolNotAvailableNum"` - SwitchToFailoverStrategyNum int `json:"SwitchToFailoverStrategyNum" xml:"SwitchToFailoverStrategyNum"` - StrategyNotAvailableNum int `json:"StrategyNotAvailableNum" xml:"StrategyNotAvailableNum"` - Status string `json:"Status" xml:"Status"` - StatusReason string `json:"StatusReason" xml:"StatusReason"` -} - -// CreateDescribeGtmInstanceStatusRequest creates a request to invoke DescribeGtmInstanceStatus API -func CreateDescribeGtmInstanceStatusRequest() (request *DescribeGtmInstanceStatusRequest) { - request = &DescribeGtmInstanceStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmInstanceStatus", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmInstanceStatusResponse creates a response to parse from DescribeGtmInstanceStatus response -func CreateDescribeGtmInstanceStatusResponse() (response *DescribeGtmInstanceStatusResponse) { - response = &DescribeGtmInstanceStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_system_cname.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_system_cname.go deleted file mode 100644 index b093d715f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instance_system_cname.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmInstanceSystemCname invokes the alidns.DescribeGtmInstanceSystemCname API synchronously -func (client *Client) DescribeGtmInstanceSystemCname(request *DescribeGtmInstanceSystemCnameRequest) (response *DescribeGtmInstanceSystemCnameResponse, err error) { - response = CreateDescribeGtmInstanceSystemCnameResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmInstanceSystemCnameWithChan invokes the alidns.DescribeGtmInstanceSystemCname API asynchronously -func (client *Client) DescribeGtmInstanceSystemCnameWithChan(request *DescribeGtmInstanceSystemCnameRequest) (<-chan *DescribeGtmInstanceSystemCnameResponse, <-chan error) { - responseChan := make(chan *DescribeGtmInstanceSystemCnameResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmInstanceSystemCname(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmInstanceSystemCnameWithCallback invokes the alidns.DescribeGtmInstanceSystemCname API asynchronously -func (client *Client) DescribeGtmInstanceSystemCnameWithCallback(request *DescribeGtmInstanceSystemCnameRequest, callback func(response *DescribeGtmInstanceSystemCnameResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmInstanceSystemCnameResponse - var err error - defer close(result) - response, err = client.DescribeGtmInstanceSystemCname(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmInstanceSystemCnameRequest is the request struct for api DescribeGtmInstanceSystemCname -type DescribeGtmInstanceSystemCnameRequest struct { - *requests.RpcRequest - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeGtmInstanceSystemCnameResponse is the response struct for api DescribeGtmInstanceSystemCname -type DescribeGtmInstanceSystemCnameResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - SystemCname string `json:"SystemCname" xml:"SystemCname"` -} - -// CreateDescribeGtmInstanceSystemCnameRequest creates a request to invoke DescribeGtmInstanceSystemCname API -func CreateDescribeGtmInstanceSystemCnameRequest() (request *DescribeGtmInstanceSystemCnameRequest) { - request = &DescribeGtmInstanceSystemCnameRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmInstanceSystemCname", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmInstanceSystemCnameResponse creates a response to parse from DescribeGtmInstanceSystemCname response -func CreateDescribeGtmInstanceSystemCnameResponse() (response *DescribeGtmInstanceSystemCnameResponse) { - response = &DescribeGtmInstanceSystemCnameResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instances.go deleted file mode 100644 index 901c5aa0f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_instances.go +++ /dev/null @@ -1,110 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmInstances invokes the alidns.DescribeGtmInstances API synchronously -func (client *Client) DescribeGtmInstances(request *DescribeGtmInstancesRequest) (response *DescribeGtmInstancesResponse, err error) { - response = CreateDescribeGtmInstancesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmInstancesWithChan invokes the alidns.DescribeGtmInstances API asynchronously -func (client *Client) DescribeGtmInstancesWithChan(request *DescribeGtmInstancesRequest) (<-chan *DescribeGtmInstancesResponse, <-chan error) { - responseChan := make(chan *DescribeGtmInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmInstancesWithCallback invokes the alidns.DescribeGtmInstances API asynchronously -func (client *Client) DescribeGtmInstancesWithCallback(request *DescribeGtmInstancesRequest, callback func(response *DescribeGtmInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmInstancesResponse - var err error - defer close(result) - response, err = client.DescribeGtmInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmInstancesRequest is the request struct for api DescribeGtmInstances -type DescribeGtmInstancesRequest struct { - *requests.RpcRequest - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - Keyword string `position:"Query" name:"Keyword"` - NeedDetailAttributes requests.Boolean `position:"Query" name:"NeedDetailAttributes"` -} - -// DescribeGtmInstancesResponse is the response struct for api DescribeGtmInstances -type DescribeGtmInstancesResponse struct { - *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - GtmInstances GtmInstancesInDescribeGtmInstances `json:"GtmInstances" xml:"GtmInstances"` -} - -// CreateDescribeGtmInstancesRequest creates a request to invoke DescribeGtmInstances API -func CreateDescribeGtmInstancesRequest() (request *DescribeGtmInstancesRequest) { - request = &DescribeGtmInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmInstances", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmInstancesResponse creates a response to parse from DescribeGtmInstances response -func CreateDescribeGtmInstancesResponse() (response *DescribeGtmInstancesResponse) { - response = &DescribeGtmInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_logs.go deleted file mode 100644 index 126bbfda6..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_logs.go +++ /dev/null @@ -1,111 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmLogs invokes the alidns.DescribeGtmLogs API synchronously -func (client *Client) DescribeGtmLogs(request *DescribeGtmLogsRequest) (response *DescribeGtmLogsResponse, err error) { - response = CreateDescribeGtmLogsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmLogsWithChan invokes the alidns.DescribeGtmLogs API asynchronously -func (client *Client) DescribeGtmLogsWithChan(request *DescribeGtmLogsRequest) (<-chan *DescribeGtmLogsResponse, <-chan error) { - responseChan := make(chan *DescribeGtmLogsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmLogs(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmLogsWithCallback invokes the alidns.DescribeGtmLogs API asynchronously -func (client *Client) DescribeGtmLogsWithCallback(request *DescribeGtmLogsRequest, callback func(response *DescribeGtmLogsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmLogsResponse - var err error - defer close(result) - response, err = client.DescribeGtmLogs(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmLogsRequest is the request struct for api DescribeGtmLogs -type DescribeGtmLogsRequest struct { - *requests.RpcRequest - StartTimestamp requests.Integer `position:"Query" name:"StartTimestamp"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - EndTimestamp requests.Integer `position:"Query" name:"EndTimestamp"` - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - Keyword string `position:"Query" name:"Keyword"` -} - -// DescribeGtmLogsResponse is the response struct for api DescribeGtmLogs -type DescribeGtmLogsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - Logs LogsInDescribeGtmLogs `json:"Logs" xml:"Logs"` -} - -// CreateDescribeGtmLogsRequest creates a request to invoke DescribeGtmLogs API -func CreateDescribeGtmLogsRequest() (request *DescribeGtmLogsRequest) { - request = &DescribeGtmLogsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmLogs", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmLogsResponse creates a response to parse from DescribeGtmLogs response -func CreateDescribeGtmLogsResponse() (response *DescribeGtmLogsResponse) { - response = &DescribeGtmLogsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_monitor_available_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_monitor_available_config.go deleted file mode 100644 index e15ffcac0..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_monitor_available_config.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmMonitorAvailableConfig invokes the alidns.DescribeGtmMonitorAvailableConfig API synchronously -func (client *Client) DescribeGtmMonitorAvailableConfig(request *DescribeGtmMonitorAvailableConfigRequest) (response *DescribeGtmMonitorAvailableConfigResponse, err error) { - response = CreateDescribeGtmMonitorAvailableConfigResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmMonitorAvailableConfigWithChan invokes the alidns.DescribeGtmMonitorAvailableConfig API asynchronously -func (client *Client) DescribeGtmMonitorAvailableConfigWithChan(request *DescribeGtmMonitorAvailableConfigRequest) (<-chan *DescribeGtmMonitorAvailableConfigResponse, <-chan error) { - responseChan := make(chan *DescribeGtmMonitorAvailableConfigResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmMonitorAvailableConfig(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmMonitorAvailableConfigWithCallback invokes the alidns.DescribeGtmMonitorAvailableConfig API asynchronously -func (client *Client) DescribeGtmMonitorAvailableConfigWithCallback(request *DescribeGtmMonitorAvailableConfigRequest, callback func(response *DescribeGtmMonitorAvailableConfigResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmMonitorAvailableConfigResponse - var err error - defer close(result) - response, err = client.DescribeGtmMonitorAvailableConfig(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmMonitorAvailableConfigRequest is the request struct for api DescribeGtmMonitorAvailableConfig -type DescribeGtmMonitorAvailableConfigRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeGtmMonitorAvailableConfigResponse is the response struct for api DescribeGtmMonitorAvailableConfig -type DescribeGtmMonitorAvailableConfigResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - IspCityNodes IspCityNodesInDescribeGtmMonitorAvailableConfig `json:"IspCityNodes" xml:"IspCityNodes"` -} - -// CreateDescribeGtmMonitorAvailableConfigRequest creates a request to invoke DescribeGtmMonitorAvailableConfig API -func CreateDescribeGtmMonitorAvailableConfigRequest() (request *DescribeGtmMonitorAvailableConfigRequest) { - request = &DescribeGtmMonitorAvailableConfigRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmMonitorAvailableConfig", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmMonitorAvailableConfigResponse creates a response to parse from DescribeGtmMonitorAvailableConfig response -func CreateDescribeGtmMonitorAvailableConfigResponse() (response *DescribeGtmMonitorAvailableConfigResponse) { - response = &DescribeGtmMonitorAvailableConfigResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_monitor_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_monitor_config.go deleted file mode 100644 index b58071524..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_monitor_config.go +++ /dev/null @@ -1,112 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmMonitorConfig invokes the alidns.DescribeGtmMonitorConfig API synchronously -func (client *Client) DescribeGtmMonitorConfig(request *DescribeGtmMonitorConfigRequest) (response *DescribeGtmMonitorConfigResponse, err error) { - response = CreateDescribeGtmMonitorConfigResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmMonitorConfigWithChan invokes the alidns.DescribeGtmMonitorConfig API asynchronously -func (client *Client) DescribeGtmMonitorConfigWithChan(request *DescribeGtmMonitorConfigRequest) (<-chan *DescribeGtmMonitorConfigResponse, <-chan error) { - responseChan := make(chan *DescribeGtmMonitorConfigResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmMonitorConfig(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmMonitorConfigWithCallback invokes the alidns.DescribeGtmMonitorConfig API asynchronously -func (client *Client) DescribeGtmMonitorConfigWithCallback(request *DescribeGtmMonitorConfigRequest, callback func(response *DescribeGtmMonitorConfigResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmMonitorConfigResponse - var err error - defer close(result) - response, err = client.DescribeGtmMonitorConfig(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmMonitorConfigRequest is the request struct for api DescribeGtmMonitorConfig -type DescribeGtmMonitorConfigRequest struct { - *requests.RpcRequest - MonitorConfigId string `position:"Query" name:"MonitorConfigId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeGtmMonitorConfigResponse is the response struct for api DescribeGtmMonitorConfig -type DescribeGtmMonitorConfigResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - MonitorConfigId string `json:"MonitorConfigId" xml:"MonitorConfigId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` - UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` - ProtocolType string `json:"ProtocolType" xml:"ProtocolType"` - Interval int `json:"Interval" xml:"Interval"` - EvaluationCount int `json:"EvaluationCount" xml:"EvaluationCount"` - Timeout int `json:"Timeout" xml:"Timeout"` - MonitorExtendInfo string `json:"MonitorExtendInfo" xml:"MonitorExtendInfo"` - IspCityNodes IspCityNodesInDescribeGtmMonitorConfig `json:"IspCityNodes" xml:"IspCityNodes"` -} - -// CreateDescribeGtmMonitorConfigRequest creates a request to invoke DescribeGtmMonitorConfig API -func CreateDescribeGtmMonitorConfigRequest() (request *DescribeGtmMonitorConfigRequest) { - request = &DescribeGtmMonitorConfigRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmMonitorConfig", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmMonitorConfigResponse creates a response to parse from DescribeGtmMonitorConfig response -func CreateDescribeGtmMonitorConfigResponse() (response *DescribeGtmMonitorConfigResponse) { - response = &DescribeGtmMonitorConfigResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_recovery_plan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_recovery_plan.go deleted file mode 100644 index 1b40da28c..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_recovery_plan.go +++ /dev/null @@ -1,115 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmRecoveryPlan invokes the alidns.DescribeGtmRecoveryPlan API synchronously -func (client *Client) DescribeGtmRecoveryPlan(request *DescribeGtmRecoveryPlanRequest) (response *DescribeGtmRecoveryPlanResponse, err error) { - response = CreateDescribeGtmRecoveryPlanResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmRecoveryPlanWithChan invokes the alidns.DescribeGtmRecoveryPlan API asynchronously -func (client *Client) DescribeGtmRecoveryPlanWithChan(request *DescribeGtmRecoveryPlanRequest) (<-chan *DescribeGtmRecoveryPlanResponse, <-chan error) { - responseChan := make(chan *DescribeGtmRecoveryPlanResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmRecoveryPlan(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmRecoveryPlanWithCallback invokes the alidns.DescribeGtmRecoveryPlan API asynchronously -func (client *Client) DescribeGtmRecoveryPlanWithCallback(request *DescribeGtmRecoveryPlanRequest, callback func(response *DescribeGtmRecoveryPlanResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmRecoveryPlanResponse - var err error - defer close(result) - response, err = client.DescribeGtmRecoveryPlan(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmRecoveryPlanRequest is the request struct for api DescribeGtmRecoveryPlan -type DescribeGtmRecoveryPlanRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - RecoveryPlanId requests.Integer `position:"Query" name:"RecoveryPlanId"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeGtmRecoveryPlanResponse is the response struct for api DescribeGtmRecoveryPlan -type DescribeGtmRecoveryPlanResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecoveryPlanId int64 `json:"RecoveryPlanId" xml:"RecoveryPlanId"` - Name string `json:"Name" xml:"Name"` - Remark string `json:"Remark" xml:"Remark"` - FaultAddrPoolNum int `json:"FaultAddrPoolNum" xml:"FaultAddrPoolNum"` - Status string `json:"Status" xml:"Status"` - LastExecuteTime string `json:"LastExecuteTime" xml:"LastExecuteTime"` - LastExecuteTimestamp int64 `json:"LastExecuteTimestamp" xml:"LastExecuteTimestamp"` - LastRollbackTime string `json:"LastRollbackTime" xml:"LastRollbackTime"` - LastRollbackTimestamp int64 `json:"LastRollbackTimestamp" xml:"LastRollbackTimestamp"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` - UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` - FaultAddrPools FaultAddrPools `json:"FaultAddrPools" xml:"FaultAddrPools"` -} - -// CreateDescribeGtmRecoveryPlanRequest creates a request to invoke DescribeGtmRecoveryPlan API -func CreateDescribeGtmRecoveryPlanRequest() (request *DescribeGtmRecoveryPlanRequest) { - request = &DescribeGtmRecoveryPlanRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmRecoveryPlan", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmRecoveryPlanResponse creates a response to parse from DescribeGtmRecoveryPlan response -func CreateDescribeGtmRecoveryPlanResponse() (response *DescribeGtmRecoveryPlanResponse) { - response = &DescribeGtmRecoveryPlanResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_recovery_plan_available_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_recovery_plan_available_config.go deleted file mode 100644 index f24de473f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_recovery_plan_available_config.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmRecoveryPlanAvailableConfig invokes the alidns.DescribeGtmRecoveryPlanAvailableConfig API synchronously -func (client *Client) DescribeGtmRecoveryPlanAvailableConfig(request *DescribeGtmRecoveryPlanAvailableConfigRequest) (response *DescribeGtmRecoveryPlanAvailableConfigResponse, err error) { - response = CreateDescribeGtmRecoveryPlanAvailableConfigResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmRecoveryPlanAvailableConfigWithChan invokes the alidns.DescribeGtmRecoveryPlanAvailableConfig API asynchronously -func (client *Client) DescribeGtmRecoveryPlanAvailableConfigWithChan(request *DescribeGtmRecoveryPlanAvailableConfigRequest) (<-chan *DescribeGtmRecoveryPlanAvailableConfigResponse, <-chan error) { - responseChan := make(chan *DescribeGtmRecoveryPlanAvailableConfigResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmRecoveryPlanAvailableConfig(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmRecoveryPlanAvailableConfigWithCallback invokes the alidns.DescribeGtmRecoveryPlanAvailableConfig API asynchronously -func (client *Client) DescribeGtmRecoveryPlanAvailableConfigWithCallback(request *DescribeGtmRecoveryPlanAvailableConfigRequest, callback func(response *DescribeGtmRecoveryPlanAvailableConfigResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmRecoveryPlanAvailableConfigResponse - var err error - defer close(result) - response, err = client.DescribeGtmRecoveryPlanAvailableConfig(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmRecoveryPlanAvailableConfigRequest is the request struct for api DescribeGtmRecoveryPlanAvailableConfig -type DescribeGtmRecoveryPlanAvailableConfigRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeGtmRecoveryPlanAvailableConfigResponse is the response struct for api DescribeGtmRecoveryPlanAvailableConfig -type DescribeGtmRecoveryPlanAvailableConfigResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Instances Instances `json:"Instances" xml:"Instances"` -} - -// CreateDescribeGtmRecoveryPlanAvailableConfigRequest creates a request to invoke DescribeGtmRecoveryPlanAvailableConfig API -func CreateDescribeGtmRecoveryPlanAvailableConfigRequest() (request *DescribeGtmRecoveryPlanAvailableConfigRequest) { - request = &DescribeGtmRecoveryPlanAvailableConfigRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmRecoveryPlanAvailableConfig", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmRecoveryPlanAvailableConfigResponse creates a response to parse from DescribeGtmRecoveryPlanAvailableConfig response -func CreateDescribeGtmRecoveryPlanAvailableConfigResponse() (response *DescribeGtmRecoveryPlanAvailableConfigResponse) { - response = &DescribeGtmRecoveryPlanAvailableConfigResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_recovery_plans.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_recovery_plans.go deleted file mode 100644 index 878e938bc..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_gtm_recovery_plans.go +++ /dev/null @@ -1,108 +0,0 @@ -package alidns - -//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" -) - -// DescribeGtmRecoveryPlans invokes the alidns.DescribeGtmRecoveryPlans API synchronously -func (client *Client) DescribeGtmRecoveryPlans(request *DescribeGtmRecoveryPlansRequest) (response *DescribeGtmRecoveryPlansResponse, err error) { - response = CreateDescribeGtmRecoveryPlansResponse() - err = client.DoAction(request, response) - return -} - -// DescribeGtmRecoveryPlansWithChan invokes the alidns.DescribeGtmRecoveryPlans API asynchronously -func (client *Client) DescribeGtmRecoveryPlansWithChan(request *DescribeGtmRecoveryPlansRequest) (<-chan *DescribeGtmRecoveryPlansResponse, <-chan error) { - responseChan := make(chan *DescribeGtmRecoveryPlansResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeGtmRecoveryPlans(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeGtmRecoveryPlansWithCallback invokes the alidns.DescribeGtmRecoveryPlans API asynchronously -func (client *Client) DescribeGtmRecoveryPlansWithCallback(request *DescribeGtmRecoveryPlansRequest, callback func(response *DescribeGtmRecoveryPlansResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeGtmRecoveryPlansResponse - var err error - defer close(result) - response, err = client.DescribeGtmRecoveryPlans(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeGtmRecoveryPlansRequest is the request struct for api DescribeGtmRecoveryPlans -type DescribeGtmRecoveryPlansRequest struct { - *requests.RpcRequest - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - Keyword string `position:"Query" name:"Keyword"` -} - -// DescribeGtmRecoveryPlansResponse is the response struct for api DescribeGtmRecoveryPlans -type DescribeGtmRecoveryPlansResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - RecoveryPlans RecoveryPlans `json:"RecoveryPlans" xml:"RecoveryPlans"` -} - -// CreateDescribeGtmRecoveryPlansRequest creates a request to invoke DescribeGtmRecoveryPlans API -func CreateDescribeGtmRecoveryPlansRequest() (request *DescribeGtmRecoveryPlansRequest) { - request = &DescribeGtmRecoveryPlansRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeGtmRecoveryPlans", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeGtmRecoveryPlansResponse creates a response to parse from DescribeGtmRecoveryPlans response -func CreateDescribeGtmRecoveryPlansResponse() (response *DescribeGtmRecoveryPlansResponse) { - response = &DescribeGtmRecoveryPlansResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_instance_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_instance_domains.go deleted file mode 100644 index 5edb55bcd..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_instance_domains.go +++ /dev/null @@ -1,108 +0,0 @@ -package alidns - -//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" -) - -// DescribeInstanceDomains invokes the alidns.DescribeInstanceDomains API synchronously -func (client *Client) DescribeInstanceDomains(request *DescribeInstanceDomainsRequest) (response *DescribeInstanceDomainsResponse, err error) { - response = CreateDescribeInstanceDomainsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceDomainsWithChan invokes the alidns.DescribeInstanceDomains API asynchronously -func (client *Client) DescribeInstanceDomainsWithChan(request *DescribeInstanceDomainsRequest) (<-chan *DescribeInstanceDomainsResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceDomainsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceDomains(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceDomainsWithCallback invokes the alidns.DescribeInstanceDomains API asynchronously -func (client *Client) DescribeInstanceDomainsWithCallback(request *DescribeInstanceDomainsRequest, callback func(response *DescribeInstanceDomainsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceDomainsResponse - var err error - defer close(result) - response, err = client.DescribeInstanceDomains(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceDomainsRequest is the request struct for api DescribeInstanceDomains -type DescribeInstanceDomainsRequest struct { - *requests.RpcRequest - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeInstanceDomainsResponse is the response struct for api DescribeInstanceDomains -type DescribeInstanceDomainsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - InstanceDomains []InstanceDomain `json:"InstanceDomains" xml:"InstanceDomains"` -} - -// CreateDescribeInstanceDomainsRequest creates a request to invoke DescribeInstanceDomains API -func CreateDescribeInstanceDomainsRequest() (request *DescribeInstanceDomainsRequest) { - request = &DescribeInstanceDomainsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeInstanceDomains", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeInstanceDomainsResponse creates a response to parse from DescribeInstanceDomains response -func CreateDescribeInstanceDomainsResponse() (response *DescribeInstanceDomainsResponse) { - response = &DescribeInstanceDomainsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_account_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_account_summary.go deleted file mode 100644 index f63e825be..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_account_summary.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// DescribePdnsAccountSummary invokes the alidns.DescribePdnsAccountSummary API synchronously -func (client *Client) DescribePdnsAccountSummary(request *DescribePdnsAccountSummaryRequest) (response *DescribePdnsAccountSummaryResponse, err error) { - response = CreateDescribePdnsAccountSummaryResponse() - err = client.DoAction(request, response) - return -} - -// DescribePdnsAccountSummaryWithChan invokes the alidns.DescribePdnsAccountSummary API asynchronously -func (client *Client) DescribePdnsAccountSummaryWithChan(request *DescribePdnsAccountSummaryRequest) (<-chan *DescribePdnsAccountSummaryResponse, <-chan error) { - responseChan := make(chan *DescribePdnsAccountSummaryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePdnsAccountSummary(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePdnsAccountSummaryWithCallback invokes the alidns.DescribePdnsAccountSummary API asynchronously -func (client *Client) DescribePdnsAccountSummaryWithCallback(request *DescribePdnsAccountSummaryRequest, callback func(response *DescribePdnsAccountSummaryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePdnsAccountSummaryResponse - var err error - defer close(result) - response, err = client.DescribePdnsAccountSummary(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePdnsAccountSummaryRequest is the request struct for api DescribePdnsAccountSummary -type DescribePdnsAccountSummaryRequest struct { - *requests.RpcRequest - StartDate string `position:"Query" name:"StartDate"` - EndDate string `position:"Query" name:"EndDate"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribePdnsAccountSummaryResponse is the response struct for api DescribePdnsAccountSummary -type DescribePdnsAccountSummaryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Data Data `json:"Data" xml:"Data"` -} - -// CreateDescribePdnsAccountSummaryRequest creates a request to invoke DescribePdnsAccountSummary API -func CreateDescribePdnsAccountSummaryRequest() (request *DescribePdnsAccountSummaryRequest) { - request = &DescribePdnsAccountSummaryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribePdnsAccountSummary", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePdnsAccountSummaryResponse creates a response to parse from DescribePdnsAccountSummary response -func CreateDescribePdnsAccountSummaryResponse() (response *DescribePdnsAccountSummaryResponse) { - response = &DescribePdnsAccountSummaryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_app_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_app_key.go deleted file mode 100644 index 6a65bb711..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_app_key.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// DescribePdnsAppKey invokes the alidns.DescribePdnsAppKey API synchronously -func (client *Client) DescribePdnsAppKey(request *DescribePdnsAppKeyRequest) (response *DescribePdnsAppKeyResponse, err error) { - response = CreateDescribePdnsAppKeyResponse() - err = client.DoAction(request, response) - return -} - -// DescribePdnsAppKeyWithChan invokes the alidns.DescribePdnsAppKey API asynchronously -func (client *Client) DescribePdnsAppKeyWithChan(request *DescribePdnsAppKeyRequest) (<-chan *DescribePdnsAppKeyResponse, <-chan error) { - responseChan := make(chan *DescribePdnsAppKeyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePdnsAppKey(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePdnsAppKeyWithCallback invokes the alidns.DescribePdnsAppKey API asynchronously -func (client *Client) DescribePdnsAppKeyWithCallback(request *DescribePdnsAppKeyRequest, callback func(response *DescribePdnsAppKeyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePdnsAppKeyResponse - var err error - defer close(result) - response, err = client.DescribePdnsAppKey(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePdnsAppKeyRequest is the request struct for api DescribePdnsAppKey -type DescribePdnsAppKeyRequest struct { - *requests.RpcRequest - AppKeyId string `position:"Query" name:"AppKeyId"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribePdnsAppKeyResponse is the response struct for api DescribePdnsAppKey -type DescribePdnsAppKeyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AppKey AppKey `json:"AppKey" xml:"AppKey"` -} - -// CreateDescribePdnsAppKeyRequest creates a request to invoke DescribePdnsAppKey API -func CreateDescribePdnsAppKeyRequest() (request *DescribePdnsAppKeyRequest) { - request = &DescribePdnsAppKeyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribePdnsAppKey", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePdnsAppKeyResponse creates a response to parse from DescribePdnsAppKey response -func CreateDescribePdnsAppKeyResponse() (response *DescribePdnsAppKeyResponse) { - response = &DescribePdnsAppKeyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_app_keys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_app_keys.go deleted file mode 100644 index 14bb03dab..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_app_keys.go +++ /dev/null @@ -1,100 +0,0 @@ -package alidns - -//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" -) - -// DescribePdnsAppKeys invokes the alidns.DescribePdnsAppKeys API synchronously -func (client *Client) DescribePdnsAppKeys(request *DescribePdnsAppKeysRequest) (response *DescribePdnsAppKeysResponse, err error) { - response = CreateDescribePdnsAppKeysResponse() - err = client.DoAction(request, response) - return -} - -// DescribePdnsAppKeysWithChan invokes the alidns.DescribePdnsAppKeys API asynchronously -func (client *Client) DescribePdnsAppKeysWithChan(request *DescribePdnsAppKeysRequest) (<-chan *DescribePdnsAppKeysResponse, <-chan error) { - responseChan := make(chan *DescribePdnsAppKeysResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePdnsAppKeys(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePdnsAppKeysWithCallback invokes the alidns.DescribePdnsAppKeys API asynchronously -func (client *Client) DescribePdnsAppKeysWithCallback(request *DescribePdnsAppKeysRequest, callback func(response *DescribePdnsAppKeysResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePdnsAppKeysResponse - var err error - defer close(result) - response, err = client.DescribePdnsAppKeys(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePdnsAppKeysRequest is the request struct for api DescribePdnsAppKeys -type DescribePdnsAppKeysRequest struct { - *requests.RpcRequest - Lang string `position:"Query" name:"Lang"` -} - -// DescribePdnsAppKeysResponse is the response struct for api DescribePdnsAppKeys -type DescribePdnsAppKeysResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AppKeys []AppKey `json:"AppKeys" xml:"AppKeys"` -} - -// CreateDescribePdnsAppKeysRequest creates a request to invoke DescribePdnsAppKeys API -func CreateDescribePdnsAppKeysRequest() (request *DescribePdnsAppKeysRequest) { - request = &DescribePdnsAppKeysRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribePdnsAppKeys", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePdnsAppKeysResponse creates a response to parse from DescribePdnsAppKeys response -func CreateDescribePdnsAppKeysResponse() (response *DescribePdnsAppKeysResponse) { - response = &DescribePdnsAppKeysResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_operate_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_operate_logs.go deleted file mode 100644 index f4776b81a..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_operate_logs.go +++ /dev/null @@ -1,109 +0,0 @@ -package alidns - -//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" -) - -// DescribePdnsOperateLogs invokes the alidns.DescribePdnsOperateLogs API synchronously -func (client *Client) DescribePdnsOperateLogs(request *DescribePdnsOperateLogsRequest) (response *DescribePdnsOperateLogsResponse, err error) { - response = CreateDescribePdnsOperateLogsResponse() - err = client.DoAction(request, response) - return -} - -// DescribePdnsOperateLogsWithChan invokes the alidns.DescribePdnsOperateLogs API asynchronously -func (client *Client) DescribePdnsOperateLogsWithChan(request *DescribePdnsOperateLogsRequest) (<-chan *DescribePdnsOperateLogsResponse, <-chan error) { - responseChan := make(chan *DescribePdnsOperateLogsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePdnsOperateLogs(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePdnsOperateLogsWithCallback invokes the alidns.DescribePdnsOperateLogs API asynchronously -func (client *Client) DescribePdnsOperateLogsWithCallback(request *DescribePdnsOperateLogsRequest, callback func(response *DescribePdnsOperateLogsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePdnsOperateLogsResponse - var err error - defer close(result) - response, err = client.DescribePdnsOperateLogs(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePdnsOperateLogsRequest is the request struct for api DescribePdnsOperateLogs -type DescribePdnsOperateLogsRequest struct { - *requests.RpcRequest - ActionType string `position:"Query" name:"ActionType"` - StartDate string `position:"Query" name:"StartDate"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - EndDate string `position:"Query" name:"EndDate"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - Keyword string `position:"Query" name:"Keyword"` -} - -// DescribePdnsOperateLogsResponse is the response struct for api DescribePdnsOperateLogs -type DescribePdnsOperateLogsResponse struct { - *responses.BaseResponse - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - Logs []Log `json:"Logs" xml:"Logs"` -} - -// CreateDescribePdnsOperateLogsRequest creates a request to invoke DescribePdnsOperateLogs API -func CreateDescribePdnsOperateLogsRequest() (request *DescribePdnsOperateLogsRequest) { - request = &DescribePdnsOperateLogsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribePdnsOperateLogs", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePdnsOperateLogsResponse creates a response to parse from DescribePdnsOperateLogs response -func CreateDescribePdnsOperateLogsResponse() (response *DescribePdnsOperateLogsResponse) { - response = &DescribePdnsOperateLogsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_request_statistic.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_request_statistic.go deleted file mode 100644 index 1db0b8f98..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_request_statistic.go +++ /dev/null @@ -1,105 +0,0 @@ -package alidns - -//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" -) - -// DescribePdnsRequestStatistic invokes the alidns.DescribePdnsRequestStatistic API synchronously -func (client *Client) DescribePdnsRequestStatistic(request *DescribePdnsRequestStatisticRequest) (response *DescribePdnsRequestStatisticResponse, err error) { - response = CreateDescribePdnsRequestStatisticResponse() - err = client.DoAction(request, response) - return -} - -// DescribePdnsRequestStatisticWithChan invokes the alidns.DescribePdnsRequestStatistic API asynchronously -func (client *Client) DescribePdnsRequestStatisticWithChan(request *DescribePdnsRequestStatisticRequest) (<-chan *DescribePdnsRequestStatisticResponse, <-chan error) { - responseChan := make(chan *DescribePdnsRequestStatisticResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePdnsRequestStatistic(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePdnsRequestStatisticWithCallback invokes the alidns.DescribePdnsRequestStatistic API asynchronously -func (client *Client) DescribePdnsRequestStatisticWithCallback(request *DescribePdnsRequestStatisticRequest, callback func(response *DescribePdnsRequestStatisticResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePdnsRequestStatisticResponse - var err error - defer close(result) - response, err = client.DescribePdnsRequestStatistic(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePdnsRequestStatisticRequest is the request struct for api DescribePdnsRequestStatistic -type DescribePdnsRequestStatisticRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - Type string `position:"Query" name:"Type"` - StartDate string `position:"Query" name:"StartDate"` - EndDate string `position:"Query" name:"EndDate"` - SubDomain string `position:"Query" name:"SubDomain"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribePdnsRequestStatisticResponse is the response struct for api DescribePdnsRequestStatistic -type DescribePdnsRequestStatisticResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Data []StatisticItem `json:"Data" xml:"Data"` -} - -// CreateDescribePdnsRequestStatisticRequest creates a request to invoke DescribePdnsRequestStatistic API -func CreateDescribePdnsRequestStatisticRequest() (request *DescribePdnsRequestStatisticRequest) { - request = &DescribePdnsRequestStatisticRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribePdnsRequestStatistic", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePdnsRequestStatisticResponse creates a response to parse from DescribePdnsRequestStatistic response -func CreateDescribePdnsRequestStatisticResponse() (response *DescribePdnsRequestStatisticResponse) { - response = &DescribePdnsRequestStatisticResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_request_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_request_statistics.go deleted file mode 100644 index 43cea7af1..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_request_statistics.go +++ /dev/null @@ -1,111 +0,0 @@ -package alidns - -//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" -) - -// DescribePdnsRequestStatistics invokes the alidns.DescribePdnsRequestStatistics API synchronously -func (client *Client) DescribePdnsRequestStatistics(request *DescribePdnsRequestStatisticsRequest) (response *DescribePdnsRequestStatisticsResponse, err error) { - response = CreateDescribePdnsRequestStatisticsResponse() - err = client.DoAction(request, response) - return -} - -// DescribePdnsRequestStatisticsWithChan invokes the alidns.DescribePdnsRequestStatistics API asynchronously -func (client *Client) DescribePdnsRequestStatisticsWithChan(request *DescribePdnsRequestStatisticsRequest) (<-chan *DescribePdnsRequestStatisticsResponse, <-chan error) { - responseChan := make(chan *DescribePdnsRequestStatisticsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePdnsRequestStatistics(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePdnsRequestStatisticsWithCallback invokes the alidns.DescribePdnsRequestStatistics API asynchronously -func (client *Client) DescribePdnsRequestStatisticsWithCallback(request *DescribePdnsRequestStatisticsRequest, callback func(response *DescribePdnsRequestStatisticsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePdnsRequestStatisticsResponse - var err error - defer close(result) - response, err = client.DescribePdnsRequestStatistics(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePdnsRequestStatisticsRequest is the request struct for api DescribePdnsRequestStatistics -type DescribePdnsRequestStatisticsRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - NeedThreatInfo requests.Boolean `position:"Query" name:"NeedThreatInfo"` - Type string `position:"Query" name:"Type"` - StartDate string `position:"Query" name:"StartDate"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - EndDate string `position:"Query" name:"EndDate"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - SubDomain string `position:"Query" name:"SubDomain"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribePdnsRequestStatisticsResponse is the response struct for api DescribePdnsRequestStatistics -type DescribePdnsRequestStatisticsResponse struct { - *responses.BaseResponse - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - Data []StatisticItem `json:"Data" xml:"Data"` -} - -// CreateDescribePdnsRequestStatisticsRequest creates a request to invoke DescribePdnsRequestStatistics API -func CreateDescribePdnsRequestStatisticsRequest() (request *DescribePdnsRequestStatisticsRequest) { - request = &DescribePdnsRequestStatisticsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribePdnsRequestStatistics", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePdnsRequestStatisticsResponse creates a response to parse from DescribePdnsRequestStatistics response -func CreateDescribePdnsRequestStatisticsResponse() (response *DescribePdnsRequestStatisticsResponse) { - response = &DescribePdnsRequestStatisticsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_threat_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_threat_logs.go deleted file mode 100644 index 75c182bb9..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_threat_logs.go +++ /dev/null @@ -1,111 +0,0 @@ -package alidns - -//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" -) - -// DescribePdnsThreatLogs invokes the alidns.DescribePdnsThreatLogs API synchronously -func (client *Client) DescribePdnsThreatLogs(request *DescribePdnsThreatLogsRequest) (response *DescribePdnsThreatLogsResponse, err error) { - response = CreateDescribePdnsThreatLogsResponse() - err = client.DoAction(request, response) - return -} - -// DescribePdnsThreatLogsWithChan invokes the alidns.DescribePdnsThreatLogs API asynchronously -func (client *Client) DescribePdnsThreatLogsWithChan(request *DescribePdnsThreatLogsRequest) (<-chan *DescribePdnsThreatLogsResponse, <-chan error) { - responseChan := make(chan *DescribePdnsThreatLogsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePdnsThreatLogs(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePdnsThreatLogsWithCallback invokes the alidns.DescribePdnsThreatLogs API asynchronously -func (client *Client) DescribePdnsThreatLogsWithCallback(request *DescribePdnsThreatLogsRequest, callback func(response *DescribePdnsThreatLogsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePdnsThreatLogsResponse - var err error - defer close(result) - response, err = client.DescribePdnsThreatLogs(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePdnsThreatLogsRequest is the request struct for api DescribePdnsThreatLogs -type DescribePdnsThreatLogsRequest struct { - *requests.RpcRequest - ThreatSourceIp string `position:"Query" name:"ThreatSourceIp"` - StartDate string `position:"Query" name:"StartDate"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - EndDate string `position:"Query" name:"EndDate"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ThreatType string `position:"Query" name:"ThreatType"` - Lang string `position:"Query" name:"Lang"` - Keyword string `position:"Query" name:"Keyword"` - ThreatLevel string `position:"Query" name:"ThreatLevel"` -} - -// DescribePdnsThreatLogsResponse is the response struct for api DescribePdnsThreatLogs -type DescribePdnsThreatLogsResponse struct { - *responses.BaseResponse - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - Logs []Log `json:"Logs" xml:"Logs"` -} - -// CreateDescribePdnsThreatLogsRequest creates a request to invoke DescribePdnsThreatLogs API -func CreateDescribePdnsThreatLogsRequest() (request *DescribePdnsThreatLogsRequest) { - request = &DescribePdnsThreatLogsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribePdnsThreatLogs", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePdnsThreatLogsResponse creates a response to parse from DescribePdnsThreatLogs response -func CreateDescribePdnsThreatLogsResponse() (response *DescribePdnsThreatLogsResponse) { - response = &DescribePdnsThreatLogsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_threat_statistic.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_threat_statistic.go deleted file mode 100644 index d09c30ad4..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_threat_statistic.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// DescribePdnsThreatStatistic invokes the alidns.DescribePdnsThreatStatistic API synchronously -func (client *Client) DescribePdnsThreatStatistic(request *DescribePdnsThreatStatisticRequest) (response *DescribePdnsThreatStatisticResponse, err error) { - response = CreateDescribePdnsThreatStatisticResponse() - err = client.DoAction(request, response) - return -} - -// DescribePdnsThreatStatisticWithChan invokes the alidns.DescribePdnsThreatStatistic API asynchronously -func (client *Client) DescribePdnsThreatStatisticWithChan(request *DescribePdnsThreatStatisticRequest) (<-chan *DescribePdnsThreatStatisticResponse, <-chan error) { - responseChan := make(chan *DescribePdnsThreatStatisticResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePdnsThreatStatistic(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePdnsThreatStatisticWithCallback invokes the alidns.DescribePdnsThreatStatistic API asynchronously -func (client *Client) DescribePdnsThreatStatisticWithCallback(request *DescribePdnsThreatStatisticRequest, callback func(response *DescribePdnsThreatStatisticResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePdnsThreatStatisticResponse - var err error - defer close(result) - response, err = client.DescribePdnsThreatStatistic(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePdnsThreatStatisticRequest is the request struct for api DescribePdnsThreatStatistic -type DescribePdnsThreatStatisticRequest struct { - *requests.RpcRequest - ThreatSourceIp string `position:"Query" name:"ThreatSourceIp"` - Type string `position:"Query" name:"Type"` - StartDate string `position:"Query" name:"StartDate"` - EndDate string `position:"Query" name:"EndDate"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribePdnsThreatStatisticResponse is the response struct for api DescribePdnsThreatStatistic -type DescribePdnsThreatStatisticResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Data []StatisticItem `json:"Data" xml:"Data"` -} - -// CreateDescribePdnsThreatStatisticRequest creates a request to invoke DescribePdnsThreatStatistic API -func CreateDescribePdnsThreatStatisticRequest() (request *DescribePdnsThreatStatisticRequest) { - request = &DescribePdnsThreatStatisticRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribePdnsThreatStatistic", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePdnsThreatStatisticResponse creates a response to parse from DescribePdnsThreatStatistic response -func CreateDescribePdnsThreatStatisticResponse() (response *DescribePdnsThreatStatisticResponse) { - response = &DescribePdnsThreatStatisticResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_threat_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_threat_statistics.go deleted file mode 100644 index abef37d22..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_threat_statistics.go +++ /dev/null @@ -1,115 +0,0 @@ -package alidns - -//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" -) - -// DescribePdnsThreatStatistics invokes the alidns.DescribePdnsThreatStatistics API synchronously -func (client *Client) DescribePdnsThreatStatistics(request *DescribePdnsThreatStatisticsRequest) (response *DescribePdnsThreatStatisticsResponse, err error) { - response = CreateDescribePdnsThreatStatisticsResponse() - err = client.DoAction(request, response) - return -} - -// DescribePdnsThreatStatisticsWithChan invokes the alidns.DescribePdnsThreatStatistics API asynchronously -func (client *Client) DescribePdnsThreatStatisticsWithChan(request *DescribePdnsThreatStatisticsRequest) (<-chan *DescribePdnsThreatStatisticsResponse, <-chan error) { - responseChan := make(chan *DescribePdnsThreatStatisticsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePdnsThreatStatistics(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePdnsThreatStatisticsWithCallback invokes the alidns.DescribePdnsThreatStatistics API asynchronously -func (client *Client) DescribePdnsThreatStatisticsWithCallback(request *DescribePdnsThreatStatisticsRequest, callback func(response *DescribePdnsThreatStatisticsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePdnsThreatStatisticsResponse - var err error - defer close(result) - response, err = client.DescribePdnsThreatStatistics(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePdnsThreatStatisticsRequest is the request struct for api DescribePdnsThreatStatistics -type DescribePdnsThreatStatisticsRequest struct { - *requests.RpcRequest - Type string `position:"Query" name:"Type"` - StartDate string `position:"Query" name:"StartDate"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ThreatType string `position:"Query" name:"ThreatType"` - Lang string `position:"Query" name:"Lang"` - Direction string `position:"Query" name:"Direction"` - ThreatSourceIp string `position:"Query" name:"ThreatSourceIp"` - DomainName string `position:"Query" name:"DomainName"` - OrderBy string `position:"Query" name:"OrderBy"` - EndDate string `position:"Query" name:"EndDate"` - SubDomain string `position:"Query" name:"SubDomain"` - ThreatLevel string `position:"Query" name:"ThreatLevel"` -} - -// DescribePdnsThreatStatisticsResponse is the response struct for api DescribePdnsThreatStatistics -type DescribePdnsThreatStatisticsResponse struct { - *responses.BaseResponse - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - Data []StatisticItem `json:"Data" xml:"Data"` -} - -// CreateDescribePdnsThreatStatisticsRequest creates a request to invoke DescribePdnsThreatStatistics API -func CreateDescribePdnsThreatStatisticsRequest() (request *DescribePdnsThreatStatisticsRequest) { - request = &DescribePdnsThreatStatisticsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribePdnsThreatStatistics", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePdnsThreatStatisticsResponse creates a response to parse from DescribePdnsThreatStatistics response -func CreateDescribePdnsThreatStatisticsResponse() (response *DescribePdnsThreatStatisticsResponse) { - response = &DescribePdnsThreatStatisticsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_udp_ip_segments.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_udp_ip_segments.go deleted file mode 100644 index 25edef657..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_udp_ip_segments.go +++ /dev/null @@ -1,105 +0,0 @@ -package alidns - -//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" -) - -// DescribePdnsUdpIpSegments invokes the alidns.DescribePdnsUdpIpSegments API synchronously -func (client *Client) DescribePdnsUdpIpSegments(request *DescribePdnsUdpIpSegmentsRequest) (response *DescribePdnsUdpIpSegmentsResponse, err error) { - response = CreateDescribePdnsUdpIpSegmentsResponse() - err = client.DoAction(request, response) - return -} - -// DescribePdnsUdpIpSegmentsWithChan invokes the alidns.DescribePdnsUdpIpSegments API asynchronously -func (client *Client) DescribePdnsUdpIpSegmentsWithChan(request *DescribePdnsUdpIpSegmentsRequest) (<-chan *DescribePdnsUdpIpSegmentsResponse, <-chan error) { - responseChan := make(chan *DescribePdnsUdpIpSegmentsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePdnsUdpIpSegments(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePdnsUdpIpSegmentsWithCallback invokes the alidns.DescribePdnsUdpIpSegments API asynchronously -func (client *Client) DescribePdnsUdpIpSegmentsWithCallback(request *DescribePdnsUdpIpSegmentsRequest, callback func(response *DescribePdnsUdpIpSegmentsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePdnsUdpIpSegmentsResponse - var err error - defer close(result) - response, err = client.DescribePdnsUdpIpSegments(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePdnsUdpIpSegmentsRequest is the request struct for api DescribePdnsUdpIpSegments -type DescribePdnsUdpIpSegmentsRequest struct { - *requests.RpcRequest - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribePdnsUdpIpSegmentsResponse is the response struct for api DescribePdnsUdpIpSegments -type DescribePdnsUdpIpSegmentsResponse struct { - *responses.BaseResponse - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - IpSegments []IpSegment `json:"IpSegments" xml:"IpSegments"` -} - -// CreateDescribePdnsUdpIpSegmentsRequest creates a request to invoke DescribePdnsUdpIpSegments API -func CreateDescribePdnsUdpIpSegmentsRequest() (request *DescribePdnsUdpIpSegmentsRequest) { - request = &DescribePdnsUdpIpSegmentsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribePdnsUdpIpSegments", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePdnsUdpIpSegmentsResponse creates a response to parse from DescribePdnsUdpIpSegments response -func CreateDescribePdnsUdpIpSegmentsResponse() (response *DescribePdnsUdpIpSegmentsResponse) { - response = &DescribePdnsUdpIpSegmentsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_user_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_user_info.go deleted file mode 100644 index 87f32cae8..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_pdns_user_info.go +++ /dev/null @@ -1,100 +0,0 @@ -package alidns - -//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" -) - -// DescribePdnsUserInfo invokes the alidns.DescribePdnsUserInfo API synchronously -func (client *Client) DescribePdnsUserInfo(request *DescribePdnsUserInfoRequest) (response *DescribePdnsUserInfoResponse, err error) { - response = CreateDescribePdnsUserInfoResponse() - err = client.DoAction(request, response) - return -} - -// DescribePdnsUserInfoWithChan invokes the alidns.DescribePdnsUserInfo API asynchronously -func (client *Client) DescribePdnsUserInfoWithChan(request *DescribePdnsUserInfoRequest) (<-chan *DescribePdnsUserInfoResponse, <-chan error) { - responseChan := make(chan *DescribePdnsUserInfoResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribePdnsUserInfo(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribePdnsUserInfoWithCallback invokes the alidns.DescribePdnsUserInfo API asynchronously -func (client *Client) DescribePdnsUserInfoWithCallback(request *DescribePdnsUserInfoRequest, callback func(response *DescribePdnsUserInfoResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribePdnsUserInfoResponse - var err error - defer close(result) - response, err = client.DescribePdnsUserInfo(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribePdnsUserInfoRequest is the request struct for api DescribePdnsUserInfo -type DescribePdnsUserInfoRequest struct { - *requests.RpcRequest - Lang string `position:"Query" name:"Lang"` -} - -// DescribePdnsUserInfoResponse is the response struct for api DescribePdnsUserInfo -type DescribePdnsUserInfoResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - UserInfo UserInfo `json:"UserInfo" xml:"UserInfo"` -} - -// CreateDescribePdnsUserInfoRequest creates a request to invoke DescribePdnsUserInfo API -func CreateDescribePdnsUserInfoRequest() (request *DescribePdnsUserInfoRequest) { - request = &DescribePdnsUserInfoRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribePdnsUserInfo", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribePdnsUserInfoResponse creates a response to parse from DescribePdnsUserInfo response -func CreateDescribePdnsUserInfoResponse() (response *DescribePdnsUserInfoResponse) { - response = &DescribePdnsUserInfoResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_logs.go deleted file mode 100644 index 645af44d3..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_logs.go +++ /dev/null @@ -1,110 +0,0 @@ -package alidns - -//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" -) - -// DescribeRecordLogs invokes the alidns.DescribeRecordLogs API synchronously -func (client *Client) DescribeRecordLogs(request *DescribeRecordLogsRequest) (response *DescribeRecordLogsResponse, err error) { - response = CreateDescribeRecordLogsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeRecordLogsWithChan invokes the alidns.DescribeRecordLogs API asynchronously -func (client *Client) DescribeRecordLogsWithChan(request *DescribeRecordLogsRequest) (<-chan *DescribeRecordLogsResponse, <-chan error) { - responseChan := make(chan *DescribeRecordLogsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeRecordLogs(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeRecordLogsWithCallback invokes the alidns.DescribeRecordLogs API asynchronously -func (client *Client) DescribeRecordLogsWithCallback(request *DescribeRecordLogsRequest, callback func(response *DescribeRecordLogsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeRecordLogsResponse - var err error - defer close(result) - response, err = client.DescribeRecordLogs(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeRecordLogsRequest is the request struct for api DescribeRecordLogs -type DescribeRecordLogsRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - StartDate string `position:"Query" name:"StartDate"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - EndDate string `position:"Query" name:"endDate"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - KeyWord string `position:"Query" name:"KeyWord"` -} - -// DescribeRecordLogsResponse is the response struct for api DescribeRecordLogs -type DescribeRecordLogsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - RecordLogs RecordLogs `json:"RecordLogs" xml:"RecordLogs"` -} - -// CreateDescribeRecordLogsRequest creates a request to invoke DescribeRecordLogs API -func CreateDescribeRecordLogsRequest() (request *DescribeRecordLogsRequest) { - request = &DescribeRecordLogsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeRecordLogs", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeRecordLogsResponse creates a response to parse from DescribeRecordLogs response -func CreateDescribeRecordLogsResponse() (response *DescribeRecordLogsResponse) { - response = &DescribeRecordLogsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_statistics.go deleted file mode 100644 index 242dac345..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_statistics.go +++ /dev/null @@ -1,106 +0,0 @@ -package alidns - -//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" -) - -// DescribeRecordStatistics invokes the alidns.DescribeRecordStatistics API synchronously -func (client *Client) DescribeRecordStatistics(request *DescribeRecordStatisticsRequest) (response *DescribeRecordStatisticsResponse, err error) { - response = CreateDescribeRecordStatisticsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeRecordStatisticsWithChan invokes the alidns.DescribeRecordStatistics API asynchronously -func (client *Client) DescribeRecordStatisticsWithChan(request *DescribeRecordStatisticsRequest) (<-chan *DescribeRecordStatisticsResponse, <-chan error) { - responseChan := make(chan *DescribeRecordStatisticsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeRecordStatistics(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeRecordStatisticsWithCallback invokes the alidns.DescribeRecordStatistics API asynchronously -func (client *Client) DescribeRecordStatisticsWithCallback(request *DescribeRecordStatisticsRequest, callback func(response *DescribeRecordStatisticsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeRecordStatisticsResponse - var err error - defer close(result) - response, err = client.DescribeRecordStatistics(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeRecordStatisticsRequest is the request struct for api DescribeRecordStatistics -type DescribeRecordStatisticsRequest struct { - *requests.RpcRequest - Rr string `position:"Query" name:"Rr"` - DomainName string `position:"Query" name:"DomainName"` - StartDate string `position:"Query" name:"StartDate"` - EndDate string `position:"Query" name:"EndDate"` - DomainType string `position:"Query" name:"DomainType"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeRecordStatisticsResponse is the response struct for api DescribeRecordStatistics -type DescribeRecordStatisticsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Statistics StatisticsInDescribeRecordStatistics `json:"Statistics" xml:"Statistics"` -} - -// CreateDescribeRecordStatisticsRequest creates a request to invoke DescribeRecordStatistics API -func CreateDescribeRecordStatisticsRequest() (request *DescribeRecordStatisticsRequest) { - request = &DescribeRecordStatisticsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeRecordStatistics", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeRecordStatisticsResponse creates a response to parse from DescribeRecordStatistics response -func CreateDescribeRecordStatisticsResponse() (response *DescribeRecordStatisticsResponse) { - response = &DescribeRecordStatisticsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_statistics_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_statistics_summary.go deleted file mode 100644 index 9fad18fcc..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_record_statistics_summary.go +++ /dev/null @@ -1,116 +0,0 @@ -package alidns - -//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" -) - -// DescribeRecordStatisticsSummary invokes the alidns.DescribeRecordStatisticsSummary API synchronously -func (client *Client) DescribeRecordStatisticsSummary(request *DescribeRecordStatisticsSummaryRequest) (response *DescribeRecordStatisticsSummaryResponse, err error) { - response = CreateDescribeRecordStatisticsSummaryResponse() - err = client.DoAction(request, response) - return -} - -// DescribeRecordStatisticsSummaryWithChan invokes the alidns.DescribeRecordStatisticsSummary API asynchronously -func (client *Client) DescribeRecordStatisticsSummaryWithChan(request *DescribeRecordStatisticsSummaryRequest) (<-chan *DescribeRecordStatisticsSummaryResponse, <-chan error) { - responseChan := make(chan *DescribeRecordStatisticsSummaryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeRecordStatisticsSummary(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeRecordStatisticsSummaryWithCallback invokes the alidns.DescribeRecordStatisticsSummary API asynchronously -func (client *Client) DescribeRecordStatisticsSummaryWithCallback(request *DescribeRecordStatisticsSummaryRequest, callback func(response *DescribeRecordStatisticsSummaryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeRecordStatisticsSummaryResponse - var err error - defer close(result) - response, err = client.DescribeRecordStatisticsSummary(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeRecordStatisticsSummaryRequest is the request struct for api DescribeRecordStatisticsSummary -type DescribeRecordStatisticsSummaryRequest struct { - *requests.RpcRequest - Threshold requests.Integer `position:"Query" name:"Threshold"` - StartDate string `position:"Query" name:"StartDate"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - DomainType string `position:"Query" name:"DomainType"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - Keyword string `position:"Query" name:"Keyword"` - Direction string `position:"Query" name:"Direction"` - DomainName string `position:"Query" name:"DomainName"` - OrderBy string `position:"Query" name:"OrderBy"` - EndDate string `position:"Query" name:"EndDate"` - UserClientIp string `position:"Query" name:"UserClientIp"` - SearchMode string `position:"Query" name:"SearchMode"` -} - -// DescribeRecordStatisticsSummaryResponse is the response struct for api DescribeRecordStatisticsSummary -type DescribeRecordStatisticsSummaryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - Statistics StatisticsInDescribeRecordStatisticsSummary `json:"Statistics" xml:"Statistics"` -} - -// CreateDescribeRecordStatisticsSummaryRequest creates a request to invoke DescribeRecordStatisticsSummary API -func CreateDescribeRecordStatisticsSummaryRequest() (request *DescribeRecordStatisticsSummaryRequest) { - request = &DescribeRecordStatisticsSummaryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeRecordStatisticsSummary", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeRecordStatisticsSummaryResponse creates a response to parse from DescribeRecordStatisticsSummary response -func CreateDescribeRecordStatisticsSummaryResponse() (response *DescribeRecordStatisticsSummaryResponse) { - response = &DescribeRecordStatisticsSummaryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_sub_domain_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_sub_domain_records.go deleted file mode 100644 index 50f03069b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_sub_domain_records.go +++ /dev/null @@ -1,110 +0,0 @@ -package alidns - -//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" -) - -// DescribeSubDomainRecords invokes the alidns.DescribeSubDomainRecords API synchronously -func (client *Client) DescribeSubDomainRecords(request *DescribeSubDomainRecordsRequest) (response *DescribeSubDomainRecordsResponse, err error) { - response = CreateDescribeSubDomainRecordsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSubDomainRecordsWithChan invokes the alidns.DescribeSubDomainRecords API asynchronously -func (client *Client) DescribeSubDomainRecordsWithChan(request *DescribeSubDomainRecordsRequest) (<-chan *DescribeSubDomainRecordsResponse, <-chan error) { - responseChan := make(chan *DescribeSubDomainRecordsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSubDomainRecords(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSubDomainRecordsWithCallback invokes the alidns.DescribeSubDomainRecords API asynchronously -func (client *Client) DescribeSubDomainRecordsWithCallback(request *DescribeSubDomainRecordsRequest, callback func(response *DescribeSubDomainRecordsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSubDomainRecordsResponse - var err error - defer close(result) - response, err = client.DescribeSubDomainRecords(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSubDomainRecordsRequest is the request struct for api DescribeSubDomainRecords -type DescribeSubDomainRecordsRequest struct { - *requests.RpcRequest - Line string `position:"Query" name:"Line"` - DomainName string `position:"Query" name:"DomainName"` - Type string `position:"Query" name:"Type"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - SubDomain string `position:"Query" name:"SubDomain"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeSubDomainRecordsResponse is the response struct for api DescribeSubDomainRecords -type DescribeSubDomainRecordsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - DomainRecords DomainRecordsInDescribeSubDomainRecords `json:"DomainRecords" xml:"DomainRecords"` -} - -// CreateDescribeSubDomainRecordsRequest creates a request to invoke DescribeSubDomainRecords API -func CreateDescribeSubDomainRecordsRequest() (request *DescribeSubDomainRecordsRequest) { - request = &DescribeSubDomainRecordsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeSubDomainRecords", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSubDomainRecordsResponse creates a response to parse from DescribeSubDomainRecords response -func CreateDescribeSubDomainRecordsResponse() (response *DescribeSubDomainRecordsResponse) { - response = &DescribeSubDomainRecordsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_support_lines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_support_lines.go deleted file mode 100644 index 1a5779b01..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_support_lines.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// DescribeSupportLines invokes the alidns.DescribeSupportLines API synchronously -func (client *Client) DescribeSupportLines(request *DescribeSupportLinesRequest) (response *DescribeSupportLinesResponse, err error) { - response = CreateDescribeSupportLinesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeSupportLinesWithChan invokes the alidns.DescribeSupportLines API asynchronously -func (client *Client) DescribeSupportLinesWithChan(request *DescribeSupportLinesRequest) (<-chan *DescribeSupportLinesResponse, <-chan error) { - responseChan := make(chan *DescribeSupportLinesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeSupportLines(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeSupportLinesWithCallback invokes the alidns.DescribeSupportLines API asynchronously -func (client *Client) DescribeSupportLinesWithCallback(request *DescribeSupportLinesRequest, callback func(response *DescribeSupportLinesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeSupportLinesResponse - var err error - defer close(result) - response, err = client.DescribeSupportLines(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeSupportLinesRequest is the request struct for api DescribeSupportLines -type DescribeSupportLinesRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeSupportLinesResponse is the response struct for api DescribeSupportLines -type DescribeSupportLinesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecordLines RecordLinesInDescribeSupportLines `json:"RecordLines" xml:"RecordLines"` -} - -// CreateDescribeSupportLinesRequest creates a request to invoke DescribeSupportLines API -func CreateDescribeSupportLinesRequest() (request *DescribeSupportLinesRequest) { - request = &DescribeSupportLinesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeSupportLines", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeSupportLinesResponse creates a response to parse from DescribeSupportLines response -func CreateDescribeSupportLinesResponse() (response *DescribeSupportLinesResponse) { - response = &DescribeSupportLinesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_tags.go deleted file mode 100644 index dc1ba5e5e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_tags.go +++ /dev/null @@ -1,107 +0,0 @@ -package alidns - -//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" -) - -// DescribeTags invokes the alidns.DescribeTags API synchronously -func (client *Client) DescribeTags(request *DescribeTagsRequest) (response *DescribeTagsResponse, err error) { - response = CreateDescribeTagsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeTagsWithChan invokes the alidns.DescribeTags API asynchronously -func (client *Client) DescribeTagsWithChan(request *DescribeTagsRequest) (<-chan *DescribeTagsResponse, <-chan error) { - responseChan := make(chan *DescribeTagsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeTags(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeTagsWithCallback invokes the alidns.DescribeTags API asynchronously -func (client *Client) DescribeTagsWithCallback(request *DescribeTagsRequest, callback func(response *DescribeTagsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeTagsResponse - var err error - defer close(result) - response, err = client.DescribeTags(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeTagsRequest is the request struct for api DescribeTags -type DescribeTagsRequest struct { - *requests.RpcRequest - ResourceType string `position:"Query" name:"ResourceType"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeTagsResponse is the response struct for api DescribeTags -type DescribeTagsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - Tags []Tag `json:"Tags" xml:"Tags"` -} - -// CreateDescribeTagsRequest creates a request to invoke DescribeTags API -func CreateDescribeTagsRequest() (request *DescribeTagsRequest) { - request = &DescribeTagsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeTags", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeTagsResponse creates a response to parse from DescribeTags response -func CreateDescribeTagsResponse() (response *DescribeTagsResponse) { - response = &DescribeTagsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_transfer_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_transfer_domains.go deleted file mode 100644 index f0f5fe581..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/describe_transfer_domains.go +++ /dev/null @@ -1,110 +0,0 @@ -package alidns - -//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" -) - -// DescribeTransferDomains invokes the alidns.DescribeTransferDomains API synchronously -func (client *Client) DescribeTransferDomains(request *DescribeTransferDomainsRequest) (response *DescribeTransferDomainsResponse, err error) { - response = CreateDescribeTransferDomainsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeTransferDomainsWithChan invokes the alidns.DescribeTransferDomains API asynchronously -func (client *Client) DescribeTransferDomainsWithChan(request *DescribeTransferDomainsRequest) (<-chan *DescribeTransferDomainsResponse, <-chan error) { - responseChan := make(chan *DescribeTransferDomainsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeTransferDomains(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeTransferDomainsWithCallback invokes the alidns.DescribeTransferDomains API asynchronously -func (client *Client) DescribeTransferDomainsWithCallback(request *DescribeTransferDomainsRequest, callback func(response *DescribeTransferDomainsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeTransferDomainsResponse - var err error - defer close(result) - response, err = client.DescribeTransferDomains(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeTransferDomainsRequest is the request struct for api DescribeTransferDomains -type DescribeTransferDomainsRequest struct { - *requests.RpcRequest - FromUserId requests.Integer `position:"Query" name:"FromUserId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - TargetUserId requests.Integer `position:"Query" name:"TargetUserId"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` - DomainName string `position:"Query" name:"DomainName"` - TransferType string `position:"Query" name:"TransferType"` - UserClientIp string `position:"Query" name:"UserClientIp"` -} - -// DescribeTransferDomainsResponse is the response struct for api DescribeTransferDomains -type DescribeTransferDomainsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - DomainTransfers DomainTransfers `json:"DomainTransfers" xml:"DomainTransfers"` -} - -// CreateDescribeTransferDomainsRequest creates a request to invoke DescribeTransferDomains API -func CreateDescribeTransferDomainsRequest() (request *DescribeTransferDomainsRequest) { - request = &DescribeTransferDomainsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "DescribeTransferDomains", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeTransferDomainsResponse creates a response to parse from DescribeTransferDomains response -func CreateDescribeTransferDomainsResponse() (response *DescribeTransferDomainsResponse) { - response = &DescribeTransferDomainsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/endpoint.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/endpoint.go deleted file mode 100644 index f33bd71d9..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/endpoint.go +++ /dev/null @@ -1,20 +0,0 @@ -package alidns - -// EndpointMap Endpoint Data -var EndpointMap map[string]string - -// EndpointType regional or central -var EndpointType = "central" - -// GetEndpointMap Get Endpoint Data Map -func GetEndpointMap() map[string]string { - if EndpointMap == nil { - EndpointMap = map[string]string{} - } - return EndpointMap -} - -// GetEndpointType Get Endpoint Type Value -func GetEndpointType() string { - return EndpointType -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/execute_gtm_recovery_plan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/execute_gtm_recovery_plan.go deleted file mode 100644 index c213601da..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/execute_gtm_recovery_plan.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// ExecuteGtmRecoveryPlan invokes the alidns.ExecuteGtmRecoveryPlan API synchronously -func (client *Client) ExecuteGtmRecoveryPlan(request *ExecuteGtmRecoveryPlanRequest) (response *ExecuteGtmRecoveryPlanResponse, err error) { - response = CreateExecuteGtmRecoveryPlanResponse() - err = client.DoAction(request, response) - return -} - -// ExecuteGtmRecoveryPlanWithChan invokes the alidns.ExecuteGtmRecoveryPlan API asynchronously -func (client *Client) ExecuteGtmRecoveryPlanWithChan(request *ExecuteGtmRecoveryPlanRequest) (<-chan *ExecuteGtmRecoveryPlanResponse, <-chan error) { - responseChan := make(chan *ExecuteGtmRecoveryPlanResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ExecuteGtmRecoveryPlan(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ExecuteGtmRecoveryPlanWithCallback invokes the alidns.ExecuteGtmRecoveryPlan API asynchronously -func (client *Client) ExecuteGtmRecoveryPlanWithCallback(request *ExecuteGtmRecoveryPlanRequest, callback func(response *ExecuteGtmRecoveryPlanResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ExecuteGtmRecoveryPlanResponse - var err error - defer close(result) - response, err = client.ExecuteGtmRecoveryPlan(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ExecuteGtmRecoveryPlanRequest is the request struct for api ExecuteGtmRecoveryPlan -type ExecuteGtmRecoveryPlanRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - RecoveryPlanId requests.Integer `position:"Query" name:"RecoveryPlanId"` - Lang string `position:"Query" name:"Lang"` -} - -// ExecuteGtmRecoveryPlanResponse is the response struct for api ExecuteGtmRecoveryPlan -type ExecuteGtmRecoveryPlanResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateExecuteGtmRecoveryPlanRequest creates a request to invoke ExecuteGtmRecoveryPlan API -func CreateExecuteGtmRecoveryPlanRequest() (request *ExecuteGtmRecoveryPlanRequest) { - request = &ExecuteGtmRecoveryPlanRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "ExecuteGtmRecoveryPlan", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateExecuteGtmRecoveryPlanResponse creates a response to parse from ExecuteGtmRecoveryPlan response -func CreateExecuteGtmRecoveryPlanResponse() (response *ExecuteGtmRecoveryPlanResponse) { - response = &ExecuteGtmRecoveryPlanResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/get_main_domain_name.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/get_main_domain_name.go deleted file mode 100644 index 6aee052b9..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/get_main_domain_name.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// GetMainDomainName invokes the alidns.GetMainDomainName API synchronously -func (client *Client) GetMainDomainName(request *GetMainDomainNameRequest) (response *GetMainDomainNameResponse, err error) { - response = CreateGetMainDomainNameResponse() - err = client.DoAction(request, response) - return -} - -// GetMainDomainNameWithChan invokes the alidns.GetMainDomainName API asynchronously -func (client *Client) GetMainDomainNameWithChan(request *GetMainDomainNameRequest) (<-chan *GetMainDomainNameResponse, <-chan error) { - responseChan := make(chan *GetMainDomainNameResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.GetMainDomainName(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// GetMainDomainNameWithCallback invokes the alidns.GetMainDomainName API asynchronously -func (client *Client) GetMainDomainNameWithCallback(request *GetMainDomainNameRequest, callback func(response *GetMainDomainNameResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *GetMainDomainNameResponse - var err error - defer close(result) - response, err = client.GetMainDomainName(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// GetMainDomainNameRequest is the request struct for api GetMainDomainName -type GetMainDomainNameRequest struct { - *requests.RpcRequest - InputString string `position:"Query" name:"InputString"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// GetMainDomainNameResponse is the response struct for api GetMainDomainName -type GetMainDomainNameResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - DomainName string `json:"DomainName" xml:"DomainName"` - RR string `json:"RR" xml:"RR"` - DomainLevel int64 `json:"DomainLevel" xml:"DomainLevel"` -} - -// CreateGetMainDomainNameRequest creates a request to invoke GetMainDomainName API -func CreateGetMainDomainNameRequest() (request *GetMainDomainNameRequest) { - request = &GetMainDomainNameRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "GetMainDomainName", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateGetMainDomainNameResponse creates a response to parse from GetMainDomainName response -func CreateGetMainDomainNameResponse() (response *GetMainDomainNameResponse) { - response = &GetMainDomainNameResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/get_txt_record_for_verify.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/get_txt_record_for_verify.go deleted file mode 100644 index b905c53bd..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/get_txt_record_for_verify.go +++ /dev/null @@ -1,105 +0,0 @@ -package alidns - -//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" -) - -// GetTxtRecordForVerify invokes the alidns.GetTxtRecordForVerify API synchronously -func (client *Client) GetTxtRecordForVerify(request *GetTxtRecordForVerifyRequest) (response *GetTxtRecordForVerifyResponse, err error) { - response = CreateGetTxtRecordForVerifyResponse() - err = client.DoAction(request, response) - return -} - -// GetTxtRecordForVerifyWithChan invokes the alidns.GetTxtRecordForVerify API asynchronously -func (client *Client) GetTxtRecordForVerifyWithChan(request *GetTxtRecordForVerifyRequest) (<-chan *GetTxtRecordForVerifyResponse, <-chan error) { - responseChan := make(chan *GetTxtRecordForVerifyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.GetTxtRecordForVerify(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// GetTxtRecordForVerifyWithCallback invokes the alidns.GetTxtRecordForVerify API asynchronously -func (client *Client) GetTxtRecordForVerifyWithCallback(request *GetTxtRecordForVerifyRequest, callback func(response *GetTxtRecordForVerifyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *GetTxtRecordForVerifyResponse - var err error - defer close(result) - response, err = client.GetTxtRecordForVerify(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// GetTxtRecordForVerifyRequest is the request struct for api GetTxtRecordForVerify -type GetTxtRecordForVerifyRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - Type string `position:"Query" name:"Type"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// GetTxtRecordForVerifyResponse is the response struct for api GetTxtRecordForVerify -type GetTxtRecordForVerifyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - DomainName string `json:"DomainName" xml:"DomainName"` - RR string `json:"RR" xml:"RR"` - Value string `json:"Value" xml:"Value"` -} - -// CreateGetTxtRecordForVerifyRequest creates a request to invoke GetTxtRecordForVerify API -func CreateGetTxtRecordForVerifyRequest() (request *GetTxtRecordForVerifyRequest) { - request = &GetTxtRecordForVerifyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "GetTxtRecordForVerify", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateGetTxtRecordForVerifyResponse creates a response to parse from GetTxtRecordForVerify response -func CreateGetTxtRecordForVerifyResponse() (response *GetTxtRecordForVerifyResponse) { - response = &GetTxtRecordForVerifyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/list_tag_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/list_tag_resources.go deleted file mode 100644 index d95fe2bec..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/list_tag_resources.go +++ /dev/null @@ -1,113 +0,0 @@ -package alidns - -//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" -) - -// ListTagResources invokes the alidns.ListTagResources API synchronously -func (client *Client) ListTagResources(request *ListTagResourcesRequest) (response *ListTagResourcesResponse, err error) { - response = CreateListTagResourcesResponse() - err = client.DoAction(request, response) - return -} - -// ListTagResourcesWithChan invokes the alidns.ListTagResources API asynchronously -func (client *Client) ListTagResourcesWithChan(request *ListTagResourcesRequest) (<-chan *ListTagResourcesResponse, <-chan error) { - responseChan := make(chan *ListTagResourcesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ListTagResources(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ListTagResourcesWithCallback invokes the alidns.ListTagResources API asynchronously -func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequest, callback func(response *ListTagResourcesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ListTagResourcesResponse - var err error - defer close(result) - response, err = client.ListTagResources(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ListTagResourcesRequest is the request struct for api ListTagResources -type ListTagResourcesRequest struct { - *requests.RpcRequest - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - ResourceType string `position:"Query" name:"ResourceType"` - Size requests.Integer `position:"Query" name:"Size"` - NextToken string `position:"Query" name:"NextToken"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Tag *[]ListTagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` - Lang string `position:"Query" name:"Lang"` -} - -// ListTagResourcesTag is a repeated param struct in ListTagResourcesRequest -type ListTagResourcesTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// ListTagResourcesResponse is the response struct for api ListTagResources -type ListTagResourcesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - NextToken string `json:"NextToken" xml:"NextToken"` - TagResources []TagResource `json:"TagResources" xml:"TagResources"` -} - -// CreateListTagResourcesRequest creates a request to invoke ListTagResources API -func CreateListTagResourcesRequest() (request *ListTagResourcesRequest) { - request = &ListTagResourcesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "ListTagResources", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateListTagResourcesResponse creates a response to parse from ListTagResources response -func CreateListTagResourcesResponse() (response *ListTagResourcesResponse) { - response = &ListTagResourcesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/modify_hichina_domain_dns.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/modify_hichina_domain_dns.go deleted file mode 100644 index 0bc90c237..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/modify_hichina_domain_dns.go +++ /dev/null @@ -1,103 +0,0 @@ -package alidns - -//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" -) - -// ModifyHichinaDomainDNS invokes the alidns.ModifyHichinaDomainDNS API synchronously -func (client *Client) ModifyHichinaDomainDNS(request *ModifyHichinaDomainDNSRequest) (response *ModifyHichinaDomainDNSResponse, err error) { - response = CreateModifyHichinaDomainDNSResponse() - err = client.DoAction(request, response) - return -} - -// ModifyHichinaDomainDNSWithChan invokes the alidns.ModifyHichinaDomainDNS API asynchronously -func (client *Client) ModifyHichinaDomainDNSWithChan(request *ModifyHichinaDomainDNSRequest) (<-chan *ModifyHichinaDomainDNSResponse, <-chan error) { - responseChan := make(chan *ModifyHichinaDomainDNSResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyHichinaDomainDNS(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyHichinaDomainDNSWithCallback invokes the alidns.ModifyHichinaDomainDNS API asynchronously -func (client *Client) ModifyHichinaDomainDNSWithCallback(request *ModifyHichinaDomainDNSRequest, callback func(response *ModifyHichinaDomainDNSResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyHichinaDomainDNSResponse - var err error - defer close(result) - response, err = client.ModifyHichinaDomainDNS(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyHichinaDomainDNSRequest is the request struct for api ModifyHichinaDomainDNS -type ModifyHichinaDomainDNSRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// ModifyHichinaDomainDNSResponse is the response struct for api ModifyHichinaDomainDNS -type ModifyHichinaDomainDNSResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - OriginalDnsServers OriginalDnsServers `json:"OriginalDnsServers" xml:"OriginalDnsServers"` - NewDnsServers NewDnsServers `json:"NewDnsServers" xml:"NewDnsServers"` -} - -// CreateModifyHichinaDomainDNSRequest creates a request to invoke ModifyHichinaDomainDNS API -func CreateModifyHichinaDomainDNSRequest() (request *ModifyHichinaDomainDNSRequest) { - request = &ModifyHichinaDomainDNSRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "ModifyHichinaDomainDNS", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateModifyHichinaDomainDNSResponse creates a response to parse from ModifyHichinaDomainDNS response -func CreateModifyHichinaDomainDNSResponse() (response *ModifyHichinaDomainDNSResponse) { - response = &ModifyHichinaDomainDNSResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/move_domain_resource_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/move_domain_resource_group.go deleted file mode 100644 index f22503ec1..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/move_domain_resource_group.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// MoveDomainResourceGroup invokes the alidns.MoveDomainResourceGroup API synchronously -func (client *Client) MoveDomainResourceGroup(request *MoveDomainResourceGroupRequest) (response *MoveDomainResourceGroupResponse, err error) { - response = CreateMoveDomainResourceGroupResponse() - err = client.DoAction(request, response) - return -} - -// MoveDomainResourceGroupWithChan invokes the alidns.MoveDomainResourceGroup API asynchronously -func (client *Client) MoveDomainResourceGroupWithChan(request *MoveDomainResourceGroupRequest) (<-chan *MoveDomainResourceGroupResponse, <-chan error) { - responseChan := make(chan *MoveDomainResourceGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.MoveDomainResourceGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// MoveDomainResourceGroupWithCallback invokes the alidns.MoveDomainResourceGroup API asynchronously -func (client *Client) MoveDomainResourceGroupWithCallback(request *MoveDomainResourceGroupRequest, callback func(response *MoveDomainResourceGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *MoveDomainResourceGroupResponse - var err error - defer close(result) - response, err = client.MoveDomainResourceGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// MoveDomainResourceGroupRequest is the request struct for api MoveDomainResourceGroup -type MoveDomainResourceGroupRequest struct { - *requests.RpcRequest - ResourceId string `position:"Query" name:"ResourceId"` - NewResourceGroupId string `position:"Query" name:"NewResourceGroupId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// MoveDomainResourceGroupResponse is the response struct for api MoveDomainResourceGroup -type MoveDomainResourceGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateMoveDomainResourceGroupRequest creates a request to invoke MoveDomainResourceGroup API -func CreateMoveDomainResourceGroupRequest() (request *MoveDomainResourceGroupRequest) { - request = &MoveDomainResourceGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "MoveDomainResourceGroup", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateMoveDomainResourceGroupResponse creates a response to parse from MoveDomainResourceGroup response -func CreateMoveDomainResourceGroupResponse() (response *MoveDomainResourceGroupResponse) { - response = &MoveDomainResourceGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/move_gtm_resource_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/move_gtm_resource_group.go deleted file mode 100644 index 8e120bf15..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/move_gtm_resource_group.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// MoveGtmResourceGroup invokes the alidns.MoveGtmResourceGroup API synchronously -func (client *Client) MoveGtmResourceGroup(request *MoveGtmResourceGroupRequest) (response *MoveGtmResourceGroupResponse, err error) { - response = CreateMoveGtmResourceGroupResponse() - err = client.DoAction(request, response) - return -} - -// MoveGtmResourceGroupWithChan invokes the alidns.MoveGtmResourceGroup API asynchronously -func (client *Client) MoveGtmResourceGroupWithChan(request *MoveGtmResourceGroupRequest) (<-chan *MoveGtmResourceGroupResponse, <-chan error) { - responseChan := make(chan *MoveGtmResourceGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.MoveGtmResourceGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// MoveGtmResourceGroupWithCallback invokes the alidns.MoveGtmResourceGroup API asynchronously -func (client *Client) MoveGtmResourceGroupWithCallback(request *MoveGtmResourceGroupRequest, callback func(response *MoveGtmResourceGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *MoveGtmResourceGroupResponse - var err error - defer close(result) - response, err = client.MoveGtmResourceGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// MoveGtmResourceGroupRequest is the request struct for api MoveGtmResourceGroup -type MoveGtmResourceGroupRequest struct { - *requests.RpcRequest - ResourceId string `position:"Query" name:"ResourceId"` - NewResourceGroupId string `position:"Query" name:"NewResourceGroupId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// MoveGtmResourceGroupResponse is the response struct for api MoveGtmResourceGroup -type MoveGtmResourceGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateMoveGtmResourceGroupRequest creates a request to invoke MoveGtmResourceGroup API -func CreateMoveGtmResourceGroupRequest() (request *MoveGtmResourceGroupRequest) { - request = &MoveGtmResourceGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "MoveGtmResourceGroup", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateMoveGtmResourceGroupResponse creates a response to parse from MoveGtmResourceGroup response -func CreateMoveGtmResourceGroupResponse() (response *MoveGtmResourceGroupResponse) { - response = &MoveGtmResourceGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/operate_batch_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/operate_batch_domain.go deleted file mode 100644 index 42cc0c336..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/operate_batch_domain.go +++ /dev/null @@ -1,117 +0,0 @@ -package alidns - -//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" -) - -// OperateBatchDomain invokes the alidns.OperateBatchDomain API synchronously -func (client *Client) OperateBatchDomain(request *OperateBatchDomainRequest) (response *OperateBatchDomainResponse, err error) { - response = CreateOperateBatchDomainResponse() - err = client.DoAction(request, response) - return -} - -// OperateBatchDomainWithChan invokes the alidns.OperateBatchDomain API asynchronously -func (client *Client) OperateBatchDomainWithChan(request *OperateBatchDomainRequest) (<-chan *OperateBatchDomainResponse, <-chan error) { - responseChan := make(chan *OperateBatchDomainResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.OperateBatchDomain(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// OperateBatchDomainWithCallback invokes the alidns.OperateBatchDomain API asynchronously -func (client *Client) OperateBatchDomainWithCallback(request *OperateBatchDomainRequest, callback func(response *OperateBatchDomainResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *OperateBatchDomainResponse - var err error - defer close(result) - response, err = client.OperateBatchDomain(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// OperateBatchDomainRequest is the request struct for api OperateBatchDomain -type OperateBatchDomainRequest struct { - *requests.RpcRequest - DomainRecordInfo *[]OperateBatchDomainDomainRecordInfo `position:"Query" name:"DomainRecordInfo" type:"Repeated"` - Type string `position:"Query" name:"Type"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// OperateBatchDomainDomainRecordInfo is a repeated param struct in OperateBatchDomainRequest -type OperateBatchDomainDomainRecordInfo struct { - Rr string `name:"Rr"` - NewType string `name:"NewType"` - NewValue string `name:"NewValue"` - Line string `name:"Line"` - Domain string `name:"Domain"` - Type string `name:"Type"` - Priority string `name:"Priority"` - Value string `name:"Value"` - Ttl string `name:"Ttl"` - NewRr string `name:"NewRr"` -} - -// OperateBatchDomainResponse is the response struct for api OperateBatchDomain -type OperateBatchDomainResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TaskId int64 `json:"TaskId" xml:"TaskId"` -} - -// CreateOperateBatchDomainRequest creates a request to invoke OperateBatchDomain API -func CreateOperateBatchDomainRequest() (request *OperateBatchDomainRequest) { - request = &OperateBatchDomainRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "OperateBatchDomain", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateOperateBatchDomainResponse creates a response to parse from OperateBatchDomain response -func CreateOperateBatchDomainResponse() (response *OperateBatchDomainResponse) { - response = &OperateBatchDomainResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/pause_pdns_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/pause_pdns_service.go deleted file mode 100644 index 2d85f4dba..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/pause_pdns_service.go +++ /dev/null @@ -1,100 +0,0 @@ -package alidns - -//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" -) - -// PausePdnsService invokes the alidns.PausePdnsService API synchronously -func (client *Client) PausePdnsService(request *PausePdnsServiceRequest) (response *PausePdnsServiceResponse, err error) { - response = CreatePausePdnsServiceResponse() - err = client.DoAction(request, response) - return -} - -// PausePdnsServiceWithChan invokes the alidns.PausePdnsService API asynchronously -func (client *Client) PausePdnsServiceWithChan(request *PausePdnsServiceRequest) (<-chan *PausePdnsServiceResponse, <-chan error) { - responseChan := make(chan *PausePdnsServiceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.PausePdnsService(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// PausePdnsServiceWithCallback invokes the alidns.PausePdnsService API asynchronously -func (client *Client) PausePdnsServiceWithCallback(request *PausePdnsServiceRequest, callback func(response *PausePdnsServiceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *PausePdnsServiceResponse - var err error - defer close(result) - response, err = client.PausePdnsService(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// PausePdnsServiceRequest is the request struct for api PausePdnsService -type PausePdnsServiceRequest struct { - *requests.RpcRequest - ServiceType string `position:"Query" name:"ServiceType"` - Lang string `position:"Query" name:"Lang"` -} - -// PausePdnsServiceResponse is the response struct for api PausePdnsService -type PausePdnsServiceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreatePausePdnsServiceRequest creates a request to invoke PausePdnsService API -func CreatePausePdnsServiceRequest() (request *PausePdnsServiceRequest) { - request = &PausePdnsServiceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "PausePdnsService", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreatePausePdnsServiceResponse creates a response to parse from PausePdnsService response -func CreatePausePdnsServiceResponse() (response *PausePdnsServiceResponse) { - response = &PausePdnsServiceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/preview_gtm_recovery_plan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/preview_gtm_recovery_plan.go deleted file mode 100644 index cdf03ee72..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/preview_gtm_recovery_plan.go +++ /dev/null @@ -1,108 +0,0 @@ -package alidns - -//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" -) - -// PreviewGtmRecoveryPlan invokes the alidns.PreviewGtmRecoveryPlan API synchronously -func (client *Client) PreviewGtmRecoveryPlan(request *PreviewGtmRecoveryPlanRequest) (response *PreviewGtmRecoveryPlanResponse, err error) { - response = CreatePreviewGtmRecoveryPlanResponse() - err = client.DoAction(request, response) - return -} - -// PreviewGtmRecoveryPlanWithChan invokes the alidns.PreviewGtmRecoveryPlan API asynchronously -func (client *Client) PreviewGtmRecoveryPlanWithChan(request *PreviewGtmRecoveryPlanRequest) (<-chan *PreviewGtmRecoveryPlanResponse, <-chan error) { - responseChan := make(chan *PreviewGtmRecoveryPlanResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.PreviewGtmRecoveryPlan(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// PreviewGtmRecoveryPlanWithCallback invokes the alidns.PreviewGtmRecoveryPlan API asynchronously -func (client *Client) PreviewGtmRecoveryPlanWithCallback(request *PreviewGtmRecoveryPlanRequest, callback func(response *PreviewGtmRecoveryPlanResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *PreviewGtmRecoveryPlanResponse - var err error - defer close(result) - response, err = client.PreviewGtmRecoveryPlan(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// PreviewGtmRecoveryPlanRequest is the request struct for api PreviewGtmRecoveryPlan -type PreviewGtmRecoveryPlanRequest struct { - *requests.RpcRequest - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - RecoveryPlanId requests.Integer `position:"Query" name:"RecoveryPlanId"` - Lang string `position:"Query" name:"Lang"` -} - -// PreviewGtmRecoveryPlanResponse is the response struct for api PreviewGtmRecoveryPlan -type PreviewGtmRecoveryPlanResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - Previews Previews `json:"Previews" xml:"Previews"` -} - -// CreatePreviewGtmRecoveryPlanRequest creates a request to invoke PreviewGtmRecoveryPlan API -func CreatePreviewGtmRecoveryPlanRequest() (request *PreviewGtmRecoveryPlanRequest) { - request = &PreviewGtmRecoveryPlanRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "PreviewGtmRecoveryPlan", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreatePreviewGtmRecoveryPlanResponse creates a response to parse from PreviewGtmRecoveryPlan response -func CreatePreviewGtmRecoveryPlanResponse() (response *PreviewGtmRecoveryPlanResponse) { - response = &PreviewGtmRecoveryPlanResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/remove_pdns_app_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/remove_pdns_app_key.go deleted file mode 100644 index 446b73be4..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/remove_pdns_app_key.go +++ /dev/null @@ -1,100 +0,0 @@ -package alidns - -//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" -) - -// RemovePdnsAppKey invokes the alidns.RemovePdnsAppKey API synchronously -func (client *Client) RemovePdnsAppKey(request *RemovePdnsAppKeyRequest) (response *RemovePdnsAppKeyResponse, err error) { - response = CreateRemovePdnsAppKeyResponse() - err = client.DoAction(request, response) - return -} - -// RemovePdnsAppKeyWithChan invokes the alidns.RemovePdnsAppKey API asynchronously -func (client *Client) RemovePdnsAppKeyWithChan(request *RemovePdnsAppKeyRequest) (<-chan *RemovePdnsAppKeyResponse, <-chan error) { - responseChan := make(chan *RemovePdnsAppKeyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RemovePdnsAppKey(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RemovePdnsAppKeyWithCallback invokes the alidns.RemovePdnsAppKey API asynchronously -func (client *Client) RemovePdnsAppKeyWithCallback(request *RemovePdnsAppKeyRequest, callback func(response *RemovePdnsAppKeyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RemovePdnsAppKeyResponse - var err error - defer close(result) - response, err = client.RemovePdnsAppKey(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RemovePdnsAppKeyRequest is the request struct for api RemovePdnsAppKey -type RemovePdnsAppKeyRequest struct { - *requests.RpcRequest - AppKeyId string `position:"Query" name:"AppKeyId"` - Lang string `position:"Query" name:"Lang"` -} - -// RemovePdnsAppKeyResponse is the response struct for api RemovePdnsAppKey -type RemovePdnsAppKeyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRemovePdnsAppKeyRequest creates a request to invoke RemovePdnsAppKey API -func CreateRemovePdnsAppKeyRequest() (request *RemovePdnsAppKeyRequest) { - request = &RemovePdnsAppKeyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "RemovePdnsAppKey", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateRemovePdnsAppKeyResponse creates a response to parse from RemovePdnsAppKey response -func CreateRemovePdnsAppKeyResponse() (response *RemovePdnsAppKeyResponse) { - response = &RemovePdnsAppKeyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/remove_pdns_udp_ip_segment.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/remove_pdns_udp_ip_segment.go deleted file mode 100644 index 70dcafd22..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/remove_pdns_udp_ip_segment.go +++ /dev/null @@ -1,100 +0,0 @@ -package alidns - -//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" -) - -// RemovePdnsUdpIpSegment invokes the alidns.RemovePdnsUdpIpSegment API synchronously -func (client *Client) RemovePdnsUdpIpSegment(request *RemovePdnsUdpIpSegmentRequest) (response *RemovePdnsUdpIpSegmentResponse, err error) { - response = CreateRemovePdnsUdpIpSegmentResponse() - err = client.DoAction(request, response) - return -} - -// RemovePdnsUdpIpSegmentWithChan invokes the alidns.RemovePdnsUdpIpSegment API asynchronously -func (client *Client) RemovePdnsUdpIpSegmentWithChan(request *RemovePdnsUdpIpSegmentRequest) (<-chan *RemovePdnsUdpIpSegmentResponse, <-chan error) { - responseChan := make(chan *RemovePdnsUdpIpSegmentResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RemovePdnsUdpIpSegment(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RemovePdnsUdpIpSegmentWithCallback invokes the alidns.RemovePdnsUdpIpSegment API asynchronously -func (client *Client) RemovePdnsUdpIpSegmentWithCallback(request *RemovePdnsUdpIpSegmentRequest, callback func(response *RemovePdnsUdpIpSegmentResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RemovePdnsUdpIpSegmentResponse - var err error - defer close(result) - response, err = client.RemovePdnsUdpIpSegment(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RemovePdnsUdpIpSegmentRequest is the request struct for api RemovePdnsUdpIpSegment -type RemovePdnsUdpIpSegmentRequest struct { - *requests.RpcRequest - Ip string `position:"Query" name:"Ip"` - Lang string `position:"Query" name:"Lang"` -} - -// RemovePdnsUdpIpSegmentResponse is the response struct for api RemovePdnsUdpIpSegment -type RemovePdnsUdpIpSegmentResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRemovePdnsUdpIpSegmentRequest creates a request to invoke RemovePdnsUdpIpSegment API -func CreateRemovePdnsUdpIpSegmentRequest() (request *RemovePdnsUdpIpSegmentRequest) { - request = &RemovePdnsUdpIpSegmentRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "RemovePdnsUdpIpSegment", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateRemovePdnsUdpIpSegmentResponse creates a response to parse from RemovePdnsUdpIpSegment response -func CreateRemovePdnsUdpIpSegmentResponse() (response *RemovePdnsUdpIpSegmentResponse) { - response = &RemovePdnsUdpIpSegmentResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/resume_pdns_service.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/resume_pdns_service.go deleted file mode 100644 index 5f36ec74e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/resume_pdns_service.go +++ /dev/null @@ -1,100 +0,0 @@ -package alidns - -//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" -) - -// ResumePdnsService invokes the alidns.ResumePdnsService API synchronously -func (client *Client) ResumePdnsService(request *ResumePdnsServiceRequest) (response *ResumePdnsServiceResponse, err error) { - response = CreateResumePdnsServiceResponse() - err = client.DoAction(request, response) - return -} - -// ResumePdnsServiceWithChan invokes the alidns.ResumePdnsService API asynchronously -func (client *Client) ResumePdnsServiceWithChan(request *ResumePdnsServiceRequest) (<-chan *ResumePdnsServiceResponse, <-chan error) { - responseChan := make(chan *ResumePdnsServiceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ResumePdnsService(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ResumePdnsServiceWithCallback invokes the alidns.ResumePdnsService API asynchronously -func (client *Client) ResumePdnsServiceWithCallback(request *ResumePdnsServiceRequest, callback func(response *ResumePdnsServiceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ResumePdnsServiceResponse - var err error - defer close(result) - response, err = client.ResumePdnsService(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ResumePdnsServiceRequest is the request struct for api ResumePdnsService -type ResumePdnsServiceRequest struct { - *requests.RpcRequest - ServiceType string `position:"Query" name:"ServiceType"` - Lang string `position:"Query" name:"Lang"` -} - -// ResumePdnsServiceResponse is the response struct for api ResumePdnsService -type ResumePdnsServiceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateResumePdnsServiceRequest creates a request to invoke ResumePdnsService API -func CreateResumePdnsServiceRequest() (request *ResumePdnsServiceRequest) { - request = &ResumePdnsServiceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "ResumePdnsService", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateResumePdnsServiceResponse creates a response to parse from ResumePdnsService response -func CreateResumePdnsServiceResponse() (response *ResumePdnsServiceResponse) { - response = &ResumePdnsServiceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/retrieve_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/retrieve_domain.go deleted file mode 100644 index 7d126a5ac..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/retrieve_domain.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// RetrieveDomain invokes the alidns.RetrieveDomain API synchronously -func (client *Client) RetrieveDomain(request *RetrieveDomainRequest) (response *RetrieveDomainResponse, err error) { - response = CreateRetrieveDomainResponse() - err = client.DoAction(request, response) - return -} - -// RetrieveDomainWithChan invokes the alidns.RetrieveDomain API asynchronously -func (client *Client) RetrieveDomainWithChan(request *RetrieveDomainRequest) (<-chan *RetrieveDomainResponse, <-chan error) { - responseChan := make(chan *RetrieveDomainResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RetrieveDomain(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RetrieveDomainWithCallback invokes the alidns.RetrieveDomain API asynchronously -func (client *Client) RetrieveDomainWithCallback(request *RetrieveDomainRequest, callback func(response *RetrieveDomainResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RetrieveDomainResponse - var err error - defer close(result) - response, err = client.RetrieveDomain(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RetrieveDomainRequest is the request struct for api RetrieveDomain -type RetrieveDomainRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// RetrieveDomainResponse is the response struct for api RetrieveDomain -type RetrieveDomainResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRetrieveDomainRequest creates a request to invoke RetrieveDomain API -func CreateRetrieveDomainRequest() (request *RetrieveDomainRequest) { - request = &RetrieveDomainRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "RetrieveDomain", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateRetrieveDomainResponse creates a response to parse from RetrieveDomain response -func CreateRetrieveDomainResponse() (response *RetrieveDomainResponse) { - response = &RetrieveDomainResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/rollback_gtm_recovery_plan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/rollback_gtm_recovery_plan.go deleted file mode 100644 index de412cbba..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/rollback_gtm_recovery_plan.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// RollbackGtmRecoveryPlan invokes the alidns.RollbackGtmRecoveryPlan API synchronously -func (client *Client) RollbackGtmRecoveryPlan(request *RollbackGtmRecoveryPlanRequest) (response *RollbackGtmRecoveryPlanResponse, err error) { - response = CreateRollbackGtmRecoveryPlanResponse() - err = client.DoAction(request, response) - return -} - -// RollbackGtmRecoveryPlanWithChan invokes the alidns.RollbackGtmRecoveryPlan API asynchronously -func (client *Client) RollbackGtmRecoveryPlanWithChan(request *RollbackGtmRecoveryPlanRequest) (<-chan *RollbackGtmRecoveryPlanResponse, <-chan error) { - responseChan := make(chan *RollbackGtmRecoveryPlanResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RollbackGtmRecoveryPlan(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RollbackGtmRecoveryPlanWithCallback invokes the alidns.RollbackGtmRecoveryPlan API asynchronously -func (client *Client) RollbackGtmRecoveryPlanWithCallback(request *RollbackGtmRecoveryPlanRequest, callback func(response *RollbackGtmRecoveryPlanResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RollbackGtmRecoveryPlanResponse - var err error - defer close(result) - response, err = client.RollbackGtmRecoveryPlan(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RollbackGtmRecoveryPlanRequest is the request struct for api RollbackGtmRecoveryPlan -type RollbackGtmRecoveryPlanRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - RecoveryPlanId requests.Integer `position:"Query" name:"RecoveryPlanId"` - Lang string `position:"Query" name:"Lang"` -} - -// RollbackGtmRecoveryPlanResponse is the response struct for api RollbackGtmRecoveryPlan -type RollbackGtmRecoveryPlanResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateRollbackGtmRecoveryPlanRequest creates a request to invoke RollbackGtmRecoveryPlan API -func CreateRollbackGtmRecoveryPlanRequest() (request *RollbackGtmRecoveryPlanRequest) { - request = &RollbackGtmRecoveryPlanRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "RollbackGtmRecoveryPlan", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateRollbackGtmRecoveryPlanResponse creates a response to parse from RollbackGtmRecoveryPlan response -func CreateRollbackGtmRecoveryPlanResponse() (response *RollbackGtmRecoveryPlanResponse) { - response = &RollbackGtmRecoveryPlanResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dns_gtm_access_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dns_gtm_access_mode.go deleted file mode 100644 index 0a3111040..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dns_gtm_access_mode.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// SetDnsGtmAccessMode invokes the alidns.SetDnsGtmAccessMode API synchronously -func (client *Client) SetDnsGtmAccessMode(request *SetDnsGtmAccessModeRequest) (response *SetDnsGtmAccessModeResponse, err error) { - response = CreateSetDnsGtmAccessModeResponse() - err = client.DoAction(request, response) - return -} - -// SetDnsGtmAccessModeWithChan invokes the alidns.SetDnsGtmAccessMode API asynchronously -func (client *Client) SetDnsGtmAccessModeWithChan(request *SetDnsGtmAccessModeRequest) (<-chan *SetDnsGtmAccessModeResponse, <-chan error) { - responseChan := make(chan *SetDnsGtmAccessModeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetDnsGtmAccessMode(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetDnsGtmAccessModeWithCallback invokes the alidns.SetDnsGtmAccessMode API asynchronously -func (client *Client) SetDnsGtmAccessModeWithCallback(request *SetDnsGtmAccessModeRequest, callback func(response *SetDnsGtmAccessModeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetDnsGtmAccessModeResponse - var err error - defer close(result) - response, err = client.SetDnsGtmAccessMode(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetDnsGtmAccessModeRequest is the request struct for api SetDnsGtmAccessMode -type SetDnsGtmAccessModeRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - StrategyId string `position:"Query" name:"StrategyId"` - Lang string `position:"Query" name:"Lang"` - AccessMode string `position:"Query" name:"AccessMode"` -} - -// SetDnsGtmAccessModeResponse is the response struct for api SetDnsGtmAccessMode -type SetDnsGtmAccessModeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSetDnsGtmAccessModeRequest creates a request to invoke SetDnsGtmAccessMode API -func CreateSetDnsGtmAccessModeRequest() (request *SetDnsGtmAccessModeRequest) { - request = &SetDnsGtmAccessModeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "SetDnsGtmAccessMode", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetDnsGtmAccessModeResponse creates a response to parse from SetDnsGtmAccessMode response -func CreateSetDnsGtmAccessModeResponse() (response *SetDnsGtmAccessModeResponse) { - response = &SetDnsGtmAccessModeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dns_gtm_monitor_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dns_gtm_monitor_status.go deleted file mode 100644 index 253081d66..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dns_gtm_monitor_status.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// SetDnsGtmMonitorStatus invokes the alidns.SetDnsGtmMonitorStatus API synchronously -func (client *Client) SetDnsGtmMonitorStatus(request *SetDnsGtmMonitorStatusRequest) (response *SetDnsGtmMonitorStatusResponse, err error) { - response = CreateSetDnsGtmMonitorStatusResponse() - err = client.DoAction(request, response) - return -} - -// SetDnsGtmMonitorStatusWithChan invokes the alidns.SetDnsGtmMonitorStatus API asynchronously -func (client *Client) SetDnsGtmMonitorStatusWithChan(request *SetDnsGtmMonitorStatusRequest) (<-chan *SetDnsGtmMonitorStatusResponse, <-chan error) { - responseChan := make(chan *SetDnsGtmMonitorStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetDnsGtmMonitorStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetDnsGtmMonitorStatusWithCallback invokes the alidns.SetDnsGtmMonitorStatus API asynchronously -func (client *Client) SetDnsGtmMonitorStatusWithCallback(request *SetDnsGtmMonitorStatusRequest, callback func(response *SetDnsGtmMonitorStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetDnsGtmMonitorStatusResponse - var err error - defer close(result) - response, err = client.SetDnsGtmMonitorStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetDnsGtmMonitorStatusRequest is the request struct for api SetDnsGtmMonitorStatus -type SetDnsGtmMonitorStatusRequest struct { - *requests.RpcRequest - MonitorConfigId string `position:"Query" name:"MonitorConfigId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` - Status string `position:"Query" name:"Status"` -} - -// SetDnsGtmMonitorStatusResponse is the response struct for api SetDnsGtmMonitorStatus -type SetDnsGtmMonitorStatusResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSetDnsGtmMonitorStatusRequest creates a request to invoke SetDnsGtmMonitorStatus API -func CreateSetDnsGtmMonitorStatusRequest() (request *SetDnsGtmMonitorStatusRequest) { - request = &SetDnsGtmMonitorStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "SetDnsGtmMonitorStatus", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetDnsGtmMonitorStatusResponse creates a response to parse from SetDnsGtmMonitorStatus response -func CreateSetDnsGtmMonitorStatusResponse() (response *SetDnsGtmMonitorStatusResponse) { - response = &SetDnsGtmMonitorStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dnsslb_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dnsslb_status.go deleted file mode 100644 index ef4836349..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_dnsslb_status.go +++ /dev/null @@ -1,107 +0,0 @@ -package alidns - -//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" -) - -// SetDNSSLBStatus invokes the alidns.SetDNSSLBStatus API synchronously -func (client *Client) SetDNSSLBStatus(request *SetDNSSLBStatusRequest) (response *SetDNSSLBStatusResponse, err error) { - response = CreateSetDNSSLBStatusResponse() - err = client.DoAction(request, response) - return -} - -// SetDNSSLBStatusWithChan invokes the alidns.SetDNSSLBStatus API asynchronously -func (client *Client) SetDNSSLBStatusWithChan(request *SetDNSSLBStatusRequest) (<-chan *SetDNSSLBStatusResponse, <-chan error) { - responseChan := make(chan *SetDNSSLBStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetDNSSLBStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetDNSSLBStatusWithCallback invokes the alidns.SetDNSSLBStatus API asynchronously -func (client *Client) SetDNSSLBStatusWithCallback(request *SetDNSSLBStatusRequest, callback func(response *SetDNSSLBStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetDNSSLBStatusResponse - var err error - defer close(result) - response, err = client.SetDNSSLBStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetDNSSLBStatusRequest is the request struct for api SetDNSSLBStatus -type SetDNSSLBStatusRequest struct { - *requests.RpcRequest - Line string `position:"Query" name:"Line"` - DomainName string `position:"Query" name:"DomainName"` - Type string `position:"Query" name:"Type"` - UserClientIp string `position:"Query" name:"UserClientIp"` - SubDomain string `position:"Query" name:"SubDomain"` - Lang string `position:"Query" name:"Lang"` - Open requests.Boolean `position:"Query" name:"Open"` -} - -// SetDNSSLBStatusResponse is the response struct for api SetDNSSLBStatus -type SetDNSSLBStatusResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecordCount int64 `json:"RecordCount" xml:"RecordCount"` - Open bool `json:"Open" xml:"Open"` -} - -// CreateSetDNSSLBStatusRequest creates a request to invoke SetDNSSLBStatus API -func CreateSetDNSSLBStatusRequest() (request *SetDNSSLBStatusRequest) { - request = &SetDNSSLBStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "SetDNSSLBStatus", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetDNSSLBStatusResponse creates a response to parse from SetDNSSLBStatus response -func CreateSetDNSSLBStatusResponse() (response *SetDNSSLBStatusResponse) { - response = &SetDNSSLBStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_domain_dnssec_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_domain_dnssec_status.go deleted file mode 100644 index 1e7f581ca..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_domain_dnssec_status.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// SetDomainDnssecStatus invokes the alidns.SetDomainDnssecStatus API synchronously -func (client *Client) SetDomainDnssecStatus(request *SetDomainDnssecStatusRequest) (response *SetDomainDnssecStatusResponse, err error) { - response = CreateSetDomainDnssecStatusResponse() - err = client.DoAction(request, response) - return -} - -// SetDomainDnssecStatusWithChan invokes the alidns.SetDomainDnssecStatus API asynchronously -func (client *Client) SetDomainDnssecStatusWithChan(request *SetDomainDnssecStatusRequest) (<-chan *SetDomainDnssecStatusResponse, <-chan error) { - responseChan := make(chan *SetDomainDnssecStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetDomainDnssecStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetDomainDnssecStatusWithCallback invokes the alidns.SetDomainDnssecStatus API asynchronously -func (client *Client) SetDomainDnssecStatusWithCallback(request *SetDomainDnssecStatusRequest, callback func(response *SetDomainDnssecStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetDomainDnssecStatusResponse - var err error - defer close(result) - response, err = client.SetDomainDnssecStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetDomainDnssecStatusRequest is the request struct for api SetDomainDnssecStatus -type SetDomainDnssecStatusRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` - Status string `position:"Query" name:"Status"` -} - -// SetDomainDnssecStatusResponse is the response struct for api SetDomainDnssecStatus -type SetDomainDnssecStatusResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSetDomainDnssecStatusRequest creates a request to invoke SetDomainDnssecStatus API -func CreateSetDomainDnssecStatusRequest() (request *SetDomainDnssecStatusRequest) { - request = &SetDomainDnssecStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "SetDomainDnssecStatus", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetDomainDnssecStatusResponse creates a response to parse from SetDomainDnssecStatus response -func CreateSetDomainDnssecStatusResponse() (response *SetDomainDnssecStatusResponse) { - response = &SetDomainDnssecStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_domain_record_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_domain_record_status.go deleted file mode 100644 index e42c2803e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_domain_record_status.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// SetDomainRecordStatus invokes the alidns.SetDomainRecordStatus API synchronously -func (client *Client) SetDomainRecordStatus(request *SetDomainRecordStatusRequest) (response *SetDomainRecordStatusResponse, err error) { - response = CreateSetDomainRecordStatusResponse() - err = client.DoAction(request, response) - return -} - -// SetDomainRecordStatusWithChan invokes the alidns.SetDomainRecordStatus API asynchronously -func (client *Client) SetDomainRecordStatusWithChan(request *SetDomainRecordStatusRequest) (<-chan *SetDomainRecordStatusResponse, <-chan error) { - responseChan := make(chan *SetDomainRecordStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetDomainRecordStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetDomainRecordStatusWithCallback invokes the alidns.SetDomainRecordStatus API asynchronously -func (client *Client) SetDomainRecordStatusWithCallback(request *SetDomainRecordStatusRequest, callback func(response *SetDomainRecordStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetDomainRecordStatusResponse - var err error - defer close(result) - response, err = client.SetDomainRecordStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetDomainRecordStatusRequest is the request struct for api SetDomainRecordStatus -type SetDomainRecordStatusRequest struct { - *requests.RpcRequest - RecordId string `position:"Query" name:"RecordId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` - Status string `position:"Query" name:"Status"` -} - -// SetDomainRecordStatusResponse is the response struct for api SetDomainRecordStatus -type SetDomainRecordStatusResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecordId string `json:"RecordId" xml:"RecordId"` - Status string `json:"Status" xml:"Status"` -} - -// CreateSetDomainRecordStatusRequest creates a request to invoke SetDomainRecordStatus API -func CreateSetDomainRecordStatusRequest() (request *SetDomainRecordStatusRequest) { - request = &SetDomainRecordStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "SetDomainRecordStatus", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetDomainRecordStatusResponse creates a response to parse from SetDomainRecordStatus response -func CreateSetDomainRecordStatusResponse() (response *SetDomainRecordStatusResponse) { - response = &SetDomainRecordStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_gtm_access_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_gtm_access_mode.go deleted file mode 100644 index 88bfa9620..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_gtm_access_mode.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// SetGtmAccessMode invokes the alidns.SetGtmAccessMode API synchronously -func (client *Client) SetGtmAccessMode(request *SetGtmAccessModeRequest) (response *SetGtmAccessModeResponse, err error) { - response = CreateSetGtmAccessModeResponse() - err = client.DoAction(request, response) - return -} - -// SetGtmAccessModeWithChan invokes the alidns.SetGtmAccessMode API asynchronously -func (client *Client) SetGtmAccessModeWithChan(request *SetGtmAccessModeRequest) (<-chan *SetGtmAccessModeResponse, <-chan error) { - responseChan := make(chan *SetGtmAccessModeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetGtmAccessMode(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetGtmAccessModeWithCallback invokes the alidns.SetGtmAccessMode API asynchronously -func (client *Client) SetGtmAccessModeWithCallback(request *SetGtmAccessModeRequest, callback func(response *SetGtmAccessModeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetGtmAccessModeResponse - var err error - defer close(result) - response, err = client.SetGtmAccessMode(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetGtmAccessModeRequest is the request struct for api SetGtmAccessMode -type SetGtmAccessModeRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - StrategyId string `position:"Query" name:"StrategyId"` - Lang string `position:"Query" name:"Lang"` - AccessMode string `position:"Query" name:"AccessMode"` -} - -// SetGtmAccessModeResponse is the response struct for api SetGtmAccessMode -type SetGtmAccessModeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSetGtmAccessModeRequest creates a request to invoke SetGtmAccessMode API -func CreateSetGtmAccessModeRequest() (request *SetGtmAccessModeRequest) { - request = &SetGtmAccessModeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "SetGtmAccessMode", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetGtmAccessModeResponse creates a response to parse from SetGtmAccessMode response -func CreateSetGtmAccessModeResponse() (response *SetGtmAccessModeResponse) { - response = &SetGtmAccessModeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_gtm_monitor_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_gtm_monitor_status.go deleted file mode 100644 index f6d8486ae..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/set_gtm_monitor_status.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// SetGtmMonitorStatus invokes the alidns.SetGtmMonitorStatus API synchronously -func (client *Client) SetGtmMonitorStatus(request *SetGtmMonitorStatusRequest) (response *SetGtmMonitorStatusResponse, err error) { - response = CreateSetGtmMonitorStatusResponse() - err = client.DoAction(request, response) - return -} - -// SetGtmMonitorStatusWithChan invokes the alidns.SetGtmMonitorStatus API asynchronously -func (client *Client) SetGtmMonitorStatusWithChan(request *SetGtmMonitorStatusRequest) (<-chan *SetGtmMonitorStatusResponse, <-chan error) { - responseChan := make(chan *SetGtmMonitorStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetGtmMonitorStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetGtmMonitorStatusWithCallback invokes the alidns.SetGtmMonitorStatus API asynchronously -func (client *Client) SetGtmMonitorStatusWithCallback(request *SetGtmMonitorStatusRequest, callback func(response *SetGtmMonitorStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetGtmMonitorStatusResponse - var err error - defer close(result) - response, err = client.SetGtmMonitorStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetGtmMonitorStatusRequest is the request struct for api SetGtmMonitorStatus -type SetGtmMonitorStatusRequest struct { - *requests.RpcRequest - MonitorConfigId string `position:"Query" name:"MonitorConfigId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` - Status string `position:"Query" name:"Status"` -} - -// SetGtmMonitorStatusResponse is the response struct for api SetGtmMonitorStatus -type SetGtmMonitorStatusResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSetGtmMonitorStatusRequest creates a request to invoke SetGtmMonitorStatus API -func CreateSetGtmMonitorStatusRequest() (request *SetGtmMonitorStatusRequest) { - request = &SetGtmMonitorStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "SetGtmMonitorStatus", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetGtmMonitorStatusResponse creates a response to parse from SetGtmMonitorStatus response -func CreateSetGtmMonitorStatusResponse() (response *SetGtmMonitorStatusResponse) { - response = &SetGtmMonitorStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr.go deleted file mode 100644 index 887724189..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr.go +++ /dev/null @@ -1,33 +0,0 @@ -package alidns - -//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 alidns response -type Addr struct { - UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` - AlertStatus string `json:"AlertStatus" xml:"AlertStatus"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - Remark string `json:"Remark" xml:"Remark"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - Id int64 `json:"Id" xml:"Id"` - UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` - LbaWeight int `json:"LbaWeight" xml:"LbaWeight"` - Mode string `json:"Mode" xml:"Mode"` - AttributeInfo string `json:"AttributeInfo" xml:"AttributeInfo"` - Value string `json:"Value" xml:"Value"` - Addr string `json:"Addr" xml:"Addr"` - AddrId int64 `json:"AddrId" xml:"AddrId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_in_describe_dns_gtm_addr_attribute_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_in_describe_dns_gtm_addr_attribute_info.go deleted file mode 100644 index cba260b7e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_in_describe_dns_gtm_addr_attribute_info.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// AddrInDescribeDnsGtmAddrAttributeInfo is a nested struct in alidns response -type AddrInDescribeDnsGtmAddrAttributeInfo struct { - AddrItem []AddrItem `json:"Addr" xml:"Addr"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_item.go deleted file mode 100644 index 5b53197db..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_item.go +++ /dev/null @@ -1,22 +0,0 @@ -package alidns - -//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. - -// AddrItem is a nested struct in alidns response -type AddrItem struct { - Addr string `json:"Addr" xml:"Addr"` - AttributeInfo AttributeInfo `json:"AttributeInfo" xml:"AttributeInfo"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pool.go deleted file mode 100644 index d3455bf88..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pool.go +++ /dev/null @@ -1,34 +0,0 @@ -package alidns - -//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. - -// AddrPool is a nested struct in alidns response -type AddrPool struct { - AddrCount int `json:"AddrCount" xml:"AddrCount"` - Name string `json:"Name" xml:"Name"` - MinAvailableAddrNum int `json:"MinAvailableAddrNum" xml:"MinAvailableAddrNum"` - UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` - MonitorConfigId string `json:"MonitorConfigId" xml:"MonitorConfigId"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - AddrPoolName string `json:"AddrPoolName" xml:"AddrPoolName"` - AddrPoolId string `json:"AddrPoolId" xml:"AddrPoolId"` - UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` - Status string `json:"Status" xml:"Status"` - MonitorStatus string `json:"MonitorStatus" xml:"MonitorStatus"` - LbaStrategy string `json:"LbaStrategy" xml:"LbaStrategy"` - Type string `json:"Type" xml:"Type"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_dns_gtm_instance_address_pools.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_dns_gtm_instance_address_pools.go deleted file mode 100644 index a65a145ac..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_dns_gtm_instance_address_pools.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// AddrPoolsInDescribeDnsGtmInstanceAddressPools is a nested struct in alidns response -type AddrPoolsInDescribeDnsGtmInstanceAddressPools struct { - AddrPool []AddrPool `json:"AddrPool" xml:"AddrPool"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_access_strategy_available_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_access_strategy_available_config.go deleted file mode 100644 index dddb2fe6e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_access_strategy_available_config.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// AddrPoolsInDescribeGtmAccessStrategyAvailableConfig is a nested struct in alidns response -type AddrPoolsInDescribeGtmAccessStrategyAvailableConfig struct { - AddrPool []AddrPool `json:"AddrPool" xml:"AddrPool"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_instance_address_pools.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_instance_address_pools.go deleted file mode 100644 index 2d340d818..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_instance_address_pools.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// AddrPoolsInDescribeGtmInstanceAddressPools is a nested struct in alidns response -type AddrPoolsInDescribeGtmInstanceAddressPools struct { - AddrPool []AddrPool `json:"AddrPool" xml:"AddrPool"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_recovery_plan_available_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_recovery_plan_available_config.go deleted file mode 100644 index 1f9dd1ea5..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_recovery_plan_available_config.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// AddrPoolsInDescribeGtmRecoveryPlanAvailableConfig is a nested struct in alidns response -type AddrPoolsInDescribeGtmRecoveryPlanAvailableConfig struct { - AddrPool []AddrPool `json:"AddrPool" xml:"AddrPool"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_dns_gtm_instance_address_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_dns_gtm_instance_address_pool.go deleted file mode 100644 index 1f0850c29..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_dns_gtm_instance_address_pool.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// AddrsInDescribeDnsGtmInstanceAddressPool is a nested struct in alidns response -type AddrsInDescribeDnsGtmInstanceAddressPool struct { - Addr []Addr `json:"Addr" xml:"Addr"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_gtm_instance_address_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_gtm_instance_address_pool.go deleted file mode 100644 index 6cbc21f44..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_gtm_instance_address_pool.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// AddrsInDescribeGtmInstanceAddressPool is a nested struct in alidns response -type AddrsInDescribeGtmInstanceAddressPool struct { - Addr []Addr `json:"Addr" xml:"Addr"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_gtm_recovery_plan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_gtm_recovery_plan.go deleted file mode 100644 index e969c6846..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_gtm_recovery_plan.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// AddrsInDescribeGtmRecoveryPlan is a nested struct in alidns response -type AddrsInDescribeGtmRecoveryPlan struct { - Addr []Addr `json:"Addr" xml:"Addr"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_in_describe_dns_gtm_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_in_describe_dns_gtm_instance.go deleted file mode 100644 index bd16251de..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_in_describe_dns_gtm_instance.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// AlertConfigInDescribeDnsGtmInstance is a nested struct in alidns response -type AlertConfigInDescribeDnsGtmInstance struct { - AlertConfigItem []AlertConfigItem `json:"AlertConfig" xml:"AlertConfig"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_in_describe_dns_gtm_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_in_describe_dns_gtm_instances.go deleted file mode 100644 index b0de7bfb0..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_in_describe_dns_gtm_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// AlertConfigInDescribeDnsGtmInstances is a nested struct in alidns response -type AlertConfigInDescribeDnsGtmInstances struct { - AlertConfigItem []AlertConfigItemInDescribeDnsGtmInstances `json:"AlertConfig" xml:"AlertConfig"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_item.go deleted file mode 100644 index e582d7ed5..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_item.go +++ /dev/null @@ -1,24 +0,0 @@ -package alidns - -//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. - -// AlertConfigItem is a nested struct in alidns response -type AlertConfigItem struct { - NoticeType string `json:"NoticeType" xml:"NoticeType"` - EmailNotice bool `json:"EmailNotice" xml:"EmailNotice"` - DingtalkNotice bool `json:"DingtalkNotice" xml:"DingtalkNotice"` - SmsNotice bool `json:"SmsNotice" xml:"SmsNotice"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_item_in_describe_dns_gtm_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_item_in_describe_dns_gtm_instances.go deleted file mode 100644 index 36deabc85..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_alert_config_item_in_describe_dns_gtm_instances.go +++ /dev/null @@ -1,24 +0,0 @@ -package alidns - -//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. - -// AlertConfigItemInDescribeDnsGtmInstances is a nested struct in alidns response -type AlertConfigItemInDescribeDnsGtmInstances struct { - SmsNotice string `json:"SmsNotice" xml:"SmsNotice"` - NoticeType string `json:"NoticeType" xml:"NoticeType"` - EmailNotice string `json:"EmailNotice" xml:"EmailNotice"` - DingtalkNotice string `json:"DingtalkNotice" xml:"DingtalkNotice"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_app_key.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_app_key.go deleted file mode 100644 index 049c86280..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_app_key.go +++ /dev/null @@ -1,24 +0,0 @@ -package alidns - -//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. - -// AppKey is a nested struct in alidns response -type AppKey struct { - CreateDate string `json:"CreateDate" xml:"CreateDate"` - State string `json:"State" xml:"State"` - AppKeyId string `json:"AppKeyId" xml:"AppKeyId"` - AppKeySecret string `json:"AppKeySecret" xml:"AppKeySecret"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_app_keys.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_app_keys.go deleted file mode 100644 index 9831c26f5..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_app_keys.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// AppKeys is a nested struct in alidns response -type AppKeys struct { - AppKey []AppKey `json:"AppKey" xml:"AppKey"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_attribute_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_attribute_info.go deleted file mode 100644 index a023a975f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_attribute_info.go +++ /dev/null @@ -1,25 +0,0 @@ -package alidns - -//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. - -// AttributeInfo is a nested struct in alidns response -type AttributeInfo struct { - GroupCode string `json:"GroupCode" xml:"GroupCode"` - LineCode string `json:"LineCode" xml:"LineCode"` - LineName string `json:"LineName" xml:"LineName"` - GroupName string `json:"GroupName" xml:"GroupName"` - FatherCode string `json:"FatherCode" xml:"FatherCode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_attribute_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_attribute_infos.go deleted file mode 100644 index 219a1025a..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_attribute_infos.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// AttributeInfos is a nested struct in alidns response -type AttributeInfos struct { - AttributeInfo []AttributeInfo `json:"AttributeInfo" xml:"AttributeInfo"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_available_ttls.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_available_ttls.go deleted file mode 100644 index e1d0ac7d5..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_available_ttls.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// AvailableTtls is a nested struct in alidns response -type AvailableTtls struct { - AvailableTtl []string `json:"AvailableTtl" xml:"AvailableTtl"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_batch_result_detail.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_batch_result_detail.go deleted file mode 100644 index fdad37292..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_batch_result_detail.go +++ /dev/null @@ -1,36 +0,0 @@ -package alidns - -//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. - -// BatchResultDetail is a nested struct in alidns response -type BatchResultDetail struct { - Domain string `json:"Domain" xml:"Domain"` - Type string `json:"Type" xml:"Type"` - Rr string `json:"Rr" xml:"Rr"` - Value string `json:"Value" xml:"Value"` - Status bool `json:"Status" xml:"Status"` - Reason string `json:"Reason" xml:"Reason"` - NewRr string `json:"NewRr" xml:"NewRr"` - NewValue string `json:"NewValue" xml:"NewValue"` - BatchType string `json:"BatchType" xml:"BatchType"` - OperateDateStr string `json:"OperateDateStr" xml:"OperateDateStr"` - Line string `json:"Line" xml:"Line"` - Priority string `json:"Priority" xml:"Priority"` - Ttl string `json:"Ttl" xml:"Ttl"` - RecordId string `json:"RecordId" xml:"RecordId"` - Remark string `json:"Remark" xml:"Remark"` - RrStatus string `json:"RrStatus" xml:"RrStatus"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_batch_result_details.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_batch_result_details.go deleted file mode 100644 index b2655d454..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_batch_result_details.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// BatchResultDetails is a nested struct in alidns response -type BatchResultDetails struct { - BatchResultDetail []BatchResultDetail `json:"BatchResultDetail" xml:"BatchResultDetail"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_config.go deleted file mode 100644 index c7710d702..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_config.go +++ /dev/null @@ -1,31 +0,0 @@ -package alidns - -//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. - -// Config is a nested struct in alidns response -type Config struct { - PublicUserDomainName string `json:"PublicUserDomainName" xml:"PublicUserDomainName"` - PublicZoneName string `json:"PublicZoneName" xml:"PublicZoneName"` - AlertGroup string `json:"AlertGroup" xml:"AlertGroup"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - PublicCnameMode string `json:"PublicCnameMode" xml:"PublicCnameMode"` - CnameType string `json:"CnameType" xml:"CnameType"` - PubicZoneName string `json:"PubicZoneName" xml:"PubicZoneName"` - Ttl int `json:"Ttl" xml:"Ttl"` - StrategyMode string `json:"StrategyMode" xml:"StrategyMode"` - PublicRr string `json:"PublicRr" xml:"PublicRr"` - AlertConfig AlertConfigInDescribeDnsGtmInstance `json:"AlertConfig" xml:"AlertConfig"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_config_in_describe_dns_gtm_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_config_in_describe_dns_gtm_instance.go deleted file mode 100644 index 8a32ed952..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_config_in_describe_dns_gtm_instance.go +++ /dev/null @@ -1,30 +0,0 @@ -package alidns - -//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. - -// ConfigInDescribeDnsGtmInstance is a nested struct in alidns response -type ConfigInDescribeDnsGtmInstance struct { - Ttl int `json:"Ttl" xml:"Ttl"` - AlertGroup string `json:"AlertGroup" xml:"AlertGroup"` - CnameType string `json:"CnameType" xml:"CnameType"` - StrategyMode string `json:"StrategyMode" xml:"StrategyMode"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - PublicCnameMode string `json:"PublicCnameMode" xml:"PublicCnameMode"` - PublicUserDomainName string `json:"PublicUserDomainName" xml:"PublicUserDomainName"` - PubicZoneName string `json:"PubicZoneName" xml:"PubicZoneName"` - PublicRr string `json:"PublicRr" xml:"PublicRr"` - AlertConfig AlertConfigInDescribeDnsGtmInstance `json:"AlertConfig" xml:"AlertConfig"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_custom_line.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_custom_line.go deleted file mode 100644 index 688159d92..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_custom_line.go +++ /dev/null @@ -1,27 +0,0 @@ -package alidns - -//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. - -// CustomLine is a nested struct in alidns response -type CustomLine struct { - Id int64 `json:"Id" xml:"Id"` - Name string `json:"Name" xml:"Name"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - IpSegments string `json:"IpSegments" xml:"IpSegments"` - Code string `json:"Code" xml:"Code"` - IpSegmentList []IpSegment `json:"IpSegmentList" xml:"IpSegmentList"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_custom_lines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_custom_lines.go deleted file mode 100644 index bd5318f0a..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_custom_lines.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// CustomLines is a nested struct in alidns response -type CustomLines struct { - CustomLine []CustomLine `json:"CustomLine" xml:"CustomLine"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data.go deleted file mode 100644 index 022594530..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data.go +++ /dev/null @@ -1,27 +0,0 @@ -package alidns - -//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. - -// Data is a nested struct in alidns response -type Data struct { - ThreatCount int64 `json:"ThreatCount" xml:"ThreatCount"` - SubDomainCount int64 `json:"SubDomainCount" xml:"SubDomainCount"` - DomainCount int64 `json:"DomainCount" xml:"DomainCount"` - HttpCount int64 `json:"HttpCount" xml:"HttpCount"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - HttpsCount int64 `json:"HttpsCount" xml:"HttpsCount"` - UserId int64 `json:"UserId" xml:"UserId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_request_statistic.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_request_statistic.go deleted file mode 100644 index 55b36324e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_request_statistic.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DataInDescribePdnsRequestStatistic is a nested struct in alidns response -type DataInDescribePdnsRequestStatistic struct { - StatisticItem []StatisticItem `json:"StatisticItem" xml:"StatisticItem"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_request_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_request_statistics.go deleted file mode 100644 index 21f57f053..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_request_statistics.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DataInDescribePdnsRequestStatistics is a nested struct in alidns response -type DataInDescribePdnsRequestStatistics struct { - StatisticItem []StatisticItem `json:"StatisticItem" xml:"StatisticItem"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_threat_statistic.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_threat_statistic.go deleted file mode 100644 index f4d53ba39..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_threat_statistic.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DataInDescribePdnsThreatStatistic is a nested struct in alidns response -type DataInDescribePdnsThreatStatistic struct { - StatisticItem []StatisticItem `json:"StatisticItem" xml:"StatisticItem"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_threat_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_threat_statistics.go deleted file mode 100644 index 0b0a0aa13..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_data_in_describe_pdns_threat_statistics.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DataInDescribePdnsThreatStatistics is a nested struct in alidns response -type DataInDescribePdnsThreatStatistics struct { - StatisticItem []StatisticItem `json:"StatisticItem" xml:"StatisticItem"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_default_addr_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_default_addr_pool.go deleted file mode 100644 index f624e1702..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_default_addr_pool.go +++ /dev/null @@ -1,24 +0,0 @@ -package alidns - -//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. - -// DefaultAddrPool is a nested struct in alidns response -type DefaultAddrPool struct { - Id string `json:"Id" xml:"Id"` - Name string `json:"Name" xml:"Name"` - AddrCount int `json:"AddrCount" xml:"AddrCount"` - LbaWeight int `json:"LbaWeight" xml:"LbaWeight"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_default_addr_pools.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_default_addr_pools.go deleted file mode 100644 index 67a2dd919..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_default_addr_pools.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DefaultAddrPools is a nested struct in alidns response -type DefaultAddrPools struct { - DefaultAddrPool []DefaultAddrPool `json:"DefaultAddrPool" xml:"DefaultAddrPool"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_product.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_product.go deleted file mode 100644 index 1b995d00f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_product.go +++ /dev/null @@ -1,52 +0,0 @@ -package alidns - -//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. - -// DnsProduct is a nested struct in alidns response -type DnsProduct struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - VersionCode string `json:"VersionCode" xml:"VersionCode"` - VersionName string `json:"VersionName" xml:"VersionName"` - StartTime string `json:"StartTime" xml:"StartTime"` - EndTime string `json:"EndTime" xml:"EndTime"` - StartTimestamp int64 `json:"StartTimestamp" xml:"StartTimestamp"` - EndTimestamp int64 `json:"EndTimestamp" xml:"EndTimestamp"` - Domain string `json:"Domain" xml:"Domain"` - BindCount int64 `json:"BindCount" xml:"BindCount"` - BindUsedCount int64 `json:"BindUsedCount" xml:"BindUsedCount"` - TTLMinValue int64 `json:"TTLMinValue" xml:"TTLMinValue"` - SubDomainLevel int64 `json:"SubDomainLevel" xml:"SubDomainLevel"` - DnsSLBCount int64 `json:"DnsSLBCount" xml:"DnsSLBCount"` - URLForwardCount int64 `json:"URLForwardCount" xml:"URLForwardCount"` - DDosDefendFlow int64 `json:"DDosDefendFlow" xml:"DDosDefendFlow"` - DDosDefendQuery int64 `json:"DDosDefendQuery" xml:"DDosDefendQuery"` - OverseaDDosDefendFlow int64 `json:"OverseaDDosDefendFlow" xml:"OverseaDDosDefendFlow"` - SearchEngineLines string `json:"SearchEngineLines" xml:"SearchEngineLines"` - ISPLines string `json:"ISPLines" xml:"ISPLines"` - ISPRegionLines string `json:"ISPRegionLines" xml:"ISPRegionLines"` - OverseaLine string `json:"OverseaLine" xml:"OverseaLine"` - MonitorNodeCount int64 `json:"MonitorNodeCount" xml:"MonitorNodeCount"` - MonitorFrequency int64 `json:"MonitorFrequency" xml:"MonitorFrequency"` - MonitorTaskCount int64 `json:"MonitorTaskCount" xml:"MonitorTaskCount"` - RegionLines bool `json:"RegionLines" xml:"RegionLines"` - Gslb bool `json:"Gslb" xml:"Gslb"` - InClean bool `json:"InClean" xml:"InClean"` - InBlackHole bool `json:"InBlackHole" xml:"InBlackHole"` - BindDomainCount int64 `json:"BindDomainCount" xml:"BindDomainCount"` - BindDomainUsedCount int64 `json:"BindDomainUsedCount" xml:"BindDomainUsedCount"` - DnsSecurity string `json:"DnsSecurity" xml:"DnsSecurity"` - PaymentType string `json:"PaymentType" xml:"PaymentType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_products.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_products.go deleted file mode 100644 index 636a96ff0..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_products.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DnsProducts is a nested struct in alidns response -type DnsProducts struct { - DnsProduct []DnsProduct `json:"DnsProduct" xml:"DnsProduct"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_add_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_add_domain.go deleted file mode 100644 index d6f5bfb2b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_add_domain.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DnsServersInAddDomain is a nested struct in alidns response -type DnsServersInAddDomain struct { - DnsServer []string `json:"DnsServer" xml:"DnsServer"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_dns_product_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_dns_product_instance.go deleted file mode 100644 index 64d0db2ff..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_dns_product_instance.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DnsServersInDescribeDnsProductInstance is a nested struct in alidns response -type DnsServersInDescribeDnsProductInstance struct { - DnsServer []string `json:"DnsServer" xml:"DnsServer"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_info.go deleted file mode 100644 index debe6483b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_info.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DnsServersInDescribeDomainInfo is a nested struct in alidns response -type DnsServersInDescribeDomainInfo struct { - DnsServer []string `json:"DnsServer" xml:"DnsServer"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_ns.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_ns.go deleted file mode 100644 index 67d752ec9..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_ns.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DnsServersInDescribeDomainNs is a nested struct in alidns response -type DnsServersInDescribeDomainNs struct { - DnsServer []string `json:"DnsServer" xml:"DnsServer"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domains.go deleted file mode 100644 index dada40af2..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domains.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DnsServersInDescribeDomains is a nested struct in alidns response -type DnsServersInDescribeDomains struct { - DnsServer []string `json:"DnsServer" xml:"DnsServer"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain.go deleted file mode 100644 index 46b238b86..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain.go +++ /dev/null @@ -1,49 +0,0 @@ -package alidns - -//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 alidns response -type Domain struct { - AliDomain bool `json:"AliDomain" xml:"AliDomain"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - ExpireTimestamp int64 `json:"ExpireTimestamp" xml:"ExpireTimestamp"` - InstanceEndTime string `json:"InstanceEndTime" xml:"InstanceEndTime"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - SourceProtocol string `json:"SourceProtocol" xml:"SourceProtocol"` - GroupName string `json:"GroupName" xml:"GroupName"` - VersionCode string `json:"VersionCode" xml:"VersionCode"` - DomainId string `json:"DomainId" xml:"DomainId"` - UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` - RecordCount int64 `json:"RecordCount" xml:"RecordCount"` - InstanceExpired bool `json:"InstanceExpired" xml:"InstanceExpired"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - CacheTtlMin int `json:"CacheTtlMin" xml:"CacheTtlMin"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - GroupId string `json:"GroupId" xml:"GroupId"` - SourceEdns string `json:"SourceEdns" xml:"SourceEdns"` - RegistrantEmail string `json:"RegistrantEmail" xml:"RegistrantEmail"` - VersionName string `json:"VersionName" xml:"VersionName"` - UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` - Remark string `json:"Remark" xml:"Remark"` - DomainName string `json:"DomainName" xml:"DomainName"` - CacheTtlMax int `json:"CacheTtlMax" xml:"CacheTtlMax"` - PunyCode string `json:"PunyCode" xml:"PunyCode"` - Starmark bool `json:"Starmark" xml:"Starmark"` - DnsServers []string `json:"DnsServers" xml:"DnsServers"` - Tags TagsInDescribeDomains `json:"Tags" xml:"Tags"` - SourceDnsServers []SourceDnsServer `json:"SourceDnsServers" xml:"SourceDnsServers"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_addr_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_addr_pool.go deleted file mode 100644 index f3aa4f209..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_addr_pool.go +++ /dev/null @@ -1,23 +0,0 @@ -package alidns - -//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. - -// DomainAddrPool is a nested struct in alidns response -type DomainAddrPool struct { - Id string `json:"Id" xml:"Id"` - Name string `json:"Name" xml:"Name"` - AddrCount int `json:"AddrCount" xml:"AddrCount"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_addr_pools.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_addr_pools.go deleted file mode 100644 index fb862aeee..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_addr_pools.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DomainAddrPools is a nested struct in alidns response -type DomainAddrPools struct { - DomainAddrPool []DomainAddrPool `json:"DomainAddrPool" xml:"DomainAddrPool"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_group.go deleted file mode 100644 index f0e644aba..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_group.go +++ /dev/null @@ -1,23 +0,0 @@ -package alidns - -//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. - -// DomainGroup is a nested struct in alidns response -type DomainGroup struct { - GroupId string `json:"GroupId" xml:"GroupId"` - GroupName string `json:"GroupName" xml:"GroupName"` - DomainCount int64 `json:"DomainCount" xml:"DomainCount"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_groups.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_groups.go deleted file mode 100644 index ce193d883..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DomainGroups is a nested struct in alidns response -type DomainGroups struct { - DomainGroup []DomainGroup `json:"DomainGroup" xml:"DomainGroup"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_in_describe_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_in_describe_domains.go deleted file mode 100644 index 6bca679c6..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_in_describe_domains.go +++ /dev/null @@ -1,40 +0,0 @@ -package alidns - -//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. - -// DomainInDescribeDomains is a nested struct in alidns response -type DomainInDescribeDomains struct { - DomainId string `json:"DomainId" xml:"DomainId"` - DomainName string `json:"DomainName" xml:"DomainName"` - PunyCode string `json:"PunyCode" xml:"PunyCode"` - AliDomain bool `json:"AliDomain" xml:"AliDomain"` - RecordCount int64 `json:"RecordCount" xml:"RecordCount"` - RegistrantEmail string `json:"RegistrantEmail" xml:"RegistrantEmail"` - Remark string `json:"Remark" xml:"Remark"` - GroupId string `json:"GroupId" xml:"GroupId"` - GroupName string `json:"GroupName" xml:"GroupName"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - VersionCode string `json:"VersionCode" xml:"VersionCode"` - VersionName string `json:"VersionName" xml:"VersionName"` - InstanceEndTime string `json:"InstanceEndTime" xml:"InstanceEndTime"` - InstanceExpired bool `json:"InstanceExpired" xml:"InstanceExpired"` - Starmark bool `json:"Starmark" xml:"Starmark"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - DnsServers DnsServersInDescribeDomains `json:"DnsServers" xml:"DnsServers"` - Tags TagsInDescribeDomains `json:"Tags" xml:"Tags"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv4_isp_city_node.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv4_isp_city_node.go deleted file mode 100644 index 619daf880..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv4_isp_city_node.go +++ /dev/null @@ -1,28 +0,0 @@ -package alidns - -//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. - -// DomainIpv4IspCityNode is a nested struct in alidns response -type DomainIpv4IspCityNode struct { - GroupName string `json:"GroupName" xml:"GroupName"` - CityCode string `json:"CityCode" xml:"CityCode"` - IspName string `json:"IspName" xml:"IspName"` - GroupType string `json:"GroupType" xml:"GroupType"` - CityName string `json:"CityName" xml:"CityName"` - DefaultSelected bool `json:"DefaultSelected" xml:"DefaultSelected"` - IspCode string `json:"IspCode" xml:"IspCode"` - Ips IpsInDescribeDnsGtmMonitorAvailableConfig `json:"Ips" xml:"Ips"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv4_isp_city_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv4_isp_city_nodes.go deleted file mode 100644 index 50022c9f1..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv4_isp_city_nodes.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DomainIpv4IspCityNodes is a nested struct in alidns response -type DomainIpv4IspCityNodes struct { - DomainIpv4IspCityNode []DomainIpv4IspCityNode `json:"DomainIpv4IspCityNode" xml:"DomainIpv4IspCityNode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv6_isp_city_node.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv6_isp_city_node.go deleted file mode 100644 index 55e7a27ef..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv6_isp_city_node.go +++ /dev/null @@ -1,28 +0,0 @@ -package alidns - -//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. - -// DomainIpv6IspCityNode is a nested struct in alidns response -type DomainIpv6IspCityNode struct { - GroupName string `json:"GroupName" xml:"GroupName"` - CityCode string `json:"CityCode" xml:"CityCode"` - IspName string `json:"IspName" xml:"IspName"` - GroupType string `json:"GroupType" xml:"GroupType"` - CityName string `json:"CityName" xml:"CityName"` - DefaultSelected bool `json:"DefaultSelected" xml:"DefaultSelected"` - IspCode string `json:"IspCode" xml:"IspCode"` - Ips IpsInDescribeDnsGtmMonitorAvailableConfig `json:"Ips" xml:"Ips"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv6_isp_city_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv6_isp_city_nodes.go deleted file mode 100644 index d351e025d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_ipv6_isp_city_nodes.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DomainIpv6IspCityNodes is a nested struct in alidns response -type DomainIpv6IspCityNodes struct { - DomainIpv6IspCityNode []DomainIpv6IspCityNode `json:"DomainIpv6IspCityNode" xml:"DomainIpv6IspCityNode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_log.go deleted file mode 100644 index f0bc25354..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_log.go +++ /dev/null @@ -1,27 +0,0 @@ -package alidns - -//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. - -// DomainLog is a nested struct in alidns response -type DomainLog struct { - ActionTime string `json:"ActionTime" xml:"ActionTime"` - ActionTimestamp int64 `json:"ActionTimestamp" xml:"ActionTimestamp"` - DomainName string `json:"DomainName" xml:"DomainName"` - Action string `json:"Action" xml:"Action"` - Message string `json:"Message" xml:"Message"` - ClientIp string `json:"ClientIp" xml:"ClientIp"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_logs.go deleted file mode 100644 index 3964d02b5..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_logs.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DomainLogs is a nested struct in alidns response -type DomainLogs struct { - DomainLog []DomainLog `json:"DomainLog" xml:"DomainLog"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_domain_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_domain_records.go deleted file mode 100644 index 5ef972598..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_domain_records.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DomainRecordsInDescribeDomainRecords is a nested struct in alidns response -type DomainRecordsInDescribeDomainRecords struct { - Record []Record `json:"Record" xml:"Record"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_sub_domain_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_sub_domain_records.go deleted file mode 100644 index 9b64ba0c8..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_sub_domain_records.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DomainRecordsInDescribeSubDomainRecords is a nested struct in alidns response -type DomainRecordsInDescribeSubDomainRecords struct { - Record []Record `json:"Record" xml:"Record"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_transfer.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_transfer.go deleted file mode 100644 index c51528c5f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_transfer.go +++ /dev/null @@ -1,26 +0,0 @@ -package alidns - -//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. - -// DomainTransfer is a nested struct in alidns response -type DomainTransfer struct { - DomainName string `json:"DomainName" xml:"DomainName"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - FromUserId int64 `json:"FromUserId" xml:"FromUserId"` - TargetUserId int64 `json:"TargetUserId" xml:"TargetUserId"` - Id int64 `json:"Id" xml:"Id"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_transfers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_transfers.go deleted file mode 100644 index 23deab07e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_transfers.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DomainTransfers is a nested struct in alidns response -type DomainTransfers struct { - DomainTransfer []DomainTransfer `json:"DomainTransfer" xml:"DomainTransfer"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domains_in_describe_dns_cache_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domains_in_describe_dns_cache_domains.go deleted file mode 100644 index 0ed71d99b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domains_in_describe_dns_cache_domains.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DomainsInDescribeDnsCacheDomains is a nested struct in alidns response -type DomainsInDescribeDnsCacheDomains struct { - Domain []Domain `json:"Domain" xml:"Domain"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domains_in_describe_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domains_in_describe_domains.go deleted file mode 100644 index 0d9edd515..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domains_in_describe_domains.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// DomainsInDescribeDomains is a nested struct in alidns response -type DomainsInDescribeDomains struct { - Domain []DomainInDescribeDomains `json:"Domain" xml:"Domain"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_effective_addr_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_effective_addr_pool.go deleted file mode 100644 index 71b107f48..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_effective_addr_pool.go +++ /dev/null @@ -1,24 +0,0 @@ -package alidns - -//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. - -// EffectiveAddrPool is a nested struct in alidns response -type EffectiveAddrPool struct { - Id string `json:"Id" xml:"Id"` - Name string `json:"Name" xml:"Name"` - AddrCount int `json:"AddrCount" xml:"AddrCount"` - LbaWeight int `json:"LbaWeight" xml:"LbaWeight"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_effective_addr_pools.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_effective_addr_pools.go deleted file mode 100644 index f9965690e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_effective_addr_pools.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// EffectiveAddrPools is a nested struct in alidns response -type EffectiveAddrPools struct { - EffectiveAddrPool []EffectiveAddrPool `json:"EffectiveAddrPool" xml:"EffectiveAddrPool"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_expect_dns_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_expect_dns_servers.go deleted file mode 100644 index 9befd95b8..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_expect_dns_servers.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// ExpectDnsServers is a nested struct in alidns response -type ExpectDnsServers struct { - ExpectDnsServer []string `json:"ExpectDnsServer" xml:"ExpectDnsServer"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_failover_addr_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_failover_addr_pool.go deleted file mode 100644 index 33265c289..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_failover_addr_pool.go +++ /dev/null @@ -1,24 +0,0 @@ -package alidns - -//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. - -// FailoverAddrPool is a nested struct in alidns response -type FailoverAddrPool struct { - Id string `json:"Id" xml:"Id"` - Name string `json:"Name" xml:"Name"` - AddrCount int `json:"AddrCount" xml:"AddrCount"` - LbaWeight int `json:"LbaWeight" xml:"LbaWeight"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_failover_addr_pools.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_failover_addr_pools.go deleted file mode 100644 index 0ecf9cfe3..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_failover_addr_pools.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// FailoverAddrPools is a nested struct in alidns response -type FailoverAddrPools struct { - FailoverAddrPool []FailoverAddrPool `json:"FailoverAddrPool" xml:"FailoverAddrPool"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fault_addr_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fault_addr_pool.go deleted file mode 100644 index 01d8e51b6..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fault_addr_pool.go +++ /dev/null @@ -1,24 +0,0 @@ -package alidns - -//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. - -// FaultAddrPool is a nested struct in alidns response -type FaultAddrPool struct { - AddrPoolId string `json:"AddrPoolId" xml:"AddrPoolId"` - AddrPoolName string `json:"AddrPoolName" xml:"AddrPoolName"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Addrs AddrsInDescribeGtmRecoveryPlan `json:"Addrs" xml:"Addrs"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fault_addr_pools.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fault_addr_pools.go deleted file mode 100644 index f87d72e13..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fault_addr_pools.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// FaultAddrPools is a nested struct in alidns response -type FaultAddrPools struct { - FaultAddrPool []FaultAddrPool `json:"FaultAddrPool" xml:"FaultAddrPool"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instance.go deleted file mode 100644 index ad92cad51..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instance.go +++ /dev/null @@ -1,41 +0,0 @@ -package alidns - -//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. - -// GtmInstance is a nested struct in alidns response -type GtmInstance struct { - AddressPoolNum int `json:"AddressPoolNum" xml:"AddressPoolNum"` - Cname string `json:"Cname" xml:"Cname"` - UserDomainName string `json:"UserDomainName" xml:"UserDomainName"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - AccessStrategyNum int `json:"AccessStrategyNum" xml:"AccessStrategyNum"` - ExpireTimestamp int64 `json:"ExpireTimestamp" xml:"ExpireTimestamp"` - AlertGroup string `json:"AlertGroup" xml:"AlertGroup"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - VersionCode string `json:"VersionCode" xml:"VersionCode"` - CnameMode string `json:"CnameMode" xml:"CnameMode"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - SmsQuota int `json:"SmsQuota" xml:"SmsQuota"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - PaymentType string `json:"PaymentType" xml:"PaymentType"` - Ttl int `json:"Ttl" xml:"Ttl"` - LbaStrategy string `json:"LbaStrategy" xml:"LbaStrategy"` - TaskQuota int `json:"TaskQuota" xml:"TaskQuota"` - Config Config `json:"Config" xml:"Config"` - UsedQuota UsedQuota `json:"UsedQuota" xml:"UsedQuota"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instances_in_describe_dns_gtm_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instances_in_describe_dns_gtm_instances.go deleted file mode 100644 index 902f6577f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instances_in_describe_dns_gtm_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// GtmInstancesInDescribeDnsGtmInstances is a nested struct in alidns response -type GtmInstancesInDescribeDnsGtmInstances struct { - GtmInstance []GtmInstance `json:"GtmInstance" xml:"GtmInstance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instances_in_describe_gtm_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instances_in_describe_gtm_instances.go deleted file mode 100644 index a10b109d4..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instances_in_describe_gtm_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// GtmInstancesInDescribeGtmInstances is a nested struct in alidns response -type GtmInstancesInDescribeGtmInstances struct { - GtmInstance []GtmInstance `json:"GtmInstance" xml:"GtmInstance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance.go deleted file mode 100644 index 5fe79e861..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance.go +++ /dev/null @@ -1,23 +0,0 @@ -package alidns - -//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. - -// Instance is a nested struct in alidns response -type Instance struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - AddrPools AddrPoolsInDescribeGtmRecoveryPlanAvailableConfig `json:"AddrPools" xml:"AddrPools"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance_domain.go deleted file mode 100644 index 59731f1b1..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance_domain.go +++ /dev/null @@ -1,23 +0,0 @@ -package alidns - -//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. - -// InstanceDomain is a nested struct in alidns response -type InstanceDomain struct { - DomainName string `json:"DomainName" xml:"DomainName"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance_domains.go deleted file mode 100644 index 339509c10..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance_domains.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// InstanceDomains is a nested struct in alidns response -type InstanceDomains struct { - InstanceDomain []InstanceDomain `json:"InstanceDomain" xml:"InstanceDomain"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instances.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instances.go deleted file mode 100644 index baa71f2b0..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instances.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// Instances is a nested struct in alidns response -type Instances struct { - Instance []Instance `json:"Instance" xml:"Instance"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment.go deleted file mode 100644 index b69af0282..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment.go +++ /dev/null @@ -1,28 +0,0 @@ -package alidns - -//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. - -// IpSegment is a nested struct in alidns response -type IpSegment struct { - Name string `json:"Name" xml:"Name"` - EndIp string `json:"EndIp" xml:"EndIp"` - CreateDate string `json:"CreateDate" xml:"CreateDate"` - State string `json:"State" xml:"State"` - Ip string `json:"Ip" xml:"Ip"` - UpdateDate string `json:"UpdateDate" xml:"UpdateDate"` - Mask int64 `json:"Mask" xml:"Mask"` - StartIp string `json:"StartIp" xml:"StartIp"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment_list_in_describe_custom_line.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment_list_in_describe_custom_line.go deleted file mode 100644 index aca931e26..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment_list_in_describe_custom_line.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// IpSegmentListInDescribeCustomLine is a nested struct in alidns response -type IpSegmentListInDescribeCustomLine struct { - IpSegment []IpSegment `json:"IpSegment" xml:"IpSegment"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment_list_in_describe_custom_lines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment_list_in_describe_custom_lines.go deleted file mode 100644 index 9078b5f9e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment_list_in_describe_custom_lines.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// IpSegmentListInDescribeCustomLines is a nested struct in alidns response -type IpSegmentListInDescribeCustomLines struct { - IpSegment []IpSegment `json:"IpSegment" xml:"IpSegment"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segments.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segments.go deleted file mode 100644 index 8a595fceb..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segments.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// IpSegments is a nested struct in alidns response -type IpSegments struct { - IpSegment []IpSegment `json:"IpSegment" xml:"IpSegment"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ips_in_describe_dns_gtm_monitor_available_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ips_in_describe_dns_gtm_monitor_available_config.go deleted file mode 100644 index fd786ab36..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ips_in_describe_dns_gtm_monitor_available_config.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// IpsInDescribeDnsGtmMonitorAvailableConfig is a nested struct in alidns response -type IpsInDescribeDnsGtmMonitorAvailableConfig struct { - Ip []string `json:"Ip" xml:"Ip"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_addr_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_addr_pool.go deleted file mode 100644 index 82c372648..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_addr_pool.go +++ /dev/null @@ -1,23 +0,0 @@ -package alidns - -//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. - -// Ipv4AddrPool is a nested struct in alidns response -type Ipv4AddrPool struct { - Id string `json:"Id" xml:"Id"` - Name string `json:"Name" xml:"Name"` - AddrCount int `json:"AddrCount" xml:"AddrCount"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_addr_pools.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_addr_pools.go deleted file mode 100644 index 32f771a4d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_addr_pools.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// Ipv4AddrPools is a nested struct in alidns response -type Ipv4AddrPools struct { - Ipv4AddrPool []Ipv4AddrPool `json:"Ipv4AddrPool" xml:"Ipv4AddrPool"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_isp_city_node.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_isp_city_node.go deleted file mode 100644 index 5b860c286..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_isp_city_node.go +++ /dev/null @@ -1,28 +0,0 @@ -package alidns - -//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. - -// Ipv4IspCityNode is a nested struct in alidns response -type Ipv4IspCityNode struct { - GroupName string `json:"GroupName" xml:"GroupName"` - CityCode string `json:"CityCode" xml:"CityCode"` - IspName string `json:"IspName" xml:"IspName"` - GroupType string `json:"GroupType" xml:"GroupType"` - CityName string `json:"CityName" xml:"CityName"` - DefaultSelected bool `json:"DefaultSelected" xml:"DefaultSelected"` - IspCode string `json:"IspCode" xml:"IspCode"` - Ips IpsInDescribeDnsGtmMonitorAvailableConfig `json:"Ips" xml:"Ips"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_isp_city_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_isp_city_nodes.go deleted file mode 100644 index 0bbf227f6..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv4_isp_city_nodes.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// Ipv4IspCityNodes is a nested struct in alidns response -type Ipv4IspCityNodes struct { - Ipv4IspCityNode []Ipv4IspCityNode `json:"Ipv4IspCityNode" xml:"Ipv4IspCityNode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_addr_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_addr_pool.go deleted file mode 100644 index ab64e6ef9..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_addr_pool.go +++ /dev/null @@ -1,23 +0,0 @@ -package alidns - -//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. - -// Ipv6AddrPool is a nested struct in alidns response -type Ipv6AddrPool struct { - Id string `json:"Id" xml:"Id"` - Name string `json:"Name" xml:"Name"` - AddrCount int `json:"AddrCount" xml:"AddrCount"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_addr_pools.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_addr_pools.go deleted file mode 100644 index 873c022f5..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_addr_pools.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// Ipv6AddrPools is a nested struct in alidns response -type Ipv6AddrPools struct { - Ipv6AddrPool []Ipv6AddrPool `json:"Ipv6AddrPool" xml:"Ipv6AddrPool"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_isp_city_node.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_isp_city_node.go deleted file mode 100644 index f2506b82d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_isp_city_node.go +++ /dev/null @@ -1,28 +0,0 @@ -package alidns - -//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. - -// Ipv6IspCityNode is a nested struct in alidns response -type Ipv6IspCityNode struct { - GroupName string `json:"GroupName" xml:"GroupName"` - CityCode string `json:"CityCode" xml:"CityCode"` - IspName string `json:"IspName" xml:"IspName"` - GroupType string `json:"GroupType" xml:"GroupType"` - CityName string `json:"CityName" xml:"CityName"` - DefaultSelected bool `json:"DefaultSelected" xml:"DefaultSelected"` - IspCode string `json:"IspCode" xml:"IspCode"` - Ips IpsInDescribeDnsGtmMonitorAvailableConfig `json:"Ips" xml:"Ips"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_isp_city_nodes.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_isp_city_nodes.go deleted file mode 100644 index b12e8bf1b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ipv6_isp_city_nodes.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// Ipv6IspCityNodes is a nested struct in alidns response -type Ipv6IspCityNodes struct { - Ipv6IspCityNode []Ipv6IspCityNode `json:"Ipv6IspCityNode" xml:"Ipv6IspCityNode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_node.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_node.go deleted file mode 100644 index e17df927d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_node.go +++ /dev/null @@ -1,30 +0,0 @@ -package alidns - -//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. - -// IspCityNode is a nested struct in alidns response -type IspCityNode struct { - GroupType string `json:"GroupType" xml:"GroupType"` - CityCode string `json:"CityCode" xml:"CityCode"` - DefaultSelected bool `json:"DefaultSelected" xml:"DefaultSelected"` - IspName string `json:"IspName" xml:"IspName"` - CountryName string `json:"CountryName" xml:"CountryName"` - GroupName string `json:"GroupName" xml:"GroupName"` - CityName string `json:"CityName" xml:"CityName"` - Mainland bool `json:"Mainland" xml:"Mainland"` - CountryCode string `json:"CountryCode" xml:"CountryCode"` - IspCode string `json:"IspCode" xml:"IspCode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_dns_gtm_monitor_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_dns_gtm_monitor_config.go deleted file mode 100644 index 7451bf4e9..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_dns_gtm_monitor_config.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// IspCityNodesInDescribeDnsGtmMonitorConfig is a nested struct in alidns response -type IspCityNodesInDescribeDnsGtmMonitorConfig struct { - IspCityNode []IspCityNode `json:"IspCityNode" xml:"IspCityNode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_gtm_monitor_available_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_gtm_monitor_available_config.go deleted file mode 100644 index 82c86e997..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_gtm_monitor_available_config.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// IspCityNodesInDescribeGtmMonitorAvailableConfig is a nested struct in alidns response -type IspCityNodesInDescribeGtmMonitorAvailableConfig struct { - IspCityNode []IspCityNode `json:"IspCityNode" xml:"IspCityNode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_gtm_monitor_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_gtm_monitor_config.go deleted file mode 100644 index 7f531d449..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_gtm_monitor_config.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// IspCityNodesInDescribeGtmMonitorConfig is a nested struct in alidns response -type IspCityNodesInDescribeGtmMonitorConfig struct { - IspCityNode []IspCityNode `json:"IspCityNode" xml:"IspCityNode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_line.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_line.go deleted file mode 100644 index 8becb75d1..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_line.go +++ /dev/null @@ -1,26 +0,0 @@ -package alidns - -//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. - -// Line is a nested struct in alidns response -type Line struct { - GroupCode string `json:"GroupCode" xml:"GroupCode"` - LineCode string `json:"LineCode" xml:"LineCode"` - LineName string `json:"LineName" xml:"LineName"` - GroupName string `json:"GroupName" xml:"GroupName"` - Status string `json:"Status" xml:"Status"` - FatherCode string `json:"FatherCode" xml:"FatherCode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_line_algorithm.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_line_algorithm.go deleted file mode 100644 index 2eff04de5..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_line_algorithm.go +++ /dev/null @@ -1,22 +0,0 @@ -package alidns - -//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. - -// LineAlgorithm is a nested struct in alidns response -type LineAlgorithm struct { - Line string `json:"Line" xml:"Line"` - Open bool `json:"Open" xml:"Open"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_line_algorithms.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_line_algorithms.go deleted file mode 100644 index 00f9433de..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_line_algorithms.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// LineAlgorithms is a nested struct in alidns response -type LineAlgorithms struct { - LineAlgorithm []LineAlgorithm `json:"LineAlgorithm" xml:"LineAlgorithm"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_dns_gtm_access_strategies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_dns_gtm_access_strategies.go deleted file mode 100644 index ba0154a26..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_dns_gtm_access_strategies.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// LinesInDescribeDnsGtmAccessStrategies is a nested struct in alidns response -type LinesInDescribeDnsGtmAccessStrategies struct { - Line []Line `json:"Line" xml:"Line"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_dns_gtm_access_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_dns_gtm_access_strategy.go deleted file mode 100644 index 0ffc44b73..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_dns_gtm_access_strategy.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// LinesInDescribeDnsGtmAccessStrategy is a nested struct in alidns response -type LinesInDescribeDnsGtmAccessStrategy struct { - Line []Line `json:"Line" xml:"Line"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_dns_gtm_access_strategy_available_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_dns_gtm_access_strategy_available_config.go deleted file mode 100644 index 5e044f885..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_dns_gtm_access_strategy_available_config.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// LinesInDescribeDnsGtmAccessStrategyAvailableConfig is a nested struct in alidns response -type LinesInDescribeDnsGtmAccessStrategyAvailableConfig struct { - Line []Line `json:"Line" xml:"Line"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategies.go deleted file mode 100644 index 75defbd04..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategies.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// LinesInDescribeGtmAccessStrategies is a nested struct in alidns response -type LinesInDescribeGtmAccessStrategies struct { - Line []Line `json:"Line" xml:"Line"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategy.go deleted file mode 100644 index 86d10f668..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategy.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// LinesInDescribeGtmAccessStrategy is a nested struct in alidns response -type LinesInDescribeGtmAccessStrategy struct { - Line []Line `json:"Line" xml:"Line"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategy_available_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategy_available_config.go deleted file mode 100644 index 7289ff376..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategy_available_config.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// LinesInDescribeGtmAccessStrategyAvailableConfig is a nested struct in alidns response -type LinesInDescribeGtmAccessStrategyAvailableConfig struct { - Line []Line `json:"Line" xml:"Line"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_log.go deleted file mode 100644 index 83e251bfd..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_log.go +++ /dev/null @@ -1,37 +0,0 @@ -package alidns - -//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. - -// Log is a nested struct in alidns response -type Log struct { - OperTimestamp int64 `json:"OperTimestamp" xml:"OperTimestamp"` - Content string `json:"content" xml:"content"` - OperTime string `json:"OperTime" xml:"OperTime"` - Action string `json:"Action" xml:"Action"` - Id int64 `json:"Id" xml:"Id"` - ThreatTime string `json:"ThreatTime" xml:"ThreatTime"` - EntityName string `json:"EntityName" xml:"EntityName"` - SubDomain string `json:"SubDomain" xml:"SubDomain"` - EntityId string `json:"EntityId" xml:"EntityId"` - OperateTime string `json:"OperateTime" xml:"OperateTime"` - EntityType string `json:"EntityType" xml:"EntityType"` - OperAction string `json:"OperAction" xml:"OperAction"` - SourceIp string `json:"SourceIp" xml:"SourceIp"` - OperIp string `json:"OperIp" xml:"OperIp"` - ThreatLevel string `json:"ThreatLevel" xml:"ThreatLevel"` - ThreatType string `json:"ThreatType" xml:"ThreatType"` - Type string `json:"Type" xml:"Type"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_dns_gtm_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_dns_gtm_logs.go deleted file mode 100644 index f14db8b3e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_dns_gtm_logs.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// LogsInDescribeDnsGtmLogs is a nested struct in alidns response -type LogsInDescribeDnsGtmLogs struct { - Log []Log `json:"Log" xml:"Log"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_gtm_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_gtm_logs.go deleted file mode 100644 index b68a73a9d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_gtm_logs.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// LogsInDescribeGtmLogs is a nested struct in alidns response -type LogsInDescribeGtmLogs struct { - Log []Log `json:"Log" xml:"Log"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_pdns_operate_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_pdns_operate_logs.go deleted file mode 100644 index 866411a8c..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_pdns_operate_logs.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// LogsInDescribePdnsOperateLogs is a nested struct in alidns response -type LogsInDescribePdnsOperateLogs struct { - Log []Log `json:"Log" xml:"Log"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_pdns_threat_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_pdns_threat_logs.go deleted file mode 100644 index eb99216fd..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs_in_describe_pdns_threat_logs.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// LogsInDescribePdnsThreatLogs is a nested struct in alidns response -type LogsInDescribePdnsThreatLogs struct { - Log []Log `json:"Log" xml:"Log"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_new_dns_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_new_dns_servers.go deleted file mode 100644 index 5fd8b180f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_new_dns_servers.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// NewDnsServers is a nested struct in alidns response -type NewDnsServers struct { - DnsServer []string `json:"DnsServer" xml:"DnsServer"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_original_dns_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_original_dns_servers.go deleted file mode 100644 index b6f90bb3d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_original_dns_servers.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// OriginalDnsServers is a nested struct in alidns response -type OriginalDnsServers struct { - DnsServer []string `json:"DnsServer" xml:"DnsServer"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_preview.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_preview.go deleted file mode 100644 index cd677b274..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_preview.go +++ /dev/null @@ -1,24 +0,0 @@ -package alidns - -//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. - -// Preview is a nested struct in alidns response -type Preview struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Name string `json:"Name" xml:"Name"` - UserDomainName string `json:"UserDomainName" xml:"UserDomainName"` - SwitchInfos SwitchInfos `json:"SwitchInfos" xml:"SwitchInfos"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_previews.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_previews.go deleted file mode 100644 index 2c523468f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_previews.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// Previews is a nested struct in alidns response -type Previews struct { - Preview []Preview `json:"Preview" xml:"Preview"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record.go deleted file mode 100644 index 59df2f74b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record.go +++ /dev/null @@ -1,32 +0,0 @@ -package alidns - -//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. - -// Record is a nested struct in alidns response -type Record struct { - Value string `json:"Value" xml:"Value"` - TTL int64 `json:"TTL" xml:"TTL"` - Remark string `json:"Remark" xml:"Remark"` - DomainName string `json:"DomainName" xml:"DomainName"` - RR string `json:"RR" xml:"RR"` - Priority int64 `json:"Priority" xml:"Priority"` - RecordId string `json:"RecordId" xml:"RecordId"` - Status string `json:"Status" xml:"Status"` - Locked bool `json:"Locked" xml:"Locked"` - Weight int `json:"Weight" xml:"Weight"` - Line string `json:"Line" xml:"Line"` - Type string `json:"Type" xml:"Type"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_line.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_line.go deleted file mode 100644 index d4db70380..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_line.go +++ /dev/null @@ -1,24 +0,0 @@ -package alidns - -//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. - -// RecordLine is a nested struct in alidns response -type RecordLine struct { - LineDisplayName string `json:"LineDisplayName" xml:"LineDisplayName"` - LineCode string `json:"LineCode" xml:"LineCode"` - LineName string `json:"LineName" xml:"LineName"` - FatherCode string `json:"FatherCode" xml:"FatherCode"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_domain_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_domain_info.go deleted file mode 100644 index 203f525b2..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_domain_info.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// RecordLinesInDescribeDomainInfo is a nested struct in alidns response -type RecordLinesInDescribeDomainInfo struct { - RecordLine []RecordLine `json:"RecordLine" xml:"RecordLine"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_support_lines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_support_lines.go deleted file mode 100644 index 5c2e05f20..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_support_lines.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// RecordLinesInDescribeSupportLines is a nested struct in alidns response -type RecordLinesInDescribeSupportLines struct { - RecordLine []RecordLine `json:"RecordLine" xml:"RecordLine"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_log.go deleted file mode 100644 index e6bf34f33..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_log.go +++ /dev/null @@ -1,25 +0,0 @@ -package alidns - -//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. - -// RecordLog is a nested struct in alidns response -type RecordLog struct { - ActionTime string `json:"ActionTime" xml:"ActionTime"` - ActionTimestamp int64 `json:"ActionTimestamp" xml:"ActionTimestamp"` - Action string `json:"Action" xml:"Action"` - Message string `json:"Message" xml:"Message"` - ClientIp string `json:"ClientIp" xml:"ClientIp"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_logs.go deleted file mode 100644 index b5a42b5eb..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_logs.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// RecordLogs is a nested struct in alidns response -type RecordLogs struct { - RecordLog []RecordLog `json:"RecordLog" xml:"RecordLog"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_recovery_plan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_recovery_plan.go deleted file mode 100644 index 2c885958b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_recovery_plan.go +++ /dev/null @@ -1,33 +0,0 @@ -package alidns - -//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. - -// RecoveryPlan is a nested struct in alidns response -type RecoveryPlan struct { - RecoveryPlanId int64 `json:"RecoveryPlanId" xml:"RecoveryPlanId"` - Name string `json:"Name" xml:"Name"` - Remark string `json:"Remark" xml:"Remark"` - FaultAddrPoolNum int `json:"FaultAddrPoolNum" xml:"FaultAddrPoolNum"` - LastExecuteTime string `json:"LastExecuteTime" xml:"LastExecuteTime"` - LastExecuteTimestamp int64 `json:"LastExecuteTimestamp" xml:"LastExecuteTimestamp"` - LastRollbackTime string `json:"LastRollbackTime" xml:"LastRollbackTime"` - LastRollbackTimestamp int64 `json:"LastRollbackTimestamp" xml:"LastRollbackTimestamp"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` - UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` - Status string `json:"Status" xml:"Status"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_recovery_plans.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_recovery_plans.go deleted file mode 100644 index 820ea7835..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_recovery_plans.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// RecoveryPlans is a nested struct in alidns response -type RecoveryPlans struct { - RecoveryPlan []RecoveryPlan `json:"RecoveryPlan" xml:"RecoveryPlan"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_selected_domain_lines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_selected_domain_lines.go deleted file mode 100644 index ab612f48d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_selected_domain_lines.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// SelectedDomainLines is a nested struct in alidns response -type SelectedDomainLines struct { - SelectedDomainLine []string `json:"SelectedDomainLine" xml:"SelectedDomainLine"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_selected_ipv4_lines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_selected_ipv4_lines.go deleted file mode 100644 index 826553019..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_selected_ipv4_lines.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// SelectedIpv4Lines is a nested struct in alidns response -type SelectedIpv4Lines struct { - SelectedIpv4Line []string `json:"SelectedIpv4Line" xml:"SelectedIpv4Line"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_selected_ipv6_lines.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_selected_ipv6_lines.go deleted file mode 100644 index fdf3c6455..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_selected_ipv6_lines.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// SelectedIpv6Lines is a nested struct in alidns response -type SelectedIpv6Lines struct { - SelectedIpv6Line []string `json:"SelectedIpv6Line" xml:"SelectedIpv6Line"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domain.go deleted file mode 100644 index d40b0e3c9..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domain.go +++ /dev/null @@ -1,25 +0,0 @@ -package alidns - -//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. - -// SlbSubDomain is a nested struct in alidns response -type SlbSubDomain struct { - SubDomain string `json:"SubDomain" xml:"SubDomain"` - RecordCount int64 `json:"RecordCount" xml:"RecordCount"` - Open bool `json:"Open" xml:"Open"` - Type string `json:"Type" xml:"Type"` - LineAlgorithms LineAlgorithms `json:"LineAlgorithms" xml:"LineAlgorithms"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domains.go deleted file mode 100644 index 4618d59c3..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domains.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// SlbSubDomains is a nested struct in alidns response -type SlbSubDomains struct { - SlbSubDomain []SlbSubDomain `json:"SlbSubDomain" xml:"SlbSubDomain"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_source_dns_server.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_source_dns_server.go deleted file mode 100644 index 461bc2d57..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_source_dns_server.go +++ /dev/null @@ -1,22 +0,0 @@ -package alidns - -//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. - -// SourceDnsServer is a nested struct in alidns response -type SourceDnsServer struct { - Host string `json:"Host" xml:"Host"` - Port string `json:"Port" xml:"Port"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_source_dns_servers.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_source_dns_servers.go deleted file mode 100644 index 67d32be6c..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_source_dns_servers.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// SourceDnsServers is a nested struct in alidns response -type SourceDnsServers struct { - SourceDnsServer []SourceDnsServer `json:"SourceDnsServer" xml:"SourceDnsServer"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistic.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistic.go deleted file mode 100644 index 9384b6e7b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistic.go +++ /dev/null @@ -1,33 +0,0 @@ -package alidns - -//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. - -// Statistic is a nested struct in alidns response -type Statistic struct { - HttpCount int64 `json:"HttpCount" xml:"HttpCount"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - Timestamp int64 `json:"Timestamp" xml:"Timestamp"` - DomainType string `json:"DomainType" xml:"DomainType"` - DomainName string `json:"DomainName" xml:"DomainName"` - V6HttpCount int64 `json:"V6HttpCount" xml:"V6HttpCount"` - SubDomain string `json:"SubDomain" xml:"SubDomain"` - V4HttpCount int64 `json:"V4HttpCount" xml:"V4HttpCount"` - V6HttpsCount int64 `json:"V6HttpsCount" xml:"V6HttpsCount"` - IpCount int64 `json:"IpCount" xml:"IpCount"` - HttpsCount int64 `json:"HttpsCount" xml:"HttpsCount"` - Count int64 `json:"Count" xml:"Count"` - V4HttpsCount int64 `json:"V4HttpsCount" xml:"V4HttpsCount"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistic_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistic_item.go deleted file mode 100644 index 126c8161e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistic_item.go +++ /dev/null @@ -1,43 +0,0 @@ -package alidns - -//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. - -// StatisticItem is a nested struct in alidns response -type StatisticItem struct { - UdpTotalCount int64 `json:"UdpTotalCount" xml:"UdpTotalCount"` - ThreatCount int64 `json:"ThreatCount" xml:"ThreatCount"` - DomainCount int64 `json:"DomainCount" xml:"DomainCount"` - HttpCount int64 `json:"HttpCount" xml:"HttpCount"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - Timestamp int64 `json:"Timestamp" xml:"Timestamp"` - DomainName string `json:"DomainName" xml:"DomainName"` - V6HttpCount int64 `json:"V6HttpCount" xml:"V6HttpCount"` - SubDomain string `json:"SubDomain" xml:"SubDomain"` - MaxThreatLevel string `json:"MaxThreatLevel" xml:"MaxThreatLevel"` - V4HttpCount int64 `json:"V4HttpCount" xml:"V4HttpCount"` - V6HttpsCount int64 `json:"V6HttpsCount" xml:"V6HttpsCount"` - IpCount int64 `json:"IpCount" xml:"IpCount"` - HttpsCount int64 `json:"HttpsCount" xml:"HttpsCount"` - LatestThreatTime int64 `json:"LatestThreatTime" xml:"LatestThreatTime"` - DohTotalCount int64 `json:"DohTotalCount" xml:"DohTotalCount"` - SourceIp string `json:"SourceIp" xml:"SourceIp"` - V4Count int64 `json:"V4Count" xml:"V4Count"` - V6Count int64 `json:"V6Count" xml:"V6Count"` - ThreatLevel string `json:"ThreatLevel" xml:"ThreatLevel"` - V4HttpsCount int64 `json:"V4HttpsCount" xml:"V4HttpsCount"` - ThreatType string `json:"ThreatType" xml:"ThreatType"` - ThreatInfo []ThreatItem `json:"ThreatInfo" xml:"ThreatInfo"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_account_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_account_statistics.go deleted file mode 100644 index b35ab8bb0..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_account_statistics.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// StatisticsInDescribeDohAccountStatistics is a nested struct in alidns response -type StatisticsInDescribeDohAccountStatistics struct { - Statistic []Statistic `json:"Statistic" xml:"Statistic"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_domain_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_domain_statistics.go deleted file mode 100644 index 33c657e9c..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_domain_statistics.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// StatisticsInDescribeDohDomainStatistics is a nested struct in alidns response -type StatisticsInDescribeDohDomainStatistics struct { - Statistic []Statistic `json:"Statistic" xml:"Statistic"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_domain_statistics_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_domain_statistics_summary.go deleted file mode 100644 index eac87f3b7..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_domain_statistics_summary.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// StatisticsInDescribeDohDomainStatisticsSummary is a nested struct in alidns response -type StatisticsInDescribeDohDomainStatisticsSummary struct { - Statistic []Statistic `json:"Statistic" xml:"Statistic"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_sub_domain_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_sub_domain_statistics.go deleted file mode 100644 index b36068498..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_sub_domain_statistics.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// StatisticsInDescribeDohSubDomainStatistics is a nested struct in alidns response -type StatisticsInDescribeDohSubDomainStatistics struct { - Statistic []Statistic `json:"Statistic" xml:"Statistic"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_sub_domain_statistics_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_sub_domain_statistics_summary.go deleted file mode 100644 index 80f86b686..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_sub_domain_statistics_summary.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// StatisticsInDescribeDohSubDomainStatisticsSummary is a nested struct in alidns response -type StatisticsInDescribeDohSubDomainStatisticsSummary struct { - Statistic []Statistic `json:"Statistic" xml:"Statistic"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_domain_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_domain_statistics.go deleted file mode 100644 index 462322d75..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_domain_statistics.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// StatisticsInDescribeDomainStatistics is a nested struct in alidns response -type StatisticsInDescribeDomainStatistics struct { - Statistic []Statistic `json:"Statistic" xml:"Statistic"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_domain_statistics_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_domain_statistics_summary.go deleted file mode 100644 index 27418d0ba..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_domain_statistics_summary.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// StatisticsInDescribeDomainStatisticsSummary is a nested struct in alidns response -type StatisticsInDescribeDomainStatisticsSummary struct { - Statistic []Statistic `json:"Statistic" xml:"Statistic"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_record_statistics.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_record_statistics.go deleted file mode 100644 index 7303c1a39..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_record_statistics.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// StatisticsInDescribeRecordStatistics is a nested struct in alidns response -type StatisticsInDescribeRecordStatistics struct { - Statistic []Statistic `json:"Statistic" xml:"Statistic"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_record_statistics_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_record_statistics_summary.go deleted file mode 100644 index fcda10250..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_record_statistics_summary.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// StatisticsInDescribeRecordStatisticsSummary is a nested struct in alidns response -type StatisticsInDescribeRecordStatisticsSummary struct { - Statistic []Statistic `json:"Statistic" xml:"Statistic"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_strategies_in_describe_dns_gtm_access_strategies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_strategies_in_describe_dns_gtm_access_strategies.go deleted file mode 100644 index 7d999835c..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_strategies_in_describe_dns_gtm_access_strategies.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// StrategiesInDescribeDnsGtmAccessStrategies is a nested struct in alidns response -type StrategiesInDescribeDnsGtmAccessStrategies struct { - Strategy []Strategy `json:"Strategy" xml:"Strategy"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_strategies_in_describe_gtm_access_strategies.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_strategies_in_describe_gtm_access_strategies.go deleted file mode 100644 index 93109d8a2..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_strategies_in_describe_gtm_access_strategies.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// StrategiesInDescribeGtmAccessStrategies is a nested struct in alidns response -type StrategiesInDescribeGtmAccessStrategies struct { - Strategy []Strategy `json:"Strategy" xml:"Strategy"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_strategy.go deleted file mode 100644 index e90d82f28..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_strategy.go +++ /dev/null @@ -1,41 +0,0 @@ -package alidns - -//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. - -// Strategy is a nested struct in alidns response -type Strategy struct { - StrategyName string `json:"StrategyName" xml:"StrategyName"` - FailoverAddrPoolMonitorStatus string `json:"FailoverAddrPoolMonitorStatus" xml:"FailoverAddrPoolMonitorStatus"` - FailoverAddrPoolId string `json:"FailoverAddrPoolId" xml:"FailoverAddrPoolId"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - StrategyId string `json:"StrategyId" xml:"StrategyId"` - FailoverAddrPoolStatus string `json:"FailoverAddrPoolStatus" xml:"FailoverAddrPoolStatus"` - DefaultAddrPoolMonitorStatus string `json:"DefaultAddrPoolMonitorStatus" xml:"DefaultAddrPoolMonitorStatus"` - StrategyMode string `json:"StrategyMode" xml:"StrategyMode"` - FailoverAddrPoolName string `json:"FailoverAddrPoolName" xml:"FailoverAddrPoolName"` - EffectiveLbaStrategy string `json:"EffectiveLbaStrategy" xml:"EffectiveLbaStrategy"` - AccessMode string `json:"AccessMode" xml:"AccessMode"` - AccessStatus string `json:"AccessStatus" xml:"AccessStatus"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - EffectiveAddrPoolType string `json:"EffectiveAddrPoolType" xml:"EffectiveAddrPoolType"` - EffectiveAddrPoolGroupType string `json:"EffectiveAddrPoolGroupType" xml:"EffectiveAddrPoolGroupType"` - DefaultAddrPoolId string `json:"DefaultAddrPoolId" xml:"DefaultAddrPoolId"` - DefaultAddrPoolName string `json:"DefaultAddrPoolName" xml:"DefaultAddrPoolName"` - DefaultAddrPoolStatus string `json:"DefaultAddrPoolStatus" xml:"DefaultAddrPoolStatus"` - EffectiveAddrPools EffectiveAddrPools `json:"EffectiveAddrPools" xml:"EffectiveAddrPools"` - Lines LinesInDescribeDnsGtmAccessStrategies `json:"Lines" xml:"Lines"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_switch_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_switch_info.go deleted file mode 100644 index 17e40fcfc..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_switch_info.go +++ /dev/null @@ -1,22 +0,0 @@ -package alidns - -//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. - -// SwitchInfo is a nested struct in alidns response -type SwitchInfo struct { - StrategyName string `json:"StrategyName" xml:"StrategyName"` - Content string `json:"Content" xml:"Content"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_switch_infos.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_switch_infos.go deleted file mode 100644 index ea9dd4063..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_switch_infos.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// SwitchInfos is a nested struct in alidns response -type SwitchInfos struct { - SwitchInfo []SwitchInfo `json:"SwitchInfo" xml:"SwitchInfo"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag.go deleted file mode 100644 index 22eb12460..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag.go +++ /dev/null @@ -1,23 +0,0 @@ -package alidns - -//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. - -// Tag is a nested struct in alidns response -type Tag struct { - Key string `json:"Key" xml:"Key"` - Value string `json:"Value" xml:"Value"` - Values []string `json:"Values" xml:"Values"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag_resource.go deleted file mode 100644 index 1a9c60903..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag_resource.go +++ /dev/null @@ -1,24 +0,0 @@ -package alidns - -//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. - -// TagResource is a nested struct in alidns response -type TagResource struct { - TagKey string `json:"TagKey" xml:"TagKey"` - TagValue string `json:"TagValue" xml:"TagValue"` - ResourceId string `json:"ResourceId" xml:"ResourceId"` - ResourceType string `json:"ResourceType" xml:"ResourceType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag_resources.go deleted file mode 100644 index f4fea54bc..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag_resources.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// TagResources is a nested struct in alidns response -type TagResources struct { - TagResource []TagResource `json:"TagResource" xml:"TagResource"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tags_in_describe_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tags_in_describe_domains.go deleted file mode 100644 index c868795fe..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tags_in_describe_domains.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// TagsInDescribeDomains is a nested struct in alidns response -type TagsInDescribeDomains struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tags_in_describe_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tags_in_describe_tags.go deleted file mode 100644 index 114f2abe4..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tags_in_describe_tags.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// TagsInDescribeTags is a nested struct in alidns response -type TagsInDescribeTags struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_threat_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_threat_info.go deleted file mode 100644 index adf3ee0c1..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_threat_info.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// ThreatInfo is a nested struct in alidns response -type ThreatInfo struct { - ThreatItem []ThreatItem `json:"ThreatItem" xml:"ThreatItem"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_threat_item.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_threat_item.go deleted file mode 100644 index e5a501243..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_threat_item.go +++ /dev/null @@ -1,22 +0,0 @@ -package alidns - -//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. - -// ThreatItem is a nested struct in alidns response -type ThreatItem struct { - ThreatLevel string `json:"ThreatLevel" xml:"ThreatLevel"` - ThreatType string `json:"ThreatType" xml:"ThreatType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_used_quota.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_used_quota.go deleted file mode 100644 index 7590d14b2..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_used_quota.go +++ /dev/null @@ -1,24 +0,0 @@ -package alidns - -//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. - -// UsedQuota is a nested struct in alidns response -type UsedQuota struct { - SmsUsedCount int `json:"SmsUsedCount" xml:"SmsUsedCount"` - TaskUsedCount int `json:"TaskUsedCount" xml:"TaskUsedCount"` - EmailUsedCount int `json:"EmailUsedCount" xml:"EmailUsedCount"` - DingtalkUsedCount int `json:"DingtalkUsedCount" xml:"DingtalkUsedCount"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_user_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_user_info.go deleted file mode 100644 index 6d31f4bff..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_user_info.go +++ /dev/null @@ -1,25 +0,0 @@ -package alidns - -//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. - -// UserInfo is a nested struct in alidns response -type UserInfo struct { - AvailableService string `json:"AvailableService" xml:"AvailableService"` - ServiceType string `json:"ServiceType" xml:"ServiceType"` - State string `json:"State" xml:"State"` - StoppedService string `json:"StoppedService" xml:"StoppedService"` - PdnsId int64 `json:"PdnsId" xml:"PdnsId"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_values.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_values.go deleted file mode 100644 index 4d80b657b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_values.go +++ /dev/null @@ -1,21 +0,0 @@ -package alidns - -//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. - -// Values is a nested struct in alidns response -type Values struct { - Value []string `json:"Value" xml:"Value"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/switch_dns_gtm_instance_strategy_mode.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/switch_dns_gtm_instance_strategy_mode.go deleted file mode 100644 index 493dde35e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/switch_dns_gtm_instance_strategy_mode.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// SwitchDnsGtmInstanceStrategyMode invokes the alidns.SwitchDnsGtmInstanceStrategyMode API synchronously -func (client *Client) SwitchDnsGtmInstanceStrategyMode(request *SwitchDnsGtmInstanceStrategyModeRequest) (response *SwitchDnsGtmInstanceStrategyModeResponse, err error) { - response = CreateSwitchDnsGtmInstanceStrategyModeResponse() - err = client.DoAction(request, response) - return -} - -// SwitchDnsGtmInstanceStrategyModeWithChan invokes the alidns.SwitchDnsGtmInstanceStrategyMode API asynchronously -func (client *Client) SwitchDnsGtmInstanceStrategyModeWithChan(request *SwitchDnsGtmInstanceStrategyModeRequest) (<-chan *SwitchDnsGtmInstanceStrategyModeResponse, <-chan error) { - responseChan := make(chan *SwitchDnsGtmInstanceStrategyModeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SwitchDnsGtmInstanceStrategyMode(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SwitchDnsGtmInstanceStrategyModeWithCallback invokes the alidns.SwitchDnsGtmInstanceStrategyMode API asynchronously -func (client *Client) SwitchDnsGtmInstanceStrategyModeWithCallback(request *SwitchDnsGtmInstanceStrategyModeRequest, callback func(response *SwitchDnsGtmInstanceStrategyModeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SwitchDnsGtmInstanceStrategyModeResponse - var err error - defer close(result) - response, err = client.SwitchDnsGtmInstanceStrategyMode(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SwitchDnsGtmInstanceStrategyModeRequest is the request struct for api SwitchDnsGtmInstanceStrategyMode -type SwitchDnsGtmInstanceStrategyModeRequest struct { - *requests.RpcRequest - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - StrategyMode string `position:"Query" name:"StrategyMode"` - Lang string `position:"Query" name:"Lang"` -} - -// SwitchDnsGtmInstanceStrategyModeResponse is the response struct for api SwitchDnsGtmInstanceStrategyMode -type SwitchDnsGtmInstanceStrategyModeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSwitchDnsGtmInstanceStrategyModeRequest creates a request to invoke SwitchDnsGtmInstanceStrategyMode API -func CreateSwitchDnsGtmInstanceStrategyModeRequest() (request *SwitchDnsGtmInstanceStrategyModeRequest) { - request = &SwitchDnsGtmInstanceStrategyModeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "SwitchDnsGtmInstanceStrategyMode", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateSwitchDnsGtmInstanceStrategyModeResponse creates a response to parse from SwitchDnsGtmInstanceStrategyMode response -func CreateSwitchDnsGtmInstanceStrategyModeResponse() (response *SwitchDnsGtmInstanceStrategyModeResponse) { - response = &SwitchDnsGtmInstanceStrategyModeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/tag_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/tag_resources.go deleted file mode 100644 index b2fc3e128..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/tag_resources.go +++ /dev/null @@ -1,110 +0,0 @@ -package alidns - -//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" -) - -// TagResources invokes the alidns.TagResources API synchronously -func (client *Client) TagResources(request *TagResourcesRequest) (response *TagResourcesResponse, err error) { - response = CreateTagResourcesResponse() - err = client.DoAction(request, response) - return -} - -// TagResourcesWithChan invokes the alidns.TagResources API asynchronously -func (client *Client) TagResourcesWithChan(request *TagResourcesRequest) (<-chan *TagResourcesResponse, <-chan error) { - responseChan := make(chan *TagResourcesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.TagResources(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// TagResourcesWithCallback invokes the alidns.TagResources API asynchronously -func (client *Client) TagResourcesWithCallback(request *TagResourcesRequest, callback func(response *TagResourcesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *TagResourcesResponse - var err error - defer close(result) - response, err = client.TagResources(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// TagResourcesRequest is the request struct for api TagResources -type TagResourcesRequest struct { - *requests.RpcRequest - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - ResourceType string `position:"Query" name:"ResourceType"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Tag *[]TagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` - Lang string `position:"Query" name:"Lang"` - OverWrite requests.Boolean `position:"Query" name:"OverWrite"` -} - -// TagResourcesTag is a repeated param struct in TagResourcesRequest -type TagResourcesTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// TagResourcesResponse is the response struct for api TagResources -type TagResourcesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateTagResourcesRequest creates a request to invoke TagResources API -func CreateTagResourcesRequest() (request *TagResourcesRequest) { - request = &TagResourcesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "TagResources", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateTagResourcesResponse creates a response to parse from TagResources response -func CreateTagResourcesResponse() (response *TagResourcesResponse) { - response = &TagResourcesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/transfer_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/transfer_domain.go deleted file mode 100644 index 2e1cd13b7..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/transfer_domain.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// TransferDomain invokes the alidns.TransferDomain API synchronously -func (client *Client) TransferDomain(request *TransferDomainRequest) (response *TransferDomainResponse, err error) { - response = CreateTransferDomainResponse() - err = client.DoAction(request, response) - return -} - -// TransferDomainWithChan invokes the alidns.TransferDomain API asynchronously -func (client *Client) TransferDomainWithChan(request *TransferDomainRequest) (<-chan *TransferDomainResponse, <-chan error) { - responseChan := make(chan *TransferDomainResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.TransferDomain(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// TransferDomainWithCallback invokes the alidns.TransferDomain API asynchronously -func (client *Client) TransferDomainWithCallback(request *TransferDomainRequest, callback func(response *TransferDomainResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *TransferDomainResponse - var err error - defer close(result) - response, err = client.TransferDomain(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// TransferDomainRequest is the request struct for api TransferDomain -type TransferDomainRequest struct { - *requests.RpcRequest - DomainNames string `position:"Query" name:"DomainNames"` - Remark string `position:"Query" name:"Remark"` - TargetUserId requests.Integer `position:"Query" name:"TargetUserId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// TransferDomainResponse is the response struct for api TransferDomain -type TransferDomainResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TaskId int64 `json:"TaskId" xml:"TaskId"` -} - -// CreateTransferDomainRequest creates a request to invoke TransferDomain API -func CreateTransferDomainRequest() (request *TransferDomainRequest) { - request = &TransferDomainRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "TransferDomain", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateTransferDomainResponse creates a response to parse from TransferDomain response -func CreateTransferDomainResponse() (response *TransferDomainResponse) { - response = &TransferDomainResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/unbind_instance_domains.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/unbind_instance_domains.go deleted file mode 100644 index 752de069d..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/unbind_instance_domains.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// UnbindInstanceDomains invokes the alidns.UnbindInstanceDomains API synchronously -func (client *Client) UnbindInstanceDomains(request *UnbindInstanceDomainsRequest) (response *UnbindInstanceDomainsResponse, err error) { - response = CreateUnbindInstanceDomainsResponse() - err = client.DoAction(request, response) - return -} - -// UnbindInstanceDomainsWithChan invokes the alidns.UnbindInstanceDomains API asynchronously -func (client *Client) UnbindInstanceDomainsWithChan(request *UnbindInstanceDomainsRequest) (<-chan *UnbindInstanceDomainsResponse, <-chan error) { - responseChan := make(chan *UnbindInstanceDomainsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UnbindInstanceDomains(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UnbindInstanceDomainsWithCallback invokes the alidns.UnbindInstanceDomains API asynchronously -func (client *Client) UnbindInstanceDomainsWithCallback(request *UnbindInstanceDomainsRequest, callback func(response *UnbindInstanceDomainsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UnbindInstanceDomainsResponse - var err error - defer close(result) - response, err = client.UnbindInstanceDomains(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UnbindInstanceDomainsRequest is the request struct for api UnbindInstanceDomains -type UnbindInstanceDomainsRequest struct { - *requests.RpcRequest - DomainNames string `position:"Query" name:"DomainNames"` - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// UnbindInstanceDomainsResponse is the response struct for api UnbindInstanceDomains -type UnbindInstanceDomainsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - SuccessCount int `json:"SuccessCount" xml:"SuccessCount"` - FailedCount int `json:"FailedCount" xml:"FailedCount"` -} - -// CreateUnbindInstanceDomainsRequest creates a request to invoke UnbindInstanceDomains API -func CreateUnbindInstanceDomainsRequest() (request *UnbindInstanceDomainsRequest) { - request = &UnbindInstanceDomainsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UnbindInstanceDomains", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUnbindInstanceDomainsResponse creates a response to parse from UnbindInstanceDomains response -func CreateUnbindInstanceDomainsResponse() (response *UnbindInstanceDomainsResponse) { - response = &UnbindInstanceDomainsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/untag_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/untag_resources.go deleted file mode 100644 index e85e994e3..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/untag_resources.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// UntagResources invokes the alidns.UntagResources API synchronously -func (client *Client) UntagResources(request *UntagResourcesRequest) (response *UntagResourcesResponse, err error) { - response = CreateUntagResourcesResponse() - err = client.DoAction(request, response) - return -} - -// UntagResourcesWithChan invokes the alidns.UntagResources API asynchronously -func (client *Client) UntagResourcesWithChan(request *UntagResourcesRequest) (<-chan *UntagResourcesResponse, <-chan error) { - responseChan := make(chan *UntagResourcesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UntagResources(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UntagResourcesWithCallback invokes the alidns.UntagResources API asynchronously -func (client *Client) UntagResourcesWithCallback(request *UntagResourcesRequest, callback func(response *UntagResourcesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UntagResourcesResponse - var err error - defer close(result) - response, err = client.UntagResources(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UntagResourcesRequest is the request struct for api UntagResources -type UntagResourcesRequest struct { - *requests.RpcRequest - All requests.Boolean `position:"Query" name:"All"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - ResourceType string `position:"Query" name:"ResourceType"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` - TagKey *[]string `position:"Query" name:"TagKey" type:"Repeated"` -} - -// UntagResourcesResponse is the response struct for api UntagResources -type UntagResourcesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUntagResourcesRequest creates a request to invoke UntagResources API -func CreateUntagResourcesRequest() (request *UntagResourcesRequest) { - request = &UntagResourcesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UntagResources", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUntagResourcesResponse creates a response to parse from UntagResources response -func CreateUntagResourcesResponse() (response *UntagResourcesResponse) { - response = &UntagResourcesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_app_key_state.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_app_key_state.go deleted file mode 100644 index d57d77505..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_app_key_state.go +++ /dev/null @@ -1,101 +0,0 @@ -package alidns - -//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" -) - -// UpdateAppKeyState invokes the alidns.UpdateAppKeyState API synchronously -func (client *Client) UpdateAppKeyState(request *UpdateAppKeyStateRequest) (response *UpdateAppKeyStateResponse, err error) { - response = CreateUpdateAppKeyStateResponse() - err = client.DoAction(request, response) - return -} - -// UpdateAppKeyStateWithChan invokes the alidns.UpdateAppKeyState API asynchronously -func (client *Client) UpdateAppKeyStateWithChan(request *UpdateAppKeyStateRequest) (<-chan *UpdateAppKeyStateResponse, <-chan error) { - responseChan := make(chan *UpdateAppKeyStateResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateAppKeyState(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateAppKeyStateWithCallback invokes the alidns.UpdateAppKeyState API asynchronously -func (client *Client) UpdateAppKeyStateWithCallback(request *UpdateAppKeyStateRequest, callback func(response *UpdateAppKeyStateResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateAppKeyStateResponse - var err error - defer close(result) - response, err = client.UpdateAppKeyState(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateAppKeyStateRequest is the request struct for api UpdateAppKeyState -type UpdateAppKeyStateRequest struct { - *requests.RpcRequest - AppKeyId string `position:"Query" name:"AppKeyId"` - State string `position:"Query" name:"State"` - Lang string `position:"Query" name:"Lang"` -} - -// UpdateAppKeyStateResponse is the response struct for api UpdateAppKeyState -type UpdateAppKeyStateResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateAppKeyStateRequest creates a request to invoke UpdateAppKeyState API -func CreateUpdateAppKeyStateRequest() (request *UpdateAppKeyStateRequest) { - request = &UpdateAppKeyStateRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateAppKeyState", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateAppKeyStateResponse creates a response to parse from UpdateAppKeyState response -func CreateUpdateAppKeyStateResponse() (response *UpdateAppKeyStateResponse) { - response = &UpdateAppKeyStateResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_custom_line.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_custom_line.go deleted file mode 100644 index 8523dc1fe..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_custom_line.go +++ /dev/null @@ -1,109 +0,0 @@ -package alidns - -//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" -) - -// UpdateCustomLine invokes the alidns.UpdateCustomLine API synchronously -func (client *Client) UpdateCustomLine(request *UpdateCustomLineRequest) (response *UpdateCustomLineResponse, err error) { - response = CreateUpdateCustomLineResponse() - err = client.DoAction(request, response) - return -} - -// UpdateCustomLineWithChan invokes the alidns.UpdateCustomLine API asynchronously -func (client *Client) UpdateCustomLineWithChan(request *UpdateCustomLineRequest) (<-chan *UpdateCustomLineResponse, <-chan error) { - responseChan := make(chan *UpdateCustomLineResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateCustomLine(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateCustomLineWithCallback invokes the alidns.UpdateCustomLine API asynchronously -func (client *Client) UpdateCustomLineWithCallback(request *UpdateCustomLineRequest, callback func(response *UpdateCustomLineResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateCustomLineResponse - var err error - defer close(result) - response, err = client.UpdateCustomLine(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateCustomLineRequest is the request struct for api UpdateCustomLine -type UpdateCustomLineRequest struct { - *requests.RpcRequest - LineId requests.Integer `position:"Query" name:"LineId"` - IpSegment *[]UpdateCustomLineIpSegment `position:"Query" name:"IpSegment" type:"Repeated"` - UserClientIp string `position:"Query" name:"UserClientIp"` - LineName string `position:"Query" name:"LineName"` - Lang string `position:"Query" name:"Lang"` -} - -// UpdateCustomLineIpSegment is a repeated param struct in UpdateCustomLineRequest -type UpdateCustomLineIpSegment struct { - EndIp string `name:"EndIp"` - StartIp string `name:"StartIp"` -} - -// UpdateCustomLineResponse is the response struct for api UpdateCustomLine -type UpdateCustomLineResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateCustomLineRequest creates a request to invoke UpdateCustomLine API -func CreateUpdateCustomLineRequest() (request *UpdateCustomLineRequest) { - request = &UpdateCustomLineRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateCustomLine", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateCustomLineResponse creates a response to parse from UpdateCustomLine response -func CreateUpdateCustomLineResponse() (response *UpdateCustomLineResponse) { - response = &UpdateCustomLineResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_cache_domain.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_cache_domain.go deleted file mode 100644 index 647c6ba52..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_cache_domain.go +++ /dev/null @@ -1,113 +0,0 @@ -package alidns - -//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" -) - -// UpdateDnsCacheDomain invokes the alidns.UpdateDnsCacheDomain API synchronously -func (client *Client) UpdateDnsCacheDomain(request *UpdateDnsCacheDomainRequest) (response *UpdateDnsCacheDomainResponse, err error) { - response = CreateUpdateDnsCacheDomainResponse() - err = client.DoAction(request, response) - return -} - -// UpdateDnsCacheDomainWithChan invokes the alidns.UpdateDnsCacheDomain API asynchronously -func (client *Client) UpdateDnsCacheDomainWithChan(request *UpdateDnsCacheDomainRequest) (<-chan *UpdateDnsCacheDomainResponse, <-chan error) { - responseChan := make(chan *UpdateDnsCacheDomainResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateDnsCacheDomain(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateDnsCacheDomainWithCallback invokes the alidns.UpdateDnsCacheDomain API asynchronously -func (client *Client) UpdateDnsCacheDomainWithCallback(request *UpdateDnsCacheDomainRequest, callback func(response *UpdateDnsCacheDomainResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateDnsCacheDomainResponse - var err error - defer close(result) - response, err = client.UpdateDnsCacheDomain(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateDnsCacheDomainRequest is the request struct for api UpdateDnsCacheDomain -type UpdateDnsCacheDomainRequest struct { - *requests.RpcRequest - SourceProtocol string `position:"Query" name:"SourceProtocol"` - Lang string `position:"Query" name:"Lang"` - DomainName string `position:"Query" name:"DomainName"` - CacheTtlMax requests.Integer `position:"Query" name:"CacheTtlMax"` - InstanceId string `position:"Query" name:"InstanceId"` - SourceEdns string `position:"Query" name:"SourceEdns"` - UserClientIp string `position:"Query" name:"UserClientIp"` - CacheTtlMin requests.Integer `position:"Query" name:"CacheTtlMin"` - SourceDnsServer *[]UpdateDnsCacheDomainSourceDnsServer `position:"Query" name:"SourceDnsServer" type:"Repeated"` -} - -// UpdateDnsCacheDomainSourceDnsServer is a repeated param struct in UpdateDnsCacheDomainRequest -type UpdateDnsCacheDomainSourceDnsServer struct { - Port string `name:"Port"` - Host string `name:"Host"` -} - -// UpdateDnsCacheDomainResponse is the response struct for api UpdateDnsCacheDomain -type UpdateDnsCacheDomainResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateDnsCacheDomainRequest creates a request to invoke UpdateDnsCacheDomain API -func CreateUpdateDnsCacheDomainRequest() (request *UpdateDnsCacheDomainRequest) { - request = &UpdateDnsCacheDomainRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateDnsCacheDomain", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateDnsCacheDomainResponse creates a response to parse from UpdateDnsCacheDomain response -func CreateUpdateDnsCacheDomainResponse() (response *UpdateDnsCacheDomainResponse) { - response = &UpdateDnsCacheDomainResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_cache_domain_remark.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_cache_domain_remark.go deleted file mode 100644 index fc1e712e0..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_cache_domain_remark.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// UpdateDnsCacheDomainRemark invokes the alidns.UpdateDnsCacheDomainRemark API synchronously -func (client *Client) UpdateDnsCacheDomainRemark(request *UpdateDnsCacheDomainRemarkRequest) (response *UpdateDnsCacheDomainRemarkResponse, err error) { - response = CreateUpdateDnsCacheDomainRemarkResponse() - err = client.DoAction(request, response) - return -} - -// UpdateDnsCacheDomainRemarkWithChan invokes the alidns.UpdateDnsCacheDomainRemark API asynchronously -func (client *Client) UpdateDnsCacheDomainRemarkWithChan(request *UpdateDnsCacheDomainRemarkRequest) (<-chan *UpdateDnsCacheDomainRemarkResponse, <-chan error) { - responseChan := make(chan *UpdateDnsCacheDomainRemarkResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateDnsCacheDomainRemark(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateDnsCacheDomainRemarkWithCallback invokes the alidns.UpdateDnsCacheDomainRemark API asynchronously -func (client *Client) UpdateDnsCacheDomainRemarkWithCallback(request *UpdateDnsCacheDomainRemarkRequest, callback func(response *UpdateDnsCacheDomainRemarkResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateDnsCacheDomainRemarkResponse - var err error - defer close(result) - response, err = client.UpdateDnsCacheDomainRemark(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateDnsCacheDomainRemarkRequest is the request struct for api UpdateDnsCacheDomainRemark -type UpdateDnsCacheDomainRemarkRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - Remark string `position:"Query" name:"Remark"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// UpdateDnsCacheDomainRemarkResponse is the response struct for api UpdateDnsCacheDomainRemark -type UpdateDnsCacheDomainRemarkResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateDnsCacheDomainRemarkRequest creates a request to invoke UpdateDnsCacheDomainRemark API -func CreateUpdateDnsCacheDomainRemarkRequest() (request *UpdateDnsCacheDomainRemarkRequest) { - request = &UpdateDnsCacheDomainRemarkRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateDnsCacheDomainRemark", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateDnsCacheDomainRemarkResponse creates a response to parse from UpdateDnsCacheDomainRemark response -func CreateUpdateDnsCacheDomainRemarkResponse() (response *UpdateDnsCacheDomainRemarkResponse) { - response = &UpdateDnsCacheDomainRemarkResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_access_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_access_strategy.go deleted file mode 100644 index 7b05ffbb4..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_access_strategy.go +++ /dev/null @@ -1,129 +0,0 @@ -package alidns - -//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" -) - -// UpdateDnsGtmAccessStrategy invokes the alidns.UpdateDnsGtmAccessStrategy API synchronously -func (client *Client) UpdateDnsGtmAccessStrategy(request *UpdateDnsGtmAccessStrategyRequest) (response *UpdateDnsGtmAccessStrategyResponse, err error) { - response = CreateUpdateDnsGtmAccessStrategyResponse() - err = client.DoAction(request, response) - return -} - -// UpdateDnsGtmAccessStrategyWithChan invokes the alidns.UpdateDnsGtmAccessStrategy API asynchronously -func (client *Client) UpdateDnsGtmAccessStrategyWithChan(request *UpdateDnsGtmAccessStrategyRequest) (<-chan *UpdateDnsGtmAccessStrategyResponse, <-chan error) { - responseChan := make(chan *UpdateDnsGtmAccessStrategyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateDnsGtmAccessStrategy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateDnsGtmAccessStrategyWithCallback invokes the alidns.UpdateDnsGtmAccessStrategy API asynchronously -func (client *Client) UpdateDnsGtmAccessStrategyWithCallback(request *UpdateDnsGtmAccessStrategyRequest, callback func(response *UpdateDnsGtmAccessStrategyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateDnsGtmAccessStrategyResponse - var err error - defer close(result) - response, err = client.UpdateDnsGtmAccessStrategy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateDnsGtmAccessStrategyRequest is the request struct for api UpdateDnsGtmAccessStrategy -type UpdateDnsGtmAccessStrategyRequest struct { - *requests.RpcRequest - DefaultLbaStrategy string `position:"Query" name:"DefaultLbaStrategy"` - FailoverAddrPoolType string `position:"Query" name:"FailoverAddrPoolType"` - DefaultAddrPoolType string `position:"Query" name:"DefaultAddrPoolType"` - FailoverMaxReturnAddrNum requests.Integer `position:"Query" name:"FailoverMaxReturnAddrNum"` - FailoverLbaStrategy string `position:"Query" name:"FailoverLbaStrategy"` - DefaultAddrPool *[]UpdateDnsGtmAccessStrategyDefaultAddrPool `position:"Query" name:"DefaultAddrPool" type:"Repeated"` - FailoverMinAvailableAddrNum requests.Integer `position:"Query" name:"FailoverMinAvailableAddrNum"` - DefaultMaxReturnAddrNum requests.Integer `position:"Query" name:"DefaultMaxReturnAddrNum"` - DefaultMinAvailableAddrNum requests.Integer `position:"Query" name:"DefaultMinAvailableAddrNum"` - Lang string `position:"Query" name:"Lang"` - Lines string `position:"Query" name:"Lines"` - StrategyName string `position:"Query" name:"StrategyName"` - DefaultLatencyOptimization string `position:"Query" name:"DefaultLatencyOptimization"` - FailoverLatencyOptimization string `position:"Query" name:"FailoverLatencyOptimization"` - UserClientIp string `position:"Query" name:"UserClientIp"` - StrategyId string `position:"Query" name:"StrategyId"` - FailoverAddrPool *[]UpdateDnsGtmAccessStrategyFailoverAddrPool `position:"Query" name:"FailoverAddrPool" type:"Repeated"` - AccessMode string `position:"Query" name:"AccessMode"` -} - -// UpdateDnsGtmAccessStrategyDefaultAddrPool is a repeated param struct in UpdateDnsGtmAccessStrategyRequest -type UpdateDnsGtmAccessStrategyDefaultAddrPool struct { - Id string `name:"Id"` - LbaWeight string `name:"LbaWeight"` -} - -// UpdateDnsGtmAccessStrategyFailoverAddrPool is a repeated param struct in UpdateDnsGtmAccessStrategyRequest -type UpdateDnsGtmAccessStrategyFailoverAddrPool struct { - Id string `name:"Id"` - LbaWeight string `name:"LbaWeight"` -} - -// UpdateDnsGtmAccessStrategyResponse is the response struct for api UpdateDnsGtmAccessStrategy -type UpdateDnsGtmAccessStrategyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - StrategyId string `json:"StrategyId" xml:"StrategyId"` -} - -// CreateUpdateDnsGtmAccessStrategyRequest creates a request to invoke UpdateDnsGtmAccessStrategy API -func CreateUpdateDnsGtmAccessStrategyRequest() (request *UpdateDnsGtmAccessStrategyRequest) { - request = &UpdateDnsGtmAccessStrategyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateDnsGtmAccessStrategy", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateDnsGtmAccessStrategyResponse creates a response to parse from UpdateDnsGtmAccessStrategy response -func CreateUpdateDnsGtmAccessStrategyResponse() (response *UpdateDnsGtmAccessStrategyResponse) { - response = &UpdateDnsGtmAccessStrategyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_address_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_address_pool.go deleted file mode 100644 index 57017776f..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_address_pool.go +++ /dev/null @@ -1,113 +0,0 @@ -package alidns - -//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" -) - -// UpdateDnsGtmAddressPool invokes the alidns.UpdateDnsGtmAddressPool API synchronously -func (client *Client) UpdateDnsGtmAddressPool(request *UpdateDnsGtmAddressPoolRequest) (response *UpdateDnsGtmAddressPoolResponse, err error) { - response = CreateUpdateDnsGtmAddressPoolResponse() - err = client.DoAction(request, response) - return -} - -// UpdateDnsGtmAddressPoolWithChan invokes the alidns.UpdateDnsGtmAddressPool API asynchronously -func (client *Client) UpdateDnsGtmAddressPoolWithChan(request *UpdateDnsGtmAddressPoolRequest) (<-chan *UpdateDnsGtmAddressPoolResponse, <-chan error) { - responseChan := make(chan *UpdateDnsGtmAddressPoolResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateDnsGtmAddressPool(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateDnsGtmAddressPoolWithCallback invokes the alidns.UpdateDnsGtmAddressPool API asynchronously -func (client *Client) UpdateDnsGtmAddressPoolWithCallback(request *UpdateDnsGtmAddressPoolRequest, callback func(response *UpdateDnsGtmAddressPoolResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateDnsGtmAddressPoolResponse - var err error - defer close(result) - response, err = client.UpdateDnsGtmAddressPool(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateDnsGtmAddressPoolRequest is the request struct for api UpdateDnsGtmAddressPool -type UpdateDnsGtmAddressPoolRequest struct { - *requests.RpcRequest - LbaStrategy string `position:"Query" name:"LbaStrategy"` - AddrPoolId string `position:"Query" name:"AddrPoolId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Name string `position:"Query" name:"Name"` - Lang string `position:"Query" name:"Lang"` - Addr *[]UpdateDnsGtmAddressPoolAddr `position:"Query" name:"Addr" type:"Repeated"` -} - -// UpdateDnsGtmAddressPoolAddr is a repeated param struct in UpdateDnsGtmAddressPoolRequest -type UpdateDnsGtmAddressPoolAddr struct { - Mode string `name:"Mode"` - AttributeInfo string `name:"AttributeInfo"` - Remark string `name:"Remark"` - Addr string `name:"Addr"` - LbaWeight string `name:"LbaWeight"` -} - -// UpdateDnsGtmAddressPoolResponse is the response struct for api UpdateDnsGtmAddressPool -type UpdateDnsGtmAddressPoolResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateDnsGtmAddressPoolRequest creates a request to invoke UpdateDnsGtmAddressPool API -func CreateUpdateDnsGtmAddressPoolRequest() (request *UpdateDnsGtmAddressPoolRequest) { - request = &UpdateDnsGtmAddressPoolRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateDnsGtmAddressPool", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateDnsGtmAddressPoolResponse creates a response to parse from UpdateDnsGtmAddressPool response -func CreateUpdateDnsGtmAddressPoolResponse() (response *UpdateDnsGtmAddressPoolResponse) { - response = &UpdateDnsGtmAddressPoolResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_instance_global_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_instance_global_config.go deleted file mode 100644 index 82810a471..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_instance_global_config.go +++ /dev/null @@ -1,119 +0,0 @@ -package alidns - -//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" -) - -// UpdateDnsGtmInstanceGlobalConfig invokes the alidns.UpdateDnsGtmInstanceGlobalConfig API synchronously -func (client *Client) UpdateDnsGtmInstanceGlobalConfig(request *UpdateDnsGtmInstanceGlobalConfigRequest) (response *UpdateDnsGtmInstanceGlobalConfigResponse, err error) { - response = CreateUpdateDnsGtmInstanceGlobalConfigResponse() - err = client.DoAction(request, response) - return -} - -// UpdateDnsGtmInstanceGlobalConfigWithChan invokes the alidns.UpdateDnsGtmInstanceGlobalConfig API asynchronously -func (client *Client) UpdateDnsGtmInstanceGlobalConfigWithChan(request *UpdateDnsGtmInstanceGlobalConfigRequest) (<-chan *UpdateDnsGtmInstanceGlobalConfigResponse, <-chan error) { - responseChan := make(chan *UpdateDnsGtmInstanceGlobalConfigResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateDnsGtmInstanceGlobalConfig(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateDnsGtmInstanceGlobalConfigWithCallback invokes the alidns.UpdateDnsGtmInstanceGlobalConfig API asynchronously -func (client *Client) UpdateDnsGtmInstanceGlobalConfigWithCallback(request *UpdateDnsGtmInstanceGlobalConfigRequest, callback func(response *UpdateDnsGtmInstanceGlobalConfigResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateDnsGtmInstanceGlobalConfigResponse - var err error - defer close(result) - response, err = client.UpdateDnsGtmInstanceGlobalConfig(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateDnsGtmInstanceGlobalConfigRequest is the request struct for api UpdateDnsGtmInstanceGlobalConfig -type UpdateDnsGtmInstanceGlobalConfigRequest struct { - *requests.RpcRequest - AlertGroup string `position:"Query" name:"AlertGroup"` - CnameType string `position:"Query" name:"CnameType"` - Lang string `position:"Query" name:"Lang"` - AlertConfig *[]UpdateDnsGtmInstanceGlobalConfigAlertConfig `position:"Query" name:"AlertConfig" type:"Repeated"` - PublicCnameMode string `position:"Query" name:"PublicCnameMode"` - PublicUserDomainName string `position:"Query" name:"PublicUserDomainName"` - Ttl requests.Integer `position:"Query" name:"Ttl"` - ForceUpdate requests.Boolean `position:"Query" name:"ForceUpdate"` - InstanceId string `position:"Query" name:"InstanceId"` - InstanceName string `position:"Query" name:"InstanceName"` - PublicRr string `position:"Query" name:"PublicRr"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PublicZoneName string `position:"Query" name:"PublicZoneName"` -} - -// UpdateDnsGtmInstanceGlobalConfigAlertConfig is a repeated param struct in UpdateDnsGtmInstanceGlobalConfigRequest -type UpdateDnsGtmInstanceGlobalConfigAlertConfig struct { - DingtalkNotice string `name:"DingtalkNotice"` - SmsNotice string `name:"SmsNotice"` - NoticeType string `name:"NoticeType"` - EmailNotice string `name:"EmailNotice"` -} - -// UpdateDnsGtmInstanceGlobalConfigResponse is the response struct for api UpdateDnsGtmInstanceGlobalConfig -type UpdateDnsGtmInstanceGlobalConfigResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateDnsGtmInstanceGlobalConfigRequest creates a request to invoke UpdateDnsGtmInstanceGlobalConfig API -func CreateUpdateDnsGtmInstanceGlobalConfigRequest() (request *UpdateDnsGtmInstanceGlobalConfigRequest) { - request = &UpdateDnsGtmInstanceGlobalConfigRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateDnsGtmInstanceGlobalConfig", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateDnsGtmInstanceGlobalConfigResponse creates a response to parse from UpdateDnsGtmInstanceGlobalConfig response -func CreateUpdateDnsGtmInstanceGlobalConfigResponse() (response *UpdateDnsGtmInstanceGlobalConfigResponse) { - response = &UpdateDnsGtmInstanceGlobalConfigResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_monitor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_monitor.go deleted file mode 100644 index 449f2de41..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dns_gtm_monitor.go +++ /dev/null @@ -1,113 +0,0 @@ -package alidns - -//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" -) - -// UpdateDnsGtmMonitor invokes the alidns.UpdateDnsGtmMonitor API synchronously -func (client *Client) UpdateDnsGtmMonitor(request *UpdateDnsGtmMonitorRequest) (response *UpdateDnsGtmMonitorResponse, err error) { - response = CreateUpdateDnsGtmMonitorResponse() - err = client.DoAction(request, response) - return -} - -// UpdateDnsGtmMonitorWithChan invokes the alidns.UpdateDnsGtmMonitor API asynchronously -func (client *Client) UpdateDnsGtmMonitorWithChan(request *UpdateDnsGtmMonitorRequest) (<-chan *UpdateDnsGtmMonitorResponse, <-chan error) { - responseChan := make(chan *UpdateDnsGtmMonitorResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateDnsGtmMonitor(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateDnsGtmMonitorWithCallback invokes the alidns.UpdateDnsGtmMonitor API asynchronously -func (client *Client) UpdateDnsGtmMonitorWithCallback(request *UpdateDnsGtmMonitorRequest, callback func(response *UpdateDnsGtmMonitorResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateDnsGtmMonitorResponse - var err error - defer close(result) - response, err = client.UpdateDnsGtmMonitor(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateDnsGtmMonitorRequest is the request struct for api UpdateDnsGtmMonitor -type UpdateDnsGtmMonitorRequest struct { - *requests.RpcRequest - MonitorExtendInfo string `position:"Query" name:"MonitorExtendInfo"` - MonitorConfigId string `position:"Query" name:"MonitorConfigId"` - Timeout requests.Integer `position:"Query" name:"Timeout"` - UserClientIp string `position:"Query" name:"UserClientIp"` - EvaluationCount requests.Integer `position:"Query" name:"EvaluationCount"` - ProtocolType string `position:"Query" name:"ProtocolType"` - Interval requests.Integer `position:"Query" name:"Interval"` - Lang string `position:"Query" name:"Lang"` - IspCityNode *[]UpdateDnsGtmMonitorIspCityNode `position:"Query" name:"IspCityNode" type:"Repeated"` -} - -// UpdateDnsGtmMonitorIspCityNode is a repeated param struct in UpdateDnsGtmMonitorRequest -type UpdateDnsGtmMonitorIspCityNode struct { - CityCode string `name:"CityCode"` - IspCode string `name:"IspCode"` -} - -// UpdateDnsGtmMonitorResponse is the response struct for api UpdateDnsGtmMonitor -type UpdateDnsGtmMonitorResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateDnsGtmMonitorRequest creates a request to invoke UpdateDnsGtmMonitor API -func CreateUpdateDnsGtmMonitorRequest() (request *UpdateDnsGtmMonitorRequest) { - request = &UpdateDnsGtmMonitorRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateDnsGtmMonitor", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateDnsGtmMonitorResponse creates a response to parse from UpdateDnsGtmMonitor response -func CreateUpdateDnsGtmMonitorResponse() (response *UpdateDnsGtmMonitorResponse) { - response = &UpdateDnsGtmMonitorResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dnsslb_weight.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dnsslb_weight.go deleted file mode 100644 index e084284c2..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_dnsslb_weight.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// UpdateDNSSLBWeight invokes the alidns.UpdateDNSSLBWeight API synchronously -func (client *Client) UpdateDNSSLBWeight(request *UpdateDNSSLBWeightRequest) (response *UpdateDNSSLBWeightResponse, err error) { - response = CreateUpdateDNSSLBWeightResponse() - err = client.DoAction(request, response) - return -} - -// UpdateDNSSLBWeightWithChan invokes the alidns.UpdateDNSSLBWeight API asynchronously -func (client *Client) UpdateDNSSLBWeightWithChan(request *UpdateDNSSLBWeightRequest) (<-chan *UpdateDNSSLBWeightResponse, <-chan error) { - responseChan := make(chan *UpdateDNSSLBWeightResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateDNSSLBWeight(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateDNSSLBWeightWithCallback invokes the alidns.UpdateDNSSLBWeight API asynchronously -func (client *Client) UpdateDNSSLBWeightWithCallback(request *UpdateDNSSLBWeightRequest, callback func(response *UpdateDNSSLBWeightResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateDNSSLBWeightResponse - var err error - defer close(result) - response, err = client.UpdateDNSSLBWeight(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateDNSSLBWeightRequest is the request struct for api UpdateDNSSLBWeight -type UpdateDNSSLBWeightRequest struct { - *requests.RpcRequest - Weight requests.Integer `position:"Query" name:"Weight"` - RecordId string `position:"Query" name:"RecordId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// UpdateDNSSLBWeightResponse is the response struct for api UpdateDNSSLBWeight -type UpdateDNSSLBWeightResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecordId string `json:"RecordId" xml:"RecordId"` - Weight int `json:"Weight" xml:"Weight"` -} - -// CreateUpdateDNSSLBWeightRequest creates a request to invoke UpdateDNSSLBWeight API -func CreateUpdateDNSSLBWeightRequest() (request *UpdateDNSSLBWeightRequest) { - request = &UpdateDNSSLBWeightRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateDNSSLBWeight", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateDNSSLBWeightResponse creates a response to parse from UpdateDNSSLBWeight response -func CreateUpdateDNSSLBWeightResponse() (response *UpdateDNSSLBWeightResponse) { - response = &UpdateDNSSLBWeightResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_group.go deleted file mode 100644 index 6eda86810..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_group.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// UpdateDomainGroup invokes the alidns.UpdateDomainGroup API synchronously -func (client *Client) UpdateDomainGroup(request *UpdateDomainGroupRequest) (response *UpdateDomainGroupResponse, err error) { - response = CreateUpdateDomainGroupResponse() - err = client.DoAction(request, response) - return -} - -// UpdateDomainGroupWithChan invokes the alidns.UpdateDomainGroup API asynchronously -func (client *Client) UpdateDomainGroupWithChan(request *UpdateDomainGroupRequest) (<-chan *UpdateDomainGroupResponse, <-chan error) { - responseChan := make(chan *UpdateDomainGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateDomainGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateDomainGroupWithCallback invokes the alidns.UpdateDomainGroup API asynchronously -func (client *Client) UpdateDomainGroupWithCallback(request *UpdateDomainGroupRequest, callback func(response *UpdateDomainGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateDomainGroupResponse - var err error - defer close(result) - response, err = client.UpdateDomainGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateDomainGroupRequest is the request struct for api UpdateDomainGroup -type UpdateDomainGroupRequest struct { - *requests.RpcRequest - GroupId string `position:"Query" name:"GroupId"` - GroupName string `position:"Query" name:"GroupName"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// UpdateDomainGroupResponse is the response struct for api UpdateDomainGroup -type UpdateDomainGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - GroupId string `json:"GroupId" xml:"GroupId"` - GroupName string `json:"GroupName" xml:"GroupName"` -} - -// CreateUpdateDomainGroupRequest creates a request to invoke UpdateDomainGroup API -func CreateUpdateDomainGroupRequest() (request *UpdateDomainGroupRequest) { - request = &UpdateDomainGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateDomainGroup", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateDomainGroupResponse creates a response to parse from UpdateDomainGroup response -func CreateUpdateDomainGroupResponse() (response *UpdateDomainGroupResponse) { - response = &UpdateDomainGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_record.go deleted file mode 100644 index 534b54903..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_record.go +++ /dev/null @@ -1,108 +0,0 @@ -package alidns - -//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" -) - -// UpdateDomainRecord invokes the alidns.UpdateDomainRecord API synchronously -func (client *Client) UpdateDomainRecord(request *UpdateDomainRecordRequest) (response *UpdateDomainRecordResponse, err error) { - response = CreateUpdateDomainRecordResponse() - err = client.DoAction(request, response) - return -} - -// UpdateDomainRecordWithChan invokes the alidns.UpdateDomainRecord API asynchronously -func (client *Client) UpdateDomainRecordWithChan(request *UpdateDomainRecordRequest) (<-chan *UpdateDomainRecordResponse, <-chan error) { - responseChan := make(chan *UpdateDomainRecordResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateDomainRecord(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateDomainRecordWithCallback invokes the alidns.UpdateDomainRecord API asynchronously -func (client *Client) UpdateDomainRecordWithCallback(request *UpdateDomainRecordRequest, callback func(response *UpdateDomainRecordResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateDomainRecordResponse - var err error - defer close(result) - response, err = client.UpdateDomainRecord(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateDomainRecordRequest is the request struct for api UpdateDomainRecord -type UpdateDomainRecordRequest struct { - *requests.RpcRequest - RR string `position:"Query" name:"RR"` - Line string `position:"Query" name:"Line"` - Type string `position:"Query" name:"Type"` - Lang string `position:"Query" name:"Lang"` - Value string `position:"Query" name:"Value"` - Priority requests.Integer `position:"Query" name:"Priority"` - TTL requests.Integer `position:"Query" name:"TTL"` - RecordId string `position:"Query" name:"RecordId"` - UserClientIp string `position:"Query" name:"UserClientIp"` -} - -// UpdateDomainRecordResponse is the response struct for api UpdateDomainRecord -type UpdateDomainRecordResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecordId string `json:"RecordId" xml:"RecordId"` -} - -// CreateUpdateDomainRecordRequest creates a request to invoke UpdateDomainRecord API -func CreateUpdateDomainRecordRequest() (request *UpdateDomainRecordRequest) { - request = &UpdateDomainRecordRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateDomainRecord", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateDomainRecordResponse creates a response to parse from UpdateDomainRecord response -func CreateUpdateDomainRecordResponse() (response *UpdateDomainRecordResponse) { - response = &UpdateDomainRecordResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_record_remark.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_record_remark.go deleted file mode 100644 index 2cab00938..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_record_remark.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// UpdateDomainRecordRemark invokes the alidns.UpdateDomainRecordRemark API synchronously -func (client *Client) UpdateDomainRecordRemark(request *UpdateDomainRecordRemarkRequest) (response *UpdateDomainRecordRemarkResponse, err error) { - response = CreateUpdateDomainRecordRemarkResponse() - err = client.DoAction(request, response) - return -} - -// UpdateDomainRecordRemarkWithChan invokes the alidns.UpdateDomainRecordRemark API asynchronously -func (client *Client) UpdateDomainRecordRemarkWithChan(request *UpdateDomainRecordRemarkRequest) (<-chan *UpdateDomainRecordRemarkResponse, <-chan error) { - responseChan := make(chan *UpdateDomainRecordRemarkResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateDomainRecordRemark(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateDomainRecordRemarkWithCallback invokes the alidns.UpdateDomainRecordRemark API asynchronously -func (client *Client) UpdateDomainRecordRemarkWithCallback(request *UpdateDomainRecordRemarkRequest, callback func(response *UpdateDomainRecordRemarkResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateDomainRecordRemarkResponse - var err error - defer close(result) - response, err = client.UpdateDomainRecordRemark(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateDomainRecordRemarkRequest is the request struct for api UpdateDomainRecordRemark -type UpdateDomainRecordRemarkRequest struct { - *requests.RpcRequest - Remark string `position:"Query" name:"Remark"` - RecordId string `position:"Query" name:"RecordId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// UpdateDomainRecordRemarkResponse is the response struct for api UpdateDomainRecordRemark -type UpdateDomainRecordRemarkResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateDomainRecordRemarkRequest creates a request to invoke UpdateDomainRecordRemark API -func CreateUpdateDomainRecordRemarkRequest() (request *UpdateDomainRecordRemarkRequest) { - request = &UpdateDomainRecordRemarkRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateDomainRecordRemark", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateDomainRecordRemarkResponse creates a response to parse from UpdateDomainRecordRemark response -func CreateUpdateDomainRecordRemarkResponse() (response *UpdateDomainRecordRemarkResponse) { - response = &UpdateDomainRecordRemarkResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_remark.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_remark.go deleted file mode 100644 index 287ee97d0..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_domain_remark.go +++ /dev/null @@ -1,102 +0,0 @@ -package alidns - -//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" -) - -// UpdateDomainRemark invokes the alidns.UpdateDomainRemark API synchronously -func (client *Client) UpdateDomainRemark(request *UpdateDomainRemarkRequest) (response *UpdateDomainRemarkResponse, err error) { - response = CreateUpdateDomainRemarkResponse() - err = client.DoAction(request, response) - return -} - -// UpdateDomainRemarkWithChan invokes the alidns.UpdateDomainRemark API asynchronously -func (client *Client) UpdateDomainRemarkWithChan(request *UpdateDomainRemarkRequest) (<-chan *UpdateDomainRemarkResponse, <-chan error) { - responseChan := make(chan *UpdateDomainRemarkResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateDomainRemark(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateDomainRemarkWithCallback invokes the alidns.UpdateDomainRemark API asynchronously -func (client *Client) UpdateDomainRemarkWithCallback(request *UpdateDomainRemarkRequest, callback func(response *UpdateDomainRemarkResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateDomainRemarkResponse - var err error - defer close(result) - response, err = client.UpdateDomainRemark(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateDomainRemarkRequest is the request struct for api UpdateDomainRemark -type UpdateDomainRemarkRequest struct { - *requests.RpcRequest - DomainName string `position:"Query" name:"DomainName"` - Remark string `position:"Query" name:"Remark"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// UpdateDomainRemarkResponse is the response struct for api UpdateDomainRemark -type UpdateDomainRemarkResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateDomainRemarkRequest creates a request to invoke UpdateDomainRemark API -func CreateUpdateDomainRemarkRequest() (request *UpdateDomainRemarkRequest) { - request = &UpdateDomainRemarkRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateDomainRemark", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateDomainRemarkResponse creates a response to parse from UpdateDomainRemark response -func CreateUpdateDomainRemarkResponse() (response *UpdateDomainRemarkResponse) { - response = &UpdateDomainRemarkResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_access_strategy.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_access_strategy.go deleted file mode 100644 index b10c01bd4..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_access_strategy.go +++ /dev/null @@ -1,105 +0,0 @@ -package alidns - -//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" -) - -// UpdateGtmAccessStrategy invokes the alidns.UpdateGtmAccessStrategy API synchronously -func (client *Client) UpdateGtmAccessStrategy(request *UpdateGtmAccessStrategyRequest) (response *UpdateGtmAccessStrategyResponse, err error) { - response = CreateUpdateGtmAccessStrategyResponse() - err = client.DoAction(request, response) - return -} - -// UpdateGtmAccessStrategyWithChan invokes the alidns.UpdateGtmAccessStrategy API asynchronously -func (client *Client) UpdateGtmAccessStrategyWithChan(request *UpdateGtmAccessStrategyRequest) (<-chan *UpdateGtmAccessStrategyResponse, <-chan error) { - responseChan := make(chan *UpdateGtmAccessStrategyResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateGtmAccessStrategy(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateGtmAccessStrategyWithCallback invokes the alidns.UpdateGtmAccessStrategy API asynchronously -func (client *Client) UpdateGtmAccessStrategyWithCallback(request *UpdateGtmAccessStrategyRequest, callback func(response *UpdateGtmAccessStrategyResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateGtmAccessStrategyResponse - var err error - defer close(result) - response, err = client.UpdateGtmAccessStrategy(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateGtmAccessStrategyRequest is the request struct for api UpdateGtmAccessStrategy -type UpdateGtmAccessStrategyRequest struct { - *requests.RpcRequest - DefaultAddrPoolId string `position:"Query" name:"DefaultAddrPoolId"` - FailoverAddrPoolId string `position:"Query" name:"FailoverAddrPoolId"` - StrategyName string `position:"Query" name:"StrategyName"` - AccessLines string `position:"Query" name:"AccessLines"` - UserClientIp string `position:"Query" name:"UserClientIp"` - StrategyId string `position:"Query" name:"StrategyId"` - Lang string `position:"Query" name:"Lang"` -} - -// UpdateGtmAccessStrategyResponse is the response struct for api UpdateGtmAccessStrategy -type UpdateGtmAccessStrategyResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateGtmAccessStrategyRequest creates a request to invoke UpdateGtmAccessStrategy API -func CreateUpdateGtmAccessStrategyRequest() (request *UpdateGtmAccessStrategyRequest) { - request = &UpdateGtmAccessStrategyRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateGtmAccessStrategy", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateGtmAccessStrategyResponse creates a response to parse from UpdateGtmAccessStrategy response -func CreateUpdateGtmAccessStrategyResponse() (response *UpdateGtmAccessStrategyResponse) { - response = &UpdateGtmAccessStrategyResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_address_pool.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_address_pool.go deleted file mode 100644 index 9c12a22f8..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_address_pool.go +++ /dev/null @@ -1,112 +0,0 @@ -package alidns - -//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" -) - -// UpdateGtmAddressPool invokes the alidns.UpdateGtmAddressPool API synchronously -func (client *Client) UpdateGtmAddressPool(request *UpdateGtmAddressPoolRequest) (response *UpdateGtmAddressPoolResponse, err error) { - response = CreateUpdateGtmAddressPoolResponse() - err = client.DoAction(request, response) - return -} - -// UpdateGtmAddressPoolWithChan invokes the alidns.UpdateGtmAddressPool API asynchronously -func (client *Client) UpdateGtmAddressPoolWithChan(request *UpdateGtmAddressPoolRequest) (<-chan *UpdateGtmAddressPoolResponse, <-chan error) { - responseChan := make(chan *UpdateGtmAddressPoolResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateGtmAddressPool(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateGtmAddressPoolWithCallback invokes the alidns.UpdateGtmAddressPool API asynchronously -func (client *Client) UpdateGtmAddressPoolWithCallback(request *UpdateGtmAddressPoolRequest, callback func(response *UpdateGtmAddressPoolResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateGtmAddressPoolResponse - var err error - defer close(result) - response, err = client.UpdateGtmAddressPool(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateGtmAddressPoolRequest is the request struct for api UpdateGtmAddressPool -type UpdateGtmAddressPoolRequest struct { - *requests.RpcRequest - Type string `position:"Query" name:"Type"` - MinAvailableAddrNum requests.Integer `position:"Query" name:"MinAvailableAddrNum"` - AddrPoolId string `position:"Query" name:"AddrPoolId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Name string `position:"Query" name:"Name"` - Lang string `position:"Query" name:"Lang"` - Addr *[]UpdateGtmAddressPoolAddr `position:"Query" name:"Addr" type:"Repeated"` -} - -// UpdateGtmAddressPoolAddr is a repeated param struct in UpdateGtmAddressPoolRequest -type UpdateGtmAddressPoolAddr struct { - Mode string `name:"Mode"` - LbaWeight string `name:"LbaWeight"` - Value string `name:"Value"` -} - -// UpdateGtmAddressPoolResponse is the response struct for api UpdateGtmAddressPool -type UpdateGtmAddressPoolResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateGtmAddressPoolRequest creates a request to invoke UpdateGtmAddressPool API -func CreateUpdateGtmAddressPoolRequest() (request *UpdateGtmAddressPoolRequest) { - request = &UpdateGtmAddressPoolRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateGtmAddressPool", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateGtmAddressPoolResponse creates a response to parse from UpdateGtmAddressPool response -func CreateUpdateGtmAddressPoolResponse() (response *UpdateGtmAddressPoolResponse) { - response = &UpdateGtmAddressPoolResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_instance_global_config.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_instance_global_config.go deleted file mode 100644 index 577333e30..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_instance_global_config.go +++ /dev/null @@ -1,108 +0,0 @@ -package alidns - -//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" -) - -// UpdateGtmInstanceGlobalConfig invokes the alidns.UpdateGtmInstanceGlobalConfig API synchronously -func (client *Client) UpdateGtmInstanceGlobalConfig(request *UpdateGtmInstanceGlobalConfigRequest) (response *UpdateGtmInstanceGlobalConfigResponse, err error) { - response = CreateUpdateGtmInstanceGlobalConfigResponse() - err = client.DoAction(request, response) - return -} - -// UpdateGtmInstanceGlobalConfigWithChan invokes the alidns.UpdateGtmInstanceGlobalConfig API asynchronously -func (client *Client) UpdateGtmInstanceGlobalConfigWithChan(request *UpdateGtmInstanceGlobalConfigRequest) (<-chan *UpdateGtmInstanceGlobalConfigResponse, <-chan error) { - responseChan := make(chan *UpdateGtmInstanceGlobalConfigResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateGtmInstanceGlobalConfig(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateGtmInstanceGlobalConfigWithCallback invokes the alidns.UpdateGtmInstanceGlobalConfig API asynchronously -func (client *Client) UpdateGtmInstanceGlobalConfigWithCallback(request *UpdateGtmInstanceGlobalConfigRequest, callback func(response *UpdateGtmInstanceGlobalConfigResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateGtmInstanceGlobalConfigResponse - var err error - defer close(result) - response, err = client.UpdateGtmInstanceGlobalConfig(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateGtmInstanceGlobalConfigRequest is the request struct for api UpdateGtmInstanceGlobalConfig -type UpdateGtmInstanceGlobalConfigRequest struct { - *requests.RpcRequest - AlertGroup string `position:"Query" name:"AlertGroup"` - CnameMode string `position:"Query" name:"CnameMode"` - LbaStrategy string `position:"Query" name:"LbaStrategy"` - Ttl requests.Integer `position:"Query" name:"Ttl"` - CnameCustomDomainName string `position:"Query" name:"CnameCustomDomainName"` - InstanceId string `position:"Query" name:"InstanceId"` - InstanceName string `position:"Query" name:"InstanceName"` - UserDomainName string `position:"Query" name:"UserDomainName"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// UpdateGtmInstanceGlobalConfigResponse is the response struct for api UpdateGtmInstanceGlobalConfig -type UpdateGtmInstanceGlobalConfigResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateGtmInstanceGlobalConfigRequest creates a request to invoke UpdateGtmInstanceGlobalConfig API -func CreateUpdateGtmInstanceGlobalConfigRequest() (request *UpdateGtmInstanceGlobalConfigRequest) { - request = &UpdateGtmInstanceGlobalConfigRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateGtmInstanceGlobalConfig", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateGtmInstanceGlobalConfigResponse creates a response to parse from UpdateGtmInstanceGlobalConfig response -func CreateUpdateGtmInstanceGlobalConfigResponse() (response *UpdateGtmInstanceGlobalConfigResponse) { - response = &UpdateGtmInstanceGlobalConfigResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_monitor.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_monitor.go deleted file mode 100644 index 06f3f81e2..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_monitor.go +++ /dev/null @@ -1,113 +0,0 @@ -package alidns - -//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" -) - -// UpdateGtmMonitor invokes the alidns.UpdateGtmMonitor API synchronously -func (client *Client) UpdateGtmMonitor(request *UpdateGtmMonitorRequest) (response *UpdateGtmMonitorResponse, err error) { - response = CreateUpdateGtmMonitorResponse() - err = client.DoAction(request, response) - return -} - -// UpdateGtmMonitorWithChan invokes the alidns.UpdateGtmMonitor API asynchronously -func (client *Client) UpdateGtmMonitorWithChan(request *UpdateGtmMonitorRequest) (<-chan *UpdateGtmMonitorResponse, <-chan error) { - responseChan := make(chan *UpdateGtmMonitorResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateGtmMonitor(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateGtmMonitorWithCallback invokes the alidns.UpdateGtmMonitor API asynchronously -func (client *Client) UpdateGtmMonitorWithCallback(request *UpdateGtmMonitorRequest, callback func(response *UpdateGtmMonitorResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateGtmMonitorResponse - var err error - defer close(result) - response, err = client.UpdateGtmMonitor(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateGtmMonitorRequest is the request struct for api UpdateGtmMonitor -type UpdateGtmMonitorRequest struct { - *requests.RpcRequest - MonitorExtendInfo string `position:"Query" name:"MonitorExtendInfo"` - MonitorConfigId string `position:"Query" name:"MonitorConfigId"` - Timeout requests.Integer `position:"Query" name:"Timeout"` - UserClientIp string `position:"Query" name:"UserClientIp"` - EvaluationCount requests.Integer `position:"Query" name:"EvaluationCount"` - ProtocolType string `position:"Query" name:"ProtocolType"` - Interval requests.Integer `position:"Query" name:"Interval"` - Lang string `position:"Query" name:"Lang"` - IspCityNode *[]UpdateGtmMonitorIspCityNode `position:"Query" name:"IspCityNode" type:"Repeated"` -} - -// UpdateGtmMonitorIspCityNode is a repeated param struct in UpdateGtmMonitorRequest -type UpdateGtmMonitorIspCityNode struct { - CityCode string `name:"CityCode"` - IspCode string `name:"IspCode"` -} - -// UpdateGtmMonitorResponse is the response struct for api UpdateGtmMonitor -type UpdateGtmMonitorResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateGtmMonitorRequest creates a request to invoke UpdateGtmMonitor API -func CreateUpdateGtmMonitorRequest() (request *UpdateGtmMonitorRequest) { - request = &UpdateGtmMonitorRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateGtmMonitor", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateGtmMonitorResponse creates a response to parse from UpdateGtmMonitor response -func CreateUpdateGtmMonitorResponse() (response *UpdateGtmMonitorResponse) { - response = &UpdateGtmMonitorResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_recovery_plan.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_recovery_plan.go deleted file mode 100644 index 37d89f634..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/update_gtm_recovery_plan.go +++ /dev/null @@ -1,104 +0,0 @@ -package alidns - -//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" -) - -// UpdateGtmRecoveryPlan invokes the alidns.UpdateGtmRecoveryPlan API synchronously -func (client *Client) UpdateGtmRecoveryPlan(request *UpdateGtmRecoveryPlanRequest) (response *UpdateGtmRecoveryPlanResponse, err error) { - response = CreateUpdateGtmRecoveryPlanResponse() - err = client.DoAction(request, response) - return -} - -// UpdateGtmRecoveryPlanWithChan invokes the alidns.UpdateGtmRecoveryPlan API asynchronously -func (client *Client) UpdateGtmRecoveryPlanWithChan(request *UpdateGtmRecoveryPlanRequest) (<-chan *UpdateGtmRecoveryPlanResponse, <-chan error) { - responseChan := make(chan *UpdateGtmRecoveryPlanResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateGtmRecoveryPlan(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateGtmRecoveryPlanWithCallback invokes the alidns.UpdateGtmRecoveryPlan API asynchronously -func (client *Client) UpdateGtmRecoveryPlanWithCallback(request *UpdateGtmRecoveryPlanRequest, callback func(response *UpdateGtmRecoveryPlanResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateGtmRecoveryPlanResponse - var err error - defer close(result) - response, err = client.UpdateGtmRecoveryPlan(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateGtmRecoveryPlanRequest is the request struct for api UpdateGtmRecoveryPlan -type UpdateGtmRecoveryPlanRequest struct { - *requests.RpcRequest - FaultAddrPool string `position:"Query" name:"FaultAddrPool"` - Remark string `position:"Query" name:"Remark"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Name string `position:"Query" name:"Name"` - RecoveryPlanId requests.Integer `position:"Query" name:"RecoveryPlanId"` - Lang string `position:"Query" name:"Lang"` -} - -// UpdateGtmRecoveryPlanResponse is the response struct for api UpdateGtmRecoveryPlan -type UpdateGtmRecoveryPlanResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateGtmRecoveryPlanRequest creates a request to invoke UpdateGtmRecoveryPlan API -func CreateUpdateGtmRecoveryPlanRequest() (request *UpdateGtmRecoveryPlanRequest) { - request = &UpdateGtmRecoveryPlanRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "UpdateGtmRecoveryPlan", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateGtmRecoveryPlanResponse creates a response to parse from UpdateGtmRecoveryPlan response -func CreateUpdateGtmRecoveryPlanResponse() (response *UpdateGtmRecoveryPlanResponse) { - response = &UpdateGtmRecoveryPlanResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/validate_dns_gtm_cname_rr_can_use.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/validate_dns_gtm_cname_rr_can_use.go deleted file mode 100644 index 76c7d8705..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/validate_dns_gtm_cname_rr_can_use.go +++ /dev/null @@ -1,105 +0,0 @@ -package alidns - -//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" -) - -// ValidateDnsGtmCnameRrCanUse invokes the alidns.ValidateDnsGtmCnameRrCanUse API synchronously -func (client *Client) ValidateDnsGtmCnameRrCanUse(request *ValidateDnsGtmCnameRrCanUseRequest) (response *ValidateDnsGtmCnameRrCanUseResponse, err error) { - response = CreateValidateDnsGtmCnameRrCanUseResponse() - err = client.DoAction(request, response) - return -} - -// ValidateDnsGtmCnameRrCanUseWithChan invokes the alidns.ValidateDnsGtmCnameRrCanUse API asynchronously -func (client *Client) ValidateDnsGtmCnameRrCanUseWithChan(request *ValidateDnsGtmCnameRrCanUseRequest) (<-chan *ValidateDnsGtmCnameRrCanUseResponse, <-chan error) { - responseChan := make(chan *ValidateDnsGtmCnameRrCanUseResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ValidateDnsGtmCnameRrCanUse(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ValidateDnsGtmCnameRrCanUseWithCallback invokes the alidns.ValidateDnsGtmCnameRrCanUse API asynchronously -func (client *Client) ValidateDnsGtmCnameRrCanUseWithCallback(request *ValidateDnsGtmCnameRrCanUseRequest, callback func(response *ValidateDnsGtmCnameRrCanUseResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ValidateDnsGtmCnameRrCanUseResponse - var err error - defer close(result) - response, err = client.ValidateDnsGtmCnameRrCanUse(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ValidateDnsGtmCnameRrCanUseRequest is the request struct for api ValidateDnsGtmCnameRrCanUse -type ValidateDnsGtmCnameRrCanUseRequest struct { - *requests.RpcRequest - CnameMode string `position:"Query" name:"CnameMode"` - CnameZone string `position:"Query" name:"CnameZone"` - CnameRr string `position:"Query" name:"CnameRr"` - CnameType string `position:"Query" name:"CnameType"` - InstanceId string `position:"Query" name:"InstanceId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// ValidateDnsGtmCnameRrCanUseResponse is the response struct for api ValidateDnsGtmCnameRrCanUse -type ValidateDnsGtmCnameRrCanUseResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateValidateDnsGtmCnameRrCanUseRequest creates a request to invoke ValidateDnsGtmCnameRrCanUse API -func CreateValidateDnsGtmCnameRrCanUseRequest() (request *ValidateDnsGtmCnameRrCanUseRequest) { - request = &ValidateDnsGtmCnameRrCanUseRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "ValidateDnsGtmCnameRrCanUse", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateValidateDnsGtmCnameRrCanUseResponse creates a response to parse from ValidateDnsGtmCnameRrCanUse response -func CreateValidateDnsGtmCnameRrCanUseResponse() (response *ValidateDnsGtmCnameRrCanUseResponse) { - response = &ValidateDnsGtmCnameRrCanUseResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/validate_pdns_udp_ip_segment.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/validate_pdns_udp_ip_segment.go deleted file mode 100644 index 85709bf76..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/validate_pdns_udp_ip_segment.go +++ /dev/null @@ -1,100 +0,0 @@ -package alidns - -//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" -) - -// ValidatePdnsUdpIpSegment invokes the alidns.ValidatePdnsUdpIpSegment API synchronously -func (client *Client) ValidatePdnsUdpIpSegment(request *ValidatePdnsUdpIpSegmentRequest) (response *ValidatePdnsUdpIpSegmentResponse, err error) { - response = CreateValidatePdnsUdpIpSegmentResponse() - err = client.DoAction(request, response) - return -} - -// ValidatePdnsUdpIpSegmentWithChan invokes the alidns.ValidatePdnsUdpIpSegment API asynchronously -func (client *Client) ValidatePdnsUdpIpSegmentWithChan(request *ValidatePdnsUdpIpSegmentRequest) (<-chan *ValidatePdnsUdpIpSegmentResponse, <-chan error) { - responseChan := make(chan *ValidatePdnsUdpIpSegmentResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ValidatePdnsUdpIpSegment(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ValidatePdnsUdpIpSegmentWithCallback invokes the alidns.ValidatePdnsUdpIpSegment API asynchronously -func (client *Client) ValidatePdnsUdpIpSegmentWithCallback(request *ValidatePdnsUdpIpSegmentRequest, callback func(response *ValidatePdnsUdpIpSegmentResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ValidatePdnsUdpIpSegmentResponse - var err error - defer close(result) - response, err = client.ValidatePdnsUdpIpSegment(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ValidatePdnsUdpIpSegmentRequest is the request struct for api ValidatePdnsUdpIpSegment -type ValidatePdnsUdpIpSegmentRequest struct { - *requests.RpcRequest - Ip string `position:"Query" name:"Ip"` - Lang string `position:"Query" name:"Lang"` -} - -// ValidatePdnsUdpIpSegmentResponse is the response struct for api ValidatePdnsUdpIpSegment -type ValidatePdnsUdpIpSegmentResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateValidatePdnsUdpIpSegmentRequest creates a request to invoke ValidatePdnsUdpIpSegment API -func CreateValidatePdnsUdpIpSegmentRequest() (request *ValidatePdnsUdpIpSegmentRequest) { - request = &ValidatePdnsUdpIpSegmentRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Alidns", "2015-01-09", "ValidatePdnsUdpIpSegment", "alidns", "openAPI") - request.Method = requests.POST - return -} - -// CreateValidatePdnsUdpIpSegmentResponse creates a response to parse from ValidatePdnsUdpIpSegment response -func CreateValidatePdnsUdpIpSegmentResponse() (response *ValidatePdnsUdpIpSegmentResponse) { - response = &ValidatePdnsUdpIpSegmentResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/add_zone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/add_zone.go deleted file mode 100644 index 83700d636..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/add_zone.go +++ /dev/null @@ -1,108 +0,0 @@ -package pvtz - -//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" -) - -// AddZone invokes the pvtz.AddZone API synchronously -func (client *Client) AddZone(request *AddZoneRequest) (response *AddZoneResponse, err error) { - response = CreateAddZoneResponse() - err = client.DoAction(request, response) - return -} - -// AddZoneWithChan invokes the pvtz.AddZone API asynchronously -func (client *Client) AddZoneWithChan(request *AddZoneRequest) (<-chan *AddZoneResponse, <-chan error) { - responseChan := make(chan *AddZoneResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddZone(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddZoneWithCallback invokes the pvtz.AddZone API asynchronously -func (client *Client) AddZoneWithCallback(request *AddZoneRequest, callback func(response *AddZoneResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddZoneResponse - var err error - defer close(result) - response, err = client.AddZone(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddZoneRequest is the request struct for api AddZone -type AddZoneRequest struct { - *requests.RpcRequest - ProxyPattern string `position:"Query" name:"ProxyPattern"` - ZoneName string `position:"Query" name:"ZoneName"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - ZoneTag string `position:"Query" name:"ZoneTag"` - UserClientIp string `position:"Query" name:"UserClientIp"` - ZoneType string `position:"Query" name:"ZoneType"` - Lang string `position:"Query" name:"Lang"` -} - -// AddZoneResponse is the response struct for api AddZone -type AddZoneResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Success bool `json:"Success" xml:"Success"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - ZoneName string `json:"ZoneName" xml:"ZoneName"` -} - -// CreateAddZoneRequest creates a request to invoke AddZone API -func CreateAddZoneRequest() (request *AddZoneRequest) { - request = &AddZoneRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "AddZone", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddZoneResponse creates a response to parse from AddZone response -func CreateAddZoneResponse() (response *AddZoneResponse) { - response = &AddZoneResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/add_zone_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/add_zone_record.go deleted file mode 100644 index e2ccdb220..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/add_zone_record.go +++ /dev/null @@ -1,109 +0,0 @@ -package pvtz - -//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" -) - -// AddZoneRecord invokes the pvtz.AddZoneRecord API synchronously -func (client *Client) AddZoneRecord(request *AddZoneRecordRequest) (response *AddZoneRecordResponse, err error) { - response = CreateAddZoneRecordResponse() - err = client.DoAction(request, response) - return -} - -// AddZoneRecordWithChan invokes the pvtz.AddZoneRecord API asynchronously -func (client *Client) AddZoneRecordWithChan(request *AddZoneRecordRequest) (<-chan *AddZoneRecordResponse, <-chan error) { - responseChan := make(chan *AddZoneRecordResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AddZoneRecord(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AddZoneRecordWithCallback invokes the pvtz.AddZoneRecord API asynchronously -func (client *Client) AddZoneRecordWithCallback(request *AddZoneRecordRequest, callback func(response *AddZoneRecordResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AddZoneRecordResponse - var err error - defer close(result) - response, err = client.AddZoneRecord(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AddZoneRecordRequest is the request struct for api AddZoneRecord -type AddZoneRecordRequest struct { - *requests.RpcRequest - Rr string `position:"Query" name:"Rr"` - Remark string `position:"Query" name:"Remark"` - Type string `position:"Query" name:"Type"` - Priority requests.Integer `position:"Query" name:"Priority"` - Ttl requests.Integer `position:"Query" name:"Ttl"` - UserClientIp string `position:"Query" name:"UserClientIp"` - ZoneId string `position:"Query" name:"ZoneId"` - Lang string `position:"Query" name:"Lang"` - Value string `position:"Query" name:"Value"` -} - -// AddZoneRecordResponse is the response struct for api AddZoneRecord -type AddZoneRecordResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecordId int64 `json:"RecordId" xml:"RecordId"` - Success bool `json:"Success" xml:"Success"` -} - -// CreateAddZoneRecordRequest creates a request to invoke AddZoneRecord API -func CreateAddZoneRecordRequest() (request *AddZoneRecordRequest) { - request = &AddZoneRecordRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "AddZoneRecord", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateAddZoneRecordResponse creates a response to parse from AddZoneRecord response -func CreateAddZoneRecordResponse() (response *AddZoneRecordResponse) { - response = &AddZoneRecordResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/bind_zone_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/bind_zone_vpc.go deleted file mode 100644 index 60204c137..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/bind_zone_vpc.go +++ /dev/null @@ -1,108 +0,0 @@ -package pvtz - -//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" -) - -// BindZoneVpc invokes the pvtz.BindZoneVpc API synchronously -func (client *Client) BindZoneVpc(request *BindZoneVpcRequest) (response *BindZoneVpcResponse, err error) { - response = CreateBindZoneVpcResponse() - err = client.DoAction(request, response) - return -} - -// BindZoneVpcWithChan invokes the pvtz.BindZoneVpc API asynchronously -func (client *Client) BindZoneVpcWithChan(request *BindZoneVpcRequest) (<-chan *BindZoneVpcResponse, <-chan error) { - responseChan := make(chan *BindZoneVpcResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.BindZoneVpc(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// BindZoneVpcWithCallback invokes the pvtz.BindZoneVpc API asynchronously -func (client *Client) BindZoneVpcWithCallback(request *BindZoneVpcRequest, callback func(response *BindZoneVpcResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *BindZoneVpcResponse - var err error - defer close(result) - response, err = client.BindZoneVpc(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// BindZoneVpcRequest is the request struct for api BindZoneVpc -type BindZoneVpcRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - ZoneId string `position:"Query" name:"ZoneId"` - Lang string `position:"Query" name:"Lang"` - Vpcs *[]BindZoneVpcVpcs `position:"Query" name:"Vpcs" type:"Repeated"` -} - -// BindZoneVpcVpcs is a repeated param struct in BindZoneVpcRequest -type BindZoneVpcVpcs struct { - RegionId string `name:"RegionId"` - VpcId string `name:"VpcId"` -} - -// BindZoneVpcResponse is the response struct for api BindZoneVpc -type BindZoneVpcResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateBindZoneVpcRequest creates a request to invoke BindZoneVpc API -func CreateBindZoneVpcRequest() (request *BindZoneVpcRequest) { - request = &BindZoneVpcRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "BindZoneVpc", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateBindZoneVpcResponse creates a response to parse from BindZoneVpc response -func CreateBindZoneVpcResponse() (response *BindZoneVpcResponse) { - response = &BindZoneVpcResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/check_zone_name.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/check_zone_name.go deleted file mode 100644 index 4d9089cff..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/check_zone_name.go +++ /dev/null @@ -1,103 +0,0 @@ -package pvtz - -//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" -) - -// CheckZoneName invokes the pvtz.CheckZoneName API synchronously -func (client *Client) CheckZoneName(request *CheckZoneNameRequest) (response *CheckZoneNameResponse, err error) { - response = CreateCheckZoneNameResponse() - err = client.DoAction(request, response) - return -} - -// CheckZoneNameWithChan invokes the pvtz.CheckZoneName API asynchronously -func (client *Client) CheckZoneNameWithChan(request *CheckZoneNameRequest) (<-chan *CheckZoneNameResponse, <-chan error) { - responseChan := make(chan *CheckZoneNameResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CheckZoneName(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CheckZoneNameWithCallback invokes the pvtz.CheckZoneName API asynchronously -func (client *Client) CheckZoneNameWithCallback(request *CheckZoneNameRequest, callback func(response *CheckZoneNameResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CheckZoneNameResponse - var err error - defer close(result) - response, err = client.CheckZoneName(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CheckZoneNameRequest is the request struct for api CheckZoneName -type CheckZoneNameRequest struct { - *requests.RpcRequest - ZoneName string `position:"Query" name:"ZoneName"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// CheckZoneNameResponse is the response struct for api CheckZoneName -type CheckZoneNameResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Success bool `json:"Success" xml:"Success"` - Check bool `json:"Check" xml:"Check"` -} - -// CreateCheckZoneNameRequest creates a request to invoke CheckZoneName API -func CreateCheckZoneNameRequest() (request *CheckZoneNameRequest) { - request = &CheckZoneNameRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "CheckZoneName", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateCheckZoneNameResponse creates a response to parse from CheckZoneName response -func CreateCheckZoneNameResponse() (response *CheckZoneNameResponse) { - response = &CheckZoneNameResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/client.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/client.go deleted file mode 100644 index 081a5a732..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/client.go +++ /dev/null @@ -1,129 +0,0 @@ -package pvtz - -//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 ( - "reflect" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider" -) - -// Client is the sdk client struct, each func corresponds to an OpenAPI -type Client struct { - sdk.Client -} - -// SetClientProperty Set Property by Reflect -func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) { - v := reflect.ValueOf(client).Elem() - if v.FieldByName(propertyName).IsValid() && v.FieldByName(propertyName).CanSet() { - v.FieldByName(propertyName).Set(reflect.ValueOf(propertyValue)) - } -} - -// SetEndpointDataToClient Set EndpointMap and ENdpointType -func SetEndpointDataToClient(client *Client) { - SetClientProperty(client, "EndpointMap", GetEndpointMap()) - SetClientProperty(client, "EndpointType", GetEndpointType()) -} - -// NewClient creates a sdk client with environment variables -func NewClient() (client *Client, err error) { - client = &Client{} - err = client.Init() - SetEndpointDataToClient(client) - return -} - -// NewClientWithProvider creates a sdk client with providers -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) { - client = &Client{} - var pc provider.Provider - if len(providers) == 0 { - pc = provider.DefaultChain - } else { - pc = provider.NewProviderChain(providers) - } - err = client.InitWithProviderChain(regionId, pc) - SetEndpointDataToClient(client) - return -} - -// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential -// this is the common api to create a sdk client -func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) { - client = &Client{} - err = client.InitWithOptions(regionId, config, credential) - SetEndpointDataToClient(client) - return -} - -// NewClientWithAccessKey is a shortcut to create sdk client with accesskey -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { - client = &Client{} - err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) - SetEndpointDataToClient(client) - return -} - -// NewClientWithStsToken is a shortcut to create sdk client with sts token -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { - client = &Client{} - err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) - SetEndpointDataToClient(client) - return -} - -// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { - client = &Client{} - err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) - SetEndpointDataToClient(client) - return -} - -// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) { - client = &Client{} - err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy) - SetEndpointDataToClient(client) - return -} - -// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { - client = &Client{} - err = client.InitWithEcsRamRole(regionId, roleName) - SetEndpointDataToClient(client) - return -} - -// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair -// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md -func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { - client = &Client{} - err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) - SetEndpointDataToClient(client) - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/delete_zone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/delete_zone.go deleted file mode 100644 index 2238a4e42..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/delete_zone.go +++ /dev/null @@ -1,102 +0,0 @@ -package pvtz - -//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" -) - -// DeleteZone invokes the pvtz.DeleteZone API synchronously -func (client *Client) DeleteZone(request *DeleteZoneRequest) (response *DeleteZoneResponse, err error) { - response = CreateDeleteZoneResponse() - err = client.DoAction(request, response) - return -} - -// DeleteZoneWithChan invokes the pvtz.DeleteZone API asynchronously -func (client *Client) DeleteZoneWithChan(request *DeleteZoneRequest) (<-chan *DeleteZoneResponse, <-chan error) { - responseChan := make(chan *DeleteZoneResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteZone(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteZoneWithCallback invokes the pvtz.DeleteZone API asynchronously -func (client *Client) DeleteZoneWithCallback(request *DeleteZoneRequest, callback func(response *DeleteZoneResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteZoneResponse - var err error - defer close(result) - response, err = client.DeleteZone(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteZoneRequest is the request struct for api DeleteZone -type DeleteZoneRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - ZoneId string `position:"Query" name:"ZoneId"` - Lang string `position:"Query" name:"Lang"` -} - -// DeleteZoneResponse is the response struct for api DeleteZone -type DeleteZoneResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` -} - -// CreateDeleteZoneRequest creates a request to invoke DeleteZone API -func CreateDeleteZoneRequest() (request *DeleteZoneRequest) { - request = &DeleteZoneRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "DeleteZone", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteZoneResponse creates a response to parse from DeleteZone response -func CreateDeleteZoneResponse() (response *DeleteZoneResponse) { - response = &DeleteZoneResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/delete_zone_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/delete_zone_record.go deleted file mode 100644 index 3e288f5fd..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/delete_zone_record.go +++ /dev/null @@ -1,102 +0,0 @@ -package pvtz - -//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" -) - -// DeleteZoneRecord invokes the pvtz.DeleteZoneRecord API synchronously -func (client *Client) DeleteZoneRecord(request *DeleteZoneRecordRequest) (response *DeleteZoneRecordResponse, err error) { - response = CreateDeleteZoneRecordResponse() - err = client.DoAction(request, response) - return -} - -// DeleteZoneRecordWithChan invokes the pvtz.DeleteZoneRecord API asynchronously -func (client *Client) DeleteZoneRecordWithChan(request *DeleteZoneRecordRequest) (<-chan *DeleteZoneRecordResponse, <-chan error) { - responseChan := make(chan *DeleteZoneRecordResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteZoneRecord(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteZoneRecordWithCallback invokes the pvtz.DeleteZoneRecord API asynchronously -func (client *Client) DeleteZoneRecordWithCallback(request *DeleteZoneRecordRequest, callback func(response *DeleteZoneRecordResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteZoneRecordResponse - var err error - defer close(result) - response, err = client.DeleteZoneRecord(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteZoneRecordRequest is the request struct for api DeleteZoneRecord -type DeleteZoneRecordRequest struct { - *requests.RpcRequest - RecordId requests.Integer `position:"Query" name:"RecordId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DeleteZoneRecordResponse is the response struct for api DeleteZoneRecord -type DeleteZoneRecordResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecordId int64 `json:"RecordId" xml:"RecordId"` -} - -// CreateDeleteZoneRecordRequest creates a request to invoke DeleteZoneRecord API -func CreateDeleteZoneRecordRequest() (request *DeleteZoneRecordRequest) { - request = &DeleteZoneRecordRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "DeleteZoneRecord", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateDeleteZoneRecordResponse creates a response to parse from DeleteZoneRecord response -func CreateDeleteZoneRecordResponse() (response *DeleteZoneRecordResponse) { - response = &DeleteZoneRecordResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_change_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_change_logs.go deleted file mode 100644 index 82025046e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_change_logs.go +++ /dev/null @@ -1,112 +0,0 @@ -package pvtz - -//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" -) - -// DescribeChangeLogs invokes the pvtz.DescribeChangeLogs API synchronously -func (client *Client) DescribeChangeLogs(request *DescribeChangeLogsRequest) (response *DescribeChangeLogsResponse, err error) { - response = CreateDescribeChangeLogsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeChangeLogsWithChan invokes the pvtz.DescribeChangeLogs API asynchronously -func (client *Client) DescribeChangeLogsWithChan(request *DescribeChangeLogsRequest) (<-chan *DescribeChangeLogsResponse, <-chan error) { - responseChan := make(chan *DescribeChangeLogsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeChangeLogs(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeChangeLogsWithCallback invokes the pvtz.DescribeChangeLogs API asynchronously -func (client *Client) DescribeChangeLogsWithCallback(request *DescribeChangeLogsRequest, callback func(response *DescribeChangeLogsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeChangeLogsResponse - var err error - defer close(result) - response, err = client.DescribeChangeLogs(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeChangeLogsRequest is the request struct for api DescribeChangeLogs -type DescribeChangeLogsRequest struct { - *requests.RpcRequest - StartTimestamp requests.Integer `position:"Query" name:"StartTimestamp"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - EndTimestamp requests.Integer `position:"Query" name:"EndTimestamp"` - EntityType string `position:"Query" name:"EntityType"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - UserClientIp string `position:"Query" name:"UserClientIp"` - ZoneId string `position:"Query" name:"ZoneId"` - Keyword string `position:"Query" name:"Keyword"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeChangeLogsResponse is the response struct for api DescribeChangeLogs -type DescribeChangeLogsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - ChangeLogs ChangeLogs `json:"ChangeLogs" xml:"ChangeLogs"` -} - -// CreateDescribeChangeLogsRequest creates a request to invoke DescribeChangeLogs API -func CreateDescribeChangeLogsRequest() (request *DescribeChangeLogsRequest) { - request = &DescribeChangeLogsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "DescribeChangeLogs", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeChangeLogsResponse creates a response to parse from DescribeChangeLogs response -func CreateDescribeChangeLogsResponse() (response *DescribeChangeLogsResponse) { - response = &DescribeChangeLogsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_regions.go deleted file mode 100644 index 66ec0c4e1..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_regions.go +++ /dev/null @@ -1,103 +0,0 @@ -package pvtz - -//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" -) - -// DescribeRegions invokes the pvtz.DescribeRegions API synchronously -func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { - response = CreateDescribeRegionsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeRegionsWithChan invokes the pvtz.DescribeRegions API asynchronously -func (client *Client) DescribeRegionsWithChan(request *DescribeRegionsRequest) (<-chan *DescribeRegionsResponse, <-chan error) { - responseChan := make(chan *DescribeRegionsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeRegions(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeRegionsWithCallback invokes the pvtz.DescribeRegions API asynchronously -func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsRequest, callback func(response *DescribeRegionsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeRegionsResponse - var err error - defer close(result) - response, err = client.DescribeRegions(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeRegionsRequest is the request struct for api DescribeRegions -type DescribeRegionsRequest struct { - *requests.RpcRequest - AuthorizedUserId requests.Integer `position:"Query" name:"AuthorizedUserId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeRegionsResponse is the response struct for api DescribeRegions -type DescribeRegionsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Regions Regions `json:"Regions" xml:"Regions"` -} - -// CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API -func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) { - request = &DescribeRegionsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "DescribeRegions", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeRegionsResponse creates a response to parse from DescribeRegions response -func CreateDescribeRegionsResponse() (response *DescribeRegionsResponse) { - response = &DescribeRegionsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_request_graph.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_request_graph.go deleted file mode 100644 index 59c0dc09c..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_request_graph.go +++ /dev/null @@ -1,107 +0,0 @@ -package pvtz - -//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" -) - -// DescribeRequestGraph invokes the pvtz.DescribeRequestGraph API synchronously -func (client *Client) DescribeRequestGraph(request *DescribeRequestGraphRequest) (response *DescribeRequestGraphResponse, err error) { - response = CreateDescribeRequestGraphResponse() - err = client.DoAction(request, response) - return -} - -// DescribeRequestGraphWithChan invokes the pvtz.DescribeRequestGraph API asynchronously -func (client *Client) DescribeRequestGraphWithChan(request *DescribeRequestGraphRequest) (<-chan *DescribeRequestGraphResponse, <-chan error) { - responseChan := make(chan *DescribeRequestGraphResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeRequestGraph(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeRequestGraphWithCallback invokes the pvtz.DescribeRequestGraph API asynchronously -func (client *Client) DescribeRequestGraphWithCallback(request *DescribeRequestGraphRequest, callback func(response *DescribeRequestGraphResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeRequestGraphResponse - var err error - defer close(result) - response, err = client.DescribeRequestGraph(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeRequestGraphRequest is the request struct for api DescribeRequestGraph -type DescribeRequestGraphRequest struct { - *requests.RpcRequest - StartTimestamp requests.Integer `position:"Query" name:"StartTimestamp"` - EndTimestamp requests.Integer `position:"Query" name:"EndTimestamp"` - BizType string `position:"Query" name:"BizType"` - VpcId string `position:"Query" name:"VpcId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - BizId string `position:"Query" name:"BizId"` - ZoneId string `position:"Query" name:"ZoneId"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeRequestGraphResponse is the response struct for api DescribeRequestGraph -type DescribeRequestGraphResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RequestDetails RequestDetails `json:"RequestDetails" xml:"RequestDetails"` -} - -// CreateDescribeRequestGraphRequest creates a request to invoke DescribeRequestGraph API -func CreateDescribeRequestGraphRequest() (request *DescribeRequestGraphRequest) { - request = &DescribeRequestGraphRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "DescribeRequestGraph", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeRequestGraphResponse creates a response to parse from DescribeRequestGraph response -func CreateDescribeRequestGraphResponse() (response *DescribeRequestGraphResponse) { - response = &DescribeRequestGraphResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_statistic_summary.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_statistic_summary.go deleted file mode 100644 index 13f2d11ca..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_statistic_summary.go +++ /dev/null @@ -1,103 +0,0 @@ -package pvtz - -//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" -) - -// DescribeStatisticSummary invokes the pvtz.DescribeStatisticSummary API synchronously -func (client *Client) DescribeStatisticSummary(request *DescribeStatisticSummaryRequest) (response *DescribeStatisticSummaryResponse, err error) { - response = CreateDescribeStatisticSummaryResponse() - err = client.DoAction(request, response) - return -} - -// DescribeStatisticSummaryWithChan invokes the pvtz.DescribeStatisticSummary API asynchronously -func (client *Client) DescribeStatisticSummaryWithChan(request *DescribeStatisticSummaryRequest) (<-chan *DescribeStatisticSummaryResponse, <-chan error) { - responseChan := make(chan *DescribeStatisticSummaryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeStatisticSummary(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeStatisticSummaryWithCallback invokes the pvtz.DescribeStatisticSummary API asynchronously -func (client *Client) DescribeStatisticSummaryWithCallback(request *DescribeStatisticSummaryRequest, callback func(response *DescribeStatisticSummaryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeStatisticSummaryResponse - var err error - defer close(result) - response, err = client.DescribeStatisticSummary(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeStatisticSummaryRequest is the request struct for api DescribeStatisticSummary -type DescribeStatisticSummaryRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeStatisticSummaryResponse is the response struct for api DescribeStatisticSummary -type DescribeStatisticSummaryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - ZoneRequestTops ZoneRequestTops `json:"ZoneRequestTops" xml:"ZoneRequestTops"` - VpcRequestTops VpcRequestTops `json:"VpcRequestTops" xml:"VpcRequestTops"` -} - -// CreateDescribeStatisticSummaryRequest creates a request to invoke DescribeStatisticSummary API -func CreateDescribeStatisticSummaryRequest() (request *DescribeStatisticSummaryRequest) { - request = &DescribeStatisticSummaryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "DescribeStatisticSummary", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeStatisticSummaryResponse creates a response to parse from DescribeStatisticSummary response -func CreateDescribeStatisticSummaryResponse() (response *DescribeStatisticSummaryResponse) { - response = &DescribeStatisticSummaryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_tags.go deleted file mode 100644 index 62fb38d83..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_tags.go +++ /dev/null @@ -1,107 +0,0 @@ -package pvtz - -//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" -) - -// DescribeTags invokes the pvtz.DescribeTags API synchronously -func (client *Client) DescribeTags(request *DescribeTagsRequest) (response *DescribeTagsResponse, err error) { - response = CreateDescribeTagsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeTagsWithChan invokes the pvtz.DescribeTags API asynchronously -func (client *Client) DescribeTagsWithChan(request *DescribeTagsRequest) (<-chan *DescribeTagsResponse, <-chan error) { - responseChan := make(chan *DescribeTagsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeTags(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeTagsWithCallback invokes the pvtz.DescribeTags API asynchronously -func (client *Client) DescribeTagsWithCallback(request *DescribeTagsRequest, callback func(response *DescribeTagsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeTagsResponse - var err error - defer close(result) - response, err = client.DescribeTags(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeTagsRequest is the request struct for api DescribeTags -type DescribeTagsRequest struct { - *requests.RpcRequest - ResourceType string `position:"Query" name:"ResourceType"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - UserClientIp string `position:"Query" name:"UserClientIp"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeTagsResponse is the response struct for api DescribeTags -type DescribeTagsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - Tags []Tag `json:"Tags" xml:"Tags"` -} - -// CreateDescribeTagsRequest creates a request to invoke DescribeTags API -func CreateDescribeTagsRequest() (request *DescribeTagsRequest) { - request = &DescribeTagsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "DescribeTags", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeTagsResponse creates a response to parse from DescribeTags response -func CreateDescribeTagsResponse() (response *DescribeTagsResponse) { - response = &DescribeTagsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_info.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_info.go deleted file mode 100644 index 4cdf898e5..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_info.go +++ /dev/null @@ -1,116 +0,0 @@ -package pvtz - -//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" -) - -// DescribeZoneInfo invokes the pvtz.DescribeZoneInfo API synchronously -func (client *Client) DescribeZoneInfo(request *DescribeZoneInfoRequest) (response *DescribeZoneInfoResponse, err error) { - response = CreateDescribeZoneInfoResponse() - err = client.DoAction(request, response) - return -} - -// DescribeZoneInfoWithChan invokes the pvtz.DescribeZoneInfo API asynchronously -func (client *Client) DescribeZoneInfoWithChan(request *DescribeZoneInfoRequest) (<-chan *DescribeZoneInfoResponse, <-chan error) { - responseChan := make(chan *DescribeZoneInfoResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeZoneInfo(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeZoneInfoWithCallback invokes the pvtz.DescribeZoneInfo API asynchronously -func (client *Client) DescribeZoneInfoWithCallback(request *DescribeZoneInfoRequest, callback func(response *DescribeZoneInfoResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeZoneInfoResponse - var err error - defer close(result) - response, err = client.DescribeZoneInfo(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeZoneInfoRequest is the request struct for api DescribeZoneInfo -type DescribeZoneInfoRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - ZoneId string `position:"Query" name:"ZoneId"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeZoneInfoResponse is the response struct for api DescribeZoneInfo -type DescribeZoneInfoResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - ZoneName string `json:"ZoneName" xml:"ZoneName"` - Remark string `json:"Remark" xml:"Remark"` - RecordCount int `json:"RecordCount" xml:"RecordCount"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` - UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` - IsPtr bool `json:"IsPtr" xml:"IsPtr"` - ProxyPattern string `json:"ProxyPattern" xml:"ProxyPattern"` - SlaveDns bool `json:"SlaveDns" xml:"SlaveDns"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - ZoneType string `json:"ZoneType" xml:"ZoneType"` - ZoneTag string `json:"ZoneTag" xml:"ZoneTag"` - BindVpcs BindVpcs `json:"BindVpcs" xml:"BindVpcs"` -} - -// CreateDescribeZoneInfoRequest creates a request to invoke DescribeZoneInfo API -func CreateDescribeZoneInfoRequest() (request *DescribeZoneInfoRequest) { - request = &DescribeZoneInfoRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "DescribeZoneInfo", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeZoneInfoResponse creates a response to parse from DescribeZoneInfo response -func CreateDescribeZoneInfoResponse() (response *DescribeZoneInfoResponse) { - response = &DescribeZoneInfoResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_records.go deleted file mode 100644 index 6c158aa18..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_records.go +++ /dev/null @@ -1,113 +0,0 @@ -package pvtz - -//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" -) - -// DescribeZoneRecords invokes the pvtz.DescribeZoneRecords API synchronously -func (client *Client) DescribeZoneRecords(request *DescribeZoneRecordsRequest) (response *DescribeZoneRecordsResponse, err error) { - response = CreateDescribeZoneRecordsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeZoneRecordsWithChan invokes the pvtz.DescribeZoneRecords API asynchronously -func (client *Client) DescribeZoneRecordsWithChan(request *DescribeZoneRecordsRequest) (<-chan *DescribeZoneRecordsResponse, <-chan error) { - responseChan := make(chan *DescribeZoneRecordsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeZoneRecords(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeZoneRecordsWithCallback invokes the pvtz.DescribeZoneRecords API asynchronously -func (client *Client) DescribeZoneRecordsWithCallback(request *DescribeZoneRecordsRequest, callback func(response *DescribeZoneRecordsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeZoneRecordsResponse - var err error - defer close(result) - response, err = client.DescribeZoneRecords(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeZoneRecordsRequest is the request struct for api DescribeZoneRecords -type DescribeZoneRecordsRequest struct { - *requests.RpcRequest - OrderBy string `position:"Query" name:"OrderBy"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - UserClientIp string `position:"Query" name:"UserClientIp"` - ZoneId string `position:"Query" name:"ZoneId"` - SearchMode string `position:"Query" name:"SearchMode"` - Tag string `position:"Query" name:"Tag"` - Lang string `position:"Query" name:"Lang"` - Keyword string `position:"Query" name:"Keyword"` - Direction string `position:"Query" name:"Direction"` -} - -// DescribeZoneRecordsResponse is the response struct for api DescribeZoneRecords -type DescribeZoneRecordsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - Records Records `json:"Records" xml:"Records"` -} - -// CreateDescribeZoneRecordsRequest creates a request to invoke DescribeZoneRecords API -func CreateDescribeZoneRecordsRequest() (request *DescribeZoneRecordsRequest) { - request = &DescribeZoneRecordsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "DescribeZoneRecords", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeZoneRecordsResponse creates a response to parse from DescribeZoneRecords response -func CreateDescribeZoneRecordsResponse() (response *DescribeZoneRecordsResponse) { - response = &DescribeZoneRecordsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_vpc_tree.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_vpc_tree.go deleted file mode 100644 index 07e4966e6..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zone_vpc_tree.go +++ /dev/null @@ -1,101 +0,0 @@ -package pvtz - -//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" -) - -// DescribeZoneVpcTree invokes the pvtz.DescribeZoneVpcTree API synchronously -func (client *Client) DescribeZoneVpcTree(request *DescribeZoneVpcTreeRequest) (response *DescribeZoneVpcTreeResponse, err error) { - response = CreateDescribeZoneVpcTreeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeZoneVpcTreeWithChan invokes the pvtz.DescribeZoneVpcTree API asynchronously -func (client *Client) DescribeZoneVpcTreeWithChan(request *DescribeZoneVpcTreeRequest) (<-chan *DescribeZoneVpcTreeResponse, <-chan error) { - responseChan := make(chan *DescribeZoneVpcTreeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeZoneVpcTree(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeZoneVpcTreeWithCallback invokes the pvtz.DescribeZoneVpcTree API asynchronously -func (client *Client) DescribeZoneVpcTreeWithCallback(request *DescribeZoneVpcTreeRequest, callback func(response *DescribeZoneVpcTreeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeZoneVpcTreeResponse - var err error - defer close(result) - response, err = client.DescribeZoneVpcTree(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeZoneVpcTreeRequest is the request struct for api DescribeZoneVpcTree -type DescribeZoneVpcTreeRequest struct { - *requests.RpcRequest - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// DescribeZoneVpcTreeResponse is the response struct for api DescribeZoneVpcTree -type DescribeZoneVpcTreeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Zones ZonesInDescribeZoneVpcTree `json:"Zones" xml:"Zones"` -} - -// CreateDescribeZoneVpcTreeRequest creates a request to invoke DescribeZoneVpcTree API -func CreateDescribeZoneVpcTreeRequest() (request *DescribeZoneVpcTreeRequest) { - request = &DescribeZoneVpcTreeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "DescribeZoneVpcTree", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeZoneVpcTreeResponse creates a response to parse from DescribeZoneVpcTree response -func CreateDescribeZoneVpcTreeResponse() (response *DescribeZoneVpcTreeResponse) { - response = &DescribeZoneVpcTreeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zones.go deleted file mode 100644 index 6e3ec0a91..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/describe_zones.go +++ /dev/null @@ -1,123 +0,0 @@ -package pvtz - -//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" -) - -// DescribeZones invokes the pvtz.DescribeZones API synchronously -func (client *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error) { - response = CreateDescribeZonesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeZonesWithChan invokes the pvtz.DescribeZones API asynchronously -func (client *Client) DescribeZonesWithChan(request *DescribeZonesRequest) (<-chan *DescribeZonesResponse, <-chan error) { - responseChan := make(chan *DescribeZonesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeZones(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeZonesWithCallback invokes the pvtz.DescribeZones API asynchronously -func (client *Client) DescribeZonesWithCallback(request *DescribeZonesRequest, callback func(response *DescribeZonesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeZonesResponse - var err error - defer close(result) - response, err = client.DescribeZones(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeZonesRequest is the request struct for api DescribeZones -type DescribeZonesRequest struct { - *requests.RpcRequest - QueryVpcId string `position:"Query" name:"QueryVpcId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceTag *[]DescribeZonesResourceTag `position:"Query" name:"ResourceTag" type:"Repeated"` - Lang string `position:"Query" name:"Lang"` - Keyword string `position:"Query" name:"Keyword"` - Direction string `position:"Query" name:"Direction"` - OrderBy string `position:"Query" name:"OrderBy"` - ZoneTag *[]string `position:"Query" name:"ZoneTag" type:"Repeated"` - UserClientIp string `position:"Query" name:"UserClientIp"` - SearchMode string `position:"Query" name:"SearchMode"` - ZoneType string `position:"Query" name:"ZoneType"` - QueryRegionId string `position:"Query" name:"QueryRegionId"` -} - -// DescribeZonesResourceTag is a repeated param struct in DescribeZonesRequest -type DescribeZonesResourceTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// DescribeZonesResponse is the response struct for api DescribeZones -type DescribeZonesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalItems int `json:"TotalItems" xml:"TotalItems"` - TotalPages int `json:"TotalPages" xml:"TotalPages"` - PageSize int `json:"PageSize" xml:"PageSize"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - Zones ZonesInDescribeZones `json:"Zones" xml:"Zones"` -} - -// CreateDescribeZonesRequest creates a request to invoke DescribeZones API -func CreateDescribeZonesRequest() (request *DescribeZonesRequest) { - request = &DescribeZonesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "DescribeZones", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeZonesResponse creates a response to parse from DescribeZones response -func CreateDescribeZonesResponse() (response *DescribeZonesResponse) { - response = &DescribeZonesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/endpoint.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/endpoint.go deleted file mode 100644 index a846470b4..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/endpoint.go +++ /dev/null @@ -1,20 +0,0 @@ -package pvtz - -// EndpointMap Endpoint Data -var EndpointMap map[string]string - -// EndpointType regional or central -var EndpointType = "central" - -// GetEndpointMap Get Endpoint Data Map -func GetEndpointMap() map[string]string { - if EndpointMap == nil { - EndpointMap = map[string]string{} - } - return EndpointMap -} - -// GetEndpointType Get Endpoint Type Value -func GetEndpointType() string { - return EndpointType -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/list_tag_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/list_tag_resources.go deleted file mode 100644 index 0fe108fdf..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/list_tag_resources.go +++ /dev/null @@ -1,113 +0,0 @@ -package pvtz - -//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" -) - -// ListTagResources invokes the pvtz.ListTagResources API synchronously -func (client *Client) ListTagResources(request *ListTagResourcesRequest) (response *ListTagResourcesResponse, err error) { - response = CreateListTagResourcesResponse() - err = client.DoAction(request, response) - return -} - -// ListTagResourcesWithChan invokes the pvtz.ListTagResources API asynchronously -func (client *Client) ListTagResourcesWithChan(request *ListTagResourcesRequest) (<-chan *ListTagResourcesResponse, <-chan error) { - responseChan := make(chan *ListTagResourcesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ListTagResources(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ListTagResourcesWithCallback invokes the pvtz.ListTagResources API asynchronously -func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequest, callback func(response *ListTagResourcesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ListTagResourcesResponse - var err error - defer close(result) - response, err = client.ListTagResources(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ListTagResourcesRequest is the request struct for api ListTagResources -type ListTagResourcesRequest struct { - *requests.RpcRequest - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - ResourceType string `position:"Query" name:"ResourceType"` - Size requests.Integer `position:"Query" name:"Size"` - NextToken string `position:"Query" name:"NextToken"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Tag *[]ListTagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` - Lang string `position:"Query" name:"Lang"` -} - -// ListTagResourcesTag is a repeated param struct in ListTagResourcesRequest -type ListTagResourcesTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// ListTagResourcesResponse is the response struct for api ListTagResources -type ListTagResourcesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - NextToken string `json:"NextToken" xml:"NextToken"` - TagResources []TagResource `json:"TagResources" xml:"TagResources"` -} - -// CreateListTagResourcesRequest creates a request to invoke ListTagResources API -func CreateListTagResourcesRequest() (request *ListTagResourcesRequest) { - request = &ListTagResourcesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "ListTagResources", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateListTagResourcesResponse creates a response to parse from ListTagResources response -func CreateListTagResourcesResponse() (response *ListTagResourcesResponse) { - response = &ListTagResourcesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/move_resource_group.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/move_resource_group.go deleted file mode 100644 index 7f2277048..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/move_resource_group.go +++ /dev/null @@ -1,102 +0,0 @@ -package pvtz - -//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" -) - -// MoveResourceGroup invokes the pvtz.MoveResourceGroup API synchronously -func (client *Client) MoveResourceGroup(request *MoveResourceGroupRequest) (response *MoveResourceGroupResponse, err error) { - response = CreateMoveResourceGroupResponse() - err = client.DoAction(request, response) - return -} - -// MoveResourceGroupWithChan invokes the pvtz.MoveResourceGroup API asynchronously -func (client *Client) MoveResourceGroupWithChan(request *MoveResourceGroupRequest) (<-chan *MoveResourceGroupResponse, <-chan error) { - responseChan := make(chan *MoveResourceGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.MoveResourceGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// MoveResourceGroupWithCallback invokes the pvtz.MoveResourceGroup API asynchronously -func (client *Client) MoveResourceGroupWithCallback(request *MoveResourceGroupRequest, callback func(response *MoveResourceGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *MoveResourceGroupResponse - var err error - defer close(result) - response, err = client.MoveResourceGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// MoveResourceGroupRequest is the request struct for api MoveResourceGroup -type MoveResourceGroupRequest struct { - *requests.RpcRequest - ResourceId string `position:"Query" name:"ResourceId"` - NewResourceGroupId string `position:"Query" name:"NewResourceGroupId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// MoveResourceGroupResponse is the response struct for api MoveResourceGroup -type MoveResourceGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateMoveResourceGroupRequest creates a request to invoke MoveResourceGroup API -func CreateMoveResourceGroupRequest() (request *MoveResourceGroupRequest) { - request = &MoveResourceGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "MoveResourceGroup", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateMoveResourceGroupResponse creates a response to parse from MoveResourceGroup response -func CreateMoveResourceGroupResponse() (response *MoveResourceGroupResponse) { - response = &MoveResourceGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/set_proxy_pattern.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/set_proxy_pattern.go deleted file mode 100644 index 5e5caba57..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/set_proxy_pattern.go +++ /dev/null @@ -1,103 +0,0 @@ -package pvtz - -//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" -) - -// SetProxyPattern invokes the pvtz.SetProxyPattern API synchronously -func (client *Client) SetProxyPattern(request *SetProxyPatternRequest) (response *SetProxyPatternResponse, err error) { - response = CreateSetProxyPatternResponse() - err = client.DoAction(request, response) - return -} - -// SetProxyPatternWithChan invokes the pvtz.SetProxyPattern API asynchronously -func (client *Client) SetProxyPatternWithChan(request *SetProxyPatternRequest) (<-chan *SetProxyPatternResponse, <-chan error) { - responseChan := make(chan *SetProxyPatternResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetProxyPattern(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetProxyPatternWithCallback invokes the pvtz.SetProxyPattern API asynchronously -func (client *Client) SetProxyPatternWithCallback(request *SetProxyPatternRequest, callback func(response *SetProxyPatternResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetProxyPatternResponse - var err error - defer close(result) - response, err = client.SetProxyPattern(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetProxyPatternRequest is the request struct for api SetProxyPattern -type SetProxyPatternRequest struct { - *requests.RpcRequest - ProxyPattern string `position:"Query" name:"ProxyPattern"` - UserClientIp string `position:"Query" name:"UserClientIp"` - ZoneId string `position:"Query" name:"ZoneId"` - Lang string `position:"Query" name:"Lang"` -} - -// SetProxyPatternResponse is the response struct for api SetProxyPattern -type SetProxyPatternResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` -} - -// CreateSetProxyPatternRequest creates a request to invoke SetProxyPattern API -func CreateSetProxyPatternRequest() (request *SetProxyPatternRequest) { - request = &SetProxyPatternRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "SetProxyPattern", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetProxyPatternResponse creates a response to parse from SetProxyPattern response -func CreateSetProxyPatternResponse() (response *SetProxyPatternResponse) { - response = &SetProxyPatternResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/set_zone_record_status.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/set_zone_record_status.go deleted file mode 100644 index aff4ef159..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/set_zone_record_status.go +++ /dev/null @@ -1,104 +0,0 @@ -package pvtz - -//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" -) - -// SetZoneRecordStatus invokes the pvtz.SetZoneRecordStatus API synchronously -func (client *Client) SetZoneRecordStatus(request *SetZoneRecordStatusRequest) (response *SetZoneRecordStatusResponse, err error) { - response = CreateSetZoneRecordStatusResponse() - err = client.DoAction(request, response) - return -} - -// SetZoneRecordStatusWithChan invokes the pvtz.SetZoneRecordStatus API asynchronously -func (client *Client) SetZoneRecordStatusWithChan(request *SetZoneRecordStatusRequest) (<-chan *SetZoneRecordStatusResponse, <-chan error) { - responseChan := make(chan *SetZoneRecordStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetZoneRecordStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetZoneRecordStatusWithCallback invokes the pvtz.SetZoneRecordStatus API asynchronously -func (client *Client) SetZoneRecordStatusWithCallback(request *SetZoneRecordStatusRequest, callback func(response *SetZoneRecordStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetZoneRecordStatusResponse - var err error - defer close(result) - response, err = client.SetZoneRecordStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetZoneRecordStatusRequest is the request struct for api SetZoneRecordStatus -type SetZoneRecordStatusRequest struct { - *requests.RpcRequest - RecordId requests.Integer `position:"Query" name:"RecordId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` - Status string `position:"Query" name:"Status"` -} - -// SetZoneRecordStatusResponse is the response struct for api SetZoneRecordStatus -type SetZoneRecordStatusResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecordId int64 `json:"RecordId" xml:"RecordId"` - Status string `json:"Status" xml:"Status"` -} - -// CreateSetZoneRecordStatusRequest creates a request to invoke SetZoneRecordStatus API -func CreateSetZoneRecordStatusRequest() (request *SetZoneRecordStatusRequest) { - request = &SetZoneRecordStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "SetZoneRecordStatus", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetZoneRecordStatusResponse creates a response to parse from SetZoneRecordStatus response -func CreateSetZoneRecordStatusResponse() (response *SetZoneRecordStatusResponse) { - response = &SetZoneRecordStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_bind_vpcs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_bind_vpcs.go deleted file mode 100644 index 98109eeba..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_bind_vpcs.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// BindVpcs is a nested struct in pvtz response -type BindVpcs struct { - Vpc []Vpc `json:"Vpc" xml:"Vpc"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_change_log.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_change_log.go deleted file mode 100644 index d1d27c086..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_change_log.go +++ /dev/null @@ -1,29 +0,0 @@ -package pvtz - -//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 pvtz response -type ChangeLog struct { - OperTime string `json:"OperTime" xml:"OperTime"` - OperAction string `json:"OperAction" xml:"OperAction"` - OperObject string `json:"OperObject" xml:"OperObject"` - EntityId string `json:"EntityId" xml:"EntityId"` - EntityName string `json:"EntityName" xml:"EntityName"` - OperIp string `json:"OperIp" xml:"OperIp"` - OperTimestamp int64 `json:"OperTimestamp" xml:"OperTimestamp"` - Id int64 `json:"Id" xml:"Id"` - Content string `json:"Content" xml:"Content"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_change_logs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_change_logs.go deleted file mode 100644 index c2508b9af..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_change_logs.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// ChangeLogs is a nested struct in pvtz response -type ChangeLogs struct { - ChangeLog []ChangeLog `json:"ChangeLog" xml:"ChangeLog"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_record.go deleted file mode 100644 index c3134130a..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_record.go +++ /dev/null @@ -1,29 +0,0 @@ -package pvtz - -//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. - -// Record is a nested struct in pvtz response -type Record struct { - RecordId int64 `json:"RecordId" xml:"RecordId"` - Rr string `json:"Rr" xml:"Rr"` - Type string `json:"Type" xml:"Type"` - Ttl int `json:"Ttl" xml:"Ttl"` - Priority int `json:"Priority" xml:"Priority"` - Value string `json:"Value" xml:"Value"` - Status string `json:"Status" xml:"Status"` - RegionId string `json:"RegionId" xml:"RegionId"` - Remark string `json:"Remark" xml:"Remark"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_records.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_records.go deleted file mode 100644 index 0d9e506cd..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_records.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// Records is a nested struct in pvtz response -type Records struct { - Record []Record `json:"Record" xml:"Record"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_region.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_region.go deleted file mode 100644 index 3329ad66c..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_region.go +++ /dev/null @@ -1,24 +0,0 @@ -package pvtz - -//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. - -// Region is a nested struct in pvtz response -type Region struct { - RegionId string `json:"RegionId" xml:"RegionId"` - RegionName string `json:"RegionName" xml:"RegionName"` - LocalName string `json:"LocalName" xml:"LocalName"` - RegionEndpoint string `json:"RegionEndpoint" xml:"RegionEndpoint"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_regions.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_regions.go deleted file mode 100644 index eaa180914..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_regions.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// Regions is a nested struct in pvtz response -type Regions struct { - Region []Region `json:"Region" xml:"Region"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_request_details.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_request_details.go deleted file mode 100644 index 0ac28d1a9..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_request_details.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// RequestDetails is a nested struct in pvtz response -type RequestDetails struct { - ZoneRequestTop []ZoneRequestTop `json:"ZoneRequestTop" xml:"ZoneRequestTop"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_resource_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_resource_tag.go deleted file mode 100644 index 7023c9f3c..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_resource_tag.go +++ /dev/null @@ -1,22 +0,0 @@ -package pvtz - -//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. - -// ResourceTag is a nested struct in pvtz response -type ResourceTag struct { - Key string `json:"Key" xml:"Key"` - Value string `json:"Value" xml:"Value"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_resource_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_resource_tags.go deleted file mode 100644 index 2b815cc51..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_resource_tags.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// ResourceTags is a nested struct in pvtz response -type ResourceTags struct { - ResourceTag []ResourceTag `json:"ResourceTag" xml:"ResourceTag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tag.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tag.go deleted file mode 100644 index 9c29a7358..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tag.go +++ /dev/null @@ -1,22 +0,0 @@ -package pvtz - -//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. - -// Tag is a nested struct in pvtz response -type Tag struct { - Key string `json:"Key" xml:"Key"` - Values []string `json:"Values" xml:"Values"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tag_resource.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tag_resource.go deleted file mode 100644 index 059e3ca8c..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tag_resource.go +++ /dev/null @@ -1,24 +0,0 @@ -package pvtz - -//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. - -// TagResource is a nested struct in pvtz response -type TagResource struct { - TagKey string `json:"TagKey" xml:"TagKey"` - TagValue string `json:"TagValue" xml:"TagValue"` - ResourceId string `json:"ResourceId" xml:"ResourceId"` - ResourceType string `json:"ResourceType" xml:"ResourceType"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tag_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tag_resources.go deleted file mode 100644 index 7c1d55737..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tag_resources.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// TagResources is a nested struct in pvtz response -type TagResources struct { - TagResource []TagResource `json:"TagResource" xml:"TagResource"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tags.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tags.go deleted file mode 100644 index 744f577b7..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_tags.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// Tags is a nested struct in pvtz response -type Tags struct { - Tag []Tag `json:"Tag" xml:"Tag"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_values.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_values.go deleted file mode 100644 index 1c2105774..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_values.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// Values is a nested struct in pvtz response -type Values struct { - Value []string `json:"Value" xml:"Value"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc.go deleted file mode 100644 index 0ef26d2e3..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc.go +++ /dev/null @@ -1,25 +0,0 @@ -package pvtz - -//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. - -// Vpc is a nested struct in pvtz response -type Vpc struct { - RegionId string `json:"RegionId" xml:"RegionId"` - VpcName string `json:"VpcName" xml:"VpcName"` - VpcUserId int64 `json:"VpcUserId" xml:"VpcUserId"` - VpcId string `json:"VpcId" xml:"VpcId"` - RegionName string `json:"RegionName" xml:"RegionName"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc_request_top.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc_request_top.go deleted file mode 100644 index 5261625f2..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc_request_top.go +++ /dev/null @@ -1,25 +0,0 @@ -package pvtz - -//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. - -// VpcRequestTop is a nested struct in pvtz response -type VpcRequestTop struct { - RegionId string `json:"RegionId" xml:"RegionId"` - VpcId string `json:"VpcId" xml:"VpcId"` - TunnelId string `json:"TunnelId" xml:"TunnelId"` - RequestCount int64 `json:"RequestCount" xml:"RequestCount"` - RegionName string `json:"RegionName" xml:"RegionName"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc_request_tops.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc_request_tops.go deleted file mode 100644 index 57b6bc582..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpc_request_tops.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// VpcRequestTops is a nested struct in pvtz response -type VpcRequestTops struct { - VpcRequestTop []VpcRequestTop `json:"VpcRequestTop" xml:"VpcRequestTop"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpcs.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpcs.go deleted file mode 100644 index f84276cb1..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_vpcs.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// Vpcs is a nested struct in pvtz response -type Vpcs struct { - Vpc []Vpc `json:"Vpc" xml:"Vpc"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone.go deleted file mode 100644 index 3db1dac60..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone.go +++ /dev/null @@ -1,35 +0,0 @@ -package pvtz - -//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. - -// Zone is a nested struct in pvtz response -type Zone struct { - UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` - ProxyPattern string `json:"ProxyPattern" xml:"ProxyPattern"` - Remark string `json:"Remark" xml:"Remark"` - CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` - RecordCount int `json:"RecordCount" xml:"RecordCount"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - ZoneTag string `json:"ZoneTag" xml:"ZoneTag"` - ZoneName string `json:"ZoneName" xml:"ZoneName"` - IsPtr bool `json:"IsPtr" xml:"IsPtr"` - ZoneType string `json:"ZoneType" xml:"ZoneType"` - ResourceTags ResourceTags `json:"ResourceTags" xml:"ResourceTags"` - Vpcs Vpcs `json:"Vpcs" xml:"Vpcs"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone_request_top.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone_request_top.go deleted file mode 100644 index 1b180fcbc..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone_request_top.go +++ /dev/null @@ -1,25 +0,0 @@ -package pvtz - -//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. - -// ZoneRequestTop is a nested struct in pvtz response -type ZoneRequestTop struct { - Time string `json:"Time" xml:"Time"` - BizType string `json:"BizType" xml:"BizType"` - RequestCount int64 `json:"RequestCount" xml:"RequestCount"` - Timestamp int64 `json:"Timestamp" xml:"Timestamp"` - ZoneName string `json:"ZoneName" xml:"ZoneName"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone_request_tops.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone_request_tops.go deleted file mode 100644 index 4d157ddcf..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zone_request_tops.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// ZoneRequestTops is a nested struct in pvtz response -type ZoneRequestTops struct { - ZoneRequestTop []ZoneRequestTop `json:"ZoneRequestTop" xml:"ZoneRequestTop"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zones_in_describe_zone_vpc_tree.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zones_in_describe_zone_vpc_tree.go deleted file mode 100644 index 62d5d31d3..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zones_in_describe_zone_vpc_tree.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// ZonesInDescribeZoneVpcTree is a nested struct in pvtz response -type ZonesInDescribeZoneVpcTree struct { - Zone []Zone `json:"Zone" xml:"Zone"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zones_in_describe_zones.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zones_in_describe_zones.go deleted file mode 100644 index 4bcfca17e..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/struct_zones_in_describe_zones.go +++ /dev/null @@ -1,21 +0,0 @@ -package pvtz - -//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. - -// ZonesInDescribeZones is a nested struct in pvtz response -type ZonesInDescribeZones struct { - Zone []Zone `json:"Zone" xml:"Zone"` -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/tag_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/tag_resources.go deleted file mode 100644 index 8648e463b..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/tag_resources.go +++ /dev/null @@ -1,110 +0,0 @@ -package pvtz - -//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" -) - -// TagResources invokes the pvtz.TagResources API synchronously -func (client *Client) TagResources(request *TagResourcesRequest) (response *TagResourcesResponse, err error) { - response = CreateTagResourcesResponse() - err = client.DoAction(request, response) - return -} - -// TagResourcesWithChan invokes the pvtz.TagResources API asynchronously -func (client *Client) TagResourcesWithChan(request *TagResourcesRequest) (<-chan *TagResourcesResponse, <-chan error) { - responseChan := make(chan *TagResourcesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.TagResources(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// TagResourcesWithCallback invokes the pvtz.TagResources API asynchronously -func (client *Client) TagResourcesWithCallback(request *TagResourcesRequest, callback func(response *TagResourcesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *TagResourcesResponse - var err error - defer close(result) - response, err = client.TagResources(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// TagResourcesRequest is the request struct for api TagResources -type TagResourcesRequest struct { - *requests.RpcRequest - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - ResourceType string `position:"Query" name:"ResourceType"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Tag *[]TagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` - Lang string `position:"Query" name:"Lang"` - OverWrite requests.Boolean `position:"Query" name:"OverWrite"` -} - -// TagResourcesTag is a repeated param struct in TagResourcesRequest -type TagResourcesTag struct { - Value string `name:"Value"` - Key string `name:"Key"` -} - -// TagResourcesResponse is the response struct for api TagResources -type TagResourcesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateTagResourcesRequest creates a request to invoke TagResources API -func CreateTagResourcesRequest() (request *TagResourcesRequest) { - request = &TagResourcesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "TagResources", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateTagResourcesResponse creates a response to parse from TagResources response -func CreateTagResourcesResponse() (response *TagResourcesResponse) { - response = &TagResourcesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/untag_resources.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/untag_resources.go deleted file mode 100644 index 855748004..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/untag_resources.go +++ /dev/null @@ -1,104 +0,0 @@ -package pvtz - -//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" -) - -// UntagResources invokes the pvtz.UntagResources API synchronously -func (client *Client) UntagResources(request *UntagResourcesRequest) (response *UntagResourcesResponse, err error) { - response = CreateUntagResourcesResponse() - err = client.DoAction(request, response) - return -} - -// UntagResourcesWithChan invokes the pvtz.UntagResources API asynchronously -func (client *Client) UntagResourcesWithChan(request *UntagResourcesRequest) (<-chan *UntagResourcesResponse, <-chan error) { - responseChan := make(chan *UntagResourcesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UntagResources(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UntagResourcesWithCallback invokes the pvtz.UntagResources API asynchronously -func (client *Client) UntagResourcesWithCallback(request *UntagResourcesRequest, callback func(response *UntagResourcesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UntagResourcesResponse - var err error - defer close(result) - response, err = client.UntagResources(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UntagResourcesRequest is the request struct for api UntagResources -type UntagResourcesRequest struct { - *requests.RpcRequest - All requests.Boolean `position:"Query" name:"All"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - ResourceType string `position:"Query" name:"ResourceType"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` - TagKey *[]string `position:"Query" name:"TagKey" type:"Repeated"` -} - -// UntagResourcesResponse is the response struct for api UntagResources -type UntagResourcesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUntagResourcesRequest creates a request to invoke UntagResources API -func CreateUntagResourcesRequest() (request *UntagResourcesRequest) { - request = &UntagResourcesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "UntagResources", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateUntagResourcesResponse creates a response to parse from UntagResources response -func CreateUntagResourcesResponse() (response *UntagResourcesResponse) { - response = &UntagResourcesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_record_remark.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_record_remark.go deleted file mode 100644 index 00c1055ff..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_record_remark.go +++ /dev/null @@ -1,103 +0,0 @@ -package pvtz - -//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" -) - -// UpdateRecordRemark invokes the pvtz.UpdateRecordRemark API synchronously -func (client *Client) UpdateRecordRemark(request *UpdateRecordRemarkRequest) (response *UpdateRecordRemarkResponse, err error) { - response = CreateUpdateRecordRemarkResponse() - err = client.DoAction(request, response) - return -} - -// UpdateRecordRemarkWithChan invokes the pvtz.UpdateRecordRemark API asynchronously -func (client *Client) UpdateRecordRemarkWithChan(request *UpdateRecordRemarkRequest) (<-chan *UpdateRecordRemarkResponse, <-chan error) { - responseChan := make(chan *UpdateRecordRemarkResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateRecordRemark(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateRecordRemarkWithCallback invokes the pvtz.UpdateRecordRemark API asynchronously -func (client *Client) UpdateRecordRemarkWithCallback(request *UpdateRecordRemarkRequest, callback func(response *UpdateRecordRemarkResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateRecordRemarkResponse - var err error - defer close(result) - response, err = client.UpdateRecordRemark(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateRecordRemarkRequest is the request struct for api UpdateRecordRemark -type UpdateRecordRemarkRequest struct { - *requests.RpcRequest - Remark string `position:"Query" name:"Remark"` - RecordId requests.Integer `position:"Query" name:"RecordId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` -} - -// UpdateRecordRemarkResponse is the response struct for api UpdateRecordRemark -type UpdateRecordRemarkResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecordId int64 `json:"RecordId" xml:"RecordId"` -} - -// CreateUpdateRecordRemarkRequest creates a request to invoke UpdateRecordRemark API -func CreateUpdateRecordRemarkRequest() (request *UpdateRecordRemarkRequest) { - request = &UpdateRecordRemarkRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "UpdateRecordRemark", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateRecordRemarkResponse creates a response to parse from UpdateRecordRemark response -func CreateUpdateRecordRemarkResponse() (response *UpdateRecordRemarkResponse) { - response = &UpdateRecordRemarkResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_zone_record.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_zone_record.go deleted file mode 100644 index 2b7433efb..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_zone_record.go +++ /dev/null @@ -1,107 +0,0 @@ -package pvtz - -//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" -) - -// UpdateZoneRecord invokes the pvtz.UpdateZoneRecord API synchronously -func (client *Client) UpdateZoneRecord(request *UpdateZoneRecordRequest) (response *UpdateZoneRecordResponse, err error) { - response = CreateUpdateZoneRecordResponse() - err = client.DoAction(request, response) - return -} - -// UpdateZoneRecordWithChan invokes the pvtz.UpdateZoneRecord API asynchronously -func (client *Client) UpdateZoneRecordWithChan(request *UpdateZoneRecordRequest) (<-chan *UpdateZoneRecordResponse, <-chan error) { - responseChan := make(chan *UpdateZoneRecordResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateZoneRecord(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateZoneRecordWithCallback invokes the pvtz.UpdateZoneRecord API asynchronously -func (client *Client) UpdateZoneRecordWithCallback(request *UpdateZoneRecordRequest, callback func(response *UpdateZoneRecordResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateZoneRecordResponse - var err error - defer close(result) - response, err = client.UpdateZoneRecord(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateZoneRecordRequest is the request struct for api UpdateZoneRecord -type UpdateZoneRecordRequest struct { - *requests.RpcRequest - Rr string `position:"Query" name:"Rr"` - Type string `position:"Query" name:"Type"` - Priority requests.Integer `position:"Query" name:"Priority"` - Ttl requests.Integer `position:"Query" name:"Ttl"` - RecordId requests.Integer `position:"Query" name:"RecordId"` - UserClientIp string `position:"Query" name:"UserClientIp"` - Lang string `position:"Query" name:"Lang"` - Value string `position:"Query" name:"Value"` -} - -// UpdateZoneRecordResponse is the response struct for api UpdateZoneRecord -type UpdateZoneRecordResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecordId int64 `json:"RecordId" xml:"RecordId"` -} - -// CreateUpdateZoneRecordRequest creates a request to invoke UpdateZoneRecord API -func CreateUpdateZoneRecordRequest() (request *UpdateZoneRecordRequest) { - request = &UpdateZoneRecordRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "UpdateZoneRecord", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateZoneRecordResponse creates a response to parse from UpdateZoneRecord response -func CreateUpdateZoneRecordResponse() (response *UpdateZoneRecordResponse) { - response = &UpdateZoneRecordResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_zone_remark.go b/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_zone_remark.go deleted file mode 100644 index e390e4caa..000000000 --- a/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz/update_zone_remark.go +++ /dev/null @@ -1,103 +0,0 @@ -package pvtz - -//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" -) - -// UpdateZoneRemark invokes the pvtz.UpdateZoneRemark API synchronously -func (client *Client) UpdateZoneRemark(request *UpdateZoneRemarkRequest) (response *UpdateZoneRemarkResponse, err error) { - response = CreateUpdateZoneRemarkResponse() - err = client.DoAction(request, response) - return -} - -// UpdateZoneRemarkWithChan invokes the pvtz.UpdateZoneRemark API asynchronously -func (client *Client) UpdateZoneRemarkWithChan(request *UpdateZoneRemarkRequest) (<-chan *UpdateZoneRemarkResponse, <-chan error) { - responseChan := make(chan *UpdateZoneRemarkResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateZoneRemark(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateZoneRemarkWithCallback invokes the pvtz.UpdateZoneRemark API asynchronously -func (client *Client) UpdateZoneRemarkWithCallback(request *UpdateZoneRemarkRequest, callback func(response *UpdateZoneRemarkResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateZoneRemarkResponse - var err error - defer close(result) - response, err = client.UpdateZoneRemark(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateZoneRemarkRequest is the request struct for api UpdateZoneRemark -type UpdateZoneRemarkRequest struct { - *requests.RpcRequest - Remark string `position:"Query" name:"Remark"` - UserClientIp string `position:"Query" name:"UserClientIp"` - ZoneId string `position:"Query" name:"ZoneId"` - Lang string `position:"Query" name:"Lang"` -} - -// UpdateZoneRemarkResponse is the response struct for api UpdateZoneRemark -type UpdateZoneRemarkResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` -} - -// CreateUpdateZoneRemarkRequest creates a request to invoke UpdateZoneRemark API -func CreateUpdateZoneRemarkRequest() (request *UpdateZoneRemarkRequest) { - request = &UpdateZoneRemarkRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("pvtz", "2018-01-01", "UpdateZoneRemark", "pvtz", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateZoneRemarkResponse creates a response to parse from UpdateZoneRemark response -func CreateUpdateZoneRemarkResponse() (response *UpdateZoneRemarkResponse) { - response = &UpdateZoneRemarkResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/vendor/gopkg.in/ini.v1/.gitignore b/vendor/gopkg.in/ini.v1/.gitignore deleted file mode 100644 index 12411127b..000000000 --- a/vendor/gopkg.in/ini.v1/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -testdata/conf_out.ini -ini.sublime-project -ini.sublime-workspace -testdata/conf_reflect.ini -.idea -/.vscode diff --git a/vendor/gopkg.in/ini.v1/LICENSE b/vendor/gopkg.in/ini.v1/LICENSE deleted file mode 100644 index d361bbcdf..000000000 --- a/vendor/gopkg.in/ini.v1/LICENSE +++ /dev/null @@ -1,191 +0,0 @@ -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright -owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities -that control, are controlled by, or are under common control with that entity. -For the purposes of this definition, "control" means (i) the power, direct or -indirect, to cause the direction or management of such entity, whether by -contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the -outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including -but not limited to software source code, documentation source, and configuration -files. - -"Object" form shall mean any form resulting from mechanical transformation or -translation of a Source form, including but not limited to compiled object code, -generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made -available under the License, as indicated by a copyright notice that is included -in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that -is based on (or derived from) the Work and for which the editorial revisions, -annotations, elaborations, or other modifications represent, as a whole, an -original work of authorship. For the purposes of this License, Derivative Works -shall not include works that remain separable from, or merely link (or bind by -name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version -of the Work and any modifications or additions to that Work or Derivative Works -thereof, that is intentionally submitted to Licensor for inclusion in the Work -by the copyright owner or by an individual or Legal Entity authorized to submit -on behalf of the copyright owner. For the purposes of this definition, -"submitted" means any form of electronic, verbal, or written communication sent -to the Licensor or its representatives, including but not limited to -communication on electronic mailing lists, source code control systems, and -issue tracking systems that are managed by, or on behalf of, the Licensor for -the purpose of discussing and improving the Work, but excluding communication -that is conspicuously marked or otherwise designated in writing by the copyright -owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf -of whom a Contribution has been received by Licensor and subsequently -incorporated within the Work. - -2. Grant of Copyright License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable copyright license to reproduce, prepare Derivative Works of, -publicly display, publicly perform, sublicense, and distribute the Work and such -Derivative Works in Source or Object form. - -3. Grant of Patent License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable (except as stated in this section) patent license to make, have -made, use, offer to sell, sell, import, and otherwise transfer the Work, where -such license applies only to those patent claims licensable by such Contributor -that are necessarily infringed by their Contribution(s) alone or by combination -of their Contribution(s) with the Work to which such Contribution(s) was -submitted. If You institute patent litigation against any entity (including a -cross-claim or counterclaim in a lawsuit) alleging that the Work or a -Contribution incorporated within the Work constitutes direct or contributory -patent infringement, then any patent licenses granted to You under this License -for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. - -You may reproduce and distribute copies of the Work or Derivative Works thereof -in any medium, with or without modifications, and in Source or Object form, -provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of -this License; and -You must cause any modified files to carry prominent notices stating that You -changed the files; and -You must retain, in the Source form of any Derivative Works that You distribute, -all copyright, patent, trademark, and attribution notices from the Source form -of the Work, excluding those notices that do not pertain to any part of the -Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, then any -Derivative Works that You distribute must include a readable copy of the -attribution notices contained within such NOTICE file, excluding those notices -that do not pertain to any part of the Derivative Works, in at least one of the -following places: within a NOTICE text file distributed as part of the -Derivative Works; within the Source form or documentation, if provided along -with the Derivative Works; or, within a display generated by the Derivative -Works, if and wherever such third-party notices normally appear. The contents of -the NOTICE file are for informational purposes only and do not modify the -License. You may add Your own attribution notices within Derivative Works that -You distribute, alongside or as an addendum to the NOTICE text from the Work, -provided that such additional attribution notices cannot be construed as -modifying the License. -You may add Your own copyright statement to Your modifications and may provide -additional or different license terms and conditions for use, reproduction, or -distribution of Your modifications, or for any such Derivative Works as a whole, -provided Your use, reproduction, and distribution of the Work otherwise complies -with the conditions stated in this License. - -5. Submission of Contributions. - -Unless You explicitly state otherwise, any Contribution intentionally submitted -for inclusion in the Work by You to the Licensor shall be under the terms and -conditions of this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify the terms of -any separate license agreement you may have executed with Licensor regarding -such Contributions. - -6. Trademarks. - -This License does not grant permission to use the trade names, trademarks, -service marks, or product names of the Licensor, except as required for -reasonable and customary use in describing the origin of the Work and -reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. - -Unless required by applicable law or agreed to in writing, Licensor provides the -Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, -including, without limitation, any warranties or conditions of TITLE, -NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are -solely responsible for determining the appropriateness of using or -redistributing the Work and assume any risks associated with Your exercise of -permissions under this License. - -8. Limitation of Liability. - -In no event and under no legal theory, whether in tort (including negligence), -contract, or otherwise, unless required by applicable law (such as deliberate -and grossly negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, incidental, -or consequential damages of any character arising as a result of this License or -out of the use or inability to use the Work (including but not limited to -damages for loss of goodwill, work stoppage, computer failure or malfunction, or -any and all other commercial damages or losses), even if such Contributor has -been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. - -While redistributing the Work or Derivative Works thereof, You may choose to -offer, and charge a fee for, acceptance of support, warranty, indemnity, or -other liability obligations and/or rights consistent with this License. However, -in accepting such obligations, You may act only on Your own behalf and on Your -sole responsibility, not on behalf of any other Contributor, and only if You -agree to indemnify, defend, and hold each Contributor harmless for any liability -incurred by, or claims asserted against, such Contributor by reason of your -accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work - -To apply the Apache License to your work, attach the following boilerplate -notice, with the fields enclosed by brackets "[]" replaced with your own -identifying information. (Don't include the brackets!) The text should be -enclosed in the appropriate comment syntax for the file format. We also -recommend that a file or class name and description of purpose be included on -the same "printed page" as the copyright notice for easier identification within -third-party archives. - - Copyright 2014 Unknwon - - 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. diff --git a/vendor/gopkg.in/ini.v1/Makefile b/vendor/gopkg.in/ini.v1/Makefile deleted file mode 100644 index f3b0dae2d..000000000 --- a/vendor/gopkg.in/ini.v1/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -.PHONY: build test bench vet coverage - -build: vet bench - -test: - go test -v -cover -race - -bench: - go test -v -cover -test.bench=. -test.benchmem - -vet: - go vet - -coverage: - go test -coverprofile=c.out && go tool cover -html=c.out && rm c.out diff --git a/vendor/gopkg.in/ini.v1/README.md b/vendor/gopkg.in/ini.v1/README.md deleted file mode 100644 index 5d65658b2..000000000 --- a/vendor/gopkg.in/ini.v1/README.md +++ /dev/null @@ -1,43 +0,0 @@ -# INI - -[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/go-ini/ini/Go?logo=github&style=for-the-badge)](https://github.com/go-ini/ini/actions?query=workflow%3AGo) -[![codecov](https://img.shields.io/codecov/c/github/go-ini/ini/master?logo=codecov&style=for-the-badge)](https://codecov.io/gh/go-ini/ini) -[![GoDoc](https://img.shields.io/badge/GoDoc-Reference-blue?style=for-the-badge&logo=go)](https://pkg.go.dev/github.com/go-ini/ini?tab=doc) -[![Sourcegraph](https://img.shields.io/badge/view%20on-Sourcegraph-brightgreen.svg?style=for-the-badge&logo=sourcegraph)](https://sourcegraph.com/github.com/go-ini/ini) - -![](https://avatars0.githubusercontent.com/u/10216035?v=3&s=200) - -Package ini provides INI file read and write functionality in Go. - -## Features - -- Load from multiple data sources(file, `[]byte`, `io.Reader` and `io.ReadCloser`) with overwrites. -- Read with recursion values. -- Read with parent-child sections. -- Read with auto-increment key names. -- Read with multiple-line values. -- Read with tons of helper methods. -- Read and convert values to Go types. -- Read and **WRITE** comments of sections and keys. -- Manipulate sections, keys and comments with ease. -- Keep sections and keys in order as you parse and save. - -## Installation - -The minimum requirement of Go is **1.6**. - -```sh -$ go get gopkg.in/ini.v1 -``` - -Please add `-u` flag to update in the future. - -## Getting Help - -- [Getting Started](https://ini.unknwon.io/docs/intro/getting_started) -- [API Documentation](https://gowalker.org/gopkg.in/ini.v1) -- 中国大陆镜像:https://ini.unknwon.cn - -## License - -This project is under Apache v2 License. See the [LICENSE](LICENSE) file for the full license text. diff --git a/vendor/gopkg.in/ini.v1/codecov.yml b/vendor/gopkg.in/ini.v1/codecov.yml deleted file mode 100644 index fc947f230..000000000 --- a/vendor/gopkg.in/ini.v1/codecov.yml +++ /dev/null @@ -1,9 +0,0 @@ -coverage: - range: "60...95" - status: - project: - default: - threshold: 1% - -comment: - layout: 'diff, files' diff --git a/vendor/gopkg.in/ini.v1/data_source.go b/vendor/gopkg.in/ini.v1/data_source.go deleted file mode 100644 index c3a541f1d..000000000 --- a/vendor/gopkg.in/ini.v1/data_source.go +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2019 Unknwon -// -// 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. - -package ini - -import ( - "bytes" - "fmt" - "io" - "io/ioutil" - "os" -) - -var ( - _ dataSource = (*sourceFile)(nil) - _ dataSource = (*sourceData)(nil) - _ dataSource = (*sourceReadCloser)(nil) -) - -// dataSource is an interface that returns object which can be read and closed. -type dataSource interface { - ReadCloser() (io.ReadCloser, error) -} - -// sourceFile represents an object that contains content on the local file system. -type sourceFile struct { - name string -} - -func (s sourceFile) ReadCloser() (_ io.ReadCloser, err error) { - return os.Open(s.name) -} - -// sourceData represents an object that contains content in memory. -type sourceData struct { - data []byte -} - -func (s *sourceData) ReadCloser() (io.ReadCloser, error) { - return ioutil.NopCloser(bytes.NewReader(s.data)), nil -} - -// sourceReadCloser represents an input stream with Close method. -type sourceReadCloser struct { - reader io.ReadCloser -} - -func (s *sourceReadCloser) ReadCloser() (io.ReadCloser, error) { - return s.reader, nil -} - -func parseDataSource(source interface{}) (dataSource, error) { - switch s := source.(type) { - case string: - return sourceFile{s}, nil - case []byte: - return &sourceData{s}, nil - case io.ReadCloser: - return &sourceReadCloser{s}, nil - case io.Reader: - return &sourceReadCloser{ioutil.NopCloser(s)}, nil - default: - return nil, fmt.Errorf("error parsing data source: unknown type %q", s) - } -} diff --git a/vendor/gopkg.in/ini.v1/deprecated.go b/vendor/gopkg.in/ini.v1/deprecated.go deleted file mode 100644 index e8bda06e6..000000000 --- a/vendor/gopkg.in/ini.v1/deprecated.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2019 Unknwon -// -// 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. - -package ini - -const ( - // Deprecated: Use "DefaultSection" instead. - DEFAULT_SECTION = DefaultSection -) - -var ( - // Deprecated: AllCapsUnderscore converts to format ALL_CAPS_UNDERSCORE. - AllCapsUnderscore = SnackCase -) diff --git a/vendor/gopkg.in/ini.v1/error.go b/vendor/gopkg.in/ini.v1/error.go deleted file mode 100644 index d88347c54..000000000 --- a/vendor/gopkg.in/ini.v1/error.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2016 Unknwon -// -// 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. - -package ini - -import ( - "fmt" -) - -// ErrDelimiterNotFound indicates the error type of no delimiter is found which there should be one. -type ErrDelimiterNotFound struct { - Line string -} - -// IsErrDelimiterNotFound returns true if the given error is an instance of ErrDelimiterNotFound. -func IsErrDelimiterNotFound(err error) bool { - _, ok := err.(ErrDelimiterNotFound) - return ok -} - -func (err ErrDelimiterNotFound) Error() string { - return fmt.Sprintf("key-value delimiter not found: %s", err.Line) -} diff --git a/vendor/gopkg.in/ini.v1/file.go b/vendor/gopkg.in/ini.v1/file.go deleted file mode 100644 index b96d172cf..000000000 --- a/vendor/gopkg.in/ini.v1/file.go +++ /dev/null @@ -1,517 +0,0 @@ -// Copyright 2017 Unknwon -// -// 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. - -package ini - -import ( - "bytes" - "errors" - "fmt" - "io" - "io/ioutil" - "os" - "strings" - "sync" -) - -// File represents a combination of one or more INI files in memory. -type File struct { - options LoadOptions - dataSources []dataSource - - // Should make things safe, but sometimes doesn't matter. - BlockMode bool - lock sync.RWMutex - - // To keep data in order. - sectionList []string - // To keep track of the index of a section with same name. - // This meta list is only used with non-unique section names are allowed. - sectionIndexes []int - - // Actual data is stored here. - sections map[string][]*Section - - NameMapper - ValueMapper -} - -// newFile initializes File object with given data sources. -func newFile(dataSources []dataSource, opts LoadOptions) *File { - if len(opts.KeyValueDelimiters) == 0 { - opts.KeyValueDelimiters = "=:" - } - if len(opts.KeyValueDelimiterOnWrite) == 0 { - opts.KeyValueDelimiterOnWrite = "=" - } - if len(opts.ChildSectionDelimiter) == 0 { - opts.ChildSectionDelimiter = "." - } - - return &File{ - BlockMode: true, - dataSources: dataSources, - sections: make(map[string][]*Section), - options: opts, - } -} - -// Empty returns an empty file object. -func Empty(opts ...LoadOptions) *File { - var opt LoadOptions - if len(opts) > 0 { - opt = opts[0] - } - - // Ignore error here, we are sure our data is good. - f, _ := LoadSources(opt, []byte("")) - return f -} - -// NewSection creates a new section. -func (f *File) NewSection(name string) (*Section, error) { - if len(name) == 0 { - return nil, errors.New("empty section name") - } - - if (f.options.Insensitive || f.options.InsensitiveSections) && name != DefaultSection { - name = strings.ToLower(name) - } - - if f.BlockMode { - f.lock.Lock() - defer f.lock.Unlock() - } - - if !f.options.AllowNonUniqueSections && inSlice(name, f.sectionList) { - return f.sections[name][0], nil - } - - f.sectionList = append(f.sectionList, name) - - // NOTE: Append to indexes must happen before appending to sections, - // otherwise index will have off-by-one problem. - f.sectionIndexes = append(f.sectionIndexes, len(f.sections[name])) - - sec := newSection(f, name) - f.sections[name] = append(f.sections[name], sec) - - return sec, nil -} - -// NewRawSection creates a new section with an unparseable body. -func (f *File) NewRawSection(name, body string) (*Section, error) { - section, err := f.NewSection(name) - if err != nil { - return nil, err - } - - section.isRawSection = true - section.rawBody = body - return section, nil -} - -// NewSections creates a list of sections. -func (f *File) NewSections(names ...string) (err error) { - for _, name := range names { - if _, err = f.NewSection(name); err != nil { - return err - } - } - return nil -} - -// GetSection returns section by given name. -func (f *File) GetSection(name string) (*Section, error) { - secs, err := f.SectionsByName(name) - if err != nil { - return nil, err - } - - return secs[0], err -} - -// SectionsByName returns all sections with given name. -func (f *File) SectionsByName(name string) ([]*Section, error) { - if len(name) == 0 { - name = DefaultSection - } - if f.options.Insensitive || f.options.InsensitiveSections { - name = strings.ToLower(name) - } - - if f.BlockMode { - f.lock.RLock() - defer f.lock.RUnlock() - } - - secs := f.sections[name] - if len(secs) == 0 { - return nil, fmt.Errorf("section %q does not exist", name) - } - - return secs, nil -} - -// Section assumes named section exists and returns a zero-value when not. -func (f *File) Section(name string) *Section { - sec, err := f.GetSection(name) - if err != nil { - // Note: It's OK here because the only possible error is empty section name, - // but if it's empty, this piece of code won't be executed. - sec, _ = f.NewSection(name) - return sec - } - return sec -} - -// SectionWithIndex assumes named section exists and returns a new section when not. -func (f *File) SectionWithIndex(name string, index int) *Section { - secs, err := f.SectionsByName(name) - if err != nil || len(secs) <= index { - // NOTE: It's OK here because the only possible error is empty section name, - // but if it's empty, this piece of code won't be executed. - newSec, _ := f.NewSection(name) - return newSec - } - - return secs[index] -} - -// Sections returns a list of Section stored in the current instance. -func (f *File) Sections() []*Section { - if f.BlockMode { - f.lock.RLock() - defer f.lock.RUnlock() - } - - sections := make([]*Section, len(f.sectionList)) - for i, name := range f.sectionList { - sections[i] = f.sections[name][f.sectionIndexes[i]] - } - return sections -} - -// ChildSections returns a list of child sections of given section name. -func (f *File) ChildSections(name string) []*Section { - return f.Section(name).ChildSections() -} - -// SectionStrings returns list of section names. -func (f *File) SectionStrings() []string { - list := make([]string, len(f.sectionList)) - copy(list, f.sectionList) - return list -} - -// DeleteSection deletes a section or all sections with given name. -func (f *File) DeleteSection(name string) { - secs, err := f.SectionsByName(name) - if err != nil { - return - } - - for i := 0; i < len(secs); i++ { - // For non-unique sections, it is always needed to remove the first one so - // in the next iteration, the subsequent section continue having index 0. - // Ignoring the error as index 0 never returns an error. - _ = f.DeleteSectionWithIndex(name, 0) - } -} - -// DeleteSectionWithIndex deletes a section with given name and index. -func (f *File) DeleteSectionWithIndex(name string, index int) error { - if !f.options.AllowNonUniqueSections && index != 0 { - return fmt.Errorf("delete section with non-zero index is only allowed when non-unique sections is enabled") - } - - if len(name) == 0 { - name = DefaultSection - } - if f.options.Insensitive || f.options.InsensitiveSections { - name = strings.ToLower(name) - } - - if f.BlockMode { - f.lock.Lock() - defer f.lock.Unlock() - } - - // Count occurrences of the sections - occurrences := 0 - - sectionListCopy := make([]string, len(f.sectionList)) - copy(sectionListCopy, f.sectionList) - - for i, s := range sectionListCopy { - if s != name { - continue - } - - if occurrences == index { - if len(f.sections[name]) <= 1 { - delete(f.sections, name) // The last one in the map - } else { - f.sections[name] = append(f.sections[name][:index], f.sections[name][index+1:]...) - } - - // Fix section lists - f.sectionList = append(f.sectionList[:i], f.sectionList[i+1:]...) - f.sectionIndexes = append(f.sectionIndexes[:i], f.sectionIndexes[i+1:]...) - - } else if occurrences > index { - // Fix the indices of all following sections with this name. - f.sectionIndexes[i-1]-- - } - - occurrences++ - } - - return nil -} - -func (f *File) reload(s dataSource) error { - r, err := s.ReadCloser() - if err != nil { - return err - } - defer r.Close() - - return f.parse(r) -} - -// Reload reloads and parses all data sources. -func (f *File) Reload() (err error) { - for _, s := range f.dataSources { - if err = f.reload(s); err != nil { - // In loose mode, we create an empty default section for nonexistent files. - if os.IsNotExist(err) && f.options.Loose { - _ = f.parse(bytes.NewBuffer(nil)) - continue - } - return err - } - if f.options.ShortCircuit { - return nil - } - } - return nil -} - -// Append appends one or more data sources and reloads automatically. -func (f *File) Append(source interface{}, others ...interface{}) error { - ds, err := parseDataSource(source) - if err != nil { - return err - } - f.dataSources = append(f.dataSources, ds) - for _, s := range others { - ds, err = parseDataSource(s) - if err != nil { - return err - } - f.dataSources = append(f.dataSources, ds) - } - return f.Reload() -} - -func (f *File) writeToBuffer(indent string) (*bytes.Buffer, error) { - equalSign := DefaultFormatLeft + f.options.KeyValueDelimiterOnWrite + DefaultFormatRight - - if PrettyFormat || PrettyEqual { - equalSign = fmt.Sprintf(" %s ", f.options.KeyValueDelimiterOnWrite) - } - - // Use buffer to make sure target is safe until finish encoding. - buf := bytes.NewBuffer(nil) - for i, sname := range f.sectionList { - sec := f.SectionWithIndex(sname, f.sectionIndexes[i]) - if len(sec.Comment) > 0 { - // Support multiline comments - lines := strings.Split(sec.Comment, LineBreak) - for i := range lines { - if lines[i][0] != '#' && lines[i][0] != ';' { - lines[i] = "; " + lines[i] - } else { - lines[i] = lines[i][:1] + " " + strings.TrimSpace(lines[i][1:]) - } - - if _, err := buf.WriteString(lines[i] + LineBreak); err != nil { - return nil, err - } - } - } - - if i > 0 || DefaultHeader || (i == 0 && strings.ToUpper(sec.name) != DefaultSection) { - if _, err := buf.WriteString("[" + sname + "]" + LineBreak); err != nil { - return nil, err - } - } else { - // Write nothing if default section is empty - if len(sec.keyList) == 0 { - continue - } - } - - if sec.isRawSection { - if _, err := buf.WriteString(sec.rawBody); err != nil { - return nil, err - } - - if PrettySection { - // Put a line between sections - if _, err := buf.WriteString(LineBreak); err != nil { - return nil, err - } - } - continue - } - - // Count and generate alignment length and buffer spaces using the - // longest key. Keys may be modified if they contain certain characters so - // we need to take that into account in our calculation. - alignLength := 0 - if PrettyFormat { - for _, kname := range sec.keyList { - keyLength := len(kname) - // First case will surround key by ` and second by """ - if strings.Contains(kname, "\"") || strings.ContainsAny(kname, f.options.KeyValueDelimiters) { - keyLength += 2 - } else if strings.Contains(kname, "`") { - keyLength += 6 - } - - if keyLength > alignLength { - alignLength = keyLength - } - } - } - alignSpaces := bytes.Repeat([]byte(" "), alignLength) - - KeyList: - for _, kname := range sec.keyList { - key := sec.Key(kname) - if len(key.Comment) > 0 { - if len(indent) > 0 && sname != DefaultSection { - buf.WriteString(indent) - } - - // Support multiline comments - lines := strings.Split(key.Comment, LineBreak) - for i := range lines { - if lines[i][0] != '#' && lines[i][0] != ';' { - lines[i] = "; " + strings.TrimSpace(lines[i]) - } else { - lines[i] = lines[i][:1] + " " + strings.TrimSpace(lines[i][1:]) - } - - if _, err := buf.WriteString(lines[i] + LineBreak); err != nil { - return nil, err - } - } - } - - if len(indent) > 0 && sname != DefaultSection { - buf.WriteString(indent) - } - - switch { - case key.isAutoIncrement: - kname = "-" - case strings.Contains(kname, "\"") || strings.ContainsAny(kname, f.options.KeyValueDelimiters): - kname = "`" + kname + "`" - case strings.Contains(kname, "`"): - kname = `"""` + kname + `"""` - } - - for _, val := range key.ValueWithShadows() { - if _, err := buf.WriteString(kname); err != nil { - return nil, err - } - - if key.isBooleanType { - if kname != sec.keyList[len(sec.keyList)-1] { - buf.WriteString(LineBreak) - } - continue KeyList - } - - // Write out alignment spaces before "=" sign - if PrettyFormat { - buf.Write(alignSpaces[:alignLength-len(kname)]) - } - - // In case key value contains "\n", "`", "\"", "#" or ";" - if strings.ContainsAny(val, "\n`") { - val = `"""` + val + `"""` - } else if !f.options.IgnoreInlineComment && strings.ContainsAny(val, "#;") { - val = "`" + val + "`" - } else if len(strings.TrimSpace(val)) != len(val) { - val = `"` + val + `"` - } - if _, err := buf.WriteString(equalSign + val + LineBreak); err != nil { - return nil, err - } - } - - for _, val := range key.nestedValues { - if _, err := buf.WriteString(indent + " " + val + LineBreak); err != nil { - return nil, err - } - } - } - - if PrettySection { - // Put a line between sections - if _, err := buf.WriteString(LineBreak); err != nil { - return nil, err - } - } - } - - return buf, nil -} - -// WriteToIndent writes content into io.Writer with given indention. -// If PrettyFormat has been set to be true, -// it will align "=" sign with spaces under each section. -func (f *File) WriteToIndent(w io.Writer, indent string) (int64, error) { - buf, err := f.writeToBuffer(indent) - if err != nil { - return 0, err - } - return buf.WriteTo(w) -} - -// WriteTo writes file content into io.Writer. -func (f *File) WriteTo(w io.Writer) (int64, error) { - return f.WriteToIndent(w, "") -} - -// SaveToIndent writes content to file system with given value indention. -func (f *File) SaveToIndent(filename, indent string) error { - // Note: Because we are truncating with os.Create, - // so it's safer to save to a temporary file location and rename after done. - buf, err := f.writeToBuffer(indent) - if err != nil { - return err - } - - return ioutil.WriteFile(filename, buf.Bytes(), 0666) -} - -// SaveTo writes content to file system. -func (f *File) SaveTo(filename string) error { - return f.SaveToIndent(filename, "") -} diff --git a/vendor/gopkg.in/ini.v1/helper.go b/vendor/gopkg.in/ini.v1/helper.go deleted file mode 100644 index f9d80a682..000000000 --- a/vendor/gopkg.in/ini.v1/helper.go +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2019 Unknwon -// -// 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. - -package ini - -func inSlice(str string, s []string) bool { - for _, v := range s { - if str == v { - return true - } - } - return false -} diff --git a/vendor/gopkg.in/ini.v1/ini.go b/vendor/gopkg.in/ini.v1/ini.go deleted file mode 100644 index 23f07422e..000000000 --- a/vendor/gopkg.in/ini.v1/ini.go +++ /dev/null @@ -1,176 +0,0 @@ -// +build go1.6 - -// Copyright 2014 Unknwon -// -// 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. - -// Package ini provides INI file read and write functionality in Go. -package ini - -import ( - "os" - "regexp" - "runtime" - "strings" -) - -const ( - // DefaultSection is the name of default section. You can use this constant or the string literal. - // In most of cases, an empty string is all you need to access the section. - DefaultSection = "DEFAULT" - - // Maximum allowed depth when recursively substituing variable names. - depthValues = 99 -) - -var ( - // LineBreak is the delimiter to determine or compose a new line. - // This variable will be changed to "\r\n" automatically on Windows at package init time. - LineBreak = "\n" - - // Variable regexp pattern: %(variable)s - varPattern = regexp.MustCompile(`%\(([^)]+)\)s`) - - // DefaultHeader explicitly writes default section header. - DefaultHeader = false - - // PrettySection indicates whether to put a line between sections. - PrettySection = true - // PrettyFormat indicates whether to align "=" sign with spaces to produce pretty output - // or reduce all possible spaces for compact format. - PrettyFormat = true - // PrettyEqual places spaces around "=" sign even when PrettyFormat is false. - PrettyEqual = false - // DefaultFormatLeft places custom spaces on the left when PrettyFormat and PrettyEqual are both disabled. - DefaultFormatLeft = "" - // DefaultFormatRight places custom spaces on the right when PrettyFormat and PrettyEqual are both disabled. - DefaultFormatRight = "" -) - -var inTest = len(os.Args) > 0 && strings.HasSuffix(strings.TrimSuffix(os.Args[0], ".exe"), ".test") - -func init() { - if runtime.GOOS == "windows" && !inTest { - LineBreak = "\r\n" - } -} - -// LoadOptions contains all customized options used for load data source(s). -type LoadOptions struct { - // Loose indicates whether the parser should ignore nonexistent files or return error. - Loose bool - // Insensitive indicates whether the parser forces all section and key names to lowercase. - Insensitive bool - // InsensitiveSections indicates whether the parser forces all section to lowercase. - InsensitiveSections bool - // InsensitiveKeys indicates whether the parser forces all key names to lowercase. - InsensitiveKeys bool - // IgnoreContinuation indicates whether to ignore continuation lines while parsing. - IgnoreContinuation bool - // IgnoreInlineComment indicates whether to ignore comments at the end of value and treat it as part of value. - IgnoreInlineComment bool - // SkipUnrecognizableLines indicates whether to skip unrecognizable lines that do not conform to key/value pairs. - SkipUnrecognizableLines bool - // ShortCircuit indicates whether to ignore other configuration sources after loaded the first available configuration source. - ShortCircuit bool - // AllowBooleanKeys indicates whether to allow boolean type keys or treat as value is missing. - // This type of keys are mostly used in my.cnf. - AllowBooleanKeys bool - // AllowShadows indicates whether to keep track of keys with same name under same section. - AllowShadows bool - // AllowNestedValues indicates whether to allow AWS-like nested values. - // Docs: http://docs.aws.amazon.com/cli/latest/topic/config-vars.html#nested-values - AllowNestedValues bool - // AllowPythonMultilineValues indicates whether to allow Python-like multi-line values. - // Docs: https://docs.python.org/3/library/configparser.html#supported-ini-file-structure - // Relevant quote: Values can also span multiple lines, as long as they are indented deeper - // than the first line of the value. - AllowPythonMultilineValues bool - // SpaceBeforeInlineComment indicates whether to allow comment symbols (\# and \;) inside value. - // Docs: https://docs.python.org/2/library/configparser.html - // Quote: Comments may appear on their own in an otherwise empty line, or may be entered in lines holding values or section names. - // In the latter case, they need to be preceded by a whitespace character to be recognized as a comment. - SpaceBeforeInlineComment bool - // UnescapeValueDoubleQuotes indicates whether to unescape double quotes inside value to regular format - // when value is surrounded by double quotes, e.g. key="a \"value\"" => key=a "value" - UnescapeValueDoubleQuotes bool - // UnescapeValueCommentSymbols indicates to unescape comment symbols (\# and \;) inside value to regular format - // when value is NOT surrounded by any quotes. - // Note: UNSTABLE, behavior might change to only unescape inside double quotes but may noy necessary at all. - UnescapeValueCommentSymbols bool - // UnparseableSections stores a list of blocks that are allowed with raw content which do not otherwise - // conform to key/value pairs. Specify the names of those blocks here. - UnparseableSections []string - // KeyValueDelimiters is the sequence of delimiters that are used to separate key and value. By default, it is "=:". - KeyValueDelimiters string - // KeyValueDelimiterOnWrite is the delimiter that are used to separate key and value output. By default, it is "=". - KeyValueDelimiterOnWrite string - // ChildSectionDelimiter is the delimiter that is used to separate child sections. By default, it is ".". - ChildSectionDelimiter string - // PreserveSurroundedQuote indicates whether to preserve surrounded quote (single and double quotes). - PreserveSurroundedQuote bool - // DebugFunc is called to collect debug information (currently only useful to debug parsing Python-style multiline values). - DebugFunc DebugFunc - // ReaderBufferSize is the buffer size of the reader in bytes. - ReaderBufferSize int - // AllowNonUniqueSections indicates whether to allow sections with the same name multiple times. - AllowNonUniqueSections bool -} - -// DebugFunc is the type of function called to log parse events. -type DebugFunc func(message string) - -// LoadSources allows caller to apply customized options for loading from data source(s). -func LoadSources(opts LoadOptions, source interface{}, others ...interface{}) (_ *File, err error) { - sources := make([]dataSource, len(others)+1) - sources[0], err = parseDataSource(source) - if err != nil { - return nil, err - } - for i := range others { - sources[i+1], err = parseDataSource(others[i]) - if err != nil { - return nil, err - } - } - f := newFile(sources, opts) - if err = f.Reload(); err != nil { - return nil, err - } - return f, nil -} - -// Load loads and parses from INI data sources. -// Arguments can be mixed of file name with string type, or raw data in []byte. -// It will return error if list contains nonexistent files. -func Load(source interface{}, others ...interface{}) (*File, error) { - return LoadSources(LoadOptions{}, source, others...) -} - -// LooseLoad has exactly same functionality as Load function -// except it ignores nonexistent files instead of returning error. -func LooseLoad(source interface{}, others ...interface{}) (*File, error) { - return LoadSources(LoadOptions{Loose: true}, source, others...) -} - -// InsensitiveLoad has exactly same functionality as Load function -// except it forces all section and key names to be lowercased. -func InsensitiveLoad(source interface{}, others ...interface{}) (*File, error) { - return LoadSources(LoadOptions{Insensitive: true}, source, others...) -} - -// ShadowLoad has exactly same functionality as Load function -// except it allows have shadow keys. -func ShadowLoad(source interface{}, others ...interface{}) (*File, error) { - return LoadSources(LoadOptions{AllowShadows: true}, source, others...) -} diff --git a/vendor/gopkg.in/ini.v1/key.go b/vendor/gopkg.in/ini.v1/key.go deleted file mode 100644 index 8baafd9ea..000000000 --- a/vendor/gopkg.in/ini.v1/key.go +++ /dev/null @@ -1,829 +0,0 @@ -// Copyright 2014 Unknwon -// -// 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. - -package ini - -import ( - "bytes" - "errors" - "fmt" - "strconv" - "strings" - "time" -) - -// Key represents a key under a section. -type Key struct { - s *Section - Comment string - name string - value string - isAutoIncrement bool - isBooleanType bool - - isShadow bool - shadows []*Key - - nestedValues []string -} - -// newKey simply return a key object with given values. -func newKey(s *Section, name, val string) *Key { - return &Key{ - s: s, - name: name, - value: val, - } -} - -func (k *Key) addShadow(val string) error { - if k.isShadow { - return errors.New("cannot add shadow to another shadow key") - } else if k.isAutoIncrement || k.isBooleanType { - return errors.New("cannot add shadow to auto-increment or boolean key") - } - - // Deduplicate shadows based on their values. - if k.value == val { - return nil - } - for i := range k.shadows { - if k.shadows[i].value == val { - return nil - } - } - - shadow := newKey(k.s, k.name, val) - shadow.isShadow = true - k.shadows = append(k.shadows, shadow) - return nil -} - -// AddShadow adds a new shadow key to itself. -func (k *Key) AddShadow(val string) error { - if !k.s.f.options.AllowShadows { - return errors.New("shadow key is not allowed") - } - return k.addShadow(val) -} - -func (k *Key) addNestedValue(val string) error { - if k.isAutoIncrement || k.isBooleanType { - return errors.New("cannot add nested value to auto-increment or boolean key") - } - - k.nestedValues = append(k.nestedValues, val) - return nil -} - -// AddNestedValue adds a nested value to the key. -func (k *Key) AddNestedValue(val string) error { - if !k.s.f.options.AllowNestedValues { - return errors.New("nested value is not allowed") - } - return k.addNestedValue(val) -} - -// ValueMapper represents a mapping function for values, e.g. os.ExpandEnv -type ValueMapper func(string) string - -// Name returns name of key. -func (k *Key) Name() string { - return k.name -} - -// Value returns raw value of key for performance purpose. -func (k *Key) Value() string { - return k.value -} - -// ValueWithShadows returns raw values of key and its shadows if any. -func (k *Key) ValueWithShadows() []string { - if len(k.shadows) == 0 { - return []string{k.value} - } - vals := make([]string, len(k.shadows)+1) - vals[0] = k.value - for i := range k.shadows { - vals[i+1] = k.shadows[i].value - } - return vals -} - -// NestedValues returns nested values stored in the key. -// It is possible returned value is nil if no nested values stored in the key. -func (k *Key) NestedValues() []string { - return k.nestedValues -} - -// transformValue takes a raw value and transforms to its final string. -func (k *Key) transformValue(val string) string { - if k.s.f.ValueMapper != nil { - val = k.s.f.ValueMapper(val) - } - - // Fail-fast if no indicate char found for recursive value - if !strings.Contains(val, "%") { - return val - } - for i := 0; i < depthValues; i++ { - vr := varPattern.FindString(val) - if len(vr) == 0 { - break - } - - // Take off leading '%(' and trailing ')s'. - noption := vr[2 : len(vr)-2] - - // Search in the same section. - // If not found or found the key itself, then search again in default section. - nk, err := k.s.GetKey(noption) - if err != nil || k == nk { - nk, _ = k.s.f.Section("").GetKey(noption) - if nk == nil { - // Stop when no results found in the default section, - // and returns the value as-is. - break - } - } - - // Substitute by new value and take off leading '%(' and trailing ')s'. - val = strings.Replace(val, vr, nk.value, -1) - } - return val -} - -// String returns string representation of value. -func (k *Key) String() string { - return k.transformValue(k.value) -} - -// Validate accepts a validate function which can -// return modifed result as key value. -func (k *Key) Validate(fn func(string) string) string { - return fn(k.String()) -} - -// parseBool returns the boolean value represented by the string. -// -// It accepts 1, t, T, TRUE, true, True, YES, yes, Yes, y, ON, on, On, -// 0, f, F, FALSE, false, False, NO, no, No, n, OFF, off, Off. -// Any other value returns an error. -func parseBool(str string) (value bool, err error) { - switch str { - case "1", "t", "T", "true", "TRUE", "True", "YES", "yes", "Yes", "y", "ON", "on", "On": - return true, nil - case "0", "f", "F", "false", "FALSE", "False", "NO", "no", "No", "n", "OFF", "off", "Off": - return false, nil - } - return false, fmt.Errorf("parsing \"%s\": invalid syntax", str) -} - -// Bool returns bool type value. -func (k *Key) Bool() (bool, error) { - return parseBool(k.String()) -} - -// Float64 returns float64 type value. -func (k *Key) Float64() (float64, error) { - return strconv.ParseFloat(k.String(), 64) -} - -// Int returns int type value. -func (k *Key) Int() (int, error) { - v, err := strconv.ParseInt(k.String(), 0, 64) - return int(v), err -} - -// Int64 returns int64 type value. -func (k *Key) Int64() (int64, error) { - return strconv.ParseInt(k.String(), 0, 64) -} - -// Uint returns uint type valued. -func (k *Key) Uint() (uint, error) { - u, e := strconv.ParseUint(k.String(), 0, 64) - return uint(u), e -} - -// Uint64 returns uint64 type value. -func (k *Key) Uint64() (uint64, error) { - return strconv.ParseUint(k.String(), 0, 64) -} - -// Duration returns time.Duration type value. -func (k *Key) Duration() (time.Duration, error) { - return time.ParseDuration(k.String()) -} - -// TimeFormat parses with given format and returns time.Time type value. -func (k *Key) TimeFormat(format string) (time.Time, error) { - return time.Parse(format, k.String()) -} - -// Time parses with RFC3339 format and returns time.Time type value. -func (k *Key) Time() (time.Time, error) { - return k.TimeFormat(time.RFC3339) -} - -// MustString returns default value if key value is empty. -func (k *Key) MustString(defaultVal string) string { - val := k.String() - if len(val) == 0 { - k.value = defaultVal - return defaultVal - } - return val -} - -// MustBool always returns value without error, -// it returns false if error occurs. -func (k *Key) MustBool(defaultVal ...bool) bool { - val, err := k.Bool() - if len(defaultVal) > 0 && err != nil { - k.value = strconv.FormatBool(defaultVal[0]) - return defaultVal[0] - } - return val -} - -// MustFloat64 always returns value without error, -// it returns 0.0 if error occurs. -func (k *Key) MustFloat64(defaultVal ...float64) float64 { - val, err := k.Float64() - if len(defaultVal) > 0 && err != nil { - k.value = strconv.FormatFloat(defaultVal[0], 'f', -1, 64) - return defaultVal[0] - } - return val -} - -// MustInt always returns value without error, -// it returns 0 if error occurs. -func (k *Key) MustInt(defaultVal ...int) int { - val, err := k.Int() - if len(defaultVal) > 0 && err != nil { - k.value = strconv.FormatInt(int64(defaultVal[0]), 10) - return defaultVal[0] - } - return val -} - -// MustInt64 always returns value without error, -// it returns 0 if error occurs. -func (k *Key) MustInt64(defaultVal ...int64) int64 { - val, err := k.Int64() - if len(defaultVal) > 0 && err != nil { - k.value = strconv.FormatInt(defaultVal[0], 10) - return defaultVal[0] - } - return val -} - -// MustUint always returns value without error, -// it returns 0 if error occurs. -func (k *Key) MustUint(defaultVal ...uint) uint { - val, err := k.Uint() - if len(defaultVal) > 0 && err != nil { - k.value = strconv.FormatUint(uint64(defaultVal[0]), 10) - return defaultVal[0] - } - return val -} - -// MustUint64 always returns value without error, -// it returns 0 if error occurs. -func (k *Key) MustUint64(defaultVal ...uint64) uint64 { - val, err := k.Uint64() - if len(defaultVal) > 0 && err != nil { - k.value = strconv.FormatUint(defaultVal[0], 10) - return defaultVal[0] - } - return val -} - -// MustDuration always returns value without error, -// it returns zero value if error occurs. -func (k *Key) MustDuration(defaultVal ...time.Duration) time.Duration { - val, err := k.Duration() - if len(defaultVal) > 0 && err != nil { - k.value = defaultVal[0].String() - return defaultVal[0] - } - return val -} - -// MustTimeFormat always parses with given format and returns value without error, -// it returns zero value if error occurs. -func (k *Key) MustTimeFormat(format string, defaultVal ...time.Time) time.Time { - val, err := k.TimeFormat(format) - if len(defaultVal) > 0 && err != nil { - k.value = defaultVal[0].Format(format) - return defaultVal[0] - } - return val -} - -// MustTime always parses with RFC3339 format and returns value without error, -// it returns zero value if error occurs. -func (k *Key) MustTime(defaultVal ...time.Time) time.Time { - return k.MustTimeFormat(time.RFC3339, defaultVal...) -} - -// In always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) In(defaultVal string, candidates []string) string { - val := k.String() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InFloat64 always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InFloat64(defaultVal float64, candidates []float64) float64 { - val := k.MustFloat64() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InInt always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InInt(defaultVal int, candidates []int) int { - val := k.MustInt() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InInt64 always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InInt64(defaultVal int64, candidates []int64) int64 { - val := k.MustInt64() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InUint always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InUint(defaultVal uint, candidates []uint) uint { - val := k.MustUint() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InUint64 always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InUint64(defaultVal uint64, candidates []uint64) uint64 { - val := k.MustUint64() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InTimeFormat always parses with given format and returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InTimeFormat(format string, defaultVal time.Time, candidates []time.Time) time.Time { - val := k.MustTimeFormat(format) - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InTime always parses with RFC3339 format and returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InTime(defaultVal time.Time, candidates []time.Time) time.Time { - return k.InTimeFormat(time.RFC3339, defaultVal, candidates) -} - -// RangeFloat64 checks if value is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeFloat64(defaultVal, min, max float64) float64 { - val := k.MustFloat64() - if val < min || val > max { - return defaultVal - } - return val -} - -// RangeInt checks if value is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeInt(defaultVal, min, max int) int { - val := k.MustInt() - if val < min || val > max { - return defaultVal - } - return val -} - -// RangeInt64 checks if value is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeInt64(defaultVal, min, max int64) int64 { - val := k.MustInt64() - if val < min || val > max { - return defaultVal - } - return val -} - -// RangeTimeFormat checks if value with given format is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeTimeFormat(format string, defaultVal, min, max time.Time) time.Time { - val := k.MustTimeFormat(format) - if val.Unix() < min.Unix() || val.Unix() > max.Unix() { - return defaultVal - } - return val -} - -// RangeTime checks if value with RFC3339 format is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeTime(defaultVal, min, max time.Time) time.Time { - return k.RangeTimeFormat(time.RFC3339, defaultVal, min, max) -} - -// Strings returns list of string divided by given delimiter. -func (k *Key) Strings(delim string) []string { - str := k.String() - if len(str) == 0 { - return []string{} - } - - runes := []rune(str) - vals := make([]string, 0, 2) - var buf bytes.Buffer - escape := false - idx := 0 - for { - if escape { - escape = false - if runes[idx] != '\\' && !strings.HasPrefix(string(runes[idx:]), delim) { - buf.WriteRune('\\') - } - buf.WriteRune(runes[idx]) - } else { - if runes[idx] == '\\' { - escape = true - } else if strings.HasPrefix(string(runes[idx:]), delim) { - idx += len(delim) - 1 - vals = append(vals, strings.TrimSpace(buf.String())) - buf.Reset() - } else { - buf.WriteRune(runes[idx]) - } - } - idx++ - if idx == len(runes) { - break - } - } - - if buf.Len() > 0 { - vals = append(vals, strings.TrimSpace(buf.String())) - } - - return vals -} - -// StringsWithShadows returns list of string divided by given delimiter. -// Shadows will also be appended if any. -func (k *Key) StringsWithShadows(delim string) []string { - vals := k.ValueWithShadows() - results := make([]string, 0, len(vals)*2) - for i := range vals { - if len(vals) == 0 { - continue - } - - results = append(results, strings.Split(vals[i], delim)...) - } - - for i := range results { - results[i] = k.transformValue(strings.TrimSpace(results[i])) - } - return results -} - -// Float64s returns list of float64 divided by given delimiter. Any invalid input will be treated as zero value. -func (k *Key) Float64s(delim string) []float64 { - vals, _ := k.parseFloat64s(k.Strings(delim), true, false) - return vals -} - -// Ints returns list of int divided by given delimiter. Any invalid input will be treated as zero value. -func (k *Key) Ints(delim string) []int { - vals, _ := k.parseInts(k.Strings(delim), true, false) - return vals -} - -// Int64s returns list of int64 divided by given delimiter. Any invalid input will be treated as zero value. -func (k *Key) Int64s(delim string) []int64 { - vals, _ := k.parseInt64s(k.Strings(delim), true, false) - return vals -} - -// Uints returns list of uint divided by given delimiter. Any invalid input will be treated as zero value. -func (k *Key) Uints(delim string) []uint { - vals, _ := k.parseUints(k.Strings(delim), true, false) - return vals -} - -// Uint64s returns list of uint64 divided by given delimiter. Any invalid input will be treated as zero value. -func (k *Key) Uint64s(delim string) []uint64 { - vals, _ := k.parseUint64s(k.Strings(delim), true, false) - return vals -} - -// Bools returns list of bool divided by given delimiter. Any invalid input will be treated as zero value. -func (k *Key) Bools(delim string) []bool { - vals, _ := k.parseBools(k.Strings(delim), true, false) - return vals -} - -// TimesFormat parses with given format and returns list of time.Time divided by given delimiter. -// Any invalid input will be treated as zero value (0001-01-01 00:00:00 +0000 UTC). -func (k *Key) TimesFormat(format, delim string) []time.Time { - vals, _ := k.parseTimesFormat(format, k.Strings(delim), true, false) - return vals -} - -// Times parses with RFC3339 format and returns list of time.Time divided by given delimiter. -// Any invalid input will be treated as zero value (0001-01-01 00:00:00 +0000 UTC). -func (k *Key) Times(delim string) []time.Time { - return k.TimesFormat(time.RFC3339, delim) -} - -// ValidFloat64s returns list of float64 divided by given delimiter. If some value is not float, then -// it will not be included to result list. -func (k *Key) ValidFloat64s(delim string) []float64 { - vals, _ := k.parseFloat64s(k.Strings(delim), false, false) - return vals -} - -// ValidInts returns list of int divided by given delimiter. If some value is not integer, then it will -// not be included to result list. -func (k *Key) ValidInts(delim string) []int { - vals, _ := k.parseInts(k.Strings(delim), false, false) - return vals -} - -// ValidInt64s returns list of int64 divided by given delimiter. If some value is not 64-bit integer, -// then it will not be included to result list. -func (k *Key) ValidInt64s(delim string) []int64 { - vals, _ := k.parseInt64s(k.Strings(delim), false, false) - return vals -} - -// ValidUints returns list of uint divided by given delimiter. If some value is not unsigned integer, -// then it will not be included to result list. -func (k *Key) ValidUints(delim string) []uint { - vals, _ := k.parseUints(k.Strings(delim), false, false) - return vals -} - -// ValidUint64s returns list of uint64 divided by given delimiter. If some value is not 64-bit unsigned -// integer, then it will not be included to result list. -func (k *Key) ValidUint64s(delim string) []uint64 { - vals, _ := k.parseUint64s(k.Strings(delim), false, false) - return vals -} - -// ValidBools returns list of bool divided by given delimiter. If some value is not 64-bit unsigned -// integer, then it will not be included to result list. -func (k *Key) ValidBools(delim string) []bool { - vals, _ := k.parseBools(k.Strings(delim), false, false) - return vals -} - -// ValidTimesFormat parses with given format and returns list of time.Time divided by given delimiter. -func (k *Key) ValidTimesFormat(format, delim string) []time.Time { - vals, _ := k.parseTimesFormat(format, k.Strings(delim), false, false) - return vals -} - -// ValidTimes parses with RFC3339 format and returns list of time.Time divided by given delimiter. -func (k *Key) ValidTimes(delim string) []time.Time { - return k.ValidTimesFormat(time.RFC3339, delim) -} - -// StrictFloat64s returns list of float64 divided by given delimiter or error on first invalid input. -func (k *Key) StrictFloat64s(delim string) ([]float64, error) { - return k.parseFloat64s(k.Strings(delim), false, true) -} - -// StrictInts returns list of int divided by given delimiter or error on first invalid input. -func (k *Key) StrictInts(delim string) ([]int, error) { - return k.parseInts(k.Strings(delim), false, true) -} - -// StrictInt64s returns list of int64 divided by given delimiter or error on first invalid input. -func (k *Key) StrictInt64s(delim string) ([]int64, error) { - return k.parseInt64s(k.Strings(delim), false, true) -} - -// StrictUints returns list of uint divided by given delimiter or error on first invalid input. -func (k *Key) StrictUints(delim string) ([]uint, error) { - return k.parseUints(k.Strings(delim), false, true) -} - -// StrictUint64s returns list of uint64 divided by given delimiter or error on first invalid input. -func (k *Key) StrictUint64s(delim string) ([]uint64, error) { - return k.parseUint64s(k.Strings(delim), false, true) -} - -// StrictBools returns list of bool divided by given delimiter or error on first invalid input. -func (k *Key) StrictBools(delim string) ([]bool, error) { - return k.parseBools(k.Strings(delim), false, true) -} - -// StrictTimesFormat parses with given format and returns list of time.Time divided by given delimiter -// or error on first invalid input. -func (k *Key) StrictTimesFormat(format, delim string) ([]time.Time, error) { - return k.parseTimesFormat(format, k.Strings(delim), false, true) -} - -// StrictTimes parses with RFC3339 format and returns list of time.Time divided by given delimiter -// or error on first invalid input. -func (k *Key) StrictTimes(delim string) ([]time.Time, error) { - return k.StrictTimesFormat(time.RFC3339, delim) -} - -// parseBools transforms strings to bools. -func (k *Key) parseBools(strs []string, addInvalid, returnOnInvalid bool) ([]bool, error) { - vals := make([]bool, 0, len(strs)) - parser := func(str string) (interface{}, error) { - val, err := parseBool(str) - return val, err - } - rawVals, err := k.doParse(strs, addInvalid, returnOnInvalid, parser) - if err == nil { - for _, val := range rawVals { - vals = append(vals, val.(bool)) - } - } - return vals, err -} - -// parseFloat64s transforms strings to float64s. -func (k *Key) parseFloat64s(strs []string, addInvalid, returnOnInvalid bool) ([]float64, error) { - vals := make([]float64, 0, len(strs)) - parser := func(str string) (interface{}, error) { - val, err := strconv.ParseFloat(str, 64) - return val, err - } - rawVals, err := k.doParse(strs, addInvalid, returnOnInvalid, parser) - if err == nil { - for _, val := range rawVals { - vals = append(vals, val.(float64)) - } - } - return vals, err -} - -// parseInts transforms strings to ints. -func (k *Key) parseInts(strs []string, addInvalid, returnOnInvalid bool) ([]int, error) { - vals := make([]int, 0, len(strs)) - parser := func(str string) (interface{}, error) { - val, err := strconv.ParseInt(str, 0, 64) - return val, err - } - rawVals, err := k.doParse(strs, addInvalid, returnOnInvalid, parser) - if err == nil { - for _, val := range rawVals { - vals = append(vals, int(val.(int64))) - } - } - return vals, err -} - -// parseInt64s transforms strings to int64s. -func (k *Key) parseInt64s(strs []string, addInvalid, returnOnInvalid bool) ([]int64, error) { - vals := make([]int64, 0, len(strs)) - parser := func(str string) (interface{}, error) { - val, err := strconv.ParseInt(str, 0, 64) - return val, err - } - - rawVals, err := k.doParse(strs, addInvalid, returnOnInvalid, parser) - if err == nil { - for _, val := range rawVals { - vals = append(vals, val.(int64)) - } - } - return vals, err -} - -// parseUints transforms strings to uints. -func (k *Key) parseUints(strs []string, addInvalid, returnOnInvalid bool) ([]uint, error) { - vals := make([]uint, 0, len(strs)) - parser := func(str string) (interface{}, error) { - val, err := strconv.ParseUint(str, 0, 64) - return val, err - } - - rawVals, err := k.doParse(strs, addInvalid, returnOnInvalid, parser) - if err == nil { - for _, val := range rawVals { - vals = append(vals, uint(val.(uint64))) - } - } - return vals, err -} - -// parseUint64s transforms strings to uint64s. -func (k *Key) parseUint64s(strs []string, addInvalid, returnOnInvalid bool) ([]uint64, error) { - vals := make([]uint64, 0, len(strs)) - parser := func(str string) (interface{}, error) { - val, err := strconv.ParseUint(str, 0, 64) - return val, err - } - rawVals, err := k.doParse(strs, addInvalid, returnOnInvalid, parser) - if err == nil { - for _, val := range rawVals { - vals = append(vals, val.(uint64)) - } - } - return vals, err -} - - -type Parser func(str string) (interface{}, error) - - -// parseTimesFormat transforms strings to times in given format. -func (k *Key) parseTimesFormat(format string, strs []string, addInvalid, returnOnInvalid bool) ([]time.Time, error) { - vals := make([]time.Time, 0, len(strs)) - parser := func(str string) (interface{}, error) { - val, err := time.Parse(format, str) - return val, err - } - rawVals, err := k.doParse(strs, addInvalid, returnOnInvalid, parser) - if err == nil { - for _, val := range rawVals { - vals = append(vals, val.(time.Time)) - } - } - return vals, err -} - - -// doParse transforms strings to different types -func (k *Key) doParse(strs []string, addInvalid, returnOnInvalid bool, parser Parser) ([]interface{}, error) { - vals := make([]interface{}, 0, len(strs)) - for _, str := range strs { - val, err := parser(str) - if err != nil && returnOnInvalid { - return nil, err - } - if err == nil || addInvalid { - vals = append(vals, val) - } - } - return vals, nil -} - -// SetValue changes key value. -func (k *Key) SetValue(v string) { - if k.s.f.BlockMode { - k.s.f.lock.Lock() - defer k.s.f.lock.Unlock() - } - - k.value = v - k.s.keysHash[k.name] = v -} diff --git a/vendor/gopkg.in/ini.v1/parser.go b/vendor/gopkg.in/ini.v1/parser.go deleted file mode 100644 index 65147166f..000000000 --- a/vendor/gopkg.in/ini.v1/parser.go +++ /dev/null @@ -1,535 +0,0 @@ -// Copyright 2015 Unknwon -// -// 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. - -package ini - -import ( - "bufio" - "bytes" - "fmt" - "io" - "regexp" - "strconv" - "strings" - "unicode" -) - -const minReaderBufferSize = 4096 - -var pythonMultiline = regexp.MustCompile(`^([\t\f ]+)(.*)`) - -type parserOptions struct { - IgnoreContinuation bool - IgnoreInlineComment bool - AllowPythonMultilineValues bool - SpaceBeforeInlineComment bool - UnescapeValueDoubleQuotes bool - UnescapeValueCommentSymbols bool - PreserveSurroundedQuote bool - DebugFunc DebugFunc - ReaderBufferSize int -} - -type parser struct { - buf *bufio.Reader - options parserOptions - - isEOF bool - count int - comment *bytes.Buffer -} - -func (p *parser) debug(format string, args ...interface{}) { - if p.options.DebugFunc != nil { - p.options.DebugFunc(fmt.Sprintf(format, args...)) - } -} - -func newParser(r io.Reader, opts parserOptions) *parser { - size := opts.ReaderBufferSize - if size < minReaderBufferSize { - size = minReaderBufferSize - } - - return &parser{ - buf: bufio.NewReaderSize(r, size), - options: opts, - count: 1, - comment: &bytes.Buffer{}, - } -} - -// BOM handles header of UTF-8, UTF-16 LE and UTF-16 BE's BOM format. -// http://en.wikipedia.org/wiki/Byte_order_mark#Representations_of_byte_order_marks_by_encoding -func (p *parser) BOM() error { - mask, err := p.buf.Peek(2) - if err != nil && err != io.EOF { - return err - } else if len(mask) < 2 { - return nil - } - - switch { - case mask[0] == 254 && mask[1] == 255: - fallthrough - case mask[0] == 255 && mask[1] == 254: - _, err = p.buf.Read(mask) - if err != nil { - return err - } - case mask[0] == 239 && mask[1] == 187: - mask, err := p.buf.Peek(3) - if err != nil && err != io.EOF { - return err - } else if len(mask) < 3 { - return nil - } - if mask[2] == 191 { - _, err = p.buf.Read(mask) - if err != nil { - return err - } - } - } - return nil -} - -func (p *parser) readUntil(delim byte) ([]byte, error) { - data, err := p.buf.ReadBytes(delim) - if err != nil { - if err == io.EOF { - p.isEOF = true - } else { - return nil, err - } - } - return data, nil -} - -func cleanComment(in []byte) ([]byte, bool) { - i := bytes.IndexAny(in, "#;") - if i == -1 { - return nil, false - } - return in[i:], true -} - -func readKeyName(delimiters string, in []byte) (string, int, error) { - line := string(in) - - // Check if key name surrounded by quotes. - var keyQuote string - if line[0] == '"' { - if len(line) > 6 && string(line[0:3]) == `"""` { - keyQuote = `"""` - } else { - keyQuote = `"` - } - } else if line[0] == '`' { - keyQuote = "`" - } - - // Get out key name - var endIdx int - if len(keyQuote) > 0 { - startIdx := len(keyQuote) - // FIXME: fail case -> """"""name"""=value - pos := strings.Index(line[startIdx:], keyQuote) - if pos == -1 { - return "", -1, fmt.Errorf("missing closing key quote: %s", line) - } - pos += startIdx - - // Find key-value delimiter - i := strings.IndexAny(line[pos+startIdx:], delimiters) - if i < 0 { - return "", -1, ErrDelimiterNotFound{line} - } - endIdx = pos + i - return strings.TrimSpace(line[startIdx:pos]), endIdx + startIdx + 1, nil - } - - endIdx = strings.IndexAny(line, delimiters) - if endIdx < 0 { - return "", -1, ErrDelimiterNotFound{line} - } - return strings.TrimSpace(line[0:endIdx]), endIdx + 1, nil -} - -func (p *parser) readMultilines(line, val, valQuote string) (string, error) { - for { - data, err := p.readUntil('\n') - if err != nil { - return "", err - } - next := string(data) - - pos := strings.LastIndex(next, valQuote) - if pos > -1 { - val += next[:pos] - - comment, has := cleanComment([]byte(next[pos:])) - if has { - p.comment.Write(bytes.TrimSpace(comment)) - } - break - } - val += next - if p.isEOF { - return "", fmt.Errorf("missing closing key quote from %q to %q", line, next) - } - } - return val, nil -} - -func (p *parser) readContinuationLines(val string) (string, error) { - for { - data, err := p.readUntil('\n') - if err != nil { - return "", err - } - next := strings.TrimSpace(string(data)) - - if len(next) == 0 { - break - } - val += next - if val[len(val)-1] != '\\' { - break - } - val = val[:len(val)-1] - } - return val, nil -} - -// hasSurroundedQuote check if and only if the first and last characters -// are quotes \" or \'. -// It returns false if any other parts also contain same kind of quotes. -func hasSurroundedQuote(in string, quote byte) bool { - return len(in) >= 2 && in[0] == quote && in[len(in)-1] == quote && - strings.IndexByte(in[1:], quote) == len(in)-2 -} - -func (p *parser) readValue(in []byte, bufferSize int) (string, error) { - - line := strings.TrimLeftFunc(string(in), unicode.IsSpace) - if len(line) == 0 { - if p.options.AllowPythonMultilineValues && len(in) > 0 && in[len(in)-1] == '\n' { - return p.readPythonMultilines(line, bufferSize) - } - return "", nil - } - - var valQuote string - if len(line) > 3 && string(line[0:3]) == `"""` { - valQuote = `"""` - } else if line[0] == '`' { - valQuote = "`" - } else if p.options.UnescapeValueDoubleQuotes && line[0] == '"' { - valQuote = `"` - } - - if len(valQuote) > 0 { - startIdx := len(valQuote) - pos := strings.LastIndex(line[startIdx:], valQuote) - // Check for multi-line value - if pos == -1 { - return p.readMultilines(line, line[startIdx:], valQuote) - } - - if p.options.UnescapeValueDoubleQuotes && valQuote == `"` { - return strings.Replace(line[startIdx:pos+startIdx], `\"`, `"`, -1), nil - } - return line[startIdx : pos+startIdx], nil - } - - lastChar := line[len(line)-1] - // Won't be able to reach here if value only contains whitespace - line = strings.TrimSpace(line) - trimmedLastChar := line[len(line)-1] - - // Check continuation lines when desired - if !p.options.IgnoreContinuation && trimmedLastChar == '\\' { - return p.readContinuationLines(line[:len(line)-1]) - } - - // Check if ignore inline comment - if !p.options.IgnoreInlineComment { - var i int - if p.options.SpaceBeforeInlineComment { - i = strings.Index(line, " #") - if i == -1 { - i = strings.Index(line, " ;") - } - - } else { - i = strings.IndexAny(line, "#;") - } - - if i > -1 { - p.comment.WriteString(line[i:]) - line = strings.TrimSpace(line[:i]) - } - - } - - // Trim single and double quotes - if (hasSurroundedQuote(line, '\'') || - hasSurroundedQuote(line, '"')) && !p.options.PreserveSurroundedQuote { - line = line[1 : len(line)-1] - } else if len(valQuote) == 0 && p.options.UnescapeValueCommentSymbols { - if strings.Contains(line, `\;`) { - line = strings.Replace(line, `\;`, ";", -1) - } - if strings.Contains(line, `\#`) { - line = strings.Replace(line, `\#`, "#", -1) - } - } else if p.options.AllowPythonMultilineValues && lastChar == '\n' { - return p.readPythonMultilines(line, bufferSize) - } - - return line, nil -} - -func (p *parser) readPythonMultilines(line string, bufferSize int) (string, error) { - parserBufferPeekResult, _ := p.buf.Peek(bufferSize) - peekBuffer := bytes.NewBuffer(parserBufferPeekResult) - - indentSize := 0 - for { - peekData, peekErr := peekBuffer.ReadBytes('\n') - if peekErr != nil { - if peekErr == io.EOF { - p.debug("readPythonMultilines: io.EOF, peekData: %q, line: %q", string(peekData), line) - return line, nil - } - - p.debug("readPythonMultilines: failed to peek with error: %v", peekErr) - return "", peekErr - } - - p.debug("readPythonMultilines: parsing %q", string(peekData)) - - peekMatches := pythonMultiline.FindStringSubmatch(string(peekData)) - p.debug("readPythonMultilines: matched %d parts", len(peekMatches)) - for n, v := range peekMatches { - p.debug(" %d: %q", n, v) - } - - // Return if not a Python multiline value. - if len(peekMatches) != 3 { - p.debug("readPythonMultilines: end of value, got: %q", line) - return line, nil - } - - // Determine indent size and line prefix. - currentIndentSize := len(peekMatches[1]) - if indentSize < 1 { - indentSize = currentIndentSize - p.debug("readPythonMultilines: indent size is %d", indentSize) - } - - // Make sure each line is indented at least as far as first line. - if currentIndentSize < indentSize { - p.debug("readPythonMultilines: end of value, current indent: %d, expected indent: %d, line: %q", currentIndentSize, indentSize, line) - return line, nil - } - - // Advance the parser reader (buffer) in-sync with the peek buffer. - _, err := p.buf.Discard(len(peekData)) - if err != nil { - p.debug("readPythonMultilines: failed to skip to the end, returning error") - return "", err - } - - // Handle indented empty line. - line += "\n" + peekMatches[1][indentSize:] + peekMatches[2] - } -} - -// parse parses data through an io.Reader. -func (f *File) parse(reader io.Reader) (err error) { - p := newParser(reader, parserOptions{ - IgnoreContinuation: f.options.IgnoreContinuation, - IgnoreInlineComment: f.options.IgnoreInlineComment, - AllowPythonMultilineValues: f.options.AllowPythonMultilineValues, - SpaceBeforeInlineComment: f.options.SpaceBeforeInlineComment, - UnescapeValueDoubleQuotes: f.options.UnescapeValueDoubleQuotes, - UnescapeValueCommentSymbols: f.options.UnescapeValueCommentSymbols, - PreserveSurroundedQuote: f.options.PreserveSurroundedQuote, - DebugFunc: f.options.DebugFunc, - ReaderBufferSize: f.options.ReaderBufferSize, - }) - if err = p.BOM(); err != nil { - return fmt.Errorf("BOM: %v", err) - } - - // Ignore error because default section name is never empty string. - name := DefaultSection - if f.options.Insensitive || f.options.InsensitiveSections { - name = strings.ToLower(DefaultSection) - } - section, _ := f.NewSection(name) - - // This "last" is not strictly equivalent to "previous one" if current key is not the first nested key - var isLastValueEmpty bool - var lastRegularKey *Key - - var line []byte - var inUnparseableSection bool - - // NOTE: Iterate and increase `currentPeekSize` until - // the size of the parser buffer is found. - // TODO(unknwon): When Golang 1.10 is the lowest version supported, replace with `parserBufferSize := p.buf.Size()`. - parserBufferSize := 0 - // NOTE: Peek 4kb at a time. - currentPeekSize := minReaderBufferSize - - if f.options.AllowPythonMultilineValues { - for { - peekBytes, _ := p.buf.Peek(currentPeekSize) - peekBytesLength := len(peekBytes) - - if parserBufferSize >= peekBytesLength { - break - } - - currentPeekSize *= 2 - parserBufferSize = peekBytesLength - } - } - - for !p.isEOF { - line, err = p.readUntil('\n') - if err != nil { - return err - } - - if f.options.AllowNestedValues && - isLastValueEmpty && len(line) > 0 { - if line[0] == ' ' || line[0] == '\t' { - err = lastRegularKey.addNestedValue(string(bytes.TrimSpace(line))) - if err != nil { - return err - } - continue - } - } - - line = bytes.TrimLeftFunc(line, unicode.IsSpace) - if len(line) == 0 { - continue - } - - // Comments - if line[0] == '#' || line[0] == ';' { - // Note: we do not care ending line break, - // it is needed for adding second line, - // so just clean it once at the end when set to value. - p.comment.Write(line) - continue - } - - // Section - if line[0] == '[' { - // Read to the next ']' (TODO: support quoted strings) - closeIdx := bytes.LastIndexByte(line, ']') - if closeIdx == -1 { - return fmt.Errorf("unclosed section: %s", line) - } - - name := string(line[1:closeIdx]) - section, err = f.NewSection(name) - if err != nil { - return err - } - - comment, has := cleanComment(line[closeIdx+1:]) - if has { - p.comment.Write(comment) - } - - section.Comment = strings.TrimSpace(p.comment.String()) - - // Reset auto-counter and comments - p.comment.Reset() - p.count = 1 - - inUnparseableSection = false - for i := range f.options.UnparseableSections { - if f.options.UnparseableSections[i] == name || - ((f.options.Insensitive || f.options.InsensitiveSections) && strings.EqualFold(f.options.UnparseableSections[i], name)) { - inUnparseableSection = true - continue - } - } - continue - } - - if inUnparseableSection { - section.isRawSection = true - section.rawBody += string(line) - continue - } - - kname, offset, err := readKeyName(f.options.KeyValueDelimiters, line) - if err != nil { - // Treat as boolean key when desired, and whole line is key name. - if IsErrDelimiterNotFound(err) { - switch { - case f.options.AllowBooleanKeys: - kname, err := p.readValue(line, parserBufferSize) - if err != nil { - return err - } - key, err := section.NewBooleanKey(kname) - if err != nil { - return err - } - key.Comment = strings.TrimSpace(p.comment.String()) - p.comment.Reset() - continue - - case f.options.SkipUnrecognizableLines: - continue - } - } - return err - } - - // Auto increment. - isAutoIncr := false - if kname == "-" { - isAutoIncr = true - kname = "#" + strconv.Itoa(p.count) - p.count++ - } - - value, err := p.readValue(line[offset:], parserBufferSize) - if err != nil { - return err - } - isLastValueEmpty = len(value) == 0 - - key, err := section.NewKey(kname, value) - if err != nil { - return err - } - key.isAutoIncrement = isAutoIncr - key.Comment = strings.TrimSpace(p.comment.String()) - p.comment.Reset() - lastRegularKey = key - } - return nil -} diff --git a/vendor/gopkg.in/ini.v1/section.go b/vendor/gopkg.in/ini.v1/section.go deleted file mode 100644 index afaa97c97..000000000 --- a/vendor/gopkg.in/ini.v1/section.go +++ /dev/null @@ -1,256 +0,0 @@ -// Copyright 2014 Unknwon -// -// 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. - -package ini - -import ( - "errors" - "fmt" - "strings" -) - -// Section represents a config section. -type Section struct { - f *File - Comment string - name string - keys map[string]*Key - keyList []string - keysHash map[string]string - - isRawSection bool - rawBody string -} - -func newSection(f *File, name string) *Section { - return &Section{ - f: f, - name: name, - keys: make(map[string]*Key), - keyList: make([]string, 0, 10), - keysHash: make(map[string]string), - } -} - -// Name returns name of Section. -func (s *Section) Name() string { - return s.name -} - -// Body returns rawBody of Section if the section was marked as unparseable. -// It still follows the other rules of the INI format surrounding leading/trailing whitespace. -func (s *Section) Body() string { - return strings.TrimSpace(s.rawBody) -} - -// SetBody updates body content only if section is raw. -func (s *Section) SetBody(body string) { - if !s.isRawSection { - return - } - s.rawBody = body -} - -// NewKey creates a new key to given section. -func (s *Section) NewKey(name, val string) (*Key, error) { - if len(name) == 0 { - return nil, errors.New("error creating new key: empty key name") - } else if s.f.options.Insensitive || s.f.options.InsensitiveKeys { - name = strings.ToLower(name) - } - - if s.f.BlockMode { - s.f.lock.Lock() - defer s.f.lock.Unlock() - } - - if inSlice(name, s.keyList) { - if s.f.options.AllowShadows { - if err := s.keys[name].addShadow(val); err != nil { - return nil, err - } - } else { - s.keys[name].value = val - s.keysHash[name] = val - } - return s.keys[name], nil - } - - s.keyList = append(s.keyList, name) - s.keys[name] = newKey(s, name, val) - s.keysHash[name] = val - return s.keys[name], nil -} - -// NewBooleanKey creates a new boolean type key to given section. -func (s *Section) NewBooleanKey(name string) (*Key, error) { - key, err := s.NewKey(name, "true") - if err != nil { - return nil, err - } - - key.isBooleanType = true - return key, nil -} - -// GetKey returns key in section by given name. -func (s *Section) GetKey(name string) (*Key, error) { - if s.f.BlockMode { - s.f.lock.RLock() - } - if s.f.options.Insensitive || s.f.options.InsensitiveKeys { - name = strings.ToLower(name) - } - key := s.keys[name] - if s.f.BlockMode { - s.f.lock.RUnlock() - } - - if key == nil { - // Check if it is a child-section. - sname := s.name - for { - if i := strings.LastIndex(sname, s.f.options.ChildSectionDelimiter); i > -1 { - sname = sname[:i] - sec, err := s.f.GetSection(sname) - if err != nil { - continue - } - return sec.GetKey(name) - } - break - } - return nil, fmt.Errorf("error when getting key of section %q: key %q not exists", s.name, name) - } - return key, nil -} - -// HasKey returns true if section contains a key with given name. -func (s *Section) HasKey(name string) bool { - key, _ := s.GetKey(name) - return key != nil -} - -// Deprecated: Use "HasKey" instead. -func (s *Section) Haskey(name string) bool { - return s.HasKey(name) -} - -// HasValue returns true if section contains given raw value. -func (s *Section) HasValue(value string) bool { - if s.f.BlockMode { - s.f.lock.RLock() - defer s.f.lock.RUnlock() - } - - for _, k := range s.keys { - if value == k.value { - return true - } - } - return false -} - -// Key assumes named Key exists in section and returns a zero-value when not. -func (s *Section) Key(name string) *Key { - key, err := s.GetKey(name) - if err != nil { - // It's OK here because the only possible error is empty key name, - // but if it's empty, this piece of code won't be executed. - key, _ = s.NewKey(name, "") - return key - } - return key -} - -// Keys returns list of keys of section. -func (s *Section) Keys() []*Key { - keys := make([]*Key, len(s.keyList)) - for i := range s.keyList { - keys[i] = s.Key(s.keyList[i]) - } - return keys -} - -// ParentKeys returns list of keys of parent section. -func (s *Section) ParentKeys() []*Key { - var parentKeys []*Key - sname := s.name - for { - if i := strings.LastIndex(sname, s.f.options.ChildSectionDelimiter); i > -1 { - sname = sname[:i] - sec, err := s.f.GetSection(sname) - if err != nil { - continue - } - parentKeys = append(parentKeys, sec.Keys()...) - } else { - break - } - - } - return parentKeys -} - -// KeyStrings returns list of key names of section. -func (s *Section) KeyStrings() []string { - list := make([]string, len(s.keyList)) - copy(list, s.keyList) - return list -} - -// KeysHash returns keys hash consisting of names and values. -func (s *Section) KeysHash() map[string]string { - if s.f.BlockMode { - s.f.lock.RLock() - defer s.f.lock.RUnlock() - } - - hash := map[string]string{} - for key, value := range s.keysHash { - hash[key] = value - } - return hash -} - -// DeleteKey deletes a key from section. -func (s *Section) DeleteKey(name string) { - if s.f.BlockMode { - s.f.lock.Lock() - defer s.f.lock.Unlock() - } - - for i, k := range s.keyList { - if k == name { - s.keyList = append(s.keyList[:i], s.keyList[i+1:]...) - delete(s.keys, name) - delete(s.keysHash, name) - return - } - } -} - -// ChildSections returns a list of child sections of current section. -// For example, "[parent.child1]" and "[parent.child12]" are child sections -// of section "[parent]". -func (s *Section) ChildSections() []*Section { - prefix := s.name + s.f.options.ChildSectionDelimiter - children := make([]*Section, 0, 3) - for _, name := range s.f.sectionList { - if strings.HasPrefix(name, prefix) { - children = append(children, s.f.sections[name]...) - } - } - return children -} diff --git a/vendor/gopkg.in/ini.v1/struct.go b/vendor/gopkg.in/ini.v1/struct.go deleted file mode 100644 index a486b2fe0..000000000 --- a/vendor/gopkg.in/ini.v1/struct.go +++ /dev/null @@ -1,747 +0,0 @@ -// Copyright 2014 Unknwon -// -// 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. - -package ini - -import ( - "bytes" - "errors" - "fmt" - "reflect" - "strings" - "time" - "unicode" -) - -// NameMapper represents a ini tag name mapper. -type NameMapper func(string) string - -// Built-in name getters. -var ( - // SnackCase converts to format SNACK_CASE. - SnackCase NameMapper = func(raw string) string { - newstr := make([]rune, 0, len(raw)) - for i, chr := range raw { - if isUpper := 'A' <= chr && chr <= 'Z'; isUpper { - if i > 0 { - newstr = append(newstr, '_') - } - } - newstr = append(newstr, unicode.ToUpper(chr)) - } - return string(newstr) - } - // TitleUnderscore converts to format title_underscore. - TitleUnderscore NameMapper = func(raw string) string { - newstr := make([]rune, 0, len(raw)) - for i, chr := range raw { - if isUpper := 'A' <= chr && chr <= 'Z'; isUpper { - if i > 0 { - newstr = append(newstr, '_') - } - chr -= 'A' - 'a' - } - newstr = append(newstr, chr) - } - return string(newstr) - } -) - -func (s *Section) parseFieldName(raw, actual string) string { - if len(actual) > 0 { - return actual - } - if s.f.NameMapper != nil { - return s.f.NameMapper(raw) - } - return raw -} - -func parseDelim(actual string) string { - if len(actual) > 0 { - return actual - } - return "," -} - -var reflectTime = reflect.TypeOf(time.Now()).Kind() - -// setSliceWithProperType sets proper values to slice based on its type. -func setSliceWithProperType(key *Key, field reflect.Value, delim string, allowShadow, isStrict bool) error { - var strs []string - if allowShadow { - strs = key.StringsWithShadows(delim) - } else { - strs = key.Strings(delim) - } - - numVals := len(strs) - if numVals == 0 { - return nil - } - - var vals interface{} - var err error - - sliceOf := field.Type().Elem().Kind() - switch sliceOf { - case reflect.String: - vals = strs - case reflect.Int: - vals, err = key.parseInts(strs, true, false) - case reflect.Int64: - vals, err = key.parseInt64s(strs, true, false) - case reflect.Uint: - vals, err = key.parseUints(strs, true, false) - case reflect.Uint64: - vals, err = key.parseUint64s(strs, true, false) - case reflect.Float64: - vals, err = key.parseFloat64s(strs, true, false) - case reflect.Bool: - vals, err = key.parseBools(strs, true, false) - case reflectTime: - vals, err = key.parseTimesFormat(time.RFC3339, strs, true, false) - default: - return fmt.Errorf("unsupported type '[]%s'", sliceOf) - } - if err != nil && isStrict { - return err - } - - slice := reflect.MakeSlice(field.Type(), numVals, numVals) - for i := 0; i < numVals; i++ { - switch sliceOf { - case reflect.String: - slice.Index(i).Set(reflect.ValueOf(vals.([]string)[i])) - case reflect.Int: - slice.Index(i).Set(reflect.ValueOf(vals.([]int)[i])) - case reflect.Int64: - slice.Index(i).Set(reflect.ValueOf(vals.([]int64)[i])) - case reflect.Uint: - slice.Index(i).Set(reflect.ValueOf(vals.([]uint)[i])) - case reflect.Uint64: - slice.Index(i).Set(reflect.ValueOf(vals.([]uint64)[i])) - case reflect.Float64: - slice.Index(i).Set(reflect.ValueOf(vals.([]float64)[i])) - case reflect.Bool: - slice.Index(i).Set(reflect.ValueOf(vals.([]bool)[i])) - case reflectTime: - slice.Index(i).Set(reflect.ValueOf(vals.([]time.Time)[i])) - } - } - field.Set(slice) - return nil -} - -func wrapStrictError(err error, isStrict bool) error { - if isStrict { - return err - } - return nil -} - -// setWithProperType sets proper value to field based on its type, -// but it does not return error for failing parsing, -// because we want to use default value that is already assigned to struct. -func setWithProperType(t reflect.Type, key *Key, field reflect.Value, delim string, allowShadow, isStrict bool) error { - vt := t - isPtr := t.Kind() == reflect.Ptr - if isPtr { - vt = t.Elem() - } - switch vt.Kind() { - case reflect.String: - stringVal := key.String() - if isPtr { - field.Set(reflect.ValueOf(&stringVal)) - } else if len(stringVal) > 0 { - field.SetString(key.String()) - } - case reflect.Bool: - boolVal, err := key.Bool() - if err != nil { - return wrapStrictError(err, isStrict) - } - if isPtr { - field.Set(reflect.ValueOf(&boolVal)) - } else { - field.SetBool(boolVal) - } - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - // ParseDuration will not return err for `0`, so check the type name - if vt.Name() == "Duration" { - durationVal, err := key.Duration() - if err != nil { - if intVal, err := key.Int64(); err == nil { - field.SetInt(intVal) - return nil - } - return wrapStrictError(err, isStrict) - } - if isPtr { - field.Set(reflect.ValueOf(&durationVal)) - } else if int64(durationVal) > 0 { - field.Set(reflect.ValueOf(durationVal)) - } - return nil - } - - intVal, err := key.Int64() - if err != nil { - return wrapStrictError(err, isStrict) - } - if isPtr { - pv := reflect.New(t.Elem()) - pv.Elem().SetInt(intVal) - field.Set(pv) - } else { - field.SetInt(intVal) - } - // byte is an alias for uint8, so supporting uint8 breaks support for byte - case reflect.Uint, reflect.Uint16, reflect.Uint32, reflect.Uint64: - durationVal, err := key.Duration() - // Skip zero value - if err == nil && uint64(durationVal) > 0 { - if isPtr { - field.Set(reflect.ValueOf(&durationVal)) - } else { - field.Set(reflect.ValueOf(durationVal)) - } - return nil - } - - uintVal, err := key.Uint64() - if err != nil { - return wrapStrictError(err, isStrict) - } - if isPtr { - pv := reflect.New(t.Elem()) - pv.Elem().SetUint(uintVal) - field.Set(pv) - } else { - field.SetUint(uintVal) - } - - case reflect.Float32, reflect.Float64: - floatVal, err := key.Float64() - if err != nil { - return wrapStrictError(err, isStrict) - } - if isPtr { - pv := reflect.New(t.Elem()) - pv.Elem().SetFloat(floatVal) - field.Set(pv) - } else { - field.SetFloat(floatVal) - } - case reflectTime: - timeVal, err := key.Time() - if err != nil { - return wrapStrictError(err, isStrict) - } - if isPtr { - field.Set(reflect.ValueOf(&timeVal)) - } else { - field.Set(reflect.ValueOf(timeVal)) - } - case reflect.Slice: - return setSliceWithProperType(key, field, delim, allowShadow, isStrict) - default: - return fmt.Errorf("unsupported type %q", t) - } - return nil -} - -func parseTagOptions(tag string) (rawName string, omitEmpty bool, allowShadow bool, allowNonUnique bool, extends bool) { - opts := strings.SplitN(tag, ",", 5) - rawName = opts[0] - for _, opt := range opts[1:] { - omitEmpty = omitEmpty || (opt == "omitempty") - allowShadow = allowShadow || (opt == "allowshadow") - allowNonUnique = allowNonUnique || (opt == "nonunique") - extends = extends || (opt == "extends") - } - return rawName, omitEmpty, allowShadow, allowNonUnique, extends -} - -// mapToField maps the given value to the matching field of the given section. -// The sectionIndex is the index (if non unique sections are enabled) to which the value should be added. -func (s *Section) mapToField(val reflect.Value, isStrict bool, sectionIndex int, sectionName string) error { - if val.Kind() == reflect.Ptr { - val = val.Elem() - } - typ := val.Type() - - for i := 0; i < typ.NumField(); i++ { - field := val.Field(i) - tpField := typ.Field(i) - - tag := tpField.Tag.Get("ini") - if tag == "-" { - continue - } - - rawName, _, allowShadow, allowNonUnique, extends := parseTagOptions(tag) - fieldName := s.parseFieldName(tpField.Name, rawName) - if len(fieldName) == 0 || !field.CanSet() { - continue - } - - isStruct := tpField.Type.Kind() == reflect.Struct - isStructPtr := tpField.Type.Kind() == reflect.Ptr && tpField.Type.Elem().Kind() == reflect.Struct - isAnonymousPtr := tpField.Type.Kind() == reflect.Ptr && tpField.Anonymous - if isAnonymousPtr { - field.Set(reflect.New(tpField.Type.Elem())) - } - - if extends && (isAnonymousPtr || (isStruct && tpField.Anonymous)) { - if isStructPtr && field.IsNil() { - field.Set(reflect.New(tpField.Type.Elem())) - } - fieldSection := s - if rawName != "" { - sectionName = s.name + s.f.options.ChildSectionDelimiter + rawName - if secs, err := s.f.SectionsByName(sectionName); err == nil && sectionIndex < len(secs) { - fieldSection = secs[sectionIndex] - } - } - if err := fieldSection.mapToField(field, isStrict, sectionIndex, sectionName); err != nil { - return fmt.Errorf("map to field %q: %v", fieldName, err) - } - } else if isAnonymousPtr || isStruct || isStructPtr { - if secs, err := s.f.SectionsByName(fieldName); err == nil { - if len(secs) <= sectionIndex { - return fmt.Errorf("there are not enough sections (%d <= %d) for the field %q", len(secs), sectionIndex, fieldName) - } - // Only set the field to non-nil struct value if we have a section for it. - // Otherwise, we end up with a non-nil struct ptr even though there is no data. - if isStructPtr && field.IsNil() { - field.Set(reflect.New(tpField.Type.Elem())) - } - if err = secs[sectionIndex].mapToField(field, isStrict, sectionIndex, fieldName); err != nil { - return fmt.Errorf("map to field %q: %v", fieldName, err) - } - continue - } - } - - // Map non-unique sections - if allowNonUnique && tpField.Type.Kind() == reflect.Slice { - newField, err := s.mapToSlice(fieldName, field, isStrict) - if err != nil { - return fmt.Errorf("map to slice %q: %v", fieldName, err) - } - - field.Set(newField) - continue - } - - if key, err := s.GetKey(fieldName); err == nil { - delim := parseDelim(tpField.Tag.Get("delim")) - if err = setWithProperType(tpField.Type, key, field, delim, allowShadow, isStrict); err != nil { - return fmt.Errorf("set field %q: %v", fieldName, err) - } - } - } - return nil -} - -// mapToSlice maps all sections with the same name and returns the new value. -// The type of the Value must be a slice. -func (s *Section) mapToSlice(secName string, val reflect.Value, isStrict bool) (reflect.Value, error) { - secs, err := s.f.SectionsByName(secName) - if err != nil { - return reflect.Value{}, err - } - - typ := val.Type().Elem() - for i, sec := range secs { - elem := reflect.New(typ) - if err = sec.mapToField(elem, isStrict, i, sec.name); err != nil { - return reflect.Value{}, fmt.Errorf("map to field from section %q: %v", secName, err) - } - - val = reflect.Append(val, elem.Elem()) - } - return val, nil -} - -// mapTo maps a section to object v. -func (s *Section) mapTo(v interface{}, isStrict bool) error { - typ := reflect.TypeOf(v) - val := reflect.ValueOf(v) - if typ.Kind() == reflect.Ptr { - typ = typ.Elem() - val = val.Elem() - } else { - return errors.New("not a pointer to a struct") - } - - if typ.Kind() == reflect.Slice { - newField, err := s.mapToSlice(s.name, val, isStrict) - if err != nil { - return err - } - - val.Set(newField) - return nil - } - - return s.mapToField(val, isStrict, 0, s.name) -} - -// MapTo maps section to given struct. -func (s *Section) MapTo(v interface{}) error { - return s.mapTo(v, false) -} - -// StrictMapTo maps section to given struct in strict mode, -// which returns all possible error including value parsing error. -func (s *Section) StrictMapTo(v interface{}) error { - return s.mapTo(v, true) -} - -// MapTo maps file to given struct. -func (f *File) MapTo(v interface{}) error { - return f.Section("").MapTo(v) -} - -// StrictMapTo maps file to given struct in strict mode, -// which returns all possible error including value parsing error. -func (f *File) StrictMapTo(v interface{}) error { - return f.Section("").StrictMapTo(v) -} - -// MapToWithMapper maps data sources to given struct with name mapper. -func MapToWithMapper(v interface{}, mapper NameMapper, source interface{}, others ...interface{}) error { - cfg, err := Load(source, others...) - if err != nil { - return err - } - cfg.NameMapper = mapper - return cfg.MapTo(v) -} - -// StrictMapToWithMapper maps data sources to given struct with name mapper in strict mode, -// which returns all possible error including value parsing error. -func StrictMapToWithMapper(v interface{}, mapper NameMapper, source interface{}, others ...interface{}) error { - cfg, err := Load(source, others...) - if err != nil { - return err - } - cfg.NameMapper = mapper - return cfg.StrictMapTo(v) -} - -// MapTo maps data sources to given struct. -func MapTo(v, source interface{}, others ...interface{}) error { - return MapToWithMapper(v, nil, source, others...) -} - -// StrictMapTo maps data sources to given struct in strict mode, -// which returns all possible error including value parsing error. -func StrictMapTo(v, source interface{}, others ...interface{}) error { - return StrictMapToWithMapper(v, nil, source, others...) -} - -// reflectSliceWithProperType does the opposite thing as setSliceWithProperType. -func reflectSliceWithProperType(key *Key, field reflect.Value, delim string, allowShadow bool) error { - slice := field.Slice(0, field.Len()) - if field.Len() == 0 { - return nil - } - sliceOf := field.Type().Elem().Kind() - - if allowShadow { - var keyWithShadows *Key - for i := 0; i < field.Len(); i++ { - var val string - switch sliceOf { - case reflect.String: - val = slice.Index(i).String() - case reflect.Int, reflect.Int64: - val = fmt.Sprint(slice.Index(i).Int()) - case reflect.Uint, reflect.Uint64: - val = fmt.Sprint(slice.Index(i).Uint()) - case reflect.Float64: - val = fmt.Sprint(slice.Index(i).Float()) - case reflect.Bool: - val = fmt.Sprint(slice.Index(i).Bool()) - case reflectTime: - val = slice.Index(i).Interface().(time.Time).Format(time.RFC3339) - default: - return fmt.Errorf("unsupported type '[]%s'", sliceOf) - } - - if i == 0 { - keyWithShadows = newKey(key.s, key.name, val) - } else { - _ = keyWithShadows.AddShadow(val) - } - } - *key = *keyWithShadows - return nil - } - - var buf bytes.Buffer - for i := 0; i < field.Len(); i++ { - switch sliceOf { - case reflect.String: - buf.WriteString(slice.Index(i).String()) - case reflect.Int, reflect.Int64: - buf.WriteString(fmt.Sprint(slice.Index(i).Int())) - case reflect.Uint, reflect.Uint64: - buf.WriteString(fmt.Sprint(slice.Index(i).Uint())) - case reflect.Float64: - buf.WriteString(fmt.Sprint(slice.Index(i).Float())) - case reflect.Bool: - buf.WriteString(fmt.Sprint(slice.Index(i).Bool())) - case reflectTime: - buf.WriteString(slice.Index(i).Interface().(time.Time).Format(time.RFC3339)) - default: - return fmt.Errorf("unsupported type '[]%s'", sliceOf) - } - buf.WriteString(delim) - } - key.SetValue(buf.String()[:buf.Len()-len(delim)]) - return nil -} - -// reflectWithProperType does the opposite thing as setWithProperType. -func reflectWithProperType(t reflect.Type, key *Key, field reflect.Value, delim string, allowShadow bool) error { - switch t.Kind() { - case reflect.String: - key.SetValue(field.String()) - case reflect.Bool: - key.SetValue(fmt.Sprint(field.Bool())) - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - key.SetValue(fmt.Sprint(field.Int())) - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: - key.SetValue(fmt.Sprint(field.Uint())) - case reflect.Float32, reflect.Float64: - key.SetValue(fmt.Sprint(field.Float())) - case reflectTime: - key.SetValue(fmt.Sprint(field.Interface().(time.Time).Format(time.RFC3339))) - case reflect.Slice: - return reflectSliceWithProperType(key, field, delim, allowShadow) - case reflect.Ptr: - if !field.IsNil() { - return reflectWithProperType(t.Elem(), key, field.Elem(), delim, allowShadow) - } - default: - return fmt.Errorf("unsupported type %q", t) - } - return nil -} - -// CR: copied from encoding/json/encode.go with modifications of time.Time support. -// TODO: add more test coverage. -func isEmptyValue(v reflect.Value) bool { - switch v.Kind() { - case reflect.Array, reflect.Map, reflect.Slice, reflect.String: - return v.Len() == 0 - case reflect.Bool: - return !v.Bool() - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - return v.Int() == 0 - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - return v.Uint() == 0 - case reflect.Float32, reflect.Float64: - return v.Float() == 0 - case reflect.Interface, reflect.Ptr: - return v.IsNil() - case reflectTime: - t, ok := v.Interface().(time.Time) - return ok && t.IsZero() - } - return false -} - -// StructReflector is the interface implemented by struct types that can extract themselves into INI objects. -type StructReflector interface { - ReflectINIStruct(*File) error -} - -func (s *Section) reflectFrom(val reflect.Value) error { - if val.Kind() == reflect.Ptr { - val = val.Elem() - } - typ := val.Type() - - for i := 0; i < typ.NumField(); i++ { - if !val.Field(i).CanInterface() { - continue - } - - field := val.Field(i) - tpField := typ.Field(i) - - tag := tpField.Tag.Get("ini") - if tag == "-" { - continue - } - - rawName, omitEmpty, allowShadow, allowNonUnique, extends := parseTagOptions(tag) - if omitEmpty && isEmptyValue(field) { - continue - } - - if r, ok := field.Interface().(StructReflector); ok { - return r.ReflectINIStruct(s.f) - } - - fieldName := s.parseFieldName(tpField.Name, rawName) - if len(fieldName) == 0 || !field.CanSet() { - continue - } - - if extends && tpField.Anonymous && (tpField.Type.Kind() == reflect.Ptr || tpField.Type.Kind() == reflect.Struct) { - if err := s.reflectFrom(field); err != nil { - return fmt.Errorf("reflect from field %q: %v", fieldName, err) - } - continue - } - - if (tpField.Type.Kind() == reflect.Ptr && tpField.Type.Elem().Kind() == reflect.Struct) || - (tpField.Type.Kind() == reflect.Struct && tpField.Type.Name() != "Time") { - // Note: The only error here is section doesn't exist. - sec, err := s.f.GetSection(fieldName) - if err != nil { - // Note: fieldName can never be empty here, ignore error. - sec, _ = s.f.NewSection(fieldName) - } - - // Add comment from comment tag - if len(sec.Comment) == 0 { - sec.Comment = tpField.Tag.Get("comment") - } - - if err = sec.reflectFrom(field); err != nil { - return fmt.Errorf("reflect from field %q: %v", fieldName, err) - } - continue - } - - if allowNonUnique && tpField.Type.Kind() == reflect.Slice { - slice := field.Slice(0, field.Len()) - if field.Len() == 0 { - return nil - } - sliceOf := field.Type().Elem().Kind() - - for i := 0; i < field.Len(); i++ { - if sliceOf != reflect.Struct && sliceOf != reflect.Ptr { - return fmt.Errorf("field %q is not a slice of pointer or struct", fieldName) - } - - sec, err := s.f.NewSection(fieldName) - if err != nil { - return err - } - - // Add comment from comment tag - if len(sec.Comment) == 0 { - sec.Comment = tpField.Tag.Get("comment") - } - - if err := sec.reflectFrom(slice.Index(i)); err != nil { - return fmt.Errorf("reflect from field %q: %v", fieldName, err) - } - } - continue - } - - // Note: Same reason as section. - key, err := s.GetKey(fieldName) - if err != nil { - key, _ = s.NewKey(fieldName, "") - } - - // Add comment from comment tag - if len(key.Comment) == 0 { - key.Comment = tpField.Tag.Get("comment") - } - - delim := parseDelim(tpField.Tag.Get("delim")) - if err = reflectWithProperType(tpField.Type, key, field, delim, allowShadow); err != nil { - return fmt.Errorf("reflect field %q: %v", fieldName, err) - } - - } - return nil -} - -// ReflectFrom reflects section from given struct. It overwrites existing ones. -func (s *Section) ReflectFrom(v interface{}) error { - typ := reflect.TypeOf(v) - val := reflect.ValueOf(v) - - if s.name != DefaultSection && s.f.options.AllowNonUniqueSections && - (typ.Kind() == reflect.Slice || typ.Kind() == reflect.Ptr) { - // Clear sections to make sure none exists before adding the new ones - s.f.DeleteSection(s.name) - - if typ.Kind() == reflect.Ptr { - sec, err := s.f.NewSection(s.name) - if err != nil { - return err - } - return sec.reflectFrom(val.Elem()) - } - - slice := val.Slice(0, val.Len()) - sliceOf := val.Type().Elem().Kind() - if sliceOf != reflect.Ptr { - return fmt.Errorf("not a slice of pointers") - } - - for i := 0; i < slice.Len(); i++ { - sec, err := s.f.NewSection(s.name) - if err != nil { - return err - } - - err = sec.reflectFrom(slice.Index(i)) - if err != nil { - return fmt.Errorf("reflect from %dth field: %v", i, err) - } - } - - return nil - } - - if typ.Kind() == reflect.Ptr { - val = val.Elem() - } else { - return errors.New("not a pointer to a struct") - } - - return s.reflectFrom(val) -} - -// ReflectFrom reflects file from given struct. -func (f *File) ReflectFrom(v interface{}) error { - return f.Section("").ReflectFrom(v) -} - -// ReflectFromWithMapper reflects data sources from given struct with name mapper. -func ReflectFromWithMapper(cfg *File, v interface{}, mapper NameMapper) error { - cfg.NameMapper = mapper - return cfg.ReflectFrom(v) -} - -// ReflectFrom reflects data sources from given struct. -func ReflectFrom(cfg *File, v interface{}) error { - return ReflectFromWithMapper(cfg, v, nil) -} diff --git a/vendor/modules.txt b/vendor/modules.txt index 368896375..af3db49e7 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -95,20 +95,6 @@ github.com/IBM/go-sdk-core/v5/core github.com/IBM/networking-go-sdk/common github.com/IBM/networking-go-sdk/dnsrecordsv1 github.com/IBM/networking-go-sdk/dnssvcsv1 -# github.com/aliyun/alibaba-cloud-sdk-go v1.61.1286 -## explicit; go 1.13 -github.com/aliyun/alibaba-cloud-sdk-go/sdk -github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth -github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials -github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider -github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers -github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints -github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors -github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests -github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses -github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils -github.com/aliyun/alibaba-cloud-sdk-go/services/alidns -github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz # github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef ## explicit; go 1.13 github.com/asaskevich/govalidator @@ -820,9 +806,6 @@ gopkg.in/go-playground/validator.v9 # gopkg.in/inf.v0 v0.9.1 ## explicit gopkg.in/inf.v0 -# gopkg.in/ini.v1 v1.62.0 -## explicit -gopkg.in/ini.v1 # gopkg.in/yaml.v2 v2.4.0 ## explicit; go 1.15 gopkg.in/yaml.v2